diff --git a/services/observability/oas_commit b/services/observability/oas_commit index 61b613dbf..c2d5477e1 100644 --- a/services/observability/oas_commit +++ b/services/observability/oas_commit @@ -1 +1 @@ -86c5d1afc6f0abe194346ae18c793cc857b5bc62 +72f3b665150d5f27cb0acf9a30bf8645b1dcea9e diff --git a/services/observability/v1api/client.go b/services/observability/v1api/client.go index 3f976e595..df64b0dcb 100644 --- a/services/observability/v1api/client.go +++ b/services/observability/v1api/client.go @@ -462,6 +462,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } if f, ok := v.(*os.File); ok { f, err = os.CreateTemp("", "HttpClientFile") if err != nil { diff --git a/services/observability/v1api/model_create_cert_check_400_response.go b/services/observability/v1api/model_create_cert_check_400_response.go index 4ceba818c..a66e1e019 100644 --- a/services/observability/v1api/model_create_cert_check_400_response.go +++ b/services/observability/v1api/model_create_cert_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateCertCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateCertCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_elasticsearch_check_400_response.go b/services/observability/v1api/model_create_elasticsearch_check_400_response.go index 9f9119a03..1d9854975 100644 --- a/services/observability/v1api/model_create_elasticsearch_check_400_response.go +++ b/services/observability/v1api/model_create_elasticsearch_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateElasticsearchCheck400Response) UnmarshalJSON(data []byte) error } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateElasticsearchCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_http_check_400_response.go b/services/observability/v1api/model_create_http_check_400_response.go index 9565a091d..e693cfd30 100644 --- a/services/observability/v1api/model_create_http_check_400_response.go +++ b/services/observability/v1api/model_create_http_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateHttpCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateHttpCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_mongodb_check_400_response.go b/services/observability/v1api/model_create_mongodb_check_400_response.go index e2bcd9756..adfcf2614 100644 --- a/services/observability/v1api/model_create_mongodb_check_400_response.go +++ b/services/observability/v1api/model_create_mongodb_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateMongodbCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMongodbCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_mysql_check_400_response.go b/services/observability/v1api/model_create_mysql_check_400_response.go index 3192fe5d1..b56dc6cd9 100644 --- a/services/observability/v1api/model_create_mysql_check_400_response.go +++ b/services/observability/v1api/model_create_mysql_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateMysqlCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateMysqlCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_network_check_400_response.go b/services/observability/v1api/model_create_network_check_400_response.go index 7f57b32b3..58a4af95e 100644 --- a/services/observability/v1api/model_create_network_check_400_response.go +++ b/services/observability/v1api/model_create_network_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateNetworkCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateNetworkCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_ping_check_400_response.go b/services/observability/v1api/model_create_ping_check_400_response.go index a8670ac22..ec803c809 100644 --- a/services/observability/v1api/model_create_ping_check_400_response.go +++ b/services/observability/v1api/model_create_ping_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreatePingCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePingCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_postgresql_check_400_response.go b/services/observability/v1api/model_create_postgresql_check_400_response.go index 31f2fba41..38a33da32 100644 --- a/services/observability/v1api/model_create_postgresql_check_400_response.go +++ b/services/observability/v1api/model_create_postgresql_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreatePostgresqlCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreatePostgresqlCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_rabbitmq_check_400_response.go b/services/observability/v1api/model_create_rabbitmq_check_400_response.go index af6628163..c1d94eb2a 100644 --- a/services/observability/v1api/model_create_rabbitmq_check_400_response.go +++ b/services/observability/v1api/model_create_rabbitmq_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateRabbitmqCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRabbitmqCheck400Response)") + } } } diff --git a/services/observability/v1api/model_create_redis_check_400_response.go b/services/observability/v1api/model_create_redis_check_400_response.go index 43ad46dd3..30104e427 100644 --- a/services/observability/v1api/model_create_redis_check_400_response.go +++ b/services/observability/v1api/model_create_redis_check_400_response.go @@ -75,7 +75,16 @@ func (dst *CreateRedisCheck400Response) UnmarshalJSON(data []byte) error { } else if match == 1 { return nil // exactly one match } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") + } + if err != nil { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response): %v", err) + } else { + return fmt.Errorf("data failed to match schemas in oneOf(CreateRedisCheck400Response)") + } } } diff --git a/services/observability/v1api/model_error.go b/services/observability/v1api/model_error.go index 1d2b2f9c2..100047596 100644 --- a/services/observability/v1api/model_error.go +++ b/services/observability/v1api/model_error.go @@ -21,8 +21,8 @@ var _ MappedNullable = &Error{} // Error struct for Error type Error struct { - Errors []map[string]string `json:"errors,omitempty"` - Message string `json:"message"` + Errors []map[string]*string `json:"errors,omitempty"` + Message string `json:"message"` AdditionalProperties map[string]interface{} } @@ -47,9 +47,9 @@ func NewErrorWithDefaults() *Error { } // GetErrors returns the Errors field value if set, zero value otherwise. -func (o *Error) GetErrors() []map[string]string { +func (o *Error) GetErrors() []map[string]*string { if o == nil || IsNil(o.Errors) { - var ret []map[string]string + var ret []map[string]*string return ret } return o.Errors @@ -57,7 +57,7 @@ func (o *Error) GetErrors() []map[string]string { // GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Error) GetErrorsOk() ([]map[string]string, bool) { +func (o *Error) GetErrorsOk() ([]map[string]*string, bool) { if o == nil || IsNil(o.Errors) { return nil, false } @@ -73,8 +73,8 @@ func (o *Error) HasErrors() bool { return false } -// SetErrors gets a reference to the given []map[string]string and assigns it to the Errors field. -func (o *Error) SetErrors(v []map[string]string) { +// SetErrors gets a reference to the given []map[string]*string and assigns it to the Errors field. +func (o *Error) SetErrors(v []map[string]*string) { o.Errors = v } diff --git a/services/observability/v1api/model_get_credentials_response.go b/services/observability/v1api/model_get_credentials_response.go index 2119182ca..60f3ca45b 100644 --- a/services/observability/v1api/model_get_credentials_response.go +++ b/services/observability/v1api/model_get_credentials_response.go @@ -21,10 +21,10 @@ var _ MappedNullable = &GetCredentialsResponse{} // GetCredentialsResponse struct for GetCredentialsResponse type GetCredentialsResponse struct { - CredentialsInfo *map[string]string `json:"credentialsInfo,omitempty"` - Id string `json:"id"` - Message string `json:"message"` - Name string `json:"name"` + CredentialsInfo *map[string]*string `json:"credentialsInfo,omitempty"` + Id string `json:"id"` + Message string `json:"message"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -51,9 +51,9 @@ func NewGetCredentialsResponseWithDefaults() *GetCredentialsResponse { } // GetCredentialsInfo returns the CredentialsInfo field value if set, zero value otherwise. -func (o *GetCredentialsResponse) GetCredentialsInfo() map[string]string { +func (o *GetCredentialsResponse) GetCredentialsInfo() map[string]*string { if o == nil || IsNil(o.CredentialsInfo) { - var ret map[string]string + var ret map[string]*string return ret } return *o.CredentialsInfo @@ -61,7 +61,7 @@ func (o *GetCredentialsResponse) GetCredentialsInfo() map[string]string { // GetCredentialsInfoOk returns a tuple with the CredentialsInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GetCredentialsResponse) GetCredentialsInfoOk() (*map[string]string, bool) { +func (o *GetCredentialsResponse) GetCredentialsInfoOk() (*map[string]*string, bool) { if o == nil || IsNil(o.CredentialsInfo) { return nil, false } @@ -77,8 +77,8 @@ func (o *GetCredentialsResponse) HasCredentialsInfo() bool { return false } -// SetCredentialsInfo gets a reference to the given map[string]string and assigns it to the CredentialsInfo field. -func (o *GetCredentialsResponse) SetCredentialsInfo(v map[string]string) { +// SetCredentialsInfo gets a reference to the given map[string]*string and assigns it to the CredentialsInfo field. +func (o *GetCredentialsResponse) SetCredentialsInfo(v map[string]*string) { o.CredentialsInfo = &v } diff --git a/services/observability/v1api/model_get_instance_response.go b/services/observability/v1api/model_get_instance_response.go index faabcfff9..5ac9428bb 100644 --- a/services/observability/v1api/model_get_instance_response.go +++ b/services/observability/v1api/model_get_instance_response.go @@ -28,7 +28,7 @@ type GetInstanceResponse struct { IsUpdatable *bool `json:"isUpdatable,omitempty"` Message string `json:"message"` Name *string `json:"name,omitempty"` - Parameters *map[string]string `json:"parameters,omitempty"` + Parameters *map[string]*string `json:"parameters,omitempty"` PlanId string `json:"planId"` PlanName string `json:"planName"` PlanSchema *string `json:"planSchema,omitempty"` @@ -276,9 +276,9 @@ func (o *GetInstanceResponse) SetName(v string) { } // GetParameters returns the Parameters field value if set, zero value otherwise. -func (o *GetInstanceResponse) GetParameters() map[string]string { +func (o *GetInstanceResponse) GetParameters() map[string]*string { if o == nil || IsNil(o.Parameters) { - var ret map[string]string + var ret map[string]*string return ret } return *o.Parameters @@ -286,7 +286,7 @@ func (o *GetInstanceResponse) GetParameters() map[string]string { // GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GetInstanceResponse) GetParametersOk() (*map[string]string, bool) { +func (o *GetInstanceResponse) GetParametersOk() (*map[string]*string, bool) { if o == nil || IsNil(o.Parameters) { return nil, false } @@ -302,8 +302,8 @@ func (o *GetInstanceResponse) HasParameters() bool { return false } -// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field. -func (o *GetInstanceResponse) SetParameters(v map[string]string) { +// SetParameters gets a reference to the given map[string]*string and assigns it to the Parameters field. +func (o *GetInstanceResponse) SetParameters(v map[string]*string) { o.Parameters = &v } diff --git a/services/observability/v1api/model_project_instance_full.go b/services/observability/v1api/model_project_instance_full.go index 952178e58..b51031dda 100644 --- a/services/observability/v1api/model_project_instance_full.go +++ b/services/observability/v1api/model_project_instance_full.go @@ -27,7 +27,7 @@ type ProjectInstanceFull struct { Name *string `json:"name,omitempty"` PlanName string `json:"planName"` ServiceName string `json:"serviceName"` - Status Status1 `json:"status"` + Status Status `json:"status"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _ProjectInstanceFull ProjectInstanceFull // 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 NewProjectInstanceFull(id string, instance string, planName string, serviceName string, status Status1) *ProjectInstanceFull { +func NewProjectInstanceFull(id string, instance string, planName string, serviceName string, status Status) *ProjectInstanceFull { this := ProjectInstanceFull{} this.Id = id this.Instance = instance @@ -227,9 +227,9 @@ func (o *ProjectInstanceFull) SetServiceName(v string) { } // GetStatus returns the Status field value -func (o *ProjectInstanceFull) GetStatus() Status1 { +func (o *ProjectInstanceFull) GetStatus() Status { if o == nil { - var ret Status1 + var ret Status return ret } @@ -238,7 +238,7 @@ func (o *ProjectInstanceFull) GetStatus() Status1 { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *ProjectInstanceFull) GetStatusOk() (*Status1, bool) { +func (o *ProjectInstanceFull) GetStatusOk() (*Status, bool) { if o == nil { return nil, false } @@ -246,7 +246,7 @@ func (o *ProjectInstanceFull) GetStatusOk() (*Status1, bool) { } // SetStatus sets field value -func (o *ProjectInstanceFull) SetStatus(v Status1) { +func (o *ProjectInstanceFull) SetStatus(v Status) { o.Status = v } diff --git a/services/observability/v1api/model_route_serializer.go b/services/observability/v1api/model_route_serializer.go index 9fa31c8ab..fc8234395 100644 --- a/services/observability/v1api/model_route_serializer.go +++ b/services/observability/v1api/model_route_serializer.go @@ -21,16 +21,16 @@ var _ MappedNullable = &RouteSerializer{} // RouteSerializer struct for RouteSerializer type RouteSerializer struct { - Continue *bool `json:"continue,omitempty"` - GroupBy []string `json:"groupBy,omitempty"` - GroupInterval *string `json:"groupInterval,omitempty"` - GroupWait *string `json:"groupWait,omitempty"` - Match *map[string]string `json:"match,omitempty"` - MatchRe *map[string]string `json:"matchRe,omitempty"` - Matchers []string `json:"matchers,omitempty"` - Receiver string `json:"receiver"` - RepeatInterval *string `json:"repeatInterval,omitempty"` - Routes []map[string]string `json:"routes,omitempty"` + Continue *bool `json:"continue,omitempty"` + GroupBy []string `json:"groupBy,omitempty"` + GroupInterval *string `json:"groupInterval,omitempty"` + GroupWait *string `json:"groupWait,omitempty"` + Match *map[string]string `json:"match,omitempty"` + MatchRe *map[string]string `json:"matchRe,omitempty"` + Matchers []string `json:"matchers,omitempty"` + Receiver string `json:"receiver"` + RepeatInterval *string `json:"repeatInterval,omitempty"` + Routes []map[string]*string `json:"routes,omitempty"` AdditionalProperties map[string]interface{} } @@ -351,9 +351,9 @@ func (o *RouteSerializer) SetRepeatInterval(v string) { } // GetRoutes returns the Routes field value if set, zero value otherwise. -func (o *RouteSerializer) GetRoutes() []map[string]string { +func (o *RouteSerializer) GetRoutes() []map[string]*string { if o == nil || IsNil(o.Routes) { - var ret []map[string]string + var ret []map[string]*string return ret } return o.Routes @@ -361,7 +361,7 @@ func (o *RouteSerializer) GetRoutes() []map[string]string { // GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RouteSerializer) GetRoutesOk() ([]map[string]string, bool) { +func (o *RouteSerializer) GetRoutesOk() ([]map[string]*string, bool) { if o == nil || IsNil(o.Routes) { return nil, false } @@ -377,8 +377,8 @@ func (o *RouteSerializer) HasRoutes() bool { return false } -// SetRoutes gets a reference to the given []map[string]string and assigns it to the Routes field. -func (o *RouteSerializer) SetRoutes(v []map[string]string) { +// SetRoutes gets a reference to the given []map[string]*string and assigns it to the Routes field. +func (o *RouteSerializer) SetRoutes(v []map[string]*string) { o.Routes = v } diff --git a/services/observability/v1api/model_service_keys_list.go b/services/observability/v1api/model_service_keys_list.go index 247d036d4..8213ca585 100644 --- a/services/observability/v1api/model_service_keys_list.go +++ b/services/observability/v1api/model_service_keys_list.go @@ -21,10 +21,10 @@ var _ MappedNullable = &ServiceKeysList{} // ServiceKeysList struct for ServiceKeysList type ServiceKeysList struct { - CredentialsInfo *map[string]string `json:"credentialsInfo,omitempty"` - Description *string `json:"description,omitempty"` - Id string `json:"id"` - Name string `json:"name"` + CredentialsInfo *map[string]*string `json:"credentialsInfo,omitempty"` + Description *string `json:"description,omitempty"` + Id string `json:"id"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewServiceKeysListWithDefaults() *ServiceKeysList { } // GetCredentialsInfo returns the CredentialsInfo field value if set, zero value otherwise. -func (o *ServiceKeysList) GetCredentialsInfo() map[string]string { +func (o *ServiceKeysList) GetCredentialsInfo() map[string]*string { if o == nil || IsNil(o.CredentialsInfo) { - var ret map[string]string + var ret map[string]*string return ret } return *o.CredentialsInfo @@ -60,7 +60,7 @@ func (o *ServiceKeysList) GetCredentialsInfo() map[string]string { // GetCredentialsInfoOk returns a tuple with the CredentialsInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceKeysList) GetCredentialsInfoOk() (*map[string]string, bool) { +func (o *ServiceKeysList) GetCredentialsInfoOk() (*map[string]*string, bool) { if o == nil || IsNil(o.CredentialsInfo) { return nil, false } @@ -76,8 +76,8 @@ func (o *ServiceKeysList) HasCredentialsInfo() bool { return false } -// SetCredentialsInfo gets a reference to the given map[string]string and assigns it to the CredentialsInfo field. -func (o *ServiceKeysList) SetCredentialsInfo(v map[string]string) { +// SetCredentialsInfo gets a reference to the given map[string]*string and assigns it to the CredentialsInfo field. +func (o *ServiceKeysList) SetCredentialsInfo(v map[string]*string) { o.CredentialsInfo = &v } diff --git a/services/observability/v1api/model_status_1.go b/services/observability/v1api/model_status_1.go deleted file mode 100644 index b65488cfc..000000000 --- a/services/observability/v1api/model_status_1.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -STACKIT Observability API - -API endpoints for Observability on STACKIT - -API version: 1.1.1 -Contact: stackit-argus@mail.schwarz -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" - "fmt" -) - -// Status1 the model 'Status1' -type Status1 string - -// List of Status_1 -const ( - STATUS1_CREATING Status1 = "CREATING" - STATUS1_CREATE_SUCCEEDED Status1 = "CREATE_SUCCEEDED" - STATUS1_CREATE_FAILED Status1 = "CREATE_FAILED" - STATUS1_DELETING Status1 = "DELETING" - STATUS1_DELETE_SUCCEEDED Status1 = "DELETE_SUCCEEDED" - STATUS1_DELETE_FAILED Status1 = "DELETE_FAILED" - STATUS1_UPDATING Status1 = "UPDATING" - STATUS1_UPDATE_SUCCEEDED Status1 = "UPDATE_SUCCEEDED" - STATUS1_UPDATE_FAILED Status1 = "UPDATE_FAILED" - STATUS1_UNKNOWN_DEFAULT_OPEN_API Status1 = "unknown_default_open_api" -) - -// All allowed values of Status1 enum -var AllowedStatus1EnumValues = []Status1{ - "CREATING", - "CREATE_SUCCEEDED", - "CREATE_FAILED", - "DELETING", - "DELETE_SUCCEEDED", - "DELETE_FAILED", - "UPDATING", - "UPDATE_SUCCEEDED", - "UPDATE_FAILED", - "unknown_default_open_api", -} - -func (v *Status1) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := Status1(value) - for _, existing := range AllowedStatus1EnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - *v = STATUS1_UNKNOWN_DEFAULT_OPEN_API - return nil -} - -// NewStatus1FromValue returns a pointer to a valid Status1 -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewStatus1FromValue(v string) (*Status1, error) { - ev := Status1(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Status1: valid values are %v", v, AllowedStatus1EnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v Status1) IsValid() bool { - for _, existing := range AllowedStatus1EnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to Status_1 value -func (v Status1) Ptr() *Status1 { - return &v -} - -type NullableStatus1 struct { - value *Status1 - isSet bool -} - -func (v NullableStatus1) Get() *Status1 { - return v.value -} - -func (v *NullableStatus1) Set(val *Status1) { - v.value = val - v.isSet = true -} - -func (v NullableStatus1) IsSet() bool { - return v.isSet -} - -func (v *NullableStatus1) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatus1(val *Status1) *NullableStatus1 { - return &NullableStatus1{value: val, isSet: true} -} - -func (v NullableStatus1) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStatus1) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -}