Skip to content

Commit

Permalink
remove machineID from newHost (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-saito authored Mar 18, 2024
1 parent 7c93703 commit fdd9ec3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
4 changes: 0 additions & 4 deletions v1/api/swagger/components/schemas/NewHost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ properties:
MachineInventory array provided by the get /available-resources call to
find a location with an adequate inventory of machines with the desired
machine size.
MachineID:
type: string
format: uuid
description: The machine ID is normally not used.
SSHKeyIDs:
type: array
description: >-
Expand Down
5 changes: 2 additions & 3 deletions v1/html/index.html

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2834,7 +2834,6 @@ components:
- $ref: '#/components/schemas/Host_allOf'
NewHost:
example:
MachineID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Description: Description of new Host
NetworkUntagged: 046b6c7f-0b8a-43b9-b35d-6489e6daee92
UserData: UserData
Expand Down Expand Up @@ -2908,10 +2907,6 @@ components:
machine size.
format: uuid
type: string
MachineID:
description: The machine ID is normally not used.
format: uuid
type: string
SSHKeyIDs:
description: These IDs must correspond to the IDs for SSH keys already created
within the context of the project. These SSH keys and those included
Expand Down
1 change: 0 additions & 1 deletion v1/pkg/client/docs/NewHost.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Name | Type | Description | Notes
**ServiceID** | **string** | The image service identifier must be identifer of one of the available imaging services provided by the AvailableImage array returned as part of the get /available-resources call. Images are typically described by category (e.g. Linux), flavor (e.g. ubuntu) and version (e.g. 18.04-20190807) |
**LocationID** | **string** | The location ID must be one of those provided by the LocationInfo array returned as part of the get /available-resources call. The locations are typically described by country, region, and data center. The location ID must also be one that has sufficient inventory for the selected MachineSize. See the MachineInventory array as returned by the get /available-resources call to select a location that has machines available with the correct machine size. |
**MachineSizeID** | **string** | The machine size ID must be one of those listed in the MachineSizes array returned as part of the get /available-resources call. This array provides the name and detailed description for each machine size. Use the MachineInventory array provided by the get /available-resources call to find a location with an adequate inventory of machines with the desired machine size. |
**MachineID** | **string** | The machine ID is normally not used. | [optional]
**SSHKeyIDs** | **[]string** | These IDs must correspond to the IDs for SSH keys already created within the context of the project. These SSH keys and those included as SSHAuthorizedKeys will be used together to provision SSH keys when the machine is imaged. |
**NetworkIDs** | **[]string** | The list of IDs corresponding to the networks that will be provisioned to the host. These networks must be among those listed in the Networks array returned by the get /available-resources call. This list must include the ID for any network identified by the HostUseEnum as Required. |
**PreAllocatedIPs** | **[]string** | A list of pre-allocated IP addresses to be used for corresponding networks. This array of IP addresses, if present, is in one-to-one correspondence with Networks. | [optional]
Expand Down
2 changes: 0 additions & 2 deletions v1/pkg/client/model_new_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ type NewHost struct {
LocationID string `json:"LocationID"`
// The machine size ID must be one of those listed in the MachineSizes array returned as part of the get /available-resources call. This array provides the name and detailed description for each machine size. Use the MachineInventory array provided by the get /available-resources call to find a location with an adequate inventory of machines with the desired machine size.
MachineSizeID string `json:"MachineSizeID"`
// The machine ID is normally not used.
MachineID string `json:"MachineID,omitempty"`
// These IDs must correspond to the IDs for SSH keys already created within the context of the project. These SSH keys and those included as SSHAuthorizedKeys will be used together to provision SSH keys when the machine is imaged.
SSHKeyIDs []string `json:"SSHKeyIDs"`
// The list of IDs corresponding to the networks that will be provisioned to the host. These networks must be among those listed in the Networks array returned by the get /available-resources call. This list must include the ID for any network identified by the HostUseEnum as Required.
Expand Down

0 comments on commit fdd9ec3

Please sign in to comment.