Skip to content

Commit

Permalink
US46899 - Update metal client (#73)
Browse files Browse the repository at this point in the history
* US46899-Included OS Service Image

* US46899-Refactored v1 models to have separate struct based on the purpose

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed update models

* US46899-Rigenerated client

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed formatting

* US46899-Fixed formatting

* [auto generated] Checking in generated offline HTML doc

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed UpdateHost

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed NewHost

* US46899-Generated client

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed OsServiceImage

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed typo in project

* [auto generated] Checking in generated offline HTML doc

* [auto generated] Checking in generated offline HTML doc

* US46899-Updated services path

* US46899-Fixed generated code

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed typo

* US46899-Fixed generated code

* US46899-Fixed generated code

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed typo on service POST

* [auto generated] Checking in generated offline HTML doc

* US46899-Fixed typo on service update

* [auto generated] Checking in generated offline HTML doc

* US46899-Included space name for service create

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: dbozzato81 <[email protected]>
  • Loading branch information
dbozzato81 and dbozzato81 authored Apr 13, 2023
1 parent b4a0f70 commit b1464cc
Show file tree
Hide file tree
Showing 326 changed files with 6,601 additions and 918 deletions.
8 changes: 8 additions & 0 deletions v1/api/swagger/components/schemas/Algorithm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: string
enum:
- sha256sum
- sha512sum
description: >-
The algorithm used to generate the Image Signature.
Currently sha256sum and sha512sum are supported.
example: sha512sum
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/Allocation.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
type: object
description: allocation of servers for each PCE service.
required:
- ResourceType
- Total
- InstanceFamily
- InstanceType
- Available
- AllocationInfo
properties:
ResourceType:
type: string
Expand Down
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/AllocationStorage.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
type: object
description: Allocation of storage for each PCE service.
required:
- ResourceType
- Total
- InstanceFamily
- InstanceType
- Available
- AllocationInfo
properties:
ResourceType:
type: string
Expand Down
20 changes: 20 additions & 0 deletions v1/api/swagger/components/schemas/AttributeRule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type: object
description: >-
Describes a machine classifier attribute rule.
required:
- Attribute
- Value
- Operator
properties:
Attribute:
type: string
description: The machine attribute.
example: model
Value:
type: string
description: The value for the attribute.
example: Gen10
Operator:
$ref: ClassifierOperator.yaml
description: >-
Describes the operator used for comparison.
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/AvailableImage.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
type: object
description: Entry describing an available imaging service
required:
- ID
- Category
- Flavor
- Version
- Description
properties:
ID:
type: string
Expand Down
10 changes: 10 additions & 0 deletions v1/api/swagger/components/schemas/AvailableNetwork.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
type: object
description: Entry of a network available within a data center location
required:
- ID
- Name
- LocationID
- Description
- HostUse
- Purpose
- IPPoolID
- VLAN
- VNI
properties:
ID:
type: string
Expand Down
10 changes: 10 additions & 0 deletions v1/api/swagger/components/schemas/AvailableResources.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
type: object
required:
- Images
- Locations
- Networks
- MachineSizes
- VolumeFlavors
- Volumes
- MachineInventory
- StorageInventory
- SSHKeys
properties:
Images:
type: array
Expand Down
9 changes: 9 additions & 0 deletions v1/api/swagger/components/schemas/BondMode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: string
enum:
- ""
- none
- balance-xor
- balance-tlb
example: "none"
description: >-
Specifies the policy indicating how bonding slaves are used during network transmission.
9 changes: 9 additions & 0 deletions v1/api/swagger/components/schemas/BootMethod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: string
enum:
- pxe
- uefi-shell
- svc-os
- na
example: na
description: >-
Indicates how the service expects the machine to be booted.
20 changes: 20 additions & 0 deletions v1/api/swagger/components/schemas/ClassifierOperator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type: string
enum:
- contains
- containsnocase
- omits
- omitsnocase
- startswith
- startswithnocase
- endswith
- endswithnocase
- ==
- '!='
- <
- <=
- '>'
- '>='
- match
example: contains
description: >-
The operator used for comparison.
32 changes: 32 additions & 0 deletions v1/api/swagger/components/schemas/DiskPartitions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
type: object
description: Disk partition to be created on the host.
required:
- Device
- Description
- StartOffset
- TableType
- Partitions
properties:
Device:
type: string
example: /dev/sda
description: >-
Indicates the device name of the disk of the form /dev/sdX as known by the os e.g. /dev/sda
This is the default device that will be used to deploy the OS Image to the host.
The default value may be overridden when creating the host by a UUID/NAA/EUI
logical volume ID (BootDeviceID).
Description:
type: string
StartOffset:
type: integer
format: int64
example: 0
description: >-
StartOffset is the offset from the start of the disk to the first partition,
if zero a default of 1 MiB (2048 sectors) will be used, units bytes.
TableType:
$ref: PartitionTable.yaml
Partitions:
type: array
items:
$ref: Partition.yaml
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/Encoding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: string
enum:
- base64
- hex
- none
example: base64
description: Describes how a file's contents may be encoded.
63 changes: 63 additions & 0 deletions v1/api/swagger/components/schemas/FileInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
type: object
description: >-
Information about the file associated with the OS service image.
required:
- ID
- Path
- FileSize
- DownloadTimeout
- Signature
- Algorithm
- Expand
- DisplayURL
- SecureURL
properties:
ID:
type: string
format: uuid
description: >-
Unique ID of this FileInfo.
example: 046b6c7f-0b8a-43b9-b35d-6489e6daee92
Path:
type: string
description: >-
Depending upon the service approach, this is either
the mount-path where the file should be placed or
the relative URL where it should be served.
example: image.tgz
FileSize:
type: integer
description: >-
Size of the files in bytes.
example: 934960345
DownloadTimeout:
type: integer
format: int64
description: >-
Maximum amount of time in seconds to download the Service image.
example: 32000
Signature:
type: string
description: >-
The signature (checksum) of the image to download.
This ensure the integrity and authenticity of the images downloaded.
example: 5260deb631d6a9f29bca14043d406bea36d704677dff4cae1a4d48dc568406eb
Algorithm:
$ref: Algorithm.yaml
Expand:
type: boolean
description: >-
Indicates if the file is compressed and should be expanded
using the filename suffix in the Path as a guide.
example: true
DisplayURL:
type: string
description: >-
URL of the file that should be returned in REST response or used for display purpose.
The file is downloaded from this URL only when SecureURL is not set.
example: s3://bmmas-images20210506193558893900000003/images/linux/ubuntu/18.04-20220404/v2-kiwi-ubuntu18.04-15616.04_appliance.x86_64-1.16.4.tar.gz
SecureURL:
type: string
description: >-
URL of the file that should be kept secret.
If this field is set, it will be used for accessing the file and DisplayURL will be ignored.
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/FlavorDesc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
type: object
description: Describes the details of machine size or volume flavor
required:
- Collection
- Banner1
- Banner2
- Bullets
- InfoLink
- Tooltip
properties:
Collection:
type: string
Expand Down
2 changes: 1 addition & 1 deletion v1/api/swagger/components/schemas/HealthStatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ enum:
- OK
- Warning
- Critical
- Unknown
- Unknown
35 changes: 29 additions & 6 deletions v1/api/swagger/components/schemas/Host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,37 @@ allOf:
- type: object
required:
- Description
- ServiceID
- ServiceFlavor
- ServiceVersion
- LocationID
- MachineSizeName
- MachineSizeID
- MachineID
- SSHKeyIDs
- SSHAuthorizedKeys
- NetworkIDs
- NetworkForDefaultRoute
- NetworkUntagged
- PreAllocatedIPs
- ServiceNetsProviderMAC
- UserData
- NodeID
- ISCSIConfig
- Connections
- Deleted
- PortalCommOkay
- PowerStatus
- State
- Substate
- StateTime
- SubstateTime
- Progress
- Alert
- AlertInfo
- Workflow
- SummaryStatus
- Labels
properties:
Description:
type: string
Expand Down Expand Up @@ -162,9 +190,4 @@ allOf:
$ref: ./HealthStatus.yaml
description: Host health summary status
Labels:
type: object
additionalProperties:
type: string
description: The map of label name to label value for the host.
example:
serviceType: BMaaS
$ref: ./Labels.yaml
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/HostAlertInfo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
type: object
required:
- Alert
- State
- Substate
- Message
- Time
- Ack
properties:
Alert:
type: string
Expand Down
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/HostConnection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
type: object
required:
- Name
- Ports
- HA
- Speed
- Networks
properties:
Name:
type: string
Expand Down
3 changes: 3 additions & 0 deletions v1/api/swagger/components/schemas/HostISCSIConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ type: object
nullable: true
required:
- InitiatorName
- CHAPSecret
- CHAPUser
- ISCSIDiscoveryAddress
properties:
InitiatorName:
type: string
Expand Down
13 changes: 13 additions & 0 deletions v1/api/swagger/components/schemas/HostNetworkConnection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
type: object
required:
- Name
- NetworkID
- IP
- Subnet
- Netmask
- Gateway
- DNS
- VLAN
- VNI
- Untagged
- Proxy
- NoProxy
properties:
Name:
type: string
Expand Down
3 changes: 3 additions & 0 deletions v1/api/swagger/components/schemas/HostServerPort.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
type: object
required:
- Name
- HWAddr
properties:
Name:
type: string
Expand Down
5 changes: 5 additions & 0 deletions v1/api/swagger/components/schemas/HostUsageEntry.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
allOf:
- $ref: ./UsageEntryBase.yaml
- type: object
required:
- MachineSizeName
- MachineSizeID
- HostName
- HostID
properties:
MachineSizeName:
type: string
Expand Down
Loading

0 comments on commit b1464cc

Please sign in to comment.