Class: Google::Apis::RedisV1beta1::AclPolicyRevision
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::AclPolicyRevision
- 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 revision resource.
Instance Attribute Summary collapse
-
#attached_clusters ⇒ Array<String>
Output only.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#revision_number ⇒ Fixnum
Output only.
-
#snapshot ⇒ Google::Apis::RedisV1beta1::AclPolicy
The ACL policy resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AclPolicyRevision
constructor
A new instance of AclPolicyRevision.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AclPolicyRevision
Returns a new instance of AclPolicyRevision.
176 177 178 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attached_clusters ⇒ Array<String>
Output only. A list of clusters that are attached to this ACL policy revision.
Corresponds to the JSON property attachedClusters
153 154 155 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 153 def attached_clusters @attached_clusters end |
#create_time ⇒ String
Output only. The timestamp that the revision was created.
Corresponds to the JSON property createTime
158 159 160 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 158 def create_time @create_time end |
#name ⇒ String
Identifier. The name of the ACL policy revision. Format: "projects/project/
locations/location/aclPolicies/acl_policy/revisions/revision"
Corresponds to the JSON property name
164 165 166 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 164 def name @name end |
#revision_number ⇒ Fixnum
Output only. The revision number of the ACL policy revision.
Corresponds to the JSON property revisionNumber
169 170 171 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 169 def revision_number @revision_number end |
#snapshot ⇒ Google::Apis::RedisV1beta1::AclPolicy
The ACL policy resource.
Corresponds to the JSON property snapshot
174 175 176 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 174 def snapshot @snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
181 182 183 184 185 186 187 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 181 def update!(**args) @attached_clusters = args[:attached_clusters] if args.key?(:attached_clusters) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @revision_number = args[:revision_number] if args.key?(:revision_number) @snapshot = args[:snapshot] if args.key?(:snapshot) end |