Skip to content

Latest commit

 

History

History
203 lines (108 loc) · 5.74 KB

AccessKey.md

File metadata and controls

203 lines (108 loc) · 5.74 KB

AccessKey

Properties

Name Type Description Notes
Id string Identifier of the access key.
Label string The name of the access key.
CorsHeaders Pointer to []string An array of domains for which the access key is valid. Whether Sumo Logic accepts or rejects an API request depends on whether it contains an ORIGIN header and the entries in the allowlist. Sumo Logic will reject: 1. Requests with an ORIGIN header but the allowlist is empty. 2. Requests with an ORIGIN header that don't match any entry in the allowlist. [optional]
Disabled bool Indicates whether the access key is disabled or not.
CreatedAt time.Time Creation timestamp in UTC in RFC3339 format.
CreatedBy string Identifier of the user who created the access key.
ModifiedAt time.Time Last modification timestamp in UTC.
Key string The key for the created access key. This field will have values only in the response for an access key create request. The value will be an empty string while listing all keys.

Methods

NewAccessKey

func NewAccessKey(id string, label string, disabled bool, createdAt time.Time, createdBy string, modifiedAt time.Time, key string, ) *AccessKey

NewAccessKey instantiates a new AccessKey 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

NewAccessKeyWithDefaults

func NewAccessKeyWithDefaults() *AccessKey

NewAccessKeyWithDefaults instantiates a new AccessKey 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

GetId

func (o *AccessKey) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *AccessKey) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *AccessKey) SetId(v string)

SetId sets Id field to given value.

GetLabel

func (o *AccessKey) GetLabel() string

GetLabel returns the Label field if non-nil, zero value otherwise.

GetLabelOk

func (o *AccessKey) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabel

func (o *AccessKey) SetLabel(v string)

SetLabel sets Label field to given value.

GetCorsHeaders

func (o *AccessKey) GetCorsHeaders() []string

GetCorsHeaders returns the CorsHeaders field if non-nil, zero value otherwise.

GetCorsHeadersOk

func (o *AccessKey) GetCorsHeadersOk() (*[]string, bool)

GetCorsHeadersOk returns a tuple with the CorsHeaders field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCorsHeaders

func (o *AccessKey) SetCorsHeaders(v []string)

SetCorsHeaders sets CorsHeaders field to given value.

HasCorsHeaders

func (o *AccessKey) HasCorsHeaders() bool

HasCorsHeaders returns a boolean if a field has been set.

GetDisabled

func (o *AccessKey) GetDisabled() bool

GetDisabled returns the Disabled field if non-nil, zero value otherwise.

GetDisabledOk

func (o *AccessKey) GetDisabledOk() (*bool, bool)

GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDisabled

func (o *AccessKey) SetDisabled(v bool)

SetDisabled sets Disabled field to given value.

GetCreatedAt

func (o *AccessKey) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *AccessKey) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *AccessKey) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetCreatedBy

func (o *AccessKey) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.

GetCreatedByOk

func (o *AccessKey) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedBy

func (o *AccessKey) SetCreatedBy(v string)

SetCreatedBy sets CreatedBy field to given value.

GetModifiedAt

func (o *AccessKey) GetModifiedAt() time.Time

GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.

GetModifiedAtOk

func (o *AccessKey) GetModifiedAtOk() (*time.Time, bool)

GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetModifiedAt

func (o *AccessKey) SetModifiedAt(v time.Time)

SetModifiedAt sets ModifiedAt field to given value.

GetKey

func (o *AccessKey) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

func (o *AccessKey) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKey

func (o *AccessKey) SetKey(v string)

SetKey sets Key field to given value.

[Back to Model list] [Back to API list] [Back to README]