-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
US39140-Project machine size limits (#23)
* US39140-Modified swagger definition to account for project machine size limits * US39140-Removed unused files * US39140-Fixed lint * US39140-Implemented comments * US39140-Regenerated code * US39140-Fixed required limts fields * Update v1/api/swagger/components/schemas/Limits.yaml Co-authored-by: Mike Chuang <mchuang3@users.noreply.github.com> * Update v1/api/swagger/components/schemas/ProjectResources.yml Co-authored-by: Mike Chuang <mchuang3@users.noreply.github.com> * US39140-Implemented comments Co-authored-by: Mike Chuang <mchuang3@users.noreply.github.com>
- Loading branch information
1 parent
8f94784
commit f2d287b
Showing
16 changed files
with
170 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
type: object | ||
properties: | ||
Hosts: | ||
type: integer | ||
description: Number of hosts in use | ||
minimum: 0 | ||
Volumes: | ||
type: integer | ||
description: Number of volumes in use | ||
minimum: 0 | ||
VolumeCapacity: | ||
type: integer | ||
format: int64 | ||
description: Volume capacity in use in TiB | ||
minimum: 0 | ||
PrivateNetworks: | ||
type: integer | ||
description: Number of private networks in use | ||
minimum: 0 | ||
InstanceTypes: | ||
type: object | ||
additionalProperties: | ||
type: integer | ||
description: Number of hosts with the instance type in use | ||
example: | ||
046b6c7f-0b8a-43b9-b35d-6489e6daee90: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ProjectResources | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Hosts** | **int32** | Number of hosts in use | [optional] | ||
**Volumes** | **int32** | Number of volumes in use | [optional] | ||
**VolumeCapacity** | **int64** | Volume capacity in use in TiB | [optional] | ||
**PrivateNetworks** | **int32** | Number of private networks in use | [optional] | ||
**InstanceTypes** | **map[string]int32** | Number of hosts with the instance type in use | [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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP | ||
|
||
/* | ||
* HPE GreenLake Metal Client API | ||
* | ||
* This Metal Client REST API provides access to bare metal as-a-service (BMaaS) within a single project context. Clients are able to create fully-provisioned hosts, storage volumes, and project-specific private networks in an isolated project environment. Project-owned resources that can be accessed via this API include... Host, Volume, VolumeAttachment, Network (project private), and SSH Key. Each API call is done within a single project context. The specific Project identifier must be provided within the header of each REST call. The server will validate that the provided authentication credentials (JWTs) are valid for the referenced project before any operation is performed. If a single credential is valid for multiple projects, the client must still reference a single project in the header each API call. Clients can also access information about available services and resources through the AvailableResources object. This object provides detailed information about the OS imaging options, the machine size options, the storage volume options, data center locations, and such that are needed when creating hosts and volumes. Note: All URIs are relative to metal_service_url/rest/v1 | ||
* | ||
* API version: 1.3.8 | ||
* Contact: quake-core@hpe.com | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package client | ||
// ProjectResources struct for ProjectResources | ||
type ProjectResources struct { | ||
// Number of hosts in use | ||
Hosts int32 `json:"Hosts,omitempty"` | ||
// Number of volumes in use | ||
Volumes int32 `json:"Volumes,omitempty"` | ||
// Volume capacity in use in TiB | ||
VolumeCapacity int64 `json:"VolumeCapacity,omitempty"` | ||
// Number of private networks in use | ||
PrivateNetworks int32 `json:"PrivateNetworks,omitempty"` | ||
// Number of hosts with the instance type in use | ||
InstanceTypes map[string]int32 `json:"InstanceTypes,omitempty"` | ||
} |