class Google::Apis::CloudbillingV1::Sku

Encapsulates a single SKU in Google Cloud Platform

Attributes

category[RW]

Represents the category hierarchy of a SKU. Corresponds to the JSON property `category` @return [Google::Apis::CloudbillingV1::Category]

description[RW]

A human readable description of the SKU, has a maximum length of 256 characters. Corresponds to the JSON property `description` @return [String]

geo_taxonomy[RW]

Encapsulates the geographic taxonomy data for a sku. Corresponds to the JSON property `geoTaxonomy` @return [Google::Apis::CloudbillingV1::GeoTaxonomy]

name[RW]

The resource name for the SKU. Example: “services/DA34-426B-A397/skus/AA95- CD31-42FE” Corresponds to the JSON property `name` @return [String]

pricing_info[RW]

A timeline of pricing info for this SKU in chronological order. Corresponds to the JSON property `pricingInfo` @return [Array<Google::Apis::CloudbillingV1::PricingInfo>]

service_provider_name[RW]

Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform. Corresponds to the JSON property `serviceProviderName` @return [String]

service_regions[RW]

List of service regions this SKU is offered at. Example: “asia-east1” Service regions can be found at cloud.google.com/about/locations/ Corresponds to the JSON property `serviceRegions` @return [Array<String>]

sku_id[RW]

The identifier for the SKU. Example: “AA95-CD31-42FE” Corresponds to the JSON property `skuId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbilling_v1/classes.rb, line 917
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbilling_v1/classes.rb, line 922
def update!(**args)
  @category = args[:category] if args.key?(:category)
  @description = args[:description] if args.key?(:description)
  @geo_taxonomy = args[:geo_taxonomy] if args.key?(:geo_taxonomy)
  @name = args[:name] if args.key?(:name)
  @pricing_info = args[:pricing_info] if args.key?(:pricing_info)
  @service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name)
  @service_regions = args[:service_regions] if args.key?(:service_regions)
  @sku_id = args[:sku_id] if args.key?(:sku_id)
end