google-cloud-channel-v1 0.15.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +14 -18
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +14 -16
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +583 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +793 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +227 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest.rb +56 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service.rb +7 -1
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +232 -119
- data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +14 -16
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +4894 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +793 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +2830 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest.rb +72 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service.rb +7 -1
- data/lib/google/cloud/channel/v1/customers_pb.rb +1 -0
- data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +81 -0
- data/lib/google/cloud/channel/v1/reports_service_pb.rb +1 -0
- data/lib/google/cloud/channel/v1/rest.rb +38 -0
- data/lib/google/cloud/channel/v1/service_pb.rb +15 -0
- data/lib/google/cloud/channel/v1/service_services_pb.rb +17 -0
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/lib/google/cloud/channel/v1.rb +7 -2
- data/proto_docs/google/cloud/channel/v1/customers.rb +4 -0
- data/proto_docs/google/cloud/channel/v1/entitlement_changes.rb +182 -0
- data/proto_docs/google/cloud/channel/v1/entitlements.rb +12 -3
- data/proto_docs/google/cloud/channel/v1/service.rb +52 -0
- metadata +21 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60136f93039bfca45387f078d5b69fb88bbd6a81ad3211ecdf13ee0e364db505
|
4
|
+
data.tar.gz: 47063e16eab671bdea343a5986d4d67162289387ef278f22e5009cf24e9539ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e10b8cee62bbad634847afd61625dc927ada9b70c3572e214e8681a8f5e15b84e3415cb567303b6ed17fc75a615bd998e01dfa980bdf1fe0e710a9188f4f78c
|
7
|
+
data.tar.gz: 809ebef155747869e0af83361f67e5a49324c3240521d13e9d9a8ee16e5f0e5eb7ddc120711fc55877132f6a00acd26c176758dbdfb403bb8c5c06e89f0b0ae5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Channel V1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
The Cloud Channel API enables Google Cloud partners to have a single unified resale platform and APIs across all of Google Cloud including GCP, Workspace, Maps and Chrome.
|
4
4
|
|
5
5
|
You can use Channel Services to manage your relationships with your partners and your customers. Channel Services include a console and APIs to view and provision links between distributors and resellers, customers and entitlements.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -247,14 +247,14 @@ module Google
|
|
247
247
|
# # Call the run_report_job method.
|
248
248
|
# result = client.run_report_job request
|
249
249
|
#
|
250
|
-
# # The returned object is of type Gapic::Operation. You can use
|
251
|
-
# #
|
252
|
-
# #
|
250
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
251
|
+
# # check the status of an operation, cancel it, or wait for results.
|
252
|
+
# # Here is how to wait for a response.
|
253
253
|
# result.wait_until_done! timeout: 60
|
254
254
|
# if result.response?
|
255
255
|
# p result.response
|
256
256
|
# else
|
257
|
-
# puts "
|
257
|
+
# puts "No response received."
|
258
258
|
# end
|
259
259
|
#
|
260
260
|
def run_report_job request, options = nil
|
@@ -358,13 +358,11 @@ module Google
|
|
358
358
|
# # Call the fetch_report_results method.
|
359
359
|
# result = client.fetch_report_results request
|
360
360
|
#
|
361
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
362
|
-
# #
|
363
|
-
#
|
364
|
-
# # methods are also available for managing paging directly.
|
365
|
-
# result.each do |response|
|
361
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
362
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
363
|
+
# result.each do |item|
|
366
364
|
# # Each element is of type ::Google::Cloud::Channel::V1::Row.
|
367
|
-
# p
|
365
|
+
# p item
|
368
366
|
# end
|
369
367
|
#
|
370
368
|
def fetch_report_results request, options = nil
|
@@ -468,13 +466,11 @@ module Google
|
|
468
466
|
# # Call the list_reports method.
|
469
467
|
# result = client.list_reports request
|
470
468
|
#
|
471
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
472
|
-
# #
|
473
|
-
#
|
474
|
-
# # methods are also available for managing paging directly.
|
475
|
-
# result.each do |response|
|
469
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
470
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
471
|
+
# result.each do |item|
|
476
472
|
# # Each element is of type ::Google::Cloud::Channel::V1::Report.
|
477
|
-
# p
|
473
|
+
# p item
|
478
474
|
# end
|
479
475
|
#
|
480
476
|
def list_reports request, options = nil
|
@@ -557,9 +553,9 @@ module Google
|
|
557
553
|
# * (`String`) The path to a service account key file in JSON format
|
558
554
|
# * (`Hash`) A service account key as a Hash
|
559
555
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
560
|
-
# (see the [googleauth docs](https://
|
556
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
561
557
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
562
|
-
# (see the [signet docs](https://
|
558
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
563
559
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
564
560
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
565
561
|
# * (`nil`) indicating no credentials
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|