Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1StringValues

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

The string values for the list constraints.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1StringValues

Returns a new instance of GoogleCloudAssetV1StringValues.



2215
2216
2217
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2215

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

Instance Attribute Details

#allowed_valuesArray<String>

List of values allowed at this resource. Corresponds to the JSON property allowedValues

Returns:

  • (Array<String>)


2208
2209
2210
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2208

def allowed_values
  @allowed_values
end

#denied_valuesArray<String>

List of values denied at this resource. Corresponds to the JSON property deniedValues

Returns:

  • (Array<String>)


2213
2214
2215
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2213

def denied_values
  @denied_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2220
2221
2222
2223
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2220

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