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.



2052
2053
2054
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2052

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)


2041
2042
2043
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2041

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)


2049
2050
2051
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2049

def supports_under
  @supports_under
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2057
2058
2059
2060
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2057

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