google-cloud-channel-v1 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,25 @@ module Google
41
41
  "accounts/#{account}/channelPartnerLinks/#{channel_partner_link}"
42
42
  end
43
43
 
44
+ ##
45
+ # Create a fully-qualified ChannelPartnerRepricingConfig resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `accounts/{account}/channelPartnerLinks/{channel_partner}/channelPartnerRepricingConfigs/{channel_partner_repricing_config}`
50
+ #
51
+ # @param account [String]
52
+ # @param channel_partner [String]
53
+ # @param channel_partner_repricing_config [String]
54
+ #
55
+ # @return [::String]
56
+ def channel_partner_repricing_config_path account:, channel_partner:, channel_partner_repricing_config:
57
+ raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
58
+ raise ::ArgumentError, "channel_partner cannot contain /" if channel_partner.to_s.include? "/"
59
+
60
+ "accounts/#{account}/channelPartnerLinks/#{channel_partner}/channelPartnerRepricingConfigs/#{channel_partner_repricing_config}"
61
+ end
62
+
44
63
  ##
45
64
  # Create a fully-qualified Customer resource string.
46
65
  #
@@ -58,6 +77,25 @@ module Google
58
77
  "accounts/#{account}/customers/#{customer}"
59
78
  end
60
79
 
80
+ ##
81
+ # Create a fully-qualified CustomerRepricingConfig resource string.
82
+ #
83
+ # The resource will be in the following format:
84
+ #
85
+ # `accounts/{account}/customers/{customer}/customerRepricingConfigs/{customer_repricing_config}`
86
+ #
87
+ # @param account [String]
88
+ # @param customer [String]
89
+ # @param customer_repricing_config [String]
90
+ #
91
+ # @return [::String]
92
+ def customer_repricing_config_path account:, customer:, customer_repricing_config:
93
+ raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
94
+ raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"
95
+
96
+ "accounts/#{account}/customers/#{customer}/customerRepricingConfigs/#{customer_repricing_config}"
97
+ end
98
+
61
99
  ##
62
100
  # Create a fully-qualified Entitlement resource string.
63
101
  #
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/common.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/protobuf/any_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/channel/v1/common.proto", :syntax => :proto3) do
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/customers.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/cloud/channel/v1/common_pb'
7
9
  require 'google/protobuf/timestamp_pb'
8
10
  require 'google/type/postal_address_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/channel/v1/customers.proto", :syntax => :proto3) do
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/entitlements.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/cloud/channel/v1/common_pb'
7
9
  require 'google/cloud/channel/v1/offers_pb'
8
10
  require 'google/cloud/channel/v1/products_pb'
9
11
  require 'google/protobuf/timestamp_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/channel/v1/entitlements.proto", :syntax => :proto3) do
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/offers.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/cloud/channel/v1/common_pb'
7
9
  require 'google/cloud/channel/v1/products_pb'
8
10
  require 'google/protobuf/timestamp_pb'
9
11
  require 'google/type/money_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/channel/v1/offers.proto", :syntax => :proto3) do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/products.proto
3
3
 
4
- require 'google/api/resource_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/api/resource_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/cloud/channel/v1/products.proto", :syntax => :proto3) do
9
10
  add_message "google.cloud.channel.v1.Product" do
@@ -0,0 +1,69 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/repricing.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ require 'google/type/date_pb'
10
+ require 'google/type/decimal_pb'
11
+
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/cloud/channel/v1/repricing.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.channel.v1.CustomerRepricingConfig" do
15
+ optional :name, :string, 1
16
+ optional :repricing_config, :message, 2, "google.cloud.channel.v1.RepricingConfig"
17
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
18
+ end
19
+ add_message "google.cloud.channel.v1.ChannelPartnerRepricingConfig" do
20
+ optional :name, :string, 1
21
+ optional :repricing_config, :message, 2, "google.cloud.channel.v1.RepricingConfig"
22
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
23
+ end
24
+ add_message "google.cloud.channel.v1.RepricingConfig" do
25
+ optional :effective_invoice_month, :message, 1, "google.type.Date"
26
+ optional :adjustment, :message, 2, "google.cloud.channel.v1.RepricingAdjustment"
27
+ optional :rebilling_basis, :enum, 3, "google.cloud.channel.v1.RebillingBasis"
28
+ oneof :granularity do
29
+ optional :entitlement_granularity, :message, 4, "google.cloud.channel.v1.RepricingConfig.EntitlementGranularity"
30
+ optional :channel_partner_granularity, :message, 5, "google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity"
31
+ end
32
+ end
33
+ add_message "google.cloud.channel.v1.RepricingConfig.EntitlementGranularity" do
34
+ optional :entitlement, :string, 1
35
+ end
36
+ add_message "google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity" do
37
+ end
38
+ add_message "google.cloud.channel.v1.RepricingAdjustment" do
39
+ oneof :adjustment do
40
+ optional :percentage_adjustment, :message, 2, "google.cloud.channel.v1.PercentageAdjustment"
41
+ end
42
+ end
43
+ add_message "google.cloud.channel.v1.PercentageAdjustment" do
44
+ optional :percentage, :message, 2, "google.type.Decimal"
45
+ end
46
+ add_enum "google.cloud.channel.v1.RebillingBasis" do
47
+ value :REBILLING_BASIS_UNSPECIFIED, 0
48
+ value :COST_AT_LIST, 1
49
+ value :DIRECT_CUSTOMER_COST, 2
50
+ end
51
+ end
52
+ end
53
+
54
+ module Google
55
+ module Cloud
56
+ module Channel
57
+ module V1
58
+ CustomerRepricingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CustomerRepricingConfig").msgclass
59
+ ChannelPartnerRepricingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ChannelPartnerRepricingConfig").msgclass
60
+ RepricingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingConfig").msgclass
61
+ RepricingConfig::EntitlementGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingConfig.EntitlementGranularity").msgclass
62
+ RepricingConfig::ChannelPartnerGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity").msgclass
63
+ RepricingAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingAdjustment").msgclass
64
+ PercentageAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PercentageAdjustment").msgclass
65
+ RebillingBasis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RebillingBasis").enummodule
66
+ end
67
+ end
68
+ end
69
+ end
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -11,10 +13,10 @@ require 'google/cloud/channel/v1/customers_pb'
11
13
  require 'google/cloud/channel/v1/entitlements_pb'
12
14
  require 'google/cloud/channel/v1/offers_pb'
13
15
  require 'google/cloud/channel/v1/products_pb'
16
+ require 'google/cloud/channel/v1/repricing_pb'
14
17
  require 'google/longrunning/operations_pb'
15
18
  require 'google/protobuf/empty_pb'
16
19
  require 'google/protobuf/field_mask_pb'
17
- require 'google/protobuf'
18
20
 
19
21
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
22
  add_file("google/cloud/channel/v1/service.proto", :syntax => :proto3) do
@@ -140,6 +142,52 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
140
142
  optional :channel_partner_link, :message, 2, "google.cloud.channel.v1.ChannelPartnerLink"
141
143
  optional :update_mask, :message, 3, "google.protobuf.FieldMask"
142
144
  end
145
+ add_message "google.cloud.channel.v1.GetCustomerRepricingConfigRequest" do
146
+ optional :name, :string, 1
147
+ end
148
+ add_message "google.cloud.channel.v1.ListCustomerRepricingConfigsRequest" do
149
+ optional :parent, :string, 1
150
+ optional :page_size, :int32, 2
151
+ optional :page_token, :string, 3
152
+ optional :filter, :string, 4
153
+ end
154
+ add_message "google.cloud.channel.v1.ListCustomerRepricingConfigsResponse" do
155
+ repeated :customer_repricing_configs, :message, 1, "google.cloud.channel.v1.CustomerRepricingConfig"
156
+ optional :next_page_token, :string, 2
157
+ end
158
+ add_message "google.cloud.channel.v1.CreateCustomerRepricingConfigRequest" do
159
+ optional :parent, :string, 1
160
+ optional :customer_repricing_config, :message, 2, "google.cloud.channel.v1.CustomerRepricingConfig"
161
+ end
162
+ add_message "google.cloud.channel.v1.UpdateCustomerRepricingConfigRequest" do
163
+ optional :customer_repricing_config, :message, 1, "google.cloud.channel.v1.CustomerRepricingConfig"
164
+ end
165
+ add_message "google.cloud.channel.v1.DeleteCustomerRepricingConfigRequest" do
166
+ optional :name, :string, 1
167
+ end
168
+ add_message "google.cloud.channel.v1.GetChannelPartnerRepricingConfigRequest" do
169
+ optional :name, :string, 1
170
+ end
171
+ add_message "google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest" do
172
+ optional :parent, :string, 1
173
+ optional :page_size, :int32, 2
174
+ optional :page_token, :string, 3
175
+ optional :filter, :string, 4
176
+ end
177
+ add_message "google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse" do
178
+ repeated :channel_partner_repricing_configs, :message, 1, "google.cloud.channel.v1.ChannelPartnerRepricingConfig"
179
+ optional :next_page_token, :string, 2
180
+ end
181
+ add_message "google.cloud.channel.v1.CreateChannelPartnerRepricingConfigRequest" do
182
+ optional :parent, :string, 1
183
+ optional :channel_partner_repricing_config, :message, 2, "google.cloud.channel.v1.ChannelPartnerRepricingConfig"
184
+ end
185
+ add_message "google.cloud.channel.v1.UpdateChannelPartnerRepricingConfigRequest" do
186
+ optional :channel_partner_repricing_config, :message, 1, "google.cloud.channel.v1.ChannelPartnerRepricingConfig"
187
+ end
188
+ add_message "google.cloud.channel.v1.DeleteChannelPartnerRepricingConfigRequest" do
189
+ optional :name, :string, 1
190
+ end
143
191
  add_message "google.cloud.channel.v1.CreateEntitlementRequest" do
144
192
  optional :parent, :string, 1
145
193
  optional :entitlement, :message, 2, "google.cloud.channel.v1.Entitlement"
@@ -336,6 +384,18 @@ module Google
336
384
  GetChannelPartnerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.GetChannelPartnerLinkRequest").msgclass
337
385
  CreateChannelPartnerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateChannelPartnerLinkRequest").msgclass
338
386
  UpdateChannelPartnerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.UpdateChannelPartnerLinkRequest").msgclass
387
+ GetCustomerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.GetCustomerRepricingConfigRequest").msgclass
388
+ ListCustomerRepricingConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListCustomerRepricingConfigsRequest").msgclass
389
+ ListCustomerRepricingConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListCustomerRepricingConfigsResponse").msgclass
390
+ CreateCustomerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateCustomerRepricingConfigRequest").msgclass
391
+ UpdateCustomerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.UpdateCustomerRepricingConfigRequest").msgclass
392
+ DeleteCustomerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.DeleteCustomerRepricingConfigRequest").msgclass
393
+ GetChannelPartnerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.GetChannelPartnerRepricingConfigRequest").msgclass
394
+ ListChannelPartnerRepricingConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest").msgclass
395
+ ListChannelPartnerRepricingConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse").msgclass
396
+ CreateChannelPartnerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateChannelPartnerRepricingConfigRequest").msgclass
397
+ UpdateChannelPartnerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.UpdateChannelPartnerRepricingConfigRequest").msgclass
398
+ DeleteChannelPartnerRepricingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.DeleteChannelPartnerRepricingConfigRequest").msgclass
339
399
  CreateEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateEntitlementRequest").msgclass
340
400
  TransferEntitlementsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEntitlementsRequest").msgclass
341
401
  TransferEntitlementsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEntitlementsResponse").msgclass
@@ -568,6 +568,244 @@ module Google
568
568
  # Return value:
569
569
  # The updated [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
570
570
  rpc :UpdateChannelPartnerLink, ::Google::Cloud::Channel::V1::UpdateChannelPartnerLinkRequest, ::Google::Cloud::Channel::V1::ChannelPartnerLink
571
+ # Gets information about how a Reseller modifies their bill before sending
572
+ # it to a Customer.
573
+ #
574
+ # Possible Error Codes:
575
+ #
576
+ # * PERMISSION_DENIED: If the account making the request and the account
577
+ # being queried are different.
578
+ # * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] was not found.
579
+ # * INTERNAL: Any non-user error related to technical issues in the
580
+ # backend. In this case, contact Cloud Channel support.
581
+ #
582
+ # Return Value:
583
+ # If successful, the [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise returns
584
+ # an error.
585
+ rpc :GetCustomerRepricingConfig, ::Google::Cloud::Channel::V1::GetCustomerRepricingConfigRequest, ::Google::Cloud::Channel::V1::CustomerRepricingConfig
586
+ # Lists information about how a Reseller modifies their bill before sending
587
+ # it to a Customer.
588
+ #
589
+ # Possible Error Codes:
590
+ #
591
+ # * PERMISSION_DENIED: If the account making the request and the account
592
+ # being queried are different.
593
+ # * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is
594
+ # not associated with the given account.
595
+ # * INTERNAL: Any non-user error related to technical issues in the
596
+ # backend. In this case, contact Cloud Channel support.
597
+ #
598
+ # Return Value:
599
+ # If successful, the [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resources. The
600
+ # data for each resource is displayed in the ascending order of:
601
+ # * customer ID
602
+ # * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
603
+ # * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
604
+ # * [CustomerRepricingConfig.update_time][google.cloud.channel.v1.CustomerRepricingConfig.update_time]
605
+ #
606
+ # If unsuccessful, returns an error.
607
+ rpc :ListCustomerRepricingConfigs, ::Google::Cloud::Channel::V1::ListCustomerRepricingConfigsRequest, ::Google::Cloud::Channel::V1::ListCustomerRepricingConfigsResponse
608
+ # Creates a CustomerRepricingConfig. Call this method to set modifications
609
+ # for a specific customer's bill. You can only create configs if the
610
+ # [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a
611
+ # future month. If needed, you can create a config for the current month,
612
+ # with some restrictions.
613
+ #
614
+ # When creating a config for a future month, make sure there are no existing
615
+ # configs for that
616
+ # [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
617
+ #
618
+ # The following restrictions are for creating configs in the current month.
619
+ #
620
+ # * This functionality is reserved for recovering from an erroneous config,
621
+ # and should not be used for regular business cases.
622
+ # * The new config will not modify exports used with other configs.
623
+ # Changes to the config may be immediate, but may take up to 24 hours.
624
+ # * There is a limit of ten configs for any
625
+ # [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]
626
+ # or [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
627
+ # * The contained [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config] vaule must be
628
+ # different from the value used in the current config for a
629
+ # [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].
630
+ #
631
+ # Possible Error Codes:
632
+ #
633
+ # * PERMISSION_DENIED: If the account making the request and the account
634
+ # being queried are different.
635
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
636
+ # request. Also displays if the updated config is for the current month or
637
+ # past months.
638
+ # * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is
639
+ # not associated with the given account.
640
+ # * INTERNAL: Any non-user error related to technical issues in the
641
+ # backend. In this case, contact Cloud Channel support.
642
+ #
643
+ # Return Value:
644
+ # If successful, the updated [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise
645
+ # returns an error.
646
+ rpc :CreateCustomerRepricingConfig, ::Google::Cloud::Channel::V1::CreateCustomerRepricingConfigRequest, ::Google::Cloud::Channel::V1::CustomerRepricingConfig
647
+ # Updates a CustomerRepricingConfig. Call this method to set modifications
648
+ # for a specific customer's bill. This method overwrites the existing
649
+ # CustomerRepricingConfig.
650
+ #
651
+ # You can only update configs if the
652
+ # [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a
653
+ # future month. To make changes to configs for the current month, use
654
+ # [CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig], taking note of its restrictions. You
655
+ # cannot update the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
656
+ #
657
+ # When updating a config in the future:
658
+ #
659
+ # * This config must already exist.
660
+ #
661
+ # Possible Error Codes:
662
+ #
663
+ # * PERMISSION_DENIED: If the account making the request and the account
664
+ # being queried are different.
665
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
666
+ # request. Also displays if the updated config is for the current month or
667
+ # past months.
668
+ # * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is
669
+ # not associated with the given account.
670
+ # * INTERNAL: Any non-user error related to technical issues in the
671
+ # backend. In this case, contact Cloud Channel support.
672
+ #
673
+ # Return Value:
674
+ # If successful, the updated [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise
675
+ # returns an error.
676
+ rpc :UpdateCustomerRepricingConfig, ::Google::Cloud::Channel::V1::UpdateCustomerRepricingConfigRequest, ::Google::Cloud::Channel::V1::CustomerRepricingConfig
677
+ # Deletes the given [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] permanently. You can only
678
+ # delete configs if their [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is set
679
+ # to a date after the current month.
680
+ #
681
+ # Possible error codes:
682
+ #
683
+ # * PERMISSION_DENIED: The account making the request does not own
684
+ # this customer.
685
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
686
+ # * FAILED_PRECONDITION: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] is active or in the
687
+ # past.
688
+ # * NOT_FOUND: No [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] found for the name in the
689
+ # request.
690
+ rpc :DeleteCustomerRepricingConfig, ::Google::Cloud::Channel::V1::DeleteCustomerRepricingConfigRequest, ::Google::Protobuf::Empty
691
+ # Gets information about how a Distributor modifies their bill before sending
692
+ # it to a ChannelPartner.
693
+ #
694
+ # Possible Error Codes:
695
+ #
696
+ # * PERMISSION_DENIED: If the account making the request and the account
697
+ # being queried are different.
698
+ # * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] was not found.
699
+ # * INTERNAL: Any non-user error related to technical issues in the
700
+ # backend. In this case, contact Cloud Channel support.
701
+ #
702
+ # Return Value:
703
+ # If successful, the [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, otherwise
704
+ # returns an error.
705
+ rpc :GetChannelPartnerRepricingConfig, ::Google::Cloud::Channel::V1::GetChannelPartnerRepricingConfigRequest, ::Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig
706
+ # Lists information about how a Reseller modifies their bill before sending
707
+ # it to a ChannelPartner.
708
+ #
709
+ # Possible Error Codes:
710
+ #
711
+ # * PERMISSION_DENIED: If the account making the request and the account
712
+ # being queried are different.
713
+ # * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist
714
+ # or is not associated with the given account.
715
+ # * INTERNAL: Any non-user error related to technical issues in the
716
+ # backend. In this case, contact Cloud Channel support.
717
+ #
718
+ # Return Value:
719
+ # If successful, the [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resources.
720
+ # The data for each resource is displayed in the ascending order of:
721
+ # * channel partner ID
722
+ # * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]
723
+ # * [ChannelPartnerRepricingConfig.update_time][google.cloud.channel.v1.ChannelPartnerRepricingConfig.update_time]
724
+ #
725
+ # If unsuccessful, returns an error.
726
+ rpc :ListChannelPartnerRepricingConfigs, ::Google::Cloud::Channel::V1::ListChannelPartnerRepricingConfigsRequest, ::Google::Cloud::Channel::V1::ListChannelPartnerRepricingConfigsResponse
727
+ # Creates a ChannelPartnerRepricingConfig. Call this method to set
728
+ # modifications for a specific ChannelPartner's bill. You can only create
729
+ # configs if the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a future
730
+ # month. If needed, you can create a config for the current month, with some
731
+ # restrictions.
732
+ #
733
+ # When creating a config for a future month, make sure there are no existing
734
+ # configs for that
735
+ # [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
736
+ #
737
+ # The following restrictions are for creating configs in the current month.
738
+ #
739
+ # * This functionality is reserved for recovering from an erroneous config,
740
+ # and should not be used for regular business cases.
741
+ # * The new config will not modify exports used with other configs.
742
+ # Changes to the config may be immediate, but may take up to 24 hours.
743
+ # * There is a limit of ten configs for any ChannelPartner or
744
+ # [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
745
+ # * The contained [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config] vaule
746
+ # must be different from the value used in the current config for a
747
+ # ChannelPartner.
748
+ #
749
+ # Possible Error Codes:
750
+ #
751
+ # * PERMISSION_DENIED: If the account making the request and the account
752
+ # being queried are different.
753
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
754
+ # request. Also displays if the updated config is for the current month or
755
+ # past months.
756
+ # * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist
757
+ # or is not associated with the given account.
758
+ # * INTERNAL: Any non-user error related to technical issues in the
759
+ # backend. In this case, contact Cloud Channel support.
760
+ #
761
+ # Return Value:
762
+ # If successful, the updated [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource,
763
+ # otherwise returns an error.
764
+ rpc :CreateChannelPartnerRepricingConfig, ::Google::Cloud::Channel::V1::CreateChannelPartnerRepricingConfigRequest, ::Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig
765
+ # Updates a ChannelPartnerRepricingConfig. Call this method to set
766
+ # modifications for a specific ChannelPartner's bill. This method overwrites
767
+ # the existing CustomerRepricingConfig.
768
+ #
769
+ # You can only update configs if the
770
+ # [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a
771
+ # future month. To make changes to configs for the current month, use
772
+ # [CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig], taking note of its restrictions.
773
+ # You cannot update the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].
774
+ #
775
+ # When updating a config in the future:
776
+ #
777
+ # * This config must already exist.
778
+ #
779
+ # Possible Error Codes:
780
+ #
781
+ # * PERMISSION_DENIED: If the account making the request and the account
782
+ # being queried are different.
783
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
784
+ # request. Also displays if the updated config is for the current month or
785
+ # past months.
786
+ # * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist
787
+ # or is not associated with the given account.
788
+ # * INTERNAL: Any non-user error related to technical issues in the
789
+ # backend. In this case, contact Cloud Channel support.
790
+ #
791
+ # Return Value:
792
+ # If successful, the updated [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource,
793
+ # otherwise returns an error.
794
+ rpc :UpdateChannelPartnerRepricingConfig, ::Google::Cloud::Channel::V1::UpdateChannelPartnerRepricingConfigRequest, ::Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig
795
+ # Deletes the given [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] permanently. You can
796
+ # only delete configs if their [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is
797
+ # set to a date after the current month.
798
+ #
799
+ # Possible error codes:
800
+ #
801
+ # * PERMISSION_DENIED: The account making the request does not own
802
+ # this customer.
803
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
804
+ # * FAILED_PRECONDITION: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] is active or
805
+ # in the past.
806
+ # * NOT_FOUND: No [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] found for the name in the
807
+ # request.
808
+ rpc :DeleteChannelPartnerRepricingConfig, ::Google::Cloud::Channel::V1::DeleteChannelPartnerRepricingConfigRequest, ::Google::Protobuf::Empty
571
809
  # Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
572
810
  #
573
811
  # Possible error codes:
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/channel/v1/subscriber_event.proto
3
3
 
4
- require 'google/api/resource_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/api/resource_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/cloud/channel/v1/subscriber_event.proto", :syntax => :proto3) do
9
10
  add_message "google.cloud.channel.v1.CustomerEvent" do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Channel
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end