Skip to content

Latest commit

 

History

History
213 lines (114 loc) · 5.22 KB

Config.md

File metadata and controls

213 lines (114 loc) · 5.22 KB

Config

Properties

Name Type Description Notes
Id string 配置ID
ResourceId string 所属的资源ID
GroupId Pointer to string 所属的配置组ID [optional]
TemplateId Pointer to string 配置模板ID [optional]
Key string 配置项
Value map[string]interface{} 配置内容
CreatedAt time.Time 创建时间
UpdatedAt Pointer to time.Time 最后更新时间 [optional]

Methods

NewConfig

func NewConfig(id string, resourceId string, key string, value map[string]interface{}, createdAt time.Time, ) *Config

NewConfig instantiates a new Config 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

NewConfigWithDefaults

func NewConfigWithDefaults() *Config

NewConfigWithDefaults instantiates a new Config 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

GetId

func (o *Config) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *Config) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *Config) SetId(v string)

SetId sets Id field to given value.

GetResourceId

func (o *Config) GetResourceId() string

GetResourceId returns the ResourceId field if non-nil, zero value otherwise.

GetResourceIdOk

func (o *Config) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetResourceId

func (o *Config) SetResourceId(v string)

SetResourceId sets ResourceId field to given value.

GetGroupId

func (o *Config) GetGroupId() string

GetGroupId returns the GroupId field if non-nil, zero value otherwise.

GetGroupIdOk

func (o *Config) GetGroupIdOk() (*string, bool)

GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetGroupId

func (o *Config) SetGroupId(v string)

SetGroupId sets GroupId field to given value.

HasGroupId

func (o *Config) HasGroupId() bool

HasGroupId returns a boolean if a field has been set.

GetTemplateId

func (o *Config) GetTemplateId() string

GetTemplateId returns the TemplateId field if non-nil, zero value otherwise.

GetTemplateIdOk

func (o *Config) GetTemplateIdOk() (*string, bool)

GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTemplateId

func (o *Config) SetTemplateId(v string)

SetTemplateId sets TemplateId field to given value.

HasTemplateId

func (o *Config) HasTemplateId() bool

HasTemplateId returns a boolean if a field has been set.

GetKey

func (o *Config) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

func (o *Config) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKey

func (o *Config) SetKey(v string)

SetKey sets Key field to given value.

GetValue

func (o *Config) GetValue() map[string]interface{}

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

func (o *Config) GetValueOk() (*map[string]interface{}, bool)

GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetValue

func (o *Config) SetValue(v map[string]interface{})

SetValue sets Value field to given value.

GetCreatedAt

func (o *Config) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *Config) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *Config) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

func (o *Config) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *Config) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUpdatedAt

func (o *Config) SetUpdatedAt(v time.Time)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *Config) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]