mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
935 lines
25 KiB
Go
935 lines
25 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"
|
|
"time"
|
|
)
|
|
|
|
// checks if the IamInvitation type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &IamInvitation{}
|
|
|
|
// IamInvitation struct for IamInvitation
|
|
type IamInvitation struct {
|
|
Application *string `json:"application,omitempty"`
|
|
Code *string `json:"code,omitempty"`
|
|
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
|
CreatedTime *string `json:"createdTime,omitempty"`
|
|
DefaultCode *string `json:"defaultCode,omitempty"`
|
|
Deleted *bool `json:"deleted,omitempty"`
|
|
DisplayName *string `json:"displayName,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
// Generated reports that IAM minted Code itself, from crypto/rand, when the invitation was created. Only such a code is compared without limit; any code a caller wrote is compared only while the org is not being guessed at, however it looks, because a code that looks random need not be.
|
|
Generated *bool `json:"generated,omitempty"`
|
|
// Persisted fields
|
|
Id *string `json:"id,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"`
|
|
// SentTime is when an email about this invitation last went to its pinned address (RFC 3339), \"\" when none has. It paces resends, so the send endpoint cannot be used to mail one address over and over.
|
|
SentTime *string `json:"sentTime,omitempty"`
|
|
SignupGroup *string `json:"signupGroup,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
|
UpdatedTime *string `json:"updatedTime,omitempty"`
|
|
UsedCount *int64 `json:"usedCount,omitempty"`
|
|
Username *string `json:"username,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _IamInvitation IamInvitation
|
|
|
|
// NewIamInvitation instantiates a new IamInvitation 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 NewIamInvitation() *IamInvitation {
|
|
this := IamInvitation{}
|
|
return &this
|
|
}
|
|
|
|
// NewIamInvitationWithDefaults instantiates a new IamInvitation 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 NewIamInvitationWithDefaults() *IamInvitation {
|
|
this := IamInvitation{}
|
|
return &this
|
|
}
|
|
|
|
// GetApplication returns the Application field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetApplication(v string) {
|
|
o.Application = &v
|
|
}
|
|
|
|
// GetCode returns the Code field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetCode(v string) {
|
|
o.Code = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *IamInvitation) GetCreatedAt() time.Time {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret time.Time
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// 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 *IamInvitation) GetCreatedAtOk() (*time.Time, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *IamInvitation) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
|
|
func (o *IamInvitation) SetCreatedAt(v time.Time) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetCreatedTime(v string) {
|
|
o.CreatedTime = &v
|
|
}
|
|
|
|
// GetDefaultCode returns the DefaultCode field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetDefaultCode(v string) {
|
|
o.DefaultCode = &v
|
|
}
|
|
|
|
// GetDeleted returns the Deleted field value if set, zero value otherwise.
|
|
func (o *IamInvitation) GetDeleted() bool {
|
|
if o == nil || IsNil(o.Deleted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Deleted
|
|
}
|
|
|
|
// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamInvitation) GetDeletedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Deleted) {
|
|
return nil, false
|
|
}
|
|
return o.Deleted, true
|
|
}
|
|
|
|
// HasDeleted returns a boolean if a field has been set.
|
|
func (o *IamInvitation) HasDeleted() bool {
|
|
if o != nil && !IsNil(o.Deleted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDeleted gets a reference to the given bool and assigns it to the Deleted field.
|
|
func (o *IamInvitation) SetDeleted(v bool) {
|
|
o.Deleted = &v
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetEmail returns the Email field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetEmail(v string) {
|
|
o.Email = &v
|
|
}
|
|
|
|
// GetGenerated returns the Generated field value if set, zero value otherwise.
|
|
func (o *IamInvitation) GetGenerated() bool {
|
|
if o == nil || IsNil(o.Generated) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Generated
|
|
}
|
|
|
|
// GetGeneratedOk returns a tuple with the Generated field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamInvitation) GetGeneratedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Generated) {
|
|
return nil, false
|
|
}
|
|
return o.Generated, true
|
|
}
|
|
|
|
// HasGenerated returns a boolean if a field has been set.
|
|
func (o *IamInvitation) HasGenerated() bool {
|
|
if o != nil && !IsNil(o.Generated) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGenerated gets a reference to the given bool and assigns it to the Generated field.
|
|
func (o *IamInvitation) SetGenerated(v bool) {
|
|
o.Generated = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *IamInvitation) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// 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 *IamInvitation) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *IamInvitation) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *IamInvitation) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIsRegexp returns the IsRegexp field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetIsRegexp(v bool) {
|
|
o.IsRegexp = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetPhone returns the Phone field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetPhone(v string) {
|
|
o.Phone = &v
|
|
}
|
|
|
|
// GetQuota returns the Quota field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetQuota(v int64) {
|
|
o.Quota = &v
|
|
}
|
|
|
|
// GetSentTime returns the SentTime field value if set, zero value otherwise.
|
|
func (o *IamInvitation) GetSentTime() string {
|
|
if o == nil || IsNil(o.SentTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SentTime
|
|
}
|
|
|
|
// GetSentTimeOk returns a tuple with the SentTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *IamInvitation) GetSentTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SentTime) {
|
|
return nil, false
|
|
}
|
|
return o.SentTime, true
|
|
}
|
|
|
|
// HasSentTime returns a boolean if a field has been set.
|
|
func (o *IamInvitation) HasSentTime() bool {
|
|
if o != nil && !IsNil(o.SentTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSentTime gets a reference to the given string and assigns it to the SentTime field.
|
|
func (o *IamInvitation) SetSentTime(v string) {
|
|
o.SentTime = &v
|
|
}
|
|
|
|
// GetSignupGroup returns the SignupGroup field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetSignupGroup(v string) {
|
|
o.SignupGroup = &v
|
|
}
|
|
|
|
// GetState returns the State field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetState(v string) {
|
|
o.State = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *IamInvitation) GetUpdatedAt() time.Time {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret time.Time
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// 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 *IamInvitation) GetUpdatedAtOk() (*time.Time, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *IamInvitation) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
|
|
func (o *IamInvitation) SetUpdatedAt(v time.Time) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
// GetUpdatedTime returns the UpdatedTime field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetUpdatedTime(v string) {
|
|
o.UpdatedTime = &v
|
|
}
|
|
|
|
// GetUsedCount returns the UsedCount field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetUsedCount(v int64) {
|
|
o.UsedCount = &v
|
|
}
|
|
|
|
// GetUsername returns the Username field value if set, zero value otherwise.
|
|
func (o *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) 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 *IamInvitation) SetUsername(v string) {
|
|
o.Username = &v
|
|
}
|
|
|
|
func (o IamInvitation) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o IamInvitation) 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.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.CreatedTime) {
|
|
toSerialize["createdTime"] = o.CreatedTime
|
|
}
|
|
if !IsNil(o.DefaultCode) {
|
|
toSerialize["defaultCode"] = o.DefaultCode
|
|
}
|
|
if !IsNil(o.Deleted) {
|
|
toSerialize["deleted"] = o.Deleted
|
|
}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["displayName"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.Email) {
|
|
toSerialize["email"] = o.Email
|
|
}
|
|
if !IsNil(o.Generated) {
|
|
toSerialize["generated"] = o.Generated
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
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.SentTime) {
|
|
toSerialize["sentTime"] = o.SentTime
|
|
}
|
|
if !IsNil(o.SignupGroup) {
|
|
toSerialize["signupGroup"] = o.SignupGroup
|
|
}
|
|
if !IsNil(o.State) {
|
|
toSerialize["state"] = o.State
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
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 *IamInvitation) UnmarshalJSON(data []byte) (err error) {
|
|
varIamInvitation := _IamInvitation{}
|
|
|
|
err = json.Unmarshal(data, &varIamInvitation)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = IamInvitation(varIamInvitation)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "application")
|
|
delete(additionalProperties, "code")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "createdTime")
|
|
delete(additionalProperties, "defaultCode")
|
|
delete(additionalProperties, "deleted")
|
|
delete(additionalProperties, "displayName")
|
|
delete(additionalProperties, "email")
|
|
delete(additionalProperties, "generated")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "isRegexp")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "phone")
|
|
delete(additionalProperties, "quota")
|
|
delete(additionalProperties, "sentTime")
|
|
delete(additionalProperties, "signupGroup")
|
|
delete(additionalProperties, "state")
|
|
delete(additionalProperties, "updatedAt")
|
|
delete(additionalProperties, "updatedTime")
|
|
delete(additionalProperties, "usedCount")
|
|
delete(additionalProperties, "username")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableIamInvitation struct {
|
|
value *IamInvitation
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableIamInvitation) Get() *IamInvitation {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableIamInvitation) Set(val *IamInvitation) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableIamInvitation) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableIamInvitation) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableIamInvitation(val *IamInvitation) *NullableIamInvitation {
|
|
return &NullableIamInvitation{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableIamInvitation) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableIamInvitation) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|