user

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserFromDiscriminatorValue

CreateUserFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

Types

type User

type User struct {
	// contains filtered or unexported fields
}

func NewUser

func NewUser() *User

NewUser instantiates a new User and sets the default values.

func (*User) GetAccountId

func (m *User) GetAccountId() *string

GetAccountId gets the AccountId property value. The Id of the user returns a *string when successful

func (*User) GetAdditionalData

func (m *User) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*User) GetBalance

func (m *User) GetBalance() *float64

GetBalance gets the Balance property value. The remaining balance on the user's account returns a *float64 when successful

func (*User) GetBillingEmail

func (m *User) GetBillingEmail() *string

GetBillingEmail gets the BillingEmail property value. The email where the invoices and billing messages will be sent returns a *string when successful

func (*User) GetBillingFreeUntilDate

GetBillingFreeUntilDate gets the BillingFreeUntilDate property value. The end date of the account's free trial. If this is in the past, the free trial has expired. returns a *Time when successful

func (*User) GetBillingType

func (m *User) GetBillingType() *float64

GetBillingType gets the BillingType property value. The BillingType property returns a *float64 when successful

func (*User) GetCity

func (m *User) GetCity() *string

GetCity gets the City property value. The city of the user returns a *string when successful

func (*User) GetCompanyName

func (m *User) GetCompanyName() *string

GetCompanyName gets the CompanyName property value. The country name that the user is from returns a *string when successful

func (*User) GetCountry

func (m *User) GetCountry() *string

GetCountry gets the Country property value. The Alpha2 country code that the user is from returns a *string when successful

func (*User) GetDateJoined

GetDateJoined gets the DateJoined property value. The date when the user joined bunny.net returns a *Time when successful

func (*User) GetDpaAccepted

func (m *User) GetDpaAccepted() *bool

GetDpaAccepted gets the DpaAccepted property value. Determines if the DPA was accepted by the user or not returns a *bool when successful

func (*User) GetDpaDateAccepted

GetDpaDateAccepted gets the DpaDateAccepted property value. Determines the date on which the DPA was accepted returns a *Time when successful

func (*User) GetDpaVersionAccepted

func (m *User) GetDpaVersionAccepted() *int32

GetDpaVersionAccepted gets the DpaVersionAccepted property value. Determines which version of the DPA was accepted returns a *int32 when successful

func (*User) GetEmail

func (m *User) GetEmail() *string

GetEmail gets the Email property value. The email of the user returns a *string when successful

func (*User) GetEmailVerified

func (m *User) GetEmailVerified() *bool

GetEmailVerified gets the EmailVerified property value. Determines if the account's email has been successfully verified returns a *bool when successful

func (*User) GetEnabledPaymentTypes

func (m *User) GetEnabledPaymentTypes() []string

GetEnabledPaymentTypes gets the EnabledPaymentTypes property value. Contains the list of available payment types for this account returns a []string when successful

func (*User) GetFeatureFlags

func (m *User) GetFeatureFlags() []string

GetFeatureFlags gets the FeatureFlags property value. The list of features that the user has enabled returns a []string when successful

func (*User) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*User) GetFirstName

func (m *User) GetFirstName() *string

GetFirstName gets the FirstName property value. The first name of the user returns a *string when successful

func (*User) GetFreeTrialExtendedDate

GetFreeTrialExtendedDate gets the FreeTrialExtendedDate property value. The FreeTrialExtendedDate property returns a *Time when successful

func (*User) GetHasCompleteBillingProfile

func (m *User) GetHasCompleteBillingProfile() *bool

GetHasCompleteBillingProfile gets the HasCompleteBillingProfile property value. The HasCompleteBillingProfile property returns a *bool when successful

func (*User) GetId

func (m *User) GetId() *string

GetId gets the Id property value. The Id of the user returns a *string when successful

func (*User) GetIsSsoAccount

func (m *User) GetIsSsoAccount() *bool

GetIsSsoAccount gets the IsSsoAccount property value. Determines whether the user used a Single Sign On account returns a *bool when successful

func (*User) GetLastName

func (m *User) GetLastName() *string

GetLastName gets the LastName property value. The last name of the user returns a *string when successful

func (*User) GetPaymentsDisabled

func (m *User) GetPaymentsDisabled() *bool

GetPaymentsDisabled gets the PaymentsDisabled property value. Determines if the payments are disabled on this account returns a *bool when successful

func (*User) GetReceiveNotificationEmails

func (m *User) GetReceiveNotificationEmails() *bool

GetReceiveNotificationEmails gets the ReceiveNotificationEmails property value. Determines if the account should receive notification emails from bunny.net returns a *bool when successful

func (*User) GetReceivePromotionalEmails

func (m *User) GetReceivePromotionalEmails() *bool

GetReceivePromotionalEmails gets the ReceivePromotionalEmails property value. Determines if the account should receive promotional emails from bunny.net returns a *bool when successful

func (*User) GetRoles

func (m *User) GetRoles() []string

GetRoles gets the Roles property value. Determines the roles that the user belongs to returns a []string when successful

func (*User) GetStreetAddress

func (m *User) GetStreetAddress() *string

GetStreetAddress gets the StreetAddress property value. The street address of the user returns a *string when successful

func (*User) GetSuspended

func (m *User) GetSuspended() *bool

GetSuspended gets the Suspended property value. Determines if the user's account is suspended returns a *bool when successful

func (*User) GetTotalBandwidthUsed

func (m *User) GetTotalBandwidthUsed() *int64

GetTotalBandwidthUsed gets the TotalBandwidthUsed property value. The total bandwidth used by the account. returns a *int64 when successful

func (*User) GetTrialBandwidthLimit

func (m *User) GetTrialBandwidthLimit() *int64

GetTrialBandwidthLimit gets the TrialBandwidthLimit property value. The total free trial bandwidth limit for this account returns a *int64 when successful

func (*User) GetTwoFactorAuthenticationEnabled

func (m *User) GetTwoFactorAuthenticationEnabled() *bool

GetTwoFactorAuthenticationEnabled gets the TwoFactorAuthenticationEnabled property value. Determines if the account has 2FA enabled returns a *bool when successful

func (*User) GetUnreadSupportTicketCount

func (m *User) GetUnreadSupportTicketCount() *int32

GetUnreadSupportTicketCount gets the UnreadSupportTicketCount property value. Returns the number of unread tickets on the user's account returns a *int32 when successful

func (*User) GetVATNumber

func (m *User) GetVATNumber() *string

GetVATNumber gets the VATNumber property value. The billing VAT number of the account returns a *string when successful

func (*User) GetZipCode

func (m *User) GetZipCode() *string

GetZipCode gets the ZipCode property value. The address zip code of the user returns a *string when successful

func (*User) Serialize

Serialize serializes information the current object

func (*User) SetAccountId

func (m *User) SetAccountId(value *string)

SetAccountId sets the AccountId property value. The Id of the user

func (*User) SetAdditionalData

func (m *User) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*User) SetBalance

func (m *User) SetBalance(value *float64)

SetBalance sets the Balance property value. The remaining balance on the user's account

func (*User) SetBillingEmail

func (m *User) SetBillingEmail(value *string)

SetBillingEmail sets the BillingEmail property value. The email where the invoices and billing messages will be sent

func (*User) SetBillingFreeUntilDate

SetBillingFreeUntilDate sets the BillingFreeUntilDate property value. The end date of the account's free trial. If this is in the past, the free trial has expired.

func (*User) SetBillingType

func (m *User) SetBillingType(value *float64)

SetBillingType sets the BillingType property value. The BillingType property

func (*User) SetCity

func (m *User) SetCity(value *string)

SetCity sets the City property value. The city of the user

func (*User) SetCompanyName

func (m *User) SetCompanyName(value *string)

SetCompanyName sets the CompanyName property value. The country name that the user is from

func (*User) SetCountry

func (m *User) SetCountry(value *string)

SetCountry sets the Country property value. The Alpha2 country code that the user is from

func (*User) SetDateJoined

SetDateJoined sets the DateJoined property value. The date when the user joined bunny.net

func (*User) SetDpaAccepted

func (m *User) SetDpaAccepted(value *bool)

SetDpaAccepted sets the DpaAccepted property value. Determines if the DPA was accepted by the user or not

func (*User) SetDpaDateAccepted

SetDpaDateAccepted sets the DpaDateAccepted property value. Determines the date on which the DPA was accepted

func (*User) SetDpaVersionAccepted

func (m *User) SetDpaVersionAccepted(value *int32)

SetDpaVersionAccepted sets the DpaVersionAccepted property value. Determines which version of the DPA was accepted

func (*User) SetEmail

func (m *User) SetEmail(value *string)

SetEmail sets the Email property value. The email of the user

func (*User) SetEmailVerified

func (m *User) SetEmailVerified(value *bool)

SetEmailVerified sets the EmailVerified property value. Determines if the account's email has been successfully verified

func (*User) SetEnabledPaymentTypes

func (m *User) SetEnabledPaymentTypes(value []string)

SetEnabledPaymentTypes sets the EnabledPaymentTypes property value. Contains the list of available payment types for this account

func (*User) SetFeatureFlags

func (m *User) SetFeatureFlags(value []string)

SetFeatureFlags sets the FeatureFlags property value. The list of features that the user has enabled

func (*User) SetFirstName

func (m *User) SetFirstName(value *string)

SetFirstName sets the FirstName property value. The first name of the user

func (*User) SetFreeTrialExtendedDate

SetFreeTrialExtendedDate sets the FreeTrialExtendedDate property value. The FreeTrialExtendedDate property

func (*User) SetHasCompleteBillingProfile

func (m *User) SetHasCompleteBillingProfile(value *bool)

SetHasCompleteBillingProfile sets the HasCompleteBillingProfile property value. The HasCompleteBillingProfile property

func (*User) SetId

func (m *User) SetId(value *string)

SetId sets the Id property value. The Id of the user

func (*User) SetIsSsoAccount

func (m *User) SetIsSsoAccount(value *bool)

SetIsSsoAccount sets the IsSsoAccount property value. Determines whether the user used a Single Sign On account

func (*User) SetLastName

func (m *User) SetLastName(value *string)

SetLastName sets the LastName property value. The last name of the user

func (*User) SetPaymentsDisabled

func (m *User) SetPaymentsDisabled(value *bool)

SetPaymentsDisabled sets the PaymentsDisabled property value. Determines if the payments are disabled on this account

func (*User) SetReceiveNotificationEmails

func (m *User) SetReceiveNotificationEmails(value *bool)

SetReceiveNotificationEmails sets the ReceiveNotificationEmails property value. Determines if the account should receive notification emails from bunny.net

func (*User) SetReceivePromotionalEmails

func (m *User) SetReceivePromotionalEmails(value *bool)

SetReceivePromotionalEmails sets the ReceivePromotionalEmails property value. Determines if the account should receive promotional emails from bunny.net

func (*User) SetRoles

func (m *User) SetRoles(value []string)

SetRoles sets the Roles property value. Determines the roles that the user belongs to

func (*User) SetStreetAddress

func (m *User) SetStreetAddress(value *string)

SetStreetAddress sets the StreetAddress property value. The street address of the user

func (*User) SetSuspended

func (m *User) SetSuspended(value *bool)

SetSuspended sets the Suspended property value. Determines if the user's account is suspended

func (*User) SetTotalBandwidthUsed

func (m *User) SetTotalBandwidthUsed(value *int64)

SetTotalBandwidthUsed sets the TotalBandwidthUsed property value. The total bandwidth used by the account.

func (*User) SetTrialBandwidthLimit

func (m *User) SetTrialBandwidthLimit(value *int64)

SetTrialBandwidthLimit sets the TrialBandwidthLimit property value. The total free trial bandwidth limit for this account

func (*User) SetTwoFactorAuthenticationEnabled

func (m *User) SetTwoFactorAuthenticationEnabled(value *bool)

SetTwoFactorAuthenticationEnabled sets the TwoFactorAuthenticationEnabled property value. Determines if the account has 2FA enabled

func (*User) SetUnreadSupportTicketCount

func (m *User) SetUnreadSupportTicketCount(value *int32)

SetUnreadSupportTicketCount sets the UnreadSupportTicketCount property value. Returns the number of unread tickets on the user's account

func (*User) SetVATNumber

func (m *User) SetVATNumber(value *string)

SetVATNumber sets the VATNumber property value. The billing VAT number of the account

func (*User) SetZipCode

func (m *User) SetZipCode(value *string)

SetZipCode sets the ZipCode property value. The address zip code of the user

type Userable

type Userable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetAccountId() *string
	GetBalance() *float64
	GetBillingEmail() *string
	GetBillingFreeUntilDate() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
	GetBillingType() *float64
	GetCity() *string
	GetCompanyName() *string
	GetCountry() *string
	GetDateJoined() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
	GetDpaAccepted() *bool
	GetDpaDateAccepted() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
	GetDpaVersionAccepted() *int32
	GetEmail() *string
	GetEmailVerified() *bool
	GetEnabledPaymentTypes() []string
	GetFeatureFlags() []string
	GetFirstName() *string
	GetFreeTrialExtendedDate() *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
	GetHasCompleteBillingProfile() *bool
	GetId() *string
	GetIsSsoAccount() *bool
	GetLastName() *string
	GetPaymentsDisabled() *bool
	GetReceiveNotificationEmails() *bool
	GetReceivePromotionalEmails() *bool
	GetRoles() []string
	GetStreetAddress() *string
	GetSuspended() *bool
	GetTotalBandwidthUsed() *int64
	GetTrialBandwidthLimit() *int64
	GetTwoFactorAuthenticationEnabled() *bool
	GetUnreadSupportTicketCount() *int32
	GetVATNumber() *string
	GetZipCode() *string
	SetAccountId(value *string)
	SetBalance(value *float64)
	SetBillingEmail(value *string)
	SetBillingFreeUntilDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
	SetBillingType(value *float64)
	SetCity(value *string)
	SetCompanyName(value *string)
	SetCountry(value *string)
	SetDateJoined(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
	SetDpaAccepted(value *bool)
	SetDpaDateAccepted(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
	SetDpaVersionAccepted(value *int32)
	SetEmail(value *string)
	SetEmailVerified(value *bool)
	SetEnabledPaymentTypes(value []string)
	SetFeatureFlags(value []string)
	SetFirstName(value *string)
	SetFreeTrialExtendedDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
	SetHasCompleteBillingProfile(value *bool)
	SetId(value *string)
	SetIsSsoAccount(value *bool)
	SetLastName(value *string)
	SetPaymentsDisabled(value *bool)
	SetReceiveNotificationEmails(value *bool)
	SetReceivePromotionalEmails(value *bool)
	SetRoles(value []string)
	SetStreetAddress(value *string)
	SetSuspended(value *bool)
	SetTotalBandwidthUsed(value *int64)
	SetTrialBandwidthLimit(value *int64)
	SetTwoFactorAuthenticationEnabled(value *bool)
	SetUnreadSupportTicketCount(value *int32)
	SetVATNumber(value *string)
	SetZipCode(value *string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL