diff --git a/CHANGELOG.md b/CHANGELOG.md index 4442bbfd5..b99a3d8ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ - **Breaking Change:** Remove unused `ProjectId` model struct - `iaas`: [v1.1.0](services/iaas/CHANGELOG.md#v110) - **Breaking Change:** Removal of unused model structs: `Area`, `AreaConfig`, `AreaPrefixConfigIPv4`, `UpdateAreaIPv4`, `NetworkAreaIPv4`, `CreateAreaAddressFamily`, `CreateAreaIPv4`, `CreateNetworkAddressFamily`, `CreateNetworkIPv4Body`, `CreateNetworkIPv6Body`, `CreateServerPayloadBootVolume`, `CreateServerPayloadNetworking`, `NullableUpdateAreaAddressFamily`, `CreateServerPayloadNetworking`, `UpdateNetworkAddressFamily`, `CreateServerPayloadNetworking`, `CreateServerPayloadNetworking` +- `cdn`: [v2.1.0](services/cdn/CHANGELOG.md#v210) + - **Breaking change:** Removal of unused model structs: `GetLogsSearchFiltersResponse`, `PatchLokiLogSink` ## Release (2025-10-29) - `stackitmarketplace`: [v1.15.0](services/stackitmarketplace/CHANGELOG.md#v1150) diff --git a/services/cdn/CHANGELOG.md b/services/cdn/CHANGELOG.md index e6762cac7..9c84fcfd6 100644 --- a/services/cdn/CHANGELOG.md +++ b/services/cdn/CHANGELOG.md @@ -1,3 +1,6 @@ +## v2.1.0 +- **Breaking change:** Removal of unused model structs: `GetLogsSearchFiltersResponse`, `PatchLokiLogSink` + ## v2.0.0 - **Feature:** Switch from `v1beta` CDN API version to `v1beta2` version. - **Breaking change:** Changed spelling from `WAF` to `Waf` in model struct names diff --git a/services/cdn/VERSION b/services/cdn/VERSION index 46b105a30..1defe531b 100644 --- a/services/cdn/VERSION +++ b/services/cdn/VERSION @@ -1 +1 @@ -v2.0.0 +v2.1.0 diff --git a/services/cdn/model_get_logs_search_filters_response.go b/services/cdn/model_get_logs_search_filters_response.go deleted file mode 100644 index f702a90b7..000000000 --- a/services/cdn/model_get_logs_search_filters_response.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -CDN API - -API used to create and manage your CDN distributions. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cdn - -import ( - "encoding/json" -) - -// checks if the GetLogsSearchFiltersResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetLogsSearchFiltersResponse{} - -/* - types and functions for filters -*/ - -// isArray -type GetLogsSearchFiltersResponseGetFiltersAttributeType = *[]string -type GetLogsSearchFiltersResponseGetFiltersArgType = []string -type GetLogsSearchFiltersResponseGetFiltersRetType = []string - -func getGetLogsSearchFiltersResponseGetFiltersAttributeTypeOk(arg GetLogsSearchFiltersResponseGetFiltersAttributeType) (ret GetLogsSearchFiltersResponseGetFiltersRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setGetLogsSearchFiltersResponseGetFiltersAttributeType(arg *GetLogsSearchFiltersResponseGetFiltersAttributeType, val GetLogsSearchFiltersResponseGetFiltersRetType) { - *arg = &val -} - -// GetLogsSearchFiltersResponse struct for GetLogsSearchFiltersResponse -type GetLogsSearchFiltersResponse struct { - // REQUIRED - Filters GetLogsSearchFiltersResponseGetFiltersAttributeType `json:"filters" required:"true"` -} - -type _GetLogsSearchFiltersResponse GetLogsSearchFiltersResponse - -// NewGetLogsSearchFiltersResponse instantiates a new GetLogsSearchFiltersResponse 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 NewGetLogsSearchFiltersResponse(filters GetLogsSearchFiltersResponseGetFiltersArgType) *GetLogsSearchFiltersResponse { - this := GetLogsSearchFiltersResponse{} - setGetLogsSearchFiltersResponseGetFiltersAttributeType(&this.Filters, filters) - return &this -} - -// NewGetLogsSearchFiltersResponseWithDefaults instantiates a new GetLogsSearchFiltersResponse 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 NewGetLogsSearchFiltersResponseWithDefaults() *GetLogsSearchFiltersResponse { - this := GetLogsSearchFiltersResponse{} - return &this -} - -// GetFilters returns the Filters field value -func (o *GetLogsSearchFiltersResponse) GetFilters() (ret GetLogsSearchFiltersResponseGetFiltersRetType) { - ret, _ = o.GetFiltersOk() - return ret -} - -// GetFiltersOk returns a tuple with the Filters field value -// and a boolean to check if the value has been set. -func (o *GetLogsSearchFiltersResponse) GetFiltersOk() (ret GetLogsSearchFiltersResponseGetFiltersRetType, ok bool) { - return getGetLogsSearchFiltersResponseGetFiltersAttributeTypeOk(o.Filters) -} - -// SetFilters sets field value -func (o *GetLogsSearchFiltersResponse) SetFilters(v GetLogsSearchFiltersResponseGetFiltersRetType) { - setGetLogsSearchFiltersResponseGetFiltersAttributeType(&o.Filters, v) -} - -func (o GetLogsSearchFiltersResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getGetLogsSearchFiltersResponseGetFiltersAttributeTypeOk(o.Filters); ok { - toSerialize["Filters"] = val - } - return toSerialize, nil -} - -type NullableGetLogsSearchFiltersResponse struct { - value *GetLogsSearchFiltersResponse - isSet bool -} - -func (v NullableGetLogsSearchFiltersResponse) Get() *GetLogsSearchFiltersResponse { - return v.value -} - -func (v *NullableGetLogsSearchFiltersResponse) Set(val *GetLogsSearchFiltersResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetLogsSearchFiltersResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetLogsSearchFiltersResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetLogsSearchFiltersResponse(val *GetLogsSearchFiltersResponse) *NullableGetLogsSearchFiltersResponse { - return &NullableGetLogsSearchFiltersResponse{value: val, isSet: true} -} - -func (v NullableGetLogsSearchFiltersResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetLogsSearchFiltersResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/cdn/model_get_logs_search_filters_response_test.go b/services/cdn/model_get_logs_search_filters_response_test.go deleted file mode 100644 index 51fc7c9ea..000000000 --- a/services/cdn/model_get_logs_search_filters_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -CDN API - -API used to create and manage your CDN distributions. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cdn diff --git a/services/cdn/model_patch_loki_log_sink.go b/services/cdn/model_patch_loki_log_sink.go deleted file mode 100644 index b7922a173..000000000 --- a/services/cdn/model_patch_loki_log_sink.go +++ /dev/null @@ -1,258 +0,0 @@ -/* -CDN API - -API used to create and manage your CDN distributions. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cdn - -import ( - "encoding/json" -) - -// checks if the PatchLokiLogSink type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PatchLokiLogSink{} - -/* - types and functions for password -*/ - -// isNotNullableString -type PatchLokiLogSinkGetPasswordAttributeType = *string - -func getPatchLokiLogSinkGetPasswordAttributeTypeOk(arg PatchLokiLogSinkGetPasswordAttributeType) (ret PatchLokiLogSinkGetPasswordRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setPatchLokiLogSinkGetPasswordAttributeType(arg *PatchLokiLogSinkGetPasswordAttributeType, val PatchLokiLogSinkGetPasswordRetType) { - *arg = &val -} - -type PatchLokiLogSinkGetPasswordArgType = string -type PatchLokiLogSinkGetPasswordRetType = string - -/* - types and functions for pushUrl -*/ - -// isNotNullableString -type PatchLokiLogSinkGetPushUrlAttributeType = *string - -func getPatchLokiLogSinkGetPushUrlAttributeTypeOk(arg PatchLokiLogSinkGetPushUrlAttributeType) (ret PatchLokiLogSinkGetPushUrlRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setPatchLokiLogSinkGetPushUrlAttributeType(arg *PatchLokiLogSinkGetPushUrlAttributeType, val PatchLokiLogSinkGetPushUrlRetType) { - *arg = &val -} - -type PatchLokiLogSinkGetPushUrlArgType = string -type PatchLokiLogSinkGetPushUrlRetType = string - -/* - types and functions for type -*/ - -// isNotNullableString -type PatchLokiLogSinkGetTypeAttributeType = *string - -func getPatchLokiLogSinkGetTypeAttributeTypeOk(arg PatchLokiLogSinkGetTypeAttributeType) (ret PatchLokiLogSinkGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setPatchLokiLogSinkGetTypeAttributeType(arg *PatchLokiLogSinkGetTypeAttributeType, val PatchLokiLogSinkGetTypeRetType) { - *arg = &val -} - -type PatchLokiLogSinkGetTypeArgType = string -type PatchLokiLogSinkGetTypeRetType = string - -/* - types and functions for username -*/ - -// isNotNullableString -type PatchLokiLogSinkGetUsernameAttributeType = *string - -func getPatchLokiLogSinkGetUsernameAttributeTypeOk(arg PatchLokiLogSinkGetUsernameAttributeType) (ret PatchLokiLogSinkGetUsernameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setPatchLokiLogSinkGetUsernameAttributeType(arg *PatchLokiLogSinkGetUsernameAttributeType, val PatchLokiLogSinkGetUsernameRetType) { - *arg = &val -} - -type PatchLokiLogSinkGetUsernameArgType = string -type PatchLokiLogSinkGetUsernameRetType = string - -// PatchLokiLogSink struct for PatchLokiLogSink -type PatchLokiLogSink struct { - // REQUIRED - Password PatchLokiLogSinkGetPasswordAttributeType `json:"password" required:"true"` - // REQUIRED - PushUrl PatchLokiLogSinkGetPushUrlAttributeType `json:"pushUrl" required:"true"` - // REQUIRED - Type PatchLokiLogSinkGetTypeAttributeType `json:"type" required:"true"` - // REQUIRED - Username PatchLokiLogSinkGetUsernameAttributeType `json:"username" required:"true"` -} - -type _PatchLokiLogSink PatchLokiLogSink - -// NewPatchLokiLogSink instantiates a new PatchLokiLogSink 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 NewPatchLokiLogSink(password PatchLokiLogSinkGetPasswordArgType, pushUrl PatchLokiLogSinkGetPushUrlArgType, types PatchLokiLogSinkGetTypeArgType, username PatchLokiLogSinkGetUsernameArgType) *PatchLokiLogSink { - this := PatchLokiLogSink{} - setPatchLokiLogSinkGetPasswordAttributeType(&this.Password, password) - setPatchLokiLogSinkGetPushUrlAttributeType(&this.PushUrl, pushUrl) - setPatchLokiLogSinkGetTypeAttributeType(&this.Type, types) - setPatchLokiLogSinkGetUsernameAttributeType(&this.Username, username) - return &this -} - -// NewPatchLokiLogSinkWithDefaults instantiates a new PatchLokiLogSink 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 NewPatchLokiLogSinkWithDefaults() *PatchLokiLogSink { - this := PatchLokiLogSink{} - return &this -} - -// GetPassword returns the Password field value -func (o *PatchLokiLogSink) GetPassword() (ret PatchLokiLogSinkGetPasswordRetType) { - ret, _ = o.GetPasswordOk() - return ret -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *PatchLokiLogSink) GetPasswordOk() (ret PatchLokiLogSinkGetPasswordRetType, ok bool) { - return getPatchLokiLogSinkGetPasswordAttributeTypeOk(o.Password) -} - -// SetPassword sets field value -func (o *PatchLokiLogSink) SetPassword(v PatchLokiLogSinkGetPasswordRetType) { - setPatchLokiLogSinkGetPasswordAttributeType(&o.Password, v) -} - -// GetPushUrl returns the PushUrl field value -func (o *PatchLokiLogSink) GetPushUrl() (ret PatchLokiLogSinkGetPushUrlRetType) { - ret, _ = o.GetPushUrlOk() - return ret -} - -// GetPushUrlOk returns a tuple with the PushUrl field value -// and a boolean to check if the value has been set. -func (o *PatchLokiLogSink) GetPushUrlOk() (ret PatchLokiLogSinkGetPushUrlRetType, ok bool) { - return getPatchLokiLogSinkGetPushUrlAttributeTypeOk(o.PushUrl) -} - -// SetPushUrl sets field value -func (o *PatchLokiLogSink) SetPushUrl(v PatchLokiLogSinkGetPushUrlRetType) { - setPatchLokiLogSinkGetPushUrlAttributeType(&o.PushUrl, v) -} - -// GetType returns the Type field value -func (o *PatchLokiLogSink) GetType() (ret PatchLokiLogSinkGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *PatchLokiLogSink) GetTypeOk() (ret PatchLokiLogSinkGetTypeRetType, ok bool) { - return getPatchLokiLogSinkGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -func (o *PatchLokiLogSink) SetType(v PatchLokiLogSinkGetTypeRetType) { - setPatchLokiLogSinkGetTypeAttributeType(&o.Type, v) -} - -// GetUsername returns the Username field value -func (o *PatchLokiLogSink) GetUsername() (ret PatchLokiLogSinkGetUsernameRetType) { - ret, _ = o.GetUsernameOk() - return ret -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *PatchLokiLogSink) GetUsernameOk() (ret PatchLokiLogSinkGetUsernameRetType, ok bool) { - return getPatchLokiLogSinkGetUsernameAttributeTypeOk(o.Username) -} - -// SetUsername sets field value -func (o *PatchLokiLogSink) SetUsername(v PatchLokiLogSinkGetUsernameRetType) { - setPatchLokiLogSinkGetUsernameAttributeType(&o.Username, v) -} - -func (o PatchLokiLogSink) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getPatchLokiLogSinkGetPasswordAttributeTypeOk(o.Password); ok { - toSerialize["Password"] = val - } - if val, ok := getPatchLokiLogSinkGetPushUrlAttributeTypeOk(o.PushUrl); ok { - toSerialize["PushUrl"] = val - } - if val, ok := getPatchLokiLogSinkGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - if val, ok := getPatchLokiLogSinkGetUsernameAttributeTypeOk(o.Username); ok { - toSerialize["Username"] = val - } - return toSerialize, nil -} - -type NullablePatchLokiLogSink struct { - value *PatchLokiLogSink - isSet bool -} - -func (v NullablePatchLokiLogSink) Get() *PatchLokiLogSink { - return v.value -} - -func (v *NullablePatchLokiLogSink) Set(val *PatchLokiLogSink) { - v.value = val - v.isSet = true -} - -func (v NullablePatchLokiLogSink) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchLokiLogSink) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchLokiLogSink(val *PatchLokiLogSink) *NullablePatchLokiLogSink { - return &NullablePatchLokiLogSink{value: val, isSet: true} -} - -func (v NullablePatchLokiLogSink) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchLokiLogSink) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/cdn/model_patch_loki_log_sink_test.go b/services/cdn/model_patch_loki_log_sink_test.go deleted file mode 100644 index 51fc7c9ea..000000000 --- a/services/cdn/model_patch_loki_log_sink_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -CDN API - -API used to create and manage your CDN distributions. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cdn