Class: Google::Apis::ComputeAlpha::PermissionConstraint

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PermissionConstraint

Returns a new instance of PermissionConstraint.



33468
33469
33470
# File 'lib/google/apis/compute_alpha/classes.rb', line 33468

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

Instance Attribute Details

#keyString

Key of the constraint. Corresponds to the JSON property key

Returns:

  • (String)


33461
33462
33463
# File 'lib/google/apis/compute_alpha/classes.rb', line 33461

def key
  @key
end

#valuesArray<String>

A list of allowed values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


33466
33467
33468
# File 'lib/google/apis/compute_alpha/classes.rb', line 33466

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33473
33474
33475
33476
# File 'lib/google/apis/compute_alpha/classes.rb', line 33473

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @values = args[:values] if args.key?(:values)
end