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.



73
74
75
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 73

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

Instance Attribute Details

#etagString

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

Returns:

  • (String)


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

def etag
  @etag
end

#nameString

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

Returns:

  • (String)


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

def name
  @name
end

#rulesArray<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

#stateString

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

Returns:

  • (String)


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

def state
  @state
end

#versionFixnum

Output only. The version of the ACL policy. Used in drift resolution. Corresponds to the JSON property version

Returns:

  • (Fixnum)


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