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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PermissionConstraint

Returns a new instance of PermissionConstraint



23618
23619
23620
# File 'generated/google/apis/compute_alpha/classes.rb', line 23618

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

Instance Attribute Details

#keyString

Key of the constraint. Corresponds to the JSON property key

Returns:

  • (String)


23611
23612
23613
# File 'generated/google/apis/compute_alpha/classes.rb', line 23611

def key
  @key
end

#valuesArray<String>

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

Returns:

  • (Array<String>)


23616
23617
23618
# File 'generated/google/apis/compute_alpha/classes.rb', line 23616

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23623
23624
23625
23626
# File 'generated/google/apis/compute_alpha/classes.rb', line 23623

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