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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudresourcemanager_v1/classes.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb,
generated/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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListConstraint

Returns a new instance of ListConstraint



674
675
676
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 674

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)


672
673
674
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 672

def suggested_value
  @suggested_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



679
680
681
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 679

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