Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1ListConstraint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_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) ⇒ GoogleCloudAssetV1ListConstraint

Returns a new instance of GoogleCloudAssetV1ListConstraint.



2020
2021
2022
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2020

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

Instance Attribute Details

#supports_inBoolean Also known as: supports_in?

Indicates whether values grouped into categories can be used in Policy. allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group. Corresponds to the JSON property supportsIn

Returns:

  • (Boolean)


2009
2010
2011
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2009

def supports_in
  @supports_in
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)


2017
2018
2019
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2017

def supports_under
  @supports_under
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2025
2026
2027
2028
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2025

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