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.



2039
2040
2041
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2039

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)


2028
2029
2030
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2028

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)


2036
2037
2038
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2036

def supports_under
  @supports_under
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2044
2045
2046
2047
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2044

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