google-cloud-channel-v1 0.14.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +38 -36
  4. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +12 -14
  5. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +583 -0
  6. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +793 -0
  7. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +227 -0
  8. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest.rb +56 -0
  9. data/lib/google/cloud/channel/v1/cloud_channel_reports_service.rb +7 -1
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +389 -327
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +12 -14
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +4784 -0
  13. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +793 -0
  14. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +2771 -0
  15. data/lib/google/cloud/channel/v1/cloud_channel_service/rest.rb +72 -0
  16. data/lib/google/cloud/channel/v1/cloud_channel_service.rb +15 -8
  17. data/lib/google/cloud/channel/v1/reports_service_services_pb.rb +4 -2
  18. data/lib/google/cloud/channel/v1/repricing_pb.rb +17 -0
  19. data/lib/google/cloud/channel/v1/rest.rb +38 -0
  20. data/lib/google/cloud/channel/v1/service_services_pb.rb +155 -102
  21. data/lib/google/cloud/channel/v1/version.rb +1 -1
  22. data/lib/google/cloud/channel/v1.rb +7 -2
  23. data/proto_docs/google/api/client.rb +318 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/cloud/channel/v1/channel_partner_links.rb +5 -3
  26. data/proto_docs/google/cloud/channel/v1/entitlements.rb +21 -16
  27. data/proto_docs/google/cloud/channel/v1/offers.rb +2 -2
  28. data/proto_docs/google/cloud/channel/v1/operations.rb +2 -1
  29. data/proto_docs/google/cloud/channel/v1/reports_service.rb +49 -34
  30. data/proto_docs/google/cloud/channel/v1/repricing.rb +63 -14
  31. data/proto_docs/google/cloud/channel/v1/service.rb +241 -159
  32. data/proto_docs/google/rpc/status.rb +4 -2
  33. metadata +21 -8
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/channel/v1/version"
24
+
25
+ require "google/cloud/channel/v1/cloud_channel_service/credentials"
26
+ require "google/cloud/channel/v1/cloud_channel_service/paths"
27
+ require "google/cloud/channel/v1/cloud_channel_service/rest/operations"
28
+ require "google/cloud/channel/v1/cloud_channel_service/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Channel
33
+ module V1
34
+ ##
35
+ # CloudChannelService lets Google cloud resellers and distributors manage
36
+ # their customers, channel partners, entitlements, and reports.
37
+ #
38
+ # Using this service:
39
+ # 1. Resellers and distributors can manage a customer entity.
40
+ # 2. Distributors can register an authorized reseller in their channel and
41
+ # provide them with delegated admin access.
42
+ # 3. Resellers and distributors can manage customer entitlements.
43
+ #
44
+ # CloudChannelService exposes the following resources:
45
+ # - {::Google::Cloud::Channel::V1::Customer Customer}s: An entity-usually an
46
+ # enterprise-managed by a reseller or distributor.
47
+ #
48
+ # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An entity that
49
+ # provides a customer with the means to use a service. Entitlements are created
50
+ # or updated as a result of a successful fulfillment.
51
+ #
52
+ # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: An
53
+ # entity that identifies links between distributors and their indirect
54
+ # resellers in a channel.
55
+ #
56
+ # To load this service and instantiate a REST client:
57
+ #
58
+ # require "google/cloud/channel/v1/cloud_channel_service/rest"
59
+ # client = ::Google::Cloud::Channel::V1::CloudChannelService::Rest::Client.new
60
+ #
61
+ module CloudChannelService
62
+ # Client for the REST transport
63
+ module Rest
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+
71
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
72
+ require "google/cloud/channel/v1/cloud_channel_service/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/channel/v1/cloud_channel_service/credentials"
26
26
  require "google/cloud/channel/v1/cloud_channel_service/paths"
27
27
  require "google/cloud/channel/v1/cloud_channel_service/operations"
28
28
  require "google/cloud/channel/v1/cloud_channel_service/client"
29
+ require "google/cloud/channel/v1/cloud_channel_service/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -42,21 +43,27 @@ module Google
42
43
  # 3. Resellers and distributors can manage customer entitlements.
43
44
  #
44
45
  # CloudChannelService exposes the following resources:
45
- # - {::Google::Cloud::Channel::V1::Customer Customer}s: An entityusually an enterprise—managed by a reseller or
46
- # distributor.
46
+ # - {::Google::Cloud::Channel::V1::Customer Customer}s: An entity-usually an
47
+ # enterprise-managed by a reseller or distributor.
47
48
  #
48
- # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An entity that provides a customer with the means to use
49
- # a service. Entitlements are created or updated as a result of a successful
50
- # fulfillment.
49
+ # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An entity that
50
+ # provides a customer with the means to use a service. Entitlements are created
51
+ # or updated as a result of a successful fulfillment.
51
52
  #
52
- # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: An entity that identifies links between
53
- # distributors and their indirect resellers in a channel.
53
+ # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: An
54
+ # entity that identifies links between distributors and their indirect
55
+ # resellers in a channel.
54
56
  #
55
- # To load this service and instantiate a client:
57
+ # @example Load this service and instantiate a gRPC client
56
58
  #
57
59
  # require "google/cloud/channel/v1/cloud_channel_service"
58
60
  # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new
59
61
  #
62
+ # @example Load this service and instantiate a REST client
63
+ #
64
+ # require "google/cloud/channel/v1/cloud_channel_service/rest"
65
+ # client = ::Google::Cloud::Channel::V1::CloudChannelService::Rest::Client.new
66
+ #
60
67
  module CloudChannelService
61
68
  end
62
69
  end
@@ -58,10 +58,12 @@ module Google
58
58
  # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
59
59
  #
60
60
  # To get the results of report generation, call
61
- # [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] with the
61
+ # [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]
62
+ # with the
62
63
  # [RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job].
63
64
  rpc :RunReportJob, ::Google::Cloud::Channel::V1::RunReportJobRequest, ::Google::Longrunning::Operation
64
- # Retrieves data generated by [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].
65
+ # Retrieves data generated by
66
+ # [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].
65
67
  rpc :FetchReportResults, ::Google::Cloud::Channel::V1::FetchReportResultsRequest, ::Google::Cloud::Channel::V1::FetchReportResultsResponse
66
68
  # Lists the reports that RunReportJob can run. These reports include an ID,
67
69
  # a description, and the list of columns that will be in the result.
@@ -25,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
25
25
  optional :effective_invoice_month, :message, 1, "google.type.Date"
26
26
  optional :adjustment, :message, 2, "google.cloud.channel.v1.RepricingAdjustment"
27
27
  optional :rebilling_basis, :enum, 3, "google.cloud.channel.v1.RebillingBasis"
28
+ repeated :conditional_overrides, :message, 6, "google.cloud.channel.v1.ConditionalOverride"
28
29
  oneof :granularity do
29
30
  optional :entitlement_granularity, :message, 4, "google.cloud.channel.v1.RepricingConfig.EntitlementGranularity"
30
31
  optional :channel_partner_granularity, :message, 5, "google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity"
@@ -43,6 +44,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
44
  add_message "google.cloud.channel.v1.PercentageAdjustment" do
44
45
  optional :percentage, :message, 2, "google.type.Decimal"
45
46
  end
47
+ add_message "google.cloud.channel.v1.ConditionalOverride" do
48
+ optional :adjustment, :message, 1, "google.cloud.channel.v1.RepricingAdjustment"
49
+ optional :rebilling_basis, :enum, 2, "google.cloud.channel.v1.RebillingBasis"
50
+ optional :repricing_condition, :message, 3, "google.cloud.channel.v1.RepricingCondition"
51
+ end
52
+ add_message "google.cloud.channel.v1.RepricingCondition" do
53
+ oneof :condition do
54
+ optional :sku_group_condition, :message, 1, "google.cloud.channel.v1.SkuGroupCondition"
55
+ end
56
+ end
57
+ add_message "google.cloud.channel.v1.SkuGroupCondition" do
58
+ optional :sku_group, :string, 1
59
+ end
46
60
  add_enum "google.cloud.channel.v1.RebillingBasis" do
47
61
  value :REBILLING_BASIS_UNSPECIFIED, 0
48
62
  value :COST_AT_LIST, 1
@@ -62,6 +76,9 @@ module Google
62
76
  RepricingConfig::ChannelPartnerGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity").msgclass
63
77
  RepricingAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingAdjustment").msgclass
64
78
  PercentageAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PercentageAdjustment").msgclass
79
+ ConditionalOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ConditionalOverride").msgclass
80
+ RepricingCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RepricingCondition").msgclass
81
+ SkuGroupCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.SkuGroupCondition").msgclass
65
82
  RebillingBasis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RebillingBasis").enummodule
66
83
  end
67
84
  end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/channel/v1/cloud_channel_reports_service/rest"
20
+ require "google/cloud/channel/v1/cloud_channel_service/rest"
21
+ require "google/cloud/channel/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Channel
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/channel/v1/rest"
32
+ # client = ::Google::Cloud::Channel::V1::CloudChannelReportsService::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end