Class: Google::Apis::ComputeAlpha::PermissionConstraint
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PermissionConstraint
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Custom constraint that specifies a key and a list of allowed values for Istio attributes.
Instance Attribute Summary collapse
-
#key ⇒ String
Key of the constraint.
-
#values ⇒ Array<String>
A list of allowed values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PermissionConstraint
constructor
A new instance of PermissionConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PermissionConstraint
Returns a new instance of PermissionConstraint.
29247 29248 29249 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 29247 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Key of the constraint.
Corresponds to the JSON property key
29240 29241 29242 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 29240 def key @key end |
#values ⇒ Array<String>
A list of allowed values.
Corresponds to the JSON property values
29245 29246 29247 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 29245 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29252 29253 29254 29255 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 29252 def update!(**args) @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) end |