Class: Google::Apis::RedisV1beta1::AclPolicy
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::AclPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb
Overview
The ACL policy resource.
Instance Attribute Summary collapse
-
#etag ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#rules ⇒ Array<Google::Apis::RedisV1beta1::AclRule>
Required.
-
#state ⇒ String
Output only.
-
#version ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AclPolicy
constructor
A new instance of AclPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AclPolicy
Returns a new instance of AclPolicy.
73 74 75 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 73 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Output only. Etag for the ACL policy.
Corresponds to the JSON property etag
51 52 53 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 51 def etag @etag end |
#name ⇒ String
Identifier. Full resource path of the ACL policy.
Corresponds to the JSON property name
56 57 58 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 56 def name @name end |
#rules ⇒ Array<Google::Apis::RedisV1beta1::AclRule>
Required. The ACL rules within the ACL policy.
Corresponds to the JSON property rules
61 62 63 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 61 def rules @rules end |
#state ⇒ String
Output only. The state of the ACL policy.
Corresponds to the JSON property state
66 67 68 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 66 def state @state end |
#version ⇒ Fixnum
Output only. The version of the ACL policy. Used in drift resolution.
Corresponds to the JSON property version
71 72 73 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 71 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
78 79 80 81 82 83 84 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 78 def update!(**args) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @state = args[:state] if args.key?(:state) @version = args[:version] if args.key?(:version) end |