Skip to content

Latest commit

 

History

History
265 lines (142 loc) · 7.42 KB

Authorization.md

File metadata and controls

265 lines (142 loc) · 7.42 KB

Authorization

Properties

Name Type Description Notes
Id int32 Authorization ID, generated by senhasegura [readonly]
System string System which this authorization belongs to
Environment string Environment which this authorization belongs to
Expiration Pointer to time.Time Expiration date of an authorization (must be in YYYY-MM-DD HH:MM format) [optional]
Encryption bool Whether secret sensitive data will be encrypted on responses
Permissions string Permission level for reading and writing application data
AllowedIps Pointer to []string List of IPs allowed to make requests using this authorization [optional]
AllowedReferers Pointer to []string List of Referes allowed to make requests using this authorization [optional]
Arns Pointer to []string List of AWS ARNS allowed to request data through this authorization [optional]
Ceritificate Pointer to string Certificate fingerprint used to validate access on secrets [optional]

Methods

NewAuthorization

func NewAuthorization(id int32, system string, environment string, encryption bool, permissions string, ) *Authorization

NewAuthorization instantiates a new Authorization 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

NewAuthorizationWithDefaults

func NewAuthorizationWithDefaults() *Authorization

NewAuthorizationWithDefaults instantiates a new Authorization 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 *Authorization) GetId() int32

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

GetIdOk

func (o *Authorization) GetIdOk() (*int32, 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 *Authorization) SetId(v int32)

SetId sets Id field to given value.

GetSystem

func (o *Authorization) GetSystem() string

GetSystem returns the System field if non-nil, zero value otherwise.

GetSystemOk

func (o *Authorization) GetSystemOk() (*string, bool)

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

SetSystem

func (o *Authorization) SetSystem(v string)

SetSystem sets System field to given value.

GetEnvironment

func (o *Authorization) GetEnvironment() string

GetEnvironment returns the Environment field if non-nil, zero value otherwise.

GetEnvironmentOk

func (o *Authorization) GetEnvironmentOk() (*string, bool)

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

SetEnvironment

func (o *Authorization) SetEnvironment(v string)

SetEnvironment sets Environment field to given value.

GetExpiration

func (o *Authorization) GetExpiration() time.Time

GetExpiration returns the Expiration field if non-nil, zero value otherwise.

GetExpirationOk

func (o *Authorization) GetExpirationOk() (*time.Time, bool)

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

SetExpiration

func (o *Authorization) SetExpiration(v time.Time)

SetExpiration sets Expiration field to given value.

HasExpiration

func (o *Authorization) HasExpiration() bool

HasExpiration returns a boolean if a field has been set.

GetEncryption

func (o *Authorization) GetEncryption() bool

GetEncryption returns the Encryption field if non-nil, zero value otherwise.

GetEncryptionOk

func (o *Authorization) GetEncryptionOk() (*bool, bool)

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

SetEncryption

func (o *Authorization) SetEncryption(v bool)

SetEncryption sets Encryption field to given value.

GetPermissions

func (o *Authorization) GetPermissions() string

GetPermissions returns the Permissions field if non-nil, zero value otherwise.

GetPermissionsOk

func (o *Authorization) GetPermissionsOk() (*string, bool)

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

SetPermissions

func (o *Authorization) SetPermissions(v string)

SetPermissions sets Permissions field to given value.

GetAllowedIps

func (o *Authorization) GetAllowedIps() []string

GetAllowedIps returns the AllowedIps field if non-nil, zero value otherwise.

GetAllowedIpsOk

func (o *Authorization) GetAllowedIpsOk() (*[]string, bool)

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

SetAllowedIps

func (o *Authorization) SetAllowedIps(v []string)

SetAllowedIps sets AllowedIps field to given value.

HasAllowedIps

func (o *Authorization) HasAllowedIps() bool

HasAllowedIps returns a boolean if a field has been set.

GetAllowedReferers

func (o *Authorization) GetAllowedReferers() []string

GetAllowedReferers returns the AllowedReferers field if non-nil, zero value otherwise.

GetAllowedReferersOk

func (o *Authorization) GetAllowedReferersOk() (*[]string, bool)

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

SetAllowedReferers

func (o *Authorization) SetAllowedReferers(v []string)

SetAllowedReferers sets AllowedReferers field to given value.

HasAllowedReferers

func (o *Authorization) HasAllowedReferers() bool

HasAllowedReferers returns a boolean if a field has been set.

GetArns

func (o *Authorization) GetArns() []string

GetArns returns the Arns field if non-nil, zero value otherwise.

GetArnsOk

func (o *Authorization) GetArnsOk() (*[]string, bool)

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

SetArns

func (o *Authorization) SetArns(v []string)

SetArns sets Arns field to given value.

HasArns

func (o *Authorization) HasArns() bool

HasArns returns a boolean if a field has been set.

GetCeritificate

func (o *Authorization) GetCeritificate() string

GetCeritificate returns the Ceritificate field if non-nil, zero value otherwise.

GetCeritificateOk

func (o *Authorization) GetCeritificateOk() (*string, bool)

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

SetCeritificate

func (o *Authorization) SetCeritificate(v string)

SetCeritificate sets Ceritificate field to given value.

HasCeritificate

func (o *Authorization) HasCeritificate() bool

HasCeritificate returns a boolean if a field has been set.

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