更新文档内容
This commit is contained in:
160
model_schema_get_privileges_config_resp.go
Normal file
160
model_schema_get_privileges_config_resp.go
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
|
||||
API version: 1.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaGetPrivilegesConfigResp type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaGetPrivilegesConfigResp{}
|
||||
|
||||
// SchemaGetPrivilegesConfigResp struct for SchemaGetPrivilegesConfigResp
|
||||
type SchemaGetPrivilegesConfigResp struct {
|
||||
Options []SchemaPrivilegeOption `json:"options,omitempty"`
|
||||
SelectedLevel *SchemaPrivilegeLevel `json:"selected_level,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaGetPrivilegesConfigResp instantiates a new SchemaGetPrivilegesConfigResp 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 NewSchemaGetPrivilegesConfigResp() *SchemaGetPrivilegesConfigResp {
|
||||
this := SchemaGetPrivilegesConfigResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaGetPrivilegesConfigRespWithDefaults instantiates a new SchemaGetPrivilegesConfigResp 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 NewSchemaGetPrivilegesConfigRespWithDefaults() *SchemaGetPrivilegesConfigResp {
|
||||
this := SchemaGetPrivilegesConfigResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetOptions returns the Options field value if set, zero value otherwise.
|
||||
func (o *SchemaGetPrivilegesConfigResp) GetOptions() []SchemaPrivilegeOption {
|
||||
if o == nil || IsNil(o.Options) {
|
||||
var ret []SchemaPrivilegeOption
|
||||
return ret
|
||||
}
|
||||
return o.Options
|
||||
}
|
||||
|
||||
// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetPrivilegesConfigResp) GetOptionsOk() ([]SchemaPrivilegeOption, bool) {
|
||||
if o == nil || IsNil(o.Options) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Options, true
|
||||
}
|
||||
|
||||
// HasOptions returns a boolean if a field has been set.
|
||||
func (o *SchemaGetPrivilegesConfigResp) HasOptions() bool {
|
||||
if o != nil && !IsNil(o.Options) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOptions gets a reference to the given []SchemaPrivilegeOption and assigns it to the Options field.
|
||||
func (o *SchemaGetPrivilegesConfigResp) SetOptions(v []SchemaPrivilegeOption) {
|
||||
o.Options = v
|
||||
}
|
||||
|
||||
// GetSelectedLevel returns the SelectedLevel field value if set, zero value otherwise.
|
||||
func (o *SchemaGetPrivilegesConfigResp) GetSelectedLevel() SchemaPrivilegeLevel {
|
||||
if o == nil || IsNil(o.SelectedLevel) {
|
||||
var ret SchemaPrivilegeLevel
|
||||
return ret
|
||||
}
|
||||
return *o.SelectedLevel
|
||||
}
|
||||
|
||||
// GetSelectedLevelOk returns a tuple with the SelectedLevel field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetPrivilegesConfigResp) GetSelectedLevelOk() (*SchemaPrivilegeLevel, bool) {
|
||||
if o == nil || IsNil(o.SelectedLevel) {
|
||||
return nil, false
|
||||
}
|
||||
return o.SelectedLevel, true
|
||||
}
|
||||
|
||||
// HasSelectedLevel returns a boolean if a field has been set.
|
||||
func (o *SchemaGetPrivilegesConfigResp) HasSelectedLevel() bool {
|
||||
if o != nil && !IsNil(o.SelectedLevel) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSelectedLevel gets a reference to the given SchemaPrivilegeLevel and assigns it to the SelectedLevel field.
|
||||
func (o *SchemaGetPrivilegesConfigResp) SetSelectedLevel(v SchemaPrivilegeLevel) {
|
||||
o.SelectedLevel = &v
|
||||
}
|
||||
|
||||
func (o SchemaGetPrivilegesConfigResp) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaGetPrivilegesConfigResp) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Options) {
|
||||
toSerialize["options"] = o.Options
|
||||
}
|
||||
if !IsNil(o.SelectedLevel) {
|
||||
toSerialize["selected_level"] = o.SelectedLevel
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaGetPrivilegesConfigResp struct {
|
||||
value *SchemaGetPrivilegesConfigResp
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetPrivilegesConfigResp) Get() *SchemaGetPrivilegesConfigResp {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetPrivilegesConfigResp) Set(val *SchemaGetPrivilegesConfigResp) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetPrivilegesConfigResp) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetPrivilegesConfigResp) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaGetPrivilegesConfigResp(val *SchemaGetPrivilegesConfigResp) *NullableSchemaGetPrivilegesConfigResp {
|
||||
return &NullableSchemaGetPrivilegesConfigResp{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetPrivilegesConfigResp) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetPrivilegesConfigResp) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user