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.



2202
2203
2204
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2202

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>)


2195
2196
2197
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2195

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>)


2200
2201
2202
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2200

def denied_values
  @denied_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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