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

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

Instance Method Summary collapse

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

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


401
402
403
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 401

def regions
  @regions
end

#typeString

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

Returns:

  • (String)


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