Skip to content

Commit

Permalink
add volume collection (#94)
Browse files Browse the repository at this point in the history
* add volume collection

* add vc for update

* [auto generated] Checking in generated offline HTML doc

* patricia comments

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: Anuradha Bose <anuradha,[email protected]>
Co-authored-by: AnuBose <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent 54cb850 commit af2bc4d
Show file tree
Hide file tree
Showing 28 changed files with 202 additions and 17 deletions.
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/AddVolume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ properties:
The storage pool is one of those listed by the StoragePools array returned
as part of the get /available-resources call that are available to create
volumes of the specified flavor and location.
VolumeCollectionID:
type: string
format: uuid
description: >-
The optional volume collection is one of those listed by the VolumeCollections
array returned as part of the get /available-resources call
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/AvailableResources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ required:
- StorageInventory
- SSHKeys
- StoragePools
- VolumeCollections
properties:
Images:
type: array
Expand Down Expand Up @@ -67,3 +68,8 @@ properties:
description: Array listing the available storage pools
items:
$ref: ./StoragePool.yaml
VolumeCollections:
type: array
description: Array listing the available volume collections
items:
$ref: ./VolumeCollection.yaml
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/NewVolume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ properties:
The storage pool is one of those listed by the StoragePools array returned
as part of the get /available-resources call that are available to create
volumes of the specified flavor and location.
VolumeCollectionID:
type: string
format: uuid
description: >-
The optional volume collection is one of those listed by the VolumeCollections
array returned as part of the get /available-resources call
5 changes: 5 additions & 0 deletions v1/api/swagger/components/schemas/UpdateVolume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ allOf:
example: 10485760
minimum: 0
description: The size of the volume in KiB
VolumeCollectionID:
type: string
format: uuid
example: 90be909e-4609-40f5-9630-f24910dc8591
description: The volume collection the volume is a part of
Labels:
type: object
additionalProperties:
Expand Down
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/Volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ allOf:
of those listed by the LocationInfo array returned as part of the get
/available-resources call. Any volumes must be in the same location as
their attached Host.
VolumeCollectionID:
type: string
format: uuid
description: >-
The optional volume collection ID matching an entry in the VolumeCollections array
returned as part of the get /available-resources call
State:
$ref: ./VolumeState.yaml
SubState:
Expand Down
19 changes: 19 additions & 0 deletions v1/api/swagger/components/schemas/VolumeCollection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
type: object
description: Volume collection within a data center location
required:
- ID
- Name
- Description
properties:
ID:
type: string
format: uuid
description: The ID of the volume collection resource that can be used while
creating a volume
Name:
type: string
description: The name of the volume collection resource
Description:
type: string
description: The description of the volume collection resource
5 changes: 5 additions & 0 deletions v1/api/swagger/components/schemas/VolumeInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ required:
- Capacity
- Shareable
- LocationID
- VolumeCollectionID
- DiscoveryIP
- TargetIQN
- State
Expand Down Expand Up @@ -47,6 +48,10 @@ properties:
type: string
format: uuid
description: The location ID of the data center where the volume exists
VolumeCollectionID:
type: string
format: uuid
description: The ID of volume collection of which this volume is a member
DiscoveryIP:
type: string
description: The discovery IP for the iSCSI volume
Expand Down
18 changes: 10 additions & 8 deletions v1/html/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions v1/pkg/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ Class | Method | HTTP request | Description
- [VolumeAttachHostUuid](docs/VolumeAttachHostUuid.md)
- [VolumeAttachment](docs/VolumeAttachment.md)
- [VolumeAttachmentAllOf](docs/VolumeAttachmentAllOf.md)
- [VolumeCollection](docs/VolumeCollection.md)
- [VolumeFlavor](docs/VolumeFlavor.md)
- [VolumeFlavorsInfo](docs/VolumeFlavorsInfo.md)
- [VolumeInfo](docs/VolumeInfo.md)
Expand Down
89 changes: 80 additions & 9 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2909,12 +2909,14 @@ components:
Description: Description of New Volume
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 10
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: NewVolumeName
- Shareable: true
Description: Description of New Volume
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 10
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: NewVolumeName
ServiceNetsProviderMAC:
Expand Down Expand Up @@ -3087,25 +3089,27 @@ components:
Name: Private
Volumes:
- TargetIQN: TargetIQN
Description: Description
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: MyVolume
Shareable: true
DiscoveryIP: DiscoveryIP
Description: Description
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 0
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: MyVolume
- TargetIQN: TargetIQN
Description: Description
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: MyVolume
Shareable: true
DiscoveryIP: DiscoveryIP
Description: Description
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 0
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: MyVolume
MachineSizes:
- Details:
Banner2: Banner2 value
Expand Down Expand Up @@ -3190,6 +3194,13 @@ components:
Capacity: 1
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollections:
- Description: Description
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: Name
- Description: Description
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: Name
SSHKeys:
- ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Key: |
Expand Down Expand Up @@ -3262,6 +3273,11 @@ components:
items:
$ref: '#/components/schemas/StoragePool'
type: array
VolumeCollections:
description: Array listing the available volume collections
items:
$ref: '#/components/schemas/VolumeCollection'
type: array
required:
- Images
- Locations
Expand All @@ -3271,6 +3287,7 @@ components:
- SSHKeys
- StorageInventory
- StoragePools
- VolumeCollections
- VolumeFlavors
- Volumes
type: object
Expand All @@ -3285,6 +3302,7 @@ components:
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 10
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Labels:
serviceType: BMaaS
region: us-west-2
Expand Down Expand Up @@ -3335,6 +3353,12 @@ components:
to create volumes of the specified flavor and location.
format: uuid
type: string
VolumeCollectionID:
description: 'The optional volume collection is one of those listed by
the VolumeCollections array returned as part of the get /available-resources
call '
format: uuid
type: string
required:
- Capacity
- FlavorID
Expand Down Expand Up @@ -4231,6 +4255,7 @@ components:
Description: Description of New Volume
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 10
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: NewVolumeName
properties:
Expand Down Expand Up @@ -4261,6 +4286,12 @@ components:
to create volumes of the specified flavor and location.
format: uuid
type: string
VolumeCollectionID:
description: 'The optional volume collection is one of those listed by
the VolumeCollections array returned as part of the get /available-resources
call '
format: uuid
type: string
type: object
UpdateHostISCSIConfig:
nullable: true
Expand Down Expand Up @@ -4482,15 +4513,16 @@ components:
description: Description of the details about a pre-existing volume
example:
TargetIQN: TargetIQN
Description: Description
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: MyVolume
Shareable: true
DiscoveryIP: DiscoveryIP
Description: Description
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 0
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VolumeCollectionID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StoragePoolID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: MyVolume
properties:
ID:
description: |
Expand Down Expand Up @@ -4524,6 +4556,10 @@ components:
description: The location ID of the data center where the volume exists
format: uuid
type: string
VolumeCollectionID:
description: The ID of volume collection of which this volume is a member
format: uuid
type: string
DiscoveryIP:
description: The discovery IP for the iSCSI volume
type: string
Expand All @@ -4547,6 +4583,7 @@ components:
- Status
- StoragePoolID
- TargetIQN
- VolumeCollectionID
type: object
MachineInventory:
description: An entry describing the number of machines of a particular machine
Expand Down Expand Up @@ -4664,6 +4701,29 @@ components:
- ID
- Name
type: object
VolumeCollection:
description: Volume collection within a data center location
example:
Description: Description
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Name: Name
properties:
ID:
description: The ID of the volume collection resource that can be used while
creating a volume
format: uuid
type: string
Name:
description: The name of the volume collection resource
type: string
Description:
description: The description of the volume collection resource
type: string
required:
- Description
- ID
- Name
type: object
VolumeState:
description: Current volume state expressed as a string enum value (new, allocating,
allocated, visible, deleting, deleted, failed)
Expand Down Expand Up @@ -6378,6 +6438,12 @@ components:
as their attached Host.
format: uuid
type: string
VolumeCollectionID:
description: The optional volume collection ID matching an entry in the
VolumeCollections array returned as part of the get /available-resources
call
format: uuid
type: string
State:
$ref: '#/components/schemas/VolumeState'
SubState:
Expand Down Expand Up @@ -6414,6 +6480,11 @@ components:
format: int64
minimum: 0
type: integer
VolumeCollectionID:
description: The volume collection the volume is a part of
example: 90be909e-4609-40f5-9630-f24910dc8591
format: uuid
type: string
Labels:
additionalProperties:
type: string
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/AddVolume.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**Capacity** | **int64** | The size of the volume in GiB | [optional]
**Shareable** | **bool** | Indicates if the volume can be attached to multiple hosts | [optional]
**StoragePoolID** | **string** | The storage pool is one of those listed by the StoragePools array returned as part of the get /available-resources call that are available to create volumes of the specified flavor and location. | [optional]
**VolumeCollectionID** | **string** | The optional volume collection is one of those listed by the VolumeCollections array returned as part of the get /available-resources call | [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)

Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/AvailableResources.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**StorageInventory** | [**[]StorageInventory**](StorageInventory.md) | Array providing information on the amount of available storage of each flavor in each location |
**SSHKeys** | [**[]SshKeyEntry**](SSHKeyEntry.md) | Array listing pre-defined SSH keys that could be referenced when creating a Host |
**StoragePools** | [**[]StoragePool**](StoragePool.md) | Array listing the available storage pools |
**VolumeCollections** | [**[]VolumeCollection**](VolumeCollection.md) | Array listing the available volume collections |

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

Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/NewVolume.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**LocationID** | **string** | The location of the volume (and the storage array) LocationID is one of those listed by the LocationInfo array returned as part of the get /available-resources call. Any volumes must be in the same location as their attached Host. |
**Labels** | **map[string]string** | The map of service/user specified label name to label value for this volume. Setting service labels is restricted by role. | [optional]
**StoragePoolID** | **string** | The storage pool is one of those listed by the StoragePools array returned as part of the get /available-resources call that are available to create volumes of the specified flavor and location. | [optional]
**VolumeCollectionID** | **string** | The optional volume collection is one of those listed by the VolumeCollections array returned as part of the get /available-resources call | [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)

Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/UpdateVolume.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**ETag** | **string** | Used to determine whether the DB entry has changed since it was last read. This value is updated each time the resource is updated. Client must send this value unchanged for any update operation. |
**Name** | **string** | Common name for the resource instance. Must be 128 or fewer printable characters |
**Capacity** | **int64** | The size of the volume in KiB |
**VolumeCollectionID** | **string** | The volume collection the volume is a part of | [optional]
**Labels** | **map[string]string** | The map of service/user specified label name to label value for this volume. Setting service labels is restricted by role. At minimum, this field should be set to the values specified during create. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/UpdateVolumeAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Capacity** | **int64** | The size of the volume in KiB |
**VolumeCollectionID** | **string** | The volume collection the volume is a part of | [optional]
**Labels** | **map[string]string** | The map of service/user specified label name to label value for this volume. Setting service labels is restricted by role. At minimum, this field should be set to the values specified during create. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/Volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**Capacity** | **int64** | The size of the volume in KiB |
**Shareable** | **bool** | Indicates if the volume can be attached to multiple hosts |
**LocationID** | **string** | The location of the volume (and the storage array) LocationID is one of those listed by the LocationInfo array returned as part of the get /available-resources call. Any volumes must be in the same location as their attached Host. |
**VolumeCollectionID** | **string** | The optional volume collection ID matching an entry in the VolumeCollections array returned as part of the get /available-resources call | [optional]
**State** | [**VolumeState**](VolumeState.md) | |
**SubState** | [**VolumeSubState**](VolumeSubState.md) | |
**Status** | [**VolumeStatus**](VolumeStatus.md) | |
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/VolumeAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**Capacity** | **int64** | The size of the volume in KiB |
**Shareable** | **bool** | Indicates if the volume can be attached to multiple hosts |
**LocationID** | **string** | The location of the volume (and the storage array) LocationID is one of those listed by the LocationInfo array returned as part of the get /available-resources call. Any volumes must be in the same location as their attached Host. |
**VolumeCollectionID** | **string** | The optional volume collection ID matching an entry in the VolumeCollections array returned as part of the get /available-resources call | [optional]
**State** | [**VolumeState**](VolumeState.md) | |
**SubState** | [**VolumeSubState**](VolumeSubState.md) | |
**Status** | [**VolumeStatus**](VolumeStatus.md) | |
Expand Down
13 changes: 13 additions & 0 deletions v1/pkg/client/docs/VolumeCollection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# VolumeCollection

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ID** | **string** | The ID of the volume collection resource that can be used while creating a volume |
**Name** | **string** | The name of the volume collection resource |
**Description** | **string** | The description of the volume collection resource |

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


Loading

0 comments on commit af2bc4d

Please sign in to comment.