CreateLocalUserOpenApiVO
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| ApplyToAllPortals | Pointer to bool | Is the localuser effective for all portals, including all newly created portals | [optional] |
| BindingType | int32 | MAC binding type should be a value as follows: 0: no binding; 1: static binding; 2: dynamic binding. | |
| DailyLimit | Pointer to DailyAuthTimeOpenApiVO | [optional] | |
| DailyLimitEnable | Pointer to bool | Whether to enable localuser daily time limit | [optional] |
| Enable | bool | Whether to enable. | |
| ExpirationTime | int64 | Expiration timestamp. Unit:ms. | |
| Logout | Pointer to bool | local user logout. enable local user logout | [optional] |
| MacAddress | Pointer to string | Mac address,the value is only available when the macType is static binding or dynamic binding. | [optional] |
| MaxUsers | int32 | The maximum number of users online at the same time when the MAC binding type is No Binding. It cannot be modified after initialization. MaxUsers should be within the range of 1–2048. | |
| Name | Pointer to string | Name should contain 1 to 128 characters, with no spaces at the beginning and end, and spaces in the middle | [optional] |
| Password | string | Password should contain 1 to 128 characters. | |
| Phone | Pointer to string | Phone number should contain 1 to 20 characters. | [optional] |
| Portals | []string | Bound portal ID list. Portal can be created using 'Add portal' interface, and portal ID can be obtained from 'Get portal list in a site' interface | |
| RateLimit | RateLimitOpenApiVO | ||
| TrafficLimit | Pointer to int64 | Traffic limit in MB. It should be within the range of 1–10485760. | [optional] |
| TrafficLimitEnable | bool | Whether to enable traffic limit. | |
| TrafficLimitFrequency | Pointer to int32 | Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. | [optional] |
| UserName | string | User name should contain 1 to 128 ASCII visible characters, with no spaces at the beginning and end, and spaces in the middle, cannot be changed after creation. |
Methods
NewCreateLocalUserOpenApiVO
func NewCreateLocalUserOpenApiVO(bindingType int32, enable bool, expirationTime int64, maxUsers int32, password string, portals []string, rateLimit RateLimitOpenApiVO, trafficLimitEnable bool, userName string, ) *CreateLocalUserOpenApiVO
NewCreateLocalUserOpenApiVO instantiates a new CreateLocalUserOpenApiVO 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
NewCreateLocalUserOpenApiVOWithDefaults
func NewCreateLocalUserOpenApiVOWithDefaults() *CreateLocalUserOpenApiVO
NewCreateLocalUserOpenApiVOWithDefaults instantiates a new CreateLocalUserOpenApiVO 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
GetApplyToAllPortals
func (o *CreateLocalUserOpenApiVO) GetApplyToAllPortals() bool
GetApplyToAllPortals returns the ApplyToAllPortals field if non-nil, zero value otherwise.
GetApplyToAllPortalsOk
func (o *CreateLocalUserOpenApiVO) GetApplyToAllPortalsOk() (*bool, bool)
GetApplyToAllPortalsOk returns a tuple with the ApplyToAllPortals field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetApplyToAllPortals
func (o *CreateLocalUserOpenApiVO) SetApplyToAllPortals(v bool)
SetApplyToAllPortals sets ApplyToAllPortals field to given value.
HasApplyToAllPortals
func (o *CreateLocalUserOpenApiVO) HasApplyToAllPortals() bool
HasApplyToAllPortals returns a boolean if a field has been set.
GetBindingType
func (o *CreateLocalUserOpenApiVO) GetBindingType() int32
GetBindingType returns the BindingType field if non-nil, zero value otherwise.
GetBindingTypeOk
func (o *CreateLocalUserOpenApiVO) GetBindingTypeOk() (*int32, bool)
GetBindingTypeOk returns a tuple with the BindingType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBindingType
func (o *CreateLocalUserOpenApiVO) SetBindingType(v int32)
SetBindingType sets BindingType field to given value.
GetDailyLimit
func (o *CreateLocalUserOpenApiVO) GetDailyLimit() DailyAuthTimeOpenApiVO
GetDailyLimit returns the DailyLimit field if non-nil, zero value otherwise.
GetDailyLimitOk
func (o *CreateLocalUserOpenApiVO) GetDailyLimitOk() (*DailyAuthTimeOpenApiVO, bool)
GetDailyLimitOk returns a tuple with the DailyLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDailyLimit
func (o *CreateLocalUserOpenApiVO) SetDailyLimit(v DailyAuthTimeOpenApiVO)
SetDailyLimit sets DailyLimit field to given value.
HasDailyLimit
func (o *CreateLocalUserOpenApiVO) HasDailyLimit() bool
HasDailyLimit returns a boolean if a field has been set.
GetDailyLimitEnable
func (o *CreateLocalUserOpenApiVO) GetDailyLimitEnable() bool
GetDailyLimitEnable returns the DailyLimitEnable field if non-nil, zero value otherwise.
GetDailyLimitEnableOk
func (o *CreateLocalUserOpenApiVO) GetDailyLimitEnableOk() (*bool, bool)
GetDailyLimitEnableOk returns a tuple with the DailyLimitEnable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDailyLimitEnable
func (o *CreateLocalUserOpenApiVO) SetDailyLimitEnable(v bool)
SetDailyLimitEnable sets DailyLimitEnable field to given value.
HasDailyLimitEnable
func (o *CreateLocalUserOpenApiVO) HasDailyLimitEnable() bool
HasDailyLimitEnable returns a boolean if a field has been set.
GetEnable
func (o *CreateLocalUserOpenApiVO) GetEnable() bool
GetEnable returns the Enable field if non-nil, zero value otherwise.
GetEnableOk
func (o *CreateLocalUserOpenApiVO) GetEnableOk() (*bool, bool)
GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetEnable
func (o *CreateLocalUserOpenApiVO) SetEnable(v bool)
SetEnable sets Enable field to given value.
GetExpirationTime
func (o *CreateLocalUserOpenApiVO) GetExpirationTime() int64
GetExpirationTime returns the ExpirationTime field if non-nil, zero value otherwise.
GetExpirationTimeOk
func (o *CreateLocalUserOpenApiVO) GetExpirationTimeOk() (*int64, bool)
GetExpirationTimeOk returns a tuple with the ExpirationTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetExpirationTime
func (o *CreateLocalUserOpenApiVO) SetExpirationTime(v int64)
SetExpirationTime sets ExpirationTime field to given value.
GetLogout
func (o *CreateLocalUserOpenApiVO) GetLogout() bool
GetLogout returns the Logout field if non-nil, zero value otherwise.
GetLogoutOk
func (o *CreateLocalUserOpenApiVO) GetLogoutOk() (*bool, bool)
GetLogoutOk returns a tuple with the Logout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLogout
func (o *CreateLocalUserOpenApiVO) SetLogout(v bool)
SetLogout sets Logout field to given value.
HasLogout
func (o *CreateLocalUserOpenApiVO) HasLogout() bool
HasLogout returns a boolean if a field has been set.
GetMacAddress
func (o *CreateLocalUserOpenApiVO) GetMacAddress() string
GetMacAddress returns the MacAddress field if non-nil, zero value otherwise.
GetMacAddressOk
func (o *CreateLocalUserOpenApiVO) GetMacAddressOk() (*string, bool)
GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMacAddress
func (o *CreateLocalUserOpenApiVO) SetMacAddress(v string)
SetMacAddress sets MacAddress field to given value.
HasMacAddress
func (o *CreateLocalUserOpenApiVO) HasMacAddress() bool
HasMacAddress returns a boolean if a field has been set.
GetMaxUsers
func (o *CreateLocalUserOpenApiVO) GetMaxUsers() int32
GetMaxUsers returns the MaxUsers field if non-nil, zero value otherwise.
GetMaxUsersOk
func (o *CreateLocalUserOpenApiVO) GetMaxUsersOk() (*int32, bool)
GetMaxUsersOk returns a tuple with the MaxUsers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMaxUsers
func (o *CreateLocalUserOpenApiVO) SetMaxUsers(v int32)
SetMaxUsers sets MaxUsers field to given value.
GetName
func (o *CreateLocalUserOpenApiVO) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *CreateLocalUserOpenApiVO) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetName
func (o *CreateLocalUserOpenApiVO) SetName(v string)
SetName sets Name field to given value.
HasName
func (o *CreateLocalUserOpenApiVO) HasName() bool
HasName returns a boolean if a field has been set.
GetPassword
func (o *CreateLocalUserOpenApiVO) GetPassword() string
GetPassword returns the Password field if non-nil, zero value otherwise.
GetPasswordOk
func (o *CreateLocalUserOpenApiVO) GetPasswordOk() (*string, bool)
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPassword
func (o *CreateLocalUserOpenApiVO) SetPassword(v string)
SetPassword sets Password field to given value.
GetPhone
func (o *CreateLocalUserOpenApiVO) GetPhone() string
GetPhone returns the Phone field if non-nil, zero value otherwise.
GetPhoneOk
func (o *CreateLocalUserOpenApiVO) GetPhoneOk() (*string, bool)
GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPhone
func (o *CreateLocalUserOpenApiVO) SetPhone(v string)
SetPhone sets Phone field to given value.
HasPhone
func (o *CreateLocalUserOpenApiVO) HasPhone() bool
HasPhone returns a boolean if a field has been set.
GetPortals
func (o *CreateLocalUserOpenApiVO) GetPortals() []string
GetPortals returns the Portals field if non-nil, zero value otherwise.
GetPortalsOk
func (o *CreateLocalUserOpenApiVO) GetPortalsOk() (*[]string, bool)
GetPortalsOk returns a tuple with the Portals field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPortals
func (o *CreateLocalUserOpenApiVO) SetPortals(v []string)
SetPortals sets Portals field to given value.
GetRateLimit
func (o *CreateLocalUserOpenApiVO) GetRateLimit() RateLimitOpenApiVO
GetRateLimit returns the RateLimit field if non-nil, zero value otherwise.
GetRateLimitOk
func (o *CreateLocalUserOpenApiVO) GetRateLimitOk() (*RateLimitOpenApiVO, bool)
GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRateLimit
func (o *CreateLocalUserOpenApiVO) SetRateLimit(v RateLimitOpenApiVO)
SetRateLimit sets RateLimit field to given value.
GetTrafficLimit
func (o *CreateLocalUserOpenApiVO) GetTrafficLimit() int64
GetTrafficLimit returns the TrafficLimit field if non-nil, zero value otherwise.
GetTrafficLimitOk
func (o *CreateLocalUserOpenApiVO) GetTrafficLimitOk() (*int64, bool)
GetTrafficLimitOk returns a tuple with the TrafficLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTrafficLimit
func (o *CreateLocalUserOpenApiVO) SetTrafficLimit(v int64)
SetTrafficLimit sets TrafficLimit field to given value.
HasTrafficLimit
func (o *CreateLocalUserOpenApiVO) HasTrafficLimit() bool
HasTrafficLimit returns a boolean if a field has been set.
GetTrafficLimitEnable
func (o *CreateLocalUserOpenApiVO) GetTrafficLimitEnable() bool
GetTrafficLimitEnable returns the TrafficLimitEnable field if non-nil, zero value otherwise.
GetTrafficLimitEnableOk
func (o *CreateLocalUserOpenApiVO) GetTrafficLimitEnableOk() (*bool, bool)
GetTrafficLimitEnableOk returns a tuple with the TrafficLimitEnable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTrafficLimitEnable
func (o *CreateLocalUserOpenApiVO) SetTrafficLimitEnable(v bool)
SetTrafficLimitEnable sets TrafficLimitEnable field to given value.
GetTrafficLimitFrequency
func (o *CreateLocalUserOpenApiVO) GetTrafficLimitFrequency() int32
GetTrafficLimitFrequency returns the TrafficLimitFrequency field if non-nil, zero value otherwise.
GetTrafficLimitFrequencyOk
func (o *CreateLocalUserOpenApiVO) GetTrafficLimitFrequencyOk() (*int32, bool)
GetTrafficLimitFrequencyOk returns a tuple with the TrafficLimitFrequency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTrafficLimitFrequency
func (o *CreateLocalUserOpenApiVO) SetTrafficLimitFrequency(v int32)
SetTrafficLimitFrequency sets TrafficLimitFrequency field to given value.
HasTrafficLimitFrequency
func (o *CreateLocalUserOpenApiVO) HasTrafficLimitFrequency() bool
HasTrafficLimitFrequency returns a boolean if a field has been set.
GetUserName
func (o *CreateLocalUserOpenApiVO) GetUserName() string
GetUserName returns the UserName field if non-nil, zero value otherwise.
GetUserNameOk
func (o *CreateLocalUserOpenApiVO) GetUserNameOk() (*string, bool)
GetUserNameOk returns a tuple with the UserName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetUserName
func (o *CreateLocalUserOpenApiVO) SetUserName(v string)
SetUserName sets UserName field to given value.