AdminDrainRequest
AdminDrainRequest documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| TimeoutSec | Pointer to int32 | [optional] | |
| Reason | Pointer to string | [optional] | |
| WaitForQuiesce | Pointer to bool | [optional] |
Methods
NewAdminDrainRequest
func NewAdminDrainRequest() *AdminDrainRequest
NewAdminDrainRequest instantiates a new AdminDrainRequest 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
NewAdminDrainRequestWithDefaults
func NewAdminDrainRequestWithDefaults() *AdminDrainRequest
NewAdminDrainRequestWithDefaults instantiates a new AdminDrainRequest 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
GetTimeoutSec
func (o *AdminDrainRequest) GetTimeoutSec() int32
GetTimeoutSec returns the TimeoutSec field if non-nil, zero value otherwise.
GetTimeoutSecOk
func (o *AdminDrainRequest) GetTimeoutSecOk() (*int32, bool)
GetTimeoutSecOk returns a tuple with the TimeoutSec field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTimeoutSec
func (o *AdminDrainRequest) SetTimeoutSec(v int32)
SetTimeoutSec sets TimeoutSec field to given value.
HasTimeoutSec
func (o *AdminDrainRequest) HasTimeoutSec() bool
HasTimeoutSec returns a boolean if a field has been set.
GetReason
func (o *AdminDrainRequest) GetReason() string
GetReason returns the Reason field if non-nil, zero value otherwise.
GetReasonOk
func (o *AdminDrainRequest) GetReasonOk() (*string, bool)
GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetReason
func (o *AdminDrainRequest) SetReason(v string)
SetReason sets Reason field to given value.
HasReason
func (o *AdminDrainRequest) HasReason() bool
HasReason returns a boolean if a field has been set.
GetWaitForQuiesce
func (o *AdminDrainRequest) GetWaitForQuiesce() bool
GetWaitForQuiesce returns the WaitForQuiesce field if non-nil, zero value otherwise.
GetWaitForQuiesceOk
func (o *AdminDrainRequest) GetWaitForQuiesceOk() (*bool, bool)
GetWaitForQuiesceOk returns a tuple with the WaitForQuiesce field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWaitForQuiesce
func (o *AdminDrainRequest) SetWaitForQuiesce(v bool)
SetWaitForQuiesce sets WaitForQuiesce field to given value.
HasWaitForQuiesce
func (o *AdminDrainRequest) HasWaitForQuiesce() bool
HasWaitForQuiesce returns a boolean if a field has been set.