Class: Google::Apis::ComputeAlpha::PermissionConstraint
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PermissionConstraint
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PermissionConstraint
Returns a new instance of PermissionConstraint.
23844 23845 23846 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 23844 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Key of the constraint.
Corresponds to the JSON property key
23837 23838 23839 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 23837 def key @key end |
#values ⇒ Array<String>
A list of allowed values.
Corresponds to the JSON property values
23842 23843 23844 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 23842 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
23849 23850 23851 23852 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 23849 def update!(**args) @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) end |