google-cloud-support 1.0.1 → 1.1.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 +30 -26
- data/lib/google/cloud/support/version.rb +1 -1
- data/lib/google/cloud/support.rb +93 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ae4cd56eba418c1a710f700285bd24bdd9addc058284241446f9d67ef646e8b
|
4
|
+
data.tar.gz: c7f28ffbb9eaea17734b856a5a7e9f05a4d372cabe401fde111205fa436b4404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a2232acbb2ae2a39ebe30d77efcc8de1e008ffc7b678e573bff953c53eab9c84b34a7a3f14b2508c9178710476bbef44bd9906efd8f00246edec9977a6ab045
|
7
|
+
data.tar.gz: 2fde4415f3784e29d8ad451dc285dc2cc13102cc3dda4f9b94e326bbd8d73f44c72ef352c962f4d3fc38ac2c2447289342c514a83f4636917a0df961b56de336
|
data/README.md
CHANGED
@@ -34,35 +34,39 @@ 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/cloudsupport.googleapis.com)
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
36
|
|
37
|
-
##
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
37
|
+
## Debug Logging
|
38
|
+
|
39
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
40
|
+
your application's integration with the API. When logging is activated, key
|
41
|
+
events such as requests and responses, along with data payloads and metadata
|
42
|
+
such as headers and client configuration, are logged to the standard error
|
43
|
+
stream.
|
44
|
+
|
45
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
46
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
47
|
+
customers, private keys, or other security data that could be compromising if
|
48
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
49
|
+
the principle of least access. Google also recommends that Client Library Debug
|
50
|
+
Logging be enabled only temporarily during active debugging, and not used
|
51
|
+
permanently in production.
|
52
|
+
|
53
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
54
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
55
|
+
list of client library gem names. This will select the default logging behavior,
|
56
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
57
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
58
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
59
|
+
results in logs appearing alongside your application logs in the
|
60
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
61
|
+
|
62
|
+
Debug logging also requires that the versioned clients for this service be
|
63
|
+
sufficiently recent, released after about Dec 10, 2024. If logging is not
|
64
|
+
working, try updating the versioned clients in your bundle or installed gems:
|
65
|
+
[google-cloud-support-v2](https://cloud.google.com/ruby/docs/reference/google-cloud-support-v2/latest).
|
62
66
|
|
63
67
|
## Supported Ruby Versions
|
64
68
|
|
65
|
-
This library is supported on Ruby
|
69
|
+
This library is supported on Ruby 3.0+.
|
66
70
|
|
67
71
|
Google provides official support for Ruby versions that are actively supported
|
68
72
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
data/lib/google/cloud/support.rb
CHANGED
@@ -56,6 +56,11 @@ module Google
|
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
57
57
|
# appropriate versioned client will be returned.
|
58
58
|
#
|
59
|
+
# Raises an exception if the currently installed versioned client gem for the
|
60
|
+
# given API version does not support the CaseAttachmentService service.
|
61
|
+
# You can determine whether the method will succeed by calling
|
62
|
+
# {Google::Cloud::Support.case_attachment_service_available?}.
|
63
|
+
#
|
59
64
|
# ## About CaseAttachmentService
|
60
65
|
#
|
61
66
|
# A service to manage file attachment for Google Cloud support cases.
|
@@ -75,6 +80,32 @@ module Google
|
|
75
80
|
service_module.const_get(:Client).new(&block)
|
76
81
|
end
|
77
82
|
|
83
|
+
##
|
84
|
+
# Determines whether the CaseAttachmentService service is supported by the current client.
|
85
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Support.case_attachment_service}.
|
86
|
+
# If false, that method will raise an exception. This could happen if the given
|
87
|
+
# API version does not exist or does not support the CaseAttachmentService service,
|
88
|
+
# or if the versioned client gem needs an update to support the CaseAttachmentService service.
|
89
|
+
#
|
90
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
91
|
+
# Defaults to `:v2`.
|
92
|
+
# @return [boolean] Whether the service is available.
|
93
|
+
#
|
94
|
+
def self.case_attachment_service_available? version: :v2
|
95
|
+
require "google/cloud/support/#{version.to_s.downcase}"
|
96
|
+
package_name = Google::Cloud::Support
|
97
|
+
.constants
|
98
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
99
|
+
.first
|
100
|
+
return false unless package_name
|
101
|
+
service_module = Google::Cloud::Support.const_get package_name
|
102
|
+
return false unless service_module.const_defined? :CaseAttachmentService
|
103
|
+
service_module = service_module.const_get :CaseAttachmentService
|
104
|
+
service_module.const_defined? :Client
|
105
|
+
rescue ::LoadError
|
106
|
+
false
|
107
|
+
end
|
108
|
+
|
78
109
|
##
|
79
110
|
# Create a new client object for CaseService.
|
80
111
|
#
|
@@ -86,6 +117,11 @@ module Google
|
|
86
117
|
# supported by that API version, and the corresponding gem is available, the
|
87
118
|
# appropriate versioned client will be returned.
|
88
119
|
#
|
120
|
+
# Raises an exception if the currently installed versioned client gem for the
|
121
|
+
# given API version does not support the CaseService service.
|
122
|
+
# You can determine whether the method will succeed by calling
|
123
|
+
# {Google::Cloud::Support.case_service_available?}.
|
124
|
+
#
|
89
125
|
# ## About CaseService
|
90
126
|
#
|
91
127
|
# A service to manage Google Cloud support cases.
|
@@ -105,6 +141,32 @@ module Google
|
|
105
141
|
service_module.const_get(:Client).new(&block)
|
106
142
|
end
|
107
143
|
|
144
|
+
##
|
145
|
+
# Determines whether the CaseService service is supported by the current client.
|
146
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Support.case_service}.
|
147
|
+
# If false, that method will raise an exception. This could happen if the given
|
148
|
+
# API version does not exist or does not support the CaseService service,
|
149
|
+
# or if the versioned client gem needs an update to support the CaseService service.
|
150
|
+
#
|
151
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
152
|
+
# Defaults to `:v2`.
|
153
|
+
# @return [boolean] Whether the service is available.
|
154
|
+
#
|
155
|
+
def self.case_service_available? version: :v2
|
156
|
+
require "google/cloud/support/#{version.to_s.downcase}"
|
157
|
+
package_name = Google::Cloud::Support
|
158
|
+
.constants
|
159
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
160
|
+
.first
|
161
|
+
return false unless package_name
|
162
|
+
service_module = Google::Cloud::Support.const_get package_name
|
163
|
+
return false unless service_module.const_defined? :CaseService
|
164
|
+
service_module = service_module.const_get :CaseService
|
165
|
+
service_module.const_defined? :Client
|
166
|
+
rescue ::LoadError
|
167
|
+
false
|
168
|
+
end
|
169
|
+
|
108
170
|
##
|
109
171
|
# Create a new client object for CommentService.
|
110
172
|
#
|
@@ -116,6 +178,11 @@ module Google
|
|
116
178
|
# supported by that API version, and the corresponding gem is available, the
|
117
179
|
# appropriate versioned client will be returned.
|
118
180
|
#
|
181
|
+
# Raises an exception if the currently installed versioned client gem for the
|
182
|
+
# given API version does not support the CommentService service.
|
183
|
+
# You can determine whether the method will succeed by calling
|
184
|
+
# {Google::Cloud::Support.comment_service_available?}.
|
185
|
+
#
|
119
186
|
# ## About CommentService
|
120
187
|
#
|
121
188
|
# A service to manage comments on cases.
|
@@ -135,6 +202,32 @@ module Google
|
|
135
202
|
service_module.const_get(:Client).new(&block)
|
136
203
|
end
|
137
204
|
|
205
|
+
##
|
206
|
+
# Determines whether the CommentService service is supported by the current client.
|
207
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Support.comment_service}.
|
208
|
+
# If false, that method will raise an exception. This could happen if the given
|
209
|
+
# API version does not exist or does not support the CommentService service,
|
210
|
+
# or if the versioned client gem needs an update to support the CommentService service.
|
211
|
+
#
|
212
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
213
|
+
# Defaults to `:v2`.
|
214
|
+
# @return [boolean] Whether the service is available.
|
215
|
+
#
|
216
|
+
def self.comment_service_available? version: :v2
|
217
|
+
require "google/cloud/support/#{version.to_s.downcase}"
|
218
|
+
package_name = Google::Cloud::Support
|
219
|
+
.constants
|
220
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
221
|
+
.first
|
222
|
+
return false unless package_name
|
223
|
+
service_module = Google::Cloud::Support.const_get package_name
|
224
|
+
return false unless service_module.const_defined? :CommentService
|
225
|
+
service_module = service_module.const_get :CommentService
|
226
|
+
service_module.const_defined? :Client
|
227
|
+
rescue ::LoadError
|
228
|
+
false
|
229
|
+
end
|
230
|
+
|
138
231
|
##
|
139
232
|
# Configure the google-cloud-support library.
|
140
233
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-cloud-core
|
@@ -62,7 +61,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
62
61
|
licenses:
|
63
62
|
- Apache-2.0
|
64
63
|
metadata: {}
|
65
|
-
post_install_message:
|
66
64
|
rdoc_options: []
|
67
65
|
require_paths:
|
68
66
|
- lib
|
@@ -70,15 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
68
|
requirements:
|
71
69
|
- - ">="
|
72
70
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
71
|
+
version: '3.0'
|
74
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
73
|
requirements:
|
76
74
|
- - ">="
|
77
75
|
- !ruby/object:Gem::Version
|
78
76
|
version: '0'
|
79
77
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
81
|
-
signing_key:
|
78
|
+
rubygems_version: 3.6.2
|
82
79
|
specification_version: 4
|
83
80
|
summary: Manages Google Cloud technical support cases for Customer Care support offerings.
|
84
81
|
test_files: []
|