feat: generating code
This commit is contained in:
parent
c329d58970
commit
51663cd8d0
1221 changed files with 271709 additions and 2444 deletions
468
pkg/iaasbeta/model_create_security_group_payload.go
Normal file
468
pkg/iaasbeta/model_create_security_group_payload.go
Normal file
|
|
@ -0,0 +1,468 @@
|
|||
/*
|
||||
STACKIT IaaS API
|
||||
|
||||
This API allows you to create and modify IaaS resources.
|
||||
|
||||
API version: 2beta1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package iaasbeta
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
// checks if the CreateSecurityGroupPayload type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateSecurityGroupPayload{}
|
||||
|
||||
/*
|
||||
types and functions for createdAt
|
||||
*/
|
||||
|
||||
// isDateTime
|
||||
type CreateSecurityGroupPayloadGetCreatedAtAttributeType = *time.Time
|
||||
type CreateSecurityGroupPayloadGetCreatedAtArgType = time.Time
|
||||
type CreateSecurityGroupPayloadGetCreatedAtRetType = time.Time
|
||||
|
||||
func getCreateSecurityGroupPayloadGetCreatedAtAttributeTypeOk(arg CreateSecurityGroupPayloadGetCreatedAtAttributeType) (ret CreateSecurityGroupPayloadGetCreatedAtRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetCreatedAtAttributeType(arg *CreateSecurityGroupPayloadGetCreatedAtAttributeType, val CreateSecurityGroupPayloadGetCreatedAtRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for description
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateSecurityGroupPayloadGetDescriptionAttributeType = *string
|
||||
|
||||
func getCreateSecurityGroupPayloadGetDescriptionAttributeTypeOk(arg CreateSecurityGroupPayloadGetDescriptionAttributeType) (ret CreateSecurityGroupPayloadGetDescriptionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetDescriptionAttributeType(arg *CreateSecurityGroupPayloadGetDescriptionAttributeType, val CreateSecurityGroupPayloadGetDescriptionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateSecurityGroupPayloadGetDescriptionArgType = string
|
||||
type CreateSecurityGroupPayloadGetDescriptionRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateSecurityGroupPayloadGetIdAttributeType = *string
|
||||
|
||||
func getCreateSecurityGroupPayloadGetIdAttributeTypeOk(arg CreateSecurityGroupPayloadGetIdAttributeType) (ret CreateSecurityGroupPayloadGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetIdAttributeType(arg *CreateSecurityGroupPayloadGetIdAttributeType, val CreateSecurityGroupPayloadGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateSecurityGroupPayloadGetIdArgType = string
|
||||
type CreateSecurityGroupPayloadGetIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for labels
|
||||
*/
|
||||
|
||||
// isFreeform
|
||||
type CreateSecurityGroupPayloadGetLabelsAttributeType = *map[string]interface{}
|
||||
type CreateSecurityGroupPayloadGetLabelsArgType = map[string]interface{}
|
||||
type CreateSecurityGroupPayloadGetLabelsRetType = map[string]interface{}
|
||||
|
||||
func getCreateSecurityGroupPayloadGetLabelsAttributeTypeOk(arg CreateSecurityGroupPayloadGetLabelsAttributeType) (ret CreateSecurityGroupPayloadGetLabelsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetLabelsAttributeType(arg *CreateSecurityGroupPayloadGetLabelsAttributeType, val CreateSecurityGroupPayloadGetLabelsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateSecurityGroupPayloadGetNameAttributeType = *string
|
||||
|
||||
func getCreateSecurityGroupPayloadGetNameAttributeTypeOk(arg CreateSecurityGroupPayloadGetNameAttributeType) (ret CreateSecurityGroupPayloadGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetNameAttributeType(arg *CreateSecurityGroupPayloadGetNameAttributeType, val CreateSecurityGroupPayloadGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateSecurityGroupPayloadGetNameArgType = string
|
||||
type CreateSecurityGroupPayloadGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for rules
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type CreateSecurityGroupPayloadGetRulesAttributeType = *[]SecurityGroupRule
|
||||
type CreateSecurityGroupPayloadGetRulesArgType = []SecurityGroupRule
|
||||
type CreateSecurityGroupPayloadGetRulesRetType = []SecurityGroupRule
|
||||
|
||||
func getCreateSecurityGroupPayloadGetRulesAttributeTypeOk(arg CreateSecurityGroupPayloadGetRulesAttributeType) (ret CreateSecurityGroupPayloadGetRulesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetRulesAttributeType(arg *CreateSecurityGroupPayloadGetRulesAttributeType, val CreateSecurityGroupPayloadGetRulesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for stateful
|
||||
*/
|
||||
|
||||
// isBoolean
|
||||
type CreateSecurityGroupPayloadgetStatefulAttributeType = *bool
|
||||
type CreateSecurityGroupPayloadgetStatefulArgType = bool
|
||||
type CreateSecurityGroupPayloadgetStatefulRetType = bool
|
||||
|
||||
func getCreateSecurityGroupPayloadgetStatefulAttributeTypeOk(arg CreateSecurityGroupPayloadgetStatefulAttributeType) (ret CreateSecurityGroupPayloadgetStatefulRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadgetStatefulAttributeType(arg *CreateSecurityGroupPayloadgetStatefulAttributeType, val CreateSecurityGroupPayloadgetStatefulRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for updatedAt
|
||||
*/
|
||||
|
||||
// isDateTime
|
||||
type CreateSecurityGroupPayloadGetUpdatedAtAttributeType = *time.Time
|
||||
type CreateSecurityGroupPayloadGetUpdatedAtArgType = time.Time
|
||||
type CreateSecurityGroupPayloadGetUpdatedAtRetType = time.Time
|
||||
|
||||
func getCreateSecurityGroupPayloadGetUpdatedAtAttributeTypeOk(arg CreateSecurityGroupPayloadGetUpdatedAtAttributeType) (ret CreateSecurityGroupPayloadGetUpdatedAtRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateSecurityGroupPayloadGetUpdatedAtAttributeType(arg *CreateSecurityGroupPayloadGetUpdatedAtAttributeType, val CreateSecurityGroupPayloadGetUpdatedAtRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// CreateSecurityGroupPayload Object that represents a security group.
|
||||
type CreateSecurityGroupPayload struct {
|
||||
// Date-time when resource was created.
|
||||
CreatedAt CreateSecurityGroupPayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"`
|
||||
// Description Object. Allows string up to 255 Characters.
|
||||
Description CreateSecurityGroupPayloadGetDescriptionAttributeType `json:"description,omitempty"`
|
||||
// Universally Unique Identifier (UUID).
|
||||
Id CreateSecurityGroupPayloadGetIdAttributeType `json:"id,omitempty"`
|
||||
// Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.
|
||||
Labels CreateSecurityGroupPayloadGetLabelsAttributeType `json:"labels,omitempty"`
|
||||
// The name for a General Object. Matches Names and also UUIDs.
|
||||
// REQUIRED
|
||||
Name CreateSecurityGroupPayloadGetNameAttributeType `json:"name" required:"true"`
|
||||
// A list containing security group rule objects.
|
||||
Rules CreateSecurityGroupPayloadGetRulesAttributeType `json:"rules,omitempty"`
|
||||
// Shows if a security group is stateful or stateless. You can only have one type of security groups per network interface/server.
|
||||
Stateful CreateSecurityGroupPayloadgetStatefulAttributeType `json:"stateful,omitempty"`
|
||||
// Date-time when resource was last updated.
|
||||
UpdatedAt CreateSecurityGroupPayloadGetUpdatedAtAttributeType `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
type _CreateSecurityGroupPayload CreateSecurityGroupPayload
|
||||
|
||||
// NewCreateSecurityGroupPayload instantiates a new CreateSecurityGroupPayload 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 NewCreateSecurityGroupPayload(name CreateSecurityGroupPayloadGetNameArgType) *CreateSecurityGroupPayload {
|
||||
this := CreateSecurityGroupPayload{}
|
||||
setCreateSecurityGroupPayloadGetNameAttributeType(&this.Name, name)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateSecurityGroupPayloadWithDefaults instantiates a new CreateSecurityGroupPayload 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 NewCreateSecurityGroupPayloadWithDefaults() *CreateSecurityGroupPayload {
|
||||
this := CreateSecurityGroupPayload{}
|
||||
var stateful bool = true
|
||||
this.Stateful = &stateful
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetCreatedAt() (res CreateSecurityGroupPayloadGetCreatedAtRetType) {
|
||||
res, _ = o.GetCreatedAtOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetCreatedAtOk() (ret CreateSecurityGroupPayloadGetCreatedAtRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetCreatedAtAttributeTypeOk(o.CreatedAt)
|
||||
}
|
||||
|
||||
// HasCreatedAt returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasCreatedAt() bool {
|
||||
_, ok := o.GetCreatedAtOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
|
||||
func (o *CreateSecurityGroupPayload) SetCreatedAt(v CreateSecurityGroupPayloadGetCreatedAtRetType) {
|
||||
setCreateSecurityGroupPayloadGetCreatedAtAttributeType(&o.CreatedAt, v)
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetDescription() (res CreateSecurityGroupPayloadGetDescriptionRetType) {
|
||||
res, _ = o.GetDescriptionOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetDescriptionOk() (ret CreateSecurityGroupPayloadGetDescriptionRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetDescriptionAttributeTypeOk(o.Description)
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasDescription() bool {
|
||||
_, ok := o.GetDescriptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *CreateSecurityGroupPayload) SetDescription(v CreateSecurityGroupPayloadGetDescriptionRetType) {
|
||||
setCreateSecurityGroupPayloadGetDescriptionAttributeType(&o.Description, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetId() (res CreateSecurityGroupPayloadGetIdRetType) {
|
||||
res, _ = o.GetIdOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetIdOk() (ret CreateSecurityGroupPayloadGetIdRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasId() bool {
|
||||
_, ok := o.GetIdOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *CreateSecurityGroupPayload) SetId(v CreateSecurityGroupPayloadGetIdRetType) {
|
||||
setCreateSecurityGroupPayloadGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetLabels returns the Labels field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetLabels() (res CreateSecurityGroupPayloadGetLabelsRetType) {
|
||||
res, _ = o.GetLabelsOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetLabelsOk() (ret CreateSecurityGroupPayloadGetLabelsRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetLabelsAttributeTypeOk(o.Labels)
|
||||
}
|
||||
|
||||
// HasLabels returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasLabels() bool {
|
||||
_, ok := o.GetLabelsOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field.
|
||||
func (o *CreateSecurityGroupPayload) SetLabels(v CreateSecurityGroupPayloadGetLabelsRetType) {
|
||||
setCreateSecurityGroupPayloadGetLabelsAttributeType(&o.Labels, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *CreateSecurityGroupPayload) GetName() (ret CreateSecurityGroupPayloadGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetNameOk() (ret CreateSecurityGroupPayloadGetNameRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *CreateSecurityGroupPayload) SetName(v CreateSecurityGroupPayloadGetNameRetType) {
|
||||
setCreateSecurityGroupPayloadGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetRules returns the Rules field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetRules() (res CreateSecurityGroupPayloadGetRulesRetType) {
|
||||
res, _ = o.GetRulesOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetRulesOk() (ret CreateSecurityGroupPayloadGetRulesRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetRulesAttributeTypeOk(o.Rules)
|
||||
}
|
||||
|
||||
// HasRules returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasRules() bool {
|
||||
_, ok := o.GetRulesOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetRules gets a reference to the given []SecurityGroupRule and assigns it to the Rules field.
|
||||
func (o *CreateSecurityGroupPayload) SetRules(v CreateSecurityGroupPayloadGetRulesRetType) {
|
||||
setCreateSecurityGroupPayloadGetRulesAttributeType(&o.Rules, v)
|
||||
}
|
||||
|
||||
// GetStateful returns the Stateful field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetStateful() (res CreateSecurityGroupPayloadgetStatefulRetType) {
|
||||
res, _ = o.GetStatefulOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetStatefulOk returns a tuple with the Stateful field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetStatefulOk() (ret CreateSecurityGroupPayloadgetStatefulRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadgetStatefulAttributeTypeOk(o.Stateful)
|
||||
}
|
||||
|
||||
// HasStateful returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasStateful() bool {
|
||||
_, ok := o.GetStatefulOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetStateful gets a reference to the given bool and assigns it to the Stateful field.
|
||||
func (o *CreateSecurityGroupPayload) SetStateful(v CreateSecurityGroupPayloadgetStatefulRetType) {
|
||||
setCreateSecurityGroupPayloadgetStatefulAttributeType(&o.Stateful, v)
|
||||
}
|
||||
|
||||
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
||||
func (o *CreateSecurityGroupPayload) GetUpdatedAt() (res CreateSecurityGroupPayloadGetUpdatedAtRetType) {
|
||||
res, _ = o.GetUpdatedAtOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateSecurityGroupPayload) GetUpdatedAtOk() (ret CreateSecurityGroupPayloadGetUpdatedAtRetType, ok bool) {
|
||||
return getCreateSecurityGroupPayloadGetUpdatedAtAttributeTypeOk(o.UpdatedAt)
|
||||
}
|
||||
|
||||
// HasUpdatedAt returns a boolean if a field has been set.
|
||||
func (o *CreateSecurityGroupPayload) HasUpdatedAt() bool {
|
||||
_, ok := o.GetUpdatedAtOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
|
||||
func (o *CreateSecurityGroupPayload) SetUpdatedAt(v CreateSecurityGroupPayloadGetUpdatedAtRetType) {
|
||||
setCreateSecurityGroupPayloadGetUpdatedAtAttributeType(&o.UpdatedAt, v)
|
||||
}
|
||||
|
||||
func (o CreateSecurityGroupPayload) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetCreatedAtAttributeTypeOk(o.CreatedAt); ok {
|
||||
toSerialize["CreatedAt"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetDescriptionAttributeTypeOk(o.Description); ok {
|
||||
toSerialize["Description"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetLabelsAttributeTypeOk(o.Labels); ok {
|
||||
toSerialize["Labels"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetRulesAttributeTypeOk(o.Rules); ok {
|
||||
toSerialize["Rules"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadgetStatefulAttributeTypeOk(o.Stateful); ok {
|
||||
toSerialize["Stateful"] = val
|
||||
}
|
||||
if val, ok := getCreateSecurityGroupPayloadGetUpdatedAtAttributeTypeOk(o.UpdatedAt); ok {
|
||||
toSerialize["UpdatedAt"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateSecurityGroupPayload struct {
|
||||
value *CreateSecurityGroupPayload
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateSecurityGroupPayload) Get() *CreateSecurityGroupPayload {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateSecurityGroupPayload) Set(val *CreateSecurityGroupPayload) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateSecurityGroupPayload) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateSecurityGroupPayload) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateSecurityGroupPayload(val *CreateSecurityGroupPayload) *NullableCreateSecurityGroupPayload {
|
||||
return &NullableCreateSecurityGroupPayload{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateSecurityGroupPayload) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateSecurityGroupPayload) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue