google-cloud-support 1.4.1 → 1.4.2
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.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/google/cloud/support/version.rb +1 -1
- data/lib/google/cloud/support.rb +48 -12
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eca8824c64a84c7db161a3e3b772ea56b6b99c3a3bfb2f1ef85ded840b7ad178
|
|
4
|
+
data.tar.gz: 29ade2ca4513a13eb87a6dbb873dc9f25fa6f289a5cebf475ac15572672f46dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42e28d87decbd00fa99bac3f1f8dd89de3b8b2f4fd7abb54444f104eae2258b2b963f15842e9111d2f0d5d26da25a0c2c0f0030f542c3a9153639240e8389f7e
|
|
7
|
+
data.tar.gz: 6f5987d88c22e590ec8d8d4dadb3e93decabb48ea9b73f70b24c722fb0cabc4ad65eb3d31872894292c38faa3fb7bf8189a19482d118073545bb1953ba79edc0
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Manages Google Cloud technical support cases for Customer Care support offerings.
|
|
4
4
|
|
|
5
|
-
Manages Google Cloud technical support cases for Customer Care support offerings.
|
|
6
5
|
|
|
7
6
|
Actual client classes for the various versions of this API are defined in
|
|
8
7
|
_versioned_ client gems, with names of the form `google-cloud-support-v*`.
|
data/lib/google/cloud/support.rb
CHANGED
|
@@ -55,9 +55,11 @@ module Google
|
|
|
55
55
|
# `version` parameter. If the CaseAttachmentService service is
|
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
|
57
57
|
# appropriate versioned client will be returned.
|
|
58
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
59
|
+
# the `transport` parameter.
|
|
58
60
|
#
|
|
59
61
|
# Raises an exception if the currently installed versioned client gem for the
|
|
60
|
-
# given API version does not support the CaseAttachmentService service.
|
|
62
|
+
# given API version does not support the given transport of the CaseAttachmentService service.
|
|
61
63
|
# You can determine whether the method will succeed by calling
|
|
62
64
|
# {Google::Cloud::Support.case_attachment_service_available?}.
|
|
63
65
|
#
|
|
@@ -67,9 +69,10 @@ module Google
|
|
|
67
69
|
#
|
|
68
70
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
69
71
|
# Defaults to `:v2`.
|
|
72
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
70
73
|
# @return [::Object] A client object for the specified version.
|
|
71
74
|
#
|
|
72
|
-
def self.case_attachment_service version: :v2, &block
|
|
75
|
+
def self.case_attachment_service version: :v2, transport: :grpc, &block
|
|
73
76
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
74
77
|
|
|
75
78
|
package_name = Google::Cloud::Support
|
|
@@ -77,6 +80,7 @@ module Google
|
|
|
77
80
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
78
81
|
.first
|
|
79
82
|
service_module = Google::Cloud::Support.const_get(package_name).const_get(:CaseAttachmentService)
|
|
83
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
80
84
|
service_module.const_get(:Client).new(&block)
|
|
81
85
|
end
|
|
82
86
|
|
|
@@ -89,9 +93,10 @@ module Google
|
|
|
89
93
|
#
|
|
90
94
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
91
95
|
# Defaults to `:v2`.
|
|
96
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
92
97
|
# @return [boolean] Whether the service is available.
|
|
93
98
|
#
|
|
94
|
-
def self.case_attachment_service_available? version: :v2
|
|
99
|
+
def self.case_attachment_service_available? version: :v2, transport: :grpc
|
|
95
100
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
96
101
|
package_name = Google::Cloud::Support
|
|
97
102
|
.constants
|
|
@@ -101,6 +106,10 @@ module Google
|
|
|
101
106
|
service_module = Google::Cloud::Support.const_get package_name
|
|
102
107
|
return false unless service_module.const_defined? :CaseAttachmentService
|
|
103
108
|
service_module = service_module.const_get :CaseAttachmentService
|
|
109
|
+
if transport == :rest
|
|
110
|
+
return false unless service_module.const_defined? :Rest
|
|
111
|
+
service_module = service_module.const_get :Rest
|
|
112
|
+
end
|
|
104
113
|
service_module.const_defined? :Client
|
|
105
114
|
rescue ::LoadError
|
|
106
115
|
false
|
|
@@ -116,9 +125,11 @@ module Google
|
|
|
116
125
|
# `version` parameter. If the CaseService service is
|
|
117
126
|
# supported by that API version, and the corresponding gem is available, the
|
|
118
127
|
# appropriate versioned client will be returned.
|
|
128
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
129
|
+
# the `transport` parameter.
|
|
119
130
|
#
|
|
120
131
|
# Raises an exception if the currently installed versioned client gem for the
|
|
121
|
-
# given API version does not support the CaseService service.
|
|
132
|
+
# given API version does not support the given transport of the CaseService service.
|
|
122
133
|
# You can determine whether the method will succeed by calling
|
|
123
134
|
# {Google::Cloud::Support.case_service_available?}.
|
|
124
135
|
#
|
|
@@ -128,9 +139,10 @@ module Google
|
|
|
128
139
|
#
|
|
129
140
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
130
141
|
# Defaults to `:v2`.
|
|
142
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
131
143
|
# @return [::Object] A client object for the specified version.
|
|
132
144
|
#
|
|
133
|
-
def self.case_service version: :v2, &block
|
|
145
|
+
def self.case_service version: :v2, transport: :grpc, &block
|
|
134
146
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
135
147
|
|
|
136
148
|
package_name = Google::Cloud::Support
|
|
@@ -138,6 +150,7 @@ module Google
|
|
|
138
150
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
139
151
|
.first
|
|
140
152
|
service_module = Google::Cloud::Support.const_get(package_name).const_get(:CaseService)
|
|
153
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
141
154
|
service_module.const_get(:Client).new(&block)
|
|
142
155
|
end
|
|
143
156
|
|
|
@@ -150,9 +163,10 @@ module Google
|
|
|
150
163
|
#
|
|
151
164
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
152
165
|
# Defaults to `:v2`.
|
|
166
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
153
167
|
# @return [boolean] Whether the service is available.
|
|
154
168
|
#
|
|
155
|
-
def self.case_service_available? version: :v2
|
|
169
|
+
def self.case_service_available? version: :v2, transport: :grpc
|
|
156
170
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
157
171
|
package_name = Google::Cloud::Support
|
|
158
172
|
.constants
|
|
@@ -162,6 +176,10 @@ module Google
|
|
|
162
176
|
service_module = Google::Cloud::Support.const_get package_name
|
|
163
177
|
return false unless service_module.const_defined? :CaseService
|
|
164
178
|
service_module = service_module.const_get :CaseService
|
|
179
|
+
if transport == :rest
|
|
180
|
+
return false unless service_module.const_defined? :Rest
|
|
181
|
+
service_module = service_module.const_get :Rest
|
|
182
|
+
end
|
|
165
183
|
service_module.const_defined? :Client
|
|
166
184
|
rescue ::LoadError
|
|
167
185
|
false
|
|
@@ -177,9 +195,11 @@ module Google
|
|
|
177
195
|
# `version` parameter. If the CommentService service is
|
|
178
196
|
# supported by that API version, and the corresponding gem is available, the
|
|
179
197
|
# appropriate versioned client will be returned.
|
|
198
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
199
|
+
# the `transport` parameter.
|
|
180
200
|
#
|
|
181
201
|
# Raises an exception if the currently installed versioned client gem for the
|
|
182
|
-
# given API version does not support the CommentService service.
|
|
202
|
+
# given API version does not support the given transport of the CommentService service.
|
|
183
203
|
# You can determine whether the method will succeed by calling
|
|
184
204
|
# {Google::Cloud::Support.comment_service_available?}.
|
|
185
205
|
#
|
|
@@ -189,9 +209,10 @@ module Google
|
|
|
189
209
|
#
|
|
190
210
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
191
211
|
# Defaults to `:v2`.
|
|
212
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
192
213
|
# @return [::Object] A client object for the specified version.
|
|
193
214
|
#
|
|
194
|
-
def self.comment_service version: :v2, &block
|
|
215
|
+
def self.comment_service version: :v2, transport: :grpc, &block
|
|
195
216
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
196
217
|
|
|
197
218
|
package_name = Google::Cloud::Support
|
|
@@ -199,6 +220,7 @@ module Google
|
|
|
199
220
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
200
221
|
.first
|
|
201
222
|
service_module = Google::Cloud::Support.const_get(package_name).const_get(:CommentService)
|
|
223
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
202
224
|
service_module.const_get(:Client).new(&block)
|
|
203
225
|
end
|
|
204
226
|
|
|
@@ -211,9 +233,10 @@ module Google
|
|
|
211
233
|
#
|
|
212
234
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
213
235
|
# Defaults to `:v2`.
|
|
236
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
214
237
|
# @return [boolean] Whether the service is available.
|
|
215
238
|
#
|
|
216
|
-
def self.comment_service_available? version: :v2
|
|
239
|
+
def self.comment_service_available? version: :v2, transport: :grpc
|
|
217
240
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
218
241
|
package_name = Google::Cloud::Support
|
|
219
242
|
.constants
|
|
@@ -223,6 +246,10 @@ module Google
|
|
|
223
246
|
service_module = Google::Cloud::Support.const_get package_name
|
|
224
247
|
return false unless service_module.const_defined? :CommentService
|
|
225
248
|
service_module = service_module.const_get :CommentService
|
|
249
|
+
if transport == :rest
|
|
250
|
+
return false unless service_module.const_defined? :Rest
|
|
251
|
+
service_module = service_module.const_get :Rest
|
|
252
|
+
end
|
|
226
253
|
service_module.const_defined? :Client
|
|
227
254
|
rescue ::LoadError
|
|
228
255
|
false
|
|
@@ -238,9 +265,11 @@ module Google
|
|
|
238
265
|
# `version` parameter. If the SupportEventSubscriptionService service is
|
|
239
266
|
# supported by that API version, and the corresponding gem is available, the
|
|
240
267
|
# appropriate versioned client will be returned.
|
|
268
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
269
|
+
# the `transport` parameter.
|
|
241
270
|
#
|
|
242
271
|
# Raises an exception if the currently installed versioned client gem for the
|
|
243
|
-
# given API version does not support the SupportEventSubscriptionService service.
|
|
272
|
+
# given API version does not support the given transport of the SupportEventSubscriptionService service.
|
|
244
273
|
# You can determine whether the method will succeed by calling
|
|
245
274
|
# {Google::Cloud::Support.support_event_subscription_service_available?}.
|
|
246
275
|
#
|
|
@@ -250,9 +279,10 @@ module Google
|
|
|
250
279
|
#
|
|
251
280
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
252
281
|
# Defaults to `:v2`.
|
|
282
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
253
283
|
# @return [::Object] A client object for the specified version.
|
|
254
284
|
#
|
|
255
|
-
def self.support_event_subscription_service version: :v2, &block
|
|
285
|
+
def self.support_event_subscription_service version: :v2, transport: :grpc, &block
|
|
256
286
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
257
287
|
|
|
258
288
|
package_name = Google::Cloud::Support
|
|
@@ -260,6 +290,7 @@ module Google
|
|
|
260
290
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
261
291
|
.first
|
|
262
292
|
service_module = Google::Cloud::Support.const_get(package_name).const_get(:SupportEventSubscriptionService)
|
|
293
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
263
294
|
service_module.const_get(:Client).new(&block)
|
|
264
295
|
end
|
|
265
296
|
|
|
@@ -272,9 +303,10 @@ module Google
|
|
|
272
303
|
#
|
|
273
304
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
274
305
|
# Defaults to `:v2`.
|
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
275
307
|
# @return [boolean] Whether the service is available.
|
|
276
308
|
#
|
|
277
|
-
def self.support_event_subscription_service_available? version: :v2
|
|
309
|
+
def self.support_event_subscription_service_available? version: :v2, transport: :grpc
|
|
278
310
|
require "google/cloud/support/#{version.to_s.downcase}"
|
|
279
311
|
package_name = Google::Cloud::Support
|
|
280
312
|
.constants
|
|
@@ -284,6 +316,10 @@ module Google
|
|
|
284
316
|
service_module = Google::Cloud::Support.const_get package_name
|
|
285
317
|
return false unless service_module.const_defined? :SupportEventSubscriptionService
|
|
286
318
|
service_module = service_module.const_get :SupportEventSubscriptionService
|
|
319
|
+
if transport == :rest
|
|
320
|
+
return false unless service_module.const_defined? :Rest
|
|
321
|
+
service_module = service_module.const_get :Rest
|
|
322
|
+
end
|
|
287
323
|
service_module.const_defined? :Client
|
|
288
324
|
rescue ::LoadError
|
|
289
325
|
false
|