Class: Google::Apis::CloudbillingV1::GeoTaxonomy
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1::GeoTaxonomy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudbilling_v1/classes.rb,
generated/google/apis/cloudbilling_v1/representations.rb,
generated/google/apis/cloudbilling_v1/representations.rb
Overview
Encapsulates the geographic taxonomy data for a sku.
Instance Attribute Summary collapse
-
#regions ⇒ Array<String>
The list of regions associated with a sku.
-
#type ⇒ String
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GeoTaxonomy
constructor
A new instance of GeoTaxonomy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GeoTaxonomy
Returns a new instance of GeoTaxonomy.
356 357 358 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 356 def initialize(**args) update!(**args) end |
Instance Attribute Details
#regions ⇒ Array<String>
The list of regions associated with a sku. Empty for Global skus, which are
associated with all Google Cloud regions.
Corresponds to the JSON property regions
349 350 351 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 349 def regions @regions end |
#type ⇒ String
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
Corresponds to the JSON property type
354 355 356 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 354 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
361 362 363 364 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 361 def update!(**args) @regions = args[:regions] if args.key?(:regions) @type = args[:type] if args.key?(:type) end |