diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e8aa517f..ac0f41034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## Release (2025-xx-xx) +- `observability`: [v0.11.0](services/observability/CHANGELOG.md#v0110) + - **Feature:** Add new `GoogleChat` webhook - `scf`: [v0.2.1](services/scf/CHANGELOG.md#v021) - **Feature:** Add waiter for deletion of organization - `iaas`: [v0.29.1](services/iaas/CHANGELOG.md#v0291) diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index cbf335e5f..ba2fbad05 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.11.0 +- **Feature:** Add new `GoogleChat` webhook + ## v0.10.0 - **Feature:** Add new `CreateCredentialsPayload` model for creating credentials with optional description - **Feature:** Add `Description` field to `Credentials` and `ServiceKeysList` models diff --git a/services/observability/VERSION b/services/observability/VERSION index f78dc3652..e88c34ff0 100644 --- a/services/observability/VERSION +++ b/services/observability/VERSION @@ -1 +1 @@ -v0.10.0 \ No newline at end of file +v0.11.0 \ No newline at end of file diff --git a/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go b/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go index 88474e6c1..2d9f44a36 100644 --- a/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go +++ b/services/observability/model_create_alert_config_receiver_payload_web_hook_configs_inner.go @@ -17,6 +17,26 @@ import ( // checks if the CreateAlertConfigReceiverPayloadWebHookConfigsInner type satisfies the MappedNullable interface at compile time var _ MappedNullable = &CreateAlertConfigReceiverPayloadWebHookConfigsInner{} +/* + types and functions for googleChat +*/ + +// isBoolean +type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType = *bool +type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatArgType = bool +type CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType = bool + +func getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeTypeOk(arg CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType) (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType(arg *CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType, val CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType) { + *arg = &val +} + /* types and functions for msTeams */ @@ -80,7 +100,9 @@ type CreateAlertConfigReceiverPayloadWebHookConfigsInnerGetUrlRetType = string // CreateAlertConfigReceiverPayloadWebHookConfigsInner struct for CreateAlertConfigReceiverPayloadWebHookConfigsInner type CreateAlertConfigReceiverPayloadWebHookConfigsInner struct { - // Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such + // Google Chat webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, msTeams must be false. + GoogleChat CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType `json:"googleChat,omitempty"` + // Microsoft Teams webhooks require special handling. If you set this property to true, it is treated as such. `Additional Validators:` * When set to true, googleChat must be false. MsTeams CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeType `json:"msTeams,omitempty"` // Whether to notify about resolved alerts. SendResolved CreateAlertConfigReceiverPayloadWebHookConfigsInnergetSendResolvedAttributeType `json:"sendResolved,omitempty"` @@ -102,6 +124,8 @@ func NewCreateAlertConfigReceiverPayloadWebHookConfigsInner() *CreateAlertConfig // but it doesn't guarantee that properties required by API are set func NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults() *CreateAlertConfigReceiverPayloadWebHookConfigsInner { this := CreateAlertConfigReceiverPayloadWebHookConfigsInner{} + var googleChat bool = false + this.GoogleChat = &googleChat var msTeams bool = false this.MsTeams = &msTeams var sendResolved bool = true @@ -109,6 +133,29 @@ func NewCreateAlertConfigReceiverPayloadWebHookConfigsInnerWithDefaults() *Creat return &this } +// GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChat() (res CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType) { + res, _ = o.GetGoogleChatOk() + return +} + +// GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetGoogleChatOk() (ret CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType, ok bool) { + return getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeTypeOk(o.GoogleChat) +} + +// HasGoogleChat returns a boolean if a field has been set. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) HasGoogleChat() bool { + _, ok := o.GetGoogleChatOk() + return ok +} + +// SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetGoogleChat(v CreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatRetType) { + setCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeType(&o.GoogleChat, v) +} + // GetMsTeams returns the MsTeams field value if set, zero value otherwise. func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) GetMsTeams() (res CreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsRetType) { res, _ = o.GetMsTeamsOk() @@ -180,6 +227,9 @@ func (o *CreateAlertConfigReceiverPayloadWebHookConfigsInner) SetUrl(v CreateAle func (o CreateAlertConfigReceiverPayloadWebHookConfigsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetGoogleChatAttributeTypeOk(o.GoogleChat); ok { + toSerialize["GoogleChat"] = val + } if val, ok := getCreateAlertConfigReceiverPayloadWebHookConfigsInnergetMsTeamsAttributeTypeOk(o.MsTeams); ok { toSerialize["MsTeams"] = val } diff --git a/services/observability/model_web_hook.go b/services/observability/model_web_hook.go index a8c4c5d13..6a18b125f 100644 --- a/services/observability/model_web_hook.go +++ b/services/observability/model_web_hook.go @@ -17,6 +17,26 @@ import ( // checks if the WebHook type satisfies the MappedNullable interface at compile time var _ MappedNullable = &WebHook{} +/* + types and functions for googleChat +*/ + +// isBoolean +type WebHookgetGoogleChatAttributeType = *bool +type WebHookgetGoogleChatArgType = bool +type WebHookgetGoogleChatRetType = bool + +func getWebHookgetGoogleChatAttributeTypeOk(arg WebHookgetGoogleChatAttributeType) (ret WebHookgetGoogleChatRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setWebHookgetGoogleChatAttributeType(arg *WebHookgetGoogleChatAttributeType, val WebHookgetGoogleChatRetType) { + *arg = &val +} + /* types and functions for msTeams */ @@ -80,6 +100,7 @@ type WebHookGetUrlRetType = string // WebHook struct for WebHook type WebHook struct { + GoogleChat WebHookgetGoogleChatAttributeType `json:"googleChat,omitempty"` MsTeams WebHookgetMsTeamsAttributeType `json:"msTeams,omitempty"` SendResolved WebHookgetSendResolvedAttributeType `json:"sendResolved,omitempty"` // REQUIRED @@ -103,6 +124,8 @@ func NewWebHook(url WebHookGetUrlArgType) *WebHook { // but it doesn't guarantee that properties required by API are set func NewWebHookWithDefaults() *WebHook { this := WebHook{} + var googleChat bool = false + this.GoogleChat = &googleChat var msTeams bool = false this.MsTeams = &msTeams var sendResolved bool = true @@ -110,6 +133,29 @@ func NewWebHookWithDefaults() *WebHook { return &this } +// GetGoogleChat returns the GoogleChat field value if set, zero value otherwise. +func (o *WebHook) GetGoogleChat() (res WebHookgetGoogleChatRetType) { + res, _ = o.GetGoogleChatOk() + return +} + +// GetGoogleChatOk returns a tuple with the GoogleChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebHook) GetGoogleChatOk() (ret WebHookgetGoogleChatRetType, ok bool) { + return getWebHookgetGoogleChatAttributeTypeOk(o.GoogleChat) +} + +// HasGoogleChat returns a boolean if a field has been set. +func (o *WebHook) HasGoogleChat() bool { + _, ok := o.GetGoogleChatOk() + return ok +} + +// SetGoogleChat gets a reference to the given bool and assigns it to the GoogleChat field. +func (o *WebHook) SetGoogleChat(v WebHookgetGoogleChatRetType) { + setWebHookgetGoogleChatAttributeType(&o.GoogleChat, v) +} + // GetMsTeams returns the MsTeams field value if set, zero value otherwise. func (o *WebHook) GetMsTeams() (res WebHookgetMsTeamsRetType) { res, _ = o.GetMsTeamsOk() @@ -175,6 +221,9 @@ func (o *WebHook) SetUrl(v WebHookGetUrlRetType) { func (o WebHook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getWebHookgetGoogleChatAttributeTypeOk(o.GoogleChat); ok { + toSerialize["GoogleChat"] = val + } if val, ok := getWebHookgetMsTeamsAttributeTypeOk(o.MsTeams); ok { toSerialize["MsTeams"] = val }