From 53b5fa7409f5a4991a3df95a1bb6a78817dae0b1 Mon Sep 17 00:00:00 2001 From: AnuBose Date: Wed, 10 Jan 2024 12:08:37 -0600 Subject: [PATCH] changes for adding volume collection with pool information (#101) * 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 --- .../components/schemas/StorageInventory.yaml | 9 ++++ .../components/schemas/VolumeCollection.yaml | 9 ++++ v1/html/index.html | 4 +- v1/pkg/client/api/openapi.yaml | 42 ++++++++++++++++++- v1/pkg/client/docs/StorageInventory.md | 1 + v1/pkg/client/docs/VolumeCollection.md | 1 + v1/pkg/client/model_storage_inventory.go | 2 + v1/pkg/client/model_volume_collection.go | 2 + 8 files changed, 66 insertions(+), 4 deletions(-) diff --git a/v1/api/swagger/components/schemas/StorageInventory.yaml b/v1/api/swagger/components/schemas/StorageInventory.yaml index d2d775c0..925be26a 100644 --- a/v1/api/swagger/components/schemas/StorageInventory.yaml +++ b/v1/api/swagger/components/schemas/StorageInventory.yaml @@ -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 diff --git a/v1/api/swagger/components/schemas/VolumeCollection.yaml b/v1/api/swagger/components/schemas/VolumeCollection.yaml index 96d65212..4390073a 100644 --- a/v1/api/swagger/components/schemas/VolumeCollection.yaml +++ b/v1/api/swagger/components/schemas/VolumeCollection.yaml @@ -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 diff --git a/v1/html/index.html b/v1/html/index.html index 0c46e772..38b88f4f 100644 --- a/v1/html/index.html +++ b/v1/html/index.html @@ -2798,7 +2798,7 @@

Option 2: Getting the token directly from UI

Response samples

Content type
application/json
{
  • "Images": [
    ],
  • "Locations": [
    ],
  • "Networks": [
    ],
  • "MachineSizes": [
    ],
  • "VolumeFlavors": [
    ],
  • "Volumes": [
    ],
  • "MachineInventory": [
    ],
  • "StorageInventory": [
    ],
  • "SSHKeys": [
    ],
  • "StoragePools": [
    ],
  • "VolumeCollections": [
    ]
}

usage-reports

Operations related to retrieving information about resource usage within the project.

+
https://client.greenlake.hpe.com{basePath}/available-resources

Response samples

Content type
application/json
{
  • "Images": [
    ],
  • "Locations": [
    ],
  • "Networks": [
    ],
  • "MachineSizes": [
    ],
  • "VolumeFlavors": [
    ],
  • "Volumes": [
    ],
  • "MachineInventory": [
    ],
  • "StorageInventory": [
    ],
  • "SSHKeys": [
    ],
  • "StoragePools": [
    ],
  • "VolumeCollections": [
    ]
}

usage-reports

Operations related to retrieving information about resource usage within the project.

Get a usage report

Creates and returns a usage report based on the parameters passed in the request body

Authorizations:
(BearerAuthProject) (BearerAuthMembership)
query Parameters
start
required
string

Start of the billing period

end
string

End of the billing period, default to now if omitted

@@ -2934,7 +2934,7 @@

Option 2: Getting the token directly from UI

Response samples

Content type
application/json
{
  • "message": "string",
  • "details": "string"
}