Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig

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

Configuration for how a reseller will reprice a Customer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1CustomerRepricingConfig

Returns a new instance of GoogleCloudChannelV1CustomerRepricingConfig.



1024
1025
1026
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1024

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

Instance Attribute Details

#nameString

Output only. Resource name of the CustomerRepricingConfig. Format: accounts/ account_id/customers/customer_id/customerRepricingConfigs/id. Corresponds to the JSON property name

Returns:

  • (String)


1010
1011
1012
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1010

def name
  @name
end

#repricing_configGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig

Configuration for repricing a Google bill over a period of time. Corresponds to the JSON property repricingConfig



1015
1016
1017
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1015

def repricing_config
  @repricing_config
end

#update_timeString

Output only. Timestamp of an update to the repricing rule. If update_time is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month. Corresponds to the JSON property updateTime

Returns:

  • (String)


1022
1023
1024
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1022

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1029
1030
1031
1032
1033
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1029

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @repricing_config = args[:repricing_config] if args.key?(:repricing_config)
  @update_time = args[:update_time] if args.key?(:update_time)
end