Files
sdk/model_iam_invitations_input.go

709 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 IamInvitationsInput type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IamInvitationsInput{}
// IamInvitationsInput struct for IamInvitationsInput
type IamInvitationsInput struct {
Application *string `json:"application,omitempty"`
Code *string `json:"code,omitempty"`
CreatedTime *string `json:"createdTime,omitempty"`
DefaultCode *string `json:"defaultCode,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Email *string `json:"email,omitempty"`
IsRegexp *bool `json:"isRegexp,omitempty"`
Name *string `json:"name,omitempty"`
Owner *string `json:"owner,omitempty"`
Phone *string `json:"phone,omitempty"`
Quota *int64 `json:"quota,omitempty"`
SignupGroup *string `json:"signupGroup,omitempty"`
State *string `json:"state,omitempty"`
UpdatedTime *string `json:"updatedTime,omitempty"`
UsedCount *int64 `json:"usedCount,omitempty"`
Username *string `json:"username,omitempty"`
AdditionalProperties map[string]interface{}
}
type _IamInvitationsInput IamInvitationsInput
// NewIamInvitationsInput instantiates a new IamInvitationsInput 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 NewIamInvitationsInput() *IamInvitationsInput {
this := IamInvitationsInput{}
return &this
}
// NewIamInvitationsInputWithDefaults instantiates a new IamInvitationsInput 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 NewIamInvitationsInputWithDefaults() *IamInvitationsInput {
this := IamInvitationsInput{}
return &this
}
// GetApplication returns the Application field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetApplication() string {
if o == nil || IsNil(o.Application) {
var ret string
return ret
}
return *o.Application
}
// GetApplicationOk returns a tuple with the Application field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetApplicationOk() (*string, bool) {
if o == nil || IsNil(o.Application) {
return nil, false
}
return o.Application, true
}
// HasApplication returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasApplication() bool {
if o != nil && !IsNil(o.Application) {
return true
}
return false
}
// SetApplication gets a reference to the given string and assigns it to the Application field.
func (o *IamInvitationsInput) SetApplication(v string) {
o.Application = &v
}
// GetCode returns the Code field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetCode() string {
if o == nil || IsNil(o.Code) {
var ret string
return ret
}
return *o.Code
}
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetCodeOk() (*string, bool) {
if o == nil || IsNil(o.Code) {
return nil, false
}
return o.Code, true
}
// HasCode returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasCode() bool {
if o != nil && !IsNil(o.Code) {
return true
}
return false
}
// SetCode gets a reference to the given string and assigns it to the Code field.
func (o *IamInvitationsInput) SetCode(v string) {
o.Code = &v
}
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetCreatedTime() string {
if o == nil || IsNil(o.CreatedTime) {
var ret string
return ret
}
return *o.CreatedTime
}
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetCreatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.CreatedTime) {
return nil, false
}
return o.CreatedTime, true
}
// HasCreatedTime returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasCreatedTime() bool {
if o != nil && !IsNil(o.CreatedTime) {
return true
}
return false
}
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
func (o *IamInvitationsInput) SetCreatedTime(v string) {
o.CreatedTime = &v
}
// GetDefaultCode returns the DefaultCode field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetDefaultCode() string {
if o == nil || IsNil(o.DefaultCode) {
var ret string
return ret
}
return *o.DefaultCode
}
// GetDefaultCodeOk returns a tuple with the DefaultCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetDefaultCodeOk() (*string, bool) {
if o == nil || IsNil(o.DefaultCode) {
return nil, false
}
return o.DefaultCode, true
}
// HasDefaultCode returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasDefaultCode() bool {
if o != nil && !IsNil(o.DefaultCode) {
return true
}
return false
}
// SetDefaultCode gets a reference to the given string and assigns it to the DefaultCode field.
func (o *IamInvitationsInput) SetDefaultCode(v string) {
o.DefaultCode = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *IamInvitationsInput) 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 *IamInvitationsInput) 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 *IamInvitationsInput) 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 *IamInvitationsInput) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetEmail() string {
if o == nil || IsNil(o.Email) {
var ret string
return ret
}
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *IamInvitationsInput) SetEmail(v string) {
o.Email = &v
}
// GetIsRegexp returns the IsRegexp field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetIsRegexp() bool {
if o == nil || IsNil(o.IsRegexp) {
var ret bool
return ret
}
return *o.IsRegexp
}
// GetIsRegexpOk returns a tuple with the IsRegexp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetIsRegexpOk() (*bool, bool) {
if o == nil || IsNil(o.IsRegexp) {
return nil, false
}
return o.IsRegexp, true
}
// HasIsRegexp returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasIsRegexp() bool {
if o != nil && !IsNil(o.IsRegexp) {
return true
}
return false
}
// SetIsRegexp gets a reference to the given bool and assigns it to the IsRegexp field.
func (o *IamInvitationsInput) SetIsRegexp(v bool) {
o.IsRegexp = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *IamInvitationsInput) 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 *IamInvitationsInput) 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 *IamInvitationsInput) 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 *IamInvitationsInput) SetName(v string) {
o.Name = &v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *IamInvitationsInput) SetOwner(v string) {
o.Owner = &v
}
// GetPhone returns the Phone field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetPhone() string {
if o == nil || IsNil(o.Phone) {
var ret string
return ret
}
return *o.Phone
}
// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetPhoneOk() (*string, bool) {
if o == nil || IsNil(o.Phone) {
return nil, false
}
return o.Phone, true
}
// HasPhone returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasPhone() bool {
if o != nil && !IsNil(o.Phone) {
return true
}
return false
}
// SetPhone gets a reference to the given string and assigns it to the Phone field.
func (o *IamInvitationsInput) SetPhone(v string) {
o.Phone = &v
}
// GetQuota returns the Quota field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetQuota() int64 {
if o == nil || IsNil(o.Quota) {
var ret int64
return ret
}
return *o.Quota
}
// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetQuotaOk() (*int64, bool) {
if o == nil || IsNil(o.Quota) {
return nil, false
}
return o.Quota, true
}
// HasQuota returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasQuota() bool {
if o != nil && !IsNil(o.Quota) {
return true
}
return false
}
// SetQuota gets a reference to the given int64 and assigns it to the Quota field.
func (o *IamInvitationsInput) SetQuota(v int64) {
o.Quota = &v
}
// GetSignupGroup returns the SignupGroup field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetSignupGroup() string {
if o == nil || IsNil(o.SignupGroup) {
var ret string
return ret
}
return *o.SignupGroup
}
// GetSignupGroupOk returns a tuple with the SignupGroup field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetSignupGroupOk() (*string, bool) {
if o == nil || IsNil(o.SignupGroup) {
return nil, false
}
return o.SignupGroup, true
}
// HasSignupGroup returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasSignupGroup() bool {
if o != nil && !IsNil(o.SignupGroup) {
return true
}
return false
}
// SetSignupGroup gets a reference to the given string and assigns it to the SignupGroup field.
func (o *IamInvitationsInput) SetSignupGroup(v string) {
o.SignupGroup = &v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetState() string {
if o == nil || IsNil(o.State) {
var ret string
return ret
}
return *o.State
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetStateOk() (*string, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *IamInvitationsInput) SetState(v string) {
o.State = &v
}
// GetUpdatedTime returns the UpdatedTime field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetUpdatedTime() string {
if o == nil || IsNil(o.UpdatedTime) {
var ret string
return ret
}
return *o.UpdatedTime
}
// GetUpdatedTimeOk returns a tuple with the UpdatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetUpdatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.UpdatedTime) {
return nil, false
}
return o.UpdatedTime, true
}
// HasUpdatedTime returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasUpdatedTime() bool {
if o != nil && !IsNil(o.UpdatedTime) {
return true
}
return false
}
// SetUpdatedTime gets a reference to the given string and assigns it to the UpdatedTime field.
func (o *IamInvitationsInput) SetUpdatedTime(v string) {
o.UpdatedTime = &v
}
// GetUsedCount returns the UsedCount field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetUsedCount() int64 {
if o == nil || IsNil(o.UsedCount) {
var ret int64
return ret
}
return *o.UsedCount
}
// GetUsedCountOk returns a tuple with the UsedCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetUsedCountOk() (*int64, bool) {
if o == nil || IsNil(o.UsedCount) {
return nil, false
}
return o.UsedCount, true
}
// HasUsedCount returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasUsedCount() bool {
if o != nil && !IsNil(o.UsedCount) {
return true
}
return false
}
// SetUsedCount gets a reference to the given int64 and assigns it to the UsedCount field.
func (o *IamInvitationsInput) SetUsedCount(v int64) {
o.UsedCount = &v
}
// GetUsername returns the Username field value if set, zero value otherwise.
func (o *IamInvitationsInput) GetUsername() string {
if o == nil || IsNil(o.Username) {
var ret string
return ret
}
return *o.Username
}
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamInvitationsInput) GetUsernameOk() (*string, bool) {
if o == nil || IsNil(o.Username) {
return nil, false
}
return o.Username, true
}
// HasUsername returns a boolean if a field has been set.
func (o *IamInvitationsInput) HasUsername() bool {
if o != nil && !IsNil(o.Username) {
return true
}
return false
}
// SetUsername gets a reference to the given string and assigns it to the Username field.
func (o *IamInvitationsInput) SetUsername(v string) {
o.Username = &v
}
func (o IamInvitationsInput) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IamInvitationsInput) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Application) {
toSerialize["application"] = o.Application
}
if !IsNil(o.Code) {
toSerialize["code"] = o.Code
}
if !IsNil(o.CreatedTime) {
toSerialize["createdTime"] = o.CreatedTime
}
if !IsNil(o.DefaultCode) {
toSerialize["defaultCode"] = o.DefaultCode
}
if !IsNil(o.DisplayName) {
toSerialize["displayName"] = o.DisplayName
}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.IsRegexp) {
toSerialize["isRegexp"] = o.IsRegexp
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Owner) {
toSerialize["owner"] = o.Owner
}
if !IsNil(o.Phone) {
toSerialize["phone"] = o.Phone
}
if !IsNil(o.Quota) {
toSerialize["quota"] = o.Quota
}
if !IsNil(o.SignupGroup) {
toSerialize["signupGroup"] = o.SignupGroup
}
if !IsNil(o.State) {
toSerialize["state"] = o.State
}
if !IsNil(o.UpdatedTime) {
toSerialize["updatedTime"] = o.UpdatedTime
}
if !IsNil(o.UsedCount) {
toSerialize["usedCount"] = o.UsedCount
}
if !IsNil(o.Username) {
toSerialize["username"] = o.Username
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *IamInvitationsInput) UnmarshalJSON(data []byte) (err error) {
varIamInvitationsInput := _IamInvitationsInput{}
err = json.Unmarshal(data, &varIamInvitationsInput)
if err != nil {
return err
}
*o = IamInvitationsInput(varIamInvitationsInput)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "application")
delete(additionalProperties, "code")
delete(additionalProperties, "createdTime")
delete(additionalProperties, "defaultCode")
delete(additionalProperties, "displayName")
delete(additionalProperties, "email")
delete(additionalProperties, "isRegexp")
delete(additionalProperties, "name")
delete(additionalProperties, "owner")
delete(additionalProperties, "phone")
delete(additionalProperties, "quota")
delete(additionalProperties, "signupGroup")
delete(additionalProperties, "state")
delete(additionalProperties, "updatedTime")
delete(additionalProperties, "usedCount")
delete(additionalProperties, "username")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableIamInvitationsInput struct {
value *IamInvitationsInput
isSet bool
}
func (v NullableIamInvitationsInput) Get() *IamInvitationsInput {
return v.value
}
func (v *NullableIamInvitationsInput) Set(val *IamInvitationsInput) {
v.value = val
v.isSet = true
}
func (v NullableIamInvitationsInput) IsSet() bool {
return v.isSet
}
func (v *NullableIamInvitationsInput) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIamInvitationsInput(val *IamInvitationsInput) *NullableIamInvitationsInput {
return &NullableIamInvitationsInput{value: val, isSet: true}
}
func (v NullableIamInvitationsInput) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIamInvitationsInput) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}