Skip to content

Commit

Permalink
changes for adding volume collection with pool information (#101)
Browse files Browse the repository at this point in the history
* changes for adding volume collection with pool information

* [auto generated] Checking in generated offline HTML doc

* patricia comments

* [auto generated] Checking in generated offline HTML doc

* [auto generated] Checking in generated offline HTML doc

* mike comments

* patricia comments

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: AnuBose <[email protected]>
  • Loading branch information
AnuBose and AnuBose authored Jan 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b75b7cb commit 53b5fa7
Showing 8 changed files with 66 additions and 4 deletions.
9 changes: 9 additions & 0 deletions v1/api/swagger/components/schemas/StorageInventory.yaml
Original file line number Diff line number Diff line change
@@ -26,3 +26,12 @@ properties:
type: string
format: uuid
description: Unique ID of the storage pool as listed in the StoragePools array
VolumeCollectionIDs:
description: IDs of the volume collections for this flavor as listed in the Volume collections array
type: array
items:
type: string
format: uuid
example:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
9 changes: 9 additions & 0 deletions v1/api/swagger/components/schemas/VolumeCollection.yaml
Original file line number Diff line number Diff line change
@@ -22,3 +22,12 @@ properties:
Description:
type: string
description: The description of the volume collection resource
StoragePoolIDs:
description: IDs of the storage pools that are valid for this volume collection as listed in the Storage Pools array
type: array
items:
type: string
format: uuid
example:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
4 changes: 2 additions & 2 deletions v1/html/index.html

Large diffs are not rendered by default.

42 changes: 40 additions & 2 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -3194,16 +3194,28 @@ components:
Capacity: 1
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionIDs:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
- FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 1
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionIDs:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
VolumeCollections:
- Description: Description
- StoragePoolIDs:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
Description: Description
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: Name
- Description: Description
- StoragePoolIDs:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
Description: Description
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: Name
@@ -4631,6 +4643,9 @@ components:
Capacity: 1
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionIDs:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
properties:
FlavorID:
description: Unique ID of a volume flavor as listed in the the VolumeFlavors
@@ -4651,6 +4666,16 @@ components:
array
format: uuid
type: string
VolumeCollectionIDs:
description: IDs of the volume collections for this flavor as listed in
the Volume collections array
example:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
items:
format: uuid
type: string
type: array
required:
- Capacity
- FlavorID
@@ -4716,6 +4741,9 @@ components:
VolumeCollection:
description: Volume collection within a data center location
example:
StoragePoolIDs:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
Description: Description
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
@@ -4737,6 +4765,16 @@ components:
Description:
description: The description of the volume collection resource
type: string
StoragePoolIDs:
description: IDs of the storage pools that are valid for this volume collection
as listed in the Storage Pools array
example:
- 7dc2567a-9756-40b9-ab9f-ba66492fb3f7
- a6d87f06-c141-4a26-a9df-4803dc446a83
items:
format: uuid
type: string
type: array
required:
- Description
- ID
1 change: 1 addition & 0 deletions v1/pkg/client/docs/StorageInventory.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**LocationID** | **string** | Unique ID of a data center location |
**Capacity** | **int64** | Total capacity available (in GiB) to create new volumes of the indicated flavor at the indicated location |
**StoragePoolID** | **string** | Unique ID of the storage pool as listed in the StoragePools array |
**VolumeCollectionIDs** | **[]string** | IDs of the volume collections for this flavor as listed in the Volume collections array | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

1 change: 1 addition & 0 deletions v1/pkg/client/docs/VolumeCollection.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Name** | **string** | The name of the volume collection resource |
**LocationID** | **string** | The location ID of the data center where the volume collection resides |
**Description** | **string** | The description of the volume collection resource |
**StoragePoolIDs** | **[]string** | IDs of the storage pools that are valid for this volume collection as listed in the Storage Pools array | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 2 additions & 0 deletions v1/pkg/client/model_storage_inventory.go
Original file line number Diff line number Diff line change
@@ -20,4 +20,6 @@ type StorageInventory struct {
Capacity int64 `json:"Capacity"`
// Unique ID of the storage pool as listed in the StoragePools array
StoragePoolID string `json:"StoragePoolID"`
// IDs of the volume collections for this flavor as listed in the Volume collections array
VolumeCollectionIDs []string `json:"VolumeCollectionIDs,omitempty"`
}
2 changes: 2 additions & 0 deletions v1/pkg/client/model_volume_collection.go
Original file line number Diff line number Diff line change
@@ -20,4 +20,6 @@ type VolumeCollection struct {
LocationID string `json:"LocationID"`
// The description of the volume collection resource
Description string `json:"Description"`
// IDs of the storage pools that are valid for this volume collection as listed in the Storage Pools array
StoragePoolIDs []string `json:"StoragePoolIDs,omitempty"`
}

0 comments on commit 53b5fa7

Please sign in to comment.