From 2c1de3bfdecbff3f074ccef52b6096259c3c436c Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 22 Apr 2026 12:44:27 +0000 Subject: [PATCH 1/2] Generate cdn --- services/cdn/api_default.go | 40 ++-- services/cdn/model_config.go | 171 +++++++++++++- services/cdn/model_config_patch.go | 186 ++++++++++++++- .../cdn/model_create_distribution_payload.go | 186 ++++++++++++++- services/cdn/model_distribution.go | 4 +- ..._distribution_statistics_record_regions.go | 2 +- services/cdn/model_distribution_waf.go | 2 +- services/cdn/model_get_cache_info_response.go | 2 +- .../model_get_logs_search_filters_response.go | 2 +- services/cdn/model_http_backend.go | 4 +- services/cdn/model_http_backend_create.go | 4 +- services/cdn/model_http_backend_patch.go | 2 +- .../cdn/model_patch_distribution_payload.go | 2 +- services/cdn/model_purge_cache_payload.go | 2 +- ...el_put_custom_domain_custom_certificate.go | 2 +- .../cdn/model_put_custom_domain_payload.go | 2 +- services/cdn/model_tls_config.go | 204 +++++++++++++++++ services/cdn/model_tls_config_patch.go | 211 ++++++++++++++++++ services/cdn/model_tls_config_patch_test.go | 11 + services/cdn/model_tls_config_test.go | 11 + services/cdn/model_waf_config.go | 4 +- services/cdn/model_waf_paranoia_level.go | 2 +- ..._status_rule_block_reason_never_defined.go | 2 +- services/cdn/model_waf_type.go | 2 +- services/cdn/oas_commit | 2 +- services/cdn/v1api/api_default.go | 20 +- services/cdn/v1api/model_config.go | 109 ++++++++- services/cdn/v1api/model_config_patch.go | 131 ++++++++++- .../model_create_distribution_payload.go | 123 +++++++++- services/cdn/v1api/model_distribution.go | 2 +- ..._distribution_statistics_record_regions.go | 2 +- services/cdn/v1api/model_distribution_waf.go | 2 +- .../v1api/model_get_cache_info_response.go | 2 +- .../model_get_logs_search_filters_response.go | 2 +- services/cdn/v1api/model_http_backend.go | 4 +- .../cdn/v1api/model_http_backend_create.go | 4 +- .../cdn/v1api/model_http_backend_patch.go | 2 +- .../v1api/model_patch_distribution_payload.go | 2 +- .../cdn/v1api/model_purge_cache_payload.go | 2 +- ...el_put_custom_domain_custom_certificate.go | 2 +- .../v1api/model_put_custom_domain_payload.go | 2 +- services/cdn/v1api/model_tls_config.go | 197 ++++++++++++++++ services/cdn/v1api/model_tls_config_patch.go | 192 ++++++++++++++++ services/cdn/v1api/model_waf_config.go | 4 +- .../cdn/v1api/model_waf_paranoia_level.go | 2 +- ..._status_rule_block_reason_never_defined.go | 2 +- services/cdn/v1api/model_waf_type.go | 2 +- services/cdn/v1beta2api/api_default.go | 20 +- services/cdn/v1beta2api/model_config.go | 6 +- services/cdn/v1beta2api/model_config_patch.go | 6 +- .../model_create_distribution_payload.go | 8 +- services/cdn/v1beta2api/model_distribution.go | 2 +- ..._distribution_statistics_record_regions.go | 2 +- .../cdn/v1beta2api/model_distribution_waf.go | 2 +- .../model_get_cache_info_response.go | 2 +- .../model_get_logs_search_filters_response.go | 2 +- services/cdn/v1beta2api/model_http_backend.go | 4 +- .../v1beta2api/model_http_backend_create.go | 4 +- .../v1beta2api/model_http_backend_patch.go | 2 +- .../model_patch_distribution_payload.go | 2 +- .../v1beta2api/model_purge_cache_payload.go | 2 +- .../model_put_custom_domain_payload.go | 2 +- services/cdn/v1beta2api/model_waf_config.go | 4 +- .../v1beta2api/model_waf_paranoia_level.go | 2 +- ..._status_rule_block_reason_never_defined.go | 2 +- services/cdn/v1beta2api/model_waf_type.go | 2 +- services/cdn/v1betaapi/api_default.go | 129 ++++++++++- services/cdn/v1betaapi/api_default_mock.go | 79 ++++--- services/cdn/v1betaapi/client.go | 6 +- services/cdn/v1betaapi/configuration.go | 4 +- services/cdn/v1betaapi/model_config.go | 10 +- services/cdn/v1betaapi/model_config_patch.go | 10 +- .../model_create_distribution_payload.go | 14 +- .../model_create_distribution_response.go | 4 +- services/cdn/v1betaapi/model_custom_domain.go | 4 +- .../model_delete_custom_domain_response.go | 4 +- .../model_delete_distribution_response.go | 4 +- services/cdn/v1betaapi/model_distribution.go | 6 +- .../model_distribution_logs_record.go | 4 +- .../model_distribution_statistics_record.go | 4 +- ...el_distribution_statistics_record_entry.go | 4 +- ..._distribution_statistics_record_regions.go | 6 +- .../cdn/v1betaapi/model_distribution_waf.go | 6 +- services/cdn/v1betaapi/model_domain.go | 4 +- services/cdn/v1betaapi/model_domain_status.go | 4 +- services/cdn/v1betaapi/model_error_details.go | 4 +- .../model_find_cache_paths_response.go | 4 +- .../model_find_cache_paths_response_entry.go | 4 +- .../v1betaapi/model_generic_json_response.go | 4 +- .../model_get_cache_info_response.go | 6 +- ...l_get_cache_info_response_history_entry.go | 4 +- ...el_get_custom_domain_custom_certificate.go | 4 +- ...l_get_custom_domain_managed_certificate.go | 4 +- .../model_get_custom_domain_response.go | 4 +- ..._get_custom_domain_response_certificate.go | 4 +- .../model_get_distribution_response.go | 4 +- .../cdn/v1betaapi/model_get_logs_response.go | 4 +- .../model_get_logs_search_filters_response.go | 4 +- .../model_get_statistics_response.go | 4 +- services/cdn/v1betaapi/model_http_backend.go | 6 +- .../cdn/v1betaapi/model_http_backend_patch.go | 6 +- .../model_list_distributions_response.go | 4 +- .../model_list_waf_collections_response.go | 4 +- services/cdn/v1betaapi/model_loki_log_sink.go | 4 +- services/cdn/v1betaapi/model_optimizer.go | 4 +- .../cdn/v1betaapi/model_optimizer_patch.go | 4 +- .../model_patch_distribution_payload.go | 6 +- .../model_patch_distribution_response.go | 4 +- .../v1betaapi/model_patch_loki_log_sink.go | 4 +- .../v1betaapi/model_purge_cache_payload.go | 6 +- ...el_put_custom_domain_custom_certificate.go | 4 +- ...l_put_custom_domain_managed_certificate.go | 4 +- .../model_put_custom_domain_payload.go | 6 +- ...l_put_custom_domain_payload_certificate.go | 4 +- .../model_put_custom_domain_response.go | 4 +- ..._put_custom_domain_response_certificate.go | 4 +- services/cdn/v1betaapi/model_region.go | 4 +- services/cdn/v1betaapi/model_status_error.go | 4 +- services/cdn/v1betaapi/model_waf_config.go | 6 +- .../cdn/v1betaapi/model_waf_config_patch.go | 4 +- services/cdn/v1betaapi/model_waf_mode.go | 4 +- .../cdn/v1betaapi/model_waf_paranoia_level.go | 6 +- services/cdn/v1betaapi/model_waf_rule.go | 4 +- .../cdn/v1betaapi/model_waf_rule_action.go | 4 +- .../v1betaapi/model_waf_rule_collection.go | 4 +- .../cdn/v1betaapi/model_waf_rule_group.go | 4 +- .../v1betaapi/model_waf_status_rule_block.go | 4 +- services/cdn/v1betaapi/model_waf_type.go | 6 +- services/cdn/v1betaapi/model_waf_violation.go | 4 +- services/cdn/v1betaapi/response.go | 4 +- services/cdn/v1betaapi/utils.go | 4 +- 131 files changed, 2115 insertions(+), 341 deletions(-) create mode 100644 services/cdn/model_tls_config.go create mode 100644 services/cdn/model_tls_config_patch.go create mode 100644 services/cdn/model_tls_config_patch_test.go create mode 100644 services/cdn/model_tls_config_test.go create mode 100644 services/cdn/v1api/model_tls_config.go create mode 100644 services/cdn/v1api/model_tls_config_patch.go diff --git a/services/cdn/api_default.go b/services/cdn/api_default.go index cc47dc80d..4bedce977 100644 --- a/services/cdn/api_default.go +++ b/services/cdn/api_default.go @@ -427,7 +427,7 @@ type ApiDeleteCustomDomainRequest interface { // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteDistributionRequest interface { - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead IntentId(intentId string) ApiDeleteDistributionRequest // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @@ -471,13 +471,13 @@ type ApiGetLogsRequest interface { // the start of the time range for which logs should be returned // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead From(from time.Time) ApiGetLogsRequest - // the end of the time range for which logs should be returned. If not specified, \"now\" is used. + // the end of the time range for which logs should be returned. If not specified, \"now\" is used. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead To(to time.Time) ApiGetLogsRequest - // Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) + // Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageSize(pageSize int32) ApiGetLogsRequest - // 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. + // 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. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageIdentifier(pageIdentifier string) ApiGetLogsRequest // Sorts the log messages by a specific field. Defaults to `timestamp`. Supported sort options: - `timestamp` - `dataCenterRegion` - `requestCountryCode` - `statusCode` - `cacheHit` - `size` - `path` - `host` @@ -485,7 +485,7 @@ type ApiGetLogsRequest interface { SortBy(sortBy string) ApiGetLogsRequest // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead SortOrder(sortOrder string) ApiGetLogsRequest - // If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked + // If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead WafAction(wafAction WAFRuleAction) ApiGetLogsRequest // Filters by the CDN data center region that served the request. Can be combined with other filters @@ -518,10 +518,10 @@ type ApiGetStatisticsRequest interface { // the start of the time range for which statistics should be returned // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead From(from time.Time) ApiGetStatisticsRequest - // the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. + // the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead To(to time.Time) ApiGetStatisticsRequest - // Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` + // Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Interval(interval string) ApiGetStatisticsRequest // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @@ -530,16 +530,16 @@ type ApiGetStatisticsRequest interface { // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListDistributionsRequest interface { - // Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) + // Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PageSize(pageSize int32) ApiListDistributionsRequest // If set, the top level of a distribution contains a `waf` property, which defines the status of the waf. This includes a list of all resolved rules. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead WithWafStatus(withWafStatus bool) 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. + // 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. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead 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 - `originUrlRelated` - The originUrl 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. + // 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 originUrl 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. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead SortBy(sortBy string) ApiListDistributionsRequest // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @@ -967,7 +967,7 @@ type DeleteDistributionRequest struct { intentId *string } -// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. +// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteDistributionRequest) IntentId(intentId string) ApiDeleteDistributionRequest { r.intentId = &intentId @@ -1908,21 +1908,21 @@ func (r GetLogsRequest) From(from time.Time) ApiGetLogsRequest { return r } -// the end of the time range for which logs should be returned. If not specified, \"now\" is used. +// the end of the time range for which logs should be returned. If not specified, \"now\" is used. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetLogsRequest) To(to time.Time) ApiGetLogsRequest { r.to = &to return r } -// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) +// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetLogsRequest) PageSize(pageSize int32) ApiGetLogsRequest { r.pageSize = &pageSize return r } -// 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. +// 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. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetLogsRequest) PageIdentifier(pageIdentifier string) ApiGetLogsRequest { r.pageIdentifier = &pageIdentifier @@ -1942,7 +1942,7 @@ func (r GetLogsRequest) SortOrder(sortOrder string) ApiGetLogsRequest { return r } -// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked +// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetLogsRequest) WafAction(wafAction WAFRuleAction) ApiGetLogsRequest { r.wafAction = &wafAction @@ -2380,14 +2380,14 @@ func (r GetStatisticsRequest) From(from time.Time) ApiGetStatisticsRequest { return r } -// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. +// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetStatisticsRequest) To(to time.Time) ApiGetStatisticsRequest { r.to = &to return r } -// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` +// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetStatisticsRequest) Interval(interval string) ApiGetStatisticsRequest { r.interval = &interval @@ -2578,7 +2578,7 @@ type ListDistributionsRequest struct { sortOrder *string } -// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) +// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListDistributionsRequest) PageSize(pageSize int32) ApiListDistributionsRequest { r.pageSize = &pageSize @@ -2592,14 +2592,14 @@ func (r ListDistributionsRequest) WithWafStatus(withWafStatus bool) ApiListDistr return r } -// 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. +// 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. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListDistributionsRequest) PageIdentifier(pageIdentifier string) ApiListDistributionsRequest { r.pageIdentifier = &pageIdentifier 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 - `originUrlRelated` - The originUrl 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. +// 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 originUrl 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. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead 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 3bcd684a0..092b0c80d 100644 --- a/services/cdn/model_config.go +++ b/services/cdn/model_config.go @@ -130,6 +130,33 @@ type ConfigGetDefaultCacheDurationArgType = *string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ConfigGetDefaultCacheDurationRetType = *string +/* + types and functions for forwardHostHeader +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfiggetForwardHostHeaderAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfiggetForwardHostHeaderArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfiggetForwardHostHeaderRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getConfiggetForwardHostHeaderAttributeTypeOk(arg ConfiggetForwardHostHeaderAttributeType) (ret ConfiggetForwardHostHeaderRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setConfiggetForwardHostHeaderAttributeType(arg *ConfiggetForwardHostHeaderAttributeType, val ConfiggetForwardHostHeaderRetType) { + *arg = &val +} + /* types and functions for logSink */ @@ -265,6 +292,60 @@ func setConfigGetRegionsAttributeType(arg *ConfigGetRegionsAttributeType, val Co *arg = &val } +/* + types and functions for stripResponseCookies +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfiggetStripResponseCookiesAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfiggetStripResponseCookiesArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfiggetStripResponseCookiesRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getConfiggetStripResponseCookiesAttributeTypeOk(arg ConfiggetStripResponseCookiesAttributeType) (ret ConfiggetStripResponseCookiesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setConfiggetStripResponseCookiesAttributeType(arg *ConfiggetStripResponseCookiesAttributeType, val ConfiggetStripResponseCookiesRetType) { + *arg = &val +} + +/* + types and functions for tls +*/ + +// isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigGetTlsAttributeType = *TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigGetTlsArgType = TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigGetTlsRetType = TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getConfigGetTlsAttributeTypeOk(arg ConfigGetTlsAttributeType) (ret ConfigGetTlsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setConfigGetTlsAttributeType(arg *ConfigGetTlsAttributeType, val ConfigGetTlsRetType) { + *arg = &val +} + /* types and functions for waf */ @@ -297,21 +378,29 @@ func setConfigGetWafAttributeType(arg *ConfigGetWafAttributeType, val ConfigGetW type Config struct { // REQUIRED 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. + // 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" 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. + // 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" 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) + // 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"` - LogSink ConfigGetLogSinkAttributeType `json:"logSink,omitempty"` + // Enabling this allows the 'Host' header to be passed through to the origin. + // REQUIRED + ForwardHostHeader ConfiggetForwardHostHeaderAttributeType `json:"forwardHostHeader" required:"true"` + LogSink ConfigGetLogSinkAttributeType `json:"logSink,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"` Redirects ConfigGetRedirectsAttributeType `json:"redirects,omitempty"` // REQUIRED Regions ConfigGetRegionsAttributeType `json:"regions" required:"true"` + // Enable this to prevent origin-level cookies from being forwarded to the end user. + // REQUIRED + StripResponseCookies ConfiggetStripResponseCookiesAttributeType `json:"stripResponseCookies" required:"true"` + // REQUIRED + Tls ConfigGetTlsAttributeType `json:"tls" required:"true"` // REQUIRED Waf ConfigGetWafAttributeType `json:"waf" required:"true"` } @@ -324,12 +413,15 @@ type _Config Config // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewConfig(backend ConfigGetBackendArgType, blockedCountries ConfigGetBlockedCountriesArgType, blockedIps ConfigGetBlockedIpsArgType, regions ConfigGetRegionsArgType, waf ConfigGetWafArgType) *Config { +func NewConfig(backend ConfigGetBackendArgType, blockedCountries ConfigGetBlockedCountriesArgType, blockedIps ConfigGetBlockedIpsArgType, forwardHostHeader ConfiggetForwardHostHeaderArgType, regions ConfigGetRegionsArgType, stripResponseCookies ConfiggetStripResponseCookiesArgType, tls ConfigGetTlsArgType, waf ConfigGetWafArgType) *Config { this := Config{} setConfigGetBackendAttributeType(&this.Backend, backend) setConfigGetBlockedCountriesAttributeType(&this.BlockedCountries, blockedCountries) setConfigGetBlockedIpsAttributeType(&this.BlockedIps, blockedIps) + setConfiggetForwardHostHeaderAttributeType(&this.ForwardHostHeader, forwardHostHeader) setConfigGetRegionsAttributeType(&this.Regions, regions) + setConfiggetStripResponseCookiesAttributeType(&this.StripResponseCookies, stripResponseCookies) + setConfigGetTlsAttributeType(&this.Tls, tls) setConfigGetWafAttributeType(&this.Waf, waf) return &this } @@ -443,6 +535,26 @@ func (o *Config) UnsetDefaultCacheDuration() { o.DefaultCacheDuration = nil } +// GetForwardHostHeader returns the ForwardHostHeader field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) GetForwardHostHeader() (ret ConfiggetForwardHostHeaderRetType) { + ret, _ = o.GetForwardHostHeaderOk() + return ret +} + +// GetForwardHostHeaderOk returns a tuple with the ForwardHostHeader field value +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) GetForwardHostHeaderOk() (ret ConfiggetForwardHostHeaderRetType, ok bool) { + return getConfiggetForwardHostHeaderAttributeTypeOk(o.ForwardHostHeader) +} + +// SetForwardHostHeader sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) SetForwardHostHeader(v ConfiggetForwardHostHeaderRetType) { + setConfiggetForwardHostHeaderAttributeType(&o.ForwardHostHeader, v) +} + // GetLogSink returns the LogSink field value if set, zero value otherwise. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Config) GetLogSink() (res ConfigGetLogSinkRetType) { @@ -584,6 +696,46 @@ func (o *Config) SetRegions(v ConfigGetRegionsRetType) { setConfigGetRegionsAttributeType(&o.Regions, v) } +// GetStripResponseCookies returns the StripResponseCookies field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) GetStripResponseCookies() (ret ConfiggetStripResponseCookiesRetType) { + ret, _ = o.GetStripResponseCookiesOk() + return ret +} + +// GetStripResponseCookiesOk returns a tuple with the StripResponseCookies field value +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) GetStripResponseCookiesOk() (ret ConfiggetStripResponseCookiesRetType, ok bool) { + return getConfiggetStripResponseCookiesAttributeTypeOk(o.StripResponseCookies) +} + +// SetStripResponseCookies sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) SetStripResponseCookies(v ConfiggetStripResponseCookiesRetType) { + setConfiggetStripResponseCookiesAttributeType(&o.StripResponseCookies, v) +} + +// GetTls returns the Tls field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) GetTls() (ret ConfigGetTlsRetType) { + ret, _ = o.GetTlsOk() + return ret +} + +// GetTlsOk returns a tuple with the Tls field value +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) GetTlsOk() (ret ConfigGetTlsRetType, ok bool) { + return getConfigGetTlsAttributeTypeOk(o.Tls) +} + +// SetTls sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *Config) SetTls(v ConfigGetTlsRetType) { + setConfigGetTlsAttributeType(&o.Tls, v) +} + // GetWaf returns the Waf field value // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Config) GetWaf() (ret ConfigGetWafRetType) { @@ -619,6 +771,9 @@ func (o Config) ToMap() (map[string]interface{}, error) { if val, ok := getConfigGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration); ok { toSerialize["DefaultCacheDuration"] = val } + if val, ok := getConfiggetForwardHostHeaderAttributeTypeOk(o.ForwardHostHeader); ok { + toSerialize["ForwardHostHeader"] = val + } if val, ok := getConfigGetLogSinkAttributeTypeOk(o.LogSink); ok { toSerialize["LogSink"] = val } @@ -634,6 +789,12 @@ func (o Config) ToMap() (map[string]interface{}, error) { if val, ok := getConfigGetRegionsAttributeTypeOk(o.Regions); ok { toSerialize["Regions"] = val } + if val, ok := getConfiggetStripResponseCookiesAttributeTypeOk(o.StripResponseCookies); ok { + toSerialize["StripResponseCookies"] = val + } + if val, ok := getConfigGetTlsAttributeTypeOk(o.Tls); ok { + toSerialize["Tls"] = val + } if val, ok := getConfigGetWafAttributeTypeOk(o.Waf); ok { toSerialize["Waf"] = val } diff --git a/services/cdn/model_config_patch.go b/services/cdn/model_config_patch.go index 91bf72457..3f4423846 100644 --- a/services/cdn/model_config_patch.go +++ b/services/cdn/model_config_patch.go @@ -130,6 +130,33 @@ type ConfigPatchGetDefaultCacheDurationArgType = *string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ConfigPatchGetDefaultCacheDurationRetType = *string +/* + types and functions for forwardHostHeader +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchgetForwardHostHeaderAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchgetForwardHostHeaderArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchgetForwardHostHeaderRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getConfigPatchgetForwardHostHeaderAttributeTypeOk(arg ConfigPatchgetForwardHostHeaderAttributeType) (ret ConfigPatchgetForwardHostHeaderRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setConfigPatchgetForwardHostHeaderAttributeType(arg *ConfigPatchgetForwardHostHeaderAttributeType, val ConfigPatchgetForwardHostHeaderRetType) { + *arg = &val +} + /* types and functions for logSink */ @@ -265,6 +292,60 @@ func setConfigPatchGetRegionsAttributeType(arg *ConfigPatchGetRegionsAttributeTy *arg = &val } +/* + types and functions for stripResponseCookies +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchgetStripResponseCookiesAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchgetStripResponseCookiesArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchgetStripResponseCookiesRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getConfigPatchgetStripResponseCookiesAttributeTypeOk(arg ConfigPatchgetStripResponseCookiesAttributeType) (ret ConfigPatchgetStripResponseCookiesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setConfigPatchgetStripResponseCookiesAttributeType(arg *ConfigPatchgetStripResponseCookiesAttributeType, val ConfigPatchgetStripResponseCookiesRetType) { + *arg = &val +} + +/* + types and functions for tls +*/ + +// isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchGetTlsAttributeType = *TlsConfigPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchGetTlsArgType = TlsConfigPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type ConfigPatchGetTlsRetType = TlsConfigPatch + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getConfigPatchGetTlsAttributeTypeOk(arg ConfigPatchGetTlsAttributeType) (ret ConfigPatchGetTlsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setConfigPatchGetTlsAttributeType(arg *ConfigPatchGetTlsAttributeType, val ConfigPatchGetTlsRetType) { + *arg = &val +} + /* types and functions for waf */ @@ -296,19 +377,24 @@ func setConfigPatchGetWafAttributeType(arg *ConfigPatchGetWafAttributeType, val // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ConfigPatch struct { Backend ConfigPatchGetBackendAttributeType `json:"backend,omitempty"` - // 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. + // 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. 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. + // 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) + // 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"` - LogSink ConfigPatchGetLogSinkAttributeType `json:"logSink,omitempty"` + // Enabling this allows the 'Host' header to be passed through to the origin. + ForwardHostHeader ConfigPatchgetForwardHostHeaderAttributeType `json:"forwardHostHeader,omitempty"` + LogSink ConfigPatchGetLogSinkAttributeType `json:"logSink,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"` Redirects ConfigPatchGetRedirectsAttributeType `json:"redirects,omitempty"` Regions ConfigPatchGetRegionsAttributeType `json:"regions,omitempty"` - Waf ConfigPatchGetWafAttributeType `json:"waf,omitempty"` + // Enable this to prevent origin-level cookies from being forwarded to the end user. + StripResponseCookies ConfigPatchgetStripResponseCookiesAttributeType `json:"stripResponseCookies,omitempty"` + Tls ConfigPatchGetTlsAttributeType `json:"tls,omitempty"` + Waf ConfigPatchGetWafAttributeType `json:"waf,omitempty"` } // NewConfigPatch instantiates a new ConfigPatch object @@ -451,6 +537,33 @@ func (o *ConfigPatch) UnsetDefaultCacheDuration() { o.DefaultCacheDuration = nil } +// GetForwardHostHeader returns the ForwardHostHeader field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) GetForwardHostHeader() (res ConfigPatchgetForwardHostHeaderRetType) { + res, _ = o.GetForwardHostHeaderOk() + return +} + +// GetForwardHostHeaderOk returns a tuple with the ForwardHostHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) GetForwardHostHeaderOk() (ret ConfigPatchgetForwardHostHeaderRetType, ok bool) { + return getConfigPatchgetForwardHostHeaderAttributeTypeOk(o.ForwardHostHeader) +} + +// HasForwardHostHeader returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) HasForwardHostHeader() bool { + _, ok := o.GetForwardHostHeaderOk() + return ok +} + +// SetForwardHostHeader gets a reference to the given bool and assigns it to the ForwardHostHeader field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) SetForwardHostHeader(v ConfigPatchgetForwardHostHeaderRetType) { + setConfigPatchgetForwardHostHeaderAttributeType(&o.ForwardHostHeader, v) +} + // GetLogSink returns the LogSink field value if set, zero value otherwise (both if not set or set to explicit null). // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ConfigPatch) GetLogSink() (res ConfigPatchGetLogSinkRetType) { @@ -612,6 +725,60 @@ func (o *ConfigPatch) SetRegions(v ConfigPatchGetRegionsRetType) { setConfigPatchGetRegionsAttributeType(&o.Regions, v) } +// GetStripResponseCookies returns the StripResponseCookies field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) GetStripResponseCookies() (res ConfigPatchgetStripResponseCookiesRetType) { + res, _ = o.GetStripResponseCookiesOk() + return +} + +// GetStripResponseCookiesOk returns a tuple with the StripResponseCookies field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) GetStripResponseCookiesOk() (ret ConfigPatchgetStripResponseCookiesRetType, ok bool) { + return getConfigPatchgetStripResponseCookiesAttributeTypeOk(o.StripResponseCookies) +} + +// HasStripResponseCookies returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) HasStripResponseCookies() bool { + _, ok := o.GetStripResponseCookiesOk() + return ok +} + +// SetStripResponseCookies gets a reference to the given bool and assigns it to the StripResponseCookies field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) SetStripResponseCookies(v ConfigPatchgetStripResponseCookiesRetType) { + setConfigPatchgetStripResponseCookiesAttributeType(&o.StripResponseCookies, v) +} + +// GetTls returns the Tls field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) GetTls() (res ConfigPatchGetTlsRetType) { + res, _ = o.GetTlsOk() + return +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) GetTlsOk() (ret ConfigPatchGetTlsRetType, ok bool) { + return getConfigPatchGetTlsAttributeTypeOk(o.Tls) +} + +// HasTls returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) HasTls() bool { + _, ok := o.GetTlsOk() + return ok +} + +// SetTls gets a reference to the given TlsConfigPatch and assigns it to the Tls field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *ConfigPatch) SetTls(v ConfigPatchGetTlsRetType) { + setConfigPatchGetTlsAttributeType(&o.Tls, v) +} + // GetWaf returns the Waf field value if set, zero value otherwise. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ConfigPatch) GetWaf() (res ConfigPatchGetWafRetType) { @@ -654,6 +821,9 @@ func (o ConfigPatch) ToMap() (map[string]interface{}, error) { if val, ok := getConfigPatchGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration); ok { toSerialize["DefaultCacheDuration"] = val } + if val, ok := getConfigPatchgetForwardHostHeaderAttributeTypeOk(o.ForwardHostHeader); ok { + toSerialize["ForwardHostHeader"] = val + } if val, ok := getConfigPatchGetLogSinkAttributeTypeOk(o.LogSink); ok { toSerialize["LogSink"] = val } @@ -669,6 +839,12 @@ func (o ConfigPatch) ToMap() (map[string]interface{}, error) { if val, ok := getConfigPatchGetRegionsAttributeTypeOk(o.Regions); ok { toSerialize["Regions"] = val } + if val, ok := getConfigPatchgetStripResponseCookiesAttributeTypeOk(o.StripResponseCookies); ok { + toSerialize["StripResponseCookies"] = val + } + if val, ok := getConfigPatchGetTlsAttributeTypeOk(o.Tls); ok { + toSerialize["Tls"] = val + } if val, ok := getConfigPatchGetWafAttributeTypeOk(o.Waf); ok { toSerialize["Waf"] = val } diff --git a/services/cdn/model_create_distribution_payload.go b/services/cdn/model_create_distribution_payload.go index 9b951a234..915163a48 100644 --- a/services/cdn/model_create_distribution_payload.go +++ b/services/cdn/model_create_distribution_payload.go @@ -126,6 +126,33 @@ type CreateDistributionPayloadGetDefaultCacheDurationArgType = string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateDistributionPayloadGetDefaultCacheDurationRetType = string +/* + types and functions for forwardHostHeader +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadgetForwardHostHeaderAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadgetForwardHostHeaderArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadgetForwardHostHeaderRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getCreateDistributionPayloadgetForwardHostHeaderAttributeTypeOk(arg CreateDistributionPayloadgetForwardHostHeaderAttributeType) (ret CreateDistributionPayloadgetForwardHostHeaderRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setCreateDistributionPayloadgetForwardHostHeaderAttributeType(arg *CreateDistributionPayloadgetForwardHostHeaderAttributeType, val CreateDistributionPayloadgetForwardHostHeaderRetType) { + *arg = &val +} + /* types and functions for intentId */ @@ -288,6 +315,60 @@ func setCreateDistributionPayloadGetRegionsAttributeType(arg *CreateDistribution *arg = &val } +/* + types and functions for stripResponseCookies +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadgetStripResponseCookiesAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadgetStripResponseCookiesArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadgetStripResponseCookiesRetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getCreateDistributionPayloadgetStripResponseCookiesAttributeTypeOk(arg CreateDistributionPayloadgetStripResponseCookiesAttributeType) (ret CreateDistributionPayloadgetStripResponseCookiesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setCreateDistributionPayloadgetStripResponseCookiesAttributeType(arg *CreateDistributionPayloadgetStripResponseCookiesAttributeType, val CreateDistributionPayloadgetStripResponseCookiesRetType) { + *arg = &val +} + +/* + types and functions for tls +*/ + +// isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadGetTlsAttributeType = *TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadGetTlsArgType = TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type CreateDistributionPayloadGetTlsRetType = TlsConfig + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getCreateDistributionPayloadGetTlsAttributeTypeOk(arg CreateDistributionPayloadGetTlsAttributeType) (ret CreateDistributionPayloadGetTlsRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setCreateDistributionPayloadGetTlsAttributeType(arg *CreateDistributionPayloadGetTlsAttributeType, val CreateDistributionPayloadGetTlsRetType) { + *arg = &val +} + /* types and functions for waf */ @@ -320,13 +401,15 @@ func setCreateDistributionPayloadGetWafAttributeType(arg *CreateDistributionPayl type CreateDistributionPayload struct { // REQUIRED Backend CreateDistributionPayloadGetBackendAttributeType `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. + // 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. 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. + // 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) + // 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. + // Enabling this allows the 'Host' header to be passed through to the origin. + ForwardHostHeader CreateDistributionPayloadgetForwardHostHeaderAttributeType `json:"forwardHostHeader,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"` LogSink CreateDistributionPayloadGetLogSinkAttributeType `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. @@ -336,7 +419,10 @@ type CreateDistributionPayload struct { // Define in which regions you would like your content to be cached. // REQUIRED Regions CreateDistributionPayloadGetRegionsAttributeType `json:"regions" required:"true"` - Waf CreateDistributionPayloadGetWafAttributeType `json:"waf,omitempty"` + // Enable this to prevent origin-level cookies from being forwarded to the end user. + StripResponseCookies CreateDistributionPayloadgetStripResponseCookiesAttributeType `json:"stripResponseCookies,omitempty"` + Tls CreateDistributionPayloadGetTlsAttributeType `json:"tls,omitempty"` + Waf CreateDistributionPayloadGetWafAttributeType `json:"waf,omitempty"` } // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @@ -464,6 +550,33 @@ func (o *CreateDistributionPayload) SetDefaultCacheDuration(v CreateDistribution setCreateDistributionPayloadGetDefaultCacheDurationAttributeType(&o.DefaultCacheDuration, v) } +// GetForwardHostHeader returns the ForwardHostHeader field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) GetForwardHostHeader() (res CreateDistributionPayloadgetForwardHostHeaderRetType) { + res, _ = o.GetForwardHostHeaderOk() + return +} + +// GetForwardHostHeaderOk returns a tuple with the ForwardHostHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) GetForwardHostHeaderOk() (ret CreateDistributionPayloadgetForwardHostHeaderRetType, ok bool) { + return getCreateDistributionPayloadgetForwardHostHeaderAttributeTypeOk(o.ForwardHostHeader) +} + +// HasForwardHostHeader returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) HasForwardHostHeader() bool { + _, ok := o.GetForwardHostHeaderOk() + return ok +} + +// SetForwardHostHeader gets a reference to the given bool and assigns it to the ForwardHostHeader field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) SetForwardHostHeader(v CreateDistributionPayloadgetForwardHostHeaderRetType) { + setCreateDistributionPayloadgetForwardHostHeaderAttributeType(&o.ForwardHostHeader, v) +} + // GetIntentId returns the IntentId field value if set, zero value otherwise. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateDistributionPayload) GetIntentId() (res CreateDistributionPayloadGetIntentIdRetType) { @@ -619,6 +732,60 @@ func (o *CreateDistributionPayload) SetRegions(v CreateDistributionPayloadGetReg setCreateDistributionPayloadGetRegionsAttributeType(&o.Regions, v) } +// GetStripResponseCookies returns the StripResponseCookies field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) GetStripResponseCookies() (res CreateDistributionPayloadgetStripResponseCookiesRetType) { + res, _ = o.GetStripResponseCookiesOk() + return +} + +// GetStripResponseCookiesOk returns a tuple with the StripResponseCookies field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) GetStripResponseCookiesOk() (ret CreateDistributionPayloadgetStripResponseCookiesRetType, ok bool) { + return getCreateDistributionPayloadgetStripResponseCookiesAttributeTypeOk(o.StripResponseCookies) +} + +// HasStripResponseCookies returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) HasStripResponseCookies() bool { + _, ok := o.GetStripResponseCookiesOk() + return ok +} + +// SetStripResponseCookies gets a reference to the given bool and assigns it to the StripResponseCookies field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) SetStripResponseCookies(v CreateDistributionPayloadgetStripResponseCookiesRetType) { + setCreateDistributionPayloadgetStripResponseCookiesAttributeType(&o.StripResponseCookies, v) +} + +// GetTls returns the Tls field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) GetTls() (res CreateDistributionPayloadGetTlsRetType) { + res, _ = o.GetTlsOk() + return +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) GetTlsOk() (ret CreateDistributionPayloadGetTlsRetType, ok bool) { + return getCreateDistributionPayloadGetTlsAttributeTypeOk(o.Tls) +} + +// HasTls returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) HasTls() bool { + _, ok := o.GetTlsOk() + return ok +} + +// SetTls gets a reference to the given TlsConfig and assigns it to the Tls field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *CreateDistributionPayload) SetTls(v CreateDistributionPayloadGetTlsRetType) { + setCreateDistributionPayloadGetTlsAttributeType(&o.Tls, v) +} + // GetWaf returns the Waf field value if set, zero value otherwise. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateDistributionPayload) GetWaf() (res CreateDistributionPayloadGetWafRetType) { @@ -661,6 +828,9 @@ func (o CreateDistributionPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateDistributionPayloadGetDefaultCacheDurationAttributeTypeOk(o.DefaultCacheDuration); ok { toSerialize["DefaultCacheDuration"] = val } + if val, ok := getCreateDistributionPayloadgetForwardHostHeaderAttributeTypeOk(o.ForwardHostHeader); ok { + toSerialize["ForwardHostHeader"] = val + } if val, ok := getCreateDistributionPayloadGetIntentIdAttributeTypeOk(o.IntentId); ok { toSerialize["IntentId"] = val } @@ -679,6 +849,12 @@ func (o CreateDistributionPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateDistributionPayloadGetRegionsAttributeTypeOk(o.Regions); ok { toSerialize["Regions"] = val } + if val, ok := getCreateDistributionPayloadgetStripResponseCookiesAttributeTypeOk(o.StripResponseCookies); ok { + toSerialize["StripResponseCookies"] = val + } + if val, ok := getCreateDistributionPayloadGetTlsAttributeTypeOk(o.Tls); ok { + toSerialize["Tls"] = val + } if val, ok := getCreateDistributionPayloadGetWafAttributeTypeOk(o.Waf); ok { toSerialize["Waf"] = val } diff --git a/services/cdn/model_distribution.go b/services/cdn/model_distribution.go index 202770c42..7f0b9f528 100644 --- a/services/cdn/model_distribution.go +++ b/services/cdn/model_distribution.go @@ -188,7 +188,7 @@ type DistributionGetProjectIdRetType = string // isEnum -// DistributionStatus - `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. +// DistributionStatus - `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. // value type for enums // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DistributionStatus string @@ -408,7 +408,7 @@ type Distribution struct { Id DistributionGetIdAttributeType `json:"id" required:"true"` // REQUIRED 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. + // - `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" required:"true"` // RFC3339 string which returns the last time the distribution configuration was modified. diff --git a/services/cdn/model_distribution_statistics_record_regions.go b/services/cdn/model_distribution_statistics_record_regions.go index d97b0bc56..a270adb66 100644 --- a/services/cdn/model_distribution_statistics_record_regions.go +++ b/services/cdn/model_distribution_statistics_record_regions.go @@ -153,7 +153,7 @@ func setDistributionStatisticsRecordRegionsGetUSAttributeType(arg *DistributionS *arg = &val } -// 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 +// 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 // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DistributionStatisticsRecordRegions struct { // REQUIRED diff --git a/services/cdn/model_distribution_waf.go b/services/cdn/model_distribution_waf.go index 731dd35df..0f279d5e1 100644 --- a/services/cdn/model_distribution_waf.go +++ b/services/cdn/model_distribution_waf.go @@ -99,7 +99,7 @@ func setDistributionWafGetLogOnlyRulesAttributeType(arg *DistributionWafGetLogOn *arg = &val } -// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** +// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DistributionWaf struct { // REQUIRED diff --git a/services/cdn/model_get_cache_info_response.go b/services/cdn/model_get_cache_info_response.go index ad0e1c7f7..22440b81a 100644 --- a/services/cdn/model_get_cache_info_response.go +++ b/services/cdn/model_get_cache_info_response.go @@ -78,7 +78,7 @@ func setGetCacheInfoResponseGetLastPurgeTimeAttributeType(arg *GetCacheInfoRespo type GetCacheInfoResponse struct { // REQUIRED 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` + // 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" required:"true"` } diff --git a/services/cdn/model_get_logs_search_filters_response.go b/services/cdn/model_get_logs_search_filters_response.go index 49d7b59a3..0d2857554 100644 --- a/services/cdn/model_get_logs_search_filters_response.go +++ b/services/cdn/model_get_logs_search_filters_response.go @@ -133,7 +133,7 @@ type GetLogsSearchFiltersResponse struct { Cache GetLogsSearchFiltersResponseGetCacheAttributeType `json:"cache" required:"true"` // REQUIRED DataCenter GetLogsSearchFiltersResponseGetDataCenterAttributeType `json:"dataCenter" required:"true"` - // List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 + // List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 // REQUIRED RemoteCountry GetLogsSearchFiltersResponseGetRemoteCountryAttributeType `json:"remoteCountry" required:"true"` // List of Status Codes matching the input filter. Response is ordered in ascending order. diff --git a/services/cdn/model_http_backend.go b/services/cdn/model_http_backend.go index 3a6d51529..8719af723 100644 --- a/services/cdn/model_http_backend.go +++ b/services/cdn/model_http_backend.go @@ -132,10 +132,10 @@ type HttpBackend struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. // REQUIRED Geofencing HttpBackendGetGeofencingAttributeType `json:"geofencing" required:"true"` - // 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. + // 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" required:"true"` - // 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` + // 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 HttpBackendGetOriginUrlAttributeType `json:"originUrl" required:"true"` // REQUIRED diff --git a/services/cdn/model_http_backend_create.go b/services/cdn/model_http_backend_create.go index 63c7b83e2..e4fb86b2e 100644 --- a/services/cdn/model_http_backend_create.go +++ b/services/cdn/model_http_backend_create.go @@ -131,9 +131,9 @@ type HttpBackendCreateGetTypeRetType = string type HttpBackendCreate struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing HttpBackendCreateGetGeofencingAttributeType `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders HttpBackendCreateGetOriginRequestHeadersAttributeType `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` + // 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 HttpBackendCreateGetOriginUrlAttributeType `json:"originUrl" required:"true"` // REQUIRED diff --git a/services/cdn/model_http_backend_patch.go b/services/cdn/model_http_backend_patch.go index 4fde8c6be..279c31ac9 100644 --- a/services/cdn/model_http_backend_patch.go +++ b/services/cdn/model_http_backend_patch.go @@ -131,7 +131,7 @@ type HttpBackendPatchGetTypeRetType = string type HttpBackendPatch struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing HttpBackendPatchGetGeofencingAttributeType `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders HttpBackendPatchGetOriginRequestHeadersAttributeType `json:"originRequestHeaders,omitempty"` OriginUrl HttpBackendPatchGetOriginUrlAttributeType `json:"originUrl,omitempty"` // This property is required to determine the used backend type. diff --git a/services/cdn/model_patch_distribution_payload.go b/services/cdn/model_patch_distribution_payload.go index 984b9c9ea..c3f641045 100644 --- a/services/cdn/model_patch_distribution_payload.go +++ b/services/cdn/model_patch_distribution_payload.go @@ -76,7 +76,7 @@ type PatchDistributionPayloadGetIntentIdRetType = string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PatchDistributionPayload struct { Config PatchDistributionPayloadGetConfigAttributeType `json:"config,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId PatchDistributionPayloadGetIntentIdAttributeType `json:"intentId,omitempty"` } diff --git a/services/cdn/model_purge_cache_payload.go b/services/cdn/model_purge_cache_payload.go index ecca505e8..ba9f4aeb2 100644 --- a/services/cdn/model_purge_cache_payload.go +++ b/services/cdn/model_purge_cache_payload.go @@ -48,7 +48,7 @@ type PurgeCachePayloadGetPathRetType = string // PurgeCachePayload struct for PurgeCachePayload // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PurgeCachePayload struct { - // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. + // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. Path PurgeCachePayloadGetPathAttributeType `json:"path,omitempty"` } diff --git a/services/cdn/model_put_custom_domain_custom_certificate.go b/services/cdn/model_put_custom_domain_custom_certificate.go index 65a2119e9..ea5dc1ee5 100644 --- a/services/cdn/model_put_custom_domain_custom_certificate.go +++ b/services/cdn/model_put_custom_domain_custom_certificate.go @@ -135,7 +135,7 @@ type PutCustomDomainCustomCertificate struct { // base64-encoded PEM encoded key // REQUIRED Key PutCustomDomainCustomCertificateGetKeyAttributeType `json:"key" required:"true"` - // When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. + // When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. SkipDnsCheck PutCustomDomainCustomCertificategetSkipDnsCheckAttributeType `json:"skipDnsCheck,omitempty"` // REQUIRED Type PutCustomDomainCustomCertificateGetTypeAttributeType `json:"type" required:"true"` diff --git a/services/cdn/model_put_custom_domain_payload.go b/services/cdn/model_put_custom_domain_payload.go index 965a22415..61a7c1920 100644 --- a/services/cdn/model_put_custom_domain_payload.go +++ b/services/cdn/model_put_custom_domain_payload.go @@ -76,7 +76,7 @@ type PutCustomDomainPayloadGetIntentIdRetType = string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PutCustomDomainPayload struct { Certificate PutCustomDomainPayloadGetCertificateAttributeType `json:"certificate,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId PutCustomDomainPayloadGetIntentIdAttributeType `json:"intentId,omitempty"` } diff --git a/services/cdn/model_tls_config.go b/services/cdn/model_tls_config.go new file mode 100644 index 000000000..0e2d7268e --- /dev/null +++ b/services/cdn/model_tls_config.go @@ -0,0 +1,204 @@ +/* +STACKIT CDN API + +API used to create and manage your CDN distributions. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package cdn + +import ( + "encoding/json" +) + +// checks if the TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TlsConfig{} + +/* + types and functions for enableTls10 +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfiggetEnableTls10AttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfiggetEnableTls10ArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfiggetEnableTls10RetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getTlsConfiggetEnableTls10AttributeTypeOk(arg TlsConfiggetEnableTls10AttributeType) (ret TlsConfiggetEnableTls10RetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setTlsConfiggetEnableTls10AttributeType(arg *TlsConfiggetEnableTls10AttributeType, val TlsConfiggetEnableTls10RetType) { + *arg = &val +} + +/* + types and functions for enableTls11 +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfiggetEnableTls11AttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfiggetEnableTls11ArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfiggetEnableTls11RetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getTlsConfiggetEnableTls11AttributeTypeOk(arg TlsConfiggetEnableTls11AttributeType) (ret TlsConfiggetEnableTls11RetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setTlsConfiggetEnableTls11AttributeType(arg *TlsConfiggetEnableTls11AttributeType, val TlsConfiggetEnableTls11RetType) { + *arg = &val +} + +// TlsConfig Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfig struct { + // If set to true, the distribution will accept connections using TLS 1.0. + // REQUIRED + EnableTls10 TlsConfiggetEnableTls10AttributeType `json:"enableTls10" required:"true"` + // If set to true, the distribution will accept connections using TLS 1.1. + // REQUIRED + EnableTls11 TlsConfiggetEnableTls11AttributeType `json:"enableTls11" required:"true"` +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type _TlsConfig TlsConfig + +// NewTlsConfig instantiates a new TlsConfig 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewTlsConfig(enableTls10 TlsConfiggetEnableTls10ArgType, enableTls11 TlsConfiggetEnableTls11ArgType) *TlsConfig { + this := TlsConfig{} + setTlsConfiggetEnableTls10AttributeType(&this.EnableTls10, enableTls10) + setTlsConfiggetEnableTls11AttributeType(&this.EnableTls11, enableTls11) + return &this +} + +// NewTlsConfigWithDefaults instantiates a new TlsConfig 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewTlsConfigWithDefaults() *TlsConfig { + this := TlsConfig{} + return &this +} + +// GetEnableTls10 returns the EnableTls10 field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfig) GetEnableTls10() (ret TlsConfiggetEnableTls10RetType) { + ret, _ = o.GetEnableTls10Ok() + return ret +} + +// GetEnableTls10Ok returns a tuple with the EnableTls10 field value +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfig) GetEnableTls10Ok() (ret TlsConfiggetEnableTls10RetType, ok bool) { + return getTlsConfiggetEnableTls10AttributeTypeOk(o.EnableTls10) +} + +// SetEnableTls10 sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfig) SetEnableTls10(v TlsConfiggetEnableTls10RetType) { + setTlsConfiggetEnableTls10AttributeType(&o.EnableTls10, v) +} + +// GetEnableTls11 returns the EnableTls11 field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfig) GetEnableTls11() (ret TlsConfiggetEnableTls11RetType) { + ret, _ = o.GetEnableTls11Ok() + return ret +} + +// GetEnableTls11Ok returns a tuple with the EnableTls11 field value +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfig) GetEnableTls11Ok() (ret TlsConfiggetEnableTls11RetType, ok bool) { + return getTlsConfiggetEnableTls11AttributeTypeOk(o.EnableTls11) +} + +// SetEnableTls11 sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfig) SetEnableTls11(v TlsConfiggetEnableTls11RetType) { + setTlsConfiggetEnableTls11AttributeType(&o.EnableTls11, v) +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getTlsConfiggetEnableTls10AttributeTypeOk(o.EnableTls10); ok { + toSerialize["EnableTls10"] = val + } + if val, ok := getTlsConfiggetEnableTls11AttributeTypeOk(o.EnableTls11); ok { + toSerialize["EnableTls11"] = val + } + return toSerialize, nil +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type NullableTlsConfig struct { + value *TlsConfig + isSet bool +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableTlsConfig) Get() *TlsConfig { + return v.value +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableTlsConfig) Set(val *TlsConfig) { + v.value = val + v.isSet = true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableTlsConfig) IsSet() bool { + return v.isSet +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewNullableTlsConfig(val *TlsConfig) *NullableTlsConfig { + return &NullableTlsConfig{value: val, isSet: true} +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/cdn/model_tls_config_patch.go b/services/cdn/model_tls_config_patch.go new file mode 100644 index 000000000..97ace59df --- /dev/null +++ b/services/cdn/model_tls_config_patch.go @@ -0,0 +1,211 @@ +/* +STACKIT CDN API + +API used to create and manage your CDN distributions. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package cdn + +import ( + "encoding/json" +) + +// checks if the TlsConfigPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TlsConfigPatch{} + +/* + types and functions for enableTls10 +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatchgetEnableTls10AttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatchgetEnableTls10ArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatchgetEnableTls10RetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getTlsConfigPatchgetEnableTls10AttributeTypeOk(arg TlsConfigPatchgetEnableTls10AttributeType) (ret TlsConfigPatchgetEnableTls10RetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setTlsConfigPatchgetEnableTls10AttributeType(arg *TlsConfigPatchgetEnableTls10AttributeType, val TlsConfigPatchgetEnableTls10RetType) { + *arg = &val +} + +/* + types and functions for enableTls11 +*/ + +// isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatchgetEnableTls11AttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatchgetEnableTls11ArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatchgetEnableTls11RetType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getTlsConfigPatchgetEnableTls11AttributeTypeOk(arg TlsConfigPatchgetEnableTls11AttributeType) (ret TlsConfigPatchgetEnableTls11RetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setTlsConfigPatchgetEnableTls11AttributeType(arg *TlsConfigPatchgetEnableTls11AttributeType, val TlsConfigPatchgetEnableTls11RetType) { + *arg = &val +} + +// TlsConfigPatch Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type TlsConfigPatch struct { + // If set to true, the distribution will accept connections using TLS 1.0. + EnableTls10 TlsConfigPatchgetEnableTls10AttributeType `json:"enableTls10,omitempty"` + // If set to true, the distribution will accept connections using TLS 1.1. + EnableTls11 TlsConfigPatchgetEnableTls11AttributeType `json:"enableTls11,omitempty"` +} + +// NewTlsConfigPatch instantiates a new TlsConfigPatch 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewTlsConfigPatch() *TlsConfigPatch { + this := TlsConfigPatch{} + return &this +} + +// NewTlsConfigPatchWithDefaults instantiates a new TlsConfigPatch 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewTlsConfigPatchWithDefaults() *TlsConfigPatch { + this := TlsConfigPatch{} + return &this +} + +// GetEnableTls10 returns the EnableTls10 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) GetEnableTls10() (res TlsConfigPatchgetEnableTls10RetType) { + res, _ = o.GetEnableTls10Ok() + return +} + +// GetEnableTls10Ok returns a tuple with the EnableTls10 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) GetEnableTls10Ok() (ret TlsConfigPatchgetEnableTls10RetType, ok bool) { + return getTlsConfigPatchgetEnableTls10AttributeTypeOk(o.EnableTls10) +} + +// HasEnableTls10 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) HasEnableTls10() bool { + _, ok := o.GetEnableTls10Ok() + return ok +} + +// SetEnableTls10 gets a reference to the given bool and assigns it to the EnableTls10 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) SetEnableTls10(v TlsConfigPatchgetEnableTls10RetType) { + setTlsConfigPatchgetEnableTls10AttributeType(&o.EnableTls10, v) +} + +// GetEnableTls11 returns the EnableTls11 field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) GetEnableTls11() (res TlsConfigPatchgetEnableTls11RetType) { + res, _ = o.GetEnableTls11Ok() + return +} + +// GetEnableTls11Ok returns a tuple with the EnableTls11 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) GetEnableTls11Ok() (ret TlsConfigPatchgetEnableTls11RetType, ok bool) { + return getTlsConfigPatchgetEnableTls11AttributeTypeOk(o.EnableTls11) +} + +// HasEnableTls11 returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) HasEnableTls11() bool { + _, ok := o.GetEnableTls11Ok() + return ok +} + +// SetEnableTls11 gets a reference to the given bool and assigns it to the EnableTls11 field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *TlsConfigPatch) SetEnableTls11(v TlsConfigPatchgetEnableTls11RetType) { + setTlsConfigPatchgetEnableTls11AttributeType(&o.EnableTls11, v) +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o TlsConfigPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getTlsConfigPatchgetEnableTls10AttributeTypeOk(o.EnableTls10); ok { + toSerialize["EnableTls10"] = val + } + if val, ok := getTlsConfigPatchgetEnableTls11AttributeTypeOk(o.EnableTls11); ok { + toSerialize["EnableTls11"] = val + } + return toSerialize, nil +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type NullableTlsConfigPatch struct { + value *TlsConfigPatch + isSet bool +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableTlsConfigPatch) Get() *TlsConfigPatch { + return v.value +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableTlsConfigPatch) Set(val *TlsConfigPatch) { + v.value = val + v.isSet = true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableTlsConfigPatch) IsSet() bool { + return v.isSet +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableTlsConfigPatch) Unset() { + v.value = nil + v.isSet = false +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewNullableTlsConfigPatch(val *TlsConfigPatch) *NullableTlsConfigPatch { + return &NullableTlsConfigPatch{value: val, isSet: true} +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableTlsConfigPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableTlsConfigPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/cdn/model_tls_config_patch_test.go b/services/cdn/model_tls_config_patch_test.go new file mode 100644 index 000000000..424823139 --- /dev/null +++ b/services/cdn/model_tls_config_patch_test.go @@ -0,0 +1,11 @@ +/* +STACKIT CDN API + +API used to create and manage your CDN distributions. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cdn diff --git a/services/cdn/model_tls_config_test.go b/services/cdn/model_tls_config_test.go new file mode 100644 index 000000000..424823139 --- /dev/null +++ b/services/cdn/model_tls_config_test.go @@ -0,0 +1,11 @@ +/* +STACKIT CDN API + +API used to create and manage your CDN distributions. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cdn diff --git a/services/cdn/model_waf_config.go b/services/cdn/model_waf_config.go index a6de725fe..cf5adf5fb 100644 --- a/services/cdn/model_waf_config.go +++ b/services/cdn/model_waf_config.go @@ -423,7 +423,7 @@ func setWafConfigGetTypeAttributeType(arg *WafConfigGetTypeAttributeType, val Wa *arg = &val } -// WafConfig Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. +// WafConfig Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WafConfig struct { // This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards @@ -441,7 +441,7 @@ type WafConfig struct { EnabledRuleCollectionIds WafConfigGetEnabledRuleCollectionIdsAttributeType `json:"enabledRuleCollectionIds,omitempty"` // Ids of WAF Rule Groups to mark as enabled EnabledRuleGroupIds WafConfigGetEnabledRuleGroupIdsAttributeType `json:"enabledRuleGroupIds,omitempty"` - // Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. + // Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. // REQUIRED EnabledRuleIds WafConfigGetEnabledRuleIdsAttributeType `json:"enabledRuleIds" required:"true"` // Ids of WAF Collections to mark as log Only. diff --git a/services/cdn/model_waf_paranoia_level.go b/services/cdn/model_waf_paranoia_level.go index 519f70e5e..50d77c676 100644 --- a/services/cdn/model_waf_paranoia_level.go +++ b/services/cdn/model_waf_paranoia_level.go @@ -16,7 +16,7 @@ import ( "fmt" ) -// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. +// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WafParanoiaLevel string diff --git a/services/cdn/model_waf_status_rule_block_reason_never_defined.go b/services/cdn/model_waf_status_rule_block_reason_never_defined.go index 8dd08ce31..a951b7234 100644 --- a/services/cdn/model_waf_status_rule_block_reason_never_defined.go +++ b/services/cdn/model_waf_status_rule_block_reason_never_defined.go @@ -45,7 +45,7 @@ type WafStatusRuleBlockReasonNeverDefinedGetTypeArgType = string // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WafStatusRuleBlockReasonNeverDefinedGetTypeRetType = string -// WafStatusRuleBlockReasonNeverDefined This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled +// WafStatusRuleBlockReasonNeverDefined This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WafStatusRuleBlockReasonNeverDefined struct { // This is always `neverDefined` diff --git a/services/cdn/model_waf_type.go b/services/cdn/model_waf_type.go index 347871ac1..9c52aa0b6 100644 --- a/services/cdn/model_waf_type.go +++ b/services/cdn/model_waf_type.go @@ -16,7 +16,7 @@ import ( "fmt" ) -// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) +// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type WafType string diff --git a/services/cdn/oas_commit b/services/cdn/oas_commit index 6ffe07488..4b79dc0b4 100644 --- a/services/cdn/oas_commit +++ b/services/cdn/oas_commit @@ -1 +1 @@ -f133408fd6686f12ba34f400ba631124b063f5cc +bda6ad3d9e8850526f25eddcb6589fcc7559c625 diff --git a/services/cdn/v1api/api_default.go b/services/cdn/v1api/api_default.go index c63716d83..c7b30094b 100644 --- a/services/cdn/v1api/api_default.go +++ b/services/cdn/v1api/api_default.go @@ -672,7 +672,7 @@ type ApiDeleteDistributionRequest struct { intentId *string } -// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. +// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. func (r ApiDeleteDistributionRequest) IntentId(intentId string) ApiDeleteDistributionRequest { r.intentId = &intentId return r @@ -1599,19 +1599,19 @@ func (r ApiGetLogsRequest) From(from time.Time) ApiGetLogsRequest { return r } -// the end of the time range for which logs should be returned. If not specified, \"now\" is used. +// the end of the time range for which logs should be returned. If not specified, \"now\" is used. func (r ApiGetLogsRequest) To(to time.Time) ApiGetLogsRequest { r.to = &to return r } -// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) +// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) func (r ApiGetLogsRequest) PageSize(pageSize int32) ApiGetLogsRequest { r.pageSize = &pageSize return r } -// 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. +// 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. func (r ApiGetLogsRequest) PageIdentifier(pageIdentifier string) ApiGetLogsRequest { r.pageIdentifier = &pageIdentifier return r @@ -1628,7 +1628,7 @@ func (r ApiGetLogsRequest) SortOrder(sortOrder string) ApiGetLogsRequest { return r } -// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked +// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked func (r ApiGetLogsRequest) WafAction(wafAction WAFRuleAction) ApiGetLogsRequest { r.wafAction = &wafAction return r @@ -2054,13 +2054,13 @@ func (r ApiGetStatisticsRequest) From(from time.Time) ApiGetStatisticsRequest { return r } -// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. +// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. func (r ApiGetStatisticsRequest) To(to time.Time) ApiGetStatisticsRequest { r.to = &to return r } -// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` +// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` func (r ApiGetStatisticsRequest) Interval(interval string) ApiGetStatisticsRequest { r.interval = &interval return r @@ -2254,7 +2254,7 @@ type ApiListDistributionsRequest struct { sortOrder *string } -// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) +// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) func (r ApiListDistributionsRequest) PageSize(pageSize int32) ApiListDistributionsRequest { r.pageSize = &pageSize return r @@ -2266,13 +2266,13 @@ func (r ApiListDistributionsRequest) WithWafStatus(withWafStatus bool) ApiListDi return r } -// 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. +// 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. func (r ApiListDistributionsRequest) PageIdentifier(pageIdentifier string) ApiListDistributionsRequest { r.pageIdentifier = &pageIdentifier 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 - `originUrlRelated` - The originUrl 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. +// 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 originUrl 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 ApiListDistributionsRequest) SortBy(sortBy string) ApiListDistributionsRequest { r.sortBy = &sortBy return r diff --git a/services/cdn/v1api/model_config.go b/services/cdn/v1api/model_config.go index 1e3e45b83..9a3bc2b71 100644 --- a/services/cdn/v1api/model_config.go +++ b/services/cdn/v1api/model_config.go @@ -21,19 +21,24 @@ var _ MappedNullable = &Config{} // Config struct for Config type Config struct { Backend ConfigBackend `json:"backend"` - // 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. + // 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. BlockedCountries []string `json:"blockedCountries"` - // 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. + // 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 []string `json:"blockedIps"` - // 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) + // 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 NullableString `json:"defaultCacheDuration,omitempty"` - LogSink *LokiLogSink `json:"logSink,omitempty"` + // Enabling this allows the 'Host' header to be passed through to the origin. + ForwardHostHeader bool `json:"forwardHostHeader"` + LogSink *LokiLogSink `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. - MonthlyLimitBytes NullableInt64 `json:"monthlyLimitBytes,omitempty"` - Optimizer *Optimizer `json:"optimizer,omitempty"` - Redirects *RedirectConfig `json:"redirects,omitempty"` - Regions []Region `json:"regions"` - Waf WafConfig `json:"waf"` + MonthlyLimitBytes NullableInt64 `json:"monthlyLimitBytes,omitempty"` + Optimizer *Optimizer `json:"optimizer,omitempty"` + Redirects *RedirectConfig `json:"redirects,omitempty"` + Regions []Region `json:"regions"` + // Enable this to prevent origin-level cookies from being forwarded to the end user. + StripResponseCookies bool `json:"stripResponseCookies"` + Tls TlsConfig `json:"tls"` + Waf WafConfig `json:"waf"` AdditionalProperties map[string]interface{} } @@ -43,12 +48,15 @@ type _Config Config // 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 NewConfig(backend ConfigBackend, blockedCountries []string, blockedIps []string, regions []Region, waf WafConfig) *Config { +func NewConfig(backend ConfigBackend, blockedCountries []string, blockedIps []string, forwardHostHeader bool, regions []Region, stripResponseCookies bool, tls TlsConfig, waf WafConfig) *Config { this := Config{} this.Backend = backend this.BlockedCountries = blockedCountries this.BlockedIps = blockedIps + this.ForwardHostHeader = forwardHostHeader this.Regions = regions + this.StripResponseCookies = stripResponseCookies + this.Tls = tls this.Waf = waf return &this } @@ -176,6 +184,30 @@ func (o *Config) UnsetDefaultCacheDuration() { o.DefaultCacheDuration.Unset() } +// GetForwardHostHeader returns the ForwardHostHeader field value +func (o *Config) GetForwardHostHeader() bool { + if o == nil { + var ret bool + return ret + } + + return o.ForwardHostHeader +} + +// GetForwardHostHeaderOk returns a tuple with the ForwardHostHeader field value +// and a boolean to check if the value has been set. +func (o *Config) GetForwardHostHeaderOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ForwardHostHeader, true +} + +// SetForwardHostHeader sets field value +func (o *Config) SetForwardHostHeader(v bool) { + o.ForwardHostHeader = v +} + // GetLogSink returns the LogSink field value if set, zero value otherwise. func (o *Config) GetLogSink() LokiLogSink { if o == nil || IsNil(o.LogSink) { @@ -339,6 +371,54 @@ func (o *Config) SetRegions(v []Region) { o.Regions = v } +// GetStripResponseCookies returns the StripResponseCookies field value +func (o *Config) GetStripResponseCookies() bool { + if o == nil { + var ret bool + return ret + } + + return o.StripResponseCookies +} + +// GetStripResponseCookiesOk returns a tuple with the StripResponseCookies field value +// and a boolean to check if the value has been set. +func (o *Config) GetStripResponseCookiesOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.StripResponseCookies, true +} + +// SetStripResponseCookies sets field value +func (o *Config) SetStripResponseCookies(v bool) { + o.StripResponseCookies = v +} + +// GetTls returns the Tls field value +func (o *Config) GetTls() TlsConfig { + if o == nil { + var ret TlsConfig + return ret + } + + return o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value +// and a boolean to check if the value has been set. +func (o *Config) GetTlsOk() (*TlsConfig, bool) { + if o == nil { + return nil, false + } + return &o.Tls, true +} + +// SetTls sets field value +func (o *Config) SetTls(v TlsConfig) { + o.Tls = v +} + // GetWaf returns the Waf field value func (o *Config) GetWaf() WafConfig { if o == nil { @@ -379,6 +459,7 @@ func (o Config) ToMap() (map[string]interface{}, error) { if o.DefaultCacheDuration.IsSet() { toSerialize["defaultCacheDuration"] = o.DefaultCacheDuration.Get() } + toSerialize["forwardHostHeader"] = o.ForwardHostHeader if !IsNil(o.LogSink) { toSerialize["logSink"] = o.LogSink } @@ -392,6 +473,8 @@ func (o Config) ToMap() (map[string]interface{}, error) { toSerialize["redirects"] = o.Redirects } toSerialize["regions"] = o.Regions + toSerialize["stripResponseCookies"] = o.StripResponseCookies + toSerialize["tls"] = o.Tls toSerialize["waf"] = o.Waf for key, value := range o.AdditionalProperties { @@ -409,7 +492,10 @@ func (o *Config) UnmarshalJSON(data []byte) (err error) { "backend", "blockedCountries", "blockedIps", + "forwardHostHeader", "regions", + "stripResponseCookies", + "tls", "waf", } @@ -444,11 +530,14 @@ func (o *Config) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "blockedCountries") delete(additionalProperties, "blockedIps") delete(additionalProperties, "defaultCacheDuration") + delete(additionalProperties, "forwardHostHeader") delete(additionalProperties, "logSink") delete(additionalProperties, "monthlyLimitBytes") delete(additionalProperties, "optimizer") delete(additionalProperties, "redirects") delete(additionalProperties, "regions") + delete(additionalProperties, "stripResponseCookies") + delete(additionalProperties, "tls") delete(additionalProperties, "waf") o.AdditionalProperties = additionalProperties } diff --git a/services/cdn/v1api/model_config_patch.go b/services/cdn/v1api/model_config_patch.go index 5c0dcd51b..2948d1c6e 100644 --- a/services/cdn/v1api/model_config_patch.go +++ b/services/cdn/v1api/model_config_patch.go @@ -20,18 +20,23 @@ var _ MappedNullable = &ConfigPatch{} // ConfigPatch struct for ConfigPatch type ConfigPatch struct { Backend *ConfigPatchBackend `json:"backend,omitempty"` - // 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. + // 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. BlockedCountries []string `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. + // 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 []string `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 NullableString `json:"defaultCacheDuration,omitempty"` - LogSink NullableLokiLogSinkPatch `json:"logSink,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 NullableString `json:"defaultCacheDuration,omitempty"` + // Enabling this allows the 'Host' header to be passed through to the origin. + ForwardHostHeader *bool `json:"forwardHostHeader,omitempty"` + LogSink NullableLokiLogSinkPatch `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. - MonthlyLimitBytes NullableInt64 `json:"monthlyLimitBytes,omitempty"` - Optimizer *OptimizerPatch `json:"optimizer,omitempty"` - Redirects *RedirectConfig `json:"redirects,omitempty"` - Regions []Region `json:"regions,omitempty"` + MonthlyLimitBytes NullableInt64 `json:"monthlyLimitBytes,omitempty"` + Optimizer *OptimizerPatch `json:"optimizer,omitempty"` + Redirects *RedirectConfig `json:"redirects,omitempty"` + Regions []Region `json:"regions,omitempty"` + // Enable this to prevent origin-level cookies from being forwarded to the end user. + StripResponseCookies *bool `json:"stripResponseCookies,omitempty"` + Tls *TlsConfigPatch `json:"tls,omitempty"` Waf *WafConfigPatch `json:"waf,omitempty"` AdditionalProperties map[string]interface{} } @@ -194,6 +199,38 @@ func (o *ConfigPatch) UnsetDefaultCacheDuration() { o.DefaultCacheDuration.Unset() } +// GetForwardHostHeader returns the ForwardHostHeader field value if set, zero value otherwise. +func (o *ConfigPatch) GetForwardHostHeader() bool { + if o == nil || IsNil(o.ForwardHostHeader) { + var ret bool + return ret + } + return *o.ForwardHostHeader +} + +// GetForwardHostHeaderOk returns a tuple with the ForwardHostHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPatch) GetForwardHostHeaderOk() (*bool, bool) { + if o == nil || IsNil(o.ForwardHostHeader) { + return nil, false + } + return o.ForwardHostHeader, true +} + +// HasForwardHostHeader returns a boolean if a field has been set. +func (o *ConfigPatch) HasForwardHostHeader() bool { + if o != nil && !IsNil(o.ForwardHostHeader) { + return true + } + + return false +} + +// SetForwardHostHeader gets a reference to the given bool and assigns it to the ForwardHostHeader field. +func (o *ConfigPatch) SetForwardHostHeader(v bool) { + o.ForwardHostHeader = &v +} + // GetLogSink returns the LogSink field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConfigPatch) GetLogSink() LokiLogSinkPatch { if o == nil || IsNil(o.LogSink.Get()) { @@ -376,6 +413,70 @@ func (o *ConfigPatch) SetRegions(v []Region) { o.Regions = v } +// GetStripResponseCookies returns the StripResponseCookies field value if set, zero value otherwise. +func (o *ConfigPatch) GetStripResponseCookies() bool { + if o == nil || IsNil(o.StripResponseCookies) { + var ret bool + return ret + } + return *o.StripResponseCookies +} + +// GetStripResponseCookiesOk returns a tuple with the StripResponseCookies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPatch) GetStripResponseCookiesOk() (*bool, bool) { + if o == nil || IsNil(o.StripResponseCookies) { + return nil, false + } + return o.StripResponseCookies, true +} + +// HasStripResponseCookies returns a boolean if a field has been set. +func (o *ConfigPatch) HasStripResponseCookies() bool { + if o != nil && !IsNil(o.StripResponseCookies) { + return true + } + + return false +} + +// SetStripResponseCookies gets a reference to the given bool and assigns it to the StripResponseCookies field. +func (o *ConfigPatch) SetStripResponseCookies(v bool) { + o.StripResponseCookies = &v +} + +// GetTls returns the Tls field value if set, zero value otherwise. +func (o *ConfigPatch) GetTls() TlsConfigPatch { + if o == nil || IsNil(o.Tls) { + var ret TlsConfigPatch + return ret + } + return *o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPatch) GetTlsOk() (*TlsConfigPatch, bool) { + if o == nil || IsNil(o.Tls) { + return nil, false + } + return o.Tls, true +} + +// HasTls returns a boolean if a field has been set. +func (o *ConfigPatch) HasTls() bool { + if o != nil && !IsNil(o.Tls) { + return true + } + + return false +} + +// SetTls gets a reference to the given TlsConfigPatch and assigns it to the Tls field. +func (o *ConfigPatch) SetTls(v TlsConfigPatch) { + o.Tls = &v +} + // GetWaf returns the Waf field value if set, zero value otherwise. func (o *ConfigPatch) GetWaf() WafConfigPatch { if o == nil || IsNil(o.Waf) { @@ -430,6 +531,9 @@ func (o ConfigPatch) ToMap() (map[string]interface{}, error) { if o.DefaultCacheDuration.IsSet() { toSerialize["defaultCacheDuration"] = o.DefaultCacheDuration.Get() } + if !IsNil(o.ForwardHostHeader) { + toSerialize["forwardHostHeader"] = o.ForwardHostHeader + } if o.LogSink.IsSet() { toSerialize["logSink"] = o.LogSink.Get() } @@ -445,6 +549,12 @@ func (o ConfigPatch) ToMap() (map[string]interface{}, error) { if !IsNil(o.Regions) { toSerialize["regions"] = o.Regions } + if !IsNil(o.StripResponseCookies) { + toSerialize["stripResponseCookies"] = o.StripResponseCookies + } + if !IsNil(o.Tls) { + toSerialize["tls"] = o.Tls + } if !IsNil(o.Waf) { toSerialize["waf"] = o.Waf } @@ -474,11 +584,14 @@ func (o *ConfigPatch) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "blockedCountries") delete(additionalProperties, "blockedIps") delete(additionalProperties, "defaultCacheDuration") + delete(additionalProperties, "forwardHostHeader") delete(additionalProperties, "logSink") delete(additionalProperties, "monthlyLimitBytes") delete(additionalProperties, "optimizer") delete(additionalProperties, "redirects") delete(additionalProperties, "regions") + delete(additionalProperties, "stripResponseCookies") + delete(additionalProperties, "tls") delete(additionalProperties, "waf") o.AdditionalProperties = additionalProperties } diff --git a/services/cdn/v1api/model_create_distribution_payload.go b/services/cdn/v1api/model_create_distribution_payload.go index 8b4e76447..add8857ca 100644 --- a/services/cdn/v1api/model_create_distribution_payload.go +++ b/services/cdn/v1api/model_create_distribution_payload.go @@ -21,13 +21,15 @@ var _ MappedNullable = &CreateDistributionPayload{} // CreateDistributionPayload struct for CreateDistributionPayload type CreateDistributionPayload struct { Backend CreateDistributionPayloadBackend `json:"backend"` - // 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. + // 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. BlockedCountries []string `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. + // 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 []string `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) + // 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 *string `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. + // Enabling this allows the 'Host' header to be passed through to the origin. + ForwardHostHeader *bool `json:"forwardHostHeader,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 *string `json:"intentId,omitempty"` LogSink *LokiLogSinkCreate `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. @@ -35,7 +37,10 @@ type CreateDistributionPayload struct { Optimizer *Optimizer `json:"optimizer,omitempty"` Redirects *RedirectConfig `json:"redirects,omitempty"` // Define in which regions you would like your content to be cached. - Regions []Region `json:"regions"` + Regions []Region `json:"regions"` + // Enable this to prevent origin-level cookies from being forwarded to the end user. + StripResponseCookies *bool `json:"stripResponseCookies,omitempty"` + Tls *TlsConfig `json:"tls,omitempty"` Waf *WafConfig `json:"waf,omitempty"` AdditionalProperties map[string]interface{} } @@ -181,6 +186,38 @@ func (o *CreateDistributionPayload) SetDefaultCacheDuration(v string) { o.DefaultCacheDuration = &v } +// GetForwardHostHeader returns the ForwardHostHeader field value if set, zero value otherwise. +func (o *CreateDistributionPayload) GetForwardHostHeader() bool { + if o == nil || IsNil(o.ForwardHostHeader) { + var ret bool + return ret + } + return *o.ForwardHostHeader +} + +// GetForwardHostHeaderOk returns a tuple with the ForwardHostHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDistributionPayload) GetForwardHostHeaderOk() (*bool, bool) { + if o == nil || IsNil(o.ForwardHostHeader) { + return nil, false + } + return o.ForwardHostHeader, true +} + +// HasForwardHostHeader returns a boolean if a field has been set. +func (o *CreateDistributionPayload) HasForwardHostHeader() bool { + if o != nil && !IsNil(o.ForwardHostHeader) { + return true + } + + return false +} + +// SetForwardHostHeader gets a reference to the given bool and assigns it to the ForwardHostHeader field. +func (o *CreateDistributionPayload) SetForwardHostHeader(v bool) { + o.ForwardHostHeader = &v +} + // GetIntentId returns the IntentId field value if set, zero value otherwise. func (o *CreateDistributionPayload) GetIntentId() string { if o == nil || IsNil(o.IntentId) { @@ -365,6 +402,70 @@ func (o *CreateDistributionPayload) SetRegions(v []Region) { o.Regions = v } +// GetStripResponseCookies returns the StripResponseCookies field value if set, zero value otherwise. +func (o *CreateDistributionPayload) GetStripResponseCookies() bool { + if o == nil || IsNil(o.StripResponseCookies) { + var ret bool + return ret + } + return *o.StripResponseCookies +} + +// GetStripResponseCookiesOk returns a tuple with the StripResponseCookies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDistributionPayload) GetStripResponseCookiesOk() (*bool, bool) { + if o == nil || IsNil(o.StripResponseCookies) { + return nil, false + } + return o.StripResponseCookies, true +} + +// HasStripResponseCookies returns a boolean if a field has been set. +func (o *CreateDistributionPayload) HasStripResponseCookies() bool { + if o != nil && !IsNil(o.StripResponseCookies) { + return true + } + + return false +} + +// SetStripResponseCookies gets a reference to the given bool and assigns it to the StripResponseCookies field. +func (o *CreateDistributionPayload) SetStripResponseCookies(v bool) { + o.StripResponseCookies = &v +} + +// GetTls returns the Tls field value if set, zero value otherwise. +func (o *CreateDistributionPayload) GetTls() TlsConfig { + if o == nil || IsNil(o.Tls) { + var ret TlsConfig + return ret + } + return *o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDistributionPayload) GetTlsOk() (*TlsConfig, bool) { + if o == nil || IsNil(o.Tls) { + return nil, false + } + return o.Tls, true +} + +// HasTls returns a boolean if a field has been set. +func (o *CreateDistributionPayload) HasTls() bool { + if o != nil && !IsNil(o.Tls) { + return true + } + + return false +} + +// SetTls gets a reference to the given TlsConfig and assigns it to the Tls field. +func (o *CreateDistributionPayload) SetTls(v TlsConfig) { + o.Tls = &v +} + // GetWaf returns the Waf field value if set, zero value otherwise. func (o *CreateDistributionPayload) GetWaf() WafConfig { if o == nil || IsNil(o.Waf) { @@ -417,6 +518,9 @@ func (o CreateDistributionPayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.DefaultCacheDuration) { toSerialize["defaultCacheDuration"] = o.DefaultCacheDuration } + if !IsNil(o.ForwardHostHeader) { + toSerialize["forwardHostHeader"] = o.ForwardHostHeader + } if !IsNil(o.IntentId) { toSerialize["intentId"] = o.IntentId } @@ -433,6 +537,12 @@ func (o CreateDistributionPayload) ToMap() (map[string]interface{}, error) { toSerialize["redirects"] = o.Redirects } toSerialize["regions"] = o.Regions + if !IsNil(o.StripResponseCookies) { + toSerialize["stripResponseCookies"] = o.StripResponseCookies + } + if !IsNil(o.Tls) { + toSerialize["tls"] = o.Tls + } if !IsNil(o.Waf) { toSerialize["waf"] = o.Waf } @@ -484,12 +594,15 @@ func (o *CreateDistributionPayload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "blockedCountries") delete(additionalProperties, "blockedIps") delete(additionalProperties, "defaultCacheDuration") + delete(additionalProperties, "forwardHostHeader") delete(additionalProperties, "intentId") delete(additionalProperties, "logSink") delete(additionalProperties, "monthlyLimitBytes") delete(additionalProperties, "optimizer") delete(additionalProperties, "redirects") delete(additionalProperties, "regions") + delete(additionalProperties, "stripResponseCookies") + delete(additionalProperties, "tls") delete(additionalProperties, "waf") o.AdditionalProperties = additionalProperties } diff --git a/services/cdn/v1api/model_distribution.go b/services/cdn/v1api/model_distribution.go index a1a4d9e65..3b31a7d25 100644 --- a/services/cdn/v1api/model_distribution.go +++ b/services/cdn/v1api/model_distribution.go @@ -29,7 +29,7 @@ type Distribution struct { Errors []StatusError `json:"errors,omitempty"` Id string `json:"id"` ProjectId string `json:"projectId"` - // - `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. + // - `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. Status string `json:"status"` // RFC3339 string which returns the last time the distribution configuration was modified. UpdatedAt time.Time `json:"updatedAt"` diff --git a/services/cdn/v1api/model_distribution_statistics_record_regions.go b/services/cdn/v1api/model_distribution_statistics_record_regions.go index 5596df91a..916b1e380 100644 --- a/services/cdn/v1api/model_distribution_statistics_record_regions.go +++ b/services/cdn/v1api/model_distribution_statistics_record_regions.go @@ -18,7 +18,7 @@ import ( // checks if the DistributionStatisticsRecordRegions type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DistributionStatisticsRecordRegions{} -// 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 +// 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 { AF DistributionStatisticsRecordEntry `json:"AF"` ASIA DistributionStatisticsRecordEntry `json:"ASIA"` diff --git a/services/cdn/v1api/model_distribution_waf.go b/services/cdn/v1api/model_distribution_waf.go index eb3b5a287..09e1ced85 100644 --- a/services/cdn/v1api/model_distribution_waf.go +++ b/services/cdn/v1api/model_distribution_waf.go @@ -18,7 +18,7 @@ import ( // checks if the DistributionWaf type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DistributionWaf{} -// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** +// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** type DistributionWaf struct { DisabledRules []WafStatusRuleBlock `json:"disabledRules"` EnabledRules []WafStatusRuleBlock `json:"enabledRules"` diff --git a/services/cdn/v1api/model_get_cache_info_response.go b/services/cdn/v1api/model_get_cache_info_response.go index 488c2d25a..aec0ddf0e 100644 --- a/services/cdn/v1api/model_get_cache_info_response.go +++ b/services/cdn/v1api/model_get_cache_info_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetCacheInfoResponse{} // GetCacheInfoResponse struct for GetCacheInfoResponse type GetCacheInfoResponse struct { History []GetCacheInfoResponseHistoryEntry `json:"history"` - // 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` + // 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` LastPurgeTime NullableTime `json:"lastPurgeTime"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1api/model_get_logs_search_filters_response.go b/services/cdn/v1api/model_get_logs_search_filters_response.go index 81cc7d19c..5d0423311 100644 --- a/services/cdn/v1api/model_get_logs_search_filters_response.go +++ b/services/cdn/v1api/model_get_logs_search_filters_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetLogsSearchFiltersResponse{} type GetLogsSearchFiltersResponse struct { Cache []string `json:"cache"` DataCenter GetLogsSearchFiltersResponseDatacenterBlock `json:"dataCenter"` - // List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 + // List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 RemoteCountry []string `json:"remoteCountry"` // List of Status Codes matching the input filter. Response is ordered in ascending order. Status []int32 `json:"status"` diff --git a/services/cdn/v1api/model_http_backend.go b/services/cdn/v1api/model_http_backend.go index a9b2dd196..8f961ad45 100644 --- a/services/cdn/v1api/model_http_backend.go +++ b/services/cdn/v1api/model_http_backend.go @@ -22,9 +22,9 @@ var _ MappedNullable = &HttpBackend{} type HttpBackend struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing map[string][]string `json:"geofencing"` - // 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. + // 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. OriginRequestHeaders map[string]string `json:"originRequestHeaders"` - // 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` + // 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` OriginUrl string `json:"originUrl"` Type string `json:"type"` AdditionalProperties map[string]interface{} diff --git a/services/cdn/v1api/model_http_backend_create.go b/services/cdn/v1api/model_http_backend_create.go index 8c6644575..ad732ef2c 100644 --- a/services/cdn/v1api/model_http_backend_create.go +++ b/services/cdn/v1api/model_http_backend_create.go @@ -22,9 +22,9 @@ var _ MappedNullable = &HttpBackendCreate{} type HttpBackendCreate struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing *map[string][]string `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders *map[string]string `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` + // 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` OriginUrl string `json:"originUrl"` Type string `json:"type"` AdditionalProperties map[string]interface{} diff --git a/services/cdn/v1api/model_http_backend_patch.go b/services/cdn/v1api/model_http_backend_patch.go index cd457aeb3..abd2c7c39 100644 --- a/services/cdn/v1api/model_http_backend_patch.go +++ b/services/cdn/v1api/model_http_backend_patch.go @@ -22,7 +22,7 @@ var _ MappedNullable = &HttpBackendPatch{} type HttpBackendPatch struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing *map[string][]string `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders *map[string]string `json:"originRequestHeaders,omitempty"` OriginUrl *string `json:"originUrl,omitempty"` // This property is required to determine the used backend type. diff --git a/services/cdn/v1api/model_patch_distribution_payload.go b/services/cdn/v1api/model_patch_distribution_payload.go index 160f691b4..131874a84 100644 --- a/services/cdn/v1api/model_patch_distribution_payload.go +++ b/services/cdn/v1api/model_patch_distribution_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &PatchDistributionPayload{} // PatchDistributionPayload Defines a partial distribution. Set values type PatchDistributionPayload struct { Config *ConfigPatch `json:"config,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId *string `json:"intentId,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1api/model_purge_cache_payload.go b/services/cdn/v1api/model_purge_cache_payload.go index 5cd8d5bab..2f1a42f33 100644 --- a/services/cdn/v1api/model_purge_cache_payload.go +++ b/services/cdn/v1api/model_purge_cache_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &PurgeCachePayload{} // PurgeCachePayload struct for PurgeCachePayload type PurgeCachePayload struct { - // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. + // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. Path *string `json:"path,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1api/model_put_custom_domain_custom_certificate.go b/services/cdn/v1api/model_put_custom_domain_custom_certificate.go index 0c0e23250..c5649acab 100644 --- a/services/cdn/v1api/model_put_custom_domain_custom_certificate.go +++ b/services/cdn/v1api/model_put_custom_domain_custom_certificate.go @@ -24,7 +24,7 @@ type PutCustomDomainCustomCertificate struct { Certificate string `json:"certificate"` // base64-encoded PEM encoded key Key string `json:"key"` - // When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. + // When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. SkipDnsCheck *bool `json:"skipDnsCheck,omitempty"` Type string `json:"type"` AdditionalProperties map[string]interface{} diff --git a/services/cdn/v1api/model_put_custom_domain_payload.go b/services/cdn/v1api/model_put_custom_domain_payload.go index af5506a24..f41b3f035 100644 --- a/services/cdn/v1api/model_put_custom_domain_payload.go +++ b/services/cdn/v1api/model_put_custom_domain_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &PutCustomDomainPayload{} // PutCustomDomainPayload struct for PutCustomDomainPayload type PutCustomDomainPayload struct { Certificate *PutCustomDomainPayloadCertificate `json:"certificate,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId *string `json:"intentId,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1api/model_tls_config.go b/services/cdn/v1api/model_tls_config.go new file mode 100644 index 000000000..718011c6b --- /dev/null +++ b/services/cdn/v1api/model_tls_config.go @@ -0,0 +1,197 @@ +/* +STACKIT CDN API + +API used to create and manage your CDN distributions. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// checks if the TlsConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TlsConfig{} + +// TlsConfig Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. +type TlsConfig struct { + // If set to true, the distribution will accept connections using TLS 1.0. + EnableTls10 bool `json:"enableTls10"` + // If set to true, the distribution will accept connections using TLS 1.1. + EnableTls11 bool `json:"enableTls11"` + AdditionalProperties map[string]interface{} +} + +type _TlsConfig TlsConfig + +// NewTlsConfig instantiates a new TlsConfig 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 NewTlsConfig(enableTls10 bool, enableTls11 bool) *TlsConfig { + this := TlsConfig{} + this.EnableTls10 = enableTls10 + this.EnableTls11 = enableTls11 + return &this +} + +// NewTlsConfigWithDefaults instantiates a new TlsConfig 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 NewTlsConfigWithDefaults() *TlsConfig { + this := TlsConfig{} + return &this +} + +// GetEnableTls10 returns the EnableTls10 field value +func (o *TlsConfig) GetEnableTls10() bool { + if o == nil { + var ret bool + return ret + } + + return o.EnableTls10 +} + +// GetEnableTls10Ok returns a tuple with the EnableTls10 field value +// and a boolean to check if the value has been set. +func (o *TlsConfig) GetEnableTls10Ok() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.EnableTls10, true +} + +// SetEnableTls10 sets field value +func (o *TlsConfig) SetEnableTls10(v bool) { + o.EnableTls10 = v +} + +// GetEnableTls11 returns the EnableTls11 field value +func (o *TlsConfig) GetEnableTls11() bool { + if o == nil { + var ret bool + return ret + } + + return o.EnableTls11 +} + +// GetEnableTls11Ok returns a tuple with the EnableTls11 field value +// and a boolean to check if the value has been set. +func (o *TlsConfig) GetEnableTls11Ok() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.EnableTls11, true +} + +// SetEnableTls11 sets field value +func (o *TlsConfig) SetEnableTls11(v bool) { + o.EnableTls11 = v +} + +func (o TlsConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TlsConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["enableTls10"] = o.EnableTls10 + toSerialize["enableTls11"] = o.EnableTls11 + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TlsConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "enableTls10", + "enableTls11", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTlsConfig := _TlsConfig{} + + err = json.Unmarshal(data, &varTlsConfig) + + if err != nil { + return err + } + + *o = TlsConfig(varTlsConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enableTls10") + delete(additionalProperties, "enableTls11") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTlsConfig struct { + value *TlsConfig + isSet bool +} + +func (v NullableTlsConfig) Get() *TlsConfig { + return v.value +} + +func (v *NullableTlsConfig) Set(val *TlsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableTlsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableTlsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTlsConfig(val *TlsConfig) *NullableTlsConfig { + return &NullableTlsConfig{value: val, isSet: true} +} + +func (v NullableTlsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTlsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/cdn/v1api/model_tls_config_patch.go b/services/cdn/v1api/model_tls_config_patch.go new file mode 100644 index 000000000..ff530304a --- /dev/null +++ b/services/cdn/v1api/model_tls_config_patch.go @@ -0,0 +1,192 @@ +/* +STACKIT CDN API + +API used to create and manage your CDN distributions. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the TlsConfigPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TlsConfigPatch{} + +// TlsConfigPatch Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. +type TlsConfigPatch struct { + // If set to true, the distribution will accept connections using TLS 1.0. + EnableTls10 *bool `json:"enableTls10,omitempty"` + // If set to true, the distribution will accept connections using TLS 1.1. + EnableTls11 *bool `json:"enableTls11,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TlsConfigPatch TlsConfigPatch + +// NewTlsConfigPatch instantiates a new TlsConfigPatch 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 NewTlsConfigPatch() *TlsConfigPatch { + this := TlsConfigPatch{} + return &this +} + +// NewTlsConfigPatchWithDefaults instantiates a new TlsConfigPatch 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 NewTlsConfigPatchWithDefaults() *TlsConfigPatch { + this := TlsConfigPatch{} + return &this +} + +// GetEnableTls10 returns the EnableTls10 field value if set, zero value otherwise. +func (o *TlsConfigPatch) GetEnableTls10() bool { + if o == nil || IsNil(o.EnableTls10) { + var ret bool + return ret + } + return *o.EnableTls10 +} + +// GetEnableTls10Ok returns a tuple with the EnableTls10 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TlsConfigPatch) GetEnableTls10Ok() (*bool, bool) { + if o == nil || IsNil(o.EnableTls10) { + return nil, false + } + return o.EnableTls10, true +} + +// HasEnableTls10 returns a boolean if a field has been set. +func (o *TlsConfigPatch) HasEnableTls10() bool { + if o != nil && !IsNil(o.EnableTls10) { + return true + } + + return false +} + +// SetEnableTls10 gets a reference to the given bool and assigns it to the EnableTls10 field. +func (o *TlsConfigPatch) SetEnableTls10(v bool) { + o.EnableTls10 = &v +} + +// GetEnableTls11 returns the EnableTls11 field value if set, zero value otherwise. +func (o *TlsConfigPatch) GetEnableTls11() bool { + if o == nil || IsNil(o.EnableTls11) { + var ret bool + return ret + } + return *o.EnableTls11 +} + +// GetEnableTls11Ok returns a tuple with the EnableTls11 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TlsConfigPatch) GetEnableTls11Ok() (*bool, bool) { + if o == nil || IsNil(o.EnableTls11) { + return nil, false + } + return o.EnableTls11, true +} + +// HasEnableTls11 returns a boolean if a field has been set. +func (o *TlsConfigPatch) HasEnableTls11() bool { + if o != nil && !IsNil(o.EnableTls11) { + return true + } + + return false +} + +// SetEnableTls11 gets a reference to the given bool and assigns it to the EnableTls11 field. +func (o *TlsConfigPatch) SetEnableTls11(v bool) { + o.EnableTls11 = &v +} + +func (o TlsConfigPatch) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TlsConfigPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EnableTls10) { + toSerialize["enableTls10"] = o.EnableTls10 + } + if !IsNil(o.EnableTls11) { + toSerialize["enableTls11"] = o.EnableTls11 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TlsConfigPatch) UnmarshalJSON(data []byte) (err error) { + varTlsConfigPatch := _TlsConfigPatch{} + + err = json.Unmarshal(data, &varTlsConfigPatch) + + if err != nil { + return err + } + + *o = TlsConfigPatch(varTlsConfigPatch) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enableTls10") + delete(additionalProperties, "enableTls11") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTlsConfigPatch struct { + value *TlsConfigPatch + isSet bool +} + +func (v NullableTlsConfigPatch) Get() *TlsConfigPatch { + return v.value +} + +func (v *NullableTlsConfigPatch) Set(val *TlsConfigPatch) { + v.value = val + v.isSet = true +} + +func (v NullableTlsConfigPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableTlsConfigPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTlsConfigPatch(val *TlsConfigPatch) *NullableTlsConfigPatch { + return &NullableTlsConfigPatch{value: val, isSet: true} +} + +func (v NullableTlsConfigPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTlsConfigPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/cdn/v1api/model_waf_config.go b/services/cdn/v1api/model_waf_config.go index d8c631457..0651791f0 100644 --- a/services/cdn/v1api/model_waf_config.go +++ b/services/cdn/v1api/model_waf_config.go @@ -18,7 +18,7 @@ import ( // checks if the WafConfig type satisfies the MappedNullable interface at compile time var _ MappedNullable = &WafConfig{} -// WafConfig Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. +// WafConfig Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. type WafConfig struct { // This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards AllowedHttpMethods []string `json:"allowedHttpMethods,omitempty"` @@ -35,7 +35,7 @@ type WafConfig struct { EnabledRuleCollectionIds []string `json:"enabledRuleCollectionIds,omitempty"` // Ids of WAF Rule Groups to mark as enabled EnabledRuleGroupIds []string `json:"enabledRuleGroupIds,omitempty"` - // Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. + // Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. EnabledRuleIds []string `json:"enabledRuleIds"` // Ids of WAF Collections to mark as log Only. LogOnlyRuleCollectionIds []string `json:"logOnlyRuleCollectionIds,omitempty"` diff --git a/services/cdn/v1api/model_waf_paranoia_level.go b/services/cdn/v1api/model_waf_paranoia_level.go index 95b44ed73..8ba826692 100644 --- a/services/cdn/v1api/model_waf_paranoia_level.go +++ b/services/cdn/v1api/model_waf_paranoia_level.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. +// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. type WafParanoiaLevel string // List of WafParanoiaLevel diff --git a/services/cdn/v1api/model_waf_status_rule_block_reason_never_defined.go b/services/cdn/v1api/model_waf_status_rule_block_reason_never_defined.go index bd54e2274..0ac7fc8ad 100644 --- a/services/cdn/v1api/model_waf_status_rule_block_reason_never_defined.go +++ b/services/cdn/v1api/model_waf_status_rule_block_reason_never_defined.go @@ -18,7 +18,7 @@ import ( // checks if the WafStatusRuleBlockReasonNeverDefined type satisfies the MappedNullable interface at compile time var _ MappedNullable = &WafStatusRuleBlockReasonNeverDefined{} -// WafStatusRuleBlockReasonNeverDefined This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled +// WafStatusRuleBlockReasonNeverDefined This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled type WafStatusRuleBlockReasonNeverDefined struct { // This is always `neverDefined` Type string `json:"type"` diff --git a/services/cdn/v1api/model_waf_type.go b/services/cdn/v1api/model_waf_type.go index dee4ab6d8..564690f1d 100644 --- a/services/cdn/v1api/model_waf_type.go +++ b/services/cdn/v1api/model_waf_type.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) +// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) type WafType string // List of WafType diff --git a/services/cdn/v1beta2api/api_default.go b/services/cdn/v1beta2api/api_default.go index 84501bd2d..2ea556812 100644 --- a/services/cdn/v1beta2api/api_default.go +++ b/services/cdn/v1beta2api/api_default.go @@ -672,7 +672,7 @@ type ApiDeleteDistributionRequest struct { intentId *string } -// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. +// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. func (r ApiDeleteDistributionRequest) IntentId(intentId string) ApiDeleteDistributionRequest { r.intentId = &intentId return r @@ -1599,19 +1599,19 @@ func (r ApiGetLogsRequest) From(from time.Time) ApiGetLogsRequest { return r } -// the end of the time range for which logs should be returned. If not specified, \"now\" is used. +// the end of the time range for which logs should be returned. If not specified, \"now\" is used. func (r ApiGetLogsRequest) To(to time.Time) ApiGetLogsRequest { r.to = &to return r } -// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) +// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) func (r ApiGetLogsRequest) PageSize(pageSize int32) ApiGetLogsRequest { r.pageSize = &pageSize return r } -// 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. +// 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. func (r ApiGetLogsRequest) PageIdentifier(pageIdentifier string) ApiGetLogsRequest { r.pageIdentifier = &pageIdentifier return r @@ -1628,7 +1628,7 @@ func (r ApiGetLogsRequest) SortOrder(sortOrder string) ApiGetLogsRequest { return r } -// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked +// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked func (r ApiGetLogsRequest) WafAction(wafAction WAFRuleAction) ApiGetLogsRequest { r.wafAction = &wafAction return r @@ -2054,13 +2054,13 @@ func (r ApiGetStatisticsRequest) From(from time.Time) ApiGetStatisticsRequest { return r } -// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. +// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. func (r ApiGetStatisticsRequest) To(to time.Time) ApiGetStatisticsRequest { r.to = &to return r } -// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` +// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` func (r ApiGetStatisticsRequest) Interval(interval string) ApiGetStatisticsRequest { r.interval = &interval return r @@ -2254,7 +2254,7 @@ type ApiListDistributionsRequest struct { sortOrder *string } -// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) +// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) func (r ApiListDistributionsRequest) PageSize(pageSize int32) ApiListDistributionsRequest { r.pageSize = &pageSize return r @@ -2266,13 +2266,13 @@ func (r ApiListDistributionsRequest) WithWafStatus(withWafStatus bool) ApiListDi return r } -// 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. +// 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. func (r ApiListDistributionsRequest) PageIdentifier(pageIdentifier string) ApiListDistributionsRequest { r.pageIdentifier = &pageIdentifier 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 - `originUrlRelated` - The originUrl 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. +// 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 originUrl 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 ApiListDistributionsRequest) SortBy(sortBy string) ApiListDistributionsRequest { r.sortBy = &sortBy return r diff --git a/services/cdn/v1beta2api/model_config.go b/services/cdn/v1beta2api/model_config.go index c4a3ae006..6fdecf6e8 100644 --- a/services/cdn/v1beta2api/model_config.go +++ b/services/cdn/v1beta2api/model_config.go @@ -21,11 +21,11 @@ var _ MappedNullable = &Config{} // Config struct for Config type Config struct { Backend ConfigBackend `json:"backend"` - // 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. + // 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. BlockedCountries []string `json:"blockedCountries"` - // 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. + // 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 []string `json:"blockedIps"` - // 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) + // 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 NullableString `json:"defaultCacheDuration,omitempty"` LogSink *LokiLogSink `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. diff --git a/services/cdn/v1beta2api/model_config_patch.go b/services/cdn/v1beta2api/model_config_patch.go index a21e2ac1b..ba162f408 100644 --- a/services/cdn/v1beta2api/model_config_patch.go +++ b/services/cdn/v1beta2api/model_config_patch.go @@ -20,11 +20,11 @@ var _ MappedNullable = &ConfigPatch{} // ConfigPatch struct for ConfigPatch type ConfigPatch struct { Backend *ConfigPatchBackend `json:"backend,omitempty"` - // 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. + // 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. BlockedCountries []string `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. + // 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 []string `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) + // 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 NullableString `json:"defaultCacheDuration,omitempty"` LogSink NullableLokiLogSinkPatch `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. diff --git a/services/cdn/v1beta2api/model_create_distribution_payload.go b/services/cdn/v1beta2api/model_create_distribution_payload.go index 51fb43cec..2e6f8c652 100644 --- a/services/cdn/v1beta2api/model_create_distribution_payload.go +++ b/services/cdn/v1beta2api/model_create_distribution_payload.go @@ -21,13 +21,13 @@ var _ MappedNullable = &CreateDistributionPayload{} // CreateDistributionPayload struct for CreateDistributionPayload type CreateDistributionPayload struct { Backend CreateDistributionPayloadBackend `json:"backend"` - // 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. + // 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. BlockedCountries []string `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. + // 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 []string `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) + // 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 *string `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. + // 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 *string `json:"intentId,omitempty"` LogSink *LokiLogSinkCreate `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. diff --git a/services/cdn/v1beta2api/model_distribution.go b/services/cdn/v1beta2api/model_distribution.go index d7ff6881a..30ec6852c 100644 --- a/services/cdn/v1beta2api/model_distribution.go +++ b/services/cdn/v1beta2api/model_distribution.go @@ -29,7 +29,7 @@ type Distribution struct { Errors []StatusError `json:"errors,omitempty"` Id string `json:"id"` ProjectId string `json:"projectId"` - // - `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. + // - `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. Status string `json:"status"` // RFC3339 string which returns the last time the distribution configuration was modified. UpdatedAt time.Time `json:"updatedAt"` diff --git a/services/cdn/v1beta2api/model_distribution_statistics_record_regions.go b/services/cdn/v1beta2api/model_distribution_statistics_record_regions.go index aff4fa03c..a2eb633b3 100644 --- a/services/cdn/v1beta2api/model_distribution_statistics_record_regions.go +++ b/services/cdn/v1beta2api/model_distribution_statistics_record_regions.go @@ -18,7 +18,7 @@ import ( // checks if the DistributionStatisticsRecordRegions type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DistributionStatisticsRecordRegions{} -// 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 +// 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 { AF DistributionStatisticsRecordEntry `json:"AF"` ASIA DistributionStatisticsRecordEntry `json:"ASIA"` diff --git a/services/cdn/v1beta2api/model_distribution_waf.go b/services/cdn/v1beta2api/model_distribution_waf.go index c9ee0979c..70de86bc5 100644 --- a/services/cdn/v1beta2api/model_distribution_waf.go +++ b/services/cdn/v1beta2api/model_distribution_waf.go @@ -18,7 +18,7 @@ import ( // checks if the DistributionWaf type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DistributionWaf{} -// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** +// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** type DistributionWaf struct { DisabledRules []WafStatusRuleBlock `json:"disabledRules"` EnabledRules []WafStatusRuleBlock `json:"enabledRules"` diff --git a/services/cdn/v1beta2api/model_get_cache_info_response.go b/services/cdn/v1beta2api/model_get_cache_info_response.go index 7656796fb..17cadbca3 100644 --- a/services/cdn/v1beta2api/model_get_cache_info_response.go +++ b/services/cdn/v1beta2api/model_get_cache_info_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetCacheInfoResponse{} // GetCacheInfoResponse struct for GetCacheInfoResponse type GetCacheInfoResponse struct { History []GetCacheInfoResponseHistoryEntry `json:"history"` - // 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` + // 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` LastPurgeTime NullableTime `json:"lastPurgeTime"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1beta2api/model_get_logs_search_filters_response.go b/services/cdn/v1beta2api/model_get_logs_search_filters_response.go index 486963e41..c99251b08 100644 --- a/services/cdn/v1beta2api/model_get_logs_search_filters_response.go +++ b/services/cdn/v1beta2api/model_get_logs_search_filters_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetLogsSearchFiltersResponse{} type GetLogsSearchFiltersResponse struct { Cache []string `json:"cache"` DataCenter GetLogsSearchFiltersResponseDatacenterBlock `json:"dataCenter"` - // List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 + // List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 RemoteCountry []string `json:"remoteCountry"` // List of Status Codes matching the input filter. Response is ordered in ascending order. Status []int32 `json:"status"` diff --git a/services/cdn/v1beta2api/model_http_backend.go b/services/cdn/v1beta2api/model_http_backend.go index 9cce7b21f..48e5ae099 100644 --- a/services/cdn/v1beta2api/model_http_backend.go +++ b/services/cdn/v1beta2api/model_http_backend.go @@ -22,9 +22,9 @@ var _ MappedNullable = &HttpBackend{} type HttpBackend struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing map[string][]string `json:"geofencing"` - // 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. + // 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. OriginRequestHeaders map[string]string `json:"originRequestHeaders"` - // 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` + // 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` OriginUrl string `json:"originUrl"` Type string `json:"type"` AdditionalProperties map[string]interface{} diff --git a/services/cdn/v1beta2api/model_http_backend_create.go b/services/cdn/v1beta2api/model_http_backend_create.go index 3b51afd34..9d7f0e0d8 100644 --- a/services/cdn/v1beta2api/model_http_backend_create.go +++ b/services/cdn/v1beta2api/model_http_backend_create.go @@ -22,9 +22,9 @@ var _ MappedNullable = &HttpBackendCreate{} type HttpBackendCreate struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing *map[string][]string `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders *map[string]string `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` + // 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` OriginUrl string `json:"originUrl"` Type string `json:"type"` AdditionalProperties map[string]interface{} diff --git a/services/cdn/v1beta2api/model_http_backend_patch.go b/services/cdn/v1beta2api/model_http_backend_patch.go index bdb59baa4..63670ffe6 100644 --- a/services/cdn/v1beta2api/model_http_backend_patch.go +++ b/services/cdn/v1beta2api/model_http_backend_patch.go @@ -22,7 +22,7 @@ var _ MappedNullable = &HttpBackendPatch{} type HttpBackendPatch struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing *map[string][]string `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders *map[string]string `json:"originRequestHeaders,omitempty"` OriginUrl *string `json:"originUrl,omitempty"` // This property is required to determine the used backend type. diff --git a/services/cdn/v1beta2api/model_patch_distribution_payload.go b/services/cdn/v1beta2api/model_patch_distribution_payload.go index 930df341f..5e0db2495 100644 --- a/services/cdn/v1beta2api/model_patch_distribution_payload.go +++ b/services/cdn/v1beta2api/model_patch_distribution_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &PatchDistributionPayload{} // PatchDistributionPayload Defines a partial distribution. Set values type PatchDistributionPayload struct { Config *ConfigPatch `json:"config,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId *string `json:"intentId,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1beta2api/model_purge_cache_payload.go b/services/cdn/v1beta2api/model_purge_cache_payload.go index 9fd958160..3de1085f0 100644 --- a/services/cdn/v1beta2api/model_purge_cache_payload.go +++ b/services/cdn/v1beta2api/model_purge_cache_payload.go @@ -19,7 +19,7 @@ var _ MappedNullable = &PurgeCachePayload{} // PurgeCachePayload struct for PurgeCachePayload type PurgeCachePayload struct { - // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. + // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. Path *string `json:"path,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1beta2api/model_put_custom_domain_payload.go b/services/cdn/v1beta2api/model_put_custom_domain_payload.go index eab4c5202..bf64a785a 100644 --- a/services/cdn/v1beta2api/model_put_custom_domain_payload.go +++ b/services/cdn/v1beta2api/model_put_custom_domain_payload.go @@ -20,7 +20,7 @@ var _ MappedNullable = &PutCustomDomainPayload{} // PutCustomDomainPayload struct for PutCustomDomainPayload type PutCustomDomainPayload struct { Certificate *PutCustomDomainPayloadCertificate `json:"certificate,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId *string `json:"intentId,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1beta2api/model_waf_config.go b/services/cdn/v1beta2api/model_waf_config.go index 1babfe089..9ea33cb23 100644 --- a/services/cdn/v1beta2api/model_waf_config.go +++ b/services/cdn/v1beta2api/model_waf_config.go @@ -18,7 +18,7 @@ import ( // checks if the WafConfig type satisfies the MappedNullable interface at compile time var _ MappedNullable = &WafConfig{} -// WafConfig Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. +// WafConfig Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. type WafConfig struct { // This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards AllowedHttpMethods []string `json:"allowedHttpMethods,omitempty"` @@ -35,7 +35,7 @@ type WafConfig struct { EnabledRuleCollectionIds []string `json:"enabledRuleCollectionIds,omitempty"` // Ids of WAF Rule Groups to mark as enabled EnabledRuleGroupIds []string `json:"enabledRuleGroupIds,omitempty"` - // Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. + // Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. EnabledRuleIds []string `json:"enabledRuleIds"` // Ids of WAF Collections to mark as log Only. LogOnlyRuleCollectionIds []string `json:"logOnlyRuleCollectionIds,omitempty"` diff --git a/services/cdn/v1beta2api/model_waf_paranoia_level.go b/services/cdn/v1beta2api/model_waf_paranoia_level.go index 2160f796c..72269e9de 100644 --- a/services/cdn/v1beta2api/model_waf_paranoia_level.go +++ b/services/cdn/v1beta2api/model_waf_paranoia_level.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. +// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. type WafParanoiaLevel string // List of WafParanoiaLevel diff --git a/services/cdn/v1beta2api/model_waf_status_rule_block_reason_never_defined.go b/services/cdn/v1beta2api/model_waf_status_rule_block_reason_never_defined.go index 94d48f17b..da49fb270 100644 --- a/services/cdn/v1beta2api/model_waf_status_rule_block_reason_never_defined.go +++ b/services/cdn/v1beta2api/model_waf_status_rule_block_reason_never_defined.go @@ -18,7 +18,7 @@ import ( // checks if the WafStatusRuleBlockReasonNeverDefined type satisfies the MappedNullable interface at compile time var _ MappedNullable = &WafStatusRuleBlockReasonNeverDefined{} -// WafStatusRuleBlockReasonNeverDefined This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled +// WafStatusRuleBlockReasonNeverDefined This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled type WafStatusRuleBlockReasonNeverDefined struct { // This is always `neverDefined` Type string `json:"type"` diff --git a/services/cdn/v1beta2api/model_waf_type.go b/services/cdn/v1beta2api/model_waf_type.go index 279a40234..361d07a50 100644 --- a/services/cdn/v1beta2api/model_waf_type.go +++ b/services/cdn/v1beta2api/model_waf_type.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) +// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) type WafType string // List of WafType diff --git a/services/cdn/v1betaapi/api_default.go b/services/cdn/v1betaapi/api_default.go index eff9a023b..95387c2c9 100644 --- a/services/cdn/v1betaapi/api_default.go +++ b/services/cdn/v1betaapi/api_default.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -32,11 +32,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Your STACKIT Project ID @return ApiCreateDistributionRequest + + Deprecated */ CreateDistribution(ctx context.Context, projectId string) ApiCreateDistributionRequest // CreateDistributionExecute executes the request // @return CreateDistributionResponse + // Deprecated CreateDistributionExecute(r ApiCreateDistributionRequest) (*CreateDistributionResponse, error) /* @@ -50,11 +53,14 @@ type DefaultAPI interface { @param distributionId @param domain @return ApiDeleteCustomDomainRequest + + Deprecated */ DeleteCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiDeleteCustomDomainRequest // DeleteCustomDomainExecute executes the request // @return DeleteCustomDomainResponse + // Deprecated DeleteCustomDomainExecute(r ApiDeleteCustomDomainRequest) (*DeleteCustomDomainResponse, error) /* @@ -67,11 +73,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiDeleteDistributionRequest + + Deprecated */ DeleteDistribution(ctx context.Context, projectId string, distributionId string) ApiDeleteDistributionRequest // DeleteDistributionExecute executes the request // @return DeleteDistributionResponse + // Deprecated DeleteDistributionExecute(r ApiDeleteDistributionRequest) (*DeleteDistributionResponse, error) /* @@ -97,11 +106,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiFindCachePathsRequest + + Deprecated */ FindCachePaths(ctx context.Context, projectId string, distributionId string) ApiFindCachePathsRequest // FindCachePathsExecute executes the request // @return FindCachePathsResponse + // Deprecated FindCachePathsExecute(r ApiFindCachePathsRequest) (*FindCachePathsResponse, error) /* @@ -117,11 +129,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiGetCacheInfoRequest + + Deprecated */ GetCacheInfo(ctx context.Context, projectId string, distributionId string) ApiGetCacheInfoRequest // GetCacheInfoExecute executes the request // @return GetCacheInfoResponse + // Deprecated GetCacheInfoExecute(r ApiGetCacheInfoRequest) (*GetCacheInfoResponse, error) /* @@ -135,11 +150,14 @@ type DefaultAPI interface { @param distributionId @param domain @return ApiGetCustomDomainRequest + + Deprecated */ GetCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiGetCustomDomainRequest // GetCustomDomainExecute executes the request // @return GetCustomDomainResponse + // Deprecated GetCustomDomainExecute(r ApiGetCustomDomainRequest) (*GetCustomDomainResponse, error) /* @@ -151,11 +169,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiGetDistributionRequest + + Deprecated */ GetDistribution(ctx context.Context, projectId string, distributionId string) ApiGetDistributionRequest // GetDistributionExecute executes the request // @return GetDistributionResponse + // Deprecated GetDistributionExecute(r ApiGetDistributionRequest) (*GetDistributionResponse, error) /* @@ -165,11 +186,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId Your CDN distribution ID @return ApiGetLogsRequest + + Deprecated */ GetLogs(ctx context.Context, projectId string, distributionId string) ApiGetLogsRequest // GetLogsExecute executes the request // @return GetLogsResponse + // Deprecated GetLogsExecute(r ApiGetLogsRequest) (*GetLogsResponse, error) /* @@ -179,11 +203,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId Your CDN distribution ID @return ApiGetLogsSearchFiltersRequest + + Deprecated */ GetLogsSearchFilters(ctx context.Context, projectId string, distributionId string) ApiGetLogsSearchFiltersRequest // GetLogsSearchFiltersExecute executes the request // @return GetLogsSearchFiltersResponse + // Deprecated GetLogsSearchFiltersExecute(r ApiGetLogsSearchFiltersRequest) (*GetLogsSearchFiltersResponse, error) /* @@ -206,11 +233,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiGetStatisticsRequest + + Deprecated */ GetStatistics(ctx context.Context, projectId string, distributionId string) ApiGetStatisticsRequest // GetStatisticsExecute executes the request // @return GetStatisticsResponse + // Deprecated GetStatisticsExecute(r ApiGetStatisticsRequest) (*GetStatisticsResponse, error) /* @@ -223,11 +253,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Your STACKIT Project ID @return ApiListDistributionsRequest + + Deprecated */ ListDistributions(ctx context.Context, projectId string) ApiListDistributionsRequest // ListDistributionsExecute executes the request // @return ListDistributionsResponse + // Deprecated ListDistributionsExecute(r ApiListDistributionsRequest) (*ListDistributionsResponse, error) /* @@ -238,11 +271,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Your STACKIT Project ID @return ApiListWAFCollectionsRequest + + Deprecated */ ListWAFCollections(ctx context.Context, projectId string) ApiListWAFCollectionsRequest // ListWAFCollectionsExecute executes the request // @return ListWAFCollectionsResponse + // Deprecated ListWAFCollectionsExecute(r ApiListWAFCollectionsRequest) (*ListWAFCollectionsResponse, error) /* @@ -254,11 +290,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiPatchDistributionRequest + + Deprecated */ PatchDistribution(ctx context.Context, projectId string, distributionId string) ApiPatchDistributionRequest // PatchDistributionExecute executes the request // @return PatchDistributionResponse + // Deprecated PatchDistributionExecute(r ApiPatchDistributionRequest) (*PatchDistributionResponse, error) /* @@ -272,11 +311,14 @@ type DefaultAPI interface { @param projectId Your STACKIT Project ID @param distributionId @return ApiPurgeCacheRequest + + Deprecated */ PurgeCache(ctx context.Context, projectId string, distributionId string) ApiPurgeCacheRequest // PurgeCacheExecute executes the request // @return map[string]interface{} + // Deprecated PurgeCacheExecute(r ApiPurgeCacheRequest) (map[string]interface{}, error) /* @@ -290,11 +332,14 @@ type DefaultAPI interface { @param distributionId @param domain @return ApiPutCustomDomainRequest + + Deprecated */ PutCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiPutCustomDomainRequest // PutCustomDomainExecute executes the request // @return PutCustomDomainResponse + // Deprecated PutCustomDomainExecute(r ApiPutCustomDomainRequest) (*PutCustomDomainResponse, error) } @@ -325,6 +370,8 @@ CreateDistribution will create a new CDN distribution @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Your STACKIT Project ID @return ApiCreateDistributionRequest + +Deprecated */ func (a *DefaultAPIService) CreateDistribution(ctx context.Context, projectId string) ApiCreateDistributionRequest { return ApiCreateDistributionRequest{ @@ -337,6 +384,8 @@ func (a *DefaultAPIService) CreateDistribution(ctx context.Context, projectId st // Execute executes the request // // @return CreateDistributionResponse +// +// Deprecated func (a *DefaultAPIService) CreateDistributionExecute(r ApiCreateDistributionRequest) (*CreateDistributionResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -512,6 +561,8 @@ DeleteCustomDomain Delete a custom domain @param distributionId @param domain @return ApiDeleteCustomDomainRequest + +Deprecated */ func (a *DefaultAPIService) DeleteCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiDeleteCustomDomainRequest { return ApiDeleteCustomDomainRequest{ @@ -526,6 +577,8 @@ func (a *DefaultAPIService) DeleteCustomDomain(ctx context.Context, projectId st // Execute executes the request // // @return DeleteCustomDomainResponse +// +// Deprecated func (a *DefaultAPIService) DeleteCustomDomainExecute(r ApiDeleteCustomDomainRequest) (*DeleteCustomDomainResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -672,7 +725,7 @@ type ApiDeleteDistributionRequest struct { intentId *string } -// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. +// While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. func (r ApiDeleteDistributionRequest) IntentId(intentId string) ApiDeleteDistributionRequest { r.intentId = &intentId return r @@ -691,6 +744,8 @@ DeleteDistribution accepts a project- and distribution-ID and will delete a dist @param projectId Your STACKIT Project ID @param distributionId @return ApiDeleteDistributionRequest + +Deprecated */ func (a *DefaultAPIService) DeleteDistribution(ctx context.Context, projectId string, distributionId string) ApiDeleteDistributionRequest { return ApiDeleteDistributionRequest{ @@ -704,6 +759,8 @@ func (a *DefaultAPIService) DeleteDistribution(ctx context.Context, projectId st // Execute executes the request // // @return DeleteDistributionResponse +// +// Deprecated func (a *DefaultAPIService) DeleteDistributionExecute(r ApiDeleteDistributionRequest) (*DeleteDistributionResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -878,6 +935,8 @@ this would return the following paths, in the following order, assuming `/te` wa @param projectId Your STACKIT Project ID @param distributionId @return ApiFindCachePathsRequest + +Deprecated */ func (a *DefaultAPIService) FindCachePaths(ctx context.Context, projectId string, distributionId string) ApiFindCachePathsRequest { return ApiFindCachePathsRequest{ @@ -891,6 +950,8 @@ func (a *DefaultAPIService) FindCachePaths(ctx context.Context, projectId string // Execute executes the request // // @return FindCachePathsResponse +// +// Deprecated func (a *DefaultAPIService) FindCachePathsExecute(r ApiFindCachePathsRequest) (*FindCachePathsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1055,6 +1116,8 @@ The request will not fail if no data about a path is found. @param projectId Your STACKIT Project ID @param distributionId @return ApiGetCacheInfoRequest + +Deprecated */ func (a *DefaultAPIService) GetCacheInfo(ctx context.Context, projectId string, distributionId string) ApiGetCacheInfoRequest { return ApiGetCacheInfoRequest{ @@ -1068,6 +1131,8 @@ func (a *DefaultAPIService) GetCacheInfo(ctx context.Context, projectId string, // Execute executes the request // // @return GetCacheInfoResponse +// +// Deprecated func (a *DefaultAPIService) GetCacheInfoExecute(r ApiGetCacheInfoRequest) (*GetCacheInfoResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1224,6 +1289,8 @@ GetCustomDomain Retrieve a specific custom domain @param distributionId @param domain @return ApiGetCustomDomainRequest + +Deprecated */ func (a *DefaultAPIService) GetCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiGetCustomDomainRequest { return ApiGetCustomDomainRequest{ @@ -1238,6 +1305,8 @@ func (a *DefaultAPIService) GetCustomDomain(ctx context.Context, projectId strin // Execute executes the request // // @return GetCustomDomainResponse +// +// Deprecated func (a *DefaultAPIService) GetCustomDomainExecute(r ApiGetCustomDomainRequest) (*GetCustomDomainResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1412,6 +1481,8 @@ This returns a specific distribution by its ID. If no distribution with the give @param projectId Your STACKIT Project ID @param distributionId @return ApiGetDistributionRequest + +Deprecated */ func (a *DefaultAPIService) GetDistribution(ctx context.Context, projectId string, distributionId string) ApiGetDistributionRequest { return ApiGetDistributionRequest{ @@ -1425,6 +1496,8 @@ func (a *DefaultAPIService) GetDistribution(ctx context.Context, projectId strin // Execute executes the request // // @return GetDistributionResponse +// +// Deprecated func (a *DefaultAPIService) GetDistributionExecute(r ApiGetDistributionRequest) (*GetDistributionResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1599,25 +1672,25 @@ func (r ApiGetLogsRequest) From(from time.Time) ApiGetLogsRequest { return r } -// the end of the time range for which logs should be returned. If not specified, \"now\" is used. +// the end of the time range for which logs should be returned. If not specified, \"now\" is used. func (r ApiGetLogsRequest) To(to time.Time) ApiGetLogsRequest { r.to = &to return r } -// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked +// If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked func (r ApiGetLogsRequest) WafAction(wafAction WAFRuleAction) ApiGetLogsRequest { r.wafAction = &wafAction return r } -// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) +// Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) func (r ApiGetLogsRequest) PageSize(pageSize int32) ApiGetLogsRequest { r.pageSize = &pageSize return r } -// 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. +// 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. func (r ApiGetLogsRequest) PageIdentifier(pageIdentifier string) ApiGetLogsRequest { r.pageIdentifier = &pageIdentifier return r @@ -1669,6 +1742,8 @@ GetLogs Retrieve distribution logs @param projectId Your STACKIT Project ID @param distributionId Your CDN distribution ID @return ApiGetLogsRequest + +Deprecated */ func (a *DefaultAPIService) GetLogs(ctx context.Context, projectId string, distributionId string) ApiGetLogsRequest { return ApiGetLogsRequest{ @@ -1682,6 +1757,8 @@ func (a *DefaultAPIService) GetLogs(ctx context.Context, projectId string, distr // Execute executes the request // // @return GetLogsResponse +// +// Deprecated func (a *DefaultAPIService) GetLogsExecute(r ApiGetLogsRequest) (*GetLogsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1879,6 +1956,8 @@ GetLogsSearchFilters Get relevant search filters for this distribution based on @param projectId Your STACKIT Project ID @param distributionId Your CDN distribution ID @return ApiGetLogsSearchFiltersRequest + +Deprecated */ func (a *DefaultAPIService) GetLogsSearchFilters(ctx context.Context, projectId string, distributionId string) ApiGetLogsSearchFiltersRequest { return ApiGetLogsSearchFiltersRequest{ @@ -1892,6 +1971,8 @@ func (a *DefaultAPIService) GetLogsSearchFilters(ctx context.Context, projectId // Execute executes the request // // @return GetLogsSearchFiltersResponse +// +// Deprecated func (a *DefaultAPIService) GetLogsSearchFiltersExecute(r ApiGetLogsSearchFiltersRequest) (*GetLogsSearchFiltersResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2055,13 +2136,13 @@ func (r ApiGetStatisticsRequest) From(from time.Time) ApiGetStatisticsRequest { return r } -// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. +// the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. func (r ApiGetStatisticsRequest) To(to time.Time) ApiGetStatisticsRequest { r.to = &to return r } -// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` +// Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` func (r ApiGetStatisticsRequest) Interval(interval string) ApiGetStatisticsRequest { r.interval = &interval return r @@ -2090,6 +2171,8 @@ Example: if `interval` is `hourly`, `from` would default to the start of the nex @param projectId Your STACKIT Project ID @param distributionId @return ApiGetStatisticsRequest + +Deprecated */ func (a *DefaultAPIService) GetStatistics(ctx context.Context, projectId string, distributionId string) ApiGetStatisticsRequest { return ApiGetStatisticsRequest{ @@ -2103,6 +2186,8 @@ func (a *DefaultAPIService) GetStatistics(ctx context.Context, projectId string, // Execute executes the request // // @return GetStatisticsResponse +// +// Deprecated func (a *DefaultAPIService) GetStatisticsExecute(r ApiGetStatisticsRequest) (*GetStatisticsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2255,7 +2340,7 @@ type ApiListDistributionsRequest struct { sortOrder *string } -// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) +// Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) func (r ApiListDistributionsRequest) PageSize(pageSize int32) ApiListDistributionsRequest { r.pageSize = &pageSize return r @@ -2267,13 +2352,13 @@ func (r ApiListDistributionsRequest) WithWafStatus(withWafStatus bool) ApiListDi return r } -// 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. +// 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. func (r ApiListDistributionsRequest) PageIdentifier(pageIdentifier string) ApiListDistributionsRequest { r.pageIdentifier = &pageIdentifier 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 - `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. +// 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 ApiListDistributionsRequest) SortBy(sortBy string) ApiListDistributionsRequest { r.sortBy = &sortBy return r @@ -2297,6 +2382,8 @@ a given project, ordered by their distribution ID. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Your STACKIT Project ID @return ApiListDistributionsRequest + +Deprecated */ func (a *DefaultAPIService) ListDistributions(ctx context.Context, projectId string) ApiListDistributionsRequest { return ApiListDistributionsRequest{ @@ -2309,6 +2396,8 @@ func (a *DefaultAPIService) ListDistributions(ctx context.Context, projectId str // Execute executes the request // // @return ListDistributionsResponse +// +// Deprecated func (a *DefaultAPIService) ListDistributionsExecute(r ApiListDistributionsRequest) (*ListDistributionsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2484,6 +2573,8 @@ Returns all WAF rule collections available to the project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Your STACKIT Project ID @return ApiListWAFCollectionsRequest + +Deprecated */ func (a *DefaultAPIService) ListWAFCollections(ctx context.Context, projectId string) ApiListWAFCollectionsRequest { return ApiListWAFCollectionsRequest{ @@ -2496,6 +2587,8 @@ func (a *DefaultAPIService) ListWAFCollections(ctx context.Context, projectId st // Execute executes the request // // @return ListWAFCollectionsResponse +// +// Deprecated func (a *DefaultAPIService) ListWAFCollectionsExecute(r ApiListWAFCollectionsRequest) (*ListWAFCollectionsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2652,6 +2745,8 @@ Modify a CDN distribution with a partial update. Only the fields specified in th @param projectId Your STACKIT Project ID @param distributionId @return ApiPatchDistributionRequest + +Deprecated */ func (a *DefaultAPIService) PatchDistribution(ctx context.Context, projectId string, distributionId string) ApiPatchDistributionRequest { return ApiPatchDistributionRequest{ @@ -2665,6 +2760,8 @@ func (a *DefaultAPIService) PatchDistribution(ctx context.Context, projectId str // Execute executes the request // // @return PatchDistributionResponse +// +// Deprecated func (a *DefaultAPIService) PatchDistributionExecute(r ApiPatchDistributionRequest) (*PatchDistributionResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -2825,6 +2922,8 @@ All content, regardless of its staleness, will get refetched from the host. @param projectId Your STACKIT Project ID @param distributionId @return ApiPurgeCacheRequest + +Deprecated */ func (a *DefaultAPIService) PurgeCache(ctx context.Context, projectId string, distributionId string) ApiPurgeCacheRequest { return ApiPurgeCacheRequest{ @@ -2838,6 +2937,8 @@ func (a *DefaultAPIService) PurgeCache(ctx context.Context, projectId string, di // Execute executes the request // // @return map[string]interface{} +// +// Deprecated func (a *DefaultAPIService) PurgeCacheExecute(r ApiPurgeCacheRequest) (map[string]interface{}, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2999,6 +3100,8 @@ Creates a new custom domain. If it already exists, this will overwrite the previ @param distributionId @param domain @return ApiPutCustomDomainRequest + +Deprecated */ func (a *DefaultAPIService) PutCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiPutCustomDomainRequest { return ApiPutCustomDomainRequest{ @@ -3013,6 +3116,8 @@ func (a *DefaultAPIService) PutCustomDomain(ctx context.Context, projectId strin // Execute executes the request // // @return PutCustomDomainResponse +// +// Deprecated func (a *DefaultAPIService) PutCustomDomainExecute(r ApiPutCustomDomainRequest) (*PutCustomDomainResponse, error) { var ( localVarHTTPMethod = http.MethodPut diff --git a/services/cdn/v1betaapi/api_default_mock.go b/services/cdn/v1betaapi/api_default_mock.go index 410333ef2..4205b742e 100644 --- a/services/cdn/v1betaapi/api_default_mock.go +++ b/services/cdn/v1betaapi/api_default_mock.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -20,38 +20,39 @@ var _ DefaultAPI = &DefaultAPIServiceMock{} // DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. // By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. type DefaultAPIServiceMock struct { - // CreateDistributionExecuteMock can be populated to implement the behavior of the CreateDistributionExecute function of this mock + // Deprecated: CreateDistributionExecuteMock can be populated to implement the behavior of the CreateDistributionExecute function of this mock CreateDistributionExecuteMock *func(r ApiCreateDistributionRequest) (*CreateDistributionResponse, error) - // DeleteCustomDomainExecuteMock can be populated to implement the behavior of the DeleteCustomDomainExecute function of this mock + // Deprecated: DeleteCustomDomainExecuteMock can be populated to implement the behavior of the DeleteCustomDomainExecute function of this mock DeleteCustomDomainExecuteMock *func(r ApiDeleteCustomDomainRequest) (*DeleteCustomDomainResponse, error) - // DeleteDistributionExecuteMock can be populated to implement the behavior of the DeleteDistributionExecute function of this mock + // Deprecated: DeleteDistributionExecuteMock can be populated to implement the behavior of the DeleteDistributionExecute function of this mock DeleteDistributionExecuteMock *func(r ApiDeleteDistributionRequest) (*DeleteDistributionResponse, error) - // FindCachePathsExecuteMock can be populated to implement the behavior of the FindCachePathsExecute function of this mock + // Deprecated: FindCachePathsExecuteMock can be populated to implement the behavior of the FindCachePathsExecute function of this mock FindCachePathsExecuteMock *func(r ApiFindCachePathsRequest) (*FindCachePathsResponse, error) - // GetCacheInfoExecuteMock can be populated to implement the behavior of the GetCacheInfoExecute function of this mock + // Deprecated: GetCacheInfoExecuteMock can be populated to implement the behavior of the GetCacheInfoExecute function of this mock GetCacheInfoExecuteMock *func(r ApiGetCacheInfoRequest) (*GetCacheInfoResponse, error) - // GetCustomDomainExecuteMock can be populated to implement the behavior of the GetCustomDomainExecute function of this mock + // Deprecated: GetCustomDomainExecuteMock can be populated to implement the behavior of the GetCustomDomainExecute function of this mock GetCustomDomainExecuteMock *func(r ApiGetCustomDomainRequest) (*GetCustomDomainResponse, error) - // GetDistributionExecuteMock can be populated to implement the behavior of the GetDistributionExecute function of this mock + // Deprecated: GetDistributionExecuteMock can be populated to implement the behavior of the GetDistributionExecute function of this mock GetDistributionExecuteMock *func(r ApiGetDistributionRequest) (*GetDistributionResponse, error) - // GetLogsExecuteMock can be populated to implement the behavior of the GetLogsExecute function of this mock + // Deprecated: GetLogsExecuteMock can be populated to implement the behavior of the GetLogsExecute function of this mock GetLogsExecuteMock *func(r ApiGetLogsRequest) (*GetLogsResponse, error) - // GetLogsSearchFiltersExecuteMock can be populated to implement the behavior of the GetLogsSearchFiltersExecute function of this mock + // Deprecated: GetLogsSearchFiltersExecuteMock can be populated to implement the behavior of the GetLogsSearchFiltersExecute function of this mock GetLogsSearchFiltersExecuteMock *func(r ApiGetLogsSearchFiltersRequest) (*GetLogsSearchFiltersResponse, error) - // GetStatisticsExecuteMock can be populated to implement the behavior of the GetStatisticsExecute function of this mock + // Deprecated: GetStatisticsExecuteMock can be populated to implement the behavior of the GetStatisticsExecute function of this mock GetStatisticsExecuteMock *func(r ApiGetStatisticsRequest) (*GetStatisticsResponse, error) - // ListDistributionsExecuteMock can be populated to implement the behavior of the ListDistributionsExecute function of this mock + // Deprecated: ListDistributionsExecuteMock can be populated to implement the behavior of the ListDistributionsExecute function of this mock ListDistributionsExecuteMock *func(r ApiListDistributionsRequest) (*ListDistributionsResponse, error) - // ListWAFCollectionsExecuteMock can be populated to implement the behavior of the ListWAFCollectionsExecute function of this mock + // Deprecated: ListWAFCollectionsExecuteMock can be populated to implement the behavior of the ListWAFCollectionsExecute function of this mock ListWAFCollectionsExecuteMock *func(r ApiListWAFCollectionsRequest) (*ListWAFCollectionsResponse, error) - // PatchDistributionExecuteMock can be populated to implement the behavior of the PatchDistributionExecute function of this mock + // Deprecated: PatchDistributionExecuteMock can be populated to implement the behavior of the PatchDistributionExecute function of this mock PatchDistributionExecuteMock *func(r ApiPatchDistributionRequest) (*PatchDistributionResponse, error) - // PurgeCacheExecuteMock can be populated to implement the behavior of the PurgeCacheExecute function of this mock + // Deprecated: PurgeCacheExecuteMock can be populated to implement the behavior of the PurgeCacheExecute function of this mock PurgeCacheExecuteMock *func(r ApiPurgeCacheRequest) (map[string]interface{}, error) - // PutCustomDomainExecuteMock can be populated to implement the behavior of the PutCustomDomainExecute function of this mock + // Deprecated: PutCustomDomainExecuteMock can be populated to implement the behavior of the PutCustomDomainExecute function of this mock PutCustomDomainExecuteMock *func(r ApiPutCustomDomainRequest) (*PutCustomDomainResponse, error) } +// Deprecated func (a DefaultAPIServiceMock) CreateDistribution(ctx context.Context, projectId string) ApiCreateDistributionRequest { return ApiCreateDistributionRequest{ ApiService: a, @@ -60,7 +61,7 @@ func (a DefaultAPIServiceMock) CreateDistribution(ctx context.Context, projectId } } -// CreateDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateDistributionExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateDistributionExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateDistributionExecute(r ApiCreateDistributionRequest) (*CreateDistributionResponse, error) { if a.CreateDistributionExecuteMock == nil { var localVarReturnValue *CreateDistributionResponse @@ -70,6 +71,7 @@ func (a DefaultAPIServiceMock) CreateDistributionExecute(r ApiCreateDistribution return (*a.CreateDistributionExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiDeleteCustomDomainRequest { return ApiDeleteCustomDomainRequest{ ApiService: a, @@ -80,7 +82,7 @@ func (a DefaultAPIServiceMock) DeleteCustomDomain(ctx context.Context, projectId } } -// DeleteCustomDomainExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCustomDomainExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteCustomDomainExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCustomDomainExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteCustomDomainExecute(r ApiDeleteCustomDomainRequest) (*DeleteCustomDomainResponse, error) { if a.DeleteCustomDomainExecuteMock == nil { var localVarReturnValue *DeleteCustomDomainResponse @@ -90,6 +92,7 @@ func (a DefaultAPIServiceMock) DeleteCustomDomainExecute(r ApiDeleteCustomDomain return (*a.DeleteCustomDomainExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteDistribution(ctx context.Context, projectId string, distributionId string) ApiDeleteDistributionRequest { return ApiDeleteDistributionRequest{ ApiService: a, @@ -99,7 +102,7 @@ func (a DefaultAPIServiceMock) DeleteDistribution(ctx context.Context, projectId } } -// DeleteDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteDistributionExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteDistributionExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteDistributionExecute(r ApiDeleteDistributionRequest) (*DeleteDistributionResponse, error) { if a.DeleteDistributionExecuteMock == nil { var localVarReturnValue *DeleteDistributionResponse @@ -109,6 +112,7 @@ func (a DefaultAPIServiceMock) DeleteDistributionExecute(r ApiDeleteDistribution return (*a.DeleteDistributionExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) FindCachePaths(ctx context.Context, projectId string, distributionId string) ApiFindCachePathsRequest { return ApiFindCachePathsRequest{ ApiService: a, @@ -118,7 +122,7 @@ func (a DefaultAPIServiceMock) FindCachePaths(ctx context.Context, projectId str } } -// FindCachePathsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the FindCachePathsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: FindCachePathsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the FindCachePathsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) FindCachePathsExecute(r ApiFindCachePathsRequest) (*FindCachePathsResponse, error) { if a.FindCachePathsExecuteMock == nil { var localVarReturnValue *FindCachePathsResponse @@ -128,6 +132,7 @@ func (a DefaultAPIServiceMock) FindCachePathsExecute(r ApiFindCachePathsRequest) return (*a.FindCachePathsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetCacheInfo(ctx context.Context, projectId string, distributionId string) ApiGetCacheInfoRequest { return ApiGetCacheInfoRequest{ ApiService: a, @@ -137,7 +142,7 @@ func (a DefaultAPIServiceMock) GetCacheInfo(ctx context.Context, projectId strin } } -// GetCacheInfoExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCacheInfoExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetCacheInfoExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCacheInfoExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetCacheInfoExecute(r ApiGetCacheInfoRequest) (*GetCacheInfoResponse, error) { if a.GetCacheInfoExecuteMock == nil { var localVarReturnValue *GetCacheInfoResponse @@ -147,6 +152,7 @@ func (a DefaultAPIServiceMock) GetCacheInfoExecute(r ApiGetCacheInfoRequest) (*G return (*a.GetCacheInfoExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiGetCustomDomainRequest { return ApiGetCustomDomainRequest{ ApiService: a, @@ -157,7 +163,7 @@ func (a DefaultAPIServiceMock) GetCustomDomain(ctx context.Context, projectId st } } -// GetCustomDomainExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCustomDomainExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetCustomDomainExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCustomDomainExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetCustomDomainExecute(r ApiGetCustomDomainRequest) (*GetCustomDomainResponse, error) { if a.GetCustomDomainExecuteMock == nil { var localVarReturnValue *GetCustomDomainResponse @@ -167,6 +173,7 @@ func (a DefaultAPIServiceMock) GetCustomDomainExecute(r ApiGetCustomDomainReques return (*a.GetCustomDomainExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetDistribution(ctx context.Context, projectId string, distributionId string) ApiGetDistributionRequest { return ApiGetDistributionRequest{ ApiService: a, @@ -176,7 +183,7 @@ func (a DefaultAPIServiceMock) GetDistribution(ctx context.Context, projectId st } } -// GetDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetDistributionExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetDistributionExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetDistributionExecute(r ApiGetDistributionRequest) (*GetDistributionResponse, error) { if a.GetDistributionExecuteMock == nil { var localVarReturnValue *GetDistributionResponse @@ -186,6 +193,7 @@ func (a DefaultAPIServiceMock) GetDistributionExecute(r ApiGetDistributionReques return (*a.GetDistributionExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetLogs(ctx context.Context, projectId string, distributionId string) ApiGetLogsRequest { return ApiGetLogsRequest{ ApiService: a, @@ -195,7 +203,7 @@ func (a DefaultAPIServiceMock) GetLogs(ctx context.Context, projectId string, di } } -// GetLogsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetLogsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetLogsExecute(r ApiGetLogsRequest) (*GetLogsResponse, error) { if a.GetLogsExecuteMock == nil { var localVarReturnValue *GetLogsResponse @@ -205,6 +213,7 @@ func (a DefaultAPIServiceMock) GetLogsExecute(r ApiGetLogsRequest) (*GetLogsResp return (*a.GetLogsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetLogsSearchFilters(ctx context.Context, projectId string, distributionId string) ApiGetLogsSearchFiltersRequest { return ApiGetLogsSearchFiltersRequest{ ApiService: a, @@ -214,7 +223,7 @@ func (a DefaultAPIServiceMock) GetLogsSearchFilters(ctx context.Context, project } } -// GetLogsSearchFiltersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsSearchFiltersExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetLogsSearchFiltersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetLogsSearchFiltersExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetLogsSearchFiltersExecute(r ApiGetLogsSearchFiltersRequest) (*GetLogsSearchFiltersResponse, error) { if a.GetLogsSearchFiltersExecuteMock == nil { var localVarReturnValue *GetLogsSearchFiltersResponse @@ -224,6 +233,7 @@ func (a DefaultAPIServiceMock) GetLogsSearchFiltersExecute(r ApiGetLogsSearchFil return (*a.GetLogsSearchFiltersExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetStatistics(ctx context.Context, projectId string, distributionId string) ApiGetStatisticsRequest { return ApiGetStatisticsRequest{ ApiService: a, @@ -233,7 +243,7 @@ func (a DefaultAPIServiceMock) GetStatistics(ctx context.Context, projectId stri } } -// GetStatisticsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetStatisticsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetStatisticsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetStatisticsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetStatisticsExecute(r ApiGetStatisticsRequest) (*GetStatisticsResponse, error) { if a.GetStatisticsExecuteMock == nil { var localVarReturnValue *GetStatisticsResponse @@ -243,6 +253,7 @@ func (a DefaultAPIServiceMock) GetStatisticsExecute(r ApiGetStatisticsRequest) ( return (*a.GetStatisticsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListDistributions(ctx context.Context, projectId string) ApiListDistributionsRequest { return ApiListDistributionsRequest{ ApiService: a, @@ -251,7 +262,7 @@ func (a DefaultAPIServiceMock) ListDistributions(ctx context.Context, projectId } } -// ListDistributionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDistributionsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListDistributionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDistributionsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListDistributionsExecute(r ApiListDistributionsRequest) (*ListDistributionsResponse, error) { if a.ListDistributionsExecuteMock == nil { var localVarReturnValue *ListDistributionsResponse @@ -261,6 +272,7 @@ func (a DefaultAPIServiceMock) ListDistributionsExecute(r ApiListDistributionsRe return (*a.ListDistributionsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListWAFCollections(ctx context.Context, projectId string) ApiListWAFCollectionsRequest { return ApiListWAFCollectionsRequest{ ApiService: a, @@ -269,7 +281,7 @@ func (a DefaultAPIServiceMock) ListWAFCollections(ctx context.Context, projectId } } -// ListWAFCollectionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListWAFCollectionsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListWAFCollectionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListWAFCollectionsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListWAFCollectionsExecute(r ApiListWAFCollectionsRequest) (*ListWAFCollectionsResponse, error) { if a.ListWAFCollectionsExecuteMock == nil { var localVarReturnValue *ListWAFCollectionsResponse @@ -279,6 +291,7 @@ func (a DefaultAPIServiceMock) ListWAFCollectionsExecute(r ApiListWAFCollections return (*a.ListWAFCollectionsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PatchDistribution(ctx context.Context, projectId string, distributionId string) ApiPatchDistributionRequest { return ApiPatchDistributionRequest{ ApiService: a, @@ -288,7 +301,7 @@ func (a DefaultAPIServiceMock) PatchDistribution(ctx context.Context, projectId } } -// PatchDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PatchDistributionExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PatchDistributionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PatchDistributionExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PatchDistributionExecute(r ApiPatchDistributionRequest) (*PatchDistributionResponse, error) { if a.PatchDistributionExecuteMock == nil { var localVarReturnValue *PatchDistributionResponse @@ -298,6 +311,7 @@ func (a DefaultAPIServiceMock) PatchDistributionExecute(r ApiPatchDistributionRe return (*a.PatchDistributionExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PurgeCache(ctx context.Context, projectId string, distributionId string) ApiPurgeCacheRequest { return ApiPurgeCacheRequest{ ApiService: a, @@ -307,7 +321,7 @@ func (a DefaultAPIServiceMock) PurgeCache(ctx context.Context, projectId string, } } -// PurgeCacheExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PurgeCacheExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PurgeCacheExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PurgeCacheExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PurgeCacheExecute(r ApiPurgeCacheRequest) (map[string]interface{}, error) { if a.PurgeCacheExecuteMock == nil { var localVarReturnValue map[string]interface{} @@ -317,6 +331,7 @@ func (a DefaultAPIServiceMock) PurgeCacheExecute(r ApiPurgeCacheRequest) (map[st return (*a.PurgeCacheExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PutCustomDomain(ctx context.Context, projectId string, distributionId string, domain string) ApiPutCustomDomainRequest { return ApiPutCustomDomainRequest{ ApiService: a, @@ -327,7 +342,7 @@ func (a DefaultAPIServiceMock) PutCustomDomain(ctx context.Context, projectId st } } -// PutCustomDomainExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PutCustomDomainExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PutCustomDomainExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PutCustomDomainExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PutCustomDomainExecute(r ApiPutCustomDomainRequest) (*PutCustomDomainResponse, error) { if a.PutCustomDomainExecuteMock == nil { var localVarReturnValue *PutCustomDomainResponse diff --git a/services/cdn/v1betaapi/client.go b/services/cdn/v1betaapi/client.go index cebeaa65e..c077f64d1 100644 --- a/services/cdn/v1betaapi/client.go +++ b/services/cdn/v1betaapi/client.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the STACKIT CDN API API v1beta.0.0 +// APIClient manages communication with the STACKIT CDN API (DEPRECATED) API v1beta.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/cdn/v1betaapi/configuration.go b/services/cdn/v1betaapi/configuration.go index 9b967125d..16965e3ca 100644 --- a/services/cdn/v1betaapi/configuration.go +++ b/services/cdn/v1betaapi/configuration.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_config.go b/services/cdn/v1betaapi/model_config.go index abf8e1eb2..cd8046c10 100644 --- a/services/cdn/v1betaapi/model_config.go +++ b/services/cdn/v1betaapi/model_config.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -21,11 +21,11 @@ var _ MappedNullable = &Config{} // Config struct for Config type Config struct { Backend HttpBackend `json:"backend"` - // 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. + // 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. BlockedCountries []string `json:"blockedCountries"` - // 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. + // 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 []string `json:"blockedIPs"` - // 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) + // 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 NullableString `json:"defaultCacheDuration,omitempty"` LogSink *LokiLogSink `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. diff --git a/services/cdn/v1betaapi/model_config_patch.go b/services/cdn/v1betaapi/model_config_patch.go index 8e75c7d7e..6f25693d0 100644 --- a/services/cdn/v1betaapi/model_config_patch.go +++ b/services/cdn/v1betaapi/model_config_patch.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -20,11 +20,11 @@ var _ MappedNullable = &ConfigPatch{} // ConfigPatch struct for ConfigPatch type ConfigPatch struct { Backend *HttpBackendPatch `json:"backend,omitempty"` - // 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. + // 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. BlockedCountries []string `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. + // 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 []string `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) + // 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 NullableString `json:"defaultCacheDuration,omitempty"` LogSink NullablePatchLokiLogSink `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. diff --git a/services/cdn/v1betaapi/model_create_distribution_payload.go b/services/cdn/v1betaapi/model_create_distribution_payload.go index b9258929f..90f5a2e2e 100644 --- a/services/cdn/v1betaapi/model_create_distribution_payload.go +++ b/services/cdn/v1betaapi/model_create_distribution_payload.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -20,15 +20,15 @@ var _ MappedNullable = &CreateDistributionPayload{} // CreateDistributionPayload struct for CreateDistributionPayload type CreateDistributionPayload struct { - // 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. + // 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. BlockedCountries []string `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. + // 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 []string `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) + // 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 *string `json:"defaultCacheDuration,omitempty"` // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You can not have a country be assigned to multiple alternative origins. Geofencing *map[string][]string `json:"geofencing,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. + // 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 *string `json:"intentId,omitempty"` LogSink *PatchLokiLogSink `json:"logSink,omitempty"` // Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. @@ -36,7 +36,7 @@ type CreateDistributionPayload struct { Optimizer *Optimizer `json:"optimizer,omitempty"` // Headers that will be sent with every request to the configured origin. WARNING: Do not store sensitive values in the headers. The data is stores as plain text. OriginRequestHeaders *map[string]string `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` + // 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` OriginUrl string `json:"originUrl"` // Define in which regions you would like your content to be cached. Regions []Region `json:"regions"` diff --git a/services/cdn/v1betaapi/model_create_distribution_response.go b/services/cdn/v1betaapi/model_create_distribution_response.go index 9bb3250fe..4bff3481d 100644 --- a/services/cdn/v1betaapi/model_create_distribution_response.go +++ b/services/cdn/v1betaapi/model_create_distribution_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_custom_domain.go b/services/cdn/v1betaapi/model_custom_domain.go index c6a8406fd..ccf21e8db 100644 --- a/services/cdn/v1betaapi/model_custom_domain.go +++ b/services/cdn/v1betaapi/model_custom_domain.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_delete_custom_domain_response.go b/services/cdn/v1betaapi/model_delete_custom_domain_response.go index eeacbe615..38ac9b3eb 100644 --- a/services/cdn/v1betaapi/model_delete_custom_domain_response.go +++ b/services/cdn/v1betaapi/model_delete_custom_domain_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_delete_distribution_response.go b/services/cdn/v1betaapi/model_delete_distribution_response.go index 09e2ff41d..3f627e2ac 100644 --- a/services/cdn/v1betaapi/model_delete_distribution_response.go +++ b/services/cdn/v1betaapi/model_delete_distribution_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_distribution.go b/services/cdn/v1betaapi/model_distribution.go index ab88974b8..f8aefbbdb 100644 --- a/services/cdn/v1betaapi/model_distribution.go +++ b/services/cdn/v1betaapi/model_distribution.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -29,7 +29,7 @@ type Distribution struct { Errors []StatusError `json:"errors,omitempty"` Id string `json:"id"` ProjectId string `json:"projectId"` - // - `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. + // - `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. Status string `json:"status"` // RFC3339 string which returns the last time the distribution configuration was modified. UpdatedAt time.Time `json:"updatedAt"` diff --git a/services/cdn/v1betaapi/model_distribution_logs_record.go b/services/cdn/v1betaapi/model_distribution_logs_record.go index 19d2c4797..19bf01aa1 100644 --- a/services/cdn/v1betaapi/model_distribution_logs_record.go +++ b/services/cdn/v1betaapi/model_distribution_logs_record.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_distribution_statistics_record.go b/services/cdn/v1betaapi/model_distribution_statistics_record.go index dd79e51e6..d9ce2e728 100644 --- a/services/cdn/v1betaapi/model_distribution_statistics_record.go +++ b/services/cdn/v1betaapi/model_distribution_statistics_record.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_distribution_statistics_record_entry.go b/services/cdn/v1betaapi/model_distribution_statistics_record_entry.go index b49de3669..a7bff7064 100644 --- a/services/cdn/v1betaapi/model_distribution_statistics_record_entry.go +++ b/services/cdn/v1betaapi/model_distribution_statistics_record_entry.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_distribution_statistics_record_regions.go b/services/cdn/v1betaapi/model_distribution_statistics_record_regions.go index 6bf27ff3d..df7a1f57a 100644 --- a/services/cdn/v1betaapi/model_distribution_statistics_record_regions.go +++ b/services/cdn/v1betaapi/model_distribution_statistics_record_regions.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -18,7 +18,7 @@ import ( // checks if the DistributionStatisticsRecordRegions type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DistributionStatisticsRecordRegions{} -// 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 +// 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 { AF DistributionStatisticsRecordEntry `json:"AF"` ASIA DistributionStatisticsRecordEntry `json:"ASIA"` diff --git a/services/cdn/v1betaapi/model_distribution_waf.go b/services/cdn/v1betaapi/model_distribution_waf.go index 20cbf035f..c4fa22891 100644 --- a/services/cdn/v1betaapi/model_distribution_waf.go +++ b/services/cdn/v1betaapi/model_distribution_waf.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -18,7 +18,7 @@ import ( // checks if the DistributionWaf type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DistributionWaf{} -// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** +// DistributionWaf For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** type DistributionWaf struct { DisabledRules []WAFStatusRuleBlock `json:"disabledRules"` EnabledRules []WAFStatusRuleBlock `json:"enabledRules"` diff --git a/services/cdn/v1betaapi/model_domain.go b/services/cdn/v1betaapi/model_domain.go index 6960eb43a..384d08e61 100644 --- a/services/cdn/v1betaapi/model_domain.go +++ b/services/cdn/v1betaapi/model_domain.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_domain_status.go b/services/cdn/v1betaapi/model_domain_status.go index 5743563b8..f404b4937 100644 --- a/services/cdn/v1betaapi/model_domain_status.go +++ b/services/cdn/v1betaapi/model_domain_status.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_error_details.go b/services/cdn/v1betaapi/model_error_details.go index 2003b36b7..dfe0c26c7 100644 --- a/services/cdn/v1betaapi/model_error_details.go +++ b/services/cdn/v1betaapi/model_error_details.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_find_cache_paths_response.go b/services/cdn/v1betaapi/model_find_cache_paths_response.go index 0847fe8e7..c405f2eeb 100644 --- a/services/cdn/v1betaapi/model_find_cache_paths_response.go +++ b/services/cdn/v1betaapi/model_find_cache_paths_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_find_cache_paths_response_entry.go b/services/cdn/v1betaapi/model_find_cache_paths_response_entry.go index 0f73f81cb..e84961023 100644 --- a/services/cdn/v1betaapi/model_find_cache_paths_response_entry.go +++ b/services/cdn/v1betaapi/model_find_cache_paths_response_entry.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_generic_json_response.go b/services/cdn/v1betaapi/model_generic_json_response.go index 90493e256..2e48a371f 100644 --- a/services/cdn/v1betaapi/model_generic_json_response.go +++ b/services/cdn/v1betaapi/model_generic_json_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_cache_info_response.go b/services/cdn/v1betaapi/model_get_cache_info_response.go index 58467be8c..0d0971465 100644 --- a/services/cdn/v1betaapi/model_get_cache_info_response.go +++ b/services/cdn/v1betaapi/model_get_cache_info_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -22,7 +22,7 @@ var _ MappedNullable = &GetCacheInfoResponse{} // GetCacheInfoResponse struct for GetCacheInfoResponse type GetCacheInfoResponse struct { History []GetCacheInfoResponseHistoryEntry `json:"history"` - // 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` + // 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` LastPurgeTime NullableTime `json:"lastPurgeTime"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1betaapi/model_get_cache_info_response_history_entry.go b/services/cdn/v1betaapi/model_get_cache_info_response_history_entry.go index 2823d81ad..d132265ea 100644 --- a/services/cdn/v1betaapi/model_get_cache_info_response_history_entry.go +++ b/services/cdn/v1betaapi/model_get_cache_info_response_history_entry.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_custom_domain_custom_certificate.go b/services/cdn/v1betaapi/model_get_custom_domain_custom_certificate.go index 808e2ff4c..f709bed5b 100644 --- a/services/cdn/v1betaapi/model_get_custom_domain_custom_certificate.go +++ b/services/cdn/v1betaapi/model_get_custom_domain_custom_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_custom_domain_managed_certificate.go b/services/cdn/v1betaapi/model_get_custom_domain_managed_certificate.go index eba650865..64104e634 100644 --- a/services/cdn/v1betaapi/model_get_custom_domain_managed_certificate.go +++ b/services/cdn/v1betaapi/model_get_custom_domain_managed_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_custom_domain_response.go b/services/cdn/v1betaapi/model_get_custom_domain_response.go index c83c91def..d02f6df03 100644 --- a/services/cdn/v1betaapi/model_get_custom_domain_response.go +++ b/services/cdn/v1betaapi/model_get_custom_domain_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_custom_domain_response_certificate.go b/services/cdn/v1betaapi/model_get_custom_domain_response_certificate.go index 149178e72..9b502d23a 100644 --- a/services/cdn/v1betaapi/model_get_custom_domain_response_certificate.go +++ b/services/cdn/v1betaapi/model_get_custom_domain_response_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_distribution_response.go b/services/cdn/v1betaapi/model_get_distribution_response.go index 479238999..8334d9f9c 100644 --- a/services/cdn/v1betaapi/model_get_distribution_response.go +++ b/services/cdn/v1betaapi/model_get_distribution_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_logs_response.go b/services/cdn/v1betaapi/model_get_logs_response.go index 181aef7b5..250210e39 100644 --- a/services/cdn/v1betaapi/model_get_logs_response.go +++ b/services/cdn/v1betaapi/model_get_logs_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_logs_search_filters_response.go b/services/cdn/v1betaapi/model_get_logs_search_filters_response.go index 5e83ec410..156978897 100644 --- a/services/cdn/v1betaapi/model_get_logs_search_filters_response.go +++ b/services/cdn/v1betaapi/model_get_logs_search_filters_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_get_statistics_response.go b/services/cdn/v1betaapi/model_get_statistics_response.go index 0c1e68431..dae0247b9 100644 --- a/services/cdn/v1betaapi/model_get_statistics_response.go +++ b/services/cdn/v1betaapi/model_get_statistics_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_http_backend.go b/services/cdn/v1betaapi/model_http_backend.go index fc367943d..0f02ea847 100644 --- a/services/cdn/v1betaapi/model_http_backend.go +++ b/services/cdn/v1betaapi/model_http_backend.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -22,7 +22,7 @@ var _ MappedNullable = &HttpBackend{} type HttpBackend struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing map[string][]string `json:"geofencing"` - // 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. + // 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. OriginRequestHeaders map[string]string `json:"originRequestHeaders"` OriginUrl string `json:"originUrl"` Type string `json:"type"` diff --git a/services/cdn/v1betaapi/model_http_backend_patch.go b/services/cdn/v1betaapi/model_http_backend_patch.go index f1c74d94c..135d04ef4 100644 --- a/services/cdn/v1betaapi/model_http_backend_patch.go +++ b/services/cdn/v1betaapi/model_http_backend_patch.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -22,7 +22,7 @@ var _ MappedNullable = &HttpBackendPatch{} type HttpBackendPatch struct { // An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. Geofencing *map[string][]string `json:"geofencing,omitempty"` - // 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. + // 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. OriginRequestHeaders *map[string]string `json:"originRequestHeaders,omitempty"` OriginUrl *string `json:"originUrl,omitempty"` // This property is required to determine the used backend type. diff --git a/services/cdn/v1betaapi/model_list_distributions_response.go b/services/cdn/v1betaapi/model_list_distributions_response.go index ba45cdc57..303dcee75 100644 --- a/services/cdn/v1betaapi/model_list_distributions_response.go +++ b/services/cdn/v1betaapi/model_list_distributions_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_list_waf_collections_response.go b/services/cdn/v1betaapi/model_list_waf_collections_response.go index cee2634d6..07bd35cdb 100644 --- a/services/cdn/v1betaapi/model_list_waf_collections_response.go +++ b/services/cdn/v1betaapi/model_list_waf_collections_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_loki_log_sink.go b/services/cdn/v1betaapi/model_loki_log_sink.go index 5bde6bc98..fea33bd4d 100644 --- a/services/cdn/v1betaapi/model_loki_log_sink.go +++ b/services/cdn/v1betaapi/model_loki_log_sink.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_optimizer.go b/services/cdn/v1betaapi/model_optimizer.go index ba480d80d..bc9e0e4a9 100644 --- a/services/cdn/v1betaapi/model_optimizer.go +++ b/services/cdn/v1betaapi/model_optimizer.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_optimizer_patch.go b/services/cdn/v1betaapi/model_optimizer_patch.go index 1f96e283a..50566f2e2 100644 --- a/services/cdn/v1betaapi/model_optimizer_patch.go +++ b/services/cdn/v1betaapi/model_optimizer_patch.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_patch_distribution_payload.go b/services/cdn/v1betaapi/model_patch_distribution_payload.go index 172dc73cb..6f11c4dad 100644 --- a/services/cdn/v1betaapi/model_patch_distribution_payload.go +++ b/services/cdn/v1betaapi/model_patch_distribution_payload.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PatchDistributionPayload{} // PatchDistributionPayload Defines a partial distribution. Set values type PatchDistributionPayload struct { Config *ConfigPatch `json:"config,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId *string `json:"intentId,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1betaapi/model_patch_distribution_response.go b/services/cdn/v1betaapi/model_patch_distribution_response.go index a60e4bc60..aab403b2e 100644 --- a/services/cdn/v1betaapi/model_patch_distribution_response.go +++ b/services/cdn/v1betaapi/model_patch_distribution_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_patch_loki_log_sink.go b/services/cdn/v1betaapi/model_patch_loki_log_sink.go index 6898cac1d..7a1d71eb0 100644 --- a/services/cdn/v1betaapi/model_patch_loki_log_sink.go +++ b/services/cdn/v1betaapi/model_patch_loki_log_sink.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_purge_cache_payload.go b/services/cdn/v1betaapi/model_purge_cache_payload.go index cc2f2a1e0..6bc115381 100644 --- a/services/cdn/v1betaapi/model_purge_cache_payload.go +++ b/services/cdn/v1betaapi/model_purge_cache_payload.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -19,7 +19,7 @@ var _ MappedNullable = &PurgeCachePayload{} // PurgeCachePayload struct for PurgeCachePayload type PurgeCachePayload struct { - // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. + // Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. Path *string `json:"path,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1betaapi/model_put_custom_domain_custom_certificate.go b/services/cdn/v1betaapi/model_put_custom_domain_custom_certificate.go index 2c8f84fba..d1f47d768 100644 --- a/services/cdn/v1betaapi/model_put_custom_domain_custom_certificate.go +++ b/services/cdn/v1betaapi/model_put_custom_domain_custom_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_put_custom_domain_managed_certificate.go b/services/cdn/v1betaapi/model_put_custom_domain_managed_certificate.go index 75ef8018a..7fae94c96 100644 --- a/services/cdn/v1betaapi/model_put_custom_domain_managed_certificate.go +++ b/services/cdn/v1betaapi/model_put_custom_domain_managed_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_put_custom_domain_payload.go b/services/cdn/v1betaapi/model_put_custom_domain_payload.go index 1514d4fbb..c4c6c291c 100644 --- a/services/cdn/v1betaapi/model_put_custom_domain_payload.go +++ b/services/cdn/v1betaapi/model_put_custom_domain_payload.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PutCustomDomainPayload{} // PutCustomDomainPayload struct for PutCustomDomainPayload type PutCustomDomainPayload struct { Certificate *PutCustomDomainPayloadCertificate `json:"certificate,omitempty"` - // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. + // While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. IntentId *string `json:"intentId,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/services/cdn/v1betaapi/model_put_custom_domain_payload_certificate.go b/services/cdn/v1betaapi/model_put_custom_domain_payload_certificate.go index a647a6dc4..1319c4b9e 100644 --- a/services/cdn/v1betaapi/model_put_custom_domain_payload_certificate.go +++ b/services/cdn/v1betaapi/model_put_custom_domain_payload_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_put_custom_domain_response.go b/services/cdn/v1betaapi/model_put_custom_domain_response.go index eb77c8ea9..18960cc65 100644 --- a/services/cdn/v1betaapi/model_put_custom_domain_response.go +++ b/services/cdn/v1betaapi/model_put_custom_domain_response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_put_custom_domain_response_certificate.go b/services/cdn/v1betaapi/model_put_custom_domain_response_certificate.go index 5ee25644d..adf15c2f5 100644 --- a/services/cdn/v1betaapi/model_put_custom_domain_response_certificate.go +++ b/services/cdn/v1betaapi/model_put_custom_domain_response_certificate.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_region.go b/services/cdn/v1betaapi/model_region.go index b44f64032..929679bd6 100644 --- a/services/cdn/v1betaapi/model_region.go +++ b/services/cdn/v1betaapi/model_region.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_status_error.go b/services/cdn/v1betaapi/model_status_error.go index 8d9ec2726..c92e72406 100644 --- a/services/cdn/v1betaapi/model_status_error.go +++ b/services/cdn/v1betaapi/model_status_error.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_config.go b/services/cdn/v1betaapi/model_waf_config.go index 43952c523..9985edb92 100644 --- a/services/cdn/v1betaapi/model_waf_config.go +++ b/services/cdn/v1betaapi/model_waf_config.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -23,7 +23,7 @@ type WafConfig struct { AllowedHttpMethods []string `json:"allowedHttpMethods,omitempty"` AllowedHttpVersions []string `json:"allowedHttpVersions,omitempty"` AllowedRequestContentTypes []string `json:"allowedRequestContentTypes,omitempty"` - // IDs of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. + // IDs of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. EnabledRuleIds []string `json:"enabledRuleIds"` Mode WafMode `json:"mode"` ParanoiaLevel *WafParanoiaLevel `json:"paranoiaLevel,omitempty"` diff --git a/services/cdn/v1betaapi/model_waf_config_patch.go b/services/cdn/v1betaapi/model_waf_config_patch.go index 735cc3bcb..510cdd3ce 100644 --- a/services/cdn/v1betaapi/model_waf_config_patch.go +++ b/services/cdn/v1betaapi/model_waf_config_patch.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_mode.go b/services/cdn/v1betaapi/model_waf_mode.go index e5f810644..05a4a33f7 100644 --- a/services/cdn/v1betaapi/model_waf_mode.go +++ b/services/cdn/v1betaapi/model_waf_mode.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_paranoia_level.go b/services/cdn/v1betaapi/model_waf_paranoia_level.go index 966a78ef5..b24ac68bf 100644 --- a/services/cdn/v1betaapi/model_waf_paranoia_level.go +++ b/services/cdn/v1betaapi/model_waf_paranoia_level.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -15,7 +15,7 @@ import ( "fmt" ) -// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. +// WafParanoiaLevel The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. type WafParanoiaLevel string // List of WafParanoiaLevel diff --git a/services/cdn/v1betaapi/model_waf_rule.go b/services/cdn/v1betaapi/model_waf_rule.go index 7f170c356..18fc6e700 100644 --- a/services/cdn/v1betaapi/model_waf_rule.go +++ b/services/cdn/v1betaapi/model_waf_rule.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_rule_action.go b/services/cdn/v1betaapi/model_waf_rule_action.go index dd6bfdb05..fa521673e 100644 --- a/services/cdn/v1betaapi/model_waf_rule_action.go +++ b/services/cdn/v1betaapi/model_waf_rule_action.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_rule_collection.go b/services/cdn/v1betaapi/model_waf_rule_collection.go index 5f9fe52c3..5b22ae79b 100644 --- a/services/cdn/v1betaapi/model_waf_rule_collection.go +++ b/services/cdn/v1betaapi/model_waf_rule_collection.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_rule_group.go b/services/cdn/v1betaapi/model_waf_rule_group.go index 85fb211bf..b7b0d0bb6 100644 --- a/services/cdn/v1betaapi/model_waf_rule_group.go +++ b/services/cdn/v1betaapi/model_waf_rule_group.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_status_rule_block.go b/services/cdn/v1betaapi/model_waf_status_rule_block.go index a6d27f183..fcbc7322c 100644 --- a/services/cdn/v1betaapi/model_waf_status_rule_block.go +++ b/services/cdn/v1betaapi/model_waf_status_rule_block.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/model_waf_type.go b/services/cdn/v1betaapi/model_waf_type.go index 69e1b903f..540a1842b 100644 --- a/services/cdn/v1betaapi/model_waf_type.go +++ b/services/cdn/v1betaapi/model_waf_type.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ @@ -15,7 +15,7 @@ import ( "fmt" ) -// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) +// WafType Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) type WafType string // List of WafType diff --git a/services/cdn/v1betaapi/model_waf_violation.go b/services/cdn/v1betaapi/model_waf_violation.go index 9c0e42aeb..95614b340 100644 --- a/services/cdn/v1betaapi/model_waf_violation.go +++ b/services/cdn/v1betaapi/model_waf_violation.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/response.go b/services/cdn/v1betaapi/response.go index 10fa31dfb..17dd8739d 100644 --- a/services/cdn/v1betaapi/response.go +++ b/services/cdn/v1betaapi/response.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ diff --git a/services/cdn/v1betaapi/utils.go b/services/cdn/v1betaapi/utils.go index 9d34cb8b0..0f093c23f 100644 --- a/services/cdn/v1betaapi/utils.go +++ b/services/cdn/v1betaapi/utils.go @@ -1,7 +1,7 @@ /* -STACKIT CDN API +STACKIT CDN API (DEPRECATED) -API used to create and manage your CDN distributions. +**DEPRECATED:** This API version (1beta.0.0) is deprecated. Please migrate to the version (v1). API used to create and manage your CDN distributions. API version: 1beta.0.0 */ From d9b03b7271e45571fa101433ac6a9b1faaa1c33a Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Thu, 23 Apr 2026 17:13:41 +0200 Subject: [PATCH 2/2] chore(cdn) write changelogs, bump version --- CHANGELOG.md | 5 +++++ services/cdn/CHANGELOG.md | 6 ++++++ services/cdn/VERSION | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc878e251..046af6fce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,11 @@ - Minimal go version is now Go 1.25 - [v1.14.1](services/cdn/CHANGELOG.md#v1141) - **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0` + - [v1.15.0](services/cdn/CHANGELOG.md#v1150) + - `v1api`: + - **Feature:** Add fields `ForwardHostHeader`, `StripResponseCookies` and `Tls` to models: `Config`, `ConfigPatch`, `CreateDistributionPayload` + - **Feature:** new models `TlsConfig`, `TlsConfigPatch` + - `v1beta`: v1beta was deprecated please migrate to `v1api` - `certificates`: - [v1.5.2](services/certificates/CHANGELOG.md#v152) - **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1` diff --git a/services/cdn/CHANGELOG.md b/services/cdn/CHANGELOG.md index 0f4589716..2ef927439 100644 --- a/services/cdn/CHANGELOG.md +++ b/services/cdn/CHANGELOG.md @@ -1,3 +1,9 @@ +## v1.15.0 +- `v1api`: + - **Feature:** Add fields `ForwardHostHeader`, `StripResponseCookies` and `Tls` to model `Config`, `ConfigPatch`, `CreateDistributionPayload` + - **Feature:** new models `TlsConfig`, `TlsConfigPatch` +- `v1beta`: v1beta was deprecated please migrate to `v1api` + ## v1.14.1 - **Dependencies:** Bump STACKIT SDK core module from `v0.24.1` to `v0.25.0` diff --git a/services/cdn/VERSION b/services/cdn/VERSION index 5dbf859d1..440ddd8f1 100644 --- a/services/cdn/VERSION +++ b/services/cdn/VERSION @@ -1 +1 @@ -v1.14.1 +v1.15.0