diff --git a/services/rabbitmq/model_backup.go b/services/rabbitmq/model_backup.go index 4abfbcfc1..ff9ef5e81 100644 --- a/services/rabbitmq/model_backup.go +++ b/services/rabbitmq/model_backup.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Backup type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Backup{} - // Backup struct for Backup type Backup struct { Downloadable *bool `json:"downloadable,omitempty"` @@ -29,246 +22,3 @@ type Backup struct { Status *string `json:"status"` TriggeredAt *string `json:"triggered_at,omitempty"` } - -type _Backup Backup - -// NewBackup instantiates a new Backup 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 NewBackup(finishedAt *string, id *int64, status *string) *Backup { - this := Backup{} - this.FinishedAt = finishedAt - this.Id = id - this.Status = status - return &this -} - -// NewBackupWithDefaults instantiates a new Backup 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 NewBackupWithDefaults() *Backup { - this := Backup{} - return &this -} - -// GetDownloadable returns the Downloadable field value if set, zero value otherwise. -func (o *Backup) GetDownloadable() *bool { - if o == nil || IsNil(o.Downloadable) { - var ret *bool - return ret - } - return o.Downloadable -} - -// GetDownloadableOk returns a tuple with the Downloadable field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Backup) GetDownloadableOk() (*bool, bool) { - if o == nil || IsNil(o.Downloadable) { - return nil, false - } - return o.Downloadable, true -} - -// HasDownloadable returns a boolean if a field has been set. -func (o *Backup) HasDownloadable() bool { - if o != nil && !IsNil(o.Downloadable) { - return true - } - - return false -} - -// SetDownloadable gets a reference to the given bool and assigns it to the Downloadable field. -func (o *Backup) SetDownloadable(v *bool) { - o.Downloadable = v -} - -// GetFinishedAt returns the FinishedAt field value -func (o *Backup) GetFinishedAt() *string { - if o == nil { - var ret *string - return ret - } - - return o.FinishedAt -} - -// GetFinishedAtOk returns a tuple with the FinishedAt field value -// and a boolean to check if the value has been set. -func (o *Backup) GetFinishedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.FinishedAt, true -} - -// SetFinishedAt sets field value -func (o *Backup) SetFinishedAt(v *string) { - o.FinishedAt = v -} - -// GetId returns the Id field value -func (o *Backup) GetId() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *Backup) GetIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *Backup) SetId(v *int64) { - o.Id = v -} - -// GetSize returns the Size field value if set, zero value otherwise. -func (o *Backup) GetSize() *int64 { - if o == nil || IsNil(o.Size) { - var ret *int64 - return ret - } - return o.Size -} - -// GetSizeOk returns a tuple with the Size field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Backup) GetSizeOk() (*int64, bool) { - if o == nil || IsNil(o.Size) { - return nil, false - } - return o.Size, true -} - -// HasSize returns a boolean if a field has been set. -func (o *Backup) HasSize() bool { - if o != nil && !IsNil(o.Size) { - return true - } - - return false -} - -// SetSize gets a reference to the given int64 and assigns it to the Size field. -func (o *Backup) SetSize(v *int64) { - o.Size = v -} - -// GetStatus returns the Status field value -func (o *Backup) GetStatus() *string { - if o == nil { - var ret *string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *Backup) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Status, true -} - -// SetStatus sets field value -func (o *Backup) SetStatus(v *string) { - o.Status = v -} - -// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. -func (o *Backup) GetTriggeredAt() *string { - if o == nil || IsNil(o.TriggeredAt) { - var ret *string - return ret - } - return o.TriggeredAt -} - -// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Backup) GetTriggeredAtOk() (*string, bool) { - if o == nil || IsNil(o.TriggeredAt) { - return nil, false - } - return o.TriggeredAt, true -} - -// HasTriggeredAt returns a boolean if a field has been set. -func (o *Backup) HasTriggeredAt() bool { - if o != nil && !IsNil(o.TriggeredAt) { - return true - } - - return false -} - -// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. -func (o *Backup) SetTriggeredAt(v *string) { - o.TriggeredAt = v -} - -func (o Backup) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Downloadable) { - toSerialize["downloadable"] = o.Downloadable - } - toSerialize["finished_at"] = o.FinishedAt - toSerialize["id"] = o.Id - if !IsNil(o.Size) { - toSerialize["size"] = o.Size - } - toSerialize["status"] = o.Status - if !IsNil(o.TriggeredAt) { - toSerialize["triggered_at"] = o.TriggeredAt - } - return toSerialize, nil -} - -type NullableBackup struct { - value *Backup - isSet bool -} - -func (v NullableBackup) Get() *Backup { - return v.value -} - -func (v *NullableBackup) Set(val *Backup) { - v.value = val - v.isSet = true -} - -func (v NullableBackup) IsSet() bool { - return v.isSet -} - -func (v *NullableBackup) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBackup(val *Backup) *NullableBackup { - return &NullableBackup{value: val, isSet: true} -} - -func (v NullableBackup) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBackup) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_create_backup_response_item.go b/services/rabbitmq/model_create_backup_response_item.go index 73afc6214..f41983bc2 100644 --- a/services/rabbitmq/model_create_backup_response_item.go +++ b/services/rabbitmq/model_create_backup_response_item.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the CreateBackupResponseItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateBackupResponseItem{} - // CreateBackupResponseItem struct for CreateBackupResponseItem type CreateBackupResponseItem struct { // REQUIRED @@ -24,115 +17,3 @@ type CreateBackupResponseItem struct { // REQUIRED Message *string `json:"message"` } - -type _CreateBackupResponseItem CreateBackupResponseItem - -// NewCreateBackupResponseItem instantiates a new CreateBackupResponseItem 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 NewCreateBackupResponseItem(id *int64, message *string) *CreateBackupResponseItem { - this := CreateBackupResponseItem{} - this.Id = id - this.Message = message - return &this -} - -// NewCreateBackupResponseItemWithDefaults instantiates a new CreateBackupResponseItem 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 NewCreateBackupResponseItemWithDefaults() *CreateBackupResponseItem { - this := CreateBackupResponseItem{} - return &this -} - -// GetId returns the Id field value -func (o *CreateBackupResponseItem) GetId() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CreateBackupResponseItem) GetIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *CreateBackupResponseItem) SetId(v *int64) { - o.Id = v -} - -// GetMessage returns the Message field value -func (o *CreateBackupResponseItem) GetMessage() *string { - if o == nil { - var ret *string - return ret - } - - return o.Message -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -func (o *CreateBackupResponseItem) GetMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Message, true -} - -// SetMessage sets field value -func (o *CreateBackupResponseItem) SetMessage(v *string) { - o.Message = v -} - -func (o CreateBackupResponseItem) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["message"] = o.Message - return toSerialize, nil -} - -type NullableCreateBackupResponseItem struct { - value *CreateBackupResponseItem - isSet bool -} - -func (v NullableCreateBackupResponseItem) Get() *CreateBackupResponseItem { - return v.value -} - -func (v *NullableCreateBackupResponseItem) Set(val *CreateBackupResponseItem) { - v.value = val - v.isSet = true -} - -func (v NullableCreateBackupResponseItem) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateBackupResponseItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateBackupResponseItem(val *CreateBackupResponseItem) *NullableCreateBackupResponseItem { - return &NullableCreateBackupResponseItem{value: val, isSet: true} -} - -func (v NullableCreateBackupResponseItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateBackupResponseItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_create_instance_payload.go b/services/rabbitmq/model_create_instance_payload.go index a6a8caa9a..be8160b85 100644 --- a/services/rabbitmq/model_create_instance_payload.go +++ b/services/rabbitmq/model_create_instance_payload.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the CreateInstancePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateInstancePayload{} - // CreateInstancePayload struct for CreateInstancePayload type CreateInstancePayload struct { // REQUIRED @@ -25,150 +18,3 @@ type CreateInstancePayload struct { // REQUIRED PlanId *string `json:"planId"` } - -type _CreateInstancePayload CreateInstancePayload - -// NewCreateInstancePayload instantiates a new CreateInstancePayload 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 NewCreateInstancePayload(instanceName *string, planId *string) *CreateInstancePayload { - this := CreateInstancePayload{} - this.InstanceName = instanceName - this.PlanId = planId - return &this -} - -// NewCreateInstancePayloadWithDefaults instantiates a new CreateInstancePayload 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 NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { - this := CreateInstancePayload{} - return &this -} - -// GetInstanceName returns the InstanceName field value -func (o *CreateInstancePayload) GetInstanceName() *string { - if o == nil { - var ret *string - return ret - } - - return o.InstanceName -} - -// GetInstanceNameOk returns a tuple with the InstanceName field value -// and a boolean to check if the value has been set. -func (o *CreateInstancePayload) GetInstanceNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.InstanceName, true -} - -// SetInstanceName sets field value -func (o *CreateInstancePayload) SetInstanceName(v *string) { - o.InstanceName = v -} - -// GetParameters returns the Parameters field value if set, zero value otherwise. -func (o *CreateInstancePayload) GetParameters() *InstanceParameters { - if o == nil || IsNil(o.Parameters) { - var ret *InstanceParameters - return ret - } - return o.Parameters -} - -// 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 *CreateInstancePayload) GetParametersOk() (*InstanceParameters, bool) { - if o == nil || IsNil(o.Parameters) { - return nil, false - } - return o.Parameters, true -} - -// HasParameters returns a boolean if a field has been set. -func (o *CreateInstancePayload) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { - return true - } - - return false -} - -// SetParameters gets a reference to the given InstanceParameters and assigns it to the Parameters field. -func (o *CreateInstancePayload) SetParameters(v *InstanceParameters) { - o.Parameters = v -} - -// GetPlanId returns the PlanId field value -func (o *CreateInstancePayload) GetPlanId() *string { - if o == nil { - var ret *string - return ret - } - - return o.PlanId -} - -// GetPlanIdOk returns a tuple with the PlanId field value -// and a boolean to check if the value has been set. -func (o *CreateInstancePayload) GetPlanIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PlanId, true -} - -// SetPlanId sets field value -func (o *CreateInstancePayload) SetPlanId(v *string) { - o.PlanId = v -} - -func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["instanceName"] = o.InstanceName - if !IsNil(o.Parameters) { - toSerialize["parameters"] = o.Parameters - } - toSerialize["planId"] = o.PlanId - return toSerialize, nil -} - -type NullableCreateInstancePayload struct { - value *CreateInstancePayload - isSet bool -} - -func (v NullableCreateInstancePayload) Get() *CreateInstancePayload { - return v.value -} - -func (v *NullableCreateInstancePayload) Set(val *CreateInstancePayload) { - v.value = val - v.isSet = true -} - -func (v NullableCreateInstancePayload) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateInstancePayload) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateInstancePayload(val *CreateInstancePayload) *NullableCreateInstancePayload { - return &NullableCreateInstancePayload{value: val, isSet: true} -} - -func (v NullableCreateInstancePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateInstancePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_create_instance_response.go b/services/rabbitmq/model_create_instance_response.go index 279103631..b57903aac 100644 --- a/services/rabbitmq/model_create_instance_response.go +++ b/services/rabbitmq/model_create_instance_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the CreateInstanceResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateInstanceResponse{} - // CreateInstanceResponse struct for CreateInstanceResponse type CreateInstanceResponse struct { // REQUIRED InstanceId *string `json:"instanceId"` } - -type _CreateInstanceResponse CreateInstanceResponse - -// NewCreateInstanceResponse instantiates a new CreateInstanceResponse 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 NewCreateInstanceResponse(instanceId *string) *CreateInstanceResponse { - this := CreateInstanceResponse{} - this.InstanceId = instanceId - return &this -} - -// NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse 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 NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { - this := CreateInstanceResponse{} - return &this -} - -// GetInstanceId returns the InstanceId field value -func (o *CreateInstanceResponse) GetInstanceId() *string { - if o == nil { - var ret *string - return ret - } - - return o.InstanceId -} - -// GetInstanceIdOk returns a tuple with the InstanceId field value -// and a boolean to check if the value has been set. -func (o *CreateInstanceResponse) GetInstanceIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.InstanceId, true -} - -// SetInstanceId sets field value -func (o *CreateInstanceResponse) SetInstanceId(v *string) { - o.InstanceId = v -} - -func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["instanceId"] = o.InstanceId - return toSerialize, nil -} - -type NullableCreateInstanceResponse struct { - value *CreateInstanceResponse - isSet bool -} - -func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse { - return v.value -} - -func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) { - v.value = val - v.isSet = true -} - -func (v NullableCreateInstanceResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateInstanceResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse { - return &NullableCreateInstanceResponse{value: val, isSet: true} -} - -func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_credentials.go b/services/rabbitmq/model_credentials.go index 188a4db33..20d1a6148 100644 --- a/services/rabbitmq/model_credentials.go +++ b/services/rabbitmq/model_credentials.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Credentials type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Credentials{} - // Credentials struct for Credentials type Credentials struct { // REQUIRED @@ -36,456 +29,3 @@ type Credentials struct { // REQUIRED Username *string `json:"username"` } - -type _Credentials Credentials - -// NewCredentials instantiates a new Credentials 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 NewCredentials(host *string, password *string, username *string) *Credentials { - this := Credentials{} - this.Host = host - this.Password = password - this.Username = username - return &this -} - -// NewCredentialsWithDefaults instantiates a new Credentials 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 NewCredentialsWithDefaults() *Credentials { - this := Credentials{} - return &this -} - -// GetHost returns the Host field value -func (o *Credentials) GetHost() *string { - if o == nil { - var ret *string - return ret - } - - return o.Host -} - -// GetHostOk returns a tuple with the Host field value -// and a boolean to check if the value has been set. -func (o *Credentials) GetHostOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Host, true -} - -// SetHost sets field value -func (o *Credentials) SetHost(v *string) { - o.Host = v -} - -// GetHosts returns the Hosts field value if set, zero value otherwise. -func (o *Credentials) GetHosts() *[]string { - if o == nil || IsNil(o.Hosts) { - var ret *[]string - return ret - } - return o.Hosts -} - -// GetHostsOk returns a tuple with the Hosts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetHostsOk() (*[]string, bool) { - if o == nil || IsNil(o.Hosts) { - return nil, false - } - return o.Hosts, true -} - -// HasHosts returns a boolean if a field has been set. -func (o *Credentials) HasHosts() bool { - if o != nil && !IsNil(o.Hosts) { - return true - } - - return false -} - -// SetHosts gets a reference to the given []string and assigns it to the Hosts field. -func (o *Credentials) SetHosts(v *[]string) { - o.Hosts = v -} - -// GetHttpApiUri returns the HttpApiUri field value if set, zero value otherwise. -func (o *Credentials) GetHttpApiUri() *string { - if o == nil || IsNil(o.HttpApiUri) { - var ret *string - return ret - } - return o.HttpApiUri -} - -// GetHttpApiUriOk returns a tuple with the HttpApiUri field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetHttpApiUriOk() (*string, bool) { - if o == nil || IsNil(o.HttpApiUri) { - return nil, false - } - return o.HttpApiUri, true -} - -// HasHttpApiUri returns a boolean if a field has been set. -func (o *Credentials) HasHttpApiUri() bool { - if o != nil && !IsNil(o.HttpApiUri) { - return true - } - - return false -} - -// SetHttpApiUri gets a reference to the given string and assigns it to the HttpApiUri field. -func (o *Credentials) SetHttpApiUri(v *string) { - o.HttpApiUri = v -} - -// GetHttpApiUris returns the HttpApiUris field value if set, zero value otherwise. -func (o *Credentials) GetHttpApiUris() *[]string { - if o == nil || IsNil(o.HttpApiUris) { - var ret *[]string - return ret - } - return o.HttpApiUris -} - -// GetHttpApiUrisOk returns a tuple with the HttpApiUris field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetHttpApiUrisOk() (*[]string, bool) { - if o == nil || IsNil(o.HttpApiUris) { - return nil, false - } - return o.HttpApiUris, true -} - -// HasHttpApiUris returns a boolean if a field has been set. -func (o *Credentials) HasHttpApiUris() bool { - if o != nil && !IsNil(o.HttpApiUris) { - return true - } - - return false -} - -// SetHttpApiUris gets a reference to the given []string and assigns it to the HttpApiUris field. -func (o *Credentials) SetHttpApiUris(v *[]string) { - o.HttpApiUris = v -} - -// GetManagement returns the Management field value if set, zero value otherwise. -func (o *Credentials) GetManagement() *string { - if o == nil || IsNil(o.Management) { - var ret *string - return ret - } - return o.Management -} - -// GetManagementOk returns a tuple with the Management field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetManagementOk() (*string, bool) { - if o == nil || IsNil(o.Management) { - return nil, false - } - return o.Management, true -} - -// HasManagement returns a boolean if a field has been set. -func (o *Credentials) HasManagement() bool { - if o != nil && !IsNil(o.Management) { - return true - } - - return false -} - -// SetManagement gets a reference to the given string and assigns it to the Management field. -func (o *Credentials) SetManagement(v *string) { - o.Management = v -} - -// GetMqtt returns the Mqtt field value if set, zero value otherwise. -func (o *Credentials) GetMqtt() *string { - if o == nil || IsNil(o.Mqtt) { - var ret *string - return ret - } - return o.Mqtt -} - -// GetMqttOk returns a tuple with the Mqtt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetMqttOk() (*string, bool) { - if o == nil || IsNil(o.Mqtt) { - return nil, false - } - return o.Mqtt, true -} - -// HasMqtt returns a boolean if a field has been set. -func (o *Credentials) HasMqtt() bool { - if o != nil && !IsNil(o.Mqtt) { - return true - } - - return false -} - -// SetMqtt gets a reference to the given string and assigns it to the Mqtt field. -func (o *Credentials) SetMqtt(v *string) { - o.Mqtt = v -} - -// GetPassword returns the Password field value -func (o *Credentials) GetPassword() *string { - if o == nil { - var ret *string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *Credentials) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Password, true -} - -// SetPassword sets field value -func (o *Credentials) SetPassword(v *string) { - o.Password = v -} - -// GetPort returns the Port field value if set, zero value otherwise. -func (o *Credentials) GetPort() *int64 { - if o == nil || IsNil(o.Port) { - var ret *int64 - return ret - } - return o.Port -} - -// GetPortOk returns a tuple with the Port field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetPortOk() (*int64, bool) { - if o == nil || IsNil(o.Port) { - return nil, false - } - return o.Port, true -} - -// HasPort returns a boolean if a field has been set. -func (o *Credentials) HasPort() bool { - if o != nil && !IsNil(o.Port) { - return true - } - - return false -} - -// SetPort gets a reference to the given int64 and assigns it to the Port field. -func (o *Credentials) SetPort(v *int64) { - o.Port = v -} - -// GetStomp returns the Stomp field value if set, zero value otherwise. -func (o *Credentials) GetStomp() *string { - if o == nil || IsNil(o.Stomp) { - var ret *string - return ret - } - return o.Stomp -} - -// GetStompOk returns a tuple with the Stomp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetStompOk() (*string, bool) { - if o == nil || IsNil(o.Stomp) { - return nil, false - } - return o.Stomp, true -} - -// HasStomp returns a boolean if a field has been set. -func (o *Credentials) HasStomp() bool { - if o != nil && !IsNil(o.Stomp) { - return true - } - - return false -} - -// SetStomp gets a reference to the given string and assigns it to the Stomp field. -func (o *Credentials) SetStomp(v *string) { - o.Stomp = v -} - -// GetUri returns the Uri field value if set, zero value otherwise. -func (o *Credentials) GetUri() *string { - if o == nil || IsNil(o.Uri) { - var ret *string - return ret - } - return o.Uri -} - -// GetUriOk returns a tuple with the Uri field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetUriOk() (*string, bool) { - if o == nil || IsNil(o.Uri) { - return nil, false - } - return o.Uri, true -} - -// HasUri returns a boolean if a field has been set. -func (o *Credentials) HasUri() bool { - if o != nil && !IsNil(o.Uri) { - return true - } - - return false -} - -// SetUri gets a reference to the given string and assigns it to the Uri field. -func (o *Credentials) SetUri(v *string) { - o.Uri = v -} - -// GetUris returns the Uris field value if set, zero value otherwise. -func (o *Credentials) GetUris() *[]string { - if o == nil || IsNil(o.Uris) { - var ret *[]string - return ret - } - return o.Uris -} - -// GetUrisOk returns a tuple with the Uris field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Credentials) GetUrisOk() (*[]string, bool) { - if o == nil || IsNil(o.Uris) { - return nil, false - } - return o.Uris, true -} - -// HasUris returns a boolean if a field has been set. -func (o *Credentials) HasUris() bool { - if o != nil && !IsNil(o.Uris) { - return true - } - - return false -} - -// SetUris gets a reference to the given []string and assigns it to the Uris field. -func (o *Credentials) SetUris(v *[]string) { - o.Uris = v -} - -// GetUsername returns the Username field value -func (o *Credentials) GetUsername() *string { - if o == nil { - var ret *string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *Credentials) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Username, true -} - -// SetUsername sets field value -func (o *Credentials) SetUsername(v *string) { - o.Username = v -} - -func (o Credentials) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["host"] = o.Host - if !IsNil(o.Hosts) { - toSerialize["hosts"] = o.Hosts - } - if !IsNil(o.HttpApiUri) { - toSerialize["http_api_uri"] = o.HttpApiUri - } - if !IsNil(o.HttpApiUris) { - toSerialize["http_api_uris"] = o.HttpApiUris - } - if !IsNil(o.Management) { - toSerialize["management"] = o.Management - } - if !IsNil(o.Mqtt) { - toSerialize["mqtt"] = o.Mqtt - } - toSerialize["password"] = o.Password - if !IsNil(o.Port) { - toSerialize["port"] = o.Port - } - if !IsNil(o.Stomp) { - toSerialize["stomp"] = o.Stomp - } - if !IsNil(o.Uri) { - toSerialize["uri"] = o.Uri - } - if !IsNil(o.Uris) { - toSerialize["uris"] = o.Uris - } - toSerialize["username"] = o.Username - return toSerialize, nil -} - -type NullableCredentials struct { - value *Credentials - isSet bool -} - -func (v NullableCredentials) Get() *Credentials { - return v.value -} - -func (v *NullableCredentials) Set(val *Credentials) { - v.value = val - v.isSet = true -} - -func (v NullableCredentials) IsSet() bool { - return v.isSet -} - -func (v *NullableCredentials) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCredentials(val *Credentials) *NullableCredentials { - return &NullableCredentials{value: val, isSet: true} -} - -func (v NullableCredentials) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCredentials) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_credentials_list_item.go b/services/rabbitmq/model_credentials_list_item.go index 86779bae1..564232075 100644 --- a/services/rabbitmq/model_credentials_list_item.go +++ b/services/rabbitmq/model_credentials_list_item.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the CredentialsListItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CredentialsListItem{} - // CredentialsListItem struct for CredentialsListItem type CredentialsListItem struct { // REQUIRED Id *string `json:"id"` } - -type _CredentialsListItem CredentialsListItem - -// NewCredentialsListItem instantiates a new CredentialsListItem 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 NewCredentialsListItem(id *string) *CredentialsListItem { - this := CredentialsListItem{} - this.Id = id - return &this -} - -// NewCredentialsListItemWithDefaults instantiates a new CredentialsListItem 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 NewCredentialsListItemWithDefaults() *CredentialsListItem { - this := CredentialsListItem{} - return &this -} - -// GetId returns the Id field value -func (o *CredentialsListItem) GetId() *string { - if o == nil { - var ret *string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CredentialsListItem) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *CredentialsListItem) SetId(v *string) { - o.Id = v -} - -func (o CredentialsListItem) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - return toSerialize, nil -} - -type NullableCredentialsListItem struct { - value *CredentialsListItem - isSet bool -} - -func (v NullableCredentialsListItem) Get() *CredentialsListItem { - return v.value -} - -func (v *NullableCredentialsListItem) Set(val *CredentialsListItem) { - v.value = val - v.isSet = true -} - -func (v NullableCredentialsListItem) IsSet() bool { - return v.isSet -} - -func (v *NullableCredentialsListItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCredentialsListItem(val *CredentialsListItem) *NullableCredentialsListItem { - return &NullableCredentialsListItem{value: val, isSet: true} -} - -func (v NullableCredentialsListItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCredentialsListItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_credentials_response.go b/services/rabbitmq/model_credentials_response.go index 1ef5d6055..1bd192a1e 100644 --- a/services/rabbitmq/model_credentials_response.go +++ b/services/rabbitmq/model_credentials_response.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the CredentialsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CredentialsResponse{} - // CredentialsResponse struct for CredentialsResponse type CredentialsResponse struct { // REQUIRED @@ -25,150 +18,3 @@ type CredentialsResponse struct { // REQUIRED Uri *string `json:"uri"` } - -type _CredentialsResponse CredentialsResponse - -// NewCredentialsResponse instantiates a new CredentialsResponse 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 NewCredentialsResponse(id *string, uri *string) *CredentialsResponse { - this := CredentialsResponse{} - this.Id = id - this.Uri = uri - return &this -} - -// NewCredentialsResponseWithDefaults instantiates a new CredentialsResponse 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 NewCredentialsResponseWithDefaults() *CredentialsResponse { - this := CredentialsResponse{} - return &this -} - -// GetId returns the Id field value -func (o *CredentialsResponse) GetId() *string { - if o == nil { - var ret *string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CredentialsResponse) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *CredentialsResponse) SetId(v *string) { - o.Id = v -} - -// GetRaw returns the Raw field value if set, zero value otherwise. -func (o *CredentialsResponse) GetRaw() *RawCredentials { - if o == nil || IsNil(o.Raw) { - var ret *RawCredentials - return ret - } - return o.Raw -} - -// GetRawOk returns a tuple with the Raw field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CredentialsResponse) GetRawOk() (*RawCredentials, bool) { - if o == nil || IsNil(o.Raw) { - return nil, false - } - return o.Raw, true -} - -// HasRaw returns a boolean if a field has been set. -func (o *CredentialsResponse) HasRaw() bool { - if o != nil && !IsNil(o.Raw) { - return true - } - - return false -} - -// SetRaw gets a reference to the given RawCredentials and assigns it to the Raw field. -func (o *CredentialsResponse) SetRaw(v *RawCredentials) { - o.Raw = v -} - -// GetUri returns the Uri field value -func (o *CredentialsResponse) GetUri() *string { - if o == nil { - var ret *string - return ret - } - - return o.Uri -} - -// GetUriOk returns a tuple with the Uri field value -// and a boolean to check if the value has been set. -func (o *CredentialsResponse) GetUriOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Uri, true -} - -// SetUri sets field value -func (o *CredentialsResponse) SetUri(v *string) { - o.Uri = v -} - -func (o CredentialsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - if !IsNil(o.Raw) { - toSerialize["raw"] = o.Raw - } - toSerialize["uri"] = o.Uri - return toSerialize, nil -} - -type NullableCredentialsResponse struct { - value *CredentialsResponse - isSet bool -} - -func (v NullableCredentialsResponse) Get() *CredentialsResponse { - return v.value -} - -func (v *NullableCredentialsResponse) Set(val *CredentialsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableCredentialsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableCredentialsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCredentialsResponse(val *CredentialsResponse) *NullableCredentialsResponse { - return &NullableCredentialsResponse{value: val, isSet: true} -} - -func (v NullableCredentialsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCredentialsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_error.go b/services/rabbitmq/model_error.go index 6065f907a..f4fad63b7 100644 --- a/services/rabbitmq/model_error.go +++ b/services/rabbitmq/model_error.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Error type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Error{} - // Error struct for Error type Error struct { // REQUIRED @@ -24,115 +17,3 @@ type Error struct { // REQUIRED Error *string `json:"error"` } - -type _Error Error - -// NewError instantiates a new Error 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 NewError(description *string, error_ *string) *Error { - this := Error{} - this.Description = description - this.Error = error_ - return &this -} - -// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { - this := Error{} - return &this -} - -// GetDescription returns the Description field value -func (o *Error) GetDescription() *string { - if o == nil { - var ret *string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *Error) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description, true -} - -// SetDescription sets field value -func (o *Error) SetDescription(v *string) { - o.Description = v -} - -// GetError returns the Error field value -func (o *Error) GetError() *string { - if o == nil { - var ret *string - return ret - } - - return o.Error -} - -// GetErrorOk returns a tuple with the Error field value -// and a boolean to check if the value has been set. -func (o *Error) GetErrorOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Error, true -} - -// SetError sets field value -func (o *Error) SetError(v *string) { - o.Error = v -} - -func (o Error) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["description"] = o.Description - toSerialize["error"] = o.Error - return toSerialize, nil -} - -type NullableError struct { - value *Error - isSet bool -} - -func (v NullableError) Get() *Error { - return v.value -} - -func (v *NullableError) Set(val *Error) { - v.value = val - v.isSet = true -} - -func (v NullableError) IsSet() bool { - return v.isSet -} - -func (v *NullableError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableError(val *Error) *NullableError { - return &NullableError{value: val, isSet: true} -} - -func (v NullableError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_get_metrics_response.go b/services/rabbitmq/model_get_metrics_response.go index 953173ca6..e1bb46a6b 100644 --- a/services/rabbitmq/model_get_metrics_response.go +++ b/services/rabbitmq/model_get_metrics_response.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the GetMetricsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetMetricsResponse{} - // GetMetricsResponse struct for GetMetricsResponse type GetMetricsResponse struct { CpuIdleTime *int64 `json:"cpuIdleTime,omitempty"` @@ -63,688 +56,3 @@ type GetMetricsResponse struct { // REQUIRED ParachuteDiskPersistentUsedThreshold *int64 `json:"parachuteDiskPersistentUsedThreshold"` } - -type _GetMetricsResponse GetMetricsResponse - -// NewGetMetricsResponse instantiates a new GetMetricsResponse 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 NewGetMetricsResponse(cpuLoadPercent *int64, diskEphemeralTotal *int64, diskEphemeralUsed *int64, diskPersistentTotal *int64, diskPersistentUsed *int64, load1 *int64, load15 *int64, load5 *int64, memoryTotal *int64, memoryUsed *int64, parachuteDiskEphemeralActivated *int64, parachuteDiskEphemeralTotal *int64, parachuteDiskEphemeralUsed *int64, parachuteDiskEphemeralUsedPercent *int64, parachuteDiskEphemeralUsedThreshold *int64, parachuteDiskPersistentActivated *int64, parachuteDiskPersistentTotal *int64, parachuteDiskPersistentUsed *int64, parachuteDiskPersistentUsedPercent *int64, parachuteDiskPersistentUsedThreshold *int64) *GetMetricsResponse { - this := GetMetricsResponse{} - this.CpuLoadPercent = cpuLoadPercent - this.DiskEphemeralTotal = diskEphemeralTotal - this.DiskEphemeralUsed = diskEphemeralUsed - this.DiskPersistentTotal = diskPersistentTotal - this.DiskPersistentUsed = diskPersistentUsed - this.Load1 = load1 - this.Load15 = load15 - this.Load5 = load5 - this.MemoryTotal = memoryTotal - this.MemoryUsed = memoryUsed - this.ParachuteDiskEphemeralActivated = parachuteDiskEphemeralActivated - this.ParachuteDiskEphemeralTotal = parachuteDiskEphemeralTotal - this.ParachuteDiskEphemeralUsed = parachuteDiskEphemeralUsed - this.ParachuteDiskEphemeralUsedPercent = parachuteDiskEphemeralUsedPercent - this.ParachuteDiskEphemeralUsedThreshold = parachuteDiskEphemeralUsedThreshold - this.ParachuteDiskPersistentActivated = parachuteDiskPersistentActivated - this.ParachuteDiskPersistentTotal = parachuteDiskPersistentTotal - this.ParachuteDiskPersistentUsed = parachuteDiskPersistentUsed - this.ParachuteDiskPersistentUsedPercent = parachuteDiskPersistentUsedPercent - this.ParachuteDiskPersistentUsedThreshold = parachuteDiskPersistentUsedThreshold - return &this -} - -// NewGetMetricsResponseWithDefaults instantiates a new GetMetricsResponse 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 NewGetMetricsResponseWithDefaults() *GetMetricsResponse { - this := GetMetricsResponse{} - return &this -} - -// GetCpuIdleTime returns the CpuIdleTime field value if set, zero value otherwise. -func (o *GetMetricsResponse) GetCpuIdleTime() *int64 { - if o == nil || IsNil(o.CpuIdleTime) { - var ret *int64 - return ret - } - return o.CpuIdleTime -} - -// GetCpuIdleTimeOk returns a tuple with the CpuIdleTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetCpuIdleTimeOk() (*int64, bool) { - if o == nil || IsNil(o.CpuIdleTime) { - return nil, false - } - return o.CpuIdleTime, true -} - -// HasCpuIdleTime returns a boolean if a field has been set. -func (o *GetMetricsResponse) HasCpuIdleTime() bool { - if o != nil && !IsNil(o.CpuIdleTime) { - return true - } - - return false -} - -// SetCpuIdleTime gets a reference to the given int64 and assigns it to the CpuIdleTime field. -func (o *GetMetricsResponse) SetCpuIdleTime(v *int64) { - o.CpuIdleTime = v -} - -// GetCpuLoadPercent returns the CpuLoadPercent field value -func (o *GetMetricsResponse) GetCpuLoadPercent() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.CpuLoadPercent -} - -// GetCpuLoadPercentOk returns a tuple with the CpuLoadPercent field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetCpuLoadPercentOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.CpuLoadPercent, true -} - -// SetCpuLoadPercent sets field value -func (o *GetMetricsResponse) SetCpuLoadPercent(v *int64) { - o.CpuLoadPercent = v -} - -// GetCpuSystemTime returns the CpuSystemTime field value if set, zero value otherwise. -func (o *GetMetricsResponse) GetCpuSystemTime() *int64 { - if o == nil || IsNil(o.CpuSystemTime) { - var ret *int64 - return ret - } - return o.CpuSystemTime -} - -// GetCpuSystemTimeOk returns a tuple with the CpuSystemTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetCpuSystemTimeOk() (*int64, bool) { - if o == nil || IsNil(o.CpuSystemTime) { - return nil, false - } - return o.CpuSystemTime, true -} - -// HasCpuSystemTime returns a boolean if a field has been set. -func (o *GetMetricsResponse) HasCpuSystemTime() bool { - if o != nil && !IsNil(o.CpuSystemTime) { - return true - } - - return false -} - -// SetCpuSystemTime gets a reference to the given int64 and assigns it to the CpuSystemTime field. -func (o *GetMetricsResponse) SetCpuSystemTime(v *int64) { - o.CpuSystemTime = v -} - -// GetCpuUserTime returns the CpuUserTime field value if set, zero value otherwise. -func (o *GetMetricsResponse) GetCpuUserTime() *int64 { - if o == nil || IsNil(o.CpuUserTime) { - var ret *int64 - return ret - } - return o.CpuUserTime -} - -// GetCpuUserTimeOk returns a tuple with the CpuUserTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetCpuUserTimeOk() (*int64, bool) { - if o == nil || IsNil(o.CpuUserTime) { - return nil, false - } - return o.CpuUserTime, true -} - -// HasCpuUserTime returns a boolean if a field has been set. -func (o *GetMetricsResponse) HasCpuUserTime() bool { - if o != nil && !IsNil(o.CpuUserTime) { - return true - } - - return false -} - -// SetCpuUserTime gets a reference to the given int64 and assigns it to the CpuUserTime field. -func (o *GetMetricsResponse) SetCpuUserTime(v *int64) { - o.CpuUserTime = v -} - -// GetDiskEphemeralTotal returns the DiskEphemeralTotal field value -func (o *GetMetricsResponse) GetDiskEphemeralTotal() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.DiskEphemeralTotal -} - -// GetDiskEphemeralTotalOk returns a tuple with the DiskEphemeralTotal field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetDiskEphemeralTotalOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.DiskEphemeralTotal, true -} - -// SetDiskEphemeralTotal sets field value -func (o *GetMetricsResponse) SetDiskEphemeralTotal(v *int64) { - o.DiskEphemeralTotal = v -} - -// GetDiskEphemeralUsed returns the DiskEphemeralUsed field value -func (o *GetMetricsResponse) GetDiskEphemeralUsed() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.DiskEphemeralUsed -} - -// GetDiskEphemeralUsedOk returns a tuple with the DiskEphemeralUsed field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetDiskEphemeralUsedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.DiskEphemeralUsed, true -} - -// SetDiskEphemeralUsed sets field value -func (o *GetMetricsResponse) SetDiskEphemeralUsed(v *int64) { - o.DiskEphemeralUsed = v -} - -// GetDiskPersistentTotal returns the DiskPersistentTotal field value -func (o *GetMetricsResponse) GetDiskPersistentTotal() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.DiskPersistentTotal -} - -// GetDiskPersistentTotalOk returns a tuple with the DiskPersistentTotal field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetDiskPersistentTotalOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.DiskPersistentTotal, true -} - -// SetDiskPersistentTotal sets field value -func (o *GetMetricsResponse) SetDiskPersistentTotal(v *int64) { - o.DiskPersistentTotal = v -} - -// GetDiskPersistentUsed returns the DiskPersistentUsed field value -func (o *GetMetricsResponse) GetDiskPersistentUsed() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.DiskPersistentUsed -} - -// GetDiskPersistentUsedOk returns a tuple with the DiskPersistentUsed field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetDiskPersistentUsedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.DiskPersistentUsed, true -} - -// SetDiskPersistentUsed sets field value -func (o *GetMetricsResponse) SetDiskPersistentUsed(v *int64) { - o.DiskPersistentUsed = v -} - -// GetLoad1 returns the Load1 field value -func (o *GetMetricsResponse) GetLoad1() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Load1 -} - -// GetLoad1Ok returns a tuple with the Load1 field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetLoad1Ok() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Load1, true -} - -// SetLoad1 sets field value -func (o *GetMetricsResponse) SetLoad1(v *int64) { - o.Load1 = v -} - -// GetLoad15 returns the Load15 field value -func (o *GetMetricsResponse) GetLoad15() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Load15 -} - -// GetLoad15Ok returns a tuple with the Load15 field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetLoad15Ok() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Load15, true -} - -// SetLoad15 sets field value -func (o *GetMetricsResponse) SetLoad15(v *int64) { - o.Load15 = v -} - -// GetLoad5 returns the Load5 field value -func (o *GetMetricsResponse) GetLoad5() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Load5 -} - -// GetLoad5Ok returns a tuple with the Load5 field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetLoad5Ok() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Load5, true -} - -// SetLoad5 sets field value -func (o *GetMetricsResponse) SetLoad5(v *int64) { - o.Load5 = v -} - -// GetMemoryTotal returns the MemoryTotal field value -func (o *GetMetricsResponse) GetMemoryTotal() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.MemoryTotal -} - -// GetMemoryTotalOk returns a tuple with the MemoryTotal field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetMemoryTotalOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.MemoryTotal, true -} - -// SetMemoryTotal sets field value -func (o *GetMetricsResponse) SetMemoryTotal(v *int64) { - o.MemoryTotal = v -} - -// GetMemoryUsed returns the MemoryUsed field value -func (o *GetMetricsResponse) GetMemoryUsed() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.MemoryUsed -} - -// GetMemoryUsedOk returns a tuple with the MemoryUsed field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetMemoryUsedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.MemoryUsed, true -} - -// SetMemoryUsed sets field value -func (o *GetMetricsResponse) SetMemoryUsed(v *int64) { - o.MemoryUsed = v -} - -// GetParachuteDiskEphemeralActivated returns the ParachuteDiskEphemeralActivated field value -func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivated() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskEphemeralActivated -} - -// GetParachuteDiskEphemeralActivatedOk returns a tuple with the ParachuteDiskEphemeralActivated field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivatedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskEphemeralActivated, true -} - -// SetParachuteDiskEphemeralActivated sets field value -func (o *GetMetricsResponse) SetParachuteDiskEphemeralActivated(v *int64) { - o.ParachuteDiskEphemeralActivated = v -} - -// GetParachuteDiskEphemeralTotal returns the ParachuteDiskEphemeralTotal field value -func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotal() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskEphemeralTotal -} - -// GetParachuteDiskEphemeralTotalOk returns a tuple with the ParachuteDiskEphemeralTotal field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotalOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskEphemeralTotal, true -} - -// SetParachuteDiskEphemeralTotal sets field value -func (o *GetMetricsResponse) SetParachuteDiskEphemeralTotal(v *int64) { - o.ParachuteDiskEphemeralTotal = v -} - -// GetParachuteDiskEphemeralUsed returns the ParachuteDiskEphemeralUsed field value -func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsed() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskEphemeralUsed -} - -// GetParachuteDiskEphemeralUsedOk returns a tuple with the ParachuteDiskEphemeralUsed field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskEphemeralUsed, true -} - -// SetParachuteDiskEphemeralUsed sets field value -func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsed(v *int64) { - o.ParachuteDiskEphemeralUsed = v -} - -// GetParachuteDiskEphemeralUsedPercent returns the ParachuteDiskEphemeralUsedPercent field value -func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercent() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskEphemeralUsedPercent -} - -// GetParachuteDiskEphemeralUsedPercentOk returns a tuple with the ParachuteDiskEphemeralUsedPercent field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercentOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskEphemeralUsedPercent, true -} - -// SetParachuteDiskEphemeralUsedPercent sets field value -func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedPercent(v *int64) { - o.ParachuteDiskEphemeralUsedPercent = v -} - -// GetParachuteDiskEphemeralUsedThreshold returns the ParachuteDiskEphemeralUsedThreshold field value -func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThreshold() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskEphemeralUsedThreshold -} - -// GetParachuteDiskEphemeralUsedThresholdOk returns a tuple with the ParachuteDiskEphemeralUsedThreshold field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThresholdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskEphemeralUsedThreshold, true -} - -// SetParachuteDiskEphemeralUsedThreshold sets field value -func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedThreshold(v *int64) { - o.ParachuteDiskEphemeralUsedThreshold = v -} - -// GetParachuteDiskPersistentActivated returns the ParachuteDiskPersistentActivated field value -func (o *GetMetricsResponse) GetParachuteDiskPersistentActivated() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskPersistentActivated -} - -// GetParachuteDiskPersistentActivatedOk returns a tuple with the ParachuteDiskPersistentActivated field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskPersistentActivatedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskPersistentActivated, true -} - -// SetParachuteDiskPersistentActivated sets field value -func (o *GetMetricsResponse) SetParachuteDiskPersistentActivated(v *int64) { - o.ParachuteDiskPersistentActivated = v -} - -// GetParachuteDiskPersistentTotal returns the ParachuteDiskPersistentTotal field value -func (o *GetMetricsResponse) GetParachuteDiskPersistentTotal() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskPersistentTotal -} - -// GetParachuteDiskPersistentTotalOk returns a tuple with the ParachuteDiskPersistentTotal field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskPersistentTotalOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskPersistentTotal, true -} - -// SetParachuteDiskPersistentTotal sets field value -func (o *GetMetricsResponse) SetParachuteDiskPersistentTotal(v *int64) { - o.ParachuteDiskPersistentTotal = v -} - -// GetParachuteDiskPersistentUsed returns the ParachuteDiskPersistentUsed field value -func (o *GetMetricsResponse) GetParachuteDiskPersistentUsed() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskPersistentUsed -} - -// GetParachuteDiskPersistentUsedOk returns a tuple with the ParachuteDiskPersistentUsed field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskPersistentUsed, true -} - -// SetParachuteDiskPersistentUsed sets field value -func (o *GetMetricsResponse) SetParachuteDiskPersistentUsed(v *int64) { - o.ParachuteDiskPersistentUsed = v -} - -// GetParachuteDiskPersistentUsedPercent returns the ParachuteDiskPersistentUsedPercent field value -func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercent() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskPersistentUsedPercent -} - -// GetParachuteDiskPersistentUsedPercentOk returns a tuple with the ParachuteDiskPersistentUsedPercent field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercentOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskPersistentUsedPercent, true -} - -// SetParachuteDiskPersistentUsedPercent sets field value -func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedPercent(v *int64) { - o.ParachuteDiskPersistentUsedPercent = v -} - -// GetParachuteDiskPersistentUsedThreshold returns the ParachuteDiskPersistentUsedThreshold field value -func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThreshold() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.ParachuteDiskPersistentUsedThreshold -} - -// GetParachuteDiskPersistentUsedThresholdOk returns a tuple with the ParachuteDiskPersistentUsedThreshold field value -// and a boolean to check if the value has been set. -func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThresholdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.ParachuteDiskPersistentUsedThreshold, true -} - -// SetParachuteDiskPersistentUsedThreshold sets field value -func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedThreshold(v *int64) { - o.ParachuteDiskPersistentUsedThreshold = v -} - -func (o GetMetricsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CpuIdleTime) { - toSerialize["cpuIdleTime"] = o.CpuIdleTime - } - toSerialize["cpuLoadPercent"] = o.CpuLoadPercent - if !IsNil(o.CpuSystemTime) { - toSerialize["cpuSystemTime"] = o.CpuSystemTime - } - if !IsNil(o.CpuUserTime) { - toSerialize["cpuUserTime"] = o.CpuUserTime - } - toSerialize["diskEphemeralTotal"] = o.DiskEphemeralTotal - toSerialize["diskEphemeralUsed"] = o.DiskEphemeralUsed - toSerialize["diskPersistentTotal"] = o.DiskPersistentTotal - toSerialize["diskPersistentUsed"] = o.DiskPersistentUsed - toSerialize["load1"] = o.Load1 - toSerialize["load15"] = o.Load15 - toSerialize["load5"] = o.Load5 - toSerialize["memoryTotal"] = o.MemoryTotal - toSerialize["memoryUsed"] = o.MemoryUsed - toSerialize["parachuteDiskEphemeralActivated"] = o.ParachuteDiskEphemeralActivated - toSerialize["parachuteDiskEphemeralTotal"] = o.ParachuteDiskEphemeralTotal - toSerialize["parachuteDiskEphemeralUsed"] = o.ParachuteDiskEphemeralUsed - toSerialize["parachuteDiskEphemeralUsedPercent"] = o.ParachuteDiskEphemeralUsedPercent - toSerialize["parachuteDiskEphemeralUsedThreshold"] = o.ParachuteDiskEphemeralUsedThreshold - toSerialize["parachuteDiskPersistentActivated"] = o.ParachuteDiskPersistentActivated - toSerialize["parachuteDiskPersistentTotal"] = o.ParachuteDiskPersistentTotal - toSerialize["parachuteDiskPersistentUsed"] = o.ParachuteDiskPersistentUsed - toSerialize["parachuteDiskPersistentUsedPercent"] = o.ParachuteDiskPersistentUsedPercent - toSerialize["parachuteDiskPersistentUsedThreshold"] = o.ParachuteDiskPersistentUsedThreshold - return toSerialize, nil -} - -type NullableGetMetricsResponse struct { - value *GetMetricsResponse - isSet bool -} - -func (v NullableGetMetricsResponse) Get() *GetMetricsResponse { - return v.value -} - -func (v *NullableGetMetricsResponse) Set(val *GetMetricsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetMetricsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetMetricsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetMetricsResponse(val *GetMetricsResponse) *NullableGetMetricsResponse { - return &NullableGetMetricsResponse{value: val, isSet: true} -} - -func (v NullableGetMetricsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetMetricsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_instance.go b/services/rabbitmq/model_instance.go index c731970fe..a456996f7 100644 --- a/services/rabbitmq/model_instance.go +++ b/services/rabbitmq/model_instance.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Instance type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Instance{} - // Instance struct for Instance type Instance struct { // REQUIRED @@ -47,448 +40,3 @@ type Instance struct { PlanName *string `json:"planName"` Status *string `json:"status,omitempty"` } - -type _Instance Instance - -// NewInstance instantiates a new Instance 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 NewInstance(cfGuid *string, cfOrganizationGuid *string, cfSpaceGuid *string, dashboardUrl *string, imageUrl *string, lastOperation *InstanceLastOperation, name *string, offeringName *string, offeringVersion *string, parameters *map[string]interface{}, planId *string, planName *string) *Instance { - this := Instance{} - this.CfGuid = cfGuid - this.CfOrganizationGuid = cfOrganizationGuid - this.CfSpaceGuid = cfSpaceGuid - this.DashboardUrl = dashboardUrl - this.ImageUrl = imageUrl - this.LastOperation = lastOperation - this.Name = name - this.OfferingName = offeringName - this.OfferingVersion = offeringVersion - this.Parameters = parameters - this.PlanId = planId - this.PlanName = planName - return &this -} - -// NewInstanceWithDefaults instantiates a new Instance 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 NewInstanceWithDefaults() *Instance { - this := Instance{} - return &this -} - -// GetCfGuid returns the CfGuid field value -func (o *Instance) GetCfGuid() *string { - if o == nil { - var ret *string - return ret - } - - return o.CfGuid -} - -// GetCfGuidOk returns a tuple with the CfGuid field value -// and a boolean to check if the value has been set. -func (o *Instance) GetCfGuidOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.CfGuid, true -} - -// SetCfGuid sets field value -func (o *Instance) SetCfGuid(v *string) { - o.CfGuid = v -} - -// GetCfOrganizationGuid returns the CfOrganizationGuid field value -func (o *Instance) GetCfOrganizationGuid() *string { - if o == nil { - var ret *string - return ret - } - - return o.CfOrganizationGuid -} - -// GetCfOrganizationGuidOk returns a tuple with the CfOrganizationGuid field value -// and a boolean to check if the value has been set. -func (o *Instance) GetCfOrganizationGuidOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.CfOrganizationGuid, true -} - -// SetCfOrganizationGuid sets field value -func (o *Instance) SetCfOrganizationGuid(v *string) { - o.CfOrganizationGuid = v -} - -// GetCfSpaceGuid returns the CfSpaceGuid field value -func (o *Instance) GetCfSpaceGuid() *string { - if o == nil { - var ret *string - return ret - } - - return o.CfSpaceGuid -} - -// GetCfSpaceGuidOk returns a tuple with the CfSpaceGuid field value -// and a boolean to check if the value has been set. -func (o *Instance) GetCfSpaceGuidOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.CfSpaceGuid, true -} - -// SetCfSpaceGuid sets field value -func (o *Instance) SetCfSpaceGuid(v *string) { - o.CfSpaceGuid = v -} - -// GetDashboardUrl returns the DashboardUrl field value -func (o *Instance) GetDashboardUrl() *string { - if o == nil { - var ret *string - return ret - } - - return o.DashboardUrl -} - -// GetDashboardUrlOk returns a tuple with the DashboardUrl field value -// and a boolean to check if the value has been set. -func (o *Instance) GetDashboardUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.DashboardUrl, true -} - -// SetDashboardUrl sets field value -func (o *Instance) SetDashboardUrl(v *string) { - o.DashboardUrl = v -} - -// GetImageUrl returns the ImageUrl field value -func (o *Instance) GetImageUrl() *string { - if o == nil { - var ret *string - return ret - } - - return o.ImageUrl -} - -// GetImageUrlOk returns a tuple with the ImageUrl field value -// and a boolean to check if the value has been set. -func (o *Instance) GetImageUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.ImageUrl, true -} - -// SetImageUrl sets field value -func (o *Instance) SetImageUrl(v *string) { - o.ImageUrl = v -} - -// GetInstanceId returns the InstanceId field value if set, zero value otherwise. -func (o *Instance) GetInstanceId() *string { - if o == nil || IsNil(o.InstanceId) { - var ret *string - return ret - } - return o.InstanceId -} - -// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Instance) GetInstanceIdOk() (*string, bool) { - if o == nil || IsNil(o.InstanceId) { - return nil, false - } - return o.InstanceId, true -} - -// HasInstanceId returns a boolean if a field has been set. -func (o *Instance) HasInstanceId() bool { - if o != nil && !IsNil(o.InstanceId) { - return true - } - - return false -} - -// SetInstanceId gets a reference to the given string and assigns it to the InstanceId field. -func (o *Instance) SetInstanceId(v *string) { - o.InstanceId = v -} - -// GetLastOperation returns the LastOperation field value -func (o *Instance) GetLastOperation() *InstanceLastOperation { - if o == nil { - var ret *InstanceLastOperation - return ret - } - - return o.LastOperation -} - -// GetLastOperationOk returns a tuple with the LastOperation field value -// and a boolean to check if the value has been set. -func (o *Instance) GetLastOperationOk() (*InstanceLastOperation, bool) { - if o == nil { - return nil, false - } - return o.LastOperation, true -} - -// SetLastOperation sets field value -func (o *Instance) SetLastOperation(v *InstanceLastOperation) { - o.LastOperation = v -} - -// GetName returns the Name field value -func (o *Instance) GetName() *string { - if o == nil { - var ret *string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *Instance) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Name, true -} - -// SetName sets field value -func (o *Instance) SetName(v *string) { - o.Name = v -} - -// GetOfferingName returns the OfferingName field value -// Deprecated -func (o *Instance) GetOfferingName() *string { - if o == nil { - var ret *string - return ret - } - - return o.OfferingName -} - -// GetOfferingNameOk returns a tuple with the OfferingName field value -// and a boolean to check if the value has been set. -// Deprecated -func (o *Instance) GetOfferingNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.OfferingName, true -} - -// SetOfferingName sets field value -// Deprecated -func (o *Instance) SetOfferingName(v *string) { - o.OfferingName = v -} - -// GetOfferingVersion returns the OfferingVersion field value -func (o *Instance) GetOfferingVersion() *string { - if o == nil { - var ret *string - return ret - } - - return o.OfferingVersion -} - -// GetOfferingVersionOk returns a tuple with the OfferingVersion field value -// and a boolean to check if the value has been set. -func (o *Instance) GetOfferingVersionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.OfferingVersion, true -} - -// SetOfferingVersion sets field value -func (o *Instance) SetOfferingVersion(v *string) { - o.OfferingVersion = v -} - -// GetParameters returns the Parameters field value -func (o *Instance) GetParameters() *map[string]interface{} { - if o == nil { - var ret *map[string]interface{} - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *Instance) GetParametersOk() (*map[string]interface{}, bool) { - if o == nil { - return &map[string]interface{}{}, false - } - return o.Parameters, true -} - -// SetParameters sets field value -func (o *Instance) SetParameters(v *map[string]interface{}) { - o.Parameters = v -} - -// GetPlanId returns the PlanId field value -func (o *Instance) GetPlanId() *string { - if o == nil { - var ret *string - return ret - } - - return o.PlanId -} - -// GetPlanIdOk returns a tuple with the PlanId field value -// and a boolean to check if the value has been set. -func (o *Instance) GetPlanIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PlanId, true -} - -// SetPlanId sets field value -func (o *Instance) SetPlanId(v *string) { - o.PlanId = v -} - -// GetPlanName returns the PlanName field value -func (o *Instance) GetPlanName() *string { - if o == nil { - var ret *string - return ret - } - - return o.PlanName -} - -// GetPlanNameOk returns a tuple with the PlanName field value -// and a boolean to check if the value has been set. -func (o *Instance) GetPlanNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.PlanName, true -} - -// SetPlanName sets field value -func (o *Instance) SetPlanName(v *string) { - o.PlanName = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Instance) GetStatus() *string { - if o == nil || IsNil(o.Status) { - var ret *string - return ret - } - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Instance) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Instance) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *Instance) SetStatus(v *string) { - o.Status = v -} - -func (o Instance) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["cfGuid"] = o.CfGuid - toSerialize["cfOrganizationGuid"] = o.CfOrganizationGuid - toSerialize["cfSpaceGuid"] = o.CfSpaceGuid - toSerialize["dashboardUrl"] = o.DashboardUrl - toSerialize["imageUrl"] = o.ImageUrl - if !IsNil(o.InstanceId) { - toSerialize["instanceId"] = o.InstanceId - } - toSerialize["lastOperation"] = o.LastOperation - toSerialize["name"] = o.Name - toSerialize["offeringName"] = o.OfferingName - toSerialize["offeringVersion"] = o.OfferingVersion - toSerialize["parameters"] = o.Parameters - toSerialize["planId"] = o.PlanId - toSerialize["planName"] = o.PlanName - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - return toSerialize, nil -} - -type NullableInstance struct { - value *Instance - isSet bool -} - -func (v NullableInstance) Get() *Instance { - return v.value -} - -func (v *NullableInstance) Set(val *Instance) { - v.value = val - v.isSet = true -} - -func (v NullableInstance) IsSet() bool { - return v.isSet -} - -func (v *NullableInstance) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInstance(val *Instance) *NullableInstance { - return &NullableInstance{value: val, isSet: true} -} - -func (v NullableInstance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInstance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_instance_last_operation.go b/services/rabbitmq/model_instance_last_operation.go index 48853a9fa..d50b9a9ff 100644 --- a/services/rabbitmq/model_instance_last_operation.go +++ b/services/rabbitmq/model_instance_last_operation.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the InstanceLastOperation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceLastOperation{} - // InstanceLastOperation struct for InstanceLastOperation type InstanceLastOperation struct { // REQUIRED @@ -26,141 +19,3 @@ type InstanceLastOperation struct { // REQUIRED Type *string `json:"type"` } - -type _InstanceLastOperation InstanceLastOperation - -// NewInstanceLastOperation instantiates a new InstanceLastOperation 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 NewInstanceLastOperation(description *string, state *string, type_ *string) *InstanceLastOperation { - this := InstanceLastOperation{} - this.Description = description - this.State = state - this.Type = type_ - return &this -} - -// NewInstanceLastOperationWithDefaults instantiates a new InstanceLastOperation 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 NewInstanceLastOperationWithDefaults() *InstanceLastOperation { - this := InstanceLastOperation{} - return &this -} - -// GetDescription returns the Description field value -func (o *InstanceLastOperation) GetDescription() *string { - if o == nil { - var ret *string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *InstanceLastOperation) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description, true -} - -// SetDescription sets field value -func (o *InstanceLastOperation) SetDescription(v *string) { - o.Description = v -} - -// GetState returns the State field value -func (o *InstanceLastOperation) GetState() *string { - if o == nil { - var ret *string - return ret - } - - return o.State -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -func (o *InstanceLastOperation) GetStateOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.State, true -} - -// SetState sets field value -func (o *InstanceLastOperation) SetState(v *string) { - o.State = v -} - -// GetType returns the Type field value -func (o *InstanceLastOperation) GetType() *string { - if o == nil { - var ret *string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *InstanceLastOperation) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Type, true -} - -// SetType sets field value -func (o *InstanceLastOperation) SetType(v *string) { - o.Type = v -} - -func (o InstanceLastOperation) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["description"] = o.Description - toSerialize["state"] = o.State - toSerialize["type"] = o.Type - return toSerialize, nil -} - -type NullableInstanceLastOperation struct { - value *InstanceLastOperation - isSet bool -} - -func (v NullableInstanceLastOperation) Get() *InstanceLastOperation { - return v.value -} - -func (v *NullableInstanceLastOperation) Set(val *InstanceLastOperation) { - v.value = val - v.isSet = true -} - -func (v NullableInstanceLastOperation) IsSet() bool { - return v.isSet -} - -func (v *NullableInstanceLastOperation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInstanceLastOperation(val *InstanceLastOperation) *NullableInstanceLastOperation { - return &NullableInstanceLastOperation{value: val, isSet: true} -} - -func (v NullableInstanceLastOperation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInstanceLastOperation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_instance_parameters.go b/services/rabbitmq/model_instance_parameters.go index c1fc1cff2..2828fe115 100644 --- a/services/rabbitmq/model_instance_parameters.go +++ b/services/rabbitmq/model_instance_parameters.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the InstanceParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceParameters{} - // InstanceParameters struct for InstanceParameters type InstanceParameters struct { // The unit is milliseconds. @@ -39,532 +32,3 @@ type InstanceParameters struct { TlsCiphers *[]string `json:"tls-ciphers,omitempty"` TlsProtocols *string `json:"tls-protocols,omitempty"` } - -// NewInstanceParameters instantiates a new InstanceParameters 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 NewInstanceParameters() *InstanceParameters { - this := InstanceParameters{} - var consumerTimeout int64 = 1800000 - this.ConsumerTimeout = &consumerTimeout - var enableMonitoring bool = false - this.EnableMonitoring = &enableMonitoring - var maxDiskThreshold int64 = 80 - this.MaxDiskThreshold = &maxDiskThreshold - var metricsFrequency int64 = 10 - this.MetricsFrequency = &metricsFrequency - return &this -} - -// NewInstanceParametersWithDefaults instantiates a new InstanceParameters 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 NewInstanceParametersWithDefaults() *InstanceParameters { - this := InstanceParameters{} - var consumerTimeout int64 = 1800000 - this.ConsumerTimeout = &consumerTimeout - var enableMonitoring bool = false - this.EnableMonitoring = &enableMonitoring - var maxDiskThreshold int64 = 80 - this.MaxDiskThreshold = &maxDiskThreshold - var metricsFrequency int64 = 10 - this.MetricsFrequency = &metricsFrequency - return &this -} - -// GetConsumerTimeout returns the ConsumerTimeout field value if set, zero value otherwise. -func (o *InstanceParameters) GetConsumerTimeout() *int64 { - if o == nil || IsNil(o.ConsumerTimeout) { - var ret *int64 - return ret - } - return o.ConsumerTimeout -} - -// GetConsumerTimeoutOk returns a tuple with the ConsumerTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetConsumerTimeoutOk() (*int64, bool) { - if o == nil || IsNil(o.ConsumerTimeout) { - return nil, false - } - return o.ConsumerTimeout, true -} - -// HasConsumerTimeout returns a boolean if a field has been set. -func (o *InstanceParameters) HasConsumerTimeout() bool { - if o != nil && !IsNil(o.ConsumerTimeout) { - return true - } - - return false -} - -// SetConsumerTimeout gets a reference to the given int64 and assigns it to the ConsumerTimeout field. -func (o *InstanceParameters) SetConsumerTimeout(v *int64) { - o.ConsumerTimeout = v -} - -// GetEnableMonitoring returns the EnableMonitoring field value if set, zero value otherwise. -func (o *InstanceParameters) GetEnableMonitoring() *bool { - if o == nil || IsNil(o.EnableMonitoring) { - var ret *bool - return ret - } - return o.EnableMonitoring -} - -// GetEnableMonitoringOk returns a tuple with the EnableMonitoring field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetEnableMonitoringOk() (*bool, bool) { - if o == nil || IsNil(o.EnableMonitoring) { - return nil, false - } - return o.EnableMonitoring, true -} - -// HasEnableMonitoring returns a boolean if a field has been set. -func (o *InstanceParameters) HasEnableMonitoring() bool { - if o != nil && !IsNil(o.EnableMonitoring) { - return true - } - - return false -} - -// SetEnableMonitoring gets a reference to the given bool and assigns it to the EnableMonitoring field. -func (o *InstanceParameters) SetEnableMonitoring(v *bool) { - o.EnableMonitoring = v -} - -// GetGraphite returns the Graphite field value if set, zero value otherwise. -func (o *InstanceParameters) GetGraphite() *string { - if o == nil || IsNil(o.Graphite) { - var ret *string - return ret - } - return o.Graphite -} - -// GetGraphiteOk returns a tuple with the Graphite field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetGraphiteOk() (*string, bool) { - if o == nil || IsNil(o.Graphite) { - return nil, false - } - return o.Graphite, true -} - -// HasGraphite returns a boolean if a field has been set. -func (o *InstanceParameters) HasGraphite() bool { - if o != nil && !IsNil(o.Graphite) { - return true - } - - return false -} - -// SetGraphite gets a reference to the given string and assigns it to the Graphite field. -func (o *InstanceParameters) SetGraphite(v *string) { - o.Graphite = v -} - -// GetMaxDiskThreshold returns the MaxDiskThreshold field value if set, zero value otherwise. -func (o *InstanceParameters) GetMaxDiskThreshold() *int64 { - if o == nil || IsNil(o.MaxDiskThreshold) { - var ret *int64 - return ret - } - return o.MaxDiskThreshold -} - -// GetMaxDiskThresholdOk returns a tuple with the MaxDiskThreshold field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetMaxDiskThresholdOk() (*int64, bool) { - if o == nil || IsNil(o.MaxDiskThreshold) { - return nil, false - } - return o.MaxDiskThreshold, true -} - -// HasMaxDiskThreshold returns a boolean if a field has been set. -func (o *InstanceParameters) HasMaxDiskThreshold() bool { - if o != nil && !IsNil(o.MaxDiskThreshold) { - return true - } - - return false -} - -// SetMaxDiskThreshold gets a reference to the given int64 and assigns it to the MaxDiskThreshold field. -func (o *InstanceParameters) SetMaxDiskThreshold(v *int64) { - o.MaxDiskThreshold = v -} - -// GetMetricsFrequency returns the MetricsFrequency field value if set, zero value otherwise. -func (o *InstanceParameters) GetMetricsFrequency() *int64 { - if o == nil || IsNil(o.MetricsFrequency) { - var ret *int64 - return ret - } - return o.MetricsFrequency -} - -// GetMetricsFrequencyOk returns a tuple with the MetricsFrequency field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetMetricsFrequencyOk() (*int64, bool) { - if o == nil || IsNil(o.MetricsFrequency) { - return nil, false - } - return o.MetricsFrequency, true -} - -// HasMetricsFrequency returns a boolean if a field has been set. -func (o *InstanceParameters) HasMetricsFrequency() bool { - if o != nil && !IsNil(o.MetricsFrequency) { - return true - } - - return false -} - -// SetMetricsFrequency gets a reference to the given int64 and assigns it to the MetricsFrequency field. -func (o *InstanceParameters) SetMetricsFrequency(v *int64) { - o.MetricsFrequency = v -} - -// GetMetricsPrefix returns the MetricsPrefix field value if set, zero value otherwise. -func (o *InstanceParameters) GetMetricsPrefix() *string { - if o == nil || IsNil(o.MetricsPrefix) { - var ret *string - return ret - } - return o.MetricsPrefix -} - -// GetMetricsPrefixOk returns a tuple with the MetricsPrefix field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetMetricsPrefixOk() (*string, bool) { - if o == nil || IsNil(o.MetricsPrefix) { - return nil, false - } - return o.MetricsPrefix, true -} - -// HasMetricsPrefix returns a boolean if a field has been set. -func (o *InstanceParameters) HasMetricsPrefix() bool { - if o != nil && !IsNil(o.MetricsPrefix) { - return true - } - - return false -} - -// SetMetricsPrefix gets a reference to the given string and assigns it to the MetricsPrefix field. -func (o *InstanceParameters) SetMetricsPrefix(v *string) { - o.MetricsPrefix = v -} - -// GetMonitoringInstanceId returns the MonitoringInstanceId field value if set, zero value otherwise. -func (o *InstanceParameters) GetMonitoringInstanceId() *string { - if o == nil || IsNil(o.MonitoringInstanceId) { - var ret *string - return ret - } - return o.MonitoringInstanceId -} - -// GetMonitoringInstanceIdOk returns a tuple with the MonitoringInstanceId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetMonitoringInstanceIdOk() (*string, bool) { - if o == nil || IsNil(o.MonitoringInstanceId) { - return nil, false - } - return o.MonitoringInstanceId, true -} - -// HasMonitoringInstanceId returns a boolean if a field has been set. -func (o *InstanceParameters) HasMonitoringInstanceId() bool { - if o != nil && !IsNil(o.MonitoringInstanceId) { - return true - } - - return false -} - -// SetMonitoringInstanceId gets a reference to the given string and assigns it to the MonitoringInstanceId field. -func (o *InstanceParameters) SetMonitoringInstanceId(v *string) { - o.MonitoringInstanceId = v -} - -// GetPlugins returns the Plugins field value if set, zero value otherwise. -func (o *InstanceParameters) GetPlugins() *[]string { - if o == nil || IsNil(o.Plugins) { - var ret *[]string - return ret - } - return o.Plugins -} - -// GetPluginsOk returns a tuple with the Plugins field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetPluginsOk() (*[]string, bool) { - if o == nil || IsNil(o.Plugins) { - return nil, false - } - return o.Plugins, true -} - -// HasPlugins returns a boolean if a field has been set. -func (o *InstanceParameters) HasPlugins() bool { - if o != nil && !IsNil(o.Plugins) { - return true - } - - return false -} - -// SetPlugins gets a reference to the given []string and assigns it to the Plugins field. -func (o *InstanceParameters) SetPlugins(v *[]string) { - o.Plugins = v -} - -// GetRoles returns the Roles field value if set, zero value otherwise. -func (o *InstanceParameters) GetRoles() *[]string { - if o == nil || IsNil(o.Roles) { - var ret *[]string - return ret - } - return o.Roles -} - -// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetRolesOk() (*[]string, bool) { - if o == nil || IsNil(o.Roles) { - return nil, false - } - return o.Roles, true -} - -// HasRoles returns a boolean if a field has been set. -func (o *InstanceParameters) HasRoles() bool { - if o != nil && !IsNil(o.Roles) { - return true - } - - return false -} - -// SetRoles gets a reference to the given []string and assigns it to the Roles field. -func (o *InstanceParameters) SetRoles(v *[]string) { - o.Roles = v -} - -// GetSgwAcl returns the SgwAcl field value if set, zero value otherwise. -func (o *InstanceParameters) GetSgwAcl() *string { - if o == nil || IsNil(o.SgwAcl) { - var ret *string - return ret - } - return o.SgwAcl -} - -// GetSgwAclOk returns a tuple with the SgwAcl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetSgwAclOk() (*string, bool) { - if o == nil || IsNil(o.SgwAcl) { - return nil, false - } - return o.SgwAcl, true -} - -// HasSgwAcl returns a boolean if a field has been set. -func (o *InstanceParameters) HasSgwAcl() bool { - if o != nil && !IsNil(o.SgwAcl) { - return true - } - - return false -} - -// SetSgwAcl gets a reference to the given string and assigns it to the SgwAcl field. -func (o *InstanceParameters) SetSgwAcl(v *string) { - o.SgwAcl = v -} - -// GetSyslog returns the Syslog field value if set, zero value otherwise. -func (o *InstanceParameters) GetSyslog() *[]string { - if o == nil || IsNil(o.Syslog) { - var ret *[]string - return ret - } - return o.Syslog -} - -// GetSyslogOk returns a tuple with the Syslog field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetSyslogOk() (*[]string, bool) { - if o == nil || IsNil(o.Syslog) { - return nil, false - } - return o.Syslog, true -} - -// HasSyslog returns a boolean if a field has been set. -func (o *InstanceParameters) HasSyslog() bool { - if o != nil && !IsNil(o.Syslog) { - return true - } - - return false -} - -// SetSyslog gets a reference to the given []string and assigns it to the Syslog field. -func (o *InstanceParameters) SetSyslog(v *[]string) { - o.Syslog = v -} - -// GetTlsCiphers returns the TlsCiphers field value if set, zero value otherwise. -func (o *InstanceParameters) GetTlsCiphers() *[]string { - if o == nil || IsNil(o.TlsCiphers) { - var ret *[]string - return ret - } - return o.TlsCiphers -} - -// GetTlsCiphersOk returns a tuple with the TlsCiphers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetTlsCiphersOk() (*[]string, bool) { - if o == nil || IsNil(o.TlsCiphers) { - return nil, false - } - return o.TlsCiphers, true -} - -// HasTlsCiphers returns a boolean if a field has been set. -func (o *InstanceParameters) HasTlsCiphers() bool { - if o != nil && !IsNil(o.TlsCiphers) { - return true - } - - return false -} - -// SetTlsCiphers gets a reference to the given []string and assigns it to the TlsCiphers field. -func (o *InstanceParameters) SetTlsCiphers(v *[]string) { - o.TlsCiphers = v -} - -// GetTlsProtocols returns the TlsProtocols field value if set, zero value otherwise. -func (o *InstanceParameters) GetTlsProtocols() *string { - if o == nil || IsNil(o.TlsProtocols) { - var ret *string - return ret - } - return o.TlsProtocols -} - -// GetTlsProtocolsOk returns a tuple with the TlsProtocols field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstanceParameters) GetTlsProtocolsOk() (*string, bool) { - if o == nil || IsNil(o.TlsProtocols) { - return nil, false - } - return o.TlsProtocols, true -} - -// HasTlsProtocols returns a boolean if a field has been set. -func (o *InstanceParameters) HasTlsProtocols() bool { - if o != nil && !IsNil(o.TlsProtocols) { - return true - } - - return false -} - -// SetTlsProtocols gets a reference to the given string and assigns it to the TlsProtocols field. -func (o *InstanceParameters) SetTlsProtocols(v *string) { - o.TlsProtocols = v -} - -func (o InstanceParameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ConsumerTimeout) { - toSerialize["consumer_timeout"] = o.ConsumerTimeout - } - if !IsNil(o.EnableMonitoring) { - toSerialize["enable_monitoring"] = o.EnableMonitoring - } - if !IsNil(o.Graphite) { - toSerialize["graphite"] = o.Graphite - } - if !IsNil(o.MaxDiskThreshold) { - toSerialize["max_disk_threshold"] = o.MaxDiskThreshold - } - if !IsNil(o.MetricsFrequency) { - toSerialize["metrics_frequency"] = o.MetricsFrequency - } - if !IsNil(o.MetricsPrefix) { - toSerialize["metrics_prefix"] = o.MetricsPrefix - } - if !IsNil(o.MonitoringInstanceId) { - toSerialize["monitoring_instance_id"] = o.MonitoringInstanceId - } - if !IsNil(o.Plugins) { - toSerialize["plugins"] = o.Plugins - } - if !IsNil(o.Roles) { - toSerialize["roles"] = o.Roles - } - if !IsNil(o.SgwAcl) { - toSerialize["sgw_acl"] = o.SgwAcl - } - if !IsNil(o.Syslog) { - toSerialize["syslog"] = o.Syslog - } - if !IsNil(o.TlsCiphers) { - toSerialize["tls-ciphers"] = o.TlsCiphers - } - if !IsNil(o.TlsProtocols) { - toSerialize["tls-protocols"] = o.TlsProtocols - } - return toSerialize, nil -} - -type NullableInstanceParameters struct { - value *InstanceParameters - isSet bool -} - -func (v NullableInstanceParameters) Get() *InstanceParameters { - return v.value -} - -func (v *NullableInstanceParameters) Set(val *InstanceParameters) { - v.value = val - v.isSet = true -} - -func (v NullableInstanceParameters) IsSet() bool { - return v.isSet -} - -func (v *NullableInstanceParameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInstanceParameters(val *InstanceParameters) *NullableInstanceParameters { - return &NullableInstanceParameters{value: val, isSet: true} -} - -func (v NullableInstanceParameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInstanceParameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_instance_schema.go b/services/rabbitmq/model_instance_schema.go index eddcc1438..c06eddd2e 100644 --- a/services/rabbitmq/model_instance_schema.go +++ b/services/rabbitmq/model_instance_schema.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the InstanceSchema type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceSchema{} - // InstanceSchema struct for InstanceSchema type InstanceSchema struct { // REQUIRED @@ -24,115 +17,3 @@ type InstanceSchema struct { // REQUIRED Update *Schema `json:"update"` } - -type _InstanceSchema InstanceSchema - -// NewInstanceSchema instantiates a new InstanceSchema 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 NewInstanceSchema(create *Schema, update *Schema) *InstanceSchema { - this := InstanceSchema{} - this.Create = create - this.Update = update - return &this -} - -// NewInstanceSchemaWithDefaults instantiates a new InstanceSchema 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 NewInstanceSchemaWithDefaults() *InstanceSchema { - this := InstanceSchema{} - return &this -} - -// GetCreate returns the Create field value -func (o *InstanceSchema) GetCreate() *Schema { - if o == nil { - var ret *Schema - return ret - } - - return o.Create -} - -// GetCreateOk returns a tuple with the Create field value -// and a boolean to check if the value has been set. -func (o *InstanceSchema) GetCreateOk() (*Schema, bool) { - if o == nil { - return nil, false - } - return o.Create, true -} - -// SetCreate sets field value -func (o *InstanceSchema) SetCreate(v *Schema) { - o.Create = v -} - -// GetUpdate returns the Update field value -func (o *InstanceSchema) GetUpdate() *Schema { - if o == nil { - var ret *Schema - return ret - } - - return o.Update -} - -// GetUpdateOk returns a tuple with the Update field value -// and a boolean to check if the value has been set. -func (o *InstanceSchema) GetUpdateOk() (*Schema, bool) { - if o == nil { - return nil, false - } - return o.Update, true -} - -// SetUpdate sets field value -func (o *InstanceSchema) SetUpdate(v *Schema) { - o.Update = v -} - -func (o InstanceSchema) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["create"] = o.Create - toSerialize["update"] = o.Update - return toSerialize, nil -} - -type NullableInstanceSchema struct { - value *InstanceSchema - isSet bool -} - -func (v NullableInstanceSchema) Get() *InstanceSchema { - return v.value -} - -func (v *NullableInstanceSchema) Set(val *InstanceSchema) { - v.value = val - v.isSet = true -} - -func (v NullableInstanceSchema) IsSet() bool { - return v.isSet -} - -func (v *NullableInstanceSchema) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInstanceSchema(val *InstanceSchema) *NullableInstanceSchema { - return &NullableInstanceSchema{value: val, isSet: true} -} - -func (v NullableInstanceSchema) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInstanceSchema) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_list_backups_response.go b/services/rabbitmq/model_list_backups_response.go index 403b9b6c6..2054b88b5 100644 --- a/services/rabbitmq/model_list_backups_response.go +++ b/services/rabbitmq/model_list_backups_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the ListBackupsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListBackupsResponse{} - // ListBackupsResponse struct for ListBackupsResponse type ListBackupsResponse struct { // REQUIRED InstanceBackups *[]Backup `json:"instanceBackups"` } - -type _ListBackupsResponse ListBackupsResponse - -// NewListBackupsResponse instantiates a new ListBackupsResponse 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 NewListBackupsResponse(instanceBackups *[]Backup) *ListBackupsResponse { - this := ListBackupsResponse{} - this.InstanceBackups = instanceBackups - return &this -} - -// NewListBackupsResponseWithDefaults instantiates a new ListBackupsResponse 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 NewListBackupsResponseWithDefaults() *ListBackupsResponse { - this := ListBackupsResponse{} - return &this -} - -// GetInstanceBackups returns the InstanceBackups field value -func (o *ListBackupsResponse) GetInstanceBackups() *[]Backup { - if o == nil { - var ret *[]Backup - return ret - } - - return o.InstanceBackups -} - -// GetInstanceBackupsOk returns a tuple with the InstanceBackups field value -// and a boolean to check if the value has been set. -func (o *ListBackupsResponse) GetInstanceBackupsOk() (*[]Backup, bool) { - if o == nil { - return nil, false - } - return o.InstanceBackups, true -} - -// SetInstanceBackups sets field value -func (o *ListBackupsResponse) SetInstanceBackups(v *[]Backup) { - o.InstanceBackups = v -} - -func (o ListBackupsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["instanceBackups"] = o.InstanceBackups - return toSerialize, nil -} - -type NullableListBackupsResponse struct { - value *ListBackupsResponse - isSet bool -} - -func (v NullableListBackupsResponse) Get() *ListBackupsResponse { - return v.value -} - -func (v *NullableListBackupsResponse) Set(val *ListBackupsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListBackupsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListBackupsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListBackupsResponse(val *ListBackupsResponse) *NullableListBackupsResponse { - return &NullableListBackupsResponse{value: val, isSet: true} -} - -func (v NullableListBackupsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListBackupsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_list_credentials_response.go b/services/rabbitmq/model_list_credentials_response.go index c4261cec1..7f6a37b6c 100644 --- a/services/rabbitmq/model_list_credentials_response.go +++ b/services/rabbitmq/model_list_credentials_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the ListCredentialsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListCredentialsResponse{} - // ListCredentialsResponse struct for ListCredentialsResponse type ListCredentialsResponse struct { // REQUIRED CredentialsList *[]CredentialsListItem `json:"credentialsList"` } - -type _ListCredentialsResponse ListCredentialsResponse - -// NewListCredentialsResponse instantiates a new ListCredentialsResponse 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 NewListCredentialsResponse(credentialsList *[]CredentialsListItem) *ListCredentialsResponse { - this := ListCredentialsResponse{} - this.CredentialsList = credentialsList - return &this -} - -// NewListCredentialsResponseWithDefaults instantiates a new ListCredentialsResponse 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 NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { - this := ListCredentialsResponse{} - return &this -} - -// GetCredentialsList returns the CredentialsList field value -func (o *ListCredentialsResponse) GetCredentialsList() *[]CredentialsListItem { - if o == nil { - var ret *[]CredentialsListItem - return ret - } - - return o.CredentialsList -} - -// GetCredentialsListOk returns a tuple with the CredentialsList field value -// and a boolean to check if the value has been set. -func (o *ListCredentialsResponse) GetCredentialsListOk() (*[]CredentialsListItem, bool) { - if o == nil { - return nil, false - } - return o.CredentialsList, true -} - -// SetCredentialsList sets field value -func (o *ListCredentialsResponse) SetCredentialsList(v *[]CredentialsListItem) { - o.CredentialsList = v -} - -func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["credentialsList"] = o.CredentialsList - return toSerialize, nil -} - -type NullableListCredentialsResponse struct { - value *ListCredentialsResponse - isSet bool -} - -func (v NullableListCredentialsResponse) Get() *ListCredentialsResponse { - return v.value -} - -func (v *NullableListCredentialsResponse) Set(val *ListCredentialsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListCredentialsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListCredentialsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListCredentialsResponse(val *ListCredentialsResponse) *NullableListCredentialsResponse { - return &NullableListCredentialsResponse{value: val, isSet: true} -} - -func (v NullableListCredentialsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListCredentialsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_list_instances_response.go b/services/rabbitmq/model_list_instances_response.go index ae8ddd0da..4bd612bdd 100644 --- a/services/rabbitmq/model_list_instances_response.go +++ b/services/rabbitmq/model_list_instances_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the ListInstancesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListInstancesResponse{} - // ListInstancesResponse struct for ListInstancesResponse type ListInstancesResponse struct { // REQUIRED Instances *[]Instance `json:"instances"` } - -type _ListInstancesResponse ListInstancesResponse - -// NewListInstancesResponse instantiates a new ListInstancesResponse 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 NewListInstancesResponse(instances *[]Instance) *ListInstancesResponse { - this := ListInstancesResponse{} - this.Instances = instances - return &this -} - -// NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse 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 NewListInstancesResponseWithDefaults() *ListInstancesResponse { - this := ListInstancesResponse{} - return &this -} - -// GetInstances returns the Instances field value -func (o *ListInstancesResponse) GetInstances() *[]Instance { - if o == nil { - var ret *[]Instance - return ret - } - - return o.Instances -} - -// GetInstancesOk returns a tuple with the Instances field value -// and a boolean to check if the value has been set. -func (o *ListInstancesResponse) GetInstancesOk() (*[]Instance, bool) { - if o == nil { - return nil, false - } - return o.Instances, true -} - -// SetInstances sets field value -func (o *ListInstancesResponse) SetInstances(v *[]Instance) { - o.Instances = v -} - -func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["instances"] = o.Instances - return toSerialize, nil -} - -type NullableListInstancesResponse struct { - value *ListInstancesResponse - isSet bool -} - -func (v NullableListInstancesResponse) Get() *ListInstancesResponse { - return v.value -} - -func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListInstancesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListInstancesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse { - return &NullableListInstancesResponse{value: val, isSet: true} -} - -func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_list_offerings_response.go b/services/rabbitmq/model_list_offerings_response.go index 53f4ef95c..597f8ad8d 100644 --- a/services/rabbitmq/model_list_offerings_response.go +++ b/services/rabbitmq/model_list_offerings_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the ListOfferingsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListOfferingsResponse{} - // ListOfferingsResponse struct for ListOfferingsResponse type ListOfferingsResponse struct { // REQUIRED Offerings *[]Offering `json:"offerings"` } - -type _ListOfferingsResponse ListOfferingsResponse - -// NewListOfferingsResponse instantiates a new ListOfferingsResponse 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 NewListOfferingsResponse(offerings *[]Offering) *ListOfferingsResponse { - this := ListOfferingsResponse{} - this.Offerings = offerings - return &this -} - -// NewListOfferingsResponseWithDefaults instantiates a new ListOfferingsResponse 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 NewListOfferingsResponseWithDefaults() *ListOfferingsResponse { - this := ListOfferingsResponse{} - return &this -} - -// GetOfferings returns the Offerings field value -func (o *ListOfferingsResponse) GetOfferings() *[]Offering { - if o == nil { - var ret *[]Offering - return ret - } - - return o.Offerings -} - -// GetOfferingsOk returns a tuple with the Offerings field value -// and a boolean to check if the value has been set. -func (o *ListOfferingsResponse) GetOfferingsOk() (*[]Offering, bool) { - if o == nil { - return nil, false - } - return o.Offerings, true -} - -// SetOfferings sets field value -func (o *ListOfferingsResponse) SetOfferings(v *[]Offering) { - o.Offerings = v -} - -func (o ListOfferingsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["offerings"] = o.Offerings - return toSerialize, nil -} - -type NullableListOfferingsResponse struct { - value *ListOfferingsResponse - isSet bool -} - -func (v NullableListOfferingsResponse) Get() *ListOfferingsResponse { - return v.value -} - -func (v *NullableListOfferingsResponse) Set(val *ListOfferingsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListOfferingsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListOfferingsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListOfferingsResponse(val *ListOfferingsResponse) *NullableListOfferingsResponse { - return &NullableListOfferingsResponse{value: val, isSet: true} -} - -func (v NullableListOfferingsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListOfferingsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_list_restores_response.go b/services/rabbitmq/model_list_restores_response.go index 4cce5c1b1..918b3161b 100644 --- a/services/rabbitmq/model_list_restores_response.go +++ b/services/rabbitmq/model_list_restores_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the ListRestoresResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListRestoresResponse{} - // ListRestoresResponse struct for ListRestoresResponse type ListRestoresResponse struct { // REQUIRED InstanceRestores *[]Restore `json:"instanceRestores"` } - -type _ListRestoresResponse ListRestoresResponse - -// NewListRestoresResponse instantiates a new ListRestoresResponse 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 NewListRestoresResponse(instanceRestores *[]Restore) *ListRestoresResponse { - this := ListRestoresResponse{} - this.InstanceRestores = instanceRestores - return &this -} - -// NewListRestoresResponseWithDefaults instantiates a new ListRestoresResponse 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 NewListRestoresResponseWithDefaults() *ListRestoresResponse { - this := ListRestoresResponse{} - return &this -} - -// GetInstanceRestores returns the InstanceRestores field value -func (o *ListRestoresResponse) GetInstanceRestores() *[]Restore { - if o == nil { - var ret *[]Restore - return ret - } - - return o.InstanceRestores -} - -// GetInstanceRestoresOk returns a tuple with the InstanceRestores field value -// and a boolean to check if the value has been set. -func (o *ListRestoresResponse) GetInstanceRestoresOk() (*[]Restore, bool) { - if o == nil { - return nil, false - } - return o.InstanceRestores, true -} - -// SetInstanceRestores sets field value -func (o *ListRestoresResponse) SetInstanceRestores(v *[]Restore) { - o.InstanceRestores = v -} - -func (o ListRestoresResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["instanceRestores"] = o.InstanceRestores - return toSerialize, nil -} - -type NullableListRestoresResponse struct { - value *ListRestoresResponse - isSet bool -} - -func (v NullableListRestoresResponse) Get() *ListRestoresResponse { - return v.value -} - -func (v *NullableListRestoresResponse) Set(val *ListRestoresResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListRestoresResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListRestoresResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListRestoresResponse(val *ListRestoresResponse) *NullableListRestoresResponse { - return &NullableListRestoresResponse{value: val, isSet: true} -} - -func (v NullableListRestoresResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListRestoresResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_offering.go b/services/rabbitmq/model_offering.go index cc1c2f23a..5f3292d9c 100644 --- a/services/rabbitmq/model_offering.go +++ b/services/rabbitmq/model_offering.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Offering type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Offering{} - // Offering struct for Offering type Offering struct { // REQUIRED @@ -38,341 +31,3 @@ type Offering struct { // REQUIRED Version *string `json:"version"` } - -type _Offering Offering - -// NewOffering instantiates a new Offering 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 NewOffering(description *string, documentationUrl *string, imageUrl *string, latest *bool, name *string, plans *[]Plan, quotaCount *int64, version *string) *Offering { - this := Offering{} - this.Description = description - this.DocumentationUrl = documentationUrl - this.ImageUrl = imageUrl - this.Latest = latest - this.Name = name - this.Plans = plans - this.QuotaCount = quotaCount - this.Version = version - return &this -} - -// NewOfferingWithDefaults instantiates a new Offering 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 NewOfferingWithDefaults() *Offering { - this := Offering{} - return &this -} - -// GetDescription returns the Description field value -func (o *Offering) GetDescription() *string { - if o == nil { - var ret *string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *Offering) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description, true -} - -// SetDescription sets field value -func (o *Offering) SetDescription(v *string) { - o.Description = v -} - -// GetDocumentationUrl returns the DocumentationUrl field value -func (o *Offering) GetDocumentationUrl() *string { - if o == nil { - var ret *string - return ret - } - - return o.DocumentationUrl -} - -// GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value -// and a boolean to check if the value has been set. -func (o *Offering) GetDocumentationUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.DocumentationUrl, true -} - -// SetDocumentationUrl sets field value -func (o *Offering) SetDocumentationUrl(v *string) { - o.DocumentationUrl = v -} - -// GetImageUrl returns the ImageUrl field value -func (o *Offering) GetImageUrl() *string { - if o == nil { - var ret *string - return ret - } - - return o.ImageUrl -} - -// GetImageUrlOk returns a tuple with the ImageUrl field value -// and a boolean to check if the value has been set. -func (o *Offering) GetImageUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.ImageUrl, true -} - -// SetImageUrl sets field value -func (o *Offering) SetImageUrl(v *string) { - o.ImageUrl = v -} - -// GetLatest returns the Latest field value -func (o *Offering) GetLatest() *bool { - if o == nil { - var ret *bool - return ret - } - - return o.Latest -} - -// GetLatestOk returns a tuple with the Latest field value -// and a boolean to check if the value has been set. -func (o *Offering) GetLatestOk() (*bool, bool) { - if o == nil { - return nil, false - } - return o.Latest, true -} - -// SetLatest sets field value -func (o *Offering) SetLatest(v *bool) { - o.Latest = v -} - -// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. -func (o *Offering) GetLifecycle() *string { - if o == nil || IsNil(o.Lifecycle) { - var ret *string - return ret - } - return o.Lifecycle -} - -// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Offering) GetLifecycleOk() (*string, bool) { - if o == nil || IsNil(o.Lifecycle) { - return nil, false - } - return o.Lifecycle, true -} - -// HasLifecycle returns a boolean if a field has been set. -func (o *Offering) HasLifecycle() bool { - if o != nil && !IsNil(o.Lifecycle) { - return true - } - - return false -} - -// SetLifecycle gets a reference to the given string and assigns it to the Lifecycle field. -func (o *Offering) SetLifecycle(v *string) { - o.Lifecycle = v -} - -// GetName returns the Name field value -func (o *Offering) GetName() *string { - if o == nil { - var ret *string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *Offering) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Name, true -} - -// SetName sets field value -func (o *Offering) SetName(v *string) { - o.Name = v -} - -// GetPlans returns the Plans field value -func (o *Offering) GetPlans() *[]Plan { - if o == nil { - var ret *[]Plan - return ret - } - - return o.Plans -} - -// GetPlansOk returns a tuple with the Plans field value -// and a boolean to check if the value has been set. -func (o *Offering) GetPlansOk() (*[]Plan, bool) { - if o == nil { - return nil, false - } - return o.Plans, true -} - -// SetPlans sets field value -func (o *Offering) SetPlans(v *[]Plan) { - o.Plans = v -} - -// GetQuotaCount returns the QuotaCount field value -func (o *Offering) GetQuotaCount() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.QuotaCount -} - -// GetQuotaCountOk returns a tuple with the QuotaCount field value -// and a boolean to check if the value has been set. -func (o *Offering) GetQuotaCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.QuotaCount, true -} - -// SetQuotaCount sets field value -func (o *Offering) SetQuotaCount(v *int64) { - o.QuotaCount = v -} - -// GetSchema returns the Schema field value if set, zero value otherwise. -func (o *Offering) GetSchema() *InstanceSchema { - if o == nil || IsNil(o.Schema) { - var ret *InstanceSchema - return ret - } - return o.Schema -} - -// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Offering) GetSchemaOk() (*InstanceSchema, bool) { - if o == nil || IsNil(o.Schema) { - return nil, false - } - return o.Schema, true -} - -// HasSchema returns a boolean if a field has been set. -func (o *Offering) HasSchema() bool { - if o != nil && !IsNil(o.Schema) { - return true - } - - return false -} - -// SetSchema gets a reference to the given InstanceSchema and assigns it to the Schema field. -func (o *Offering) SetSchema(v *InstanceSchema) { - o.Schema = v -} - -// GetVersion returns the Version field value -func (o *Offering) GetVersion() *string { - if o == nil { - var ret *string - return ret - } - - return o.Version -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -func (o *Offering) GetVersionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Version, true -} - -// SetVersion sets field value -func (o *Offering) SetVersion(v *string) { - o.Version = v -} - -func (o Offering) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["description"] = o.Description - toSerialize["documentationUrl"] = o.DocumentationUrl - toSerialize["imageUrl"] = o.ImageUrl - toSerialize["latest"] = o.Latest - if !IsNil(o.Lifecycle) { - toSerialize["lifecycle"] = o.Lifecycle - } - toSerialize["name"] = o.Name - toSerialize["plans"] = o.Plans - toSerialize["quotaCount"] = o.QuotaCount - if !IsNil(o.Schema) { - toSerialize["schema"] = o.Schema - } - toSerialize["version"] = o.Version - return toSerialize, nil -} - -type NullableOffering struct { - value *Offering - isSet bool -} - -func (v NullableOffering) Get() *Offering { - return v.value -} - -func (v *NullableOffering) Set(val *Offering) { - v.value = val - v.isSet = true -} - -func (v NullableOffering) IsSet() bool { - return v.isSet -} - -func (v *NullableOffering) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOffering(val *Offering) *NullableOffering { - return &NullableOffering{value: val, isSet: true} -} - -func (v NullableOffering) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOffering) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_partial_update_instance_payload.go b/services/rabbitmq/model_partial_update_instance_payload.go index 5b9597e47..afc53d3e5 100644 --- a/services/rabbitmq/model_partial_update_instance_payload.go +++ b/services/rabbitmq/model_partial_update_instance_payload.go @@ -10,179 +10,9 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the PartialUpdateInstancePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PartialUpdateInstancePayload{} - // PartialUpdateInstancePayload struct for PartialUpdateInstancePayload type PartialUpdateInstancePayload struct { InstanceName *string `json:"instanceName,omitempty"` Parameters *InstanceParameters `json:"parameters,omitempty"` PlanId *string `json:"planId,omitempty"` } - -// NewPartialUpdateInstancePayload instantiates a new PartialUpdateInstancePayload 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 NewPartialUpdateInstancePayload() *PartialUpdateInstancePayload { - this := PartialUpdateInstancePayload{} - return &this -} - -// NewPartialUpdateInstancePayloadWithDefaults instantiates a new PartialUpdateInstancePayload 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 NewPartialUpdateInstancePayloadWithDefaults() *PartialUpdateInstancePayload { - this := PartialUpdateInstancePayload{} - return &this -} - -// GetInstanceName returns the InstanceName field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetInstanceName() *string { - if o == nil || IsNil(o.InstanceName) { - var ret *string - return ret - } - return o.InstanceName -} - -// GetInstanceNameOk returns a tuple with the InstanceName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PartialUpdateInstancePayload) GetInstanceNameOk() (*string, bool) { - if o == nil || IsNil(o.InstanceName) { - return nil, false - } - return o.InstanceName, true -} - -// HasInstanceName returns a boolean if a field has been set. -func (o *PartialUpdateInstancePayload) HasInstanceName() bool { - if o != nil && !IsNil(o.InstanceName) { - return true - } - - return false -} - -// SetInstanceName gets a reference to the given string and assigns it to the InstanceName field. -func (o *PartialUpdateInstancePayload) SetInstanceName(v *string) { - o.InstanceName = v -} - -// GetParameters returns the Parameters field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetParameters() *InstanceParameters { - if o == nil || IsNil(o.Parameters) { - var ret *InstanceParameters - return ret - } - return o.Parameters -} - -// 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 *PartialUpdateInstancePayload) GetParametersOk() (*InstanceParameters, bool) { - if o == nil || IsNil(o.Parameters) { - return nil, false - } - return o.Parameters, true -} - -// HasParameters returns a boolean if a field has been set. -func (o *PartialUpdateInstancePayload) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { - return true - } - - return false -} - -// SetParameters gets a reference to the given InstanceParameters and assigns it to the Parameters field. -func (o *PartialUpdateInstancePayload) SetParameters(v *InstanceParameters) { - o.Parameters = v -} - -// GetPlanId returns the PlanId field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetPlanId() *string { - if o == nil || IsNil(o.PlanId) { - var ret *string - return ret - } - return o.PlanId -} - -// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PartialUpdateInstancePayload) GetPlanIdOk() (*string, bool) { - if o == nil || IsNil(o.PlanId) { - return nil, false - } - return o.PlanId, true -} - -// HasPlanId returns a boolean if a field has been set. -func (o *PartialUpdateInstancePayload) HasPlanId() bool { - if o != nil && !IsNil(o.PlanId) { - return true - } - - return false -} - -// SetPlanId gets a reference to the given string and assigns it to the PlanId field. -func (o *PartialUpdateInstancePayload) SetPlanId(v *string) { - o.PlanId = v -} - -func (o PartialUpdateInstancePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.InstanceName) { - toSerialize["instanceName"] = o.InstanceName - } - if !IsNil(o.Parameters) { - toSerialize["parameters"] = o.Parameters - } - if !IsNil(o.PlanId) { - toSerialize["planId"] = o.PlanId - } - return toSerialize, nil -} - -type NullablePartialUpdateInstancePayload struct { - value *PartialUpdateInstancePayload - isSet bool -} - -func (v NullablePartialUpdateInstancePayload) Get() *PartialUpdateInstancePayload { - return v.value -} - -func (v *NullablePartialUpdateInstancePayload) Set(val *PartialUpdateInstancePayload) { - v.value = val - v.isSet = true -} - -func (v NullablePartialUpdateInstancePayload) IsSet() bool { - return v.isSet -} - -func (v *NullablePartialUpdateInstancePayload) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePartialUpdateInstancePayload(val *PartialUpdateInstancePayload) *NullablePartialUpdateInstancePayload { - return &NullablePartialUpdateInstancePayload{value: val, isSet: true} -} - -func (v NullablePartialUpdateInstancePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePartialUpdateInstancePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_plan.go b/services/rabbitmq/model_plan.go index 56dab197a..78662db63 100644 --- a/services/rabbitmq/model_plan.go +++ b/services/rabbitmq/model_plan.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Plan type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Plan{} - // Plan struct for Plan type Plan struct { // REQUIRED @@ -30,193 +23,3 @@ type Plan struct { // REQUIRED SkuName *string `json:"skuName"` } - -type _Plan Plan - -// NewPlan instantiates a new Plan 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 NewPlan(description *string, free *bool, id *string, name *string, skuName *string) *Plan { - this := Plan{} - this.Description = description - this.Free = free - this.Id = id - this.Name = name - this.SkuName = skuName - return &this -} - -// NewPlanWithDefaults instantiates a new Plan 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 NewPlanWithDefaults() *Plan { - this := Plan{} - return &this -} - -// GetDescription returns the Description field value -func (o *Plan) GetDescription() *string { - if o == nil { - var ret *string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *Plan) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description, true -} - -// SetDescription sets field value -func (o *Plan) SetDescription(v *string) { - o.Description = v -} - -// GetFree returns the Free field value -func (o *Plan) GetFree() *bool { - if o == nil { - var ret *bool - return ret - } - - return o.Free -} - -// GetFreeOk returns a tuple with the Free field value -// and a boolean to check if the value has been set. -func (o *Plan) GetFreeOk() (*bool, bool) { - if o == nil { - return nil, false - } - return o.Free, true -} - -// SetFree sets field value -func (o *Plan) SetFree(v *bool) { - o.Free = v -} - -// GetId returns the Id field value -func (o *Plan) GetId() *string { - if o == nil { - var ret *string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *Plan) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *Plan) SetId(v *string) { - o.Id = v -} - -// GetName returns the Name field value -func (o *Plan) GetName() *string { - if o == nil { - var ret *string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *Plan) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Name, true -} - -// SetName sets field value -func (o *Plan) SetName(v *string) { - o.Name = v -} - -// GetSkuName returns the SkuName field value -func (o *Plan) GetSkuName() *string { - if o == nil { - var ret *string - return ret - } - - return o.SkuName -} - -// GetSkuNameOk returns a tuple with the SkuName field value -// and a boolean to check if the value has been set. -func (o *Plan) GetSkuNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.SkuName, true -} - -// SetSkuName sets field value -func (o *Plan) SetSkuName(v *string) { - o.SkuName = v -} - -func (o Plan) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["description"] = o.Description - toSerialize["free"] = o.Free - toSerialize["id"] = o.Id - toSerialize["name"] = o.Name - toSerialize["skuName"] = o.SkuName - return toSerialize, nil -} - -type NullablePlan struct { - value *Plan - isSet bool -} - -func (v NullablePlan) Get() *Plan { - return v.value -} - -func (v *NullablePlan) Set(val *Plan) { - v.value = val - v.isSet = true -} - -func (v NullablePlan) IsSet() bool { - return v.isSet -} - -func (v *NullablePlan) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePlan(val *Plan) *NullablePlan { - return &NullablePlan{value: val, isSet: true} -} - -func (v NullablePlan) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePlan) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_raw_credentials.go b/services/rabbitmq/model_raw_credentials.go index f4b069b1b..69cdfd250 100644 --- a/services/rabbitmq/model_raw_credentials.go +++ b/services/rabbitmq/model_raw_credentials.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the RawCredentials type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RawCredentials{} - // RawCredentials struct for RawCredentials type RawCredentials struct { // REQUIRED Credentials *Credentials `json:"credentials"` } - -type _RawCredentials RawCredentials - -// NewRawCredentials instantiates a new RawCredentials 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 NewRawCredentials(credentials *Credentials) *RawCredentials { - this := RawCredentials{} - this.Credentials = credentials - return &this -} - -// NewRawCredentialsWithDefaults instantiates a new RawCredentials 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 NewRawCredentialsWithDefaults() *RawCredentials { - this := RawCredentials{} - return &this -} - -// GetCredentials returns the Credentials field value -func (o *RawCredentials) GetCredentials() *Credentials { - if o == nil { - var ret *Credentials - return ret - } - - return o.Credentials -} - -// GetCredentialsOk returns a tuple with the Credentials field value -// and a boolean to check if the value has been set. -func (o *RawCredentials) GetCredentialsOk() (*Credentials, bool) { - if o == nil { - return nil, false - } - return o.Credentials, true -} - -// SetCredentials sets field value -func (o *RawCredentials) SetCredentials(v *Credentials) { - o.Credentials = v -} - -func (o RawCredentials) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["credentials"] = o.Credentials - return toSerialize, nil -} - -type NullableRawCredentials struct { - value *RawCredentials - isSet bool -} - -func (v NullableRawCredentials) Get() *RawCredentials { - return v.value -} - -func (v *NullableRawCredentials) Set(val *RawCredentials) { - v.value = val - v.isSet = true -} - -func (v NullableRawCredentials) IsSet() bool { - return v.isSet -} - -func (v *NullableRawCredentials) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRawCredentials(val *RawCredentials) *NullableRawCredentials { - return &NullableRawCredentials{value: val, isSet: true} -} - -func (v NullableRawCredentials) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRawCredentials) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_restore.go b/services/rabbitmq/model_restore.go index 60d25c859..ba6c3a31c 100644 --- a/services/rabbitmq/model_restore.go +++ b/services/rabbitmq/model_restore.go @@ -10,13 +10,6 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Restore type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Restore{} - // Restore struct for Restore type Restore struct { // REQUIRED @@ -29,202 +22,3 @@ type Restore struct { Status *string `json:"status"` TriggeredAt *string `json:"triggered_at,omitempty"` } - -type _Restore Restore - -// NewRestore instantiates a new Restore 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 NewRestore(backupId *int64, finishedAt *string, id *int64, status *string) *Restore { - this := Restore{} - this.BackupId = backupId - this.FinishedAt = finishedAt - this.Id = id - this.Status = status - return &this -} - -// NewRestoreWithDefaults instantiates a new Restore 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 NewRestoreWithDefaults() *Restore { - this := Restore{} - return &this -} - -// GetBackupId returns the BackupId field value -func (o *Restore) GetBackupId() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.BackupId -} - -// GetBackupIdOk returns a tuple with the BackupId field value -// and a boolean to check if the value has been set. -func (o *Restore) GetBackupIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.BackupId, true -} - -// SetBackupId sets field value -func (o *Restore) SetBackupId(v *int64) { - o.BackupId = v -} - -// GetFinishedAt returns the FinishedAt field value -func (o *Restore) GetFinishedAt() *string { - if o == nil { - var ret *string - return ret - } - - return o.FinishedAt -} - -// GetFinishedAtOk returns a tuple with the FinishedAt field value -// and a boolean to check if the value has been set. -func (o *Restore) GetFinishedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.FinishedAt, true -} - -// SetFinishedAt sets field value -func (o *Restore) SetFinishedAt(v *string) { - o.FinishedAt = v -} - -// GetId returns the Id field value -func (o *Restore) GetId() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *Restore) GetIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *Restore) SetId(v *int64) { - o.Id = v -} - -// GetStatus returns the Status field value -func (o *Restore) GetStatus() *string { - if o == nil { - var ret *string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *Restore) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Status, true -} - -// SetStatus sets field value -func (o *Restore) SetStatus(v *string) { - o.Status = v -} - -// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. -func (o *Restore) GetTriggeredAt() *string { - if o == nil || IsNil(o.TriggeredAt) { - var ret *string - return ret - } - return o.TriggeredAt -} - -// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Restore) GetTriggeredAtOk() (*string, bool) { - if o == nil || IsNil(o.TriggeredAt) { - return nil, false - } - return o.TriggeredAt, true -} - -// HasTriggeredAt returns a boolean if a field has been set. -func (o *Restore) HasTriggeredAt() bool { - if o != nil && !IsNil(o.TriggeredAt) { - return true - } - - return false -} - -// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. -func (o *Restore) SetTriggeredAt(v *string) { - o.TriggeredAt = v -} - -func (o Restore) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["backup_id"] = o.BackupId - toSerialize["finished_at"] = o.FinishedAt - toSerialize["id"] = o.Id - toSerialize["status"] = o.Status - if !IsNil(o.TriggeredAt) { - toSerialize["triggered_at"] = o.TriggeredAt - } - return toSerialize, nil -} - -type NullableRestore struct { - value *Restore - isSet bool -} - -func (v NullableRestore) Get() *Restore { - return v.value -} - -func (v *NullableRestore) Set(val *Restore) { - v.value = val - v.isSet = true -} - -func (v NullableRestore) IsSet() bool { - return v.isSet -} - -func (v *NullableRestore) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRestore(val *Restore) *NullableRestore { - return &NullableRestore{value: val, isSet: true} -} - -func (v NullableRestore) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRestore) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_schema.go b/services/rabbitmq/model_schema.go index a614d3072..acd4be598 100644 --- a/services/rabbitmq/model_schema.go +++ b/services/rabbitmq/model_schema.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the Schema type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Schema{} - // Schema struct for Schema type Schema struct { // REQUIRED Parameters *map[string]interface{} `json:"parameters"` } - -type _Schema Schema - -// NewSchema instantiates a new Schema 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 NewSchema(parameters *map[string]interface{}) *Schema { - this := Schema{} - this.Parameters = parameters - return &this -} - -// NewSchemaWithDefaults instantiates a new Schema 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 NewSchemaWithDefaults() *Schema { - this := Schema{} - return &this -} - -// GetParameters returns the Parameters field value -func (o *Schema) GetParameters() *map[string]interface{} { - if o == nil { - var ret *map[string]interface{} - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *Schema) GetParametersOk() (*map[string]interface{}, bool) { - if o == nil { - return &map[string]interface{}{}, false - } - return o.Parameters, true -} - -// SetParameters sets field value -func (o *Schema) SetParameters(v *map[string]interface{}) { - o.Parameters = v -} - -func (o Schema) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["parameters"] = o.Parameters - return toSerialize, nil -} - -type NullableSchema struct { - value *Schema - isSet bool -} - -func (v NullableSchema) Get() *Schema { - return v.value -} - -func (v *NullableSchema) Set(val *Schema) { - v.value = val - v.isSet = true -} - -func (v NullableSchema) IsSet() bool { - return v.isSet -} - -func (v *NullableSchema) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchema(val *Schema) *NullableSchema { - return &NullableSchema{value: val, isSet: true} -} - -func (v NullableSchema) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchema) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_trigger_restore_response.go b/services/rabbitmq/model_trigger_restore_response.go index 67325a265..b499c43f9 100644 --- a/services/rabbitmq/model_trigger_restore_response.go +++ b/services/rabbitmq/model_trigger_restore_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the TriggerRestoreResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TriggerRestoreResponse{} - // TriggerRestoreResponse struct for TriggerRestoreResponse type TriggerRestoreResponse struct { // REQUIRED Id *int64 `json:"id"` } - -type _TriggerRestoreResponse TriggerRestoreResponse - -// NewTriggerRestoreResponse instantiates a new TriggerRestoreResponse 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 NewTriggerRestoreResponse(id *int64) *TriggerRestoreResponse { - this := TriggerRestoreResponse{} - this.Id = id - return &this -} - -// NewTriggerRestoreResponseWithDefaults instantiates a new TriggerRestoreResponse 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 NewTriggerRestoreResponseWithDefaults() *TriggerRestoreResponse { - this := TriggerRestoreResponse{} - return &this -} - -// GetId returns the Id field value -func (o *TriggerRestoreResponse) GetId() *int64 { - if o == nil { - var ret *int64 - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TriggerRestoreResponse) GetIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.Id, true -} - -// SetId sets field value -func (o *TriggerRestoreResponse) SetId(v *int64) { - o.Id = v -} - -func (o TriggerRestoreResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - return toSerialize, nil -} - -type NullableTriggerRestoreResponse struct { - value *TriggerRestoreResponse - isSet bool -} - -func (v NullableTriggerRestoreResponse) Get() *TriggerRestoreResponse { - return v.value -} - -func (v *NullableTriggerRestoreResponse) Set(val *TriggerRestoreResponse) { - v.value = val - v.isSet = true -} - -func (v NullableTriggerRestoreResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableTriggerRestoreResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTriggerRestoreResponse(val *TriggerRestoreResponse) *NullableTriggerRestoreResponse { - return &NullableTriggerRestoreResponse{value: val, isSet: true} -} - -func (v NullableTriggerRestoreResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTriggerRestoreResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_update_backups_config_payload.go b/services/rabbitmq/model_update_backups_config_payload.go index dd2494392..e0273c721 100644 --- a/services/rabbitmq/model_update_backups_config_payload.go +++ b/services/rabbitmq/model_update_backups_config_payload.go @@ -10,107 +10,7 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the UpdateBackupsConfigPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateBackupsConfigPayload{} - // UpdateBackupsConfigPayload struct for UpdateBackupsConfigPayload type UpdateBackupsConfigPayload struct { EncryptionKey *string `json:"encryption_key,omitempty"` } - -// NewUpdateBackupsConfigPayload instantiates a new UpdateBackupsConfigPayload 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 NewUpdateBackupsConfigPayload() *UpdateBackupsConfigPayload { - this := UpdateBackupsConfigPayload{} - return &this -} - -// NewUpdateBackupsConfigPayloadWithDefaults instantiates a new UpdateBackupsConfigPayload 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 NewUpdateBackupsConfigPayloadWithDefaults() *UpdateBackupsConfigPayload { - this := UpdateBackupsConfigPayload{} - return &this -} - -// GetEncryptionKey returns the EncryptionKey field value if set, zero value otherwise. -func (o *UpdateBackupsConfigPayload) GetEncryptionKey() *string { - if o == nil || IsNil(o.EncryptionKey) { - var ret *string - return ret - } - return o.EncryptionKey -} - -// GetEncryptionKeyOk returns a tuple with the EncryptionKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateBackupsConfigPayload) GetEncryptionKeyOk() (*string, bool) { - if o == nil || IsNil(o.EncryptionKey) { - return nil, false - } - return o.EncryptionKey, true -} - -// HasEncryptionKey returns a boolean if a field has been set. -func (o *UpdateBackupsConfigPayload) HasEncryptionKey() bool { - if o != nil && !IsNil(o.EncryptionKey) { - return true - } - - return false -} - -// SetEncryptionKey gets a reference to the given string and assigns it to the EncryptionKey field. -func (o *UpdateBackupsConfigPayload) SetEncryptionKey(v *string) { - o.EncryptionKey = v -} - -func (o UpdateBackupsConfigPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.EncryptionKey) { - toSerialize["encryption_key"] = o.EncryptionKey - } - return toSerialize, nil -} - -type NullableUpdateBackupsConfigPayload struct { - value *UpdateBackupsConfigPayload - isSet bool -} - -func (v NullableUpdateBackupsConfigPayload) Get() *UpdateBackupsConfigPayload { - return v.value -} - -func (v *NullableUpdateBackupsConfigPayload) Set(val *UpdateBackupsConfigPayload) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateBackupsConfigPayload) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateBackupsConfigPayload) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateBackupsConfigPayload(val *UpdateBackupsConfigPayload) *NullableUpdateBackupsConfigPayload { - return &NullableUpdateBackupsConfigPayload{value: val, isSet: true} -} - -func (v NullableUpdateBackupsConfigPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateBackupsConfigPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/rabbitmq/model_update_backups_config_response.go b/services/rabbitmq/model_update_backups_config_response.go index ce135c4e2..037ccf60a 100644 --- a/services/rabbitmq/model_update_backups_config_response.go +++ b/services/rabbitmq/model_update_backups_config_response.go @@ -10,101 +10,8 @@ API version: 1.1.0 package rabbitmq -import ( - "encoding/json" -) - -// checks if the UpdateBackupsConfigResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateBackupsConfigResponse{} - // UpdateBackupsConfigResponse struct for UpdateBackupsConfigResponse type UpdateBackupsConfigResponse struct { // REQUIRED Message *string `json:"message"` } - -type _UpdateBackupsConfigResponse UpdateBackupsConfigResponse - -// NewUpdateBackupsConfigResponse instantiates a new UpdateBackupsConfigResponse 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 NewUpdateBackupsConfigResponse(message *string) *UpdateBackupsConfigResponse { - this := UpdateBackupsConfigResponse{} - this.Message = message - return &this -} - -// NewUpdateBackupsConfigResponseWithDefaults instantiates a new UpdateBackupsConfigResponse 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 NewUpdateBackupsConfigResponseWithDefaults() *UpdateBackupsConfigResponse { - this := UpdateBackupsConfigResponse{} - return &this -} - -// GetMessage returns the Message field value -func (o *UpdateBackupsConfigResponse) GetMessage() *string { - if o == nil { - var ret *string - return ret - } - - return o.Message -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -func (o *UpdateBackupsConfigResponse) GetMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Message, true -} - -// SetMessage sets field value -func (o *UpdateBackupsConfigResponse) SetMessage(v *string) { - o.Message = v -} - -func (o UpdateBackupsConfigResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["message"] = o.Message - return toSerialize, nil -} - -type NullableUpdateBackupsConfigResponse struct { - value *UpdateBackupsConfigResponse - isSet bool -} - -func (v NullableUpdateBackupsConfigResponse) Get() *UpdateBackupsConfigResponse { - return v.value -} - -func (v *NullableUpdateBackupsConfigResponse) Set(val *UpdateBackupsConfigResponse) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateBackupsConfigResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateBackupsConfigResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateBackupsConfigResponse(val *UpdateBackupsConfigResponse) *NullableUpdateBackupsConfigResponse { - return &NullableUpdateBackupsConfigResponse{value: val, isSet: true} -} - -func (v NullableUpdateBackupsConfigResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateBackupsConfigResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -}