diff --git a/services/cdn/api_default.go b/services/cdn/api_default.go index 8c3063973..b0f0d6e43 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 59efb6eb9..faea4e119 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 4285ac6dd..4ded2f960 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 29bd6a221..85acbbb07 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 f2c4dd8f1..8abd0d2e1 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 20c51dca1..a1bac3cb7 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 1dad812fb..fb950838d 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 f9ba32e90..f76a46f62 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 5b44d03d0..cb1f2d3f6 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 08e87c5ec..c88c33bef 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 cf3b12326..258c77a9b 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 a88e24f37..ffa8f30f1 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 86a5d6660..32101eebb 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 a9f110e1b..44f69b81e 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 3e3d22efd..246b204b9 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 f77d29582..1bed5abdd 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 41634bb6e..b2166c941 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 371ec23e2..d470c9ba6 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 8b9aa3aee..cca70d11c 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 40a945394..bd1235e16 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 32dce8709..b14f63ca9 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 05efaf1ee..c346e3176 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 90528bdf6..987fa833b 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 b94cbfeac..e52e582a7 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 4302f8e5e..4bd4ba015 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 8bd574d59..9243a3a69 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 4af7732b7..6d9565ff5 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 da2687f6e..5fe155fd1 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 997141438..0c0a05cc2 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 40edd6732..c231786c5 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