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] |
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
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
func (o *Authorization) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetId(v int32)
SetId sets Id field to given value.
func (o *Authorization) GetSystem() string
GetSystem returns the System field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetSystem(v string)
SetSystem sets System field to given value.
func (o *Authorization) GetEnvironment() string
GetEnvironment returns the Environment field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetEnvironment(v string)
SetEnvironment sets Environment field to given value.
func (o *Authorization) GetExpiration() time.Time
GetExpiration returns the Expiration field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetExpiration(v time.Time)
SetExpiration sets Expiration field to given value.
func (o *Authorization) HasExpiration() bool
HasExpiration returns a boolean if a field has been set.
func (o *Authorization) GetEncryption() bool
GetEncryption returns the Encryption field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetEncryption(v bool)
SetEncryption sets Encryption field to given value.
func (o *Authorization) GetPermissions() string
GetPermissions returns the Permissions field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetPermissions(v string)
SetPermissions sets Permissions field to given value.
func (o *Authorization) GetAllowedIps() []string
GetAllowedIps returns the AllowedIps field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetAllowedIps(v []string)
SetAllowedIps sets AllowedIps field to given value.
func (o *Authorization) HasAllowedIps() bool
HasAllowedIps returns a boolean if a field has been set.
func (o *Authorization) GetAllowedReferers() []string
GetAllowedReferers returns the AllowedReferers field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetAllowedReferers(v []string)
SetAllowedReferers sets AllowedReferers field to given value.
func (o *Authorization) HasAllowedReferers() bool
HasAllowedReferers returns a boolean if a field has been set.
func (o *Authorization) GetArns() []string
GetArns returns the Arns field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetArns(v []string)
SetArns sets Arns field to given value.
func (o *Authorization) HasArns() bool
HasArns returns a boolean if a field has been set.
func (o *Authorization) GetCeritificate() string
GetCeritificate returns the Ceritificate field if non-nil, zero value otherwise.
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.
func (o *Authorization) SetCeritificate(v string)
SetCeritificate sets Ceritificate field to given value.
func (o *Authorization) HasCeritificate() bool
HasCeritificate returns a boolean if a field has been set.