Class: Google::Apis::RedisV1beta1::AclPolicy

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 resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AclPolicy

Returns a new instance of AclPolicy.



88
89
90
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 88

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_acl_policy_attachmentsArray<Google::Apis::RedisV1beta1::ClusterAclPolicyAttachment>

Output only. The ACL policy attachment status for each attached cluster. Corresponds to the JSON property clusterAclPolicyAttachments



51
52
53
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 51

def cluster_acl_policy_attachments
  @cluster_acl_policy_attachments
end

#create_timeString

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

Returns:

  • (String)


56
57
58
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 56

def create_time
  @create_time
end

#etagString

Output only. Etag for the ACL policy. Corresponds to the JSON property etag

Returns:

  • (String)


61
62
63
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 61

def etag
  @etag
end

#nameString

Identifier. Full resource path of the ACL policy. Corresponds to the JSON property name

Returns:

  • (String)


66
67
68
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 66

def name
  @name
end

#rulesArray<Google::Apis::RedisV1beta1::AclRule>

Required. The ACL rules within the ACL policy. Corresponds to the JSON property rules



71
72
73
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 71

def rules
  @rules
end

#stateString

Output only. The state of the ACL policy. Corresponds to the JSON property state

Returns:

  • (String)


76
77
78
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 76

def state
  @state
end

#update_timeString

Output only. The timestamp that the ACL policy was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 81

def update_time
  @update_time
end

#versionFixnum

Output only. Deprecated: Used in drift resolution. Corresponds to the JSON property version

Returns:

  • (Fixnum)


86
87
88
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 86

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



93
94
95
96
97
98
99
100
101
102
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 93

def update!(**args)
  @cluster_acl_policy_attachments = args[:cluster_acl_policy_attachments] if args.key?(:cluster_acl_policy_attachments)
  @create_time = args[:create_time] if args.key?(:create_time)
  @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)
  @update_time = args[:update_time] if args.key?(:update_time)
  @version = args[:version] if args.key?(:version)
end