Name | Type | Description | Notes |
---|---|---|---|
Capability | []string | List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] | |
Json | Pointer to bool | Set output format to JSON | [optional] [default to false] |
Path | string | The path the rule refers to | |
RoleName | string | The role name to be updated | |
RuleType | Pointer to string | item-rule, target-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule, sra-rule | [optional] [default to "item-rule"] |
Token | Pointer to string | Authentication token (see `/auth` and `/configure`) | [optional] |
Ttl | Pointer to int32 | RoleRule ttl | [optional] |
UidToken | Pointer to string | The universal identity token, Required only for universal_identity authentication | [optional] |
func NewSetRoleRule(capability []string, path string, roleName string, ) *SetRoleRule
NewSetRoleRule instantiates a new SetRoleRule 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 NewSetRoleRuleWithDefaults() *SetRoleRule
NewSetRoleRuleWithDefaults instantiates a new SetRoleRule 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 *SetRoleRule) GetCapability() []string
GetCapability returns the Capability field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetCapabilityOk() (*[]string, bool)
GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetCapability(v []string)
SetCapability sets Capability field to given value.
func (o *SetRoleRule) GetJson() bool
GetJson returns the Json field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetJsonOk() (*bool, bool)
GetJsonOk returns a tuple with the Json field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetJson(v bool)
SetJson sets Json field to given value.
func (o *SetRoleRule) HasJson() bool
HasJson returns a boolean if a field has been set.
func (o *SetRoleRule) GetPath() string
GetPath returns the Path field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetPath(v string)
SetPath sets Path field to given value.
func (o *SetRoleRule) GetRoleName() string
GetRoleName returns the RoleName field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetRoleNameOk() (*string, bool)
GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetRoleName(v string)
SetRoleName sets RoleName field to given value.
func (o *SetRoleRule) GetRuleType() string
GetRuleType returns the RuleType field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetRuleTypeOk() (*string, bool)
GetRuleTypeOk returns a tuple with the RuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetRuleType(v string)
SetRuleType sets RuleType field to given value.
func (o *SetRoleRule) HasRuleType() bool
HasRuleType returns a boolean if a field has been set.
func (o *SetRoleRule) GetToken() string
GetToken returns the Token field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetTokenOk() (*string, bool)
GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetToken(v string)
SetToken sets Token field to given value.
func (o *SetRoleRule) HasToken() bool
HasToken returns a boolean if a field has been set.
func (o *SetRoleRule) GetTtl() int32
GetTtl returns the Ttl field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetTtlOk() (*int32, bool)
GetTtlOk returns a tuple with the Ttl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetTtl(v int32)
SetTtl sets Ttl field to given value.
func (o *SetRoleRule) HasTtl() bool
HasTtl returns a boolean if a field has been set.
func (o *SetRoleRule) GetUidToken() string
GetUidToken returns the UidToken field if non-nil, zero value otherwise.
func (o *SetRoleRule) GetUidTokenOk() (*string, bool)
GetUidTokenOk returns a tuple with the UidToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetRoleRule) SetUidToken(v string)
SetUidToken sets UidToken field to given value.
func (o *SetRoleRule) HasUidToken() bool
HasUidToken returns a boolean if a field has been set.