Class: Google::Apis::CloudbillingV1::GeoTaxonomy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#regionsArray<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

Returns:

  • (Array<String>)


349
350
351
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 349

def regions
  @regions
end

#typeString

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL. Corresponds to the JSON property type

Returns:

  • (String)


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