mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
602 lines
19 KiB
Go
602 lines
19 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the IamRegistration type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IamRegistration{}
|
|
|
|
// IamRegistration struct for IamRegistration
|
|
type IamRegistration struct {
|
|
Cert *string `json:"cert,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientSecret *string `json:"clientSecret,omitempty"`
|
|
DisplayName *string `json:"displayName,omitempty"`
|
|
// EnableCodeSignin offers sign-in by an emailed or texted one-time code beside the password. A POINTER for the same reason as IsShared: a plain bool reads as false on every reconcile that says nothing and would switch the method off for every app whose caller never mentioned it.
|
|
EnableCodeSignin *bool `json:"enableCodeSignin,omitempty"`
|
|
// ExpireInHours and RefreshExpireInHours are the application's token lifetimes. They are the ONLY declarative way to say that a refresh token must OUTLIVE its access token: with neither stated, oidc.refreshTTL clamps the refresh lifetime to the access lifetime, so the refresh_token grant the registration advertises expires at the same instant as the token it was meant to renew and can never be exercised. `hanzo-cli` sat in exactly that state — a browser re-login every hour, and a live refresh returning 401. POINTERS, for the same reason as IsShared: a plain float would read as 0 on every reconcile that says nothing and reset a deliberate lifetime back to the default. Nil means \"not stated, leave it\".
|
|
ExpireInHours *float64 `json:"expireInHours,omitempty"`
|
|
GrantTypes []string `json:"grantTypes,omitempty"`
|
|
// IsShared declares that this application serves EVERY organization, not only the one named in Organization. It is the honest description of a brand app — hanzo-id, hanzo-chat, a brand console — whose customers each live in their own tenant: self-service onboarding moves a founder OUT of the brand org, so `user.Owner != app.Organization` is the steady state and the app really does serve every org. Application.ServesOrg reads it as one of the three ways to say yes. A POINTER because omission must PRESERVE. This upsert is the operator's steady-state reconcile and most callers say nothing about sharing; a plain bool would read as false on every one of them and silently un-share an app — the same shape of accident that de-secreted apps through update-application. Nil means \"not stated, leave it\"; only an explicit true or false moves it.
|
|
IsShared *bool `json:"isShared,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Organization *string `json:"organization,omitempty"`
|
|
// Public declares a client that CANNOT hold a credential — a browser SPA, a CLI, a desktop app. It proves itself with PKCE instead, and the token endpoint treats \"no stored secret\" as exactly that (token.go: a secret is verified only when one is stored). Without this flag every upsert minted a secret, so a public client could never be registered at all and its browser code->token exchange 401'd `invalid_client` forever.
|
|
Public *bool `json:"public,omitempty"`
|
|
RedirectUris []string `json:"redirectUris,omitempty"`
|
|
RefreshExpireInHours *float64 `json:"refreshExpireInHours,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IamRegistration IamRegistration
|
|
|
|
// NewIamRegistration instantiates a new IamRegistration 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 NewIamRegistration() *IamRegistration {
|
|
this := IamRegistration{}
|
|
return &this
|
|
}
|
|
|
|
// NewIamRegistrationWithDefaults instantiates a new IamRegistration 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 NewIamRegistrationWithDefaults() *IamRegistration {
|
|
this := IamRegistration{}
|
|
return &this
|
|
}
|
|
|
|
// GetCert returns the Cert field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetCert() string {
|
|
if o == nil || IsNil(o.Cert) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Cert
|
|
}
|
|
|
|
// GetCertOk returns a tuple with the Cert field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetCertOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Cert) {
|
|
return nil, false
|
|
}
|
|
return o.Cert, true
|
|
}
|
|
|
|
// HasCert returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasCert() bool {
|
|
if o != nil && !IsNil(o.Cert) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCert gets a reference to the given string and assigns it to the Cert field.
|
|
func (o *IamRegistration) SetCert(v string) {
|
|
o.Cert = &v
|
|
}
|
|
|
|
// GetClientId returns the ClientId field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetClientId() string {
|
|
if o == nil || IsNil(o.ClientId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ClientId
|
|
}
|
|
|
|
// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetClientIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ClientId) {
|
|
return nil, false
|
|
}
|
|
return o.ClientId, true
|
|
}
|
|
|
|
// HasClientId returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasClientId() bool {
|
|
if o != nil && !IsNil(o.ClientId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClientId gets a reference to the given string and assigns it to the ClientId field.
|
|
func (o *IamRegistration) SetClientId(v string) {
|
|
o.ClientId = &v
|
|
}
|
|
|
|
// GetClientSecret returns the ClientSecret field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetClientSecret() string {
|
|
if o == nil || IsNil(o.ClientSecret) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ClientSecret
|
|
}
|
|
|
|
// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetClientSecretOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ClientSecret) {
|
|
return nil, false
|
|
}
|
|
return o.ClientSecret, true
|
|
}
|
|
|
|
// HasClientSecret returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasClientSecret() bool {
|
|
if o != nil && !IsNil(o.ClientSecret) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field.
|
|
func (o *IamRegistration) SetClientSecret(v string) {
|
|
o.ClientSecret = &v
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetDisplayName() string {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DisplayName
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.DisplayName, true
|
|
}
|
|
|
|
// HasDisplayName returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasDisplayName() bool {
|
|
if o != nil && !IsNil(o.DisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
|
func (o *IamRegistration) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetEnableCodeSignin returns the EnableCodeSignin field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetEnableCodeSignin() bool {
|
|
if o == nil || IsNil(o.EnableCodeSignin) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.EnableCodeSignin
|
|
}
|
|
|
|
// GetEnableCodeSigninOk returns a tuple with the EnableCodeSignin field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetEnableCodeSigninOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.EnableCodeSignin) {
|
|
return nil, false
|
|
}
|
|
return o.EnableCodeSignin, true
|
|
}
|
|
|
|
// HasEnableCodeSignin returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasEnableCodeSignin() bool {
|
|
if o != nil && !IsNil(o.EnableCodeSignin) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEnableCodeSignin gets a reference to the given bool and assigns it to the EnableCodeSignin field.
|
|
func (o *IamRegistration) SetEnableCodeSignin(v bool) {
|
|
o.EnableCodeSignin = &v
|
|
}
|
|
|
|
// GetExpireInHours returns the ExpireInHours field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetExpireInHours() float64 {
|
|
if o == nil || IsNil(o.ExpireInHours) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.ExpireInHours
|
|
}
|
|
|
|
// GetExpireInHoursOk returns a tuple with the ExpireInHours field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetExpireInHoursOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.ExpireInHours) {
|
|
return nil, false
|
|
}
|
|
return o.ExpireInHours, true
|
|
}
|
|
|
|
// HasExpireInHours returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasExpireInHours() bool {
|
|
if o != nil && !IsNil(o.ExpireInHours) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpireInHours gets a reference to the given float64 and assigns it to the ExpireInHours field.
|
|
func (o *IamRegistration) SetExpireInHours(v float64) {
|
|
o.ExpireInHours = &v
|
|
}
|
|
|
|
// GetGrantTypes returns the GrantTypes field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetGrantTypes() []string {
|
|
if o == nil || IsNil(o.GrantTypes) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.GrantTypes
|
|
}
|
|
|
|
// GetGrantTypesOk returns a tuple with the GrantTypes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetGrantTypesOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.GrantTypes) {
|
|
return nil, false
|
|
}
|
|
return o.GrantTypes, true
|
|
}
|
|
|
|
// HasGrantTypes returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasGrantTypes() bool {
|
|
if o != nil && !IsNil(o.GrantTypes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrantTypes gets a reference to the given []string and assigns it to the GrantTypes field.
|
|
func (o *IamRegistration) SetGrantTypes(v []string) {
|
|
o.GrantTypes = v
|
|
}
|
|
|
|
// GetIsShared returns the IsShared field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetIsShared() bool {
|
|
if o == nil || IsNil(o.IsShared) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsShared
|
|
}
|
|
|
|
// GetIsSharedOk returns a tuple with the IsShared field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetIsSharedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsShared) {
|
|
return nil, false
|
|
}
|
|
return o.IsShared, true
|
|
}
|
|
|
|
// HasIsShared returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasIsShared() bool {
|
|
if o != nil && !IsNil(o.IsShared) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsShared gets a reference to the given bool and assigns it to the IsShared field.
|
|
func (o *IamRegistration) SetIsShared(v bool) {
|
|
o.IsShared = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *IamRegistration) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOrganization returns the Organization field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetOrganization() string {
|
|
if o == nil || IsNil(o.Organization) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Organization
|
|
}
|
|
|
|
// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetOrganizationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Organization) {
|
|
return nil, false
|
|
}
|
|
return o.Organization, true
|
|
}
|
|
|
|
// HasOrganization returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasOrganization() bool {
|
|
if o != nil && !IsNil(o.Organization) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrganization gets a reference to the given string and assigns it to the Organization field.
|
|
func (o *IamRegistration) SetOrganization(v string) {
|
|
o.Organization = &v
|
|
}
|
|
|
|
// GetPublic returns the Public field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetPublic() bool {
|
|
if o == nil || IsNil(o.Public) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Public
|
|
}
|
|
|
|
// GetPublicOk returns a tuple with the Public field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetPublicOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Public) {
|
|
return nil, false
|
|
}
|
|
return o.Public, true
|
|
}
|
|
|
|
// HasPublic returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasPublic() bool {
|
|
if o != nil && !IsNil(o.Public) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPublic gets a reference to the given bool and assigns it to the Public field.
|
|
func (o *IamRegistration) SetPublic(v bool) {
|
|
o.Public = &v
|
|
}
|
|
|
|
// GetRedirectUris returns the RedirectUris field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetRedirectUris() []string {
|
|
if o == nil || IsNil(o.RedirectUris) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.RedirectUris
|
|
}
|
|
|
|
// GetRedirectUrisOk returns a tuple with the RedirectUris field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetRedirectUrisOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.RedirectUris) {
|
|
return nil, false
|
|
}
|
|
return o.RedirectUris, true
|
|
}
|
|
|
|
// HasRedirectUris returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasRedirectUris() bool {
|
|
if o != nil && !IsNil(o.RedirectUris) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRedirectUris gets a reference to the given []string and assigns it to the RedirectUris field.
|
|
func (o *IamRegistration) SetRedirectUris(v []string) {
|
|
o.RedirectUris = v
|
|
}
|
|
|
|
// GetRefreshExpireInHours returns the RefreshExpireInHours field value if set, zero value otherwise.
|
|
func (o *IamRegistration) GetRefreshExpireInHours() float64 {
|
|
if o == nil || IsNil(o.RefreshExpireInHours) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.RefreshExpireInHours
|
|
}
|
|
|
|
// GetRefreshExpireInHoursOk returns a tuple with the RefreshExpireInHours field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamRegistration) GetRefreshExpireInHoursOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.RefreshExpireInHours) {
|
|
return nil, false
|
|
}
|
|
return o.RefreshExpireInHours, true
|
|
}
|
|
|
|
// HasRefreshExpireInHours returns a boolean if a field has been set.
|
|
func (o *IamRegistration) HasRefreshExpireInHours() bool {
|
|
if o != nil && !IsNil(o.RefreshExpireInHours) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRefreshExpireInHours gets a reference to the given float64 and assigns it to the RefreshExpireInHours field.
|
|
func (o *IamRegistration) SetRefreshExpireInHours(v float64) {
|
|
o.RefreshExpireInHours = &v
|
|
}
|
|
|
|
func (o IamRegistration) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IamRegistration) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Cert) {
|
|
toSerialize["cert"] = o.Cert
|
|
}
|
|
if !IsNil(o.ClientId) {
|
|
toSerialize["clientId"] = o.ClientId
|
|
}
|
|
if !IsNil(o.ClientSecret) {
|
|
toSerialize["clientSecret"] = o.ClientSecret
|
|
}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["displayName"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.EnableCodeSignin) {
|
|
toSerialize["enableCodeSignin"] = o.EnableCodeSignin
|
|
}
|
|
if !IsNil(o.ExpireInHours) {
|
|
toSerialize["expireInHours"] = o.ExpireInHours
|
|
}
|
|
if !IsNil(o.GrantTypes) {
|
|
toSerialize["grantTypes"] = o.GrantTypes
|
|
}
|
|
if !IsNil(o.IsShared) {
|
|
toSerialize["isShared"] = o.IsShared
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Organization) {
|
|
toSerialize["organization"] = o.Organization
|
|
}
|
|
if !IsNil(o.Public) {
|
|
toSerialize["public"] = o.Public
|
|
}
|
|
if !IsNil(o.RedirectUris) {
|
|
toSerialize["redirectUris"] = o.RedirectUris
|
|
}
|
|
if !IsNil(o.RefreshExpireInHours) {
|
|
toSerialize["refreshExpireInHours"] = o.RefreshExpireInHours
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *IamRegistration) UnmarshalJSON(data []byte) (err error) {
|
|
varIamRegistration := _IamRegistration{}
|
|
|
|
err = json.Unmarshal(data, &varIamRegistration)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IamRegistration(varIamRegistration)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "cert")
|
|
delete(additionalProperties, "clientId")
|
|
delete(additionalProperties, "clientSecret")
|
|
delete(additionalProperties, "displayName")
|
|
delete(additionalProperties, "enableCodeSignin")
|
|
delete(additionalProperties, "expireInHours")
|
|
delete(additionalProperties, "grantTypes")
|
|
delete(additionalProperties, "isShared")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "organization")
|
|
delete(additionalProperties, "public")
|
|
delete(additionalProperties, "redirectUris")
|
|
delete(additionalProperties, "refreshExpireInHours")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIamRegistration struct {
|
|
value *IamRegistration
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIamRegistration) Get() *IamRegistration {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIamRegistration) Set(val *IamRegistration) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIamRegistration) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIamRegistration) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIamRegistration(val *IamRegistration) *NullableIamRegistration {
|
|
return &NullableIamRegistration{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIamRegistration) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIamRegistration) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|