diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c6436040f..28de23ad71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,30 @@ ## Release (2025-XX-XX) +- `sqlserverflex`: [v1.3.0](services/sqlserverflex/CHANGELOG.md#v130) + - Add `required:"true"` tags to model structs +- `postgresflex`: [v1.2.0](services/postgresflex/CHANGELOG.md#v120) + - Add `required:"true"` tags to model structs +- `cdn`: [v1.3.0](services/cdn/CHANGELOG.md#v130) + - **Feature:** Add `DefaultCacheDuration` field to `Config`, `ConfigPatch`, and `CreateDistributionPayload` models + - Add `required:"true"` tags to model structs +- `redis`: [v0.25.0](services/redis/CHANGELOG.md#v0250) + - Add `required:"true"` tags to model structs +- `rabbitmq`: [v0.25.0](services/rabbitmq/CHANGELOG.md#v0250) + - Add `required:"true"` tags to model structs +- `stackitmarketplace`: [v1.6.0](services/stackitmarketplace/CHANGELOG.md#v160) + - **Feature:** Add new `Assets` model for managing service certificate assets + - **Feature:** Add new `LocalizedVersion` model for localized content management + - **Feature:** Add new `NoticePeriod` model with types: `SAME_DAY`, `DAYS`, `MONTHS` + - **Feature:** Add new `ServiceCertificate` model for service certification + - **Feature:** Add `Assets` field to `CatalogProductDetail` model + - **Feature:** Add `OfferType` field to `CatalogProductDetail` model + - **Feature:** Add `NoticePeriod` field to `CatalogProductPricingOption` model + - Add `required:"true"` tags to model structs +- `dns`: + - [v0.17.0](services/dns/CHANGELOG.md#v0170) + - **Feature:** Add new record set types + - **Feature:** Improve documentation for APEX records in `RecordSet` and `CreateRecordSetPayload` models + - [v0.16.0](services/dns/CHANGELOG.md#v0160) + - Add `required:"true"` tags to model structs - `ske`: - [v0.26.0](services/ske/CHANGELOG.md#v0260) - Add `required:"true"` tags to model structs @@ -31,10 +57,12 @@ - Add `required:"true"` tags to model structs - `logme`: [v0.25.0](services/logme/CHANGELOG.md#v0250) - Add `required:"true"` tags to model structs -- `iaas`: [v0.25.0](services/iaas/CHANGELOG.md#v0250) - - Add `required:"true"` tags to model structs -- `dns`: [v0.16.0](services/dns/CHANGELOG.md#v0160) - - Add `required:"true"` tags to model structs +- `iaas`: + - [v0.26.0](services/iaas/CHANGELOG.md#v0260) + - **Feature:** Add `Metadata` field to `Server`, `CreateServerPayload`, and `UpdateServerPayload` models + - **Feature:** Increase maximum length validation for `machineType` and `volumePerformanceClass` from 63 to 127 characters + - [v0.25.0](services/iaas/CHANGELOG.md#v0250) + - Add `required:"true"` tags to model structs - `authorization`: [v0.8.0](services/authorization/CHANGELOG.md#v080) - Add `required:"true"` tags to model structs - `serviceaccount`: [v0.9.0](services/serviceaccount/CHANGELOG.md#v090) @@ -192,7 +220,7 @@ - **Breaking change:** Introduce interfaces for `APIClient` and the request structs - [v0.22.0](services/opensearch/CHANGELOG.md#v0220-2025-05-14) - **Breaking change:** Introduce typed enum constants for status attributes -- `postgresflex`: [v1.1.0](services/postgresflex/CHANGELOG.md#v110-2025-05-15) +- `postgresflex`: [v1.0.4](services/postgresflex/CHANGELOG.md#v104-2025-05-09) - **Breaking change:** Introduce interfaces for `APIClient` and the request structs - `rabbitmq`: - [v0.24.0](services/rabbitmq/CHANGELOG.md#v0240-2025-05-15) diff --git a/services/cdn/CHANGELOG.md b/services/cdn/CHANGELOG.md index db7e5f798a..ab4a97ba28 100644 --- a/services/cdn/CHANGELOG.md +++ b/services/cdn/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.3.0 +- **Feature:** Add `DefaultCacheDuration` field to `Config`, `ConfigPatch`, and `CreateDistributionPayload` models +- Add `required:"true"` tags to model structs + ## v1.2.1 (2025-06-04) - **Bugfix:** Adjusted `UnmarshalJSON` function to use enum types and added tests for enums - **Feature:** Added `Optimizer` attribute diff --git a/services/cdn/api_default.go b/services/cdn/api_default.go index 8c30639737..b0f0d6e431 100644 --- a/services/cdn/api_default.go +++ b/services/cdn/api_default.go @@ -390,7 +390,7 @@ type ApiListDistributionsRequest interface { PageSize(pageSize int32) ApiListDistributionsRequest // Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get \"pushed\" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. PageIdentifier(pageIdentifier string) ApiListDistributionsRequest - // The following sort options exist. We default to `createdAt` - `id` - Sort by distribution ID using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originURL using String comparison - `status` - Sort by distribution status, using String comparison + // The following sort options exist. We default to `createdAt` - `id` - Sort by distribution ID using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originURL using String comparison - `status` - Sort by distribution status, using String comparison - `originUrlRelated` - The origin URL is segmented and reversed before sorting. E.g. `www.example.com` is converted to `com.example.www` for sorting. This way, distributions pointing to the same domain trees are grouped next to each other. SortBy(sortBy string) ApiListDistributionsRequest SortOrder(sortOrder string) ApiListDistributionsRequest Execute() (*ListDistributionsResponse, error) @@ -2159,7 +2159,7 @@ func (r ListDistributionsRequest) PageIdentifier(pageIdentifier string) ApiListD return r } -// The following sort options exist. We default to `createdAt` - `id` - Sort by distribution ID using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originURL using String comparison - `status` - Sort by distribution status, using String comparison +// The following sort options exist. We default to `createdAt` - `id` - Sort by distribution ID using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originURL using String comparison - `status` - Sort by distribution status, using String comparison - `originUrlRelated` - The origin URL is segmented and reversed before sorting. E.g. `www.example.com` is converted to `com.example.www` for sorting. This way, distributions pointing to the same domain trees are grouped next to each other. func (r ListDistributionsRequest) SortBy(sortBy string) ApiListDistributionsRequest { r.sortBy = &sortBy diff --git a/services/cdn/model_config.go b/services/cdn/model_config.go index 59efb6eb96..faea4e119e 100644 --- a/services/cdn/model_config.go +++ b/services/cdn/model_config.go @@ -77,6 +77,31 @@ func setConfigGetBlockedIPsAttributeType(arg *ConfigGetBlockedIPsAttributeType, *arg = &val } +/* + types and functions for defaultCacheDuration +*/ + +// isNullableString +type ConfigGetDefaultCacheDurationAttributeType = *NullableString + +func getConfigGetDefaultCacheDurationAttributeTypeOk(arg ConfigGetDefaultCacheDurationAttributeType) (ret ConfigGetDefaultCacheDurationRetType, ok bool) { + if arg == nil { + return nil, false + } + return arg.Get(), true +} + +func setConfigGetDefaultCacheDurationAttributeType(arg *ConfigGetDefaultCacheDurationAttributeType, val ConfigGetDefaultCacheDurationRetType) { + if IsNil(*arg) { + *arg = NewNullableString(val) + } else { + (*arg).Set(val) + } +} + +type ConfigGetDefaultCacheDurationArgType = *string +type ConfigGetDefaultCacheDurationRetType = *string + /* types and functions for monthlyLimitBytes */ @@ -140,18 +165,20 @@ func setConfigGetRegionsAttributeType(arg *ConfigGetRegionsAttributeType, val Co // Config struct for Config type Config struct { // REQUIRED - Backend ConfigGetBackendAttributeType `json:"backend"` + Backend ConfigGetBackendAttributeType `json:"backend" required:"true"` // Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. // REQUIRED - BlockedCountries ConfigGetBlockedCountriesAttributeType `json:"blockedCountries"` + BlockedCountries ConfigGetBlockedCountriesAttributeType `json:"blockedCountries" required:"true"` // Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. // REQUIRED - BlockedIPs ConfigGetBlockedIPsAttributeType `json:"blockedIPs"` + BlockedIPs ConfigGetBlockedIPsAttributeType `json:"blockedIPs" required:"true"` + // Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) + DefaultCacheDuration ConfigGetDefaultCacheDurationAttributeType `json:"defaultCacheDuration,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. MonthlyLimitBytes ConfigGetMonthlyLimitBytesAttributeType `json:"monthlyLimitBytes,omitempty"` Optimizer ConfigGetOptimizerAttributeType `json:"optimizer,omitempty"` // REQUIRED - Regions ConfigGetRegionsAttributeType `json:"regions"` + Regions ConfigGetRegionsAttributeType `json:"regions" required:"true"` } type _Config Config @@ -228,6 +255,40 @@ func (o *Config) SetBlockedIPs(v ConfigGetBlockedIPsRetType) { setConfigGetBlockedIPsAttributeType(&o.BlockedIPs, v) } +// GetDefaultCacheDuration returns the DefaultCacheDuration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Config) GetDefaultCacheDuration() (res ConfigGetDefaultCacheDurationRetType) { + res, _ = o.GetDefaultCacheDurationOk() + return +} + +// GetDefaultCacheDurationOk returns a tuple with the DefaultCacheDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Config) GetDefaultCacheDurationOk() (ret ConfigGetDefaultCacheDurationRetType, ok bool) { + return getConfigGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration) +} + +// HasDefaultCacheDuration returns a boolean if a field has been set. +func (o *Config) HasDefaultCacheDuration() bool { + _, ok := o.GetDefaultCacheDurationOk() + return ok +} + +// SetDefaultCacheDuration gets a reference to the given string and assigns it to the DefaultCacheDuration field. +func (o *Config) SetDefaultCacheDuration(v ConfigGetDefaultCacheDurationRetType) { + setConfigGetDefaultCacheDurationAttributeType(&o.DefaultCacheDuration, v) +} + +// SetDefaultCacheDurationNil sets the value for DefaultCacheDuration to be an explicit nil +func (o *Config) SetDefaultCacheDurationNil() { + o.DefaultCacheDuration = nil +} + +// UnsetDefaultCacheDuration ensures that no value is present for DefaultCacheDuration, not even an explicit nil +func (o *Config) UnsetDefaultCacheDuration() { + o.DefaultCacheDuration = nil +} + // GetMonthlyLimitBytes returns the MonthlyLimitBytes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Config) GetMonthlyLimitBytes() (res ConfigGetMonthlyLimitBytesRetType) { res, _ = o.GetMonthlyLimitBytesOk() @@ -313,6 +374,9 @@ func (o Config) ToMap() (map[string]interface{}, error) { if val, ok := getConfigGetBlockedIPsAttributeTypeOk(o.BlockedIPs); ok { toSerialize["BlockedIPs"] = val } + if val, ok := getConfigGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration); ok { + toSerialize["DefaultCacheDuration"] = val + } if val, ok := getConfigGetMonthlyLimitBytesAttributeTypeOk(o.MonthlyLimitBytes); ok { toSerialize["MonthlyLimitBytes"] = val } diff --git a/services/cdn/model_config_patch.go b/services/cdn/model_config_patch.go index 4285ac6dd7..4ded2f960d 100644 --- a/services/cdn/model_config_patch.go +++ b/services/cdn/model_config_patch.go @@ -77,6 +77,31 @@ func setConfigPatchGetBlockedIPsAttributeType(arg *ConfigPatchGetBlockedIPsAttri *arg = &val } +/* + types and functions for defaultCacheDuration +*/ + +// isNullableString +type ConfigPatchGetDefaultCacheDurationAttributeType = *NullableString + +func getConfigPatchGetDefaultCacheDurationAttributeTypeOk(arg ConfigPatchGetDefaultCacheDurationAttributeType) (ret ConfigPatchGetDefaultCacheDurationRetType, ok bool) { + if arg == nil { + return nil, false + } + return arg.Get(), true +} + +func setConfigPatchGetDefaultCacheDurationAttributeType(arg *ConfigPatchGetDefaultCacheDurationAttributeType, val ConfigPatchGetDefaultCacheDurationRetType) { + if IsNil(*arg) { + *arg = NewNullableString(val) + } else { + (*arg).Set(val) + } +} + +type ConfigPatchGetDefaultCacheDurationArgType = *string +type ConfigPatchGetDefaultCacheDurationRetType = *string + /* types and functions for monthlyLimitBytes */ @@ -144,6 +169,8 @@ type ConfigPatch struct { BlockedCountries ConfigPatchGetBlockedCountriesAttributeType `json:"blockedCountries,omitempty"` // Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. BlockedIPs ConfigPatchGetBlockedIPsAttributeType `json:"blockedIPs,omitempty"` + // Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) + DefaultCacheDuration ConfigPatchGetDefaultCacheDurationAttributeType `json:"defaultCacheDuration,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. MonthlyLimitBytes ConfigPatchGetMonthlyLimitBytesAttributeType `json:"monthlyLimitBytes,omitempty"` Optimizer ConfigPatchGetOptimizerAttributeType `json:"optimizer,omitempty"` @@ -236,6 +263,40 @@ func (o *ConfigPatch) SetBlockedIPs(v ConfigPatchGetBlockedIPsRetType) { setConfigPatchGetBlockedIPsAttributeType(&o.BlockedIPs, v) } +// GetDefaultCacheDuration returns the DefaultCacheDuration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigPatch) GetDefaultCacheDuration() (res ConfigPatchGetDefaultCacheDurationRetType) { + res, _ = o.GetDefaultCacheDurationOk() + return +} + +// GetDefaultCacheDurationOk returns a tuple with the DefaultCacheDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigPatch) GetDefaultCacheDurationOk() (ret ConfigPatchGetDefaultCacheDurationRetType, ok bool) { + return getConfigPatchGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration) +} + +// HasDefaultCacheDuration returns a boolean if a field has been set. +func (o *ConfigPatch) HasDefaultCacheDuration() bool { + _, ok := o.GetDefaultCacheDurationOk() + return ok +} + +// SetDefaultCacheDuration gets a reference to the given string and assigns it to the DefaultCacheDuration field. +func (o *ConfigPatch) SetDefaultCacheDuration(v ConfigPatchGetDefaultCacheDurationRetType) { + setConfigPatchGetDefaultCacheDurationAttributeType(&o.DefaultCacheDuration, v) +} + +// SetDefaultCacheDurationNil sets the value for DefaultCacheDuration to be an explicit nil +func (o *ConfigPatch) SetDefaultCacheDurationNil() { + o.DefaultCacheDuration = nil +} + +// UnsetDefaultCacheDuration ensures that no value is present for DefaultCacheDuration, not even an explicit nil +func (o *ConfigPatch) UnsetDefaultCacheDuration() { + o.DefaultCacheDuration = nil +} + // GetMonthlyLimitBytes returns the MonthlyLimitBytes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConfigPatch) GetMonthlyLimitBytes() (res ConfigPatchGetMonthlyLimitBytesRetType) { res, _ = o.GetMonthlyLimitBytesOk() @@ -327,6 +388,9 @@ func (o ConfigPatch) ToMap() (map[string]interface{}, error) { if val, ok := getConfigPatchGetBlockedIPsAttributeTypeOk(o.BlockedIPs); ok { toSerialize["BlockedIPs"] = val } + if val, ok := getConfigPatchGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration); ok { + toSerialize["DefaultCacheDuration"] = val + } if val, ok := getConfigPatchGetMonthlyLimitBytesAttributeTypeOk(o.MonthlyLimitBytes); ok { toSerialize["MonthlyLimitBytes"] = val } diff --git a/services/cdn/model_create_distribution_payload.go b/services/cdn/model_create_distribution_payload.go index 29bd6a2215..85acbbb07c 100644 --- a/services/cdn/model_create_distribution_payload.go +++ b/services/cdn/model_create_distribution_payload.go @@ -57,6 +57,27 @@ func setCreateDistributionPayloadGetBlockedIPsAttributeType(arg *CreateDistribut *arg = &val } +/* + types and functions for defaultCacheDuration +*/ + +// isNotNullableString +type CreateDistributionPayloadGetDefaultCacheDurationAttributeType = *string + +func getCreateDistributionPayloadGetDefaultCacheDurationAttributeTypeOk(arg CreateDistributionPayloadGetDefaultCacheDurationAttributeType) (ret CreateDistributionPayloadGetDefaultCacheDurationRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateDistributionPayloadGetDefaultCacheDurationAttributeType(arg *CreateDistributionPayloadGetDefaultCacheDurationAttributeType, val CreateDistributionPayloadGetDefaultCacheDurationRetType) { + *arg = &val +} + +type CreateDistributionPayloadGetDefaultCacheDurationArgType = string +type CreateDistributionPayloadGetDefaultCacheDurationRetType = string + /* types and functions for intentId */ @@ -185,6 +206,8 @@ type CreateDistributionPayload struct { BlockedCountries CreateDistributionPayloadGetBlockedCountriesAttributeType `json:"blockedCountries,omitempty"` // Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. BlockedIPs CreateDistributionPayloadGetBlockedIPsAttributeType `json:"blockedIPs,omitempty"` + // Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) + DefaultCacheDuration CreateDistributionPayloadGetDefaultCacheDurationAttributeType `json:"defaultCacheDuration,omitempty"` // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId CreateDistributionPayloadGetIntentIdAttributeType `json:"intentId,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. @@ -194,10 +217,10 @@ type CreateDistributionPayload struct { OriginRequestHeaders CreateDistributionPayloadGetOriginRequestHeadersAttributeType `json:"originRequestHeaders,omitempty"` // The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` // REQUIRED - OriginUrl CreateDistributionPayloadGetOriginUrlAttributeType `json:"originUrl"` + OriginUrl CreateDistributionPayloadGetOriginUrlAttributeType `json:"originUrl" required:"true"` // Define in which regions you would like your content to be cached. // REQUIRED - Regions CreateDistributionPayloadGetRegionsAttributeType `json:"regions"` + Regions CreateDistributionPayloadGetRegionsAttributeType `json:"regions" required:"true"` } type _CreateDistributionPayload CreateDistributionPayload @@ -267,6 +290,29 @@ func (o *CreateDistributionPayload) SetBlockedIPs(v CreateDistributionPayloadGet setCreateDistributionPayloadGetBlockedIPsAttributeType(&o.BlockedIPs, v) } +// GetDefaultCacheDuration returns the DefaultCacheDuration field value if set, zero value otherwise. +func (o *CreateDistributionPayload) GetDefaultCacheDuration() (res CreateDistributionPayloadGetDefaultCacheDurationRetType) { + res, _ = o.GetDefaultCacheDurationOk() + return +} + +// GetDefaultCacheDurationOk returns a tuple with the DefaultCacheDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDistributionPayload) GetDefaultCacheDurationOk() (ret CreateDistributionPayloadGetDefaultCacheDurationRetType, ok bool) { + return getCreateDistributionPayloadGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration) +} + +// HasDefaultCacheDuration returns a boolean if a field has been set. +func (o *CreateDistributionPayload) HasDefaultCacheDuration() bool { + _, ok := o.GetDefaultCacheDurationOk() + return ok +} + +// SetDefaultCacheDuration gets a reference to the given string and assigns it to the DefaultCacheDuration field. +func (o *CreateDistributionPayload) SetDefaultCacheDuration(v CreateDistributionPayloadGetDefaultCacheDurationRetType) { + setCreateDistributionPayloadGetDefaultCacheDurationAttributeType(&o.DefaultCacheDuration, v) +} + // GetIntentId returns the IntentId field value if set, zero value otherwise. func (o *CreateDistributionPayload) GetIntentId() (res CreateDistributionPayloadGetIntentIdRetType) { res, _ = o.GetIntentIdOk() @@ -401,6 +447,9 @@ func (o CreateDistributionPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateDistributionPayloadGetBlockedIPsAttributeTypeOk(o.BlockedIPs); ok { toSerialize["BlockedIPs"] = val } + if val, ok := getCreateDistributionPayloadGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration); ok { + toSerialize["DefaultCacheDuration"] = val + } if val, ok := getCreateDistributionPayloadGetIntentIdAttributeTypeOk(o.IntentId); ok { toSerialize["IntentId"] = val } diff --git a/services/cdn/model_create_distribution_response.go b/services/cdn/model_create_distribution_response.go index f2c4dd8f1b..8abd0d2e13 100644 --- a/services/cdn/model_create_distribution_response.go +++ b/services/cdn/model_create_distribution_response.go @@ -40,7 +40,7 @@ func setCreateDistributionResponseGetDistributionAttributeType(arg *CreateDistri // CreateDistributionResponse struct for CreateDistributionResponse type CreateDistributionResponse struct { // REQUIRED - Distribution CreateDistributionResponseGetDistributionAttributeType `json:"distribution"` + Distribution CreateDistributionResponseGetDistributionAttributeType `json:"distribution" required:"true"` } type _CreateDistributionResponse CreateDistributionResponse diff --git a/services/cdn/model_custom_domain.go b/services/cdn/model_custom_domain.go index 20c51dca1d..a1bac3cb77 100644 --- a/services/cdn/model_custom_domain.go +++ b/services/cdn/model_custom_domain.go @@ -84,9 +84,9 @@ type CustomDomain struct { Errors CustomDomainGetErrorsAttributeType `json:"errors,omitempty"` // The domain. Can be used as input for the GetCustomDomain endpoint // REQUIRED - Name CustomDomainGetNameAttributeType `json:"name"` + Name CustomDomainGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Status CustomDomainGetStatusAttributeType `json:"status"` + Status CustomDomainGetStatusAttributeType `json:"status" required:"true"` } type _CustomDomain CustomDomain diff --git a/services/cdn/model_distribution.go b/services/cdn/model_distribution.go index 1dad812fb5..fb950838d4 100644 --- a/services/cdn/model_distribution.go +++ b/services/cdn/model_distribution.go @@ -294,24 +294,24 @@ func setDistributionGetUpdatedAtAttributeType(arg *DistributionGetUpdatedAtAttri // Distribution struct for Distribution type Distribution struct { // REQUIRED - Config DistributionGetConfigAttributeType `json:"config"` + Config DistributionGetConfigAttributeType `json:"config" required:"true"` // RFC3339 string defining when the distribution was created // REQUIRED - CreatedAt DistributionGetCreatedAtAttributeType `json:"createdAt"` + CreatedAt DistributionGetCreatedAtAttributeType `json:"createdAt" required:"true"` // REQUIRED - Domains DistributionGetDomainsAttributeType `json:"domains"` + Domains DistributionGetDomainsAttributeType `json:"domains" required:"true"` // This object may be present if, and only if the distribution has encountered an error state. Errors DistributionGetErrorsAttributeType `json:"errors,omitempty"` // REQUIRED - Id DistributionGetIdAttributeType `json:"id"` + Id DistributionGetIdAttributeType `json:"id" required:"true"` // REQUIRED - ProjectId DistributionGetProjectIdAttributeType `json:"projectId"` + ProjectId DistributionGetProjectIdAttributeType `json:"projectId" required:"true"` // - `CREATING`: The distribution was just created. All the relevant resources are created in the background. Once fully reconciled, this switches to `ACTIVE`. If there are any issues, the status changes to `ERROR`. You can look at the `errors` array to get more infos. - `ACTIVE`: The usual state. The desired configuration is synced, there are no errors - `UPDATING`: The state when there is a discrepancy between the desired and actual configuration state. This occurs right after an update. Will switch to `ACTIVE` or `ERROR`, depending on if synchronizing succeeds or not. - `DELETING`: The state right after a delete request was received. The distribution will stay in this status until all resources have been successfully removed, or until we encounter an `ERROR` state. **NOTE:** You can keep fetching the distribution while it is deleting. After successful deletion, trying to get a distribution will return a 404 Not Found response - `ERROR`: The error state. Look at the `errors` array for more info. // REQUIRED - Status DistributionGetStatusAttributeType `json:"status"` + Status DistributionGetStatusAttributeType `json:"status" required:"true"` // RFC3339 string which returns the last time the distribution configuration was modified. // REQUIRED - UpdatedAt DistributionGetUpdatedAtAttributeType `json:"updatedAt"` + UpdatedAt DistributionGetUpdatedAtAttributeType `json:"updatedAt" required:"true"` } type _Distribution Distribution diff --git a/services/cdn/model_distribution_logs_record.go b/services/cdn/model_distribution_logs_record.go index f9ba32e904..f76a46f626 100644 --- a/services/cdn/model_distribution_logs_record.go +++ b/services/cdn/model_distribution_logs_record.go @@ -206,25 +206,25 @@ func setDistributionLogsRecordGetTimestampAttributeType(arg *DistributionLogsRec // DistributionLogsRecord struct for DistributionLogsRecord type DistributionLogsRecord struct { // REQUIRED - CacheHit DistributionLogsRecordgetCacheHitAttributeType `json:"cacheHit"` + CacheHit DistributionLogsRecordgetCacheHitAttributeType `json:"cacheHit" required:"true"` // REQUIRED - DataCenterRegion DistributionLogsRecordGetDataCenterRegionAttributeType `json:"dataCenterRegion"` + DataCenterRegion DistributionLogsRecordGetDataCenterRegionAttributeType `json:"dataCenterRegion" required:"true"` // REQUIRED - DistributionID DistributionLogsRecordGetDistributionIDAttributeType `json:"distributionID"` + DistributionID DistributionLogsRecordGetDistributionIDAttributeType `json:"distributionID" required:"true"` // REQUIRED - Host DistributionLogsRecordGetHostAttributeType `json:"host"` + Host DistributionLogsRecordGetHostAttributeType `json:"host" required:"true"` // REQUIRED - Path DistributionLogsRecordGetPathAttributeType `json:"path"` + Path DistributionLogsRecordGetPathAttributeType `json:"path" required:"true"` // ISO 3166-1 A2 compliant country code // REQUIRED - RequestCountryCode DistributionLogsRecordGetRequestCountryCodeAttributeType `json:"requestCountryCode"` + RequestCountryCode DistributionLogsRecordGetRequestCountryCodeAttributeType `json:"requestCountryCode" required:"true"` // REQUIRED - Size DistributionLogsRecordGetSizeAttributeType `json:"size"` + Size DistributionLogsRecordGetSizeAttributeType `json:"size" required:"true"` // Can be cast to int32 without loss of precision. // REQUIRED - StatusCode DistributionLogsRecordGetStatusCodeAttributeType `json:"statusCode"` + StatusCode DistributionLogsRecordGetStatusCodeAttributeType `json:"statusCode" required:"true"` // REQUIRED - Timestamp DistributionLogsRecordGetTimestampAttributeType `json:"timestamp"` + Timestamp DistributionLogsRecordGetTimestampAttributeType `json:"timestamp" required:"true"` } type _DistributionLogsRecord DistributionLogsRecord diff --git a/services/cdn/model_distribution_statistics_record.go b/services/cdn/model_distribution_statistics_record.go index 5b44d03d0f..cb1f2d3f64 100644 --- a/services/cdn/model_distribution_statistics_record.go +++ b/services/cdn/model_distribution_statistics_record.go @@ -142,21 +142,21 @@ func setDistributionStatisticsRecordGetStartAttributeType(arg *DistributionStati type DistributionStatisticsRecord struct { // Number of cached requests that were served // REQUIRED - CachedRequests DistributionStatisticsRecordGetCachedRequestsAttributeType `json:"cachedRequests"` + CachedRequests DistributionStatisticsRecordGetCachedRequestsAttributeType `json:"cachedRequests" required:"true"` // Total number of requests that were served // REQUIRED - TotalRequests DistributionStatisticsRecordGetTotalRequestsAttributeType `json:"totalRequests"` + TotalRequests DistributionStatisticsRecordGetTotalRequestsAttributeType `json:"totalRequests" required:"true"` // Total traffic in bytes that occurred during the time interval // REQUIRED - TotalTrafficBytes DistributionStatisticsRecordGetTotalTrafficBytesAttributeType `json:"totalTrafficBytes"` + TotalTrafficBytes DistributionStatisticsRecordGetTotalTrafficBytesAttributeType `json:"totalTrafficBytes" required:"true"` // Exclusive end of the time interval the statistics refer to // REQUIRED - End DistributionStatisticsRecordGetEndAttributeType `json:"end"` + End DistributionStatisticsRecordGetEndAttributeType `json:"end" required:"true"` // REQUIRED - Regions DistributionStatisticsRecordGetRegionsAttributeType `json:"regions"` + Regions DistributionStatisticsRecordGetRegionsAttributeType `json:"regions" required:"true"` // Start of the time interval the statistics refer to // REQUIRED - Start DistributionStatisticsRecordGetStartAttributeType `json:"start"` + Start DistributionStatisticsRecordGetStartAttributeType `json:"start" required:"true"` } type _DistributionStatisticsRecord DistributionStatisticsRecord diff --git a/services/cdn/model_distribution_statistics_record_all_of.go b/services/cdn/model_distribution_statistics_record_all_of.go index 08e87c5ecc..c88c33bef0 100644 --- a/services/cdn/model_distribution_statistics_record_all_of.go +++ b/services/cdn/model_distribution_statistics_record_all_of.go @@ -82,12 +82,12 @@ func setDistributionStatisticsRecordAllOfGetStartAttributeType(arg *Distribution type DistributionStatisticsRecordAllOf struct { // Exclusive end of the time interval the statistics refer to // REQUIRED - End DistributionStatisticsRecordAllOfGetEndAttributeType `json:"end"` + End DistributionStatisticsRecordAllOfGetEndAttributeType `json:"end" required:"true"` // REQUIRED - Regions DistributionStatisticsRecordAllOfGetRegionsAttributeType `json:"regions"` + Regions DistributionStatisticsRecordAllOfGetRegionsAttributeType `json:"regions" required:"true"` // Start of the time interval the statistics refer to // REQUIRED - Start DistributionStatisticsRecordAllOfGetStartAttributeType `json:"start"` + Start DistributionStatisticsRecordAllOfGetStartAttributeType `json:"start" required:"true"` } type _DistributionStatisticsRecordAllOf DistributionStatisticsRecordAllOf diff --git a/services/cdn/model_distribution_statistics_record_entry.go b/services/cdn/model_distribution_statistics_record_entry.go index cf3b123264..258c77a9bf 100644 --- a/services/cdn/model_distribution_statistics_record_entry.go +++ b/services/cdn/model_distribution_statistics_record_entry.go @@ -81,13 +81,13 @@ func setDistributionStatisticsRecordEntryGetTotalTrafficBytesAttributeType(arg * type DistributionStatisticsRecordEntry struct { // Number of cached requests that were served // REQUIRED - CachedRequests DistributionStatisticsRecordEntryGetCachedRequestsAttributeType `json:"cachedRequests"` + CachedRequests DistributionStatisticsRecordEntryGetCachedRequestsAttributeType `json:"cachedRequests" required:"true"` // Total number of requests that were served // REQUIRED - TotalRequests DistributionStatisticsRecordEntryGetTotalRequestsAttributeType `json:"totalRequests"` + TotalRequests DistributionStatisticsRecordEntryGetTotalRequestsAttributeType `json:"totalRequests" required:"true"` // Total traffic in bytes that occurred during the time interval // REQUIRED - TotalTrafficBytes DistributionStatisticsRecordEntryGetTotalTrafficBytesAttributeType `json:"totalTrafficBytes"` + TotalTrafficBytes DistributionStatisticsRecordEntryGetTotalTrafficBytesAttributeType `json:"totalTrafficBytes" required:"true"` } type _DistributionStatisticsRecordEntry DistributionStatisticsRecordEntry diff --git a/services/cdn/model_distribution_statistics_record_regions.go b/services/cdn/model_distribution_statistics_record_regions.go index a88e24f379..ffa8f30f15 100644 --- a/services/cdn/model_distribution_statistics_record_regions.go +++ b/services/cdn/model_distribution_statistics_record_regions.go @@ -120,15 +120,15 @@ func setDistributionStatisticsRecordRegionsGetUSAttributeType(arg *DistributionS // DistributionStatisticsRecordRegions Mapping of regions to the metrics for this region for the defined time interval All regions are always present. If no traffic was reported for a region, it will still contain 0-filled properties type DistributionStatisticsRecordRegions struct { // REQUIRED - AF DistributionStatisticsRecordRegionsGetAFAttributeType `json:"AF"` + AF DistributionStatisticsRecordRegionsGetAFAttributeType `json:"AF" required:"true"` // REQUIRED - ASIA DistributionStatisticsRecordRegionsGetASIAAttributeType `json:"ASIA"` + ASIA DistributionStatisticsRecordRegionsGetASIAAttributeType `json:"ASIA" required:"true"` // REQUIRED - EU DistributionStatisticsRecordRegionsGetEUAttributeType `json:"EU"` + EU DistributionStatisticsRecordRegionsGetEUAttributeType `json:"EU" required:"true"` // REQUIRED - SA DistributionStatisticsRecordRegionsGetSAAttributeType `json:"SA"` + SA DistributionStatisticsRecordRegionsGetSAAttributeType `json:"SA" required:"true"` // REQUIRED - US DistributionStatisticsRecordRegionsGetUSAttributeType `json:"US"` + US DistributionStatisticsRecordRegionsGetUSAttributeType `json:"US" required:"true"` } type _DistributionStatisticsRecordRegions DistributionStatisticsRecordRegions diff --git a/services/cdn/model_domain.go b/services/cdn/model_domain.go index 86a5d66606..32101eebb1 100644 --- a/services/cdn/model_domain.go +++ b/services/cdn/model_domain.go @@ -209,12 +209,12 @@ type Domain struct { Errors DomainGetErrorsAttributeType `json:"errors,omitempty"` // The domain. If this is a custom domain, you can call the GetCustomDomain Endpoint // REQUIRED - Name DomainGetNameAttributeType `json:"name"` + Name DomainGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Status DomainGetStatusAttributeType `json:"status"` + Status DomainGetStatusAttributeType `json:"status" required:"true"` // Specifies the type of this Domain. Custom Domain can be further queries using the GetCustomDomain Endpoint // REQUIRED - Type DomainGetTypeAttributeType `json:"type"` + Type DomainGetTypeAttributeType `json:"type" required:"true"` } type _Domain Domain diff --git a/services/cdn/model_error_details.go b/services/cdn/model_error_details.go index a9f110e1b2..44f69b81e5 100644 --- a/services/cdn/model_error_details.go +++ b/services/cdn/model_error_details.go @@ -234,14 +234,14 @@ type ErrorDetails struct { De ErrorDetailsGetDeAttributeType `json:"de,omitempty"` // Deprecated: Check the GitHub changelog for alternatives // REQUIRED - Description ErrorDetailsGetDescriptionAttributeType `json:"description"` + Description ErrorDetailsGetDescriptionAttributeType `json:"description" required:"true"` // English description of the error // REQUIRED - En ErrorDetailsGetEnAttributeType `json:"en"` + En ErrorDetailsGetEnAttributeType `json:"en" required:"true"` // Optional field in the request this error detail refers to Field ErrorDetailsGetFieldAttributeType `json:"field,omitempty"` // REQUIRED - Key ErrorDetailsGetKeyAttributeType `json:"key"` + Key ErrorDetailsGetKeyAttributeType `json:"key" required:"true"` } type _ErrorDetails ErrorDetails diff --git a/services/cdn/model_find_cache_paths_response.go b/services/cdn/model_find_cache_paths_response.go index 3e3d22efdd..246b204b9b 100644 --- a/services/cdn/model_find_cache_paths_response.go +++ b/services/cdn/model_find_cache_paths_response.go @@ -40,7 +40,7 @@ func setFindCachePathsResponseGetResponseAttributeType(arg *FindCachePathsRespon // FindCachePathsResponse struct for FindCachePathsResponse type FindCachePathsResponse struct { // REQUIRED - Response FindCachePathsResponseGetResponseAttributeType `json:"response"` + Response FindCachePathsResponseGetResponseAttributeType `json:"response" required:"true"` } type _FindCachePathsResponse FindCachePathsResponse diff --git a/services/cdn/model_find_cache_paths_response_entry.go b/services/cdn/model_find_cache_paths_response_entry.go index f77d29582a..1bed5abdd5 100644 --- a/services/cdn/model_find_cache_paths_response_entry.go +++ b/services/cdn/model_find_cache_paths_response_entry.go @@ -42,7 +42,7 @@ type FindCachePathsResponseEntryGetPathRetType = string type FindCachePathsResponseEntry struct { // Defines one path that was previously used as part of a granular purge // REQUIRED - Path FindCachePathsResponseEntryGetPathAttributeType `json:"path"` + Path FindCachePathsResponseEntryGetPathAttributeType `json:"path" required:"true"` } type _FindCachePathsResponseEntry FindCachePathsResponseEntry diff --git a/services/cdn/model_generic_json_response.go b/services/cdn/model_generic_json_response.go index 41634bb6ea..b2166c941f 100644 --- a/services/cdn/model_generic_json_response.go +++ b/services/cdn/model_generic_json_response.go @@ -63,7 +63,7 @@ type GenericJSONResponse struct { // Listing of issues with your request Details GenericJSONResponseGetDetailsAttributeType `json:"details,omitempty"` // REQUIRED - Message GenericJSONResponseGetMessageAttributeType `json:"message"` + Message GenericJSONResponseGetMessageAttributeType `json:"message" required:"true"` } type _GenericJSONResponse GenericJSONResponse diff --git a/services/cdn/model_get_cache_info_response.go b/services/cdn/model_get_cache_info_response.go index 371ec23e2c..d470c9ba6c 100644 --- a/services/cdn/model_get_cache_info_response.go +++ b/services/cdn/model_get_cache_info_response.go @@ -61,10 +61,10 @@ func setGetCacheInfoResponseGetLastPurgeTimeAttributeType(arg *GetCacheInfoRespo // GetCacheInfoResponse struct for GetCacheInfoResponse type GetCacheInfoResponse struct { // REQUIRED - History GetCacheInfoResponseGetHistoryAttributeType `json:"history"` + History GetCacheInfoResponseGetHistoryAttributeType `json:"history" required:"true"` // Returns the last time the cache was purged by calling the PurgeCache endpoint. Time represented as RFC3339 compliant string. If the cache was never purged, this returns `null` // REQUIRED - LastPurgeTime GetCacheInfoResponseGetLastPurgeTimeAttributeType `json:"lastPurgeTime"` + LastPurgeTime GetCacheInfoResponseGetLastPurgeTimeAttributeType `json:"lastPurgeTime" required:"true"` } type _GetCacheInfoResponse GetCacheInfoResponse diff --git a/services/cdn/model_get_cache_info_response_history_entry.go b/services/cdn/model_get_cache_info_response_history_entry.go index 8b9aa3aeec..cca70d11c4 100644 --- a/services/cdn/model_get_cache_info_response_history_entry.go +++ b/services/cdn/model_get_cache_info_response_history_entry.go @@ -187,11 +187,11 @@ func setGetCacheInfoResponseHistoryEntryGetTypeAttributeType(arg *GetCacheInfoRe type GetCacheInfoResponseHistoryEntry struct { // Deprecated: Check the GitHub changelog for alternatives // REQUIRED - OccuredAt GetCacheInfoResponseHistoryEntryGetOccuredAtAttributeType `json:"occuredAt"` + OccuredAt GetCacheInfoResponseHistoryEntryGetOccuredAtAttributeType `json:"occuredAt" required:"true"` // REQUIRED - OccurredAt GetCacheInfoResponseHistoryEntryGetOccurredAtAttributeType `json:"occurredAt"` + OccurredAt GetCacheInfoResponseHistoryEntryGetOccurredAtAttributeType `json:"occurredAt" required:"true"` // REQUIRED - Type GetCacheInfoResponseHistoryEntryGetTypeAttributeType `json:"type"` + Type GetCacheInfoResponseHistoryEntryGetTypeAttributeType `json:"type" required:"true"` } type _GetCacheInfoResponseHistoryEntry GetCacheInfoResponseHistoryEntry diff --git a/services/cdn/model_get_custom_domain_response.go b/services/cdn/model_get_custom_domain_response.go index 40a945394c..bd1235e163 100644 --- a/services/cdn/model_get_custom_domain_response.go +++ b/services/cdn/model_get_custom_domain_response.go @@ -61,10 +61,10 @@ type GetCustomDomainResponseGetDomainRetType = string // GetCustomDomainResponse struct for GetCustomDomainResponse type GetCustomDomainResponse struct { // REQUIRED - CustomDomain GetCustomDomainResponseGetCustomDomainAttributeType `json:"customDomain"` + CustomDomain GetCustomDomainResponseGetCustomDomainAttributeType `json:"customDomain" required:"true"` // Deprecated: Check the GitHub changelog for alternatives // REQUIRED - Domain GetCustomDomainResponseGetDomainAttributeType `json:"domain"` + Domain GetCustomDomainResponseGetDomainAttributeType `json:"domain" required:"true"` } type _GetCustomDomainResponse GetCustomDomainResponse diff --git a/services/cdn/model_get_distribution_response.go b/services/cdn/model_get_distribution_response.go index 32dce87095..b14f63ca95 100644 --- a/services/cdn/model_get_distribution_response.go +++ b/services/cdn/model_get_distribution_response.go @@ -40,7 +40,7 @@ func setGetDistributionResponseGetDistributionAttributeType(arg *GetDistribution // GetDistributionResponse struct for GetDistributionResponse type GetDistributionResponse struct { // REQUIRED - Distribution GetDistributionResponseGetDistributionAttributeType `json:"distribution"` + Distribution GetDistributionResponseGetDistributionAttributeType `json:"distribution" required:"true"` } type _GetDistributionResponse GetDistributionResponse diff --git a/services/cdn/model_get_logs_response.go b/services/cdn/model_get_logs_response.go index 05efaf1ee6..c346e3176a 100644 --- a/services/cdn/model_get_logs_response.go +++ b/services/cdn/model_get_logs_response.go @@ -61,7 +61,7 @@ type GetLogsResponseGetNextPageIdentifierRetType = string // GetLogsResponse struct for GetLogsResponse type GetLogsResponse struct { // REQUIRED - Logs GetLogsResponseGetLogsAttributeType `json:"logs"` + Logs GetLogsResponseGetLogsAttributeType `json:"logs" required:"true"` NextPageIdentifier GetLogsResponseGetNextPageIdentifierAttributeType `json:"nextPageIdentifier,omitempty"` } diff --git a/services/cdn/model_get_statistics_response.go b/services/cdn/model_get_statistics_response.go index 90528bdf6f..987fa833b7 100644 --- a/services/cdn/model_get_statistics_response.go +++ b/services/cdn/model_get_statistics_response.go @@ -40,7 +40,7 @@ func setGetStatisticsResponseGetRecordsAttributeType(arg *GetStatisticsResponseG // GetStatisticsResponse struct for GetStatisticsResponse type GetStatisticsResponse struct { // REQUIRED - Records GetStatisticsResponseGetRecordsAttributeType `json:"records"` + Records GetStatisticsResponseGetRecordsAttributeType `json:"records" required:"true"` } type _GetStatisticsResponse GetStatisticsResponse diff --git a/services/cdn/model_http_backend.go b/services/cdn/model_http_backend.go index b94cbfeac7..e52e582a75 100644 --- a/services/cdn/model_http_backend.go +++ b/services/cdn/model_http_backend.go @@ -83,11 +83,11 @@ type HttpBackendGetTypeRetType = string type HttpBackend struct { // Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. // REQUIRED - OriginRequestHeaders HttpBackendGetOriginRequestHeadersAttributeType `json:"originRequestHeaders"` + OriginRequestHeaders HttpBackendGetOriginRequestHeadersAttributeType `json:"originRequestHeaders" required:"true"` // REQUIRED - OriginUrl HttpBackendGetOriginUrlAttributeType `json:"originUrl"` + OriginUrl HttpBackendGetOriginUrlAttributeType `json:"originUrl" required:"true"` // REQUIRED - Type HttpBackendGetTypeAttributeType `json:"type"` + Type HttpBackendGetTypeAttributeType `json:"type" required:"true"` } type _HttpBackend HttpBackend diff --git a/services/cdn/model_http_backend_patch.go b/services/cdn/model_http_backend_patch.go index 4302f8e5ed..4bd4ba015a 100644 --- a/services/cdn/model_http_backend_patch.go +++ b/services/cdn/model_http_backend_patch.go @@ -86,7 +86,7 @@ type HttpBackendPatch struct { OriginUrl HttpBackendPatchGetOriginUrlAttributeType `json:"originUrl,omitempty"` // This property is required to determine the used backend type. // REQUIRED - Type HttpBackendPatchGetTypeAttributeType `json:"type"` + Type HttpBackendPatchGetTypeAttributeType `json:"type" required:"true"` } type _HttpBackendPatch HttpBackendPatch diff --git a/services/cdn/model_list_distributions_response.go b/services/cdn/model_list_distributions_response.go index 8bd574d59e..9243a3a690 100644 --- a/services/cdn/model_list_distributions_response.go +++ b/services/cdn/model_list_distributions_response.go @@ -61,7 +61,7 @@ type ListDistributionsResponseGetNextPageIdentifierRetType = string // ListDistributionsResponse struct for ListDistributionsResponse type ListDistributionsResponse struct { // REQUIRED - Distributions ListDistributionsResponseGetDistributionsAttributeType `json:"distributions"` + Distributions ListDistributionsResponseGetDistributionsAttributeType `json:"distributions" required:"true"` NextPageIdentifier ListDistributionsResponseGetNextPageIdentifierAttributeType `json:"nextPageIdentifier,omitempty"` } diff --git a/services/cdn/model_optimizer.go b/services/cdn/model_optimizer.go index 4af7732b78..6d9565ff57 100644 --- a/services/cdn/model_optimizer.go +++ b/services/cdn/model_optimizer.go @@ -41,7 +41,7 @@ func setOptimizergetEnabledAttributeType(arg *OptimizergetEnabledAttributeType, type Optimizer struct { // Determines if the optimizer should be enabled for this distribution and incurs a monthly fee // REQUIRED - Enabled OptimizergetEnabledAttributeType `json:"enabled"` + Enabled OptimizergetEnabledAttributeType `json:"enabled" required:"true"` } type _Optimizer Optimizer diff --git a/services/cdn/model_patch_distribution_response.go b/services/cdn/model_patch_distribution_response.go index da2687f6e0..5fe155fd12 100644 --- a/services/cdn/model_patch_distribution_response.go +++ b/services/cdn/model_patch_distribution_response.go @@ -40,7 +40,7 @@ func setPatchDistributionResponseGetDistributionAttributeType(arg *PatchDistribu // PatchDistributionResponse struct for PatchDistributionResponse type PatchDistributionResponse struct { // REQUIRED - Distribution PatchDistributionResponseGetDistributionAttributeType `json:"distribution"` + Distribution PatchDistributionResponseGetDistributionAttributeType `json:"distribution" required:"true"` } type _PatchDistributionResponse PatchDistributionResponse diff --git a/services/cdn/model_put_custom_domain_response.go b/services/cdn/model_put_custom_domain_response.go index 9971414388..0c0a05cc28 100644 --- a/services/cdn/model_put_custom_domain_response.go +++ b/services/cdn/model_put_custom_domain_response.go @@ -61,10 +61,10 @@ type PutCustomDomainResponseGetDomainRetType = string // PutCustomDomainResponse struct for PutCustomDomainResponse type PutCustomDomainResponse struct { // REQUIRED - CustomDomain PutCustomDomainResponseGetCustomDomainAttributeType `json:"customDomain"` + CustomDomain PutCustomDomainResponseGetCustomDomainAttributeType `json:"customDomain" required:"true"` // Deprecated: Check the GitHub changelog for alternatives // REQUIRED - Domain PutCustomDomainResponseGetDomainAttributeType `json:"domain"` + Domain PutCustomDomainResponseGetDomainAttributeType `json:"domain" required:"true"` } type _PutCustomDomainResponse PutCustomDomainResponse diff --git a/services/cdn/model_status_error.go b/services/cdn/model_status_error.go index 40edd6732f..c231786c58 100644 --- a/services/cdn/model_status_error.go +++ b/services/cdn/model_status_error.go @@ -194,10 +194,10 @@ type StatusError struct { De StatusErrorGetDeAttributeType `json:"de,omitempty"` // An english translation string corresponding to the error key. An english translation key is always present. // REQUIRED - En StatusErrorGetEnAttributeType `json:"en"` + En StatusErrorGetEnAttributeType `json:"en" required:"true"` // An enum value that describes a Status Error. // REQUIRED - Key StatusErrorGetKeyAttributeType `json:"key"` + Key StatusErrorGetKeyAttributeType `json:"key" required:"true"` } type _StatusError StatusError diff --git a/services/dns/CHANGELOG.md b/services/dns/CHANGELOG.md index 34f702463e..bac69ed512 100644 --- a/services/dns/CHANGELOG.md +++ b/services/dns/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.17.0 +- **Feature:** Add new record set types +- **Feature:** Improve documentation for APEX records in `RecordSet` and `CreateRecordSetPayload` models + ## v0.16.0 - Add `required:"true"` tags to model structs diff --git a/services/dns/model_create_record_set_payload.go b/services/dns/model_create_record_set_payload.go index 06a542c892..66908aff43 100644 --- a/services/dns/model_create_record_set_payload.go +++ b/services/dns/model_create_record_set_payload.go @@ -133,6 +133,10 @@ const ( CREATERECORDSETPAYLOADTYPE_URI CreateRecordSetPayloadTypes = "URI" CREATERECORDSETPAYLOADTYPE_CERT CreateRecordSetPayloadTypes = "CERT" CREATERECORDSETPAYLOADTYPE_SVCB CreateRecordSetPayloadTypes = "SVCB" + CREATERECORDSETPAYLOADTYPE_TYPE CreateRecordSetPayloadTypes = "TYPE" + CREATERECORDSETPAYLOADTYPE_CSYNC CreateRecordSetPayloadTypes = "CSYNC" + CREATERECORDSETPAYLOADTYPE_HINFO CreateRecordSetPayloadTypes = "HINFO" + CREATERECORDSETPAYLOADTYPE_HTTPS CreateRecordSetPayloadTypes = "HTTPS" ) // All allowed values of CreateRecordSetPayload enum @@ -158,6 +162,10 @@ var AllowedCreateRecordSetPayloadTypesEnumValues = []CreateRecordSetPayloadTypes "URI", "CERT", "SVCB", + "TYPE", + "CSYNC", + "HINFO", + "HTTPS", } func (v *CreateRecordSetPayloadTypes) UnmarshalJSON(src []byte) error { @@ -266,7 +274,7 @@ func setCreateRecordSetPayloadGetTypeAttributeType(arg *CreateRecordSetPayloadGe type CreateRecordSetPayload struct { // user comment Comment CreateRecordSetPayloadGetCommentAttributeType `json:"comment,omitempty"` - // name of the record which should be a valid domain according to rfc1035 Section 2.3.4 + // name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here. // REQUIRED Name CreateRecordSetPayloadGetNameAttributeType `json:"name" required:"true"` // records diff --git a/services/dns/model_create_record_set_payload_test.go b/services/dns/model_create_record_set_payload_test.go index 1e9753fc36..b12df082b3 100644 --- a/services/dns/model_create_record_set_payload_test.go +++ b/services/dns/model_create_record_set_payload_test.go @@ -172,6 +172,34 @@ func TestCreateRecordSetPayloadTypes_UnmarshalJSON(t *testing.T) { }, wantErr: false, }, + { + name: `success - possible enum value no. 22`, + args: args{ + src: []byte(`"TYPE"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 23`, + args: args{ + src: []byte(`"CSYNC"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 24`, + args: args{ + src: []byte(`"HINFO"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 25`, + args: args{ + src: []byte(`"HTTPS"`), + }, + wantErr: false, + }, { name: "fail", args: args{ diff --git a/services/dns/model_record_set.go b/services/dns/model_record_set.go index fe0405a6c2..364625ac3d 100644 --- a/services/dns/model_record_set.go +++ b/services/dns/model_record_set.go @@ -354,18 +354,31 @@ type RecordSetTypes string // List of Type const ( - RECORDSETTYPE_A RecordSetTypes = "A" - RECORDSETTYPE_AAAA RecordSetTypes = "AAAA" - RECORDSETTYPE_SOA RecordSetTypes = "SOA" - RECORDSETTYPE_CNAME RecordSetTypes = "CNAME" - RECORDSETTYPE_NS RecordSetTypes = "NS" - RECORDSETTYPE_MX RecordSetTypes = "MX" - RECORDSETTYPE_TXT RecordSetTypes = "TXT" - RECORDSETTYPE_SRV RecordSetTypes = "SRV" - RECORDSETTYPE_PTR RecordSetTypes = "PTR" - RECORDSETTYPE_ALIAS RecordSetTypes = "ALIAS" - RECORDSETTYPE_DNAME RecordSetTypes = "DNAME" - RECORDSETTYPE_CAA RecordSetTypes = "CAA" + RECORDSETTYPE_A RecordSetTypes = "A" + RECORDSETTYPE_AAAA RecordSetTypes = "AAAA" + RECORDSETTYPE_SOA RecordSetTypes = "SOA" + RECORDSETTYPE_CNAME RecordSetTypes = "CNAME" + RECORDSETTYPE_NS RecordSetTypes = "NS" + RECORDSETTYPE_MX RecordSetTypes = "MX" + RECORDSETTYPE_TXT RecordSetTypes = "TXT" + RECORDSETTYPE_SRV RecordSetTypes = "SRV" + RECORDSETTYPE_PTR RecordSetTypes = "PTR" + RECORDSETTYPE_ALIAS RecordSetTypes = "ALIAS" + RECORDSETTYPE_DNAME RecordSetTypes = "DNAME" + RECORDSETTYPE_CAA RecordSetTypes = "CAA" + RECORDSETTYPE_DNSKEY RecordSetTypes = "DNSKEY" + RECORDSETTYPE_DS RecordSetTypes = "DS" + RECORDSETTYPE_LOC RecordSetTypes = "LOC" + RECORDSETTYPE_NAPTR RecordSetTypes = "NAPTR" + RECORDSETTYPE_SSHFP RecordSetTypes = "SSHFP" + RECORDSETTYPE_TLSA RecordSetTypes = "TLSA" + RECORDSETTYPE_URI RecordSetTypes = "URI" + RECORDSETTYPE_CERT RecordSetTypes = "CERT" + RECORDSETTYPE_SVCB RecordSetTypes = "SVCB" + RECORDSETTYPE_TYPE RecordSetTypes = "TYPE" + RECORDSETTYPE_CSYNC RecordSetTypes = "CSYNC" + RECORDSETTYPE_HINFO RecordSetTypes = "HINFO" + RECORDSETTYPE_HTTPS RecordSetTypes = "HTTPS" ) // All allowed values of RecordSet enum @@ -382,6 +395,19 @@ var AllowedRecordSetTypesEnumValues = []RecordSetTypes{ "ALIAS", "DNAME", "CAA", + "DNSKEY", + "DS", + "LOC", + "NAPTR", + "SSHFP", + "TLSA", + "URI", + "CERT", + "SVCB", + "TYPE", + "CSYNC", + "HINFO", + "HTTPS", } func (v *RecordSetTypes) UnmarshalJSON(src []byte) error { @@ -545,7 +571,7 @@ type RecordSet struct { // rr set id // REQUIRED Id RecordSetGetIdAttributeType `json:"id" required:"true"` - // name of the record which should be a valid domain according to rfc1035 Section 2.3.4 + // name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here. // REQUIRED Name RecordSetGetNameAttributeType `json:"name" required:"true"` // records diff --git a/services/dns/model_record_set_test.go b/services/dns/model_record_set_test.go index 998a0d222a..ddc9607883 100644 --- a/services/dns/model_record_set_test.go +++ b/services/dns/model_record_set_test.go @@ -201,6 +201,97 @@ func TestRecordSetTypes_UnmarshalJSON(t *testing.T) { }, wantErr: false, }, + { + name: `success - possible enum value no. 13`, + args: args{ + src: []byte(`"DNSKEY"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 14`, + args: args{ + src: []byte(`"DS"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 15`, + args: args{ + src: []byte(`"LOC"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 16`, + args: args{ + src: []byte(`"NAPTR"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 17`, + args: args{ + src: []byte(`"SSHFP"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 18`, + args: args{ + src: []byte(`"TLSA"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 19`, + args: args{ + src: []byte(`"URI"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 20`, + args: args{ + src: []byte(`"CERT"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 21`, + args: args{ + src: []byte(`"SVCB"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 22`, + args: args{ + src: []byte(`"TYPE"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 23`, + args: args{ + src: []byte(`"CSYNC"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 24`, + args: args{ + src: []byte(`"HINFO"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 25`, + args: args{ + src: []byte(`"HTTPS"`), + }, + wantErr: false, + }, { name: "fail", args: args{ diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index b628af1905..5fadb85604 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.26.0 +- **Feature:** Add `Metadata` field to `Server`, `CreateServerPayload`, and `UpdateServerPayload` models +- **Feature:** Increase maximum length validation for `machineType` and `volumePerformanceClass` from 63 to 127 characters + ## v0.25.0 - Add `required:"true"` tags to model structs diff --git a/services/iaas/api_default.go b/services/iaas/api_default.go index e4eb93da28..2e480bbd2d 100644 --- a/services/iaas/api_default.go +++ b/services/iaas/api_default.go @@ -11840,8 +11840,8 @@ func (r GetMachineTypeRequest) Execute() (*MachineType, error) { if strlen(r.projectId) > 36 { return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") } - if strlen(r.machineType) > 63 { - return localVarReturnValue, fmt.Errorf("machineType must have less than 63 elements") + if strlen(r.machineType) > 127 { + return localVarReturnValue, fmt.Errorf("machineType must have less than 127 elements") } // to determine the Content-Type header @@ -15167,8 +15167,8 @@ func (r GetVolumePerformanceClassRequest) Execute() (*VolumePerformanceClass, er if strlen(r.projectId) > 36 { return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") } - if strlen(r.volumePerformanceClass) > 63 { - return localVarReturnValue, fmt.Errorf("volumePerformanceClass must have less than 63 elements") + if strlen(r.volumePerformanceClass) > 127 { + return localVarReturnValue, fmt.Errorf("volumePerformanceClass must have less than 127 elements") } // to determine the Content-Type header diff --git a/services/iaas/api_default_test.go b/services/iaas/api_default_test.go index 20f6ce22cc..9d7b30959b 100644 --- a/services/iaas/api_default_test.go +++ b/services/iaas/api_default_test.go @@ -2437,7 +2437,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/machine-types/{machineType}" projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - machineTypeValue := randString(63) + machineTypeValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"machineType"+"}", url.PathEscape(ParameterValueToString(machineTypeValue, "machineType")), -1) testDefaultApiServeMux := http.NewServeMux() @@ -3384,7 +3384,7 @@ func Test_iaas_DefaultApiService(t *testing.T) { _apiUrlPath := "/v1/projects/{projectId}/volume-performance-classes/{volumePerformanceClass}" projectIdValue := randString(36) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - volumePerformanceClassValue := randString(63) + volumePerformanceClassValue := randString(127) _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"volumePerformanceClass"+"}", url.PathEscape(ParameterValueToString(volumePerformanceClassValue, "volumePerformanceClass")), -1) testDefaultApiServeMux := http.NewServeMux() diff --git a/services/iaas/model_create_server_payload.go b/services/iaas/model_create_server_payload.go index 906982a9da..41c5d3ae5e 100644 --- a/services/iaas/model_create_server_payload.go +++ b/services/iaas/model_create_server_payload.go @@ -265,6 +265,26 @@ func setCreateServerPayloadGetMaintenanceWindowAttributeType(arg *CreateServerPa *arg = &val } +/* + types and functions for metadata +*/ + +// isFreeform +type CreateServerPayloadGetMetadataAttributeType = *map[string]interface{} +type CreateServerPayloadGetMetadataArgType = map[string]interface{} +type CreateServerPayloadGetMetadataRetType = map[string]interface{} + +func getCreateServerPayloadGetMetadataAttributeTypeOk(arg CreateServerPayloadGetMetadataAttributeType) (ret CreateServerPayloadGetMetadataRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateServerPayloadGetMetadataAttributeType(arg *CreateServerPayloadGetMetadataAttributeType, val CreateServerPayloadGetMetadataRetType) { + *arg = &val +} + /* types and functions for name */ @@ -493,6 +513,8 @@ type CreateServerPayload struct { // REQUIRED MachineType CreateServerPayloadGetMachineTypeAttributeType `json:"machineType" required:"true"` MaintenanceWindow CreateServerPayloadGetMaintenanceWindowAttributeType `json:"maintenanceWindow,omitempty"` + // Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`. + Metadata CreateServerPayloadGetMetadataAttributeType `json:"metadata,omitempty"` // The name for a Server. // REQUIRED Name CreateServerPayloadGetNameAttributeType `json:"name" required:"true"` @@ -806,6 +828,29 @@ func (o *CreateServerPayload) SetMaintenanceWindow(v CreateServerPayloadGetMaint setCreateServerPayloadGetMaintenanceWindowAttributeType(&o.MaintenanceWindow, v) } +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *CreateServerPayload) GetMetadata() (res CreateServerPayloadGetMetadataRetType) { + res, _ = o.GetMetadataOk() + return +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateServerPayload) GetMetadataOk() (ret CreateServerPayloadGetMetadataRetType, ok bool) { + return getCreateServerPayloadGetMetadataAttributeTypeOk(o.Metadata) +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CreateServerPayload) HasMetadata() bool { + _, ok := o.GetMetadataOk() + return ok +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *CreateServerPayload) SetMetadata(v CreateServerPayloadGetMetadataRetType) { + setCreateServerPayloadGetMetadataAttributeType(&o.Metadata, v) +} + // GetName returns the Name field value func (o *CreateServerPayload) GetName() (ret CreateServerPayloadGetNameRetType) { ret, _ = o.GetNameOk() @@ -1068,6 +1113,9 @@ func (o CreateServerPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateServerPayloadGetMaintenanceWindowAttributeTypeOk(o.MaintenanceWindow); ok { toSerialize["MaintenanceWindow"] = val } + if val, ok := getCreateServerPayloadGetMetadataAttributeTypeOk(o.Metadata); ok { + toSerialize["Metadata"] = val + } if val, ok := getCreateServerPayloadGetNameAttributeTypeOk(o.Name); ok { toSerialize["Name"] = val } diff --git a/services/iaas/model_server.go b/services/iaas/model_server.go index 7e2b79b503..d5b812da9b 100644 --- a/services/iaas/model_server.go +++ b/services/iaas/model_server.go @@ -265,6 +265,26 @@ func setServerGetMaintenanceWindowAttributeType(arg *ServerGetMaintenanceWindowA *arg = &val } +/* + types and functions for metadata +*/ + +// isFreeform +type ServerGetMetadataAttributeType = *map[string]interface{} +type ServerGetMetadataArgType = map[string]interface{} +type ServerGetMetadataRetType = map[string]interface{} + +func getServerGetMetadataAttributeTypeOk(arg ServerGetMetadataAttributeType) (ret ServerGetMetadataRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setServerGetMetadataAttributeType(arg *ServerGetMetadataAttributeType, val ServerGetMetadataRetType) { + *arg = &val +} + /* types and functions for name */ @@ -493,6 +513,8 @@ type Server struct { // REQUIRED MachineType ServerGetMachineTypeAttributeType `json:"machineType" required:"true"` MaintenanceWindow ServerGetMaintenanceWindowAttributeType `json:"maintenanceWindow,omitempty"` + // Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`. + Metadata ServerGetMetadataAttributeType `json:"metadata,omitempty"` // The name for a Server. // REQUIRED Name ServerGetNameAttributeType `json:"name" required:"true"` @@ -806,6 +828,29 @@ func (o *Server) SetMaintenanceWindow(v ServerGetMaintenanceWindowRetType) { setServerGetMaintenanceWindowAttributeType(&o.MaintenanceWindow, v) } +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Server) GetMetadata() (res ServerGetMetadataRetType) { + res, _ = o.GetMetadataOk() + return +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Server) GetMetadataOk() (ret ServerGetMetadataRetType, ok bool) { + return getServerGetMetadataAttributeTypeOk(o.Metadata) +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Server) HasMetadata() bool { + _, ok := o.GetMetadataOk() + return ok +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *Server) SetMetadata(v ServerGetMetadataRetType) { + setServerGetMetadataAttributeType(&o.Metadata, v) +} + // GetName returns the Name field value func (o *Server) GetName() (ret ServerGetNameRetType) { ret, _ = o.GetNameOk() @@ -1068,6 +1113,9 @@ func (o Server) ToMap() (map[string]interface{}, error) { if val, ok := getServerGetMaintenanceWindowAttributeTypeOk(o.MaintenanceWindow); ok { toSerialize["MaintenanceWindow"] = val } + if val, ok := getServerGetMetadataAttributeTypeOk(o.Metadata); ok { + toSerialize["Metadata"] = val + } if val, ok := getServerGetNameAttributeTypeOk(o.Name); ok { toSerialize["Name"] = val } diff --git a/services/iaas/model_update_server_payload.go b/services/iaas/model_update_server_payload.go index e61f9063d8..bc080c747f 100644 --- a/services/iaas/model_update_server_payload.go +++ b/services/iaas/model_update_server_payload.go @@ -37,6 +37,26 @@ func setUpdateServerPayloadGetLabelsAttributeType(arg *UpdateServerPayloadGetLab *arg = &val } +/* + types and functions for metadata +*/ + +// isFreeform +type UpdateServerPayloadGetMetadataAttributeType = *map[string]interface{} +type UpdateServerPayloadGetMetadataArgType = map[string]interface{} +type UpdateServerPayloadGetMetadataRetType = map[string]interface{} + +func getUpdateServerPayloadGetMetadataAttributeTypeOk(arg UpdateServerPayloadGetMetadataAttributeType) (ret UpdateServerPayloadGetMetadataRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateServerPayloadGetMetadataAttributeType(arg *UpdateServerPayloadGetMetadataAttributeType, val UpdateServerPayloadGetMetadataRetType) { + *arg = &val +} + /* types and functions for name */ @@ -62,6 +82,8 @@ type UpdateServerPayloadGetNameRetType = string type UpdateServerPayload struct { // 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 UpdateServerPayloadGetLabelsAttributeType `json:"labels,omitempty"` + // Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`. + Metadata UpdateServerPayloadGetMetadataAttributeType `json:"metadata,omitempty"` // The name for a Server. Name UpdateServerPayloadGetNameAttributeType `json:"name,omitempty"` } @@ -106,6 +128,29 @@ func (o *UpdateServerPayload) SetLabels(v UpdateServerPayloadGetLabelsRetType) { setUpdateServerPayloadGetLabelsAttributeType(&o.Labels, v) } +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *UpdateServerPayload) GetMetadata() (res UpdateServerPayloadGetMetadataRetType) { + res, _ = o.GetMetadataOk() + return +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateServerPayload) GetMetadataOk() (ret UpdateServerPayloadGetMetadataRetType, ok bool) { + return getUpdateServerPayloadGetMetadataAttributeTypeOk(o.Metadata) +} + +// HasMetadata returns a boolean if a field has been set. +func (o *UpdateServerPayload) HasMetadata() bool { + _, ok := o.GetMetadataOk() + return ok +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *UpdateServerPayload) SetMetadata(v UpdateServerPayloadGetMetadataRetType) { + setUpdateServerPayloadGetMetadataAttributeType(&o.Metadata, v) +} + // GetName returns the Name field value if set, zero value otherwise. func (o *UpdateServerPayload) GetName() (res UpdateServerPayloadGetNameRetType) { res, _ = o.GetNameOk() @@ -134,6 +179,9 @@ func (o UpdateServerPayload) ToMap() (map[string]interface{}, error) { if val, ok := getUpdateServerPayloadGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val } + if val, ok := getUpdateServerPayloadGetMetadataAttributeTypeOk(o.Metadata); ok { + toSerialize["Metadata"] = val + } if val, ok := getUpdateServerPayloadGetNameAttributeTypeOk(o.Name); ok { toSerialize["Name"] = val } diff --git a/services/postgresflex/CHANGELOG.md b/services/postgresflex/CHANGELOG.md index 59ed6b56c8..477333a607 100644 --- a/services/postgresflex/CHANGELOG.md +++ b/services/postgresflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.2.0 +- Add `required:"true"` tags to model structs + ## v1.1.0 (2025-05-15) - **Breaking change:** Introduce interfaces for `APIClient` and the request structs diff --git a/services/postgresflex/model_create_instance_payload.go b/services/postgresflex/model_create_instance_payload.go index 375d2f0502..f99eeb8593 100644 --- a/services/postgresflex/model_create_instance_payload.go +++ b/services/postgresflex/model_create_instance_payload.go @@ -204,24 +204,24 @@ type CreateInstancePayloadGetVersionRetType = string // CreateInstancePayload struct for CreateInstancePayload type CreateInstancePayload struct { // REQUIRED - Acl CreateInstancePayloadGetAclAttributeType `json:"acl"` + Acl CreateInstancePayloadGetAclAttributeType `json:"acl" required:"true"` // REQUIRED - BackupSchedule CreateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule"` + BackupSchedule CreateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"` // REQUIRED - FlavorId CreateInstancePayloadGetFlavorIdAttributeType `json:"flavorId"` + FlavorId CreateInstancePayloadGetFlavorIdAttributeType `json:"flavorId" required:"true"` // Labels field is not certain/clear Labels CreateInstancePayloadGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED - Name CreateInstancePayloadGetNameAttributeType `json:"name"` + Name CreateInstancePayloadGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Options CreateInstancePayloadGetOptionsAttributeType `json:"options"` + Options CreateInstancePayloadGetOptionsAttributeType `json:"options" required:"true"` // Can be cast to int32 without loss of precision. // REQUIRED - Replicas CreateInstancePayloadGetReplicasAttributeType `json:"replicas"` + Replicas CreateInstancePayloadGetReplicasAttributeType `json:"replicas" required:"true"` // REQUIRED - Storage CreateInstancePayloadGetStorageAttributeType `json:"storage"` + Storage CreateInstancePayloadGetStorageAttributeType `json:"storage" required:"true"` // REQUIRED - Version CreateInstancePayloadGetVersionAttributeType `json:"version"` + Version CreateInstancePayloadGetVersionAttributeType `json:"version" required:"true"` } type _CreateInstancePayload CreateInstancePayload diff --git a/services/postgresflex/model_update_backup_schedule_payload.go b/services/postgresflex/model_update_backup_schedule_payload.go index dd12b40451..9a146c71f5 100644 --- a/services/postgresflex/model_update_backup_schedule_payload.go +++ b/services/postgresflex/model_update_backup_schedule_payload.go @@ -41,7 +41,7 @@ type UpdateBackupSchedulePayloadGetBackupScheduleRetType = string // UpdateBackupSchedulePayload struct for UpdateBackupSchedulePayload type UpdateBackupSchedulePayload struct { // REQUIRED - BackupSchedule UpdateBackupSchedulePayloadGetBackupScheduleAttributeType `json:"backupSchedule"` + BackupSchedule UpdateBackupSchedulePayloadGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"` } type _UpdateBackupSchedulePayload UpdateBackupSchedulePayload diff --git a/services/rabbitmq/CHANGELOG.md b/services/rabbitmq/CHANGELOG.md index 57f6eb9cc8..83552b017d 100644 --- a/services/rabbitmq/CHANGELOG.md +++ b/services/rabbitmq/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.25.0 +- Add `required:"true"` tags to model structs + ## v0.24.1 (2025-06-04) - **Bugfix:** Adjusted `UnmarshalJSON` function to use enum types and added tests for enums diff --git a/services/rabbitmq/model_backup.go b/services/rabbitmq/model_backup.go index 4906b9bf59..efa45fac9b 100644 --- a/services/rabbitmq/model_backup.go +++ b/services/rabbitmq/model_backup.go @@ -144,12 +144,12 @@ type BackupGetTriggeredAtRetType = string type Backup struct { Downloadable BackupgetDownloadableAttributeType `json:"downloadable,omitempty"` // REQUIRED - FinishedAt BackupGetFinishedAtAttributeType `json:"finished_at"` + FinishedAt BackupGetFinishedAtAttributeType `json:"finished_at" required:"true"` // REQUIRED - Id BackupGetIdAttributeType `json:"id"` + Id BackupGetIdAttributeType `json:"id" required:"true"` Size BackupGetSizeAttributeType `json:"size,omitempty"` // REQUIRED - Status BackupGetStatusAttributeType `json:"status"` + Status BackupGetStatusAttributeType `json:"status" required:"true"` TriggeredAt BackupGetTriggeredAtAttributeType `json:"triggered_at,omitempty"` } diff --git a/services/rabbitmq/model_create_backup_response_item.go b/services/rabbitmq/model_create_backup_response_item.go index d350fe2552..33339d35d7 100644 --- a/services/rabbitmq/model_create_backup_response_item.go +++ b/services/rabbitmq/model_create_backup_response_item.go @@ -61,9 +61,9 @@ type CreateBackupResponseItemGetMessageRetType = string // CreateBackupResponseItem struct for CreateBackupResponseItem type CreateBackupResponseItem struct { // REQUIRED - Id CreateBackupResponseItemGetIdAttributeType `json:"id"` + Id CreateBackupResponseItemGetIdAttributeType `json:"id" required:"true"` // REQUIRED - Message CreateBackupResponseItemGetMessageAttributeType `json:"message"` + Message CreateBackupResponseItemGetMessageAttributeType `json:"message" required:"true"` } type _CreateBackupResponseItem CreateBackupResponseItem diff --git a/services/rabbitmq/model_create_instance_payload.go b/services/rabbitmq/model_create_instance_payload.go index c6e32d3edf..c186577e8e 100644 --- a/services/rabbitmq/model_create_instance_payload.go +++ b/services/rabbitmq/model_create_instance_payload.go @@ -82,10 +82,10 @@ type CreateInstancePayloadGetPlanIdRetType = string // CreateInstancePayload struct for CreateInstancePayload type CreateInstancePayload struct { // REQUIRED - InstanceName CreateInstancePayloadGetInstanceNameAttributeType `json:"instanceName"` + InstanceName CreateInstancePayloadGetInstanceNameAttributeType `json:"instanceName" required:"true"` Parameters CreateInstancePayloadGetParametersAttributeType `json:"parameters,omitempty"` // REQUIRED - PlanId CreateInstancePayloadGetPlanIdAttributeType `json:"planId"` + PlanId CreateInstancePayloadGetPlanIdAttributeType `json:"planId" required:"true"` } type _CreateInstancePayload CreateInstancePayload diff --git a/services/rabbitmq/model_create_instance_response.go b/services/rabbitmq/model_create_instance_response.go index 3961313b32..c24c4fd6fe 100644 --- a/services/rabbitmq/model_create_instance_response.go +++ b/services/rabbitmq/model_create_instance_response.go @@ -41,7 +41,7 @@ type CreateInstanceResponseGetInstanceIdRetType = string // CreateInstanceResponse struct for CreateInstanceResponse type CreateInstanceResponse struct { // REQUIRED - InstanceId CreateInstanceResponseGetInstanceIdAttributeType `json:"instanceId"` + InstanceId CreateInstanceResponseGetInstanceIdAttributeType `json:"instanceId" required:"true"` } type _CreateInstanceResponse CreateInstanceResponse diff --git a/services/rabbitmq/model_credentials.go b/services/rabbitmq/model_credentials.go index 1950fa565b..408e4739cd 100644 --- a/services/rabbitmq/model_credentials.go +++ b/services/rabbitmq/model_credentials.go @@ -268,7 +268,7 @@ type CredentialsGetUsernameRetType = string // Credentials struct for Credentials type Credentials struct { // REQUIRED - Host CredentialsGetHostAttributeType `json:"host"` + Host CredentialsGetHostAttributeType `json:"host" required:"true"` Hosts CredentialsGetHostsAttributeType `json:"hosts,omitempty"` // for rabbitmq only HttpApiUri CredentialsGetHttpApiUriAttributeType `json:"http_api_uri,omitempty"` @@ -276,14 +276,14 @@ type Credentials struct { Management CredentialsGetManagementAttributeType `json:"management,omitempty"` Mqtt CredentialsGetMqttAttributeType `json:"mqtt,omitempty"` // REQUIRED - Password CredentialsGetPasswordAttributeType `json:"password"` + Password CredentialsGetPasswordAttributeType `json:"password" required:"true"` // Can be cast to int32 without loss of precision. Port CredentialsGetPortAttributeType `json:"port,omitempty"` Stomp CredentialsGetStompAttributeType `json:"stomp,omitempty"` Uri CredentialsGetUriAttributeType `json:"uri,omitempty"` Uris CredentialsGetUrisAttributeType `json:"uris,omitempty"` // REQUIRED - Username CredentialsGetUsernameAttributeType `json:"username"` + Username CredentialsGetUsernameAttributeType `json:"username" required:"true"` } type _Credentials Credentials diff --git a/services/rabbitmq/model_credentials_list_item.go b/services/rabbitmq/model_credentials_list_item.go index 267d827212..579cced05a 100644 --- a/services/rabbitmq/model_credentials_list_item.go +++ b/services/rabbitmq/model_credentials_list_item.go @@ -41,7 +41,7 @@ type CredentialsListItemGetIdRetType = string // CredentialsListItem struct for CredentialsListItem type CredentialsListItem struct { // REQUIRED - Id CredentialsListItemGetIdAttributeType `json:"id"` + Id CredentialsListItemGetIdAttributeType `json:"id" required:"true"` } type _CredentialsListItem CredentialsListItem diff --git a/services/rabbitmq/model_credentials_response.go b/services/rabbitmq/model_credentials_response.go index 360d28901f..db676751db 100644 --- a/services/rabbitmq/model_credentials_response.go +++ b/services/rabbitmq/model_credentials_response.go @@ -82,10 +82,10 @@ type CredentialsResponseGetUriRetType = string // CredentialsResponse struct for CredentialsResponse type CredentialsResponse struct { // REQUIRED - Id CredentialsResponseGetIdAttributeType `json:"id"` + Id CredentialsResponseGetIdAttributeType `json:"id" required:"true"` Raw CredentialsResponseGetRawAttributeType `json:"raw,omitempty"` // REQUIRED - Uri CredentialsResponseGetUriAttributeType `json:"uri"` + Uri CredentialsResponseGetUriAttributeType `json:"uri" required:"true"` } type _CredentialsResponse CredentialsResponse diff --git a/services/rabbitmq/model_error.go b/services/rabbitmq/model_error.go index 7304aaddba..741165e840 100644 --- a/services/rabbitmq/model_error.go +++ b/services/rabbitmq/model_error.go @@ -62,9 +62,9 @@ type ErrorGetErrorRetType = string // Error struct for Error type Error struct { // REQUIRED - Description ErrorGetDescriptionAttributeType `json:"description"` + Description ErrorGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - Error ErrorGetErrorAttributeType `json:"error"` + Error ErrorGetErrorAttributeType `json:"error" required:"true"` } type _Error Error diff --git a/services/rabbitmq/model_get_metrics_response.go b/services/rabbitmq/model_get_metrics_response.go index faec2c2ad9..edc29ff890 100644 --- a/services/rabbitmq/model_get_metrics_response.go +++ b/services/rabbitmq/model_get_metrics_response.go @@ -481,47 +481,47 @@ func setGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType(a type GetMetricsResponse struct { CpuIdleTime GetMetricsResponseGetCpuIdleTimeAttributeType `json:"cpuIdleTime,omitempty"` // REQUIRED - CpuLoadPercent GetMetricsResponseGetCpuLoadPercentAttributeType `json:"cpuLoadPercent"` + CpuLoadPercent GetMetricsResponseGetCpuLoadPercentAttributeType `json:"cpuLoadPercent" required:"true"` CpuSystemTime GetMetricsResponseGetCpuSystemTimeAttributeType `json:"cpuSystemTime,omitempty"` CpuUserTime GetMetricsResponseGetCpuUserTimeAttributeType `json:"cpuUserTime,omitempty"` // REQUIRED - DiskEphemeralTotal GetMetricsResponseGetDiskEphemeralTotalAttributeType `json:"diskEphemeralTotal"` + DiskEphemeralTotal GetMetricsResponseGetDiskEphemeralTotalAttributeType `json:"diskEphemeralTotal" required:"true"` // REQUIRED - DiskEphemeralUsed GetMetricsResponseGetDiskEphemeralUsedAttributeType `json:"diskEphemeralUsed"` + DiskEphemeralUsed GetMetricsResponseGetDiskEphemeralUsedAttributeType `json:"diskEphemeralUsed" required:"true"` // REQUIRED - DiskPersistentTotal GetMetricsResponseGetDiskPersistentTotalAttributeType `json:"diskPersistentTotal"` + DiskPersistentTotal GetMetricsResponseGetDiskPersistentTotalAttributeType `json:"diskPersistentTotal" required:"true"` // REQUIRED - DiskPersistentUsed GetMetricsResponseGetDiskPersistentUsedAttributeType `json:"diskPersistentUsed"` + DiskPersistentUsed GetMetricsResponseGetDiskPersistentUsedAttributeType `json:"diskPersistentUsed" required:"true"` // REQUIRED - Load1 GetMetricsResponseGetLoad1AttributeType `json:"load1"` + Load1 GetMetricsResponseGetLoad1AttributeType `json:"load1" required:"true"` // REQUIRED - Load15 GetMetricsResponseGetLoad15AttributeType `json:"load15"` + Load15 GetMetricsResponseGetLoad15AttributeType `json:"load15" required:"true"` // REQUIRED - Load5 GetMetricsResponseGetLoad5AttributeType `json:"load5"` + Load5 GetMetricsResponseGetLoad5AttributeType `json:"load5" required:"true"` // REQUIRED - MemoryTotal GetMetricsResponseGetMemoryTotalAttributeType `json:"memoryTotal"` + MemoryTotal GetMetricsResponseGetMemoryTotalAttributeType `json:"memoryTotal" required:"true"` // REQUIRED - MemoryUsed GetMetricsResponseGetMemoryUsedAttributeType `json:"memoryUsed"` + MemoryUsed GetMetricsResponseGetMemoryUsedAttributeType `json:"memoryUsed" required:"true"` // REQUIRED - ParachuteDiskEphemeralActivated GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType `json:"parachuteDiskEphemeralActivated"` + ParachuteDiskEphemeralActivated GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType `json:"parachuteDiskEphemeralActivated" required:"true"` // REQUIRED - ParachuteDiskEphemeralTotal GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType `json:"parachuteDiskEphemeralTotal"` + ParachuteDiskEphemeralTotal GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType `json:"parachuteDiskEphemeralTotal" required:"true"` // REQUIRED - ParachuteDiskEphemeralUsed GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType `json:"parachuteDiskEphemeralUsed"` + ParachuteDiskEphemeralUsed GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType `json:"parachuteDiskEphemeralUsed" required:"true"` // REQUIRED - ParachuteDiskEphemeralUsedPercent GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType `json:"parachuteDiskEphemeralUsedPercent"` + ParachuteDiskEphemeralUsedPercent GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType `json:"parachuteDiskEphemeralUsedPercent" required:"true"` // REQUIRED - ParachuteDiskEphemeralUsedThreshold GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType `json:"parachuteDiskEphemeralUsedThreshold"` + ParachuteDiskEphemeralUsedThreshold GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType `json:"parachuteDiskEphemeralUsedThreshold" required:"true"` // REQUIRED - ParachuteDiskPersistentActivated GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType `json:"parachuteDiskPersistentActivated"` + ParachuteDiskPersistentActivated GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType `json:"parachuteDiskPersistentActivated" required:"true"` // REQUIRED - ParachuteDiskPersistentTotal GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType `json:"parachuteDiskPersistentTotal"` + ParachuteDiskPersistentTotal GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType `json:"parachuteDiskPersistentTotal" required:"true"` // REQUIRED - ParachuteDiskPersistentUsed GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType `json:"parachuteDiskPersistentUsed"` + ParachuteDiskPersistentUsed GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType `json:"parachuteDiskPersistentUsed" required:"true"` // REQUIRED - ParachuteDiskPersistentUsedPercent GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType `json:"parachuteDiskPersistentUsedPercent"` + ParachuteDiskPersistentUsedPercent GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType `json:"parachuteDiskPersistentUsedPercent" required:"true"` // REQUIRED - ParachuteDiskPersistentUsedThreshold GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType `json:"parachuteDiskPersistentUsedThreshold"` + ParachuteDiskPersistentUsedThreshold GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType `json:"parachuteDiskPersistentUsedThreshold" required:"true"` } type _GetMetricsResponse GetMetricsResponse diff --git a/services/rabbitmq/model_instance.go b/services/rabbitmq/model_instance.go index e1bf11ae56..9d8ea5bdb5 100644 --- a/services/rabbitmq/model_instance.go +++ b/services/rabbitmq/model_instance.go @@ -424,31 +424,31 @@ func setInstanceGetStatusAttributeType(arg *InstanceGetStatusAttributeType, val // Instance struct for Instance type Instance struct { // REQUIRED - CfGuid InstanceGetCfGuidAttributeType `json:"cfGuid"` + CfGuid InstanceGetCfGuidAttributeType `json:"cfGuid" required:"true"` // REQUIRED - CfOrganizationGuid InstanceGetCfOrganizationGuidAttributeType `json:"cfOrganizationGuid"` + CfOrganizationGuid InstanceGetCfOrganizationGuidAttributeType `json:"cfOrganizationGuid" required:"true"` // REQUIRED - CfSpaceGuid InstanceGetCfSpaceGuidAttributeType `json:"cfSpaceGuid"` + CfSpaceGuid InstanceGetCfSpaceGuidAttributeType `json:"cfSpaceGuid" required:"true"` // REQUIRED - DashboardUrl InstanceGetDashboardUrlAttributeType `json:"dashboardUrl"` + DashboardUrl InstanceGetDashboardUrlAttributeType `json:"dashboardUrl" required:"true"` // REQUIRED - ImageUrl InstanceGetImageUrlAttributeType `json:"imageUrl"` + ImageUrl InstanceGetImageUrlAttributeType `json:"imageUrl" required:"true"` InstanceId InstanceGetInstanceIdAttributeType `json:"instanceId,omitempty"` // REQUIRED - LastOperation InstanceGetLastOperationAttributeType `json:"lastOperation"` + LastOperation InstanceGetLastOperationAttributeType `json:"lastOperation" required:"true"` // REQUIRED - Name InstanceGetNameAttributeType `json:"name"` + Name InstanceGetNameAttributeType `json:"name" required:"true"` // Deprecated: Check the GitHub changelog for alternatives // REQUIRED - OfferingName InstanceGetOfferingNameAttributeType `json:"offeringName"` + OfferingName InstanceGetOfferingNameAttributeType `json:"offeringName" required:"true"` // REQUIRED - OfferingVersion InstanceGetOfferingVersionAttributeType `json:"offeringVersion"` + OfferingVersion InstanceGetOfferingVersionAttributeType `json:"offeringVersion" required:"true"` // REQUIRED - Parameters InstanceGetParametersAttributeType `json:"parameters"` + Parameters InstanceGetParametersAttributeType `json:"parameters" required:"true"` // REQUIRED - PlanId InstanceGetPlanIdAttributeType `json:"planId"` + PlanId InstanceGetPlanIdAttributeType `json:"planId" required:"true"` // REQUIRED - PlanName InstanceGetPlanNameAttributeType `json:"planName"` + PlanName InstanceGetPlanNameAttributeType `json:"planName" required:"true"` Status InstanceGetStatusAttributeType `json:"status,omitempty"` } diff --git a/services/rabbitmq/model_instance_last_operation.go b/services/rabbitmq/model_instance_last_operation.go index 00863ffdef..aaf46e137e 100644 --- a/services/rabbitmq/model_instance_last_operation.go +++ b/services/rabbitmq/model_instance_last_operation.go @@ -294,11 +294,11 @@ func setInstanceLastOperationGetTypeAttributeType(arg *InstanceLastOperationGetT // InstanceLastOperation struct for InstanceLastOperation type InstanceLastOperation struct { // REQUIRED - Description InstanceLastOperationGetDescriptionAttributeType `json:"description"` + Description InstanceLastOperationGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - State InstanceLastOperationGetStateAttributeType `json:"state"` + State InstanceLastOperationGetStateAttributeType `json:"state" required:"true"` // REQUIRED - Type InstanceLastOperationGetTypeAttributeType `json:"type"` + Type InstanceLastOperationGetTypeAttributeType `json:"type" required:"true"` } type _InstanceLastOperation InstanceLastOperation diff --git a/services/rabbitmq/model_instance_schema.go b/services/rabbitmq/model_instance_schema.go index b24d193181..ddf7111370 100644 --- a/services/rabbitmq/model_instance_schema.go +++ b/services/rabbitmq/model_instance_schema.go @@ -60,9 +60,9 @@ func setInstanceSchemaGetUpdateAttributeType(arg *InstanceSchemaGetUpdateAttribu // InstanceSchema struct for InstanceSchema type InstanceSchema struct { // REQUIRED - Create InstanceSchemaGetCreateAttributeType `json:"create"` + Create InstanceSchemaGetCreateAttributeType `json:"create" required:"true"` // REQUIRED - Update InstanceSchemaGetUpdateAttributeType `json:"update"` + Update InstanceSchemaGetUpdateAttributeType `json:"update" required:"true"` } type _InstanceSchema InstanceSchema diff --git a/services/rabbitmq/model_list_backups_response.go b/services/rabbitmq/model_list_backups_response.go index 575e4f7bf8..941ce95e40 100644 --- a/services/rabbitmq/model_list_backups_response.go +++ b/services/rabbitmq/model_list_backups_response.go @@ -40,7 +40,7 @@ func setListBackupsResponseGetInstanceBackupsAttributeType(arg *ListBackupsRespo // ListBackupsResponse struct for ListBackupsResponse type ListBackupsResponse struct { // REQUIRED - InstanceBackups ListBackupsResponseGetInstanceBackupsAttributeType `json:"instanceBackups"` + InstanceBackups ListBackupsResponseGetInstanceBackupsAttributeType `json:"instanceBackups" required:"true"` } type _ListBackupsResponse ListBackupsResponse diff --git a/services/rabbitmq/model_list_credentials_response.go b/services/rabbitmq/model_list_credentials_response.go index f81c8b9bc8..93f5cdab80 100644 --- a/services/rabbitmq/model_list_credentials_response.go +++ b/services/rabbitmq/model_list_credentials_response.go @@ -40,7 +40,7 @@ func setListCredentialsResponseGetCredentialsListAttributeType(arg *ListCredenti // ListCredentialsResponse struct for ListCredentialsResponse type ListCredentialsResponse struct { // REQUIRED - CredentialsList ListCredentialsResponseGetCredentialsListAttributeType `json:"credentialsList"` + CredentialsList ListCredentialsResponseGetCredentialsListAttributeType `json:"credentialsList" required:"true"` } type _ListCredentialsResponse ListCredentialsResponse diff --git a/services/rabbitmq/model_list_instances_response.go b/services/rabbitmq/model_list_instances_response.go index 929cc97a85..90f41ece98 100644 --- a/services/rabbitmq/model_list_instances_response.go +++ b/services/rabbitmq/model_list_instances_response.go @@ -40,7 +40,7 @@ func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesRespons // ListInstancesResponse struct for ListInstancesResponse type ListInstancesResponse struct { // REQUIRED - Instances ListInstancesResponseGetInstancesAttributeType `json:"instances"` + Instances ListInstancesResponseGetInstancesAttributeType `json:"instances" required:"true"` } type _ListInstancesResponse ListInstancesResponse diff --git a/services/rabbitmq/model_list_offerings_response.go b/services/rabbitmq/model_list_offerings_response.go index f54c677d23..52f909ef3d 100644 --- a/services/rabbitmq/model_list_offerings_response.go +++ b/services/rabbitmq/model_list_offerings_response.go @@ -40,7 +40,7 @@ func setListOfferingsResponseGetOfferingsAttributeType(arg *ListOfferingsRespons // ListOfferingsResponse struct for ListOfferingsResponse type ListOfferingsResponse struct { // REQUIRED - Offerings ListOfferingsResponseGetOfferingsAttributeType `json:"offerings"` + Offerings ListOfferingsResponseGetOfferingsAttributeType `json:"offerings" required:"true"` } type _ListOfferingsResponse ListOfferingsResponse diff --git a/services/rabbitmq/model_list_restores_response.go b/services/rabbitmq/model_list_restores_response.go index 81283b995e..d12ad33287 100644 --- a/services/rabbitmq/model_list_restores_response.go +++ b/services/rabbitmq/model_list_restores_response.go @@ -40,7 +40,7 @@ func setListRestoresResponseGetInstanceRestoresAttributeType(arg *ListRestoresRe // ListRestoresResponse struct for ListRestoresResponse type ListRestoresResponse struct { // REQUIRED - InstanceRestores ListRestoresResponseGetInstanceRestoresAttributeType `json:"instanceRestores"` + InstanceRestores ListRestoresResponseGetInstanceRestoresAttributeType `json:"instanceRestores" required:"true"` } type _ListRestoresResponse ListRestoresResponse diff --git a/services/rabbitmq/model_offering.go b/services/rabbitmq/model_offering.go index e244f0cb9c..a41ede12ae 100644 --- a/services/rabbitmq/model_offering.go +++ b/services/rabbitmq/model_offering.go @@ -226,23 +226,23 @@ type OfferingGetVersionRetType = string // Offering struct for Offering type Offering struct { // REQUIRED - Description OfferingGetDescriptionAttributeType `json:"description"` + Description OfferingGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - DocumentationUrl OfferingGetDocumentationUrlAttributeType `json:"documentationUrl"` + DocumentationUrl OfferingGetDocumentationUrlAttributeType `json:"documentationUrl" required:"true"` // REQUIRED - ImageUrl OfferingGetImageUrlAttributeType `json:"imageUrl"` + ImageUrl OfferingGetImageUrlAttributeType `json:"imageUrl" required:"true"` // REQUIRED - Latest OfferinggetLatestAttributeType `json:"latest"` + Latest OfferinggetLatestAttributeType `json:"latest" required:"true"` Lifecycle OfferingGetLifecycleAttributeType `json:"lifecycle,omitempty"` // REQUIRED - Name OfferingGetNameAttributeType `json:"name"` + Name OfferingGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Plans OfferingGetPlansAttributeType `json:"plans"` + Plans OfferingGetPlansAttributeType `json:"plans" required:"true"` // REQUIRED - QuotaCount OfferingGetQuotaCountAttributeType `json:"quotaCount"` + QuotaCount OfferingGetQuotaCountAttributeType `json:"quotaCount" required:"true"` Schema OfferingGetSchemaAttributeType `json:"schema,omitempty"` // REQUIRED - Version OfferingGetVersionAttributeType `json:"version"` + Version OfferingGetVersionAttributeType `json:"version" required:"true"` } type _Offering Offering diff --git a/services/rabbitmq/model_plan.go b/services/rabbitmq/model_plan.go index b2f15bd59b..2d11120e70 100644 --- a/services/rabbitmq/model_plan.go +++ b/services/rabbitmq/model_plan.go @@ -124,15 +124,15 @@ type PlanGetSkuNameRetType = string // Plan struct for Plan type Plan struct { // REQUIRED - Description PlanGetDescriptionAttributeType `json:"description"` + Description PlanGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - Free PlangetFreeAttributeType `json:"free"` + Free PlangetFreeAttributeType `json:"free" required:"true"` // REQUIRED - Id PlanGetIdAttributeType `json:"id"` + Id PlanGetIdAttributeType `json:"id" required:"true"` // REQUIRED - Name PlanGetNameAttributeType `json:"name"` + Name PlanGetNameAttributeType `json:"name" required:"true"` // REQUIRED - SkuName PlanGetSkuNameAttributeType `json:"skuName"` + SkuName PlanGetSkuNameAttributeType `json:"skuName" required:"true"` } type _Plan Plan diff --git a/services/rabbitmq/model_raw_credentials.go b/services/rabbitmq/model_raw_credentials.go index 78f378e498..634f2b3492 100644 --- a/services/rabbitmq/model_raw_credentials.go +++ b/services/rabbitmq/model_raw_credentials.go @@ -40,7 +40,7 @@ func setRawCredentialsGetCredentialsAttributeType(arg *RawCredentialsGetCredenti // RawCredentials struct for RawCredentials type RawCredentials struct { // REQUIRED - Credentials RawCredentialsGetCredentialsAttributeType `json:"credentials"` + Credentials RawCredentialsGetCredentialsAttributeType `json:"credentials" required:"true"` } type _RawCredentials RawCredentials diff --git a/services/rabbitmq/model_restore.go b/services/rabbitmq/model_restore.go index 93293f7b49..62686cc167 100644 --- a/services/rabbitmq/model_restore.go +++ b/services/rabbitmq/model_restore.go @@ -123,13 +123,13 @@ type RestoreGetTriggeredAtRetType = string // Restore struct for Restore type Restore struct { // REQUIRED - BackupId RestoreGetBackupIdAttributeType `json:"backup_id"` + BackupId RestoreGetBackupIdAttributeType `json:"backup_id" required:"true"` // REQUIRED - FinishedAt RestoreGetFinishedAtAttributeType `json:"finished_at"` + FinishedAt RestoreGetFinishedAtAttributeType `json:"finished_at" required:"true"` // REQUIRED - Id RestoreGetIdAttributeType `json:"id"` + Id RestoreGetIdAttributeType `json:"id" required:"true"` // REQUIRED - Status RestoreGetStatusAttributeType `json:"status"` + Status RestoreGetStatusAttributeType `json:"status" required:"true"` TriggeredAt RestoreGetTriggeredAtAttributeType `json:"triggered_at,omitempty"` } diff --git a/services/rabbitmq/model_schema.go b/services/rabbitmq/model_schema.go index 5901cccaaf..6ce18aeafd 100644 --- a/services/rabbitmq/model_schema.go +++ b/services/rabbitmq/model_schema.go @@ -40,7 +40,7 @@ func setSchemaGetParametersAttributeType(arg *SchemaGetParametersAttributeType, // Schema struct for Schema type Schema struct { // REQUIRED - Parameters SchemaGetParametersAttributeType `json:"parameters"` + Parameters SchemaGetParametersAttributeType `json:"parameters" required:"true"` } type _Schema Schema diff --git a/services/rabbitmq/model_trigger_restore_response.go b/services/rabbitmq/model_trigger_restore_response.go index 0fdcbec430..5d78b9afbe 100644 --- a/services/rabbitmq/model_trigger_restore_response.go +++ b/services/rabbitmq/model_trigger_restore_response.go @@ -40,7 +40,7 @@ func setTriggerRestoreResponseGetIdAttributeType(arg *TriggerRestoreResponseGetI // TriggerRestoreResponse struct for TriggerRestoreResponse type TriggerRestoreResponse struct { // REQUIRED - Id TriggerRestoreResponseGetIdAttributeType `json:"id"` + Id TriggerRestoreResponseGetIdAttributeType `json:"id" required:"true"` } type _TriggerRestoreResponse TriggerRestoreResponse diff --git a/services/rabbitmq/model_update_backups_config_response.go b/services/rabbitmq/model_update_backups_config_response.go index a6664b52af..a44fb7471c 100644 --- a/services/rabbitmq/model_update_backups_config_response.go +++ b/services/rabbitmq/model_update_backups_config_response.go @@ -41,7 +41,7 @@ type UpdateBackupsConfigResponseGetMessageRetType = string // UpdateBackupsConfigResponse struct for UpdateBackupsConfigResponse type UpdateBackupsConfigResponse struct { // REQUIRED - Message UpdateBackupsConfigResponseGetMessageAttributeType `json:"message"` + Message UpdateBackupsConfigResponseGetMessageAttributeType `json:"message" required:"true"` } type _UpdateBackupsConfigResponse UpdateBackupsConfigResponse diff --git a/services/redis/CHANGELOG.md b/services/redis/CHANGELOG.md index d4f5773fd6..fe2438c32c 100644 --- a/services/redis/CHANGELOG.md +++ b/services/redis/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.25.0 +- Add `required:"true"` tags to model structs + ## v0.24.1 (2025-06-04) - **Bugfix:** Adjusted `UnmarshalJSON` function to use enum types and added tests for enums diff --git a/services/redis/model_backup.go b/services/redis/model_backup.go index dd944de4be..6bd56b1124 100644 --- a/services/redis/model_backup.go +++ b/services/redis/model_backup.go @@ -144,12 +144,12 @@ type BackupGetTriggeredAtRetType = string type Backup struct { Downloadable BackupgetDownloadableAttributeType `json:"downloadable,omitempty"` // REQUIRED - FinishedAt BackupGetFinishedAtAttributeType `json:"finished_at"` + FinishedAt BackupGetFinishedAtAttributeType `json:"finished_at" required:"true"` // REQUIRED - Id BackupGetIdAttributeType `json:"id"` + Id BackupGetIdAttributeType `json:"id" required:"true"` Size BackupGetSizeAttributeType `json:"size,omitempty"` // REQUIRED - Status BackupGetStatusAttributeType `json:"status"` + Status BackupGetStatusAttributeType `json:"status" required:"true"` TriggeredAt BackupGetTriggeredAtAttributeType `json:"triggered_at,omitempty"` } diff --git a/services/redis/model_create_backup_response_item.go b/services/redis/model_create_backup_response_item.go index e7b0c954e7..0a9c6fb1cf 100644 --- a/services/redis/model_create_backup_response_item.go +++ b/services/redis/model_create_backup_response_item.go @@ -61,9 +61,9 @@ type CreateBackupResponseItemGetMessageRetType = string // CreateBackupResponseItem struct for CreateBackupResponseItem type CreateBackupResponseItem struct { // REQUIRED - Id CreateBackupResponseItemGetIdAttributeType `json:"id"` + Id CreateBackupResponseItemGetIdAttributeType `json:"id" required:"true"` // REQUIRED - Message CreateBackupResponseItemGetMessageAttributeType `json:"message"` + Message CreateBackupResponseItemGetMessageAttributeType `json:"message" required:"true"` } type _CreateBackupResponseItem CreateBackupResponseItem diff --git a/services/redis/model_create_instance_payload.go b/services/redis/model_create_instance_payload.go index 5c8725e41f..a88afd4318 100644 --- a/services/redis/model_create_instance_payload.go +++ b/services/redis/model_create_instance_payload.go @@ -82,10 +82,10 @@ type CreateInstancePayloadGetPlanIdRetType = string // CreateInstancePayload struct for CreateInstancePayload type CreateInstancePayload struct { // REQUIRED - InstanceName CreateInstancePayloadGetInstanceNameAttributeType `json:"instanceName"` + InstanceName CreateInstancePayloadGetInstanceNameAttributeType `json:"instanceName" required:"true"` Parameters CreateInstancePayloadGetParametersAttributeType `json:"parameters,omitempty"` // REQUIRED - PlanId CreateInstancePayloadGetPlanIdAttributeType `json:"planId"` + PlanId CreateInstancePayloadGetPlanIdAttributeType `json:"planId" required:"true"` } type _CreateInstancePayload CreateInstancePayload diff --git a/services/redis/model_create_instance_response.go b/services/redis/model_create_instance_response.go index 629817ed69..fe8e49647d 100644 --- a/services/redis/model_create_instance_response.go +++ b/services/redis/model_create_instance_response.go @@ -41,7 +41,7 @@ type CreateInstanceResponseGetInstanceIdRetType = string // CreateInstanceResponse struct for CreateInstanceResponse type CreateInstanceResponse struct { // REQUIRED - InstanceId CreateInstanceResponseGetInstanceIdAttributeType `json:"instanceId"` + InstanceId CreateInstanceResponseGetInstanceIdAttributeType `json:"instanceId" required:"true"` } type _CreateInstanceResponse CreateInstanceResponse diff --git a/services/redis/model_credentials.go b/services/redis/model_credentials.go index 00a035e496..0b37925ab5 100644 --- a/services/redis/model_credentials.go +++ b/services/redis/model_credentials.go @@ -165,16 +165,16 @@ type CredentialsGetUsernameRetType = string // Credentials struct for Credentials type Credentials struct { // REQUIRED - Host CredentialsGetHostAttributeType `json:"host"` + Host CredentialsGetHostAttributeType `json:"host" required:"true"` Hosts CredentialsGetHostsAttributeType `json:"hosts,omitempty"` LoadBalancedHost CredentialsGetLoadBalancedHostAttributeType `json:"load_balanced_host,omitempty"` // REQUIRED - Password CredentialsGetPasswordAttributeType `json:"password"` + Password CredentialsGetPasswordAttributeType `json:"password" required:"true"` // Can be cast to int32 without loss of precision. Port CredentialsGetPortAttributeType `json:"port,omitempty"` Uri CredentialsGetUriAttributeType `json:"uri,omitempty"` // REQUIRED - Username CredentialsGetUsernameAttributeType `json:"username"` + Username CredentialsGetUsernameAttributeType `json:"username" required:"true"` } type _Credentials Credentials diff --git a/services/redis/model_credentials_list_item.go b/services/redis/model_credentials_list_item.go index 938c591faa..f72cf31ff7 100644 --- a/services/redis/model_credentials_list_item.go +++ b/services/redis/model_credentials_list_item.go @@ -41,7 +41,7 @@ type CredentialsListItemGetIdRetType = string // CredentialsListItem struct for CredentialsListItem type CredentialsListItem struct { // REQUIRED - Id CredentialsListItemGetIdAttributeType `json:"id"` + Id CredentialsListItemGetIdAttributeType `json:"id" required:"true"` } type _CredentialsListItem CredentialsListItem diff --git a/services/redis/model_credentials_response.go b/services/redis/model_credentials_response.go index 7624952118..8bf9703cbf 100644 --- a/services/redis/model_credentials_response.go +++ b/services/redis/model_credentials_response.go @@ -82,10 +82,10 @@ type CredentialsResponseGetUriRetType = string // CredentialsResponse struct for CredentialsResponse type CredentialsResponse struct { // REQUIRED - Id CredentialsResponseGetIdAttributeType `json:"id"` + Id CredentialsResponseGetIdAttributeType `json:"id" required:"true"` Raw CredentialsResponseGetRawAttributeType `json:"raw,omitempty"` // REQUIRED - Uri CredentialsResponseGetUriAttributeType `json:"uri"` + Uri CredentialsResponseGetUriAttributeType `json:"uri" required:"true"` } type _CredentialsResponse CredentialsResponse diff --git a/services/redis/model_error.go b/services/redis/model_error.go index 2edb4f5dda..9a2dcd873a 100644 --- a/services/redis/model_error.go +++ b/services/redis/model_error.go @@ -62,9 +62,9 @@ type ErrorGetErrorRetType = string // Error struct for Error type Error struct { // REQUIRED - Description ErrorGetDescriptionAttributeType `json:"description"` + Description ErrorGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - Error ErrorGetErrorAttributeType `json:"error"` + Error ErrorGetErrorAttributeType `json:"error" required:"true"` } type _Error Error diff --git a/services/redis/model_get_metrics_response.go b/services/redis/model_get_metrics_response.go index a6476ba638..412845bb3d 100644 --- a/services/redis/model_get_metrics_response.go +++ b/services/redis/model_get_metrics_response.go @@ -481,47 +481,47 @@ func setGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType(a type GetMetricsResponse struct { CpuIdleTime GetMetricsResponseGetCpuIdleTimeAttributeType `json:"cpuIdleTime,omitempty"` // REQUIRED - CpuLoadPercent GetMetricsResponseGetCpuLoadPercentAttributeType `json:"cpuLoadPercent"` + CpuLoadPercent GetMetricsResponseGetCpuLoadPercentAttributeType `json:"cpuLoadPercent" required:"true"` CpuSystemTime GetMetricsResponseGetCpuSystemTimeAttributeType `json:"cpuSystemTime,omitempty"` CpuUserTime GetMetricsResponseGetCpuUserTimeAttributeType `json:"cpuUserTime,omitempty"` // REQUIRED - DiskEphemeralTotal GetMetricsResponseGetDiskEphemeralTotalAttributeType `json:"diskEphemeralTotal"` + DiskEphemeralTotal GetMetricsResponseGetDiskEphemeralTotalAttributeType `json:"diskEphemeralTotal" required:"true"` // REQUIRED - DiskEphemeralUsed GetMetricsResponseGetDiskEphemeralUsedAttributeType `json:"diskEphemeralUsed"` + DiskEphemeralUsed GetMetricsResponseGetDiskEphemeralUsedAttributeType `json:"diskEphemeralUsed" required:"true"` // REQUIRED - DiskPersistentTotal GetMetricsResponseGetDiskPersistentTotalAttributeType `json:"diskPersistentTotal"` + DiskPersistentTotal GetMetricsResponseGetDiskPersistentTotalAttributeType `json:"diskPersistentTotal" required:"true"` // REQUIRED - DiskPersistentUsed GetMetricsResponseGetDiskPersistentUsedAttributeType `json:"diskPersistentUsed"` + DiskPersistentUsed GetMetricsResponseGetDiskPersistentUsedAttributeType `json:"diskPersistentUsed" required:"true"` // REQUIRED - Load1 GetMetricsResponseGetLoad1AttributeType `json:"load1"` + Load1 GetMetricsResponseGetLoad1AttributeType `json:"load1" required:"true"` // REQUIRED - Load15 GetMetricsResponseGetLoad15AttributeType `json:"load15"` + Load15 GetMetricsResponseGetLoad15AttributeType `json:"load15" required:"true"` // REQUIRED - Load5 GetMetricsResponseGetLoad5AttributeType `json:"load5"` + Load5 GetMetricsResponseGetLoad5AttributeType `json:"load5" required:"true"` // REQUIRED - MemoryTotal GetMetricsResponseGetMemoryTotalAttributeType `json:"memoryTotal"` + MemoryTotal GetMetricsResponseGetMemoryTotalAttributeType `json:"memoryTotal" required:"true"` // REQUIRED - MemoryUsed GetMetricsResponseGetMemoryUsedAttributeType `json:"memoryUsed"` + MemoryUsed GetMetricsResponseGetMemoryUsedAttributeType `json:"memoryUsed" required:"true"` // REQUIRED - ParachuteDiskEphemeralActivated GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType `json:"parachuteDiskEphemeralActivated"` + ParachuteDiskEphemeralActivated GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType `json:"parachuteDiskEphemeralActivated" required:"true"` // REQUIRED - ParachuteDiskEphemeralTotal GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType `json:"parachuteDiskEphemeralTotal"` + ParachuteDiskEphemeralTotal GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType `json:"parachuteDiskEphemeralTotal" required:"true"` // REQUIRED - ParachuteDiskEphemeralUsed GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType `json:"parachuteDiskEphemeralUsed"` + ParachuteDiskEphemeralUsed GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType `json:"parachuteDiskEphemeralUsed" required:"true"` // REQUIRED - ParachuteDiskEphemeralUsedPercent GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType `json:"parachuteDiskEphemeralUsedPercent"` + ParachuteDiskEphemeralUsedPercent GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType `json:"parachuteDiskEphemeralUsedPercent" required:"true"` // REQUIRED - ParachuteDiskEphemeralUsedThreshold GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType `json:"parachuteDiskEphemeralUsedThreshold"` + ParachuteDiskEphemeralUsedThreshold GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType `json:"parachuteDiskEphemeralUsedThreshold" required:"true"` // REQUIRED - ParachuteDiskPersistentActivated GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType `json:"parachuteDiskPersistentActivated"` + ParachuteDiskPersistentActivated GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType `json:"parachuteDiskPersistentActivated" required:"true"` // REQUIRED - ParachuteDiskPersistentTotal GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType `json:"parachuteDiskPersistentTotal"` + ParachuteDiskPersistentTotal GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType `json:"parachuteDiskPersistentTotal" required:"true"` // REQUIRED - ParachuteDiskPersistentUsed GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType `json:"parachuteDiskPersistentUsed"` + ParachuteDiskPersistentUsed GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType `json:"parachuteDiskPersistentUsed" required:"true"` // REQUIRED - ParachuteDiskPersistentUsedPercent GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType `json:"parachuteDiskPersistentUsedPercent"` + ParachuteDiskPersistentUsedPercent GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType `json:"parachuteDiskPersistentUsedPercent" required:"true"` // REQUIRED - ParachuteDiskPersistentUsedThreshold GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType `json:"parachuteDiskPersistentUsedThreshold"` + ParachuteDiskPersistentUsedThreshold GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType `json:"parachuteDiskPersistentUsedThreshold" required:"true"` } type _GetMetricsResponse GetMetricsResponse diff --git a/services/redis/model_instance.go b/services/redis/model_instance.go index 11a7c0b888..4101b8972f 100644 --- a/services/redis/model_instance.go +++ b/services/redis/model_instance.go @@ -424,31 +424,31 @@ func setInstanceGetStatusAttributeType(arg *InstanceGetStatusAttributeType, val // Instance struct for Instance type Instance struct { // REQUIRED - CfGuid InstanceGetCfGuidAttributeType `json:"cfGuid"` + CfGuid InstanceGetCfGuidAttributeType `json:"cfGuid" required:"true"` // REQUIRED - CfOrganizationGuid InstanceGetCfOrganizationGuidAttributeType `json:"cfOrganizationGuid"` + CfOrganizationGuid InstanceGetCfOrganizationGuidAttributeType `json:"cfOrganizationGuid" required:"true"` // REQUIRED - CfSpaceGuid InstanceGetCfSpaceGuidAttributeType `json:"cfSpaceGuid"` + CfSpaceGuid InstanceGetCfSpaceGuidAttributeType `json:"cfSpaceGuid" required:"true"` // REQUIRED - DashboardUrl InstanceGetDashboardUrlAttributeType `json:"dashboardUrl"` + DashboardUrl InstanceGetDashboardUrlAttributeType `json:"dashboardUrl" required:"true"` // REQUIRED - ImageUrl InstanceGetImageUrlAttributeType `json:"imageUrl"` + ImageUrl InstanceGetImageUrlAttributeType `json:"imageUrl" required:"true"` InstanceId InstanceGetInstanceIdAttributeType `json:"instanceId,omitempty"` // REQUIRED - LastOperation InstanceGetLastOperationAttributeType `json:"lastOperation"` + LastOperation InstanceGetLastOperationAttributeType `json:"lastOperation" required:"true"` // REQUIRED - Name InstanceGetNameAttributeType `json:"name"` + Name InstanceGetNameAttributeType `json:"name" required:"true"` // Deprecated: Check the GitHub changelog for alternatives // REQUIRED - OfferingName InstanceGetOfferingNameAttributeType `json:"offeringName"` + OfferingName InstanceGetOfferingNameAttributeType `json:"offeringName" required:"true"` // REQUIRED - OfferingVersion InstanceGetOfferingVersionAttributeType `json:"offeringVersion"` + OfferingVersion InstanceGetOfferingVersionAttributeType `json:"offeringVersion" required:"true"` // REQUIRED - Parameters InstanceGetParametersAttributeType `json:"parameters"` + Parameters InstanceGetParametersAttributeType `json:"parameters" required:"true"` // REQUIRED - PlanId InstanceGetPlanIdAttributeType `json:"planId"` + PlanId InstanceGetPlanIdAttributeType `json:"planId" required:"true"` // REQUIRED - PlanName InstanceGetPlanNameAttributeType `json:"planName"` + PlanName InstanceGetPlanNameAttributeType `json:"planName" required:"true"` Status InstanceGetStatusAttributeType `json:"status,omitempty"` } diff --git a/services/redis/model_instance_last_operation.go b/services/redis/model_instance_last_operation.go index 83beea1160..44cc1332c9 100644 --- a/services/redis/model_instance_last_operation.go +++ b/services/redis/model_instance_last_operation.go @@ -294,11 +294,11 @@ func setInstanceLastOperationGetTypeAttributeType(arg *InstanceLastOperationGetT // InstanceLastOperation struct for InstanceLastOperation type InstanceLastOperation struct { // REQUIRED - Description InstanceLastOperationGetDescriptionAttributeType `json:"description"` + Description InstanceLastOperationGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - State InstanceLastOperationGetStateAttributeType `json:"state"` + State InstanceLastOperationGetStateAttributeType `json:"state" required:"true"` // REQUIRED - Type InstanceLastOperationGetTypeAttributeType `json:"type"` + Type InstanceLastOperationGetTypeAttributeType `json:"type" required:"true"` } type _InstanceLastOperation InstanceLastOperation diff --git a/services/redis/model_instance_schema.go b/services/redis/model_instance_schema.go index 10e47a33b1..172f860664 100644 --- a/services/redis/model_instance_schema.go +++ b/services/redis/model_instance_schema.go @@ -60,9 +60,9 @@ func setInstanceSchemaGetUpdateAttributeType(arg *InstanceSchemaGetUpdateAttribu // InstanceSchema struct for InstanceSchema type InstanceSchema struct { // REQUIRED - Create InstanceSchemaGetCreateAttributeType `json:"create"` + Create InstanceSchemaGetCreateAttributeType `json:"create" required:"true"` // REQUIRED - Update InstanceSchemaGetUpdateAttributeType `json:"update"` + Update InstanceSchemaGetUpdateAttributeType `json:"update" required:"true"` } type _InstanceSchema InstanceSchema diff --git a/services/redis/model_list_backups_response.go b/services/redis/model_list_backups_response.go index 15308aef24..c8a7290c19 100644 --- a/services/redis/model_list_backups_response.go +++ b/services/redis/model_list_backups_response.go @@ -40,7 +40,7 @@ func setListBackupsResponseGetInstanceBackupsAttributeType(arg *ListBackupsRespo // ListBackupsResponse struct for ListBackupsResponse type ListBackupsResponse struct { // REQUIRED - InstanceBackups ListBackupsResponseGetInstanceBackupsAttributeType `json:"instanceBackups"` + InstanceBackups ListBackupsResponseGetInstanceBackupsAttributeType `json:"instanceBackups" required:"true"` } type _ListBackupsResponse ListBackupsResponse diff --git a/services/redis/model_list_credentials_response.go b/services/redis/model_list_credentials_response.go index 2e11c7e33a..ab36871c51 100644 --- a/services/redis/model_list_credentials_response.go +++ b/services/redis/model_list_credentials_response.go @@ -40,7 +40,7 @@ func setListCredentialsResponseGetCredentialsListAttributeType(arg *ListCredenti // ListCredentialsResponse struct for ListCredentialsResponse type ListCredentialsResponse struct { // REQUIRED - CredentialsList ListCredentialsResponseGetCredentialsListAttributeType `json:"credentialsList"` + CredentialsList ListCredentialsResponseGetCredentialsListAttributeType `json:"credentialsList" required:"true"` } type _ListCredentialsResponse ListCredentialsResponse diff --git a/services/redis/model_list_instances_response.go b/services/redis/model_list_instances_response.go index 6e2af32b1b..26e34e749e 100644 --- a/services/redis/model_list_instances_response.go +++ b/services/redis/model_list_instances_response.go @@ -40,7 +40,7 @@ func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesRespons // ListInstancesResponse struct for ListInstancesResponse type ListInstancesResponse struct { // REQUIRED - Instances ListInstancesResponseGetInstancesAttributeType `json:"instances"` + Instances ListInstancesResponseGetInstancesAttributeType `json:"instances" required:"true"` } type _ListInstancesResponse ListInstancesResponse diff --git a/services/redis/model_list_offerings_response.go b/services/redis/model_list_offerings_response.go index 253ca2ce35..b5a9fd85e3 100644 --- a/services/redis/model_list_offerings_response.go +++ b/services/redis/model_list_offerings_response.go @@ -40,7 +40,7 @@ func setListOfferingsResponseGetOfferingsAttributeType(arg *ListOfferingsRespons // ListOfferingsResponse struct for ListOfferingsResponse type ListOfferingsResponse struct { // REQUIRED - Offerings ListOfferingsResponseGetOfferingsAttributeType `json:"offerings"` + Offerings ListOfferingsResponseGetOfferingsAttributeType `json:"offerings" required:"true"` } type _ListOfferingsResponse ListOfferingsResponse diff --git a/services/redis/model_list_restores_response.go b/services/redis/model_list_restores_response.go index 6284a7b61f..79ae1c8f5a 100644 --- a/services/redis/model_list_restores_response.go +++ b/services/redis/model_list_restores_response.go @@ -40,7 +40,7 @@ func setListRestoresResponseGetInstanceRestoresAttributeType(arg *ListRestoresRe // ListRestoresResponse struct for ListRestoresResponse type ListRestoresResponse struct { // REQUIRED - InstanceRestores ListRestoresResponseGetInstanceRestoresAttributeType `json:"instanceRestores"` + InstanceRestores ListRestoresResponseGetInstanceRestoresAttributeType `json:"instanceRestores" required:"true"` } type _ListRestoresResponse ListRestoresResponse diff --git a/services/redis/model_offering.go b/services/redis/model_offering.go index bbae4efa9c..a25429a4a0 100644 --- a/services/redis/model_offering.go +++ b/services/redis/model_offering.go @@ -226,23 +226,23 @@ type OfferingGetVersionRetType = string // Offering struct for Offering type Offering struct { // REQUIRED - Description OfferingGetDescriptionAttributeType `json:"description"` + Description OfferingGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - DocumentationUrl OfferingGetDocumentationUrlAttributeType `json:"documentationUrl"` + DocumentationUrl OfferingGetDocumentationUrlAttributeType `json:"documentationUrl" required:"true"` // REQUIRED - ImageUrl OfferingGetImageUrlAttributeType `json:"imageUrl"` + ImageUrl OfferingGetImageUrlAttributeType `json:"imageUrl" required:"true"` // REQUIRED - Latest OfferinggetLatestAttributeType `json:"latest"` + Latest OfferinggetLatestAttributeType `json:"latest" required:"true"` Lifecycle OfferingGetLifecycleAttributeType `json:"lifecycle,omitempty"` // REQUIRED - Name OfferingGetNameAttributeType `json:"name"` + Name OfferingGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Plans OfferingGetPlansAttributeType `json:"plans"` + Plans OfferingGetPlansAttributeType `json:"plans" required:"true"` // REQUIRED - QuotaCount OfferingGetQuotaCountAttributeType `json:"quotaCount"` + QuotaCount OfferingGetQuotaCountAttributeType `json:"quotaCount" required:"true"` Schema OfferingGetSchemaAttributeType `json:"schema,omitempty"` // REQUIRED - Version OfferingGetVersionAttributeType `json:"version"` + Version OfferingGetVersionAttributeType `json:"version" required:"true"` } type _Offering Offering diff --git a/services/redis/model_plan.go b/services/redis/model_plan.go index 8c3b323166..1d24c8d36a 100644 --- a/services/redis/model_plan.go +++ b/services/redis/model_plan.go @@ -124,15 +124,15 @@ type PlanGetSkuNameRetType = string // Plan struct for Plan type Plan struct { // REQUIRED - Description PlanGetDescriptionAttributeType `json:"description"` + Description PlanGetDescriptionAttributeType `json:"description" required:"true"` // REQUIRED - Free PlangetFreeAttributeType `json:"free"` + Free PlangetFreeAttributeType `json:"free" required:"true"` // REQUIRED - Id PlanGetIdAttributeType `json:"id"` + Id PlanGetIdAttributeType `json:"id" required:"true"` // REQUIRED - Name PlanGetNameAttributeType `json:"name"` + Name PlanGetNameAttributeType `json:"name" required:"true"` // REQUIRED - SkuName PlanGetSkuNameAttributeType `json:"skuName"` + SkuName PlanGetSkuNameAttributeType `json:"skuName" required:"true"` } type _Plan Plan diff --git a/services/redis/model_raw_credentials.go b/services/redis/model_raw_credentials.go index 657c05c003..e05dcb305f 100644 --- a/services/redis/model_raw_credentials.go +++ b/services/redis/model_raw_credentials.go @@ -40,7 +40,7 @@ func setRawCredentialsGetCredentialsAttributeType(arg *RawCredentialsGetCredenti // RawCredentials struct for RawCredentials type RawCredentials struct { // REQUIRED - Credentials RawCredentialsGetCredentialsAttributeType `json:"credentials"` + Credentials RawCredentialsGetCredentialsAttributeType `json:"credentials" required:"true"` } type _RawCredentials RawCredentials diff --git a/services/redis/model_restore.go b/services/redis/model_restore.go index 6facc36675..0a3b8ef705 100644 --- a/services/redis/model_restore.go +++ b/services/redis/model_restore.go @@ -123,13 +123,13 @@ type RestoreGetTriggeredAtRetType = string // Restore struct for Restore type Restore struct { // REQUIRED - BackupId RestoreGetBackupIdAttributeType `json:"backup_id"` + BackupId RestoreGetBackupIdAttributeType `json:"backup_id" required:"true"` // REQUIRED - FinishedAt RestoreGetFinishedAtAttributeType `json:"finished_at"` + FinishedAt RestoreGetFinishedAtAttributeType `json:"finished_at" required:"true"` // REQUIRED - Id RestoreGetIdAttributeType `json:"id"` + Id RestoreGetIdAttributeType `json:"id" required:"true"` // REQUIRED - Status RestoreGetStatusAttributeType `json:"status"` + Status RestoreGetStatusAttributeType `json:"status" required:"true"` TriggeredAt RestoreGetTriggeredAtAttributeType `json:"triggered_at,omitempty"` } diff --git a/services/redis/model_schema.go b/services/redis/model_schema.go index 15d99df534..b082f12462 100644 --- a/services/redis/model_schema.go +++ b/services/redis/model_schema.go @@ -40,7 +40,7 @@ func setSchemaGetParametersAttributeType(arg *SchemaGetParametersAttributeType, // Schema struct for Schema type Schema struct { // REQUIRED - Parameters SchemaGetParametersAttributeType `json:"parameters"` + Parameters SchemaGetParametersAttributeType `json:"parameters" required:"true"` } type _Schema Schema diff --git a/services/redis/model_trigger_restore_response.go b/services/redis/model_trigger_restore_response.go index 0f9050d380..53519f057c 100644 --- a/services/redis/model_trigger_restore_response.go +++ b/services/redis/model_trigger_restore_response.go @@ -40,7 +40,7 @@ func setTriggerRestoreResponseGetIdAttributeType(arg *TriggerRestoreResponseGetI // TriggerRestoreResponse struct for TriggerRestoreResponse type TriggerRestoreResponse struct { // REQUIRED - Id TriggerRestoreResponseGetIdAttributeType `json:"id"` + Id TriggerRestoreResponseGetIdAttributeType `json:"id" required:"true"` } type _TriggerRestoreResponse TriggerRestoreResponse diff --git a/services/redis/model_update_backups_config_response.go b/services/redis/model_update_backups_config_response.go index 114ca5d390..6b44f4a3ec 100644 --- a/services/redis/model_update_backups_config_response.go +++ b/services/redis/model_update_backups_config_response.go @@ -41,7 +41,7 @@ type UpdateBackupsConfigResponseGetMessageRetType = string // UpdateBackupsConfigResponse struct for UpdateBackupsConfigResponse type UpdateBackupsConfigResponse struct { // REQUIRED - Message UpdateBackupsConfigResponseGetMessageAttributeType `json:"message"` + Message UpdateBackupsConfigResponseGetMessageAttributeType `json:"message" required:"true"` } type _UpdateBackupsConfigResponse UpdateBackupsConfigResponse diff --git a/services/sqlserverflex/CHANGELOG.md b/services/sqlserverflex/CHANGELOG.md index a946f1e79e..66aff96c46 100644 --- a/services/sqlserverflex/CHANGELOG.md +++ b/services/sqlserverflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.3.0 +- Add `required:"true"` tags to model structs + ## v1.2.0 (2025-05-15) - **Breaking change:** Introduce interfaces for `APIClient` and the request structs diff --git a/services/sqlserverflex/model_create_database_payload.go b/services/sqlserverflex/model_create_database_payload.go index 2f1d4645f9..8b1182aa79 100644 --- a/services/sqlserverflex/model_create_database_payload.go +++ b/services/sqlserverflex/model_create_database_payload.go @@ -61,9 +61,9 @@ func setCreateDatabasePayloadGetOptionsAttributeType(arg *CreateDatabasePayloadG // CreateDatabasePayload struct for CreateDatabasePayload type CreateDatabasePayload struct { // REQUIRED - Name CreateDatabasePayloadGetNameAttributeType `json:"name"` + Name CreateDatabasePayloadGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Options CreateDatabasePayloadGetOptionsAttributeType `json:"options"` + Options CreateDatabasePayloadGetOptionsAttributeType `json:"options" required:"true"` } type _CreateDatabasePayload CreateDatabasePayload diff --git a/services/sqlserverflex/model_create_instance_payload.go b/services/sqlserverflex/model_create_instance_payload.go index a3fa6363c8..65e5af1e0f 100644 --- a/services/sqlserverflex/model_create_instance_payload.go +++ b/services/sqlserverflex/model_create_instance_payload.go @@ -188,11 +188,11 @@ type CreateInstancePayload struct { BackupSchedule CreateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule,omitempty"` // Id of the selected flavor // REQUIRED - FlavorId CreateInstancePayloadGetFlavorIdAttributeType `json:"flavorId"` + FlavorId CreateInstancePayloadGetFlavorIdAttributeType `json:"flavorId" required:"true"` Labels CreateInstancePayloadGetLabelsAttributeType `json:"labels,omitempty"` // Name of the instance // REQUIRED - Name CreateInstancePayloadGetNameAttributeType `json:"name"` + Name CreateInstancePayloadGetNameAttributeType `json:"name" required:"true"` Options CreateInstancePayloadGetOptionsAttributeType `json:"options,omitempty"` Storage CreateInstancePayloadGetStorageAttributeType `json:"storage,omitempty"` // Version of the MSSQL Server diff --git a/services/sqlserverflex/model_create_user_payload.go b/services/sqlserverflex/model_create_user_payload.go index 4afd527069..04d3fb3f5f 100644 --- a/services/sqlserverflex/model_create_user_payload.go +++ b/services/sqlserverflex/model_create_user_payload.go @@ -83,9 +83,9 @@ type CreateUserPayloadGetUsernameRetType = string type CreateUserPayload struct { DefaultDatabase CreateUserPayloadGetDefaultDatabaseAttributeType `json:"default_database,omitempty"` // REQUIRED - Roles CreateUserPayloadGetRolesAttributeType `json:"roles"` + Roles CreateUserPayloadGetRolesAttributeType `json:"roles" required:"true"` // REQUIRED - Username CreateUserPayloadGetUsernameAttributeType `json:"username"` + Username CreateUserPayloadGetUsernameAttributeType `json:"username" required:"true"` } type _CreateUserPayload CreateUserPayload diff --git a/services/sqlserverflex/model_database_documentation_create_database_request_options.go b/services/sqlserverflex/model_database_documentation_create_database_request_options.go index c086704492..b46729cb80 100644 --- a/services/sqlserverflex/model_database_documentation_create_database_request_options.go +++ b/services/sqlserverflex/model_database_documentation_create_database_request_options.go @@ -88,7 +88,7 @@ type DatabaseDocumentationCreateDatabaseRequestOptions struct { CompatibilityLevel DatabaseDocumentationCreateDatabaseRequestOptionsGetCompatibilityLevelAttributeType `json:"compatibilityLevel,omitempty"` // Name of the owner of the database. // REQUIRED - Owner DatabaseDocumentationCreateDatabaseRequestOptionsGetOwnerAttributeType `json:"owner"` + Owner DatabaseDocumentationCreateDatabaseRequestOptionsGetOwnerAttributeType `json:"owner" required:"true"` } type _DatabaseDocumentationCreateDatabaseRequestOptions DatabaseDocumentationCreateDatabaseRequestOptions diff --git a/services/sqlserverflex/model_trigger_database_restore_payload.go b/services/sqlserverflex/model_trigger_database_restore_payload.go index 4cd535f002..b6a6bdbe2e 100644 --- a/services/sqlserverflex/model_trigger_database_restore_payload.go +++ b/services/sqlserverflex/model_trigger_database_restore_payload.go @@ -63,10 +63,10 @@ type TriggerDatabaseRestorePayloadGetRestoreDateTimeRetType = string type TriggerDatabaseRestorePayload struct { // Name for the restored database no overwrite allowed at the moment // REQUIRED - Name TriggerDatabaseRestorePayloadGetNameAttributeType `json:"name"` + Name TriggerDatabaseRestorePayloadGetNameAttributeType `json:"name" required:"true"` // Time of the restore point formate RFC3339 // REQUIRED - RestoreDateTime TriggerDatabaseRestorePayloadGetRestoreDateTimeAttributeType `json:"restoreDateTime"` + RestoreDateTime TriggerDatabaseRestorePayloadGetRestoreDateTimeAttributeType `json:"restoreDateTime" required:"true"` } type _TriggerDatabaseRestorePayload TriggerDatabaseRestorePayload diff --git a/services/sqlserverflex/model_update_instance_payload.go b/services/sqlserverflex/model_update_instance_payload.go index 395c60e44b..6c1e664e58 100644 --- a/services/sqlserverflex/model_update_instance_payload.go +++ b/services/sqlserverflex/model_update_instance_payload.go @@ -144,21 +144,21 @@ type UpdateInstancePayloadGetVersionRetType = string // UpdateInstancePayload struct for UpdateInstancePayload type UpdateInstancePayload struct { // REQUIRED - Acl UpdateInstancePayloadGetAclAttributeType `json:"acl"` + Acl UpdateInstancePayloadGetAclAttributeType `json:"acl" required:"true"` // Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59 // REQUIRED - BackupSchedule UpdateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule"` + BackupSchedule UpdateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"` // Id of the selected flavor // REQUIRED - FlavorId UpdateInstancePayloadGetFlavorIdAttributeType `json:"flavorId"` + FlavorId UpdateInstancePayloadGetFlavorIdAttributeType `json:"flavorId" required:"true"` // REQUIRED - Labels UpdateInstancePayloadGetLabelsAttributeType `json:"labels"` + Labels UpdateInstancePayloadGetLabelsAttributeType `json:"labels" required:"true"` // Name of the instance // REQUIRED - Name UpdateInstancePayloadGetNameAttributeType `json:"name"` + Name UpdateInstancePayloadGetNameAttributeType `json:"name" required:"true"` // Version of the MSSQL Server // REQUIRED - Version UpdateInstancePayloadGetVersionAttributeType `json:"version"` + Version UpdateInstancePayloadGetVersionAttributeType `json:"version" required:"true"` } type _UpdateInstancePayload UpdateInstancePayload diff --git a/services/stackitmarketplace/CHANGELOG.md b/services/stackitmarketplace/CHANGELOG.md index d7154c7b15..3e9424fa74 100644 --- a/services/stackitmarketplace/CHANGELOG.md +++ b/services/stackitmarketplace/CHANGELOG.md @@ -1,3 +1,13 @@ +## v1.6.0 +- **Feature:** Add new `Assets` model for managing service certificate assets +- **Feature:** Add new `LocalizedVersion` model for localized content management +- **Feature:** Add new `NoticePeriod` model with types: `SAME_DAY`, `DAYS`, `MONTHS` +- **Feature:** Add new `ServiceCertificate` model for service certification +- **Feature:** Add `Assets` field to `CatalogProductDetail` model +- **Feature:** Add `OfferType` field to `CatalogProductDetail` model +- **Feature:** Add `NoticePeriod` field to `CatalogProductPricingOption` model +- Add `required:"true"` tags to model structs + ## v1.5.0 (2025-06-10) - **Feature:** Add new field `Facets` in `ListCatalogProductsResponse` diff --git a/services/stackitmarketplace/model_assets.go b/services/stackitmarketplace/model_assets.go new file mode 100644 index 0000000000..c79a16833d --- /dev/null +++ b/services/stackitmarketplace/model_assets.go @@ -0,0 +1,127 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace + +import ( + "encoding/json" +) + +// checks if the Assets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Assets{} + +/* + types and functions for serviceCertificate +*/ + +// isModel +type AssetsGetServiceCertificateAttributeType = *ServiceCertificate +type AssetsGetServiceCertificateArgType = ServiceCertificate +type AssetsGetServiceCertificateRetType = ServiceCertificate + +func getAssetsGetServiceCertificateAttributeTypeOk(arg AssetsGetServiceCertificateAttributeType) (ret AssetsGetServiceCertificateRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setAssetsGetServiceCertificateAttributeType(arg *AssetsGetServiceCertificateAttributeType, val AssetsGetServiceCertificateRetType) { + *arg = &val +} + +// Assets The assets associated with the product. +type Assets struct { + ServiceCertificate AssetsGetServiceCertificateAttributeType `json:"serviceCertificate,omitempty"` +} + +// NewAssets instantiates a new Assets object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAssets() *Assets { + this := Assets{} + return &this +} + +// NewAssetsWithDefaults instantiates a new Assets object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAssetsWithDefaults() *Assets { + this := Assets{} + return &this +} + +// GetServiceCertificate returns the ServiceCertificate field value if set, zero value otherwise. +func (o *Assets) GetServiceCertificate() (res AssetsGetServiceCertificateRetType) { + res, _ = o.GetServiceCertificateOk() + return +} + +// GetServiceCertificateOk returns a tuple with the ServiceCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assets) GetServiceCertificateOk() (ret AssetsGetServiceCertificateRetType, ok bool) { + return getAssetsGetServiceCertificateAttributeTypeOk(o.ServiceCertificate) +} + +// HasServiceCertificate returns a boolean if a field has been set. +func (o *Assets) HasServiceCertificate() bool { + _, ok := o.GetServiceCertificateOk() + return ok +} + +// SetServiceCertificate gets a reference to the given ServiceCertificate and assigns it to the ServiceCertificate field. +func (o *Assets) SetServiceCertificate(v AssetsGetServiceCertificateRetType) { + setAssetsGetServiceCertificateAttributeType(&o.ServiceCertificate, v) +} + +func (o Assets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getAssetsGetServiceCertificateAttributeTypeOk(o.ServiceCertificate); ok { + toSerialize["ServiceCertificate"] = val + } + return toSerialize, nil +} + +type NullableAssets struct { + value *Assets + isSet bool +} + +func (v NullableAssets) Get() *Assets { + return v.value +} + +func (v *NullableAssets) Set(val *Assets) { + v.value = val + v.isSet = true +} + +func (v NullableAssets) IsSet() bool { + return v.isSet +} + +func (v *NullableAssets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssets(val *Assets) *NullableAssets { + return &NullableAssets{value: val, isSet: true} +} + +func (v NullableAssets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/model_assets_test.go b/services/stackitmarketplace/model_assets_test.go new file mode 100644 index 0000000000..8d52b2c3ca --- /dev/null +++ b/services/stackitmarketplace/model_assets_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace diff --git a/services/stackitmarketplace/model_become_vendor.go b/services/stackitmarketplace/model_become_vendor.go index f4e4de868b..8e0412783a 100644 --- a/services/stackitmarketplace/model_become_vendor.go +++ b/services/stackitmarketplace/model_become_vendor.go @@ -60,9 +60,9 @@ func setBecomeVendorGetTypeAttributeType(arg *BecomeVendorGetTypeAttributeType, // BecomeVendor Become a Vendor. type BecomeVendor struct { // REQUIRED - BecomeVendor BecomeVendorGetBecomeVendorAttributeType `json:"becomeVendor"` + BecomeVendor BecomeVendorGetBecomeVendorAttributeType `json:"becomeVendor" required:"true"` // REQUIRED - Type BecomeVendorGetTypeAttributeType `json:"type"` + Type BecomeVendorGetTypeAttributeType `json:"type" required:"true"` } type _BecomeVendor BecomeVendor diff --git a/services/stackitmarketplace/model_catalog_product_detail.go b/services/stackitmarketplace/model_catalog_product_detail.go index 01819416f2..f05fd1ada3 100644 --- a/services/stackitmarketplace/model_catalog_product_detail.go +++ b/services/stackitmarketplace/model_catalog_product_detail.go @@ -17,6 +17,26 @@ import ( // checks if the CatalogProductDetail type satisfies the MappedNullable interface at compile time var _ MappedNullable = &CatalogProductDetail{} +/* + types and functions for assets +*/ + +// isModel +type CatalogProductDetailGetAssetsAttributeType = *Assets +type CatalogProductDetailGetAssetsArgType = Assets +type CatalogProductDetailGetAssetsRetType = Assets + +func getCatalogProductDetailGetAssetsAttributeTypeOk(arg CatalogProductDetailGetAssetsAttributeType) (ret CatalogProductDetailGetAssetsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCatalogProductDetailGetAssetsAttributeType(arg *CatalogProductDetailGetAssetsAttributeType, val CatalogProductDetailGetAssetsRetType) { + *arg = &val +} + /* types and functions for categories */ @@ -241,6 +261,26 @@ func setCatalogProductDetailGetNameAttributeType(arg *CatalogProductDetailGetNam type CatalogProductDetailGetNameArgType = string type CatalogProductDetailGetNameRetType = string +/* + types and functions for offerType +*/ + +// isEnumRef +type CatalogProductDetailGetOfferTypeAttributeType = *OfferType +type CatalogProductDetailGetOfferTypeArgType = OfferType +type CatalogProductDetailGetOfferTypeRetType = OfferType + +func getCatalogProductDetailGetOfferTypeAttributeTypeOk(arg CatalogProductDetailGetOfferTypeAttributeType) (ret CatalogProductDetailGetOfferTypeRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCatalogProductDetailGetOfferTypeAttributeType(arg *CatalogProductDetailGetOfferTypeAttributeType, val CatalogProductDetailGetOfferTypeRetType) { + *arg = &val +} + /* types and functions for pricingOptions */ @@ -428,43 +468,45 @@ type CatalogProductDetailGetVideoUrlRetType = string // CatalogProductDetail struct for CatalogProductDetail type CatalogProductDetail struct { + Assets CatalogProductDetailGetAssetsAttributeType `json:"assets,omitempty"` // The list of categories associated to the product. Categories CatalogProductDetailGetCategoriesAttributeType `json:"categories,omitempty"` // REQUIRED - DeliveryMethod CatalogProductDetailGetDeliveryMethodAttributeType `json:"deliveryMethod"` + DeliveryMethod CatalogProductDetailGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` // The product description. // REQUIRED - Description CatalogProductDetailGetDescriptionAttributeType `json:"description"` + Description CatalogProductDetailGetDescriptionAttributeType `json:"description" required:"true"` // Uniform Resource Locator. // REQUIRED - DocumentationUrl CatalogProductDetailGetDocumentationUrlAttributeType `json:"documentationUrl"` + DocumentationUrl CatalogProductDetailGetDocumentationUrlAttributeType `json:"documentationUrl" required:"true"` // A e-mail address. Email CatalogProductDetailGetEmailAttributeType `json:"email,omitempty"` // The list of highlights. // REQUIRED - Highlights CatalogProductDetailGetHighlightsAttributeType `json:"highlights"` + Highlights CatalogProductDetailGetHighlightsAttributeType `json:"highlights" required:"true"` // The list of industries associated to the product. Industries CatalogProductDetailGetIndustriesAttributeType `json:"industries,omitempty"` // Boolean data type. + IsProductListing CatalogProductDetailgetIsProductListingAttributeType `json:"isProductListing,omitempty"` // REQUIRED - IsProductListing CatalogProductDetailgetIsProductListingAttributeType `json:"isProductListing"` - // REQUIRED - LifecycleState CatalogProductDetailGetLifecycleStateAttributeType `json:"lifecycleState"` + LifecycleState CatalogProductDetailGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` // The logo base64 encoded. // REQUIRED - Logo CatalogProductDetailGetLogoAttributeType `json:"logo"` + Logo CatalogProductDetailGetLogoAttributeType `json:"logo" required:"true"` // The name of the product. // REQUIRED - Name CatalogProductDetailGetNameAttributeType `json:"name"` + Name CatalogProductDetailGetNameAttributeType `json:"name" required:"true"` + // REQUIRED + OfferType CatalogProductDetailGetOfferTypeAttributeType `json:"offerType" required:"true"` // The list of pricing options. // REQUIRED - PricingOptions CatalogProductDetailGetPricingOptionsAttributeType `json:"pricingOptions"` + PricingOptions CatalogProductDetailGetPricingOptionsAttributeType `json:"pricingOptions" required:"true"` // The user-readable product ID. // REQUIRED - ProductId CatalogProductDetailGetProductIdAttributeType `json:"productId"` + ProductId CatalogProductDetailGetProductIdAttributeType `json:"productId" required:"true"` // The short summary of the product. // REQUIRED - Summary CatalogProductDetailGetSummaryAttributeType `json:"summary"` + Summary CatalogProductDetailGetSummaryAttributeType `json:"summary" required:"true"` // Uniform Resource Locator. SupportFaq CatalogProductDetailGetSupportFaqAttributeType `json:"supportFaq,omitempty"` // The phone number for support inquiries. @@ -472,12 +514,12 @@ type CatalogProductDetail struct { // The list of support resources. SupportResources CatalogProductDetailGetSupportResourcesAttributeType `json:"supportResources,omitempty"` // REQUIRED - Vendor CatalogProductDetailGetVendorAttributeType `json:"vendor"` + Vendor CatalogProductDetailGetVendorAttributeType `json:"vendor" required:"true"` // The list of terms of use. VendorTerms CatalogProductDetailGetVendorTermsAttributeType `json:"vendorTerms,omitempty"` // Uniform Resource Locator. // REQUIRED - VideoUrl CatalogProductDetailGetVideoUrlAttributeType `json:"videoUrl"` + VideoUrl CatalogProductDetailGetVideoUrlAttributeType `json:"videoUrl" required:"true"` } type _CatalogProductDetail CatalogProductDetail @@ -486,16 +528,16 @@ type _CatalogProductDetail CatalogProductDetail // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCatalogProductDetail(deliveryMethod CatalogProductDetailGetDeliveryMethodArgType, description CatalogProductDetailGetDescriptionArgType, documentationUrl CatalogProductDetailGetDocumentationUrlArgType, highlights CatalogProductDetailGetHighlightsArgType, isProductListing CatalogProductDetailgetIsProductListingArgType, lifecycleState CatalogProductDetailGetLifecycleStateArgType, logo CatalogProductDetailGetLogoArgType, name CatalogProductDetailGetNameArgType, pricingOptions CatalogProductDetailGetPricingOptionsArgType, productId CatalogProductDetailGetProductIdArgType, summary CatalogProductDetailGetSummaryArgType, vendor CatalogProductDetailGetVendorArgType, videoUrl CatalogProductDetailGetVideoUrlArgType) *CatalogProductDetail { +func NewCatalogProductDetail(deliveryMethod CatalogProductDetailGetDeliveryMethodArgType, description CatalogProductDetailGetDescriptionArgType, documentationUrl CatalogProductDetailGetDocumentationUrlArgType, highlights CatalogProductDetailGetHighlightsArgType, lifecycleState CatalogProductDetailGetLifecycleStateArgType, logo CatalogProductDetailGetLogoArgType, name CatalogProductDetailGetNameArgType, offerType CatalogProductDetailGetOfferTypeArgType, pricingOptions CatalogProductDetailGetPricingOptionsArgType, productId CatalogProductDetailGetProductIdArgType, summary CatalogProductDetailGetSummaryArgType, vendor CatalogProductDetailGetVendorArgType, videoUrl CatalogProductDetailGetVideoUrlArgType) *CatalogProductDetail { this := CatalogProductDetail{} setCatalogProductDetailGetDeliveryMethodAttributeType(&this.DeliveryMethod, deliveryMethod) setCatalogProductDetailGetDescriptionAttributeType(&this.Description, description) setCatalogProductDetailGetDocumentationUrlAttributeType(&this.DocumentationUrl, documentationUrl) setCatalogProductDetailGetHighlightsAttributeType(&this.Highlights, highlights) - setCatalogProductDetailgetIsProductListingAttributeType(&this.IsProductListing, isProductListing) setCatalogProductDetailGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState) setCatalogProductDetailGetLogoAttributeType(&this.Logo, logo) setCatalogProductDetailGetNameAttributeType(&this.Name, name) + setCatalogProductDetailGetOfferTypeAttributeType(&this.OfferType, offerType) setCatalogProductDetailGetPricingOptionsAttributeType(&this.PricingOptions, pricingOptions) setCatalogProductDetailGetProductIdAttributeType(&this.ProductId, productId) setCatalogProductDetailGetSummaryAttributeType(&this.Summary, summary) @@ -512,6 +554,29 @@ func NewCatalogProductDetailWithDefaults() *CatalogProductDetail { return &this } +// GetAssets returns the Assets field value if set, zero value otherwise. +func (o *CatalogProductDetail) GetAssets() (res CatalogProductDetailGetAssetsRetType) { + res, _ = o.GetAssetsOk() + return +} + +// GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CatalogProductDetail) GetAssetsOk() (ret CatalogProductDetailGetAssetsRetType, ok bool) { + return getCatalogProductDetailGetAssetsAttributeTypeOk(o.Assets) +} + +// HasAssets returns a boolean if a field has been set. +func (o *CatalogProductDetail) HasAssets() bool { + _, ok := o.GetAssetsOk() + return ok +} + +// SetAssets gets a reference to the given Assets and assigns it to the Assets field. +func (o *CatalogProductDetail) SetAssets(v CatalogProductDetailGetAssetsRetType) { + setCatalogProductDetailGetAssetsAttributeType(&o.Assets, v) +} + // GetCategories returns the Categories field value if set, zero value otherwise. func (o *CatalogProductDetail) GetCategories() (res CatalogProductDetailGetCategoriesRetType) { res, _ = o.GetCategoriesOk() @@ -649,19 +714,25 @@ func (o *CatalogProductDetail) SetIndustries(v CatalogProductDetailGetIndustries setCatalogProductDetailGetIndustriesAttributeType(&o.Industries, v) } -// GetIsProductListing returns the IsProductListing field value -func (o *CatalogProductDetail) GetIsProductListing() (ret CatalogProductDetailgetIsProductListingRetType) { - ret, _ = o.GetIsProductListingOk() - return ret +// GetIsProductListing returns the IsProductListing field value if set, zero value otherwise. +func (o *CatalogProductDetail) GetIsProductListing() (res CatalogProductDetailgetIsProductListingRetType) { + res, _ = o.GetIsProductListingOk() + return } -// GetIsProductListingOk returns a tuple with the IsProductListing field value +// GetIsProductListingOk returns a tuple with the IsProductListing field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CatalogProductDetail) GetIsProductListingOk() (ret CatalogProductDetailgetIsProductListingRetType, ok bool) { return getCatalogProductDetailgetIsProductListingAttributeTypeOk(o.IsProductListing) } -// SetIsProductListing sets field value +// HasIsProductListing returns a boolean if a field has been set. +func (o *CatalogProductDetail) HasIsProductListing() bool { + _, ok := o.GetIsProductListingOk() + return ok +} + +// SetIsProductListing gets a reference to the given bool and assigns it to the IsProductListing field. func (o *CatalogProductDetail) SetIsProductListing(v CatalogProductDetailgetIsProductListingRetType) { setCatalogProductDetailgetIsProductListingAttributeType(&o.IsProductListing, v) } @@ -717,6 +788,23 @@ func (o *CatalogProductDetail) SetName(v CatalogProductDetailGetNameRetType) { setCatalogProductDetailGetNameAttributeType(&o.Name, v) } +// GetOfferType returns the OfferType field value +func (o *CatalogProductDetail) GetOfferType() (ret CatalogProductDetailGetOfferTypeRetType) { + ret, _ = o.GetOfferTypeOk() + return ret +} + +// GetOfferTypeOk returns a tuple with the OfferType field value +// and a boolean to check if the value has been set. +func (o *CatalogProductDetail) GetOfferTypeOk() (ret CatalogProductDetailGetOfferTypeRetType, ok bool) { + return getCatalogProductDetailGetOfferTypeAttributeTypeOk(o.OfferType) +} + +// SetOfferType sets field value +func (o *CatalogProductDetail) SetOfferType(v CatalogProductDetailGetOfferTypeRetType) { + setCatalogProductDetailGetOfferTypeAttributeType(&o.OfferType, v) +} + // GetPricingOptions returns the PricingOptions field value func (o *CatalogProductDetail) GetPricingOptions() (ret CatalogProductDetailGetPricingOptionsRetType) { ret, _ = o.GetPricingOptionsOk() @@ -896,6 +984,9 @@ func (o *CatalogProductDetail) SetVideoUrl(v CatalogProductDetailGetVideoUrlRetT func (o CatalogProductDetail) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getCatalogProductDetailGetAssetsAttributeTypeOk(o.Assets); ok { + toSerialize["Assets"] = val + } if val, ok := getCatalogProductDetailGetCategoriesAttributeTypeOk(o.Categories); ok { toSerialize["Categories"] = val } @@ -929,6 +1020,9 @@ func (o CatalogProductDetail) ToMap() (map[string]interface{}, error) { if val, ok := getCatalogProductDetailGetNameAttributeTypeOk(o.Name); ok { toSerialize["Name"] = val } + if val, ok := getCatalogProductDetailGetOfferTypeAttributeTypeOk(o.OfferType); ok { + toSerialize["OfferType"] = val + } if val, ok := getCatalogProductDetailGetPricingOptionsAttributeTypeOk(o.PricingOptions); ok { toSerialize["PricingOptions"] = val } diff --git a/services/stackitmarketplace/model_catalog_product_details_vendor.go b/services/stackitmarketplace/model_catalog_product_details_vendor.go index 55652eb66f..ec8fe18cc5 100644 --- a/services/stackitmarketplace/model_catalog_product_details_vendor.go +++ b/services/stackitmarketplace/model_catalog_product_details_vendor.go @@ -146,22 +146,22 @@ type CatalogProductDetailsVendorGetWebsiteUrlRetType = string type CatalogProductDetailsVendor struct { // The vendor description. // REQUIRED - Description CatalogProductDetailsVendorGetDescriptionAttributeType `json:"description"` + Description CatalogProductDetailsVendorGetDescriptionAttributeType `json:"description" required:"true"` // The logo base64 encoded. // REQUIRED - Logo CatalogProductDetailsVendorGetLogoAttributeType `json:"logo"` + Logo CatalogProductDetailsVendorGetLogoAttributeType `json:"logo" required:"true"` // The product's vendor name. // REQUIRED - Name CatalogProductDetailsVendorGetNameAttributeType `json:"name"` + Name CatalogProductDetailsVendorGetNameAttributeType `json:"name" required:"true"` // Universally Unique Identifier (UUID). // REQUIRED - VendorId CatalogProductDetailsVendorGetVendorIdAttributeType `json:"vendorId"` + VendorId CatalogProductDetailsVendorGetVendorIdAttributeType `json:"vendorId" required:"true"` // Uniform Resource Locator. // REQUIRED - VideoUrl CatalogProductDetailsVendorGetVideoUrlAttributeType `json:"videoUrl"` + VideoUrl CatalogProductDetailsVendorGetVideoUrlAttributeType `json:"videoUrl" required:"true"` // Uniform Resource Locator. // REQUIRED - WebsiteUrl CatalogProductDetailsVendorGetWebsiteUrlAttributeType `json:"websiteUrl"` + WebsiteUrl CatalogProductDetailsVendorGetWebsiteUrlAttributeType `json:"websiteUrl" required:"true"` } type _CatalogProductDetailsVendor CatalogProductDetailsVendor diff --git a/services/stackitmarketplace/model_catalog_product_facets_value_inner.go b/services/stackitmarketplace/model_catalog_product_facets_value_inner.go index 21926fc612..ec1f25d168 100644 --- a/services/stackitmarketplace/model_catalog_product_facets_value_inner.go +++ b/services/stackitmarketplace/model_catalog_product_facets_value_inner.go @@ -63,10 +63,10 @@ type CatalogProductFacetsValueInner struct { // The number of items associated with this facet value. // Can be cast to int32 without loss of precision. // REQUIRED - Count CatalogProductFacetsValueInnerGetCountAttributeType `json:"count"` + Count CatalogProductFacetsValueInnerGetCountAttributeType `json:"count" required:"true"` // The value of the facet. // REQUIRED - Value CatalogProductFacetsValueInnerGetValueAttributeType `json:"value"` + Value CatalogProductFacetsValueInnerGetValueAttributeType `json:"value" required:"true"` } type _CatalogProductFacetsValueInner CatalogProductFacetsValueInner diff --git a/services/stackitmarketplace/model_catalog_product_overview.go b/services/stackitmarketplace/model_catalog_product_overview.go index 2f34dd3db5..2cf10ecfec 100644 --- a/services/stackitmarketplace/model_catalog_product_overview.go +++ b/services/stackitmarketplace/model_catalog_product_overview.go @@ -163,22 +163,22 @@ func setCatalogProductOverviewGetVendorAttributeType(arg *CatalogProductOverview // CatalogProductOverview struct for CatalogProductOverview type CatalogProductOverview struct { // REQUIRED - DeliveryMethod CatalogProductOverviewGetDeliveryMethodAttributeType `json:"deliveryMethod"` + DeliveryMethod CatalogProductOverviewGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` // REQUIRED - LifecycleState CatalogProductOverviewGetLifecycleStateAttributeType `json:"lifecycleState"` + LifecycleState CatalogProductOverviewGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` // The logo base64 encoded. Logo CatalogProductOverviewGetLogoAttributeType `json:"logo,omitempty"` // The name of the product. // REQUIRED - Name CatalogProductOverviewGetNameAttributeType `json:"name"` + Name CatalogProductOverviewGetNameAttributeType `json:"name" required:"true"` // The user-readable product ID. // REQUIRED - ProductId CatalogProductOverviewGetProductIdAttributeType `json:"productId"` + ProductId CatalogProductOverviewGetProductIdAttributeType `json:"productId" required:"true"` // A custom message. // REQUIRED - Summary CatalogProductOverviewGetSummaryAttributeType `json:"summary"` + Summary CatalogProductOverviewGetSummaryAttributeType `json:"summary" required:"true"` // REQUIRED - Vendor CatalogProductOverviewGetVendorAttributeType `json:"vendor"` + Vendor CatalogProductOverviewGetVendorAttributeType `json:"vendor" required:"true"` } type _CatalogProductOverview CatalogProductOverview diff --git a/services/stackitmarketplace/model_catalog_product_overview_vendor.go b/services/stackitmarketplace/model_catalog_product_overview_vendor.go index 0445607d38..507d5d115b 100644 --- a/services/stackitmarketplace/model_catalog_product_overview_vendor.go +++ b/services/stackitmarketplace/model_catalog_product_overview_vendor.go @@ -84,13 +84,13 @@ type CatalogProductOverviewVendorGetWebsiteUrlRetType = string type CatalogProductOverviewVendor struct { // The product's vendor name. // REQUIRED - Name CatalogProductOverviewVendorGetNameAttributeType `json:"name"` + Name CatalogProductOverviewVendorGetNameAttributeType `json:"name" required:"true"` // Universally Unique Identifier (UUID). // REQUIRED - VendorId CatalogProductOverviewVendorGetVendorIdAttributeType `json:"vendorId"` + VendorId CatalogProductOverviewVendorGetVendorIdAttributeType `json:"vendorId" required:"true"` // Uniform Resource Locator. // REQUIRED - WebsiteUrl CatalogProductOverviewVendorGetWebsiteUrlAttributeType `json:"websiteUrl"` + WebsiteUrl CatalogProductOverviewVendorGetWebsiteUrlAttributeType `json:"websiteUrl" required:"true"` } type _CatalogProductOverviewVendor CatalogProductOverviewVendor diff --git a/services/stackitmarketplace/model_catalog_product_pricing_option.go b/services/stackitmarketplace/model_catalog_product_pricing_option.go index b84b0aebac..afb60adb9a 100644 --- a/services/stackitmarketplace/model_catalog_product_pricing_option.go +++ b/services/stackitmarketplace/model_catalog_product_pricing_option.go @@ -79,6 +79,26 @@ func setCatalogProductPricingOptionGetNameAttributeType(arg *CatalogProductPrici type CatalogProductPricingOptionGetNameArgType = string type CatalogProductPricingOptionGetNameRetType = string +/* + types and functions for noticePeriod +*/ + +// isModel +type CatalogProductPricingOptionGetNoticePeriodAttributeType = *NoticePeriod +type CatalogProductPricingOptionGetNoticePeriodArgType = NoticePeriod +type CatalogProductPricingOptionGetNoticePeriodRetType = NoticePeriod + +func getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(arg CatalogProductPricingOptionGetNoticePeriodAttributeType) (ret CatalogProductPricingOptionGetNoticePeriodRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCatalogProductPricingOptionGetNoticePeriodAttributeType(arg *CatalogProductPricingOptionGetNoticePeriodAttributeType, val CatalogProductPricingOptionGetNoticePeriodRetType) { + *arg = &val +} + /* types and functions for priceType */ @@ -228,27 +248,28 @@ func setCatalogProductPricingOptionGetUnitAttributeType(arg *CatalogProductPrici type CatalogProductPricingOption struct { // The pricing option description. // REQUIRED - Description CatalogProductPricingOptionGetDescriptionAttributeType `json:"description"` + Description CatalogProductPricingOptionGetDescriptionAttributeType `json:"description" required:"true"` // The list of highlights. // REQUIRED - Highlights CatalogProductPricingOptionGetHighlightsAttributeType `json:"highlights"` + Highlights CatalogProductPricingOptionGetHighlightsAttributeType `json:"highlights" required:"true"` // The pricing option name. // REQUIRED - Name CatalogProductPricingOptionGetNameAttributeType `json:"name"` - PriceType CatalogProductPricingOptionGetPriceTypeAttributeType `json:"priceType,omitempty"` + Name CatalogProductPricingOptionGetNameAttributeType `json:"name" required:"true"` + NoticePeriod CatalogProductPricingOptionGetNoticePeriodAttributeType `json:"noticePeriod,omitempty"` + PriceType CatalogProductPricingOptionGetPriceTypeAttributeType `json:"priceType,omitempty"` // Additional price type information. PricingPlan CatalogProductPricingOptionGetPricingPlanAttributeType `json:"pricingPlan,omitempty"` // The price of the product (per unit). Rate CatalogProductPricingOptionGetRateAttributeType `json:"rate,omitempty"` // The concrete variant of the product. // REQUIRED - Sku CatalogProductPricingOptionGetSkuAttributeType `json:"sku"` + Sku CatalogProductPricingOptionGetSkuAttributeType `json:"sku" required:"true"` // Short description of this offering. // REQUIRED - SkuInfo CatalogProductPricingOptionGetSkuInfoAttributeType `json:"skuInfo"` + SkuInfo CatalogProductPricingOptionGetSkuInfoAttributeType `json:"skuInfo" required:"true"` // More details about what this offering entails. // REQUIRED - SkuInfoDetails CatalogProductPricingOptionGetSkuInfoDetailsAttributeType `json:"skuInfoDetails"` + SkuInfoDetails CatalogProductPricingOptionGetSkuInfoDetailsAttributeType `json:"skuInfoDetails" required:"true"` Unit CatalogProductPricingOptionGetUnitAttributeType `json:"unit,omitempty"` } @@ -328,6 +349,29 @@ func (o *CatalogProductPricingOption) SetName(v CatalogProductPricingOptionGetNa setCatalogProductPricingOptionGetNameAttributeType(&o.Name, v) } +// GetNoticePeriod returns the NoticePeriod field value if set, zero value otherwise. +func (o *CatalogProductPricingOption) GetNoticePeriod() (res CatalogProductPricingOptionGetNoticePeriodRetType) { + res, _ = o.GetNoticePeriodOk() + return +} + +// GetNoticePeriodOk returns a tuple with the NoticePeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CatalogProductPricingOption) GetNoticePeriodOk() (ret CatalogProductPricingOptionGetNoticePeriodRetType, ok bool) { + return getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(o.NoticePeriod) +} + +// HasNoticePeriod returns a boolean if a field has been set. +func (o *CatalogProductPricingOption) HasNoticePeriod() bool { + _, ok := o.GetNoticePeriodOk() + return ok +} + +// SetNoticePeriod gets a reference to the given NoticePeriod and assigns it to the NoticePeriod field. +func (o *CatalogProductPricingOption) SetNoticePeriod(v CatalogProductPricingOptionGetNoticePeriodRetType) { + setCatalogProductPricingOptionGetNoticePeriodAttributeType(&o.NoticePeriod, v) +} + // GetPriceType returns the PriceType field value if set, zero value otherwise. func (o *CatalogProductPricingOption) GetPriceType() (res CatalogProductPricingOptionGetPriceTypeRetType) { res, _ = o.GetPriceTypeOk() @@ -482,6 +526,9 @@ func (o CatalogProductPricingOption) ToMap() (map[string]interface{}, error) { if val, ok := getCatalogProductPricingOptionGetNameAttributeTypeOk(o.Name); ok { toSerialize["Name"] = val } + if val, ok := getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(o.NoticePeriod); ok { + toSerialize["NoticePeriod"] = val + } if val, ok := getCatalogProductPricingOptionGetPriceTypeAttributeTypeOk(o.PriceType); ok { toSerialize["PriceType"] = val } diff --git a/services/stackitmarketplace/model_catalog_product_vendor_terms.go b/services/stackitmarketplace/model_catalog_product_vendor_terms.go index 531ae53a19..71e18880f1 100644 --- a/services/stackitmarketplace/model_catalog_product_vendor_terms.go +++ b/services/stackitmarketplace/model_catalog_product_vendor_terms.go @@ -84,13 +84,13 @@ type CatalogProductVendorTermsGetUrlRetType = string type CatalogProductVendorTerms struct { // The terms of service description. // REQUIRED - Description CatalogProductVendorTermsGetDescriptionAttributeType `json:"description"` + Description CatalogProductVendorTermsGetDescriptionAttributeType `json:"description" required:"true"` // The terms of service title. // REQUIRED - Title CatalogProductVendorTermsGetTitleAttributeType `json:"title"` + Title CatalogProductVendorTermsGetTitleAttributeType `json:"title" required:"true"` // Uniform Resource Locator. // REQUIRED - Url CatalogProductVendorTermsGetUrlAttributeType `json:"url"` + Url CatalogProductVendorTermsGetUrlAttributeType `json:"url" required:"true"` } type _CatalogProductVendorTerms CatalogProductVendorTerms diff --git a/services/stackitmarketplace/model_contact_sales.go b/services/stackitmarketplace/model_contact_sales.go index da213a7910..c3babbd652 100644 --- a/services/stackitmarketplace/model_contact_sales.go +++ b/services/stackitmarketplace/model_contact_sales.go @@ -60,9 +60,9 @@ func setContactSalesGetTypeAttributeType(arg *ContactSalesGetTypeAttributeType, // ContactSales Contact sales. type ContactSales struct { // REQUIRED - ContactSales ContactSalesGetContactSalesAttributeType `json:"contactSales"` + ContactSales ContactSalesGetContactSalesAttributeType `json:"contactSales" required:"true"` // REQUIRED - Type ContactSalesGetTypeAttributeType `json:"type"` + Type ContactSalesGetTypeAttributeType `json:"type" required:"true"` } type _ContactSales ContactSales diff --git a/services/stackitmarketplace/model_error_response.go b/services/stackitmarketplace/model_error_response.go index 58c9a9dae3..d508b56b61 100644 --- a/services/stackitmarketplace/model_error_response.go +++ b/services/stackitmarketplace/model_error_response.go @@ -125,20 +125,20 @@ func setErrorResponseGetTimeStampAttributeType(arg *ErrorResponseGetTimeStampAtt type ErrorResponse struct { // Reason phrase of the status code. // REQUIRED - Error ErrorResponseGetErrorAttributeType `json:"error"` + Error ErrorResponseGetErrorAttributeType `json:"error" required:"true"` // Description of the error. // REQUIRED - Message ErrorResponseGetMessageAttributeType `json:"message"` + Message ErrorResponseGetMessageAttributeType `json:"message" required:"true"` // Path which was called. // REQUIRED - Path ErrorResponseGetPathAttributeType `json:"path"` + Path ErrorResponseGetPathAttributeType `json:"path" required:"true"` // HTTP response status code. // Can be cast to int32 without loss of precision. // REQUIRED - Status ErrorResponseGetStatusAttributeType `json:"status"` + Status ErrorResponseGetStatusAttributeType `json:"status" required:"true"` // Timestamp at which the error occurred. // REQUIRED - TimeStamp ErrorResponseGetTimeStampAttributeType `json:"timeStamp"` + TimeStamp ErrorResponseGetTimeStampAttributeType `json:"timeStamp" required:"true"` } type _ErrorResponse ErrorResponse diff --git a/services/stackitmarketplace/model_inquiry_become_vendor.go b/services/stackitmarketplace/model_inquiry_become_vendor.go index e23420f076..0852cbdf38 100644 --- a/services/stackitmarketplace/model_inquiry_become_vendor.go +++ b/services/stackitmarketplace/model_inquiry_become_vendor.go @@ -63,10 +63,10 @@ type InquiryBecomeVendorGetMessageRetType = string type InquiryBecomeVendor struct { // A e-mail address. // REQUIRED - ContactEmail InquiryBecomeVendorGetContactEmailAttributeType `json:"contactEmail"` + ContactEmail InquiryBecomeVendorGetContactEmailAttributeType `json:"contactEmail" required:"true"` // A custom message. // REQUIRED - Message InquiryBecomeVendorGetMessageAttributeType `json:"message"` + Message InquiryBecomeVendorGetMessageAttributeType `json:"message" required:"true"` } type _InquiryBecomeVendor InquiryBecomeVendor diff --git a/services/stackitmarketplace/model_inquiry_contact_sales.go b/services/stackitmarketplace/model_inquiry_contact_sales.go index 98a6847eb3..8a3d8c9aa0 100644 --- a/services/stackitmarketplace/model_inquiry_contact_sales.go +++ b/services/stackitmarketplace/model_inquiry_contact_sales.go @@ -126,19 +126,19 @@ type InquiryContactSalesGetProductIdRetType = string type InquiryContactSales struct { // The product's vendor name. // REQUIRED - CompanyName InquiryContactSalesGetCompanyNameAttributeType `json:"companyName"` + CompanyName InquiryContactSalesGetCompanyNameAttributeType `json:"companyName" required:"true"` // A e-mail address. // REQUIRED - ContactEmail InquiryContactSalesGetContactEmailAttributeType `json:"contactEmail"` + ContactEmail InquiryContactSalesGetContactEmailAttributeType `json:"contactEmail" required:"true"` // The full name of the contact person. // REQUIRED - FullName InquiryContactSalesGetFullNameAttributeType `json:"fullName"` + FullName InquiryContactSalesGetFullNameAttributeType `json:"fullName" required:"true"` // A custom message. // REQUIRED - Message InquiryContactSalesGetMessageAttributeType `json:"message"` + Message InquiryContactSalesGetMessageAttributeType `json:"message" required:"true"` // The user-readable product ID. // REQUIRED - ProductId InquiryContactSalesGetProductIdAttributeType `json:"productId"` + ProductId InquiryContactSalesGetProductIdAttributeType `json:"productId" required:"true"` } type _InquiryContactSales InquiryContactSales diff --git a/services/stackitmarketplace/model_inquiry_register_testing.go b/services/stackitmarketplace/model_inquiry_register_testing.go index ba4b0204d8..ee03121894 100644 --- a/services/stackitmarketplace/model_inquiry_register_testing.go +++ b/services/stackitmarketplace/model_inquiry_register_testing.go @@ -84,13 +84,13 @@ type InquiryRegisterTestingGetMessageRetType = string type InquiryRegisterTesting struct { // A e-mail address. // REQUIRED - ContactEmail InquiryRegisterTestingGetContactEmailAttributeType `json:"contactEmail"` + ContactEmail InquiryRegisterTestingGetContactEmailAttributeType `json:"contactEmail" required:"true"` // The full name of the contact person. // REQUIRED - FullName InquiryRegisterTestingGetFullNameAttributeType `json:"fullName"` + FullName InquiryRegisterTestingGetFullNameAttributeType `json:"fullName" required:"true"` // A custom message. // REQUIRED - Message InquiryRegisterTestingGetMessageAttributeType `json:"message"` + Message InquiryRegisterTestingGetMessageAttributeType `json:"message" required:"true"` } type _InquiryRegisterTesting InquiryRegisterTesting diff --git a/services/stackitmarketplace/model_inquiry_suggest_product.go b/services/stackitmarketplace/model_inquiry_suggest_product.go index 21f74fcc32..7a65690f8f 100644 --- a/services/stackitmarketplace/model_inquiry_suggest_product.go +++ b/services/stackitmarketplace/model_inquiry_suggest_product.go @@ -105,15 +105,15 @@ type InquirySuggestProductGetUrlRetType = string type InquirySuggestProduct struct { // The product's vendor name. // REQUIRED - CompanyName InquirySuggestProductGetCompanyNameAttributeType `json:"companyName"` + CompanyName InquirySuggestProductGetCompanyNameAttributeType `json:"companyName" required:"true"` // A custom message. Message InquirySuggestProductGetMessageAttributeType `json:"message,omitempty"` // The name of the product. // REQUIRED - Name InquirySuggestProductGetNameAttributeType `json:"name"` + Name InquirySuggestProductGetNameAttributeType `json:"name" required:"true"` // Uniform Resource Locator. // REQUIRED - Url InquirySuggestProductGetUrlAttributeType `json:"url"` + Url InquirySuggestProductGetUrlAttributeType `json:"url" required:"true"` } type _InquirySuggestProduct InquirySuggestProduct diff --git a/services/stackitmarketplace/model_list_catalog_products_response.go b/services/stackitmarketplace/model_list_catalog_products_response.go index 95275e81ec..e2aaf0751a 100644 --- a/services/stackitmarketplace/model_list_catalog_products_response.go +++ b/services/stackitmarketplace/model_list_catalog_products_response.go @@ -102,14 +102,14 @@ func setListCatalogProductsResponseGetLimitAttributeType(arg *ListCatalogProduct type ListCatalogProductsResponse struct { // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. // REQUIRED - Cursor ListCatalogProductsResponseGetCursorAttributeType `json:"cursor"` + Cursor ListCatalogProductsResponseGetCursorAttributeType `json:"cursor" required:"true"` // A collection of facets, where each key represents a facet category. Facets ListCatalogProductsResponseGetFacetsAttributeType `json:"facets,omitempty"` // REQUIRED - Items ListCatalogProductsResponseGetItemsAttributeType `json:"items"` + Items ListCatalogProductsResponseGetItemsAttributeType `json:"items" required:"true"` // Limit for returned Objects. // REQUIRED - Limit ListCatalogProductsResponseGetLimitAttributeType `json:"limit"` + Limit ListCatalogProductsResponseGetLimitAttributeType `json:"limit" required:"true"` } type _ListCatalogProductsResponse ListCatalogProductsResponse diff --git a/services/stackitmarketplace/model_list_vendor_subscriptions_response.go b/services/stackitmarketplace/model_list_vendor_subscriptions_response.go index 3c112cfcc8..938876a995 100644 --- a/services/stackitmarketplace/model_list_vendor_subscriptions_response.go +++ b/services/stackitmarketplace/model_list_vendor_subscriptions_response.go @@ -82,13 +82,13 @@ func setListVendorSubscriptionsResponseGetLimitAttributeType(arg *ListVendorSubs type ListVendorSubscriptionsResponse struct { // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. // REQUIRED - Cursor ListVendorSubscriptionsResponseGetCursorAttributeType `json:"cursor"` + Cursor ListVendorSubscriptionsResponseGetCursorAttributeType `json:"cursor" required:"true"` // List of subscriptions. // REQUIRED - Items ListVendorSubscriptionsResponseGetItemsAttributeType `json:"items"` + Items ListVendorSubscriptionsResponseGetItemsAttributeType `json:"items" required:"true"` // Limit for returned Objects. // REQUIRED - Limit ListVendorSubscriptionsResponseGetLimitAttributeType `json:"limit"` + Limit ListVendorSubscriptionsResponseGetLimitAttributeType `json:"limit" required:"true"` } type _ListVendorSubscriptionsResponse ListVendorSubscriptionsResponse diff --git a/services/stackitmarketplace/model_localized_version.go b/services/stackitmarketplace/model_localized_version.go new file mode 100644 index 0000000000..0bc2dfa9ef --- /dev/null +++ b/services/stackitmarketplace/model_localized_version.go @@ -0,0 +1,178 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace + +import ( + "encoding/json" +) + +// checks if the LocalizedVersion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocalizedVersion{} + +/* + types and functions for de +*/ + +// isNotNullableString +type LocalizedVersionGetDeAttributeType = *string + +func getLocalizedVersionGetDeAttributeTypeOk(arg LocalizedVersionGetDeAttributeType) (ret LocalizedVersionGetDeRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setLocalizedVersionGetDeAttributeType(arg *LocalizedVersionGetDeAttributeType, val LocalizedVersionGetDeRetType) { + *arg = &val +} + +type LocalizedVersionGetDeArgType = string +type LocalizedVersionGetDeRetType = string + +/* + types and functions for en +*/ + +// isNotNullableString +type LocalizedVersionGetEnAttributeType = *string + +func getLocalizedVersionGetEnAttributeTypeOk(arg LocalizedVersionGetEnAttributeType) (ret LocalizedVersionGetEnRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setLocalizedVersionGetEnAttributeType(arg *LocalizedVersionGetEnAttributeType, val LocalizedVersionGetEnRetType) { + *arg = &val +} + +type LocalizedVersionGetEnArgType = string +type LocalizedVersionGetEnRetType = string + +// LocalizedVersion The localized version (file name) of a file. +type LocalizedVersion struct { + // The file version matching the file name (localized). + De LocalizedVersionGetDeAttributeType `json:"de,omitempty"` + // The file version matching the file name (localized). + En LocalizedVersionGetEnAttributeType `json:"en,omitempty"` +} + +// NewLocalizedVersion instantiates a new LocalizedVersion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLocalizedVersion() *LocalizedVersion { + this := LocalizedVersion{} + return &this +} + +// NewLocalizedVersionWithDefaults instantiates a new LocalizedVersion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocalizedVersionWithDefaults() *LocalizedVersion { + this := LocalizedVersion{} + return &this +} + +// GetDe returns the De field value if set, zero value otherwise. +func (o *LocalizedVersion) GetDe() (res LocalizedVersionGetDeRetType) { + res, _ = o.GetDeOk() + return +} + +// GetDeOk returns a tuple with the De field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalizedVersion) GetDeOk() (ret LocalizedVersionGetDeRetType, ok bool) { + return getLocalizedVersionGetDeAttributeTypeOk(o.De) +} + +// HasDe returns a boolean if a field has been set. +func (o *LocalizedVersion) HasDe() bool { + _, ok := o.GetDeOk() + return ok +} + +// SetDe gets a reference to the given string and assigns it to the De field. +func (o *LocalizedVersion) SetDe(v LocalizedVersionGetDeRetType) { + setLocalizedVersionGetDeAttributeType(&o.De, v) +} + +// GetEn returns the En field value if set, zero value otherwise. +func (o *LocalizedVersion) GetEn() (res LocalizedVersionGetEnRetType) { + res, _ = o.GetEnOk() + return +} + +// GetEnOk returns a tuple with the En field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocalizedVersion) GetEnOk() (ret LocalizedVersionGetEnRetType, ok bool) { + return getLocalizedVersionGetEnAttributeTypeOk(o.En) +} + +// HasEn returns a boolean if a field has been set. +func (o *LocalizedVersion) HasEn() bool { + _, ok := o.GetEnOk() + return ok +} + +// SetEn gets a reference to the given string and assigns it to the En field. +func (o *LocalizedVersion) SetEn(v LocalizedVersionGetEnRetType) { + setLocalizedVersionGetEnAttributeType(&o.En, v) +} + +func (o LocalizedVersion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getLocalizedVersionGetDeAttributeTypeOk(o.De); ok { + toSerialize["De"] = val + } + if val, ok := getLocalizedVersionGetEnAttributeTypeOk(o.En); ok { + toSerialize["En"] = val + } + return toSerialize, nil +} + +type NullableLocalizedVersion struct { + value *LocalizedVersion + isSet bool +} + +func (v NullableLocalizedVersion) Get() *LocalizedVersion { + return v.value +} + +func (v *NullableLocalizedVersion) Set(val *LocalizedVersion) { + v.value = val + v.isSet = true +} + +func (v NullableLocalizedVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableLocalizedVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocalizedVersion(val *LocalizedVersion) *NullableLocalizedVersion { + return &NullableLocalizedVersion{value: val, isSet: true} +} + +func (v NullableLocalizedVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocalizedVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/model_localized_version_test.go b/services/stackitmarketplace/model_localized_version_test.go new file mode 100644 index 0000000000..8d52b2c3ca --- /dev/null +++ b/services/stackitmarketplace/model_localized_version_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace diff --git a/services/stackitmarketplace/model_notice_period.go b/services/stackitmarketplace/model_notice_period.go new file mode 100644 index 0000000000..0ab35972f2 --- /dev/null +++ b/services/stackitmarketplace/model_notice_period.go @@ -0,0 +1,283 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace + +import ( + "encoding/json" + "fmt" +) + +// checks if the NoticePeriod type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NoticePeriod{} + +/* + types and functions for type +*/ + +// isEnum + +// NoticePeriodTypes The notice period type. +// value type for enums +type NoticePeriodTypes string + +// List of Type +const ( + NOTICEPERIODTYPE_SAME_DAY NoticePeriodTypes = "SAME_DAY" + NOTICEPERIODTYPE_DAYS NoticePeriodTypes = "DAYS" + NOTICEPERIODTYPE_MONTHS NoticePeriodTypes = "MONTHS" +) + +// All allowed values of NoticePeriod enum +var AllowedNoticePeriodTypesEnumValues = []NoticePeriodTypes{ + "SAME_DAY", + "DAYS", + "MONTHS", +} + +func (v *NoticePeriodTypes) UnmarshalJSON(src []byte) error { + // use a type alias to prevent infinite recursion during unmarshal, + // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers + type TmpJson NoticePeriodTypes + var value TmpJson + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + // Allow unmarshalling zero value for testing purposes + var zeroValue TmpJson + if value == zeroValue { + return nil + } + enumTypeValue := NoticePeriodTypes(value) + for _, existing := range AllowedNoticePeriodTypesEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid NoticePeriod", value) +} + +// NewNoticePeriodTypesFromValue returns a pointer to a valid NoticePeriodTypes +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewNoticePeriodTypesFromValue(v NoticePeriodTypes) (*NoticePeriodTypes, error) { + ev := NoticePeriodTypes(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for NoticePeriodTypes: valid values are %v", v, AllowedNoticePeriodTypesEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v NoticePeriodTypes) IsValid() bool { + for _, existing := range AllowedNoticePeriodTypesEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TypeTypes value +func (v NoticePeriodTypes) Ptr() *NoticePeriodTypes { + return &v +} + +type NullableNoticePeriodTypes struct { + value *NoticePeriodTypes + isSet bool +} + +func (v NullableNoticePeriodTypes) Get() *NoticePeriodTypes { + return v.value +} + +func (v *NullableNoticePeriodTypes) Set(val *NoticePeriodTypes) { + v.value = val + v.isSet = true +} + +func (v NullableNoticePeriodTypes) IsSet() bool { + return v.isSet +} + +func (v *NullableNoticePeriodTypes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNoticePeriodTypes(val *NoticePeriodTypes) *NullableNoticePeriodTypes { + return &NullableNoticePeriodTypes{value: val, isSet: true} +} + +func (v NullableNoticePeriodTypes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNoticePeriodTypes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NoticePeriodGetTypeAttributeType = *NoticePeriodTypes +type NoticePeriodGetTypeArgType = NoticePeriodTypes +type NoticePeriodGetTypeRetType = NoticePeriodTypes + +func getNoticePeriodGetTypeAttributeTypeOk(arg NoticePeriodGetTypeAttributeType) (ret NoticePeriodGetTypeRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setNoticePeriodGetTypeAttributeType(arg *NoticePeriodGetTypeAttributeType, val NoticePeriodGetTypeRetType) { + *arg = &val +} + +/* + types and functions for value +*/ + +// isInteger +type NoticePeriodGetValueAttributeType = *int64 +type NoticePeriodGetValueArgType = int64 +type NoticePeriodGetValueRetType = int64 + +func getNoticePeriodGetValueAttributeTypeOk(arg NoticePeriodGetValueAttributeType) (ret NoticePeriodGetValueRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setNoticePeriodGetValueAttributeType(arg *NoticePeriodGetValueAttributeType, val NoticePeriodGetValueRetType) { + *arg = &val +} + +// NoticePeriod The notice period for a product and plan. +type NoticePeriod struct { + // The notice period type. + Type NoticePeriodGetTypeAttributeType `json:"type,omitempty"` + // The value of the corresponding type. Omitted for _SAME_DAY_. + Value NoticePeriodGetValueAttributeType `json:"value,omitempty"` +} + +// NewNoticePeriod instantiates a new NoticePeriod object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNoticePeriod() *NoticePeriod { + this := NoticePeriod{} + return &this +} + +// NewNoticePeriodWithDefaults instantiates a new NoticePeriod object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNoticePeriodWithDefaults() *NoticePeriod { + this := NoticePeriod{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *NoticePeriod) GetType() (res NoticePeriodGetTypeRetType) { + res, _ = o.GetTypeOk() + return +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NoticePeriod) GetTypeOk() (ret NoticePeriodGetTypeRetType, ok bool) { + return getNoticePeriodGetTypeAttributeTypeOk(o.Type) +} + +// HasType returns a boolean if a field has been set. +func (o *NoticePeriod) HasType() bool { + _, ok := o.GetTypeOk() + return ok +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *NoticePeriod) SetType(v NoticePeriodGetTypeRetType) { + setNoticePeriodGetTypeAttributeType(&o.Type, v) +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *NoticePeriod) GetValue() (res NoticePeriodGetValueRetType) { + res, _ = o.GetValueOk() + return +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NoticePeriod) GetValueOk() (ret NoticePeriodGetValueRetType, ok bool) { + return getNoticePeriodGetValueAttributeTypeOk(o.Value) +} + +// HasValue returns a boolean if a field has been set. +func (o *NoticePeriod) HasValue() bool { + _, ok := o.GetValueOk() + return ok +} + +// SetValue gets a reference to the given int64 and assigns it to the Value field. +func (o *NoticePeriod) SetValue(v NoticePeriodGetValueRetType) { + setNoticePeriodGetValueAttributeType(&o.Value, v) +} + +func (o NoticePeriod) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getNoticePeriodGetTypeAttributeTypeOk(o.Type); ok { + toSerialize["Type"] = val + } + if val, ok := getNoticePeriodGetValueAttributeTypeOk(o.Value); ok { + toSerialize["Value"] = val + } + return toSerialize, nil +} + +type NullableNoticePeriod struct { + value *NoticePeriod + isSet bool +} + +func (v NullableNoticePeriod) Get() *NoticePeriod { + return v.value +} + +func (v *NullableNoticePeriod) Set(val *NoticePeriod) { + v.value = val + v.isSet = true +} + +func (v NullableNoticePeriod) IsSet() bool { + return v.isSet +} + +func (v *NullableNoticePeriod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNoticePeriod(val *NoticePeriod) *NullableNoticePeriod { + return &NullableNoticePeriod{value: val, isSet: true} +} + +func (v NullableNoticePeriod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNoticePeriod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/model_notice_period_test.go b/services/stackitmarketplace/model_notice_period_test.go new file mode 100644 index 0000000000..7353ba6747 --- /dev/null +++ b/services/stackitmarketplace/model_notice_period_test.go @@ -0,0 +1,65 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace + +import ( + "testing" +) + +// isEnum + +func TestNoticePeriodTypes_UnmarshalJSON(t *testing.T) { + type args struct { + src []byte + } + tests := []struct { + name string + args args + wantErr bool + }{ + { + name: `success - possible enum value no. 1`, + args: args{ + src: []byte(`"SAME_DAY"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 2`, + args: args{ + src: []byte(`"DAYS"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 3`, + args: args{ + src: []byte(`"MONTHS"`), + }, + wantErr: false, + }, + { + name: "fail", + args: args{ + src: []byte("\"FOOBAR\""), + }, + wantErr: true, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + v := NoticePeriodTypes("") + if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { + t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) + } + }) + } +} diff --git a/services/stackitmarketplace/model_offer_type.go b/services/stackitmarketplace/model_offer_type.go new file mode 100644 index 0000000000..4cce94f567 --- /dev/null +++ b/services/stackitmarketplace/model_offer_type.go @@ -0,0 +1,115 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace + +import ( + "encoding/json" + "fmt" +) + +// OfferType The offer type of a product reflecting the business model. +type OfferType string + +// List of offerType +const ( + OFFERTYPE_LISTING OfferType = "OFFER_LISTING" + OFFERTYPE_RESELLING OfferType = "OFFER_RESELLING" +) + +// All allowed values of OfferType enum +var AllowedOfferTypeEnumValues = []OfferType{ + "OFFER_LISTING", + "OFFER_RESELLING", +} + +func (v *OfferType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + // Allow unmarshalling zero value for testing purposes + var zeroValue string + if value == zeroValue { + return nil + } + enumTypeValue := OfferType(value) + for _, existing := range AllowedOfferTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid OfferType", value) +} + +// NewOfferTypeFromValue returns a pointer to a valid OfferType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewOfferTypeFromValue(v string) (*OfferType, error) { + ev := OfferType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for OfferType: valid values are %v", v, AllowedOfferTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v OfferType) IsValid() bool { + for _, existing := range AllowedOfferTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to offerType value +func (v OfferType) Ptr() *OfferType { + return &v +} + +type NullableOfferType struct { + value *OfferType + isSet bool +} + +func (v NullableOfferType) Get() *OfferType { + return v.value +} + +func (v *NullableOfferType) Set(val *OfferType) { + v.value = val + v.isSet = true +} + +func (v NullableOfferType) IsSet() bool { + return v.isSet +} + +func (v *NullableOfferType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOfferType(val *OfferType) *NullableOfferType { + return &NullableOfferType{value: val, isSet: true} +} + +func (v NullableOfferType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOfferType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/model_offer_type_test.go b/services/stackitmarketplace/model_offer_type_test.go new file mode 100644 index 0000000000..8d52b2c3ca --- /dev/null +++ b/services/stackitmarketplace/model_offer_type_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace diff --git a/services/stackitmarketplace/model_register_testing.go b/services/stackitmarketplace/model_register_testing.go index 7b3efbfd7c..58953e1d06 100644 --- a/services/stackitmarketplace/model_register_testing.go +++ b/services/stackitmarketplace/model_register_testing.go @@ -60,9 +60,9 @@ func setRegisterTestingGetTypeAttributeType(arg *RegisterTestingGetTypeAttribute // RegisterTesting Register for testing. type RegisterTesting struct { // REQUIRED - RegisterTesting RegisterTestingGetRegisterTestingAttributeType `json:"registerTesting"` + RegisterTesting RegisterTestingGetRegisterTestingAttributeType `json:"registerTesting" required:"true"` // REQUIRED - Type RegisterTestingGetTypeAttributeType `json:"type"` + Type RegisterTestingGetTypeAttributeType `json:"type" required:"true"` } type _RegisterTesting RegisterTesting diff --git a/services/stackitmarketplace/model_resolve_customer_payload.go b/services/stackitmarketplace/model_resolve_customer_payload.go index 07a050c82f..2ad8bf5225 100644 --- a/services/stackitmarketplace/model_resolve_customer_payload.go +++ b/services/stackitmarketplace/model_resolve_customer_payload.go @@ -42,7 +42,7 @@ type ResolveCustomerPayloadGetTokenRetType = string type ResolveCustomerPayload struct { // Opaque token exchangeable for subscription details. // REQUIRED - Token ResolveCustomerPayloadGetTokenAttributeType `json:"token"` + Token ResolveCustomerPayloadGetTokenAttributeType `json:"token" required:"true"` } type _ResolveCustomerPayload ResolveCustomerPayload diff --git a/services/stackitmarketplace/model_service_certificate.go b/services/stackitmarketplace/model_service_certificate.go new file mode 100644 index 0000000000..51d499081b --- /dev/null +++ b/services/stackitmarketplace/model_service_certificate.go @@ -0,0 +1,127 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace + +import ( + "encoding/json" +) + +// checks if the ServiceCertificate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceCertificate{} + +/* + types and functions for version +*/ + +// isModel +type ServiceCertificateGetVersionAttributeType = *LocalizedVersion +type ServiceCertificateGetVersionArgType = LocalizedVersion +type ServiceCertificateGetVersionRetType = LocalizedVersion + +func getServiceCertificateGetVersionAttributeTypeOk(arg ServiceCertificateGetVersionAttributeType) (ret ServiceCertificateGetVersionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setServiceCertificateGetVersionAttributeType(arg *ServiceCertificateGetVersionAttributeType, val ServiceCertificateGetVersionRetType) { + *arg = &val +} + +// ServiceCertificate The related service certificate of the (subscription) product. +type ServiceCertificate struct { + Version ServiceCertificateGetVersionAttributeType `json:"version,omitempty"` +} + +// NewServiceCertificate instantiates a new ServiceCertificate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceCertificate() *ServiceCertificate { + this := ServiceCertificate{} + return &this +} + +// NewServiceCertificateWithDefaults instantiates a new ServiceCertificate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceCertificateWithDefaults() *ServiceCertificate { + this := ServiceCertificate{} + return &this +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ServiceCertificate) GetVersion() (res ServiceCertificateGetVersionRetType) { + res, _ = o.GetVersionOk() + return +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCertificate) GetVersionOk() (ret ServiceCertificateGetVersionRetType, ok bool) { + return getServiceCertificateGetVersionAttributeTypeOk(o.Version) +} + +// HasVersion returns a boolean if a field has been set. +func (o *ServiceCertificate) HasVersion() bool { + _, ok := o.GetVersionOk() + return ok +} + +// SetVersion gets a reference to the given LocalizedVersion and assigns it to the Version field. +func (o *ServiceCertificate) SetVersion(v ServiceCertificateGetVersionRetType) { + setServiceCertificateGetVersionAttributeType(&o.Version, v) +} + +func (o ServiceCertificate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getServiceCertificateGetVersionAttributeTypeOk(o.Version); ok { + toSerialize["Version"] = val + } + return toSerialize, nil +} + +type NullableServiceCertificate struct { + value *ServiceCertificate + isSet bool +} + +func (v NullableServiceCertificate) Get() *ServiceCertificate { + return v.value +} + +func (v *NullableServiceCertificate) Set(val *ServiceCertificate) { + v.value = val + v.isSet = true +} + +func (v NullableServiceCertificate) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceCertificate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceCertificate(val *ServiceCertificate) *NullableServiceCertificate { + return &NullableServiceCertificate{value: val, isSet: true} +} + +func (v NullableServiceCertificate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceCertificate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/model_service_certificate_test.go b/services/stackitmarketplace/model_service_certificate_test.go new file mode 100644 index 0000000000..8d52b2c3ca --- /dev/null +++ b/services/stackitmarketplace/model_service_certificate_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackitmarketplace diff --git a/services/stackitmarketplace/model_subscription_product.go b/services/stackitmarketplace/model_subscription_product.go index 145be8ef6e..f8335875d9 100644 --- a/services/stackitmarketplace/model_subscription_product.go +++ b/services/stackitmarketplace/model_subscription_product.go @@ -17,6 +17,26 @@ import ( // checks if the SubscriptionProduct type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SubscriptionProduct{} +/* + types and functions for assets +*/ + +// isModel +type SubscriptionProductGetAssetsAttributeType = *Assets +type SubscriptionProductGetAssetsArgType = Assets +type SubscriptionProductGetAssetsRetType = Assets + +func getSubscriptionProductGetAssetsAttributeTypeOk(arg SubscriptionProductGetAssetsAttributeType) (ret SubscriptionProductGetAssetsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSubscriptionProductGetAssetsAttributeType(arg *SubscriptionProductGetAssetsAttributeType, val SubscriptionProductGetAssetsRetType) { + *arg = &val +} + /* types and functions for deliveryMethod */ @@ -226,31 +246,32 @@ type SubscriptionProductGetVendorWebsiteUrlRetType = string // SubscriptionProduct The product of a subscription type SubscriptionProduct struct { + Assets SubscriptionProductGetAssetsAttributeType `json:"assets,omitempty"` // REQUIRED - DeliveryMethod SubscriptionProductGetDeliveryMethodAttributeType `json:"deliveryMethod"` + DeliveryMethod SubscriptionProductGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` // REQUIRED - LifecycleState SubscriptionProductGetLifecycleStateAttributeType `json:"lifecycleState"` + LifecycleState SubscriptionProductGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` // REQUIRED - PriceType SubscriptionProductGetPriceTypeAttributeType `json:"priceType"` + PriceType SubscriptionProductGetPriceTypeAttributeType `json:"priceType" required:"true"` // Additional price type information. // REQUIRED - PricingPlan SubscriptionProductGetPricingPlanAttributeType `json:"pricingPlan"` + PricingPlan SubscriptionProductGetPricingPlanAttributeType `json:"pricingPlan" required:"true"` // The user-readable product ID. // REQUIRED - ProductId SubscriptionProductGetProductIdAttributeType `json:"productId"` + ProductId SubscriptionProductGetProductIdAttributeType `json:"productId" required:"true"` // The name of the product. // REQUIRED - ProductName SubscriptionProductGetProductNameAttributeType `json:"productName"` + ProductName SubscriptionProductGetProductNameAttributeType `json:"productName" required:"true"` // The product's vendor name. // REQUIRED - VendorName SubscriptionProductGetVendorNameAttributeType `json:"vendorName"` + VendorName SubscriptionProductGetVendorNameAttributeType `json:"vendorName" required:"true"` // The vendor provided plan ID. VendorPlanId SubscriptionProductGetVendorPlanIdAttributeType `json:"vendorPlanId,omitempty"` // The vendor provided product ID. VendorProductId SubscriptionProductGetVendorProductIdAttributeType `json:"vendorProductId,omitempty"` // Uniform Resource Locator. // REQUIRED - VendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlAttributeType `json:"vendorWebsiteUrl"` + VendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlAttributeType `json:"vendorWebsiteUrl" required:"true"` } type _SubscriptionProduct SubscriptionProduct @@ -280,6 +301,29 @@ func NewSubscriptionProductWithDefaults() *SubscriptionProduct { return &this } +// GetAssets returns the Assets field value if set, zero value otherwise. +func (o *SubscriptionProduct) GetAssets() (res SubscriptionProductGetAssetsRetType) { + res, _ = o.GetAssetsOk() + return +} + +// GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionProduct) GetAssetsOk() (ret SubscriptionProductGetAssetsRetType, ok bool) { + return getSubscriptionProductGetAssetsAttributeTypeOk(o.Assets) +} + +// HasAssets returns a boolean if a field has been set. +func (o *SubscriptionProduct) HasAssets() bool { + _, ok := o.GetAssetsOk() + return ok +} + +// SetAssets gets a reference to the given Assets and assigns it to the Assets field. +func (o *SubscriptionProduct) SetAssets(v SubscriptionProductGetAssetsRetType) { + setSubscriptionProductGetAssetsAttributeType(&o.Assets, v) +} + // GetDeliveryMethod returns the DeliveryMethod field value func (o *SubscriptionProduct) GetDeliveryMethod() (ret SubscriptionProductGetDeliveryMethodRetType) { ret, _ = o.GetDeliveryMethodOk() @@ -464,6 +508,9 @@ func (o *SubscriptionProduct) SetVendorWebsiteUrl(v SubscriptionProductGetVendor func (o SubscriptionProduct) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getSubscriptionProductGetAssetsAttributeTypeOk(o.Assets); ok { + toSerialize["Assets"] = val + } if val, ok := getSubscriptionProductGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod); ok { toSerialize["DeliveryMethod"] = val } diff --git a/services/stackitmarketplace/model_suggest_product.go b/services/stackitmarketplace/model_suggest_product.go index e878a3c2c2..38ee46bf7d 100644 --- a/services/stackitmarketplace/model_suggest_product.go +++ b/services/stackitmarketplace/model_suggest_product.go @@ -60,9 +60,9 @@ func setSuggestProductGetTypeAttributeType(arg *SuggestProductGetTypeAttributeTy // SuggestProduct Suggest a product. type SuggestProduct struct { // REQUIRED - SuggestProduct SuggestProductGetSuggestProductAttributeType `json:"suggestProduct"` + SuggestProduct SuggestProductGetSuggestProductAttributeType `json:"suggestProduct" required:"true"` // REQUIRED - Type SuggestProductGetTypeAttributeType `json:"type"` + Type SuggestProductGetTypeAttributeType `json:"type" required:"true"` } type _SuggestProduct SuggestProduct diff --git a/services/stackitmarketplace/model_vendor_subscription.go b/services/stackitmarketplace/model_vendor_subscription.go index 11b0c055d2..fb7f0af55e 100644 --- a/services/stackitmarketplace/model_vendor_subscription.go +++ b/services/stackitmarketplace/model_vendor_subscription.go @@ -123,18 +123,18 @@ type VendorSubscriptionGetSubscriptionIdRetType = string // VendorSubscription struct for VendorSubscription type VendorSubscription struct { // REQUIRED - LifecycleState VendorSubscriptionGetLifecycleStateAttributeType `json:"lifecycleState"` + LifecycleState VendorSubscriptionGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` // Universally Unique Identifier (UUID). // REQUIRED - OrganizationId VendorSubscriptionGetOrganizationIdAttributeType `json:"organizationId"` + OrganizationId VendorSubscriptionGetOrganizationIdAttributeType `json:"organizationId" required:"true"` // REQUIRED - Product VendorSubscriptionGetProductAttributeType `json:"product"` + Product VendorSubscriptionGetProductAttributeType `json:"product" required:"true"` // Universally Unique Identifier (UUID). // REQUIRED - ProjectId VendorSubscriptionGetProjectIdAttributeType `json:"projectId"` + ProjectId VendorSubscriptionGetProjectIdAttributeType `json:"projectId" required:"true"` // Universally Unique Identifier (UUID). // REQUIRED - SubscriptionId VendorSubscriptionGetSubscriptionIdAttributeType `json:"subscriptionId"` + SubscriptionId VendorSubscriptionGetSubscriptionIdAttributeType `json:"subscriptionId" required:"true"` } type _VendorSubscription VendorSubscription