Class: Google::Apis::CloudbillingV1::GeoTaxonomy
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1::GeoTaxonomy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1/classes.rb,
lib/google/apis/cloudbilling_v1/representations.rb,
lib/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.
408 409 410 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 408 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
401 402 403 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 401 def regions @regions end |
#type ⇒ String
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
Corresponds to the JSON property type
406 407 408 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 406 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
413 414 415 416 |
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 413 def update!(**args) @regions = args[:regions] if args.key?(:regions) @type = args[:type] if args.key?(:type) end |