Skip to content

Commit

Permalink
change allocation capacity to float (#67)
Browse files Browse the repository at this point in the history
* change allocation caapcity to float

* Bump go version

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: Neil Gierman <neil.gierman@hpe.com>
Co-authored-by: neilgierman <neilgierman@users.noreply.github.com>
Co-authored-by: chaitra-mylarappachar <65302544+chaitra-mylarappachar@users.noreply.github.com>
  • Loading branch information
4 people authored Feb 9, 2023
1 parent 502ff78 commit 92d3db9
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ jobs:
[auto generated] Checking in generated offline HTML doc
BRANCH_REF: ${{ github.event.pull_request.head.ref }}
REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion v1/api/swagger/components/schemas/AllocationStorage.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: object
description: allocation of storage for each PCE service.
description: Allocation of storage for each PCE service.
properties:
ResourceType:
type: string
Expand Down
4 changes: 3 additions & 1 deletion v1/api/swagger/components/schemas/ServiceStorageInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ properties:
type: integer
description: Allocated number of volumes.
AllocatedCapacity:
type: integer
type: number
format: float
minimum: 0.0
description: Total capacity of all allocated volumes in TB for a service type.
2 changes: 1 addition & 1 deletion v1/html/index.html

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3112,16 +3112,16 @@ components:
type: array
type: object
AllocationStorage:
description: allocation of storage for each PCE service.
description: Allocation of storage for each PCE service.
example:
InstanceFamily: Performance Optimized Block
AllocationInfo:
- AllocatedCount: 1
ServiceType: BMaaS
AllocatedCapacity: 5
AllocatedCapacity: 0.5962134
- AllocatedCount: 1
ServiceType: BMaaS
AllocatedCapacity: 5
AllocatedCapacity: 0.5962134
Total: 0.8008282
ResourceType: ResourceType
Available: 0.6027456
Expand Down Expand Up @@ -4196,7 +4196,7 @@ components:
example:
AllocatedCount: 1
ServiceType: BMaaS
AllocatedCapacity: 5
AllocatedCapacity: 0.5962134
properties:
ServiceType:
description: Service type consuming the resource
Expand All @@ -4208,7 +4208,9 @@ components:
AllocatedCapacity:
description: Total capacity of all allocated volumes in TB for a service
type.
type: integer
format: float
minimum: 0.0
type: number
type: object
HostServerPort:
properties:
Expand Down
2 changes: 1 addition & 1 deletion v1/pkg/client/docs/ServiceStorageInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ServiceType** | **string** | Service type consuming the resource | [optional]
**AllocatedCount** | **int32** | Allocated number of volumes. | [optional]
**AllocatedCapacity** | **int32** | Total capacity of all allocated volumes in TB for a service type. | [optional]
**AllocatedCapacity** | **float32** | Total capacity of all allocated volumes in TB for a service type. | [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
2 changes: 1 addition & 1 deletion v1/pkg/client/model_allocation_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

package client
// AllocationStorage allocation of storage for each PCE service.
// AllocationStorage Allocation of storage for each PCE service.
type AllocationStorage struct {
// Type of the resource the allocation information is listed for.
ResourceType string `json:"ResourceType,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion v1/pkg/client/model_service_storage_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ type ServiceStorageInfo struct {
// Allocated number of volumes.
AllocatedCount int32 `json:"AllocatedCount,omitempty"`
// Total capacity of all allocated volumes in TB for a service type.
AllocatedCapacity int32 `json:"AllocatedCapacity,omitempty"`
AllocatedCapacity float32 `json:"AllocatedCapacity,omitempty"`
}

0 comments on commit 92d3db9

Please sign in to comment.