google-cloud-channel 1.2.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd6d2c47463996bfaa6867fe6957d4bfca94860ec493f66c9a0c326bd882ae5e
4
- data.tar.gz: 1c2b9b7fe67402712546075a738062686ffaca588f7cb52f73b17929c0ace823
3
+ metadata.gz: 39c427a4d14a5412b71080f316996de1966dbd9e532dc85d45089bdb9f7648de
4
+ data.tar.gz: 9bbe98c8cd256cdd64ccfdf6c86e83d480cf6490e8b87dac3e0838bf735a9e73
5
5
  SHA512:
6
- metadata.gz: 5a0d435bc2985885bdbeadb7eb47d25e1e82a448878d08cde1f89083d11ffd118f8c351b8da5bf41e247bdead0e56edaa9ab9b80468fb911cba2282e8210f679
7
- data.tar.gz: 3820cffff9b0a3779fad7dd0417c48edf7ff23e788e83e2d7d96b03e4f0c33d8b01f2b942e32b95f6be225253873445f0e61ea6a37888155ba4942c7122b8a2c
6
+ metadata.gz: 1976c9dccb416c96b7e8a8db78a92d0cf945a718c70598c772d3d7845ba1b0154bdb8f2b1e785a76f62c9369c81747de310fdab86e65411193c44eaa7573799c
7
+ data.tar.gz: 6a5be1491e7a6a4db011c9e73ffacb3c35800de01e0d372d573b3dbddd399a7360ed43e481676d6795faafe2d0c72af2c6d05edad7976b558e8be49a8ff22b64
data/README.md CHANGED
@@ -16,7 +16,7 @@ for this library, google-cloud-channel, to see the convenience methods for
16
16
  constructing client objects. Reference documentation for the client objects
17
17
  themselves can be found in the client library documentation for the versioned
18
18
  client gems:
19
- [google-cloud-channel-v1](https://googleapis.dev/ruby/google-cloud-channel-v1/latest).
19
+ [google-cloud-channel-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest).
20
20
 
21
21
  See also the [Product Documentation](https://cloud.google.com/channel)
22
22
  for more usage information.
@@ -34,32 +34,6 @@ In order to use this library, you first need to go through the following steps:
34
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/cloudchannel.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
- ## Enabling Logging
38
-
39
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
40
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
41
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
42
- 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)
43
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
44
-
45
- Configuring a Ruby stdlib logger:
46
-
47
- ```ruby
48
- require "logger"
49
-
50
- module MyLogger
51
- LOGGER = Logger.new $stderr, level: Logger::WARN
52
- def logger
53
- LOGGER
54
- end
55
- end
56
-
57
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
58
- module GRPC
59
- extend MyLogger
60
- end
61
- ```
62
-
63
37
  ## Supported Ruby Versions
64
38
 
65
39
  This library is supported on Ruby 2.6+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Channel
23
- VERSION = "1.2.0"
23
+ VERSION = "1.3.1"
24
24
  end
25
25
  end
26
26
  end
@@ -48,45 +48,55 @@ module Google
48
48
  # Create a new client object for CloudChannelReportsService.
49
49
  #
50
50
  # By default, this returns an instance of
51
- # [Google::Cloud::Channel::V1::CloudChannelReportsService::Client](https://googleapis.dev/ruby/google-cloud-channel-v1/latest/Google/Cloud/Channel/V1/CloudChannelReportsService/Client.html)
52
- # for version V1 of the API.
53
- # However, you can specify specify a different API version by passing it in the
51
+ # [Google::Cloud::Channel::V1::CloudChannelReportsService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-CloudChannelReportsService-Client)
52
+ # for a gRPC client for version V1 of the API.
53
+ # However, you can specify a different API version by passing it in the
54
54
  # `version` parameter. If the CloudChannelReportsService service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
57
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
58
+ # the `transport` parameter.
57
59
  #
58
60
  # ## About CloudChannelReportsService
59
61
  #
60
62
  # CloudChannelReportsService lets Google Cloud resellers and
61
63
  # distributors retrieve and combine a variety of data in Cloud Channel for
62
- # multiple products (Google Cloud Platform (GCP), Google Voice, and
63
- # Google Workspace.)
64
+ # multiple products (Google Cloud, Google Voice, and Google Workspace.)
65
+ #
66
+ # Deprecated: This service is being deprecated. Please use [Export Channel
67
+ # Services data to
68
+ # BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
69
+ # instead.
64
70
  #
65
71
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
66
72
  # Defaults to `:v1`.
67
- # @return [CloudChannelReportsService::Client] A client object for the specified version.
73
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
74
+ # @return [::Object] A client object for the specified version.
68
75
  #
69
- def self.cloud_channel_reports_service version: :v1, &block
76
+ def self.cloud_channel_reports_service version: :v1, transport: :grpc, &block
70
77
  require "google/cloud/channel/#{version.to_s.downcase}"
71
78
 
72
79
  package_name = Google::Cloud::Channel
73
80
  .constants
74
81
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
75
82
  .first
76
- package_module = Google::Cloud::Channel.const_get package_name
77
- package_module.const_get(:CloudChannelReportsService).const_get(:Client).new(&block)
83
+ service_module = Google::Cloud::Channel.const_get(package_name).const_get(:CloudChannelReportsService)
84
+ service_module = service_module.const_get(:Rest) if transport == :rest
85
+ service_module.const_get(:Client).new(&block)
78
86
  end
79
87
 
80
88
  ##
81
89
  # Create a new client object for CloudChannelService.
82
90
  #
83
91
  # By default, this returns an instance of
84
- # [Google::Cloud::Channel::V1::CloudChannelService::Client](https://googleapis.dev/ruby/google-cloud-channel-v1/latest/Google/Cloud/Channel/V1/CloudChannelService/Client.html)
85
- # for version V1 of the API.
86
- # However, you can specify specify a different API version by passing it in the
92
+ # [Google::Cloud::Channel::V1::CloudChannelService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-CloudChannelService-Client)
93
+ # for a gRPC client for version V1 of the API.
94
+ # However, you can specify a different API version by passing it in the
87
95
  # `version` parameter. If the CloudChannelService service is
88
96
  # supported by that API version, and the corresponding gem is available, the
89
97
  # appropriate versioned client will be returned.
98
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
99
+ # the `transport` parameter.
90
100
  #
91
101
  # ## About CloudChannelService
92
102
  #
@@ -100,29 +110,32 @@ module Google
100
110
  # 3. Resellers and distributors can manage customer entitlements.
101
111
  #
102
112
  # CloudChannelService exposes the following resources:
103
- # - Customers: An entityusually an enterprise—managed by a reseller or
104
- # distributor.
113
+ # - Customers: An entity-usually an
114
+ # enterprise-managed by a reseller or distributor.
105
115
  #
106
- # - Entitlements: An entity that provides a customer with the means to use
107
- # a service. Entitlements are created or updated as a result of a successful
108
- # fulfillment.
116
+ # - Entitlements: An entity that
117
+ # provides a customer with the means to use a service. Entitlements are created
118
+ # or updated as a result of a successful fulfillment.
109
119
  #
110
- # - ChannelPartnerLinks: An entity that identifies links between
111
- # distributors and their indirect resellers in a channel.
120
+ # - ChannelPartnerLinks: An
121
+ # entity that identifies links between distributors and their indirect
122
+ # resellers in a channel.
112
123
  #
113
124
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
114
125
  # Defaults to `:v1`.
115
- # @return [CloudChannelService::Client] A client object for the specified version.
126
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
127
+ # @return [::Object] A client object for the specified version.
116
128
  #
117
- def self.cloud_channel_service version: :v1, &block
129
+ def self.cloud_channel_service version: :v1, transport: :grpc, &block
118
130
  require "google/cloud/channel/#{version.to_s.downcase}"
119
131
 
120
132
  package_name = Google::Cloud::Channel
121
133
  .constants
122
134
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
123
135
  .first
124
- package_module = Google::Cloud::Channel.const_get package_name
125
- package_module.const_get(:CloudChannelService).const_get(:Client).new(&block)
136
+ service_module = Google::Cloud::Channel.const_get(package_name).const_get(:CloudChannelService)
137
+ service_module = service_module.const_get(:Rest) if transport == :rest
138
+ service_module.const_get(:Client).new(&block)
126
139
  end
127
140
 
128
141
  ##
@@ -142,7 +155,7 @@ module Google
142
155
  # * `timeout` (*type:* `Numeric`) -
143
156
  # Default timeout in seconds.
144
157
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
145
- # Additional gRPC headers to be sent with the call.
158
+ # Additional headers to be sent with the call.
146
159
  # * `retry_policy` (*type:* `Hash`) -
147
160
  # The retry policy. The value is a hash with the following keys:
148
161
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-channel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-24 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-channel-v1
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.13'
19
+ version: '0.16'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.13'
29
+ version: '0.16'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.3.14
193
+ rubygems_version: 3.5.3
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: API Client library for the Cloud Channel API