Class: Google::Apis::CloudbillingV1::Sku
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudbillingV1::Sku
 
- 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
- 
  
    
      #category  ⇒ Google::Apis::CloudbillingV1::Category 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents the category hierarchy of a SKU. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A human readable description of the SKU, has a maximum length of 256 characters. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The resource name for the SKU. 
- 
  
    
      #pricing_info  ⇒ Array<Google::Apis::CloudbillingV1::PricingInfo> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A timeline of pricing info for this SKU in chronological order. 
- 
  
    
      #service_provider_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies the service provider. 
- 
  
    
      #service_regions  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    List of service regions this SKU is offered at. 
- 
  
    
      #sku_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The identifier for the SKU. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Sku 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Sku. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Sku
Returns a new instance of Sku
| 843 844 845 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 843 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#category ⇒ Google::Apis::CloudbillingV1::Category
Represents the category hierarchy of a SKU.
Corresponds to the JSON property category
| 805 806 807 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 805 def category @category end | 
#description ⇒ String
A human readable description of the SKU, has a maximum length of 256
characters.
Corresponds to the JSON property description
| 811 812 813 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 811 def description @description end | 
#name ⇒ String
The resource name for the SKU.
Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
Corresponds to the JSON property name
| 817 818 819 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 817 def name @name end | 
#pricing_info ⇒ Array<Google::Apis::CloudbillingV1::PricingInfo>
A timeline of pricing info for this SKU in chronological order.
Corresponds to the JSON property pricingInfo
| 822 823 824 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 822 def pricing_info @pricing_info end | 
#service_provider_name ⇒ String
Identifies the service provider.
This is 'Google' for first party services in Google Cloud Platform.
Corresponds to the JSON property serviceProviderName
| 828 829 830 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 828 def service_provider_name @service_provider_name end | 
#service_regions ⇒ Array<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
| 835 836 837 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 835 def service_regions @service_regions end | 
#sku_id ⇒ String
The identifier for the SKU.
Example: "AA95-CD31-42FE"
Corresponds to the JSON property skuId
| 841 842 843 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 841 def sku_id @sku_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 848 849 850 851 852 853 854 855 856 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 848 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 |