Class: Google::Apis::CloudbillingV1::Sku

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 a single SKU in Google Cloud Platform

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Sku

Returns a new instance of Sku.



1045
1046
1047
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1045

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoryGoogle::Apis::CloudbillingV1::Category

Represents the category hierarchy of a SKU. Corresponds to the JSON property category



1007
1008
1009
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1007

def category
  @category
end

#descriptionString

A human readable description of the SKU, has a maximum length of 256 characters. Corresponds to the JSON property description

Returns:

  • (String)


1013
1014
1015
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1013

def description
  @description
end

#nameString

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE" Corresponds to the JSON property name

Returns:

  • (String)


1019
1020
1021
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1019

def name
  @name
end

#pricing_infoArray<Google::Apis::CloudbillingV1::PricingInfo>

A timeline of pricing info for this SKU in chronological order. Corresponds to the JSON property pricingInfo



1024
1025
1026
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1024

def pricing_info
  @pricing_info
end

#service_provider_nameString

Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform. Corresponds to the JSON property serviceProviderName

Returns:

  • (String)


1030
1031
1032
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1030

def service_provider_name
  @service_provider_name
end

#service_regionsArray<String>

List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/ Corresponds to the JSON property serviceRegions

Returns:

  • (Array<String>)


1037
1038
1039
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1037

def service_regions
  @service_regions
end

#sku_idString

The identifier for the SKU. Example: "AA95-CD31-42FE" Corresponds to the JSON property skuId

Returns:

  • (String)


1043
1044
1045
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1043

def sku_id
  @sku_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1050
1051
1052
1053
1054
1055
1056
1057
1058
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 1050

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @description = args[:description] if args.key?(:description)
  @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