diff --git a/services/iaasalpha/api_default.go b/services/iaasalpha/api_default.go index ae7bee249..5bafc74c8 100644 --- a/services/iaasalpha/api_default.go +++ b/services/iaasalpha/api_default.go @@ -14003,9 +14003,17 @@ type ApiListImagesRequest struct { ctx context.Context apiService *DefaultApiService projectId string + all *bool labelSelector *string } +// List all Images. + +func (r ApiListImagesRequest) All(all bool) ApiListImagesRequest { + r.all = &all + return r +} + // Filter resources by labels. func (r ApiListImagesRequest) LabelSelector(labelSelector string) ApiListImagesRequest { @@ -14039,6 +14047,9 @@ func (r ApiListImagesRequest) Execute() (*ImageListResponse, error) { return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") } + if r.all != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "all", r.all, "") + } if r.labelSelector != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "") } @@ -15879,30 +15890,49 @@ func (a *APIClient) ListProjectNICsExecute(ctx context.Context, projectId string return r.Execute() } -type ApiListPublicIPRangesRequest struct { - ctx context.Context - apiService *DefaultApiService +type ApiListPublicIPsRequest struct { + ctx context.Context + apiService *DefaultApiService + projectId string + labelSelector *string } -func (r ApiListPublicIPRangesRequest) Execute() (*PublicNetworkListResponse, error) { +// Filter resources by labels. + +func (r ApiListPublicIPsRequest) LabelSelector(labelSelector string) ApiListPublicIPsRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiListPublicIPsRequest) Execute() (*PublicIpListResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PublicNetworkListResponse + localVarReturnValue *PublicIpListResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListPublicIPRanges") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListPublicIPs") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1alpha1/networks/public-ip-ranges" + localVarPath := localBasePath + "/v1alpha1/projects/{projectId}/public-ips" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if strlen(r.projectId) < 36 { + return localVarReturnValue, fmt.Errorf("projectId must have at least 36 elements") + } + if strlen(r.projectId) > 36 { + return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16023,71 +16053,55 @@ func (r ApiListPublicIPRangesRequest) Execute() (*PublicNetworkListResponse, err } /* -ListPublicIPRanges: List all public IP ranges. +ListPublicIPs: List all public IPs inside a project. -Get a list of all public IP ranges that STACKIT uses. +Get a list of all public IPs inside a project. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListPublicIPRangesRequest + @param projectId The identifier (ID) of a STACKIT Project. + @return ApiListPublicIPsRequest */ -func (a *APIClient) ListPublicIPRanges(ctx context.Context) ApiListPublicIPRangesRequest { - return ApiListPublicIPRangesRequest{ +func (a *APIClient) ListPublicIPs(ctx context.Context, projectId string) ApiListPublicIPsRequest { + return ApiListPublicIPsRequest{ apiService: a.defaultApi, ctx: ctx, + projectId: projectId, } } -func (a *APIClient) ListPublicIPRangesExecute(ctx context.Context) (*PublicNetworkListResponse, error) { - r := ApiListPublicIPRangesRequest{ +func (a *APIClient) ListPublicIPsExecute(ctx context.Context, projectId string) (*PublicIpListResponse, error) { + r := ApiListPublicIPsRequest{ apiService: a.defaultApi, ctx: ctx, + projectId: projectId, } return r.Execute() } -type ApiListPublicIPsRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - labelSelector *string -} - -// Filter resources by labels. - -func (r ApiListPublicIPsRequest) LabelSelector(labelSelector string) ApiListPublicIPsRequest { - r.labelSelector = &labelSelector - return r +type ApiListPublicIpRangesRequest struct { + ctx context.Context + apiService *DefaultApiService } -func (r ApiListPublicIPsRequest) Execute() (*PublicIpListResponse, error) { +func (r ApiListPublicIpRangesRequest) Execute() (*PublicNetworkListResponse, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PublicIpListResponse + localVarReturnValue *PublicNetworkListResponse ) a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListPublicIPs") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListPublicIpRanges") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1alpha1/projects/{projectId}/public-ips" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) + localVarPath := localBasePath + "/v1alpha1/networks/public-ip-ranges" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if strlen(r.projectId) < 36 { - return localVarReturnValue, fmt.Errorf("projectId must have at least 36 elements") - } - if strlen(r.projectId) > 36 { - return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") - } - if r.labelSelector != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16208,27 +16222,24 @@ func (r ApiListPublicIPsRequest) Execute() (*PublicIpListResponse, error) { } /* -ListPublicIPs: List all public IPs inside a project. +ListPublicIpRanges: List all public IP ranges. -Get a list of all public IPs inside a project. +Get a list of all public IP ranges that STACKIT uses. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The identifier (ID) of a STACKIT Project. - @return ApiListPublicIPsRequest + @return ApiListPublicIpRangesRequest */ -func (a *APIClient) ListPublicIPs(ctx context.Context, projectId string) ApiListPublicIPsRequest { - return ApiListPublicIPsRequest{ +func (a *APIClient) ListPublicIpRanges(ctx context.Context) ApiListPublicIpRangesRequest { + return ApiListPublicIpRangesRequest{ apiService: a.defaultApi, ctx: ctx, - projectId: projectId, } } -func (a *APIClient) ListPublicIPsExecute(ctx context.Context, projectId string) (*PublicIpListResponse, error) { - r := ApiListPublicIPsRequest{ +func (a *APIClient) ListPublicIpRangesExecute(ctx context.Context) (*PublicNetworkListResponse, error) { + r := ApiListPublicIpRangesRequest{ apiService: a.defaultApi, ctx: ctx, - projectId: projectId, } return r.Execute() } diff --git a/services/iaasalpha/api_default_test.go b/services/iaasalpha/api_default_test.go index 642e2c21d..c418d523b 100644 --- a/services/iaasalpha/api_default_test.go +++ b/services/iaasalpha/api_default_test.go @@ -4447,12 +4447,14 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { } }) - t.Run("Test DefaultApiService ListPublicIPRanges", func(t *testing.T) { - path := "/v1alpha1/networks/public-ip-ranges" + t.Run("Test DefaultApiService ListPublicIPs", func(t *testing.T) { + path := "/v1alpha1/projects/{projectId}/public-ips" + projectIdValue := "projectId" + path = strings.Replace(path, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) testDefaultApiServeMux := http.NewServeMux() testDefaultApiServeMux.HandleFunc(path, func(w http.ResponseWriter, req *http.Request) { - data := PublicNetworkListResponse{} + data := PublicIpListResponse{} w.Header().Add("Content-Type", "application/json") json.NewEncoder(w).Encode(data) }) @@ -4485,7 +4487,9 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Fatalf("creating API client: %v", err) } - resp, reqErr := apiClient.ListPublicIPRanges(context.Background()).Execute() + projectId := "projectId" + + resp, reqErr := apiClient.ListPublicIPs(context.Background(), projectId).Execute() if reqErr != nil { t.Fatalf("error in call: %v", reqErr) @@ -4495,14 +4499,12 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { } }) - t.Run("Test DefaultApiService ListPublicIPs", func(t *testing.T) { - path := "/v1alpha1/projects/{projectId}/public-ips" - projectIdValue := "projectId" - path = strings.Replace(path, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) + t.Run("Test DefaultApiService ListPublicIpRanges", func(t *testing.T) { + path := "/v1alpha1/networks/public-ip-ranges" testDefaultApiServeMux := http.NewServeMux() testDefaultApiServeMux.HandleFunc(path, func(w http.ResponseWriter, req *http.Request) { - data := PublicIpListResponse{} + data := PublicNetworkListResponse{} w.Header().Add("Content-Type", "application/json") json.NewEncoder(w).Encode(data) }) @@ -4535,9 +4537,7 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { t.Fatalf("creating API client: %v", err) } - projectId := "projectId" - - resp, reqErr := apiClient.ListPublicIPs(context.Background(), projectId).Execute() + resp, reqErr := apiClient.ListPublicIpRanges(context.Background()).Execute() if reqErr != nil { t.Fatalf("error in call: %v", reqErr) diff --git a/services/iaasalpha/model_add_volume_to_server_payload.go b/services/iaasalpha/model_add_volume_to_server_payload.go index 1e8743892..25324d567 100644 --- a/services/iaasalpha/model_add_volume_to_server_payload.go +++ b/services/iaasalpha/model_add_volume_to_server_payload.go @@ -33,8 +33,6 @@ type AddVolumeToServerPayload struct { // will change when the set of required properties is changed func NewAddVolumeToServerPayload() *AddVolumeToServerPayload { this := AddVolumeToServerPayload{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } @@ -43,8 +41,6 @@ func NewAddVolumeToServerPayload() *AddVolumeToServerPayload { // but it doesn't guarantee that properties required by API are set func NewAddVolumeToServerPayloadWithDefaults() *AddVolumeToServerPayload { this := AddVolumeToServerPayload{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } diff --git a/services/iaasalpha/model_affinity_group.go b/services/iaasalpha/model_affinity_group.go index b17eade9c..9b736741e 100644 --- a/services/iaasalpha/model_affinity_group.go +++ b/services/iaasalpha/model_affinity_group.go @@ -26,7 +26,7 @@ type AffinityGroup struct { // The name for a General Object. Matches Names and also UUIDs. // REQUIRED Name *string `json:"name"` - // The affinity group policy. + // The affinity group policy. `hard-affinity`: All servers in this group will be hosted on the same compute node. `soft-affinity`: All servers in this group will be hosted on as few compute nodes as possible. `hard-anti-affinity`: All servers in this group will be hosted on different compute nodes. `soft-anti-affinity`: All servers in this group will be hosted on as many compute nodes as possible. Possible values: `hard-anti-affinity`, `hard-affinity`, `soft-anti-affinity`, `soft-affinity`. // REQUIRED Policy *string `json:"policy"` } diff --git a/services/iaasalpha/model_allowed_addresses_inner.go b/services/iaasalpha/model_allowed_addresses_inner.go index 9000e0594..40126c2bf 100644 --- a/services/iaasalpha/model_allowed_addresses_inner.go +++ b/services/iaasalpha/model_allowed_addresses_inner.go @@ -62,7 +62,7 @@ func (src AllowedAddressesInner) MarshalJSON() ([]byte, error) { return json.Marshal(&src.String) } - return nil, nil // no data in oneOf schemas + return []byte("{}"), nil // no data in oneOf schemas => empty JSON object } // Get the actual instance diff --git a/services/iaasalpha/model_area_id.go b/services/iaasalpha/model_area_id.go index c0148571a..3ac3ef3f5 100644 --- a/services/iaasalpha/model_area_id.go +++ b/services/iaasalpha/model_area_id.go @@ -88,7 +88,7 @@ func (src AreaId) MarshalJSON() ([]byte, error) { return json.Marshal(&src.String) } - return nil, nil // no data in oneOf schemas + return []byte("{}"), nil // no data in oneOf schemas => empty JSON object } // Get the actual instance diff --git a/services/iaasalpha/model_backup.go b/services/iaasalpha/model_backup.go index 40206267d..d041fc8c5 100644 --- a/services/iaasalpha/model_backup.go +++ b/services/iaasalpha/model_backup.go @@ -26,7 +26,7 @@ type Backup struct { CreatedAt *time.Time `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` @@ -34,7 +34,7 @@ type Backup struct { Size *int64 `json:"size,omitempty"` // Universally Unique Identifier (UUID). SnapshotId *string `json:"snapshotId,omitempty"` - // The status of a backup object. + // The status of a backup object. Possible values: `AVAILABLE`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_backup_source.go b/services/iaasalpha/model_backup_source.go index e236d903d..be4f7753a 100644 --- a/services/iaasalpha/model_backup_source.go +++ b/services/iaasalpha/model_backup_source.go @@ -22,7 +22,7 @@ type BackupSource struct { // Universally Unique Identifier (UUID). // REQUIRED Id *string `json:"id"` - // The source types of a backup. + // The source types of a backup. Possible values: `volume`, `snapshot`. // REQUIRED Type *string `json:"type"` } diff --git a/services/iaasalpha/model_boot_volume.go b/services/iaasalpha/model_boot_volume.go index 8d557707c..0a5027d1c 100644 --- a/services/iaasalpha/model_boot_volume.go +++ b/services/iaasalpha/model_boot_volume.go @@ -36,8 +36,6 @@ type BootVolume struct { // will change when the set of required properties is changed func NewBootVolume() *BootVolume { this := BootVolume{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } @@ -46,8 +44,6 @@ func NewBootVolume() *BootVolume { // but it doesn't guarantee that properties required by API are set func NewBootVolumeWithDefaults() *BootVolume { this := BootVolume{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } diff --git a/services/iaasalpha/model_boot_volume_source.go b/services/iaasalpha/model_boot_volume_source.go index e1cee12b7..4a86824d2 100644 --- a/services/iaasalpha/model_boot_volume_source.go +++ b/services/iaasalpha/model_boot_volume_source.go @@ -22,7 +22,7 @@ type BootVolumeSource struct { // Universally Unique Identifier (UUID). // REQUIRED Id *string `json:"id"` - // The source types of a boot volume. + // The source types of a boot volume. Possible values: `image`, `volume`. // REQUIRED Type *string `json:"type"` } diff --git a/services/iaasalpha/model_create_affinity_group_payload.go b/services/iaasalpha/model_create_affinity_group_payload.go index 211a23cf4..a29c5f82d 100644 --- a/services/iaasalpha/model_create_affinity_group_payload.go +++ b/services/iaasalpha/model_create_affinity_group_payload.go @@ -26,7 +26,7 @@ type CreateAffinityGroupPayload struct { // The name for a General Object. Matches Names and also UUIDs. // REQUIRED Name *string `json:"name"` - // The affinity group policy. + // The affinity group policy. `hard-affinity`: All servers in this group will be hosted on the same compute node. `soft-affinity`: All servers in this group will be hosted on as few compute nodes as possible. `hard-anti-affinity`: All servers in this group will be hosted on different compute nodes. `soft-anti-affinity`: All servers in this group will be hosted on as many compute nodes as possible. Possible values: `hard-anti-affinity`, `hard-affinity`, `soft-anti-affinity`, `soft-affinity`. // REQUIRED Policy *string `json:"policy"` } diff --git a/services/iaasalpha/model_create_backup_payload.go b/services/iaasalpha/model_create_backup_payload.go index 596bede50..35ee6d77a 100644 --- a/services/iaasalpha/model_create_backup_payload.go +++ b/services/iaasalpha/model_create_backup_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &CreateBackupPayload{} // CreateBackupPayload Object that represents a backup create request body. type CreateBackupPayload struct { - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_create_image_payload.go b/services/iaasalpha/model_create_image_payload.go index 055fb4c2e..0cd64a52c 100644 --- a/services/iaasalpha/model_create_image_payload.go +++ b/services/iaasalpha/model_create_image_payload.go @@ -24,12 +24,12 @@ type CreateImagePayload struct { Config *ImageConfig `json:"config,omitempty"` // Date-time when resource was created. CreatedAt *time.Time `json:"createdAt,omitempty"` - // Object that represents a disk format. + // Object that represents a disk format. Possible values: `raw`, `qcow2`, `iso`. // REQUIRED DiskFormat *string `json:"diskFormat"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Size in Gigabyte. MinDiskSize *int64 `json:"minDiskSize,omitempty"` @@ -41,9 +41,11 @@ type CreateImagePayload struct { // Universally Unique Identifier (UUID). Owner *string `json:"owner,omitempty"` Protected *bool `json:"protected,omitempty"` - // Scope of an Image. + // Scope of an Image. Possible values: `public`, `local`, `projects`, `organization`. Scope *string `json:"scope,omitempty"` - // The status of an image object. + // Size in bytes. + Size *int64 `json:"size,omitempty"` + // The status of an image object. Possible values: `AVAILABLE`, `CREATING`, `DEACTIVATED`, `DELETED`, `DELETING`, `ERROR`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` @@ -438,6 +440,38 @@ func (o *CreateImagePayload) SetScope(v *string) { o.Scope = v } +// GetSize returns the Size field value if set, zero value otherwise. +func (o *CreateImagePayload) GetSize() *int64 { + if o == nil || IsNil(o.Size) { + var ret *int64 + return ret + } + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateImagePayload) GetSizeOk() (*int64, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *CreateImagePayload) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *CreateImagePayload) SetSize(v *int64) { + o.Size = v +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *CreateImagePayload) GetStatus() *string { if o == nil || IsNil(o.Status) { @@ -536,6 +570,9 @@ func (o CreateImagePayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.Scope) { toSerialize["scope"] = o.Scope } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } diff --git a/services/iaasalpha/model_create_key_pair_payload.go b/services/iaasalpha/model_create_key_pair_payload.go index 5f72936c3..eb0c18119 100644 --- a/services/iaasalpha/model_create_key_pair_payload.go +++ b/services/iaasalpha/model_create_key_pair_payload.go @@ -24,7 +24,7 @@ type CreateKeyPairPayload struct { CreatedAt *time.Time `json:"createdAt,omitempty"` // Object that represents an SSH keypair MD5 fingerprint. Fingerprint *string `json:"fingerprint,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_create_network_area_payload.go b/services/iaasalpha/model_create_network_area_payload.go index f44292e75..4e6fb0e9e 100644 --- a/services/iaasalpha/model_create_network_area_payload.go +++ b/services/iaasalpha/model_create_network_area_payload.go @@ -21,7 +21,7 @@ var _ MappedNullable = &CreateNetworkAreaPayload{} type CreateNetworkAreaPayload struct { // REQUIRED AddressFamily *CreateAreaAddressFamily `json:"addressFamily"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaasalpha/model_create_network_payload.go b/services/iaasalpha/model_create_network_payload.go index 4c59902cb..cd0a4f015 100644 --- a/services/iaasalpha/model_create_network_payload.go +++ b/services/iaasalpha/model_create_network_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &CreateNetworkPayload{} // CreateNetworkPayload Object that represents the request body for a network create. type CreateNetworkPayload struct { AddressFamily *CreateNetworkAddressFamily `json:"addressFamily,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaasalpha/model_create_nic_payload.go b/services/iaasalpha/model_create_nic_payload.go index 23928e931..411538807 100644 --- a/services/iaasalpha/model_create_nic_payload.go +++ b/services/iaasalpha/model_create_nic_payload.go @@ -29,7 +29,7 @@ type CreateNicPayload struct { Ipv4 *string `json:"ipv4,omitempty"` // Object that represents an IPv6 address. Ipv6 *string `json:"ipv6,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Object that represents an MAC address. Mac *string `json:"mac,omitempty"` diff --git a/services/iaasalpha/model_create_protocol.go b/services/iaasalpha/model_create_protocol.go index 4c2cb05d8..088a6e00c 100644 --- a/services/iaasalpha/model_create_protocol.go +++ b/services/iaasalpha/model_create_protocol.go @@ -88,7 +88,7 @@ func (src CreateProtocol) MarshalJSON() ([]byte, error) { return json.Marshal(&src.String) } - return nil, nil // no data in oneOf schemas + return []byte("{}"), nil // no data in oneOf schemas => empty JSON object } // Get the actual instance diff --git a/services/iaasalpha/model_create_public_ip_payload.go b/services/iaasalpha/model_create_public_ip_payload.go index 864b9f646..e64d5cc02 100644 --- a/services/iaasalpha/model_create_public_ip_payload.go +++ b/services/iaasalpha/model_create_public_ip_payload.go @@ -23,7 +23,7 @@ type CreatePublicIPPayload struct { Id *string `json:"id,omitempty"` // Object that represents an IP address. Ip *string `json:"ip,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Universally Unique Identifier (UUID). NetworkInterface *NullableString `json:"networkInterface,omitempty"` diff --git a/services/iaasalpha/model_create_security_group_payload.go b/services/iaasalpha/model_create_security_group_payload.go index 5de179ad7..44d82f292 100644 --- a/services/iaasalpha/model_create_security_group_payload.go +++ b/services/iaasalpha/model_create_security_group_payload.go @@ -26,7 +26,7 @@ type CreateSecurityGroupPayload struct { Description *string `json:"description,omitempty"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaasalpha/model_create_server_payload.go b/services/iaasalpha/model_create_server_payload.go index 2bcf530f7..d3ff4b391 100644 --- a/services/iaasalpha/model_create_server_payload.go +++ b/services/iaasalpha/model_create_server_payload.go @@ -33,9 +33,9 @@ type CreateServerPayload struct { Id *string `json:"id,omitempty"` // Universally Unique Identifier (UUID). ImageId *string `json:"imageId,omitempty"` - // The name for a General Object. Matches Names and also UUIDs. + // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. KeypairName *string `json:"keypairName,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Date-time when resource was launched. LaunchedAt *time.Time `json:"launchedAt,omitempty"` @@ -49,13 +49,13 @@ type CreateServerPayload struct { Networking *CreateServerPayloadNetworking `json:"networking,omitempty"` // A list of networks attached to a server. Nics *[]ServerNetwork `json:"nics,omitempty"` - // The power status of a server. + // The power status of a server. Possible values: `CRASHED`, `ERROR`, `RUNNING`, `STOPPED`. PowerStatus *string `json:"powerStatus,omitempty"` // A list of General Objects. SecurityGroups *[]string `json:"securityGroups,omitempty"` // A list of service account mails. ServiceAccountMails *[]string `json:"serviceAccountMails,omitempty"` - // The status of a server object. + // The status of a server object. Possible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_create_server_payload_boot_volume.go b/services/iaasalpha/model_create_server_payload_boot_volume.go index 633f932b9..87a17db6a 100644 --- a/services/iaasalpha/model_create_server_payload_boot_volume.go +++ b/services/iaasalpha/model_create_server_payload_boot_volume.go @@ -36,8 +36,6 @@ type CreateServerPayloadBootVolume struct { // will change when the set of required properties is changed func NewCreateServerPayloadBootVolume() *CreateServerPayloadBootVolume { this := CreateServerPayloadBootVolume{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } @@ -46,8 +44,6 @@ func NewCreateServerPayloadBootVolume() *CreateServerPayloadBootVolume { // but it doesn't guarantee that properties required by API are set func NewCreateServerPayloadBootVolumeWithDefaults() *CreateServerPayloadBootVolume { this := CreateServerPayloadBootVolume{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } diff --git a/services/iaasalpha/model_create_server_payload_networking.go b/services/iaasalpha/model_create_server_payload_networking.go index afb41e771..88abe93bf 100644 --- a/services/iaasalpha/model_create_server_payload_networking.go +++ b/services/iaasalpha/model_create_server_payload_networking.go @@ -88,7 +88,7 @@ func (src CreateServerPayloadNetworking) MarshalJSON() ([]byte, error) { return json.Marshal(&src.CreateServerNetworkingWithNics) } - return nil, nil // no data in oneOf schemas + return []byte("{}"), nil // no data in oneOf schemas => empty JSON object } // Get the actual instance diff --git a/services/iaasalpha/model_create_snapshot_payload.go b/services/iaasalpha/model_create_snapshot_payload.go index b1d97900d..9454c8fbf 100644 --- a/services/iaasalpha/model_create_snapshot_payload.go +++ b/services/iaasalpha/model_create_snapshot_payload.go @@ -24,13 +24,13 @@ type CreateSnapshotPayload struct { CreatedAt *time.Time `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` // Size in Gigabyte. Size *int64 `json:"size,omitempty"` - // The status of a snapshot object. + // The status of a snapshot object. Possible values: `AVAILABLE`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`, `UNMANAGING`, `UPDATING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_create_virtual_ip_payload.go b/services/iaasalpha/model_create_virtual_ip_payload.go index 86dde9cdb..64884ee62 100644 --- a/services/iaasalpha/model_create_virtual_ip_payload.go +++ b/services/iaasalpha/model_create_virtual_ip_payload.go @@ -23,7 +23,7 @@ type CreateVirtualIPPayload struct { Id *string `json:"id,omitempty"` // Object that represents an IP address. Ip *string `json:"ip,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // A list of UUIDs. Members *[]string `json:"members,omitempty"` @@ -31,7 +31,7 @@ type CreateVirtualIPPayload struct { Name *string `json:"name,omitempty"` // Universally Unique Identifier (UUID). Network *string `json:"network,omitempty"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. Status *string `json:"status,omitempty"` } diff --git a/services/iaasalpha/model_create_volume_payload.go b/services/iaasalpha/model_create_volume_payload.go index 8b4963ddd..f02c264b6 100644 --- a/services/iaasalpha/model_create_volume_payload.go +++ b/services/iaasalpha/model_create_volume_payload.go @@ -32,7 +32,7 @@ type CreateVolumePayload struct { // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` ImageConfig *ImageConfig `json:"imageConfig,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` @@ -43,7 +43,7 @@ type CreateVolumePayload struct { // Size in Gigabyte. Size *int64 `json:"size,omitempty"` Source *VolumeSource `json:"source,omitempty"` - // The status of a volume object. + // The status of a volume object. Possible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_image.go b/services/iaasalpha/model_image.go index 0ec94b296..f0d9a1613 100644 --- a/services/iaasalpha/model_image.go +++ b/services/iaasalpha/model_image.go @@ -24,12 +24,12 @@ type Image struct { Config *ImageConfig `json:"config,omitempty"` // Date-time when resource was created. CreatedAt *time.Time `json:"createdAt,omitempty"` - // Object that represents a disk format. + // Object that represents a disk format. Possible values: `raw`, `qcow2`, `iso`. // REQUIRED DiskFormat *string `json:"diskFormat"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Size in Gigabyte. MinDiskSize *int64 `json:"minDiskSize,omitempty"` @@ -41,9 +41,11 @@ type Image struct { // Universally Unique Identifier (UUID). Owner *string `json:"owner,omitempty"` Protected *bool `json:"protected,omitempty"` - // Scope of an Image. + // Scope of an Image. Possible values: `public`, `local`, `projects`, `organization`. Scope *string `json:"scope,omitempty"` - // The status of an image object. + // Size in bytes. + Size *int64 `json:"size,omitempty"` + // The status of an image object. Possible values: `AVAILABLE`, `CREATING`, `DEACTIVATED`, `DELETED`, `DELETING`, `ERROR`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` @@ -438,6 +440,38 @@ func (o *Image) SetScope(v *string) { o.Scope = v } +// GetSize returns the Size field value if set, zero value otherwise. +func (o *Image) GetSize() *int64 { + if o == nil || IsNil(o.Size) { + var ret *int64 + return ret + } + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Image) GetSizeOk() (*int64, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *Image) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *Image) SetSize(v *int64) { + o.Size = v +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *Image) GetStatus() *string { if o == nil || IsNil(o.Status) { @@ -536,6 +570,9 @@ func (o Image) ToMap() (map[string]interface{}, error) { if !IsNil(o.Scope) { toSerialize["scope"] = o.Scope } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } diff --git a/services/iaasalpha/model_image_config.go b/services/iaasalpha/model_image_config.go index 4de9351eb..775590c0f 100644 --- a/services/iaasalpha/model_image_config.go +++ b/services/iaasalpha/model_image_config.go @@ -19,7 +19,9 @@ var _ MappedNullable = &ImageConfig{} // ImageConfig Properties to set hardware and scheduling settings for an Image. type ImageConfig struct { - // Enables the BIOS bootmenu. + // Represents CPU architecture. The default for new images is x86. + Architecture *string `json:"architecture,omitempty"` + // Enables the BIOS bootmenu. The default for new images is disabled. BootMenu *bool `json:"bootMenu,omitempty"` // Sets CDROM bus controller type. CdromBus *NullableString `json:"cdromBus,omitempty"` @@ -37,13 +39,13 @@ type ImageConfig struct { RescueBus *NullableString `json:"rescueBus,omitempty"` // Sets the device when the image is used as a rescue image. RescueDevice *NullableString `json:"rescueDevice,omitempty"` - // Enables Secure Boot. + // Enables Secure Boot. The default for new images is disabled. SecureBoot *bool `json:"secureBoot,omitempty"` - // Enables UEFI boot. + // Configure UEFI boot. The default for new images is enabled. Uefi *bool `json:"uefi,omitempty"` // Sets Graphic device model. VideoModel *NullableString `json:"videoModel,omitempty"` - // Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block. + // Enables the use of VirtIO SCSI to provide block device access. By default servers use VirtIO Block. VirtioScsi *bool `json:"virtioScsi,omitempty"` } @@ -53,14 +55,6 @@ type ImageConfig struct { // will change when the set of required properties is changed func NewImageConfig() *ImageConfig { this := ImageConfig{} - var bootMenu bool = false - this.BootMenu = &bootMenu - var secureBoot bool = false - this.SecureBoot = &secureBoot - var uefi bool = false - this.Uefi = &uefi - var virtioScsi bool = false - this.VirtioScsi = &virtioScsi return &this } @@ -69,17 +63,41 @@ func NewImageConfig() *ImageConfig { // but it doesn't guarantee that properties required by API are set func NewImageConfigWithDefaults() *ImageConfig { this := ImageConfig{} - var bootMenu bool = false - this.BootMenu = &bootMenu - var secureBoot bool = false - this.SecureBoot = &secureBoot - var uefi bool = false - this.Uefi = &uefi - var virtioScsi bool = false - this.VirtioScsi = &virtioScsi return &this } +// GetArchitecture returns the Architecture field value if set, zero value otherwise. +func (o *ImageConfig) GetArchitecture() *string { + if o == nil || IsNil(o.Architecture) { + var ret *string + return ret + } + return o.Architecture +} + +// GetArchitectureOk returns a tuple with the Architecture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImageConfig) GetArchitectureOk() (*string, bool) { + if o == nil || IsNil(o.Architecture) { + return nil, false + } + return o.Architecture, true +} + +// HasArchitecture returns a boolean if a field has been set. +func (o *ImageConfig) HasArchitecture() bool { + if o != nil && !IsNil(o.Architecture) { + return true + } + + return false +} + +// SetArchitecture gets a reference to the given string and assigns it to the Architecture field. +func (o *ImageConfig) SetArchitecture(v *string) { + o.Architecture = v +} + // GetBootMenu returns the BootMenu field value if set, zero value otherwise. func (o *ImageConfig) GetBootMenu() *bool { if o == nil || IsNil(o.BootMenu) { @@ -658,6 +676,9 @@ func (o *ImageConfig) SetVirtioScsi(v *bool) { func (o ImageConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Architecture) { + toSerialize["architecture"] = o.Architecture + } if !IsNil(o.BootMenu) { toSerialize["bootMenu"] = o.BootMenu } diff --git a/services/iaasalpha/model_keypair.go b/services/iaasalpha/model_keypair.go index 1bf51147b..58ab4d02b 100644 --- a/services/iaasalpha/model_keypair.go +++ b/services/iaasalpha/model_keypair.go @@ -24,7 +24,7 @@ type Keypair struct { CreatedAt *time.Time `json:"createdAt,omitempty"` // Object that represents an SSH keypair MD5 fingerprint. Fingerprint *string `json:"fingerprint,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_network.go b/services/iaasalpha/model_network.go index 1568848c3..b164a40ff 100644 --- a/services/iaasalpha/model_network.go +++ b/services/iaasalpha/model_network.go @@ -26,7 +26,7 @@ type Network struct { Gateway *NullableString `json:"gateway,omitempty"` // The gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway. Gatewayv6 *NullableString `json:"gatewayv6,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // REQUIRED Name *string `json:"name"` @@ -43,7 +43,7 @@ type Network struct { PublicIp *string `json:"publicIp,omitempty"` // Shows if the network is routed and therefore accessible from other networks. Routed *bool `json:"routed,omitempty"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. // REQUIRED State *string `json:"state"` // Date-time when resource was last updated. diff --git a/services/iaasalpha/model_network_area.go b/services/iaasalpha/model_network_area.go index e0916750b..ea3063d0a 100644 --- a/services/iaasalpha/model_network_area.go +++ b/services/iaasalpha/model_network_area.go @@ -26,14 +26,14 @@ type NetworkArea struct { // Date-time when resource was created. CreatedAt *time.Time `json:"createdAt,omitempty"` Ipv4 *NetworkAreaIPv4 `json:"ipv4,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // REQUIRED Name *string `json:"name"` // The amount of projects currently referencing a specific area. // REQUIRED ProjectCount *int64 `json:"projectCount"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. // REQUIRED State *string `json:"state"` // Date-time when resource was last updated. diff --git a/services/iaasalpha/model_nic.go b/services/iaasalpha/model_nic.go index 5a39fa1e5..97afbe9dc 100644 --- a/services/iaasalpha/model_nic.go +++ b/services/iaasalpha/model_nic.go @@ -29,7 +29,7 @@ type NIC struct { Ipv4 *string `json:"ipv4,omitempty"` // Object that represents an IPv6 address. Ipv6 *string `json:"ipv6,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Object that represents an MAC address. Mac *string `json:"mac,omitempty"` diff --git a/services/iaasalpha/model_partial_update_network_area_payload.go b/services/iaasalpha/model_partial_update_network_area_payload.go index 1159860cd..56e03d65c 100644 --- a/services/iaasalpha/model_partial_update_network_area_payload.go +++ b/services/iaasalpha/model_partial_update_network_area_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &PartialUpdateNetworkAreaPayload{} // PartialUpdateNetworkAreaPayload struct for PartialUpdateNetworkAreaPayload type PartialUpdateNetworkAreaPayload struct { AddressFamily *UpdateAreaAddressFamily `json:"addressFamily,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_partial_update_network_payload.go b/services/iaasalpha/model_partial_update_network_payload.go index d00c5dfc9..ae489575d 100644 --- a/services/iaasalpha/model_partial_update_network_payload.go +++ b/services/iaasalpha/model_partial_update_network_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &PartialUpdateNetworkPayload{} // PartialUpdateNetworkPayload Object that represents the request body for a network update. type PartialUpdateNetworkPayload struct { AddressFamily *UpdateNetworkAddressFamily `json:"addressFamily,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_project.go b/services/iaasalpha/model_project.go index dfb9aadae..817aa6151 100644 --- a/services/iaasalpha/model_project.go +++ b/services/iaasalpha/model_project.go @@ -30,7 +30,7 @@ type Project struct { // Universally Unique Identifier (UUID). // REQUIRED ProjectId *string `json:"projectId"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. // REQUIRED State *string `json:"state"` // Date-time when resource was last updated. diff --git a/services/iaasalpha/model_protocol.go b/services/iaasalpha/model_protocol.go index aa423d062..8a92dfc9e 100644 --- a/services/iaasalpha/model_protocol.go +++ b/services/iaasalpha/model_protocol.go @@ -19,7 +19,7 @@ var _ MappedNullable = &Protocol{} // Protocol The schema for a protocol of a security group rule. type Protocol struct { - // The protocol name which the rule should match. + // The protocol name which the rule should match. Possible values: `ah`, `dccp`, `egp`, `esp`, `gre`, `icmp`, `igmp`, `ipip`, `ipv6-encap`, `ipv6-frag`, `ipv6-icmp`, `ipv6-nonxt`, `ipv6-opts`, `ipv6-route`, `ospf`, `pgm`, `rsvp`, `sctp`, `tcp`, `udp`, `udplite`, `vrrp`. Name *string `json:"name,omitempty"` // The protocol number which the rule should match. Number *int64 `json:"number,omitempty"` diff --git a/services/iaasalpha/model_public_ip.go b/services/iaasalpha/model_public_ip.go index 73a2b3f78..45e972c4f 100644 --- a/services/iaasalpha/model_public_ip.go +++ b/services/iaasalpha/model_public_ip.go @@ -23,7 +23,7 @@ type PublicIp struct { Id *string `json:"id,omitempty"` // Object that represents an IP address. Ip *string `json:"ip,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Universally Unique Identifier (UUID). NetworkInterface *NullableString `json:"networkInterface,omitempty"` diff --git a/services/iaasalpha/model_request.go b/services/iaasalpha/model_request.go index 59f3d87a7..03c0885b6 100644 --- a/services/iaasalpha/model_request.go +++ b/services/iaasalpha/model_request.go @@ -20,18 +20,18 @@ var _ MappedNullable = &Request{} // Request Object that represents a request. type Request struct { Details *string `json:"details,omitempty"` - // Object that represents a resource action. + // Object that represents a resource action. Possible values: `CREATE`, `DELETE`, `UPDATE`. // REQUIRED RequestAction *string `json:"requestAction"` // Identifier (ID) representing a single API request. // REQUIRED RequestId *string `json:"requestId"` - // Object that represents a resource type. + // Object that represents a resource type. Possible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`. // REQUIRED RequestType *string `json:"requestType"` // REQUIRED Resources *[]RequestResource `json:"resources"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. // REQUIRED Status *string `json:"status"` } diff --git a/services/iaasalpha/model_request_resource.go b/services/iaasalpha/model_request_resource.go index f2a408f05..502bc8095 100644 --- a/services/iaasalpha/model_request_resource.go +++ b/services/iaasalpha/model_request_resource.go @@ -22,10 +22,10 @@ type RequestResource struct { // Universally Unique Identifier (UUID). // REQUIRED Id *string `json:"id"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. // REQUIRED Status *string `json:"status"` - // Object that represents a resource type. + // Object that represents a resource type. Possible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`. // REQUIRED Type *string `json:"type"` } diff --git a/services/iaasalpha/model_route.go b/services/iaasalpha/model_route.go index fcb130c19..69fdd08e9 100644 --- a/services/iaasalpha/model_route.go +++ b/services/iaasalpha/model_route.go @@ -22,7 +22,7 @@ var _ MappedNullable = &Route{} type Route struct { // Date-time when resource was created. CreatedAt *time.Time `json:"createdAt,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Object that represents an IP address. // REQUIRED diff --git a/services/iaasalpha/model_security_group.go b/services/iaasalpha/model_security_group.go index c982f86b8..8dd857831 100644 --- a/services/iaasalpha/model_security_group.go +++ b/services/iaasalpha/model_security_group.go @@ -26,7 +26,7 @@ type SecurityGroup struct { Description *string `json:"description,omitempty"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaasalpha/model_server.go b/services/iaasalpha/model_server.go index 6ab723241..eeff24951 100644 --- a/services/iaasalpha/model_server.go +++ b/services/iaasalpha/model_server.go @@ -33,9 +33,9 @@ type Server struct { Id *string `json:"id,omitempty"` // Universally Unique Identifier (UUID). ImageId *string `json:"imageId,omitempty"` - // The name for a General Object. Matches Names and also UUIDs. + // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. KeypairName *string `json:"keypairName,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Date-time when resource was launched. LaunchedAt *time.Time `json:"launchedAt,omitempty"` @@ -49,13 +49,13 @@ type Server struct { Networking *CreateServerPayloadNetworking `json:"networking,omitempty"` // A list of networks attached to a server. Nics *[]ServerNetwork `json:"nics,omitempty"` - // The power status of a server. + // The power status of a server. Possible values: `CRASHED`, `ERROR`, `RUNNING`, `STOPPED`. PowerStatus *string `json:"powerStatus,omitempty"` // A list of General Objects. SecurityGroups *[]string `json:"securityGroups,omitempty"` // A list of service account mails. ServiceAccountMails *[]string `json:"serviceAccountMails,omitempty"` - // The status of a server object. + // The status of a server object. Possible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_server_network.go b/services/iaasalpha/model_server_network.go index 4d02925a2..eacba3ff4 100644 --- a/services/iaasalpha/model_server_network.go +++ b/services/iaasalpha/model_server_network.go @@ -67,8 +67,6 @@ func NewServerNetwork(mac *string, networkId *string, networkName *string, nicId // but it doesn't guarantee that properties required by API are set func NewServerNetworkWithDefaults() *ServerNetwork { this := ServerNetwork{} - var nicSecurity bool = true - this.NicSecurity = &nicSecurity return &this } diff --git a/services/iaasalpha/model_snapshot.go b/services/iaasalpha/model_snapshot.go index 0a0f9569e..755884e89 100644 --- a/services/iaasalpha/model_snapshot.go +++ b/services/iaasalpha/model_snapshot.go @@ -24,13 +24,13 @@ type Snapshot struct { CreatedAt *time.Time `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` // Size in Gigabyte. Size *int64 `json:"size,omitempty"` - // The status of a snapshot object. + // The status of a snapshot object. Possible values: `AVAILABLE`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`, `UNMANAGING`, `UPDATING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_update_attached_volume_payload.go b/services/iaasalpha/model_update_attached_volume_payload.go index 40a2405e3..081a0da0f 100644 --- a/services/iaasalpha/model_update_attached_volume_payload.go +++ b/services/iaasalpha/model_update_attached_volume_payload.go @@ -33,8 +33,6 @@ type UpdateAttachedVolumePayload struct { // will change when the set of required properties is changed func NewUpdateAttachedVolumePayload() *UpdateAttachedVolumePayload { this := UpdateAttachedVolumePayload{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } @@ -43,8 +41,6 @@ func NewUpdateAttachedVolumePayload() *UpdateAttachedVolumePayload { // but it doesn't guarantee that properties required by API are set func NewUpdateAttachedVolumePayloadWithDefaults() *UpdateAttachedVolumePayload { this := UpdateAttachedVolumePayload{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } diff --git a/services/iaasalpha/model_update_backup_payload.go b/services/iaasalpha/model_update_backup_payload.go index ad09b2c35..c8fd21c66 100644 --- a/services/iaasalpha/model_update_backup_payload.go +++ b/services/iaasalpha/model_update_backup_payload.go @@ -26,7 +26,7 @@ type UpdateBackupPayload struct { CreatedAt *time.Time `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` @@ -34,7 +34,7 @@ type UpdateBackupPayload struct { Size *int64 `json:"size,omitempty"` // Universally Unique Identifier (UUID). SnapshotId *string `json:"snapshotId,omitempty"` - // The status of a backup object. + // The status of a backup object. Possible values: `AVAILABLE`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_update_image_payload.go b/services/iaasalpha/model_update_image_payload.go index 9f82ca103..ad3bb8b05 100644 --- a/services/iaasalpha/model_update_image_payload.go +++ b/services/iaasalpha/model_update_image_payload.go @@ -20,9 +20,9 @@ var _ MappedNullable = &UpdateImagePayload{} // UpdateImagePayload Object that represents an update request body of an Image. type UpdateImagePayload struct { Config *ImageConfig `json:"config,omitempty"` - // Object that represents a disk format. + // Object that represents a disk format. Possible values: `raw`, `qcow2`, `iso`. DiskFormat *string `json:"diskFormat,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Size in Gigabyte. MinDiskSize *int64 `json:"minDiskSize,omitempty"` diff --git a/services/iaasalpha/model_update_key_pair_payload.go b/services/iaasalpha/model_update_key_pair_payload.go index 80768d2d0..61f1c2fc9 100644 --- a/services/iaasalpha/model_update_key_pair_payload.go +++ b/services/iaasalpha/model_update_key_pair_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &UpdateKeyPairPayload{} // UpdateKeyPairPayload Object that represents an update request body of a public key of an SSH keypair. type UpdateKeyPairPayload struct { - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` } diff --git a/services/iaasalpha/model_update_nic_payload.go b/services/iaasalpha/model_update_nic_payload.go index 978e429e9..0879f24a0 100644 --- a/services/iaasalpha/model_update_nic_payload.go +++ b/services/iaasalpha/model_update_nic_payload.go @@ -21,7 +21,7 @@ var _ MappedNullable = &UpdateNicPayload{} type UpdateNicPayload struct { // A list of IPs or CIDR notations. AllowedAddresses *[]AllowedAddressesInner `json:"allowedAddresses,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_update_public_ip_payload.go b/services/iaasalpha/model_update_public_ip_payload.go index ee58e8131..184276f6c 100644 --- a/services/iaasalpha/model_update_public_ip_payload.go +++ b/services/iaasalpha/model_update_public_ip_payload.go @@ -23,7 +23,7 @@ type UpdatePublicIPPayload struct { Id *string `json:"id,omitempty"` // Object that represents an IP address. Ip *string `json:"ip,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // Universally Unique Identifier (UUID). NetworkInterface *NullableString `json:"networkInterface,omitempty"` diff --git a/services/iaasalpha/model_update_security_group_payload.go b/services/iaasalpha/model_update_security_group_payload.go index 8358df1e5..0d98de5c7 100644 --- a/services/iaasalpha/model_update_security_group_payload.go +++ b/services/iaasalpha/model_update_security_group_payload.go @@ -21,7 +21,7 @@ var _ MappedNullable = &UpdateSecurityGroupPayload{} type UpdateSecurityGroupPayload struct { // Description Object. Allows string up to 127 Characters. Description *string `json:"description,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_update_server_payload.go b/services/iaasalpha/model_update_server_payload.go index a0be49e13..53985e1ab 100644 --- a/services/iaasalpha/model_update_server_payload.go +++ b/services/iaasalpha/model_update_server_payload.go @@ -19,9 +19,9 @@ var _ MappedNullable = &UpdateServerPayload{} // UpdateServerPayload Object that represents an update request body of a server. type UpdateServerPayload struct { - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` - // The name for a General Object. Matches Names and also UUIDs. + // The name for a Server. Name *string `json:"name,omitempty"` } diff --git a/services/iaasalpha/model_update_snapshot_payload.go b/services/iaasalpha/model_update_snapshot_payload.go index 477538baa..53fbf8268 100644 --- a/services/iaasalpha/model_update_snapshot_payload.go +++ b/services/iaasalpha/model_update_snapshot_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &UpdateSnapshotPayload{} // UpdateSnapshotPayload Object that represents an update request body of a snapshot. type UpdateSnapshotPayload struct { - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` diff --git a/services/iaasalpha/model_update_virtual_ip_payload.go b/services/iaasalpha/model_update_virtual_ip_payload.go index 9a3abee54..1ab164095 100644 --- a/services/iaasalpha/model_update_virtual_ip_payload.go +++ b/services/iaasalpha/model_update_virtual_ip_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &UpdateVirtualIPPayload{} // UpdateVirtualIPPayload Object that represents a virtual IP update request body. type UpdateVirtualIPPayload struct { - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // A list of UUIDs. Members *[]string `json:"members,omitempty"` diff --git a/services/iaasalpha/model_update_volume_payload.go b/services/iaasalpha/model_update_volume_payload.go index 92e37fe9e..6e5765c60 100644 --- a/services/iaasalpha/model_update_volume_payload.go +++ b/services/iaasalpha/model_update_volume_payload.go @@ -24,7 +24,7 @@ type UpdateVolumePayload struct { // Description Object. Allows string up to 127 Characters. Description *string `json:"description,omitempty"` ImageConfig *ImageConfig `json:"imageConfig,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` @@ -36,8 +36,6 @@ type UpdateVolumePayload struct { // will change when the set of required properties is changed func NewUpdateVolumePayload() *UpdateVolumePayload { this := UpdateVolumePayload{} - var bootable bool = false - this.Bootable = &bootable return &this } @@ -46,8 +44,6 @@ func NewUpdateVolumePayload() *UpdateVolumePayload { // but it doesn't guarantee that properties required by API are set func NewUpdateVolumePayloadWithDefaults() *UpdateVolumePayload { this := UpdateVolumePayload{} - var bootable bool = false - this.Bootable = &bootable return &this } diff --git a/services/iaasalpha/model_v1alpha1_update_route_of_area_payload.go b/services/iaasalpha/model_v1alpha1_update_route_of_area_payload.go index 96aadb5aa..2d7db6dab 100644 --- a/services/iaasalpha/model_v1alpha1_update_route_of_area_payload.go +++ b/services/iaasalpha/model_v1alpha1_update_route_of_area_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &V1alpha1UpdateRouteOfAreaPayload{} // V1alpha1UpdateRouteOfAreaPayload Object that represents the request body for a route update. type V1alpha1UpdateRouteOfAreaPayload struct { - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` } diff --git a/services/iaasalpha/model_virtual_ip.go b/services/iaasalpha/model_virtual_ip.go index 42a9d6df1..cd6e44d82 100644 --- a/services/iaasalpha/model_virtual_ip.go +++ b/services/iaasalpha/model_virtual_ip.go @@ -23,7 +23,7 @@ type VirtualIp struct { Id *string `json:"id,omitempty"` // Object that represents an IP address. Ip *string `json:"ip,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // A list of UUIDs. Members *[]string `json:"members,omitempty"` @@ -31,7 +31,7 @@ type VirtualIp struct { Name *string `json:"name,omitempty"` // Universally Unique Identifier (UUID). Network *string `json:"network,omitempty"` - // The state of a resource object. + // The state of a resource object. Possible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`. Status *string `json:"status,omitempty"` } diff --git a/services/iaasalpha/model_volume.go b/services/iaasalpha/model_volume.go index 131fc24be..e9fff4977 100644 --- a/services/iaasalpha/model_volume.go +++ b/services/iaasalpha/model_volume.go @@ -32,7 +32,7 @@ type Volume struct { // Universally Unique Identifier (UUID). Id *string `json:"id,omitempty"` ImageConfig *ImageConfig `json:"imageConfig,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` @@ -43,7 +43,7 @@ type Volume struct { // Size in Gigabyte. Size *int64 `json:"size,omitempty"` Source *VolumeSource `json:"source,omitempty"` - // The status of a volume object. + // The status of a volume object. Possible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`. Status *string `json:"status,omitempty"` // Date-time when resource was last updated. UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/services/iaasalpha/model_volume_attachment.go b/services/iaasalpha/model_volume_attachment.go index ac88398fb..3e9ecbb5e 100644 --- a/services/iaasalpha/model_volume_attachment.go +++ b/services/iaasalpha/model_volume_attachment.go @@ -33,8 +33,6 @@ type VolumeAttachment struct { // will change when the set of required properties is changed func NewVolumeAttachment() *VolumeAttachment { this := VolumeAttachment{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } @@ -43,8 +41,6 @@ func NewVolumeAttachment() *VolumeAttachment { // but it doesn't guarantee that properties required by API are set func NewVolumeAttachmentWithDefaults() *VolumeAttachment { this := VolumeAttachment{} - var deleteOnTermination bool = false - this.DeleteOnTermination = &deleteOnTermination return &this } diff --git a/services/iaasalpha/model_volume_performance_class.go b/services/iaasalpha/model_volume_performance_class.go index 94c43568b..3fdc5b474 100644 --- a/services/iaasalpha/model_volume_performance_class.go +++ b/services/iaasalpha/model_volume_performance_class.go @@ -23,7 +23,7 @@ type VolumePerformanceClass struct { Description *string `json:"description,omitempty"` // Input/Output Operations per second. Iops *int64 `json:"iops,omitempty"` - // Object that represents the labels of an object. + // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaasalpha/model_volume_source.go b/services/iaasalpha/model_volume_source.go index 7d5a9f003..a39540466 100644 --- a/services/iaasalpha/model_volume_source.go +++ b/services/iaasalpha/model_volume_source.go @@ -22,7 +22,7 @@ type VolumeSource struct { // Universally Unique Identifier (UUID). // REQUIRED Id *string `json:"id"` - // The source types of a volume. + // The source types of a volume. Possible values: `image`, `volume`, `snapshot`, `backup`. // REQUIRED Type *string `json:"type"` }