diff --git a/services/secretsmanager/CHANGELOG.md b/services/secretsmanager/CHANGELOG.md index cefde9cd4..2dddd08c0 100644 --- a/services/secretsmanager/CHANGELOG.md +++ b/services/secretsmanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.10.0 (2024-10-14) + +- **Feature:** Add support for nullable models + ## v0.9.0 (2024-08-16) - **Feature**: New API method `UpdateInstance` to update an instance diff --git a/services/secretsmanager/model_acl.go b/services/secretsmanager/model_acl.go index b2644461e..aa340cdf4 100644 --- a/services/secretsmanager/model_acl.go +++ b/services/secretsmanager/model_acl.go @@ -10,6 +10,13 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the ACL type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ACL{} + // ACL struct for ACL type ACL struct { // The given IP/IP Range that is permitted to access. @@ -19,3 +26,115 @@ type ACL struct { // REQUIRED Id *string `json:"id"` } + +type _ACL ACL + +// NewACL instantiates a new ACL 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 NewACL(cidr *string, id *string) *ACL { + this := ACL{} + this.Cidr = cidr + this.Id = id + return &this +} + +// NewACLWithDefaults instantiates a new ACL 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 NewACLWithDefaults() *ACL { + this := ACL{} + return &this +} + +// GetCidr returns the Cidr field value +func (o *ACL) GetCidr() *string { + if o == nil { + var ret *string + return ret + } + + return o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value +// and a boolean to check if the value has been set. +func (o *ACL) GetCidrOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cidr, true +} + +// SetCidr sets field value +func (o *ACL) SetCidr(v *string) { + o.Cidr = v +} + +// GetId returns the Id field value +func (o *ACL) 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 *ACL) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id, true +} + +// SetId sets field value +func (o *ACL) SetId(v *string) { + o.Id = v +} + +func (o ACL) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cidr"] = o.Cidr + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableACL struct { + value *ACL + isSet bool +} + +func (v NullableACL) Get() *ACL { + return v.value +} + +func (v *NullableACL) Set(val *ACL) { + v.value = val + v.isSet = true +} + +func (v NullableACL) IsSet() bool { + return v.isSet +} + +func (v *NullableACL) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableACL(val *ACL) *NullableACL { + return &NullableACL{value: val, isSet: true} +} + +func (v NullableACL) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableACL) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_create_acl_payload.go b/services/secretsmanager/model_create_acl_payload.go index c6e5e79ec..5feba4761 100644 --- a/services/secretsmanager/model_create_acl_payload.go +++ b/services/secretsmanager/model_create_acl_payload.go @@ -10,9 +10,102 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the CreateACLPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateACLPayload{} + // CreateACLPayload struct for CreateACLPayload type CreateACLPayload struct { // The given IP/IP Range that is permitted to access. // REQUIRED Cidr *string `json:"cidr"` } + +type _CreateACLPayload CreateACLPayload + +// NewCreateACLPayload instantiates a new CreateACLPayload 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 NewCreateACLPayload(cidr *string) *CreateACLPayload { + this := CreateACLPayload{} + this.Cidr = cidr + return &this +} + +// NewCreateACLPayloadWithDefaults instantiates a new CreateACLPayload 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 NewCreateACLPayloadWithDefaults() *CreateACLPayload { + this := CreateACLPayload{} + return &this +} + +// GetCidr returns the Cidr field value +func (o *CreateACLPayload) GetCidr() *string { + if o == nil { + var ret *string + return ret + } + + return o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value +// and a boolean to check if the value has been set. +func (o *CreateACLPayload) GetCidrOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cidr, true +} + +// SetCidr sets field value +func (o *CreateACLPayload) SetCidr(v *string) { + o.Cidr = v +} + +func (o CreateACLPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cidr"] = o.Cidr + return toSerialize, nil +} + +type NullableCreateACLPayload struct { + value *CreateACLPayload + isSet bool +} + +func (v NullableCreateACLPayload) Get() *CreateACLPayload { + return v.value +} + +func (v *NullableCreateACLPayload) Set(val *CreateACLPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateACLPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateACLPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateACLPayload(val *CreateACLPayload) *NullableCreateACLPayload { + return &NullableCreateACLPayload{value: val, isSet: true} +} + +func (v NullableCreateACLPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateACLPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_create_instance_payload.go b/services/secretsmanager/model_create_instance_payload.go index 5cd3befc1..92e443645 100644 --- a/services/secretsmanager/model_create_instance_payload.go +++ b/services/secretsmanager/model_create_instance_payload.go @@ -10,9 +10,102 @@ API version: 1.4.0 package secretsmanager +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 { // A user chosen name to distinguish multiple secrets manager instances. // REQUIRED Name *string `json:"name"` } + +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(name *string) *CreateInstancePayload { + this := CreateInstancePayload{} + this.Name = name + 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 +} + +// GetName returns the Name field value +func (o *CreateInstancePayload) 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 *CreateInstancePayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name, true +} + +// SetName sets field value +func (o *CreateInstancePayload) SetName(v *string) { + o.Name = v +} + +func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + 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/secretsmanager/model_create_user_payload.go b/services/secretsmanager/model_create_user_payload.go index 0cdc700c6..f394a941a 100644 --- a/services/secretsmanager/model_create_user_payload.go +++ b/services/secretsmanager/model_create_user_payload.go @@ -10,6 +10,13 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the CreateUserPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateUserPayload{} + // CreateUserPayload struct for CreateUserPayload type CreateUserPayload struct { // A user chosen description to differentiate between multiple users. @@ -19,3 +26,115 @@ type CreateUserPayload struct { // REQUIRED Write *bool `json:"write"` } + +type _CreateUserPayload CreateUserPayload + +// NewCreateUserPayload instantiates a new CreateUserPayload 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 NewCreateUserPayload(description *string, write *bool) *CreateUserPayload { + this := CreateUserPayload{} + this.Description = description + this.Write = write + return &this +} + +// NewCreateUserPayloadWithDefaults instantiates a new CreateUserPayload 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 NewCreateUserPayloadWithDefaults() *CreateUserPayload { + this := CreateUserPayload{} + return &this +} + +// GetDescription returns the Description field value +func (o *CreateUserPayload) 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 *CreateUserPayload) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description, true +} + +// SetDescription sets field value +func (o *CreateUserPayload) SetDescription(v *string) { + o.Description = v +} + +// GetWrite returns the Write field value +func (o *CreateUserPayload) GetWrite() *bool { + if o == nil { + var ret *bool + return ret + } + + return o.Write +} + +// GetWriteOk returns a tuple with the Write field value +// and a boolean to check if the value has been set. +func (o *CreateUserPayload) GetWriteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Write, true +} + +// SetWrite sets field value +func (o *CreateUserPayload) SetWrite(v *bool) { + o.Write = v +} + +func (o CreateUserPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["write"] = o.Write + return toSerialize, nil +} + +type NullableCreateUserPayload struct { + value *CreateUserPayload + isSet bool +} + +func (v NullableCreateUserPayload) Get() *CreateUserPayload { + return v.value +} + +func (v *NullableCreateUserPayload) Set(val *CreateUserPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateUserPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateUserPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateUserPayload(val *CreateUserPayload) *NullableCreateUserPayload { + return &NullableCreateUserPayload{value: val, isSet: true} +} + +func (v NullableCreateUserPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateUserPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_instance.go b/services/secretsmanager/model_instance.go index 82894a8b2..74c24ffec 100644 --- a/services/secretsmanager/model_instance.go +++ b/services/secretsmanager/model_instance.go @@ -10,6 +10,13 @@ API version: 1.4.0 package secretsmanager +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 { // The API endpoint for connecting to the secrets engine. @@ -38,3 +45,350 @@ type Instance struct { UpdateFinishedDate *string `json:"updateFinishedDate,omitempty"` UpdateStartDate *string `json:"updateStartDate,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(apiUrl *string, creationStartDate *string, id *string, name *string, secretCount *int64, secretsEngine *string, state *string) *Instance { + this := Instance{} + this.ApiUrl = apiUrl + this.CreationStartDate = creationStartDate + this.Id = id + this.Name = name + this.SecretCount = secretCount + this.SecretsEngine = secretsEngine + this.State = state + 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 +} + +// GetApiUrl returns the ApiUrl field value +func (o *Instance) GetApiUrl() *string { + if o == nil { + var ret *string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *Instance) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *Instance) SetApiUrl(v *string) { + o.ApiUrl = v +} + +// GetCreationFinishedDate returns the CreationFinishedDate field value if set, zero value otherwise. +func (o *Instance) GetCreationFinishedDate() *string { + if o == nil || IsNil(o.CreationFinishedDate) { + var ret *string + return ret + } + return o.CreationFinishedDate +} + +// GetCreationFinishedDateOk returns a tuple with the CreationFinishedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetCreationFinishedDateOk() (*string, bool) { + if o == nil || IsNil(o.CreationFinishedDate) { + return nil, false + } + return o.CreationFinishedDate, true +} + +// HasCreationFinishedDate returns a boolean if a field has been set. +func (o *Instance) HasCreationFinishedDate() bool { + if o != nil && !IsNil(o.CreationFinishedDate) { + return true + } + + return false +} + +// SetCreationFinishedDate gets a reference to the given string and assigns it to the CreationFinishedDate field. +func (o *Instance) SetCreationFinishedDate(v *string) { + o.CreationFinishedDate = v +} + +// GetCreationStartDate returns the CreationStartDate field value +func (o *Instance) GetCreationStartDate() *string { + if o == nil { + var ret *string + return ret + } + + return o.CreationStartDate +} + +// GetCreationStartDateOk returns a tuple with the CreationStartDate field value +// and a boolean to check if the value has been set. +func (o *Instance) GetCreationStartDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CreationStartDate, true +} + +// SetCreationStartDate sets field value +func (o *Instance) SetCreationStartDate(v *string) { + o.CreationStartDate = v +} + +// GetId returns the Id field value +func (o *Instance) 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 *Instance) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id, true +} + +// SetId sets field value +func (o *Instance) SetId(v *string) { + o.Id = 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 +} + +// GetSecretCount returns the SecretCount field value +func (o *Instance) GetSecretCount() *int64 { + if o == nil { + var ret *int64 + return ret + } + + return o.SecretCount +} + +// GetSecretCountOk returns a tuple with the SecretCount field value +// and a boolean to check if the value has been set. +func (o *Instance) GetSecretCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.SecretCount, true +} + +// SetSecretCount sets field value +func (o *Instance) SetSecretCount(v *int64) { + o.SecretCount = v +} + +// GetSecretsEngine returns the SecretsEngine field value +func (o *Instance) GetSecretsEngine() *string { + if o == nil { + var ret *string + return ret + } + + return o.SecretsEngine +} + +// GetSecretsEngineOk returns a tuple with the SecretsEngine field value +// and a boolean to check if the value has been set. +func (o *Instance) GetSecretsEngineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SecretsEngine, true +} + +// SetSecretsEngine sets field value +func (o *Instance) SetSecretsEngine(v *string) { + o.SecretsEngine = v +} + +// GetState returns the State field value +func (o *Instance) 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 *Instance) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.State, true +} + +// SetState sets field value +func (o *Instance) SetState(v *string) { + o.State = v +} + +// GetUpdateFinishedDate returns the UpdateFinishedDate field value if set, zero value otherwise. +func (o *Instance) GetUpdateFinishedDate() *string { + if o == nil || IsNil(o.UpdateFinishedDate) { + var ret *string + return ret + } + return o.UpdateFinishedDate +} + +// GetUpdateFinishedDateOk returns a tuple with the UpdateFinishedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetUpdateFinishedDateOk() (*string, bool) { + if o == nil || IsNil(o.UpdateFinishedDate) { + return nil, false + } + return o.UpdateFinishedDate, true +} + +// HasUpdateFinishedDate returns a boolean if a field has been set. +func (o *Instance) HasUpdateFinishedDate() bool { + if o != nil && !IsNil(o.UpdateFinishedDate) { + return true + } + + return false +} + +// SetUpdateFinishedDate gets a reference to the given string and assigns it to the UpdateFinishedDate field. +func (o *Instance) SetUpdateFinishedDate(v *string) { + o.UpdateFinishedDate = v +} + +// GetUpdateStartDate returns the UpdateStartDate field value if set, zero value otherwise. +func (o *Instance) GetUpdateStartDate() *string { + if o == nil || IsNil(o.UpdateStartDate) { + var ret *string + return ret + } + return o.UpdateStartDate +} + +// GetUpdateStartDateOk returns a tuple with the UpdateStartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetUpdateStartDateOk() (*string, bool) { + if o == nil || IsNil(o.UpdateStartDate) { + return nil, false + } + return o.UpdateStartDate, true +} + +// HasUpdateStartDate returns a boolean if a field has been set. +func (o *Instance) HasUpdateStartDate() bool { + if o != nil && !IsNil(o.UpdateStartDate) { + return true + } + + return false +} + +// SetUpdateStartDate gets a reference to the given string and assigns it to the UpdateStartDate field. +func (o *Instance) SetUpdateStartDate(v *string) { + o.UpdateStartDate = v +} + +func (o Instance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + if !IsNil(o.CreationFinishedDate) { + toSerialize["creationFinishedDate"] = o.CreationFinishedDate + } + toSerialize["creationStartDate"] = o.CreationStartDate + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["secretCount"] = o.SecretCount + toSerialize["secretsEngine"] = o.SecretsEngine + toSerialize["state"] = o.State + if !IsNil(o.UpdateFinishedDate) { + toSerialize["updateFinishedDate"] = o.UpdateFinishedDate + } + if !IsNil(o.UpdateStartDate) { + toSerialize["updateStartDate"] = o.UpdateStartDate + } + 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/secretsmanager/model_list_acls_response.go b/services/secretsmanager/model_list_acls_response.go index 4c6b0ff5f..9df5b95ef 100644 --- a/services/secretsmanager/model_list_acls_response.go +++ b/services/secretsmanager/model_list_acls_response.go @@ -10,8 +10,101 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the ListACLsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListACLsResponse{} + // ListACLsResponse struct for ListACLsResponse type ListACLsResponse struct { // REQUIRED Acls *[]ACL `json:"acls"` } + +type _ListACLsResponse ListACLsResponse + +// NewListACLsResponse instantiates a new ListACLsResponse 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 NewListACLsResponse(acls *[]ACL) *ListACLsResponse { + this := ListACLsResponse{} + this.Acls = acls + return &this +} + +// NewListACLsResponseWithDefaults instantiates a new ListACLsResponse 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 NewListACLsResponseWithDefaults() *ListACLsResponse { + this := ListACLsResponse{} + return &this +} + +// GetAcls returns the Acls field value +func (o *ListACLsResponse) GetAcls() *[]ACL { + if o == nil { + var ret *[]ACL + return ret + } + + return o.Acls +} + +// GetAclsOk returns a tuple with the Acls field value +// and a boolean to check if the value has been set. +func (o *ListACLsResponse) GetAclsOk() (*[]ACL, bool) { + if o == nil { + return nil, false + } + return o.Acls, true +} + +// SetAcls sets field value +func (o *ListACLsResponse) SetAcls(v *[]ACL) { + o.Acls = v +} + +func (o ListACLsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["acls"] = o.Acls + return toSerialize, nil +} + +type NullableListACLsResponse struct { + value *ListACLsResponse + isSet bool +} + +func (v NullableListACLsResponse) Get() *ListACLsResponse { + return v.value +} + +func (v *NullableListACLsResponse) Set(val *ListACLsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListACLsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListACLsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListACLsResponse(val *ListACLsResponse) *NullableListACLsResponse { + return &NullableListACLsResponse{value: val, isSet: true} +} + +func (v NullableListACLsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListACLsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_list_instances_response.go b/services/secretsmanager/model_list_instances_response.go index 21e92436b..bc0434a7f 100644 --- a/services/secretsmanager/model_list_instances_response.go +++ b/services/secretsmanager/model_list_instances_response.go @@ -10,8 +10,101 @@ API version: 1.4.0 package secretsmanager +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/secretsmanager/model_list_users_response.go b/services/secretsmanager/model_list_users_response.go index 6ea1967b0..5a21c782d 100644 --- a/services/secretsmanager/model_list_users_response.go +++ b/services/secretsmanager/model_list_users_response.go @@ -10,8 +10,101 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the ListUsersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListUsersResponse{} + // ListUsersResponse struct for ListUsersResponse type ListUsersResponse struct { // REQUIRED Users *[]User `json:"users"` } + +type _ListUsersResponse ListUsersResponse + +// NewListUsersResponse instantiates a new ListUsersResponse 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 NewListUsersResponse(users *[]User) *ListUsersResponse { + this := ListUsersResponse{} + this.Users = users + return &this +} + +// NewListUsersResponseWithDefaults instantiates a new ListUsersResponse 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 NewListUsersResponseWithDefaults() *ListUsersResponse { + this := ListUsersResponse{} + return &this +} + +// GetUsers returns the Users field value +func (o *ListUsersResponse) GetUsers() *[]User { + if o == nil { + var ret *[]User + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *ListUsersResponse) GetUsersOk() (*[]User, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *ListUsersResponse) SetUsers(v *[]User) { + o.Users = v +} + +func (o ListUsersResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["users"] = o.Users + return toSerialize, nil +} + +type NullableListUsersResponse struct { + value *ListUsersResponse + isSet bool +} + +func (v NullableListUsersResponse) Get() *ListUsersResponse { + return v.value +} + +func (v *NullableListUsersResponse) Set(val *ListUsersResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListUsersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListUsersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListUsersResponse(val *ListUsersResponse) *NullableListUsersResponse { + return &NullableListUsersResponse{value: val, isSet: true} +} + +func (v NullableListUsersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListUsersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_update_acl_payload.go b/services/secretsmanager/model_update_acl_payload.go index bea51ac50..978b67d0f 100644 --- a/services/secretsmanager/model_update_acl_payload.go +++ b/services/secretsmanager/model_update_acl_payload.go @@ -10,9 +10,102 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the UpdateACLPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateACLPayload{} + // UpdateACLPayload struct for UpdateACLPayload type UpdateACLPayload struct { // The given IP/IP Range that is permitted to access. // REQUIRED Cidr *string `json:"cidr"` } + +type _UpdateACLPayload UpdateACLPayload + +// NewUpdateACLPayload instantiates a new UpdateACLPayload 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 NewUpdateACLPayload(cidr *string) *UpdateACLPayload { + this := UpdateACLPayload{} + this.Cidr = cidr + return &this +} + +// NewUpdateACLPayloadWithDefaults instantiates a new UpdateACLPayload 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 NewUpdateACLPayloadWithDefaults() *UpdateACLPayload { + this := UpdateACLPayload{} + return &this +} + +// GetCidr returns the Cidr field value +func (o *UpdateACLPayload) GetCidr() *string { + if o == nil { + var ret *string + return ret + } + + return o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value +// and a boolean to check if the value has been set. +func (o *UpdateACLPayload) GetCidrOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cidr, true +} + +// SetCidr sets field value +func (o *UpdateACLPayload) SetCidr(v *string) { + o.Cidr = v +} + +func (o UpdateACLPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cidr"] = o.Cidr + return toSerialize, nil +} + +type NullableUpdateACLPayload struct { + value *UpdateACLPayload + isSet bool +} + +func (v NullableUpdateACLPayload) Get() *UpdateACLPayload { + return v.value +} + +func (v *NullableUpdateACLPayload) Set(val *UpdateACLPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateACLPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateACLPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateACLPayload(val *UpdateACLPayload) *NullableUpdateACLPayload { + return &NullableUpdateACLPayload{value: val, isSet: true} +} + +func (v NullableUpdateACLPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateACLPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_update_acls_payload.go b/services/secretsmanager/model_update_acls_payload.go index 85b9748df..75a4ecb7e 100644 --- a/services/secretsmanager/model_update_acls_payload.go +++ b/services/secretsmanager/model_update_acls_payload.go @@ -10,7 +10,107 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the UpdateACLsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateACLsPayload{} + // UpdateACLsPayload struct for UpdateACLsPayload type UpdateACLsPayload struct { Cidrs *[]UpdateACLPayload `json:"cidrs,omitempty"` } + +// NewUpdateACLsPayload instantiates a new UpdateACLsPayload 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 NewUpdateACLsPayload() *UpdateACLsPayload { + this := UpdateACLsPayload{} + return &this +} + +// NewUpdateACLsPayloadWithDefaults instantiates a new UpdateACLsPayload 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 NewUpdateACLsPayloadWithDefaults() *UpdateACLsPayload { + this := UpdateACLsPayload{} + return &this +} + +// GetCidrs returns the Cidrs field value if set, zero value otherwise. +func (o *UpdateACLsPayload) GetCidrs() *[]UpdateACLPayload { + if o == nil || IsNil(o.Cidrs) { + var ret *[]UpdateACLPayload + return ret + } + return o.Cidrs +} + +// GetCidrsOk returns a tuple with the Cidrs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateACLsPayload) GetCidrsOk() (*[]UpdateACLPayload, bool) { + if o == nil || IsNil(o.Cidrs) { + return nil, false + } + return o.Cidrs, true +} + +// HasCidrs returns a boolean if a field has been set. +func (o *UpdateACLsPayload) HasCidrs() bool { + if o != nil && !IsNil(o.Cidrs) { + return true + } + + return false +} + +// SetCidrs gets a reference to the given []UpdateACLPayload and assigns it to the Cidrs field. +func (o *UpdateACLsPayload) SetCidrs(v *[]UpdateACLPayload) { + o.Cidrs = v +} + +func (o UpdateACLsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cidrs) { + toSerialize["cidrs"] = o.Cidrs + } + return toSerialize, nil +} + +type NullableUpdateACLsPayload struct { + value *UpdateACLsPayload + isSet bool +} + +func (v NullableUpdateACLsPayload) Get() *UpdateACLsPayload { + return v.value +} + +func (v *NullableUpdateACLsPayload) Set(val *UpdateACLsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateACLsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateACLsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateACLsPayload(val *UpdateACLsPayload) *NullableUpdateACLsPayload { + return &NullableUpdateACLsPayload{value: val, isSet: true} +} + +func (v NullableUpdateACLsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateACLsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_update_instance_payload.go b/services/secretsmanager/model_update_instance_payload.go index f46e25877..0e9759fce 100644 --- a/services/secretsmanager/model_update_instance_payload.go +++ b/services/secretsmanager/model_update_instance_payload.go @@ -10,9 +10,102 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the UpdateInstancePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateInstancePayload{} + // UpdateInstancePayload struct for UpdateInstancePayload type UpdateInstancePayload struct { // A user chosen name to distinguish multiple secrets manager instances. // REQUIRED Name *string `json:"name"` } + +type _UpdateInstancePayload UpdateInstancePayload + +// NewUpdateInstancePayload instantiates a new UpdateInstancePayload 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 NewUpdateInstancePayload(name *string) *UpdateInstancePayload { + this := UpdateInstancePayload{} + this.Name = name + return &this +} + +// NewUpdateInstancePayloadWithDefaults instantiates a new UpdateInstancePayload 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 NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { + this := UpdateInstancePayload{} + return &this +} + +// GetName returns the Name field value +func (o *UpdateInstancePayload) 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 *UpdateInstancePayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name, true +} + +// SetName sets field value +func (o *UpdateInstancePayload) SetName(v *string) { + o.Name = v +} + +func (o UpdateInstancePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableUpdateInstancePayload struct { + value *UpdateInstancePayload + isSet bool +} + +func (v NullableUpdateInstancePayload) Get() *UpdateInstancePayload { + return v.value +} + +func (v *NullableUpdateInstancePayload) Set(val *UpdateInstancePayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateInstancePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateInstancePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateInstancePayload(val *UpdateInstancePayload) *NullableUpdateInstancePayload { + return &NullableUpdateInstancePayload{value: val, isSet: true} +} + +func (v NullableUpdateInstancePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateInstancePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_update_user_payload.go b/services/secretsmanager/model_update_user_payload.go index 5bc46daf3..4028bfa17 100644 --- a/services/secretsmanager/model_update_user_payload.go +++ b/services/secretsmanager/model_update_user_payload.go @@ -10,8 +10,108 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the UpdateUserPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateUserPayload{} + // UpdateUserPayload struct for UpdateUserPayload type UpdateUserPayload struct { // Is true if the user has write access to the secrets engine. Is false for a read-only user. Write *bool `json:"write,omitempty"` } + +// NewUpdateUserPayload instantiates a new UpdateUserPayload 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 NewUpdateUserPayload() *UpdateUserPayload { + this := UpdateUserPayload{} + return &this +} + +// NewUpdateUserPayloadWithDefaults instantiates a new UpdateUserPayload 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 NewUpdateUserPayloadWithDefaults() *UpdateUserPayload { + this := UpdateUserPayload{} + return &this +} + +// GetWrite returns the Write field value if set, zero value otherwise. +func (o *UpdateUserPayload) GetWrite() *bool { + if o == nil || IsNil(o.Write) { + var ret *bool + return ret + } + return o.Write +} + +// GetWriteOk returns a tuple with the Write field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateUserPayload) GetWriteOk() (*bool, bool) { + if o == nil || IsNil(o.Write) { + return nil, false + } + return o.Write, true +} + +// HasWrite returns a boolean if a field has been set. +func (o *UpdateUserPayload) HasWrite() bool { + if o != nil && !IsNil(o.Write) { + return true + } + + return false +} + +// SetWrite gets a reference to the given bool and assigns it to the Write field. +func (o *UpdateUserPayload) SetWrite(v *bool) { + o.Write = v +} + +func (o UpdateUserPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Write) { + toSerialize["write"] = o.Write + } + return toSerialize, nil +} + +type NullableUpdateUserPayload struct { + value *UpdateUserPayload + isSet bool +} + +func (v NullableUpdateUserPayload) Get() *UpdateUserPayload { + return v.value +} + +func (v *NullableUpdateUserPayload) Set(val *UpdateUserPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateUserPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateUserPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateUserPayload(val *UpdateUserPayload) *NullableUpdateUserPayload { + return &NullableUpdateUserPayload{value: val, isSet: true} +} + +func (v NullableUpdateUserPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateUserPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/secretsmanager/model_user.go b/services/secretsmanager/model_user.go index 043ba5fd1..5e6048cca 100644 --- a/services/secretsmanager/model_user.go +++ b/services/secretsmanager/model_user.go @@ -10,6 +10,13 @@ API version: 1.4.0 package secretsmanager +import ( + "encoding/json" +) + +// checks if the User type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &User{} + // User struct for User type User struct { // A user chosen description to differentiate between multiple users. @@ -28,3 +35,193 @@ type User struct { // REQUIRED Write *bool `json:"write"` } + +type _User User + +// NewUser instantiates a new User 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 NewUser(description *string, id *string, password *string, username *string, write *bool) *User { + this := User{} + this.Description = description + this.Id = id + this.Password = password + this.Username = username + this.Write = write + return &this +} + +// NewUserWithDefaults instantiates a new User 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 NewUserWithDefaults() *User { + this := User{} + return &this +} + +// GetDescription returns the Description field value +func (o *User) 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 *User) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description, true +} + +// SetDescription sets field value +func (o *User) SetDescription(v *string) { + o.Description = v +} + +// GetId returns the Id field value +func (o *User) 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 *User) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id, true +} + +// SetId sets field value +func (o *User) SetId(v *string) { + o.Id = v +} + +// GetPassword returns the Password field value +func (o *User) 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 *User) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password, true +} + +// SetPassword sets field value +func (o *User) SetPassword(v *string) { + o.Password = v +} + +// GetUsername returns the Username field value +func (o *User) 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 *User) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username, true +} + +// SetUsername sets field value +func (o *User) SetUsername(v *string) { + o.Username = v +} + +// GetWrite returns the Write field value +func (o *User) GetWrite() *bool { + if o == nil { + var ret *bool + return ret + } + + return o.Write +} + +// GetWriteOk returns a tuple with the Write field value +// and a boolean to check if the value has been set. +func (o *User) GetWriteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Write, true +} + +// SetWrite sets field value +func (o *User) SetWrite(v *bool) { + o.Write = v +} + +func (o User) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["id"] = o.Id + toSerialize["password"] = o.Password + toSerialize["username"] = o.Username + toSerialize["write"] = o.Write + return toSerialize, nil +} + +type NullableUser struct { + value *User + isSet bool +} + +func (v NullableUser) Get() *User { + return v.value +} + +func (v *NullableUser) Set(val *User) { + v.value = val + v.isSet = true +} + +func (v NullableUser) IsSet() bool { + return v.isSet +} + +func (v *NullableUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUser(val *User) *NullableUser { + return &NullableUser{value: val, isSet: true} +} + +func (v NullableUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +}