Class: Google::Apis::CloudresourcemanagerV1::ListConstraint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudresourcemanager_v1/classes.rb,
lib/google/apis/cloudresourcemanager_v1/representations.rb,
lib/google/apis/cloudresourcemanager_v1/representations.rb

Overview

A Constraint that allows or disallows a list of string values, which are configured by an Organization's policy administrator with a Policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListConstraint

Returns a new instance of ListConstraint.



1014
1015
1016
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1014

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

Instance Attribute Details

#suggested_valueString

Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this Constraint. Corresponds to the JSON property suggestedValue

Returns:

  • (String)


1004
1005
1006
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1004

def suggested_value
  @suggested_value
end

#supports_underBoolean Also known as: supports_under?

Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, " under:folders/123" would match any resource under the 'folders/123' folder. Corresponds to the JSON property supportsUnder

Returns:

  • (Boolean)


1011
1012
1013
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1011

def supports_under
  @supports_under
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1019
1020
1021
1022
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1019

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