Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillableSku

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb

Overview

Represents the Billable SKU information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1BillableSku

Returns a new instance of GoogleCloudChannelV1BillableSku.



127
128
129
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 127

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

Instance Attribute Details

#serviceString

Resource name of Service which contains Repricing SKU. Format: services/ service. Example: "services/B7D9-FDCB-15D8". Corresponds to the JSON property service

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 109

def service
  @service
end

#service_display_nameString

Unique human readable name for the Service. Corresponds to the JSON property serviceDisplayName

Returns:

  • (String)


114
115
116
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 114

def service_display_name
  @service_display_name
end

#skuString

Resource name of Billable SKU. Format: billableSkus/sku. Example: billableSkus/6E1B-6634-470F". Corresponds to the JSON property sku

Returns:

  • (String)


120
121
122
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 120

def sku
  @sku
end

#sku_display_nameString

Unique human readable name for the SKU. Corresponds to the JSON property skuDisplayName

Returns:

  • (String)


125
126
127
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 125

def sku_display_name
  @sku_display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



132
133
134
135
136
137
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 132

def update!(**args)
  @service = args[:service] if args.key?(:service)
  @service_display_name = args[:service_display_name] if args.key?(:service_display_name)
  @sku = args[:sku] if args.key?(:sku)
  @sku_display_name = args[:sku_display_name] if args.key?(:sku_display_name)
end