Class: Google::Apis::RedisV1beta1::AclPolicyRevision

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_clustersArray<String>

Output only. A list of clusters that are attached to this ACL policy revision. Corresponds to the JSON property attachedClusters

Returns:

  • (Array<String>)


153
154
155
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 153

def attached_clusters
  @attached_clusters
end

#create_timeString

Output only. The timestamp that the revision was created. Corresponds to the JSON property createTime

Returns:

  • (String)


158
159
160
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 158

def create_time
  @create_time
end

#nameString

Identifier. The name of the ACL policy revision. Format: "projects/project/ locations/location/aclPolicies/acl_policy/revisions/revision" Corresponds to the JSON property name

Returns:

  • (String)


164
165
166
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 164

def name
  @name
end

#revision_numberFixnum

Output only. The revision number of the ACL policy revision. Corresponds to the JSON property revisionNumber

Returns:

  • (Fixnum)


169
170
171
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 169

def revision_number
  @revision_number
end

#snapshotGoogle::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