google-apis-cloudsupport_v2beta 0.26.0 → 0.28.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f39d56eb38f84807afcfc4c6dbda7197df541f382edb784579e394b36b1f29e
|
4
|
+
data.tar.gz: a04dfebf26395a2bce4d166eeabaa853ea0ded7cf5a373b648356c0dd3eaee12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fd82da5e727575991a90a4b0c476685397011c0787ccd5bc7fd12719d7e87e04954dcd326c52809194210ab26263bc0cd8fec1b10a08df1e2b1be79a63d9f9f
|
7
|
+
data.tar.gz: 61470fbbc9eae8fcb75788326e5a1c89732a72991e9b556e4b19a604bec98e9f6239b53e4fb51aaf20d15f5ca43ff1f2ef6be59ffd19578703d69d68ff4f3c20
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-cloudsupport_v2beta
|
2
2
|
|
3
|
+
### v0.28.0 (2023-09-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230920
|
6
|
+
|
7
|
+
### v0.27.0 (2023-09-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230904
|
10
|
+
|
3
11
|
### v0.26.0 (2023-08-27)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230818
|
@@ -736,14 +736,14 @@ module Google
|
|
736
736
|
class ListAttachmentsResponse
|
737
737
|
include Google::Apis::Core::Hashable
|
738
738
|
|
739
|
-
# The list of attachments associated with
|
739
|
+
# The list of attachments associated with a case.
|
740
740
|
# Corresponds to the JSON property `attachments`
|
741
741
|
# @return [Array<Google::Apis::CloudsupportV2beta::Attachment>]
|
742
742
|
attr_accessor :attachments
|
743
743
|
|
744
|
-
# A token to retrieve the next page of results.
|
745
|
-
#
|
746
|
-
#
|
744
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
745
|
+
# field of subsequent `cases.attachments.list` requests. If unspecified, there
|
746
|
+
# are no more results to retrieve.
|
747
747
|
# Corresponds to the JSON property `nextPageToken`
|
748
748
|
# @return [String]
|
749
749
|
attr_accessor :next_page_token
|
@@ -763,15 +763,15 @@ module Google
|
|
763
763
|
class ListCasesResponse
|
764
764
|
include Google::Apis::Core::Hashable
|
765
765
|
|
766
|
-
# The list of cases associated with the
|
767
|
-
#
|
766
|
+
# The list of cases associated with the parent after any filters have been
|
767
|
+
# applied.
|
768
768
|
# Corresponds to the JSON property `cases`
|
769
769
|
# @return [Array<Google::Apis::CloudsupportV2beta::Case>]
|
770
770
|
attr_accessor :cases
|
771
771
|
|
772
|
-
# A token to retrieve the next page of results.
|
773
|
-
#
|
774
|
-
#
|
772
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
773
|
+
# field of subsequent `cases.list` requests. If unspecified, there are no more
|
774
|
+
# results to retrieve.
|
775
775
|
# Corresponds to the JSON property `nextPageToken`
|
776
776
|
# @return [String]
|
777
777
|
attr_accessor :next_page_token
|
@@ -791,14 +791,14 @@ module Google
|
|
791
791
|
class ListCommentsResponse
|
792
792
|
include Google::Apis::Core::Hashable
|
793
793
|
|
794
|
-
#
|
794
|
+
# List of the comments associated with the case.
|
795
795
|
# Corresponds to the JSON property `comments`
|
796
796
|
# @return [Array<Google::Apis::CloudsupportV2beta::Comment>]
|
797
797
|
attr_accessor :comments
|
798
798
|
|
799
|
-
# A token to retrieve the next page of results.
|
800
|
-
#
|
801
|
-
#
|
799
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
800
|
+
# field of subsequent `cases.comments.list` requests. If unspecified, there are
|
801
|
+
# no more results to retrieve.
|
802
802
|
# Corresponds to the JSON property `nextPageToken`
|
803
803
|
# @return [String]
|
804
804
|
attr_accessor :next_page_token
|
@@ -1057,9 +1057,9 @@ module Google
|
|
1057
1057
|
# @return [Array<Google::Apis::CloudsupportV2beta::CaseClassification>]
|
1058
1058
|
attr_accessor :case_classifications
|
1059
1059
|
|
1060
|
-
# A token to retrieve the next page of results.
|
1061
|
-
#
|
1062
|
-
#
|
1060
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
1061
|
+
# field of subsequent `caseClassifications.list` requests. If unspecified, there
|
1062
|
+
# are no more results to retrieve.
|
1063
1063
|
# Corresponds to the JSON property `nextPageToken`
|
1064
1064
|
# @return [String]
|
1065
1065
|
attr_accessor :next_page_token
|
@@ -1079,15 +1079,15 @@ module Google
|
|
1079
1079
|
class SearchCasesResponse
|
1080
1080
|
include Google::Apis::Core::Hashable
|
1081
1081
|
|
1082
|
-
# The list of cases associated with the
|
1083
|
-
#
|
1082
|
+
# The list of cases associated with the parent after any filters have been
|
1083
|
+
# applied.
|
1084
1084
|
# Corresponds to the JSON property `cases`
|
1085
1085
|
# @return [Array<Google::Apis::CloudsupportV2beta::Case>]
|
1086
1086
|
attr_accessor :cases
|
1087
1087
|
|
1088
|
-
# A token to retrieve the next page of results.
|
1089
|
-
#
|
1090
|
-
#
|
1088
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
1089
|
+
# field of subsequent `cases.search` requests. If unspecified, there are no more
|
1090
|
+
# results to retrieve.
|
1091
1091
|
# Corresponds to the JSON property `nextPageToken`
|
1092
1092
|
# @return [String]
|
1093
1093
|
attr_accessor :next_page_token
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudsupportV2beta
|
18
18
|
# Version of the google-apis-cloudsupport_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.28.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230920"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -50,26 +50,30 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
-
# Retrieve valid classifications to
|
54
|
-
#
|
55
|
-
# of the hierarchy
|
56
|
-
# Compute > Compute Engine"`. Classification IDs returned by
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
53
|
+
# Retrieve valid classifications to use when creating a support case.
|
54
|
+
# Classifications are hierarchical. Each classification is a string containing
|
55
|
+
# all levels of the hierarchy separated by `" > "`. For example, `"Technical
|
56
|
+
# Issue > Compute > Compute Engine"`. Classification IDs returned by this
|
57
|
+
# endpoint are valid for at least six months. When a classification is
|
58
|
+
# deactivated, this endpoint immediately stops returning it. After six months, `
|
59
|
+
# case.create` requests using the classification will fail. EXAMPLES: cURL: ```
|
60
|
+
# shell curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)"
|
61
|
+
# \ 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=
|
62
|
+
# display_name:"*Compute%20Engine*"' ``` Python: ```python import
|
63
|
+
# googleapiclient.discovery supportApiService = googleapiclient.discovery.build(
|
64
|
+
# serviceName="cloudsupport", version="v2", discoveryServiceUrl=f"https://
|
65
|
+
# cloudsupport.googleapis.com/$discovery/rest?version=v2", ) request =
|
66
|
+
# supportApiService.caseClassifications().search( query='display_name:"*Compute
|
67
|
+
# Engine*"' ) print(request.execute()) ```
|
64
68
|
# @param [Fixnum] page_size
|
65
|
-
# The maximum number of
|
69
|
+
# The maximum number of classifications fetched with each request.
|
66
70
|
# @param [String] page_token
|
67
71
|
# A token identifying the page of results to return. If unspecified, the first
|
68
72
|
# page is retrieved.
|
69
73
|
# @param [String] query
|
70
|
-
# An expression
|
71
|
-
#
|
72
|
-
#
|
74
|
+
# An expression used to filter case classifications. If it's an empty string,
|
75
|
+
# then no filtering happens. Otherwise, case classifications will be returned
|
76
|
+
# that match the filter.
|
73
77
|
# @param [String] fields
|
74
78
|
# Selector specifying which fields to include in a partial response.
|
75
79
|
# @param [String] quota_user
|
@@ -99,12 +103,17 @@ module Google
|
|
99
103
|
execute_or_queue_command(command, &block)
|
100
104
|
end
|
101
105
|
|
102
|
-
# Close
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
+
# Close a case. EXAMPLES: cURL: ```shell case="projects/some-project/cases/
|
107
|
+
# 43595344" curl \ --request POST \ --header "Authorization: Bearer $(gcloud
|
108
|
+
# auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case:
|
109
|
+
# close" ``` Python: ```python import googleapiclient.discovery api_version = "
|
110
|
+
# v2" supportApiService = googleapiclient.discovery.build( serviceName="
|
111
|
+
# cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
|
112
|
+
# googleapis.com/$discovery/rest?version=`api_version`", ) request =
|
113
|
+
# supportApiService.cases().close( name="projects/some-project/cases/43595344" )
|
114
|
+
# print(request.execute()) ```
|
106
115
|
# @param [String] name
|
107
|
-
# Required. The
|
116
|
+
# Required. The name of the case to close.
|
108
117
|
# @param [Google::Apis::CloudsupportV2beta::CloseCaseRequest] close_case_request_object
|
109
118
|
# @param [String] fields
|
110
119
|
# Selector specifying which fields to include in a partial response.
|
@@ -135,22 +144,29 @@ module Google
|
|
135
144
|
execute_or_queue_command(command, &block)
|
136
145
|
end
|
137
146
|
|
138
|
-
# Create a new case and associate it with a
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# close", "classification": ` "id": "
|
147
|
+
# Create a new case and associate it with a parent. It must have the following
|
148
|
+
# fields set: `display_name`, `description`, `classification`, and `priority`.
|
149
|
+
# If you're just testing the API and don't want to route your case to an agent,
|
150
|
+
# set `testCase=true`. EXAMPLES: cURL: ```shell parent="projects/some-project"
|
151
|
+
# curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-
|
152
|
+
# access-token)" \ --header 'Content-Type: application/json' \ --data '` "
|
153
|
+
# display_name": "Test case created by me.", "description": "a random test case,
|
154
|
+
# feel free to close", "classification": ` "id": "
|
147
155
|
# 1BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
148
156
|
# `, "time_zone": "-07:00", "subscriber_email_addresses": [ "foo@domain.com", "
|
149
157
|
# bar@domain.com" ], "testCase": true, "priority": "P3" `' \ "https://
|
150
|
-
# cloudsupport.googleapis.com/v2/$parent/cases" ```
|
158
|
+
# cloudsupport.googleapis.com/v2/$parent/cases" ``` Python: ```python import
|
159
|
+
# googleapiclient.discovery api_version = "v2" supportApiService =
|
160
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
161
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
162
|
+
# discovery/rest?version=`api_version`", ) request = supportApiService.cases().
|
163
|
+
# create( parent="projects/some-project", body=` "displayName": "A Test Case", "
|
164
|
+
# description": "This is a test case.", "testCase": True, "priority": "P2", "
|
165
|
+
# classification": ` "id": "
|
166
|
+
# 1BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
167
|
+
# `, `, ) print(request.execute()) ```
|
151
168
|
# @param [String] parent
|
152
|
-
# Required. The name of the
|
153
|
-
# created.
|
169
|
+
# Required. The name of the parent under which the case should be created.
|
154
170
|
# @param [Google::Apis::CloudsupportV2beta::Case] case_object
|
155
171
|
# @param [String] fields
|
156
172
|
# Selector specifying which fields to include in a partial response.
|
@@ -181,18 +197,24 @@ module Google
|
|
181
197
|
execute_or_queue_command(command, &block)
|
182
198
|
end
|
183
199
|
|
184
|
-
# Escalate a case
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
#
|
200
|
+
# Escalate a case, starting the Google Cloud Support escalation management
|
201
|
+
# process. This operation is only available for some support services. Go to
|
202
|
+
# https://cloud.google.com/support and look for 'Technical support escalations'
|
203
|
+
# in the feature list to find out which ones let you do that. EXAMPLES: cURL: ```
|
204
|
+
# shell case="projects/some-project/cases/43595344" curl \ --request POST \ --
|
205
|
+
# header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header "
|
206
|
+
# Content-Type: application/json" \ --data '` "escalation": ` "reason": "
|
207
|
+
# BUSINESS_IMPACT", "justification": "This is a test escalation." ` `' \ "https:/
|
208
|
+
# /cloudsupport.googleapis.com/v2/$case:escalate" ``` Python: ```python import
|
209
|
+
# googleapiclient.discovery api_version = "v2" supportApiService =
|
210
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
211
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
212
|
+
# discovery/rest?version=`api_version`", ) request = supportApiService.cases().
|
213
|
+
# escalate( name="projects/some-project/cases/43595344", body=` "escalation": ` "
|
214
|
+
# reason": "BUSINESS_IMPACT", "justification": "This is a test escalation.", `, `
|
215
|
+
# , ) print(request.execute()) ```
|
194
216
|
# @param [String] name
|
195
|
-
# Required. The
|
217
|
+
# Required. The name of the case to be escalated.
|
196
218
|
# @param [Google::Apis::CloudsupportV2beta::EscalateCaseRequest] escalate_case_request_object
|
197
219
|
# @param [String] fields
|
198
220
|
# Selector specifying which fields to include in a partial response.
|
@@ -223,12 +245,17 @@ module Google
|
|
223
245
|
execute_or_queue_command(command, &block)
|
224
246
|
end
|
225
247
|
|
226
|
-
# Retrieve
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
248
|
+
# Retrieve a case. EXAMPLES: cURL: ```shell case="projects/some-project/cases/
|
249
|
+
# 16033687" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
|
250
|
+
# token)" \ "https://cloudsupport.googleapis.com/v2/$case" ``` Python: ```python
|
251
|
+
# import googleapiclient.discovery api_version = "v2" supportApiService =
|
252
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
253
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
254
|
+
# discovery/rest?version=`api_version`", ) request = supportApiService.cases().
|
255
|
+
# get( name="projects/some-project/cases/43595344", ) print(request.execute()) ``
|
256
|
+
# `
|
230
257
|
# @param [String] name
|
231
|
-
# Required. The
|
258
|
+
# Required. The full name of a case to be retrieved.
|
232
259
|
# @param [String] fields
|
233
260
|
# Selector specifying which fields to include in a partial response.
|
234
261
|
# @param [String] quota_user
|
@@ -256,25 +283,29 @@ module Google
|
|
256
283
|
execute_or_queue_command(command, &block)
|
257
284
|
end
|
258
285
|
|
259
|
-
# Retrieve all cases under
|
260
|
-
# organization returns
|
261
|
-
# retrieve
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
286
|
+
# Retrieve all cases under a parent, but not its children. For example, listing
|
287
|
+
# cases under an organization only returns the cases that are directly parented
|
288
|
+
# by that organization. To retrieve cases under an organization and its projects,
|
289
|
+
# use `cases.search`. EXAMPLES: cURL: ```shell parent="projects/some-project"
|
290
|
+
# curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "
|
291
|
+
# https://cloudsupport.googleapis.com/v2/$parent/cases" ``` Python: ```python
|
292
|
+
# import googleapiclient.discovery api_version = "v2" supportApiService =
|
293
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
294
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
295
|
+
# discovery/rest?version=`api_version`", ) request = supportApiService.cases().
|
296
|
+
# list(parent="projects/some-project") print(request.execute()) ```
|
266
297
|
# @param [String] parent
|
267
|
-
# Required. The
|
298
|
+
# Required. The name of a parent to list cases under.
|
268
299
|
# @param [String] filter
|
269
|
-
# An expression
|
270
|
-
#
|
271
|
-
#
|
272
|
-
# - `state`:
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
300
|
+
# An expression used to filter cases. If it's an empty string, then no filtering
|
301
|
+
# happens. Otherwise, the endpoint returns the cases that match the filter.
|
302
|
+
# Expressions use the following fields separated by `AND` and specified with `=`:
|
303
|
+
# - `state`: Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `P1`, `P2`, `
|
304
|
+
# P3`, or `P4`. You can specify multiple values for priority using the `OR`
|
305
|
+
# operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The
|
306
|
+
# email address of the case creator. EXAMPLES: - `state=CLOSED` - `state=OPEN
|
307
|
+
# AND creator.email="tester@example.com"` - `state=OPEN AND (priority=P0 OR
|
308
|
+
# priority=P1)`
|
278
309
|
# @param [Fixnum] page_size
|
279
310
|
# The maximum number of cases fetched with each request. Defaults to 10.
|
280
311
|
# @param [String] page_token
|
@@ -310,23 +341,28 @@ module Google
|
|
310
341
|
execute_or_queue_command(command, &block)
|
311
342
|
end
|
312
343
|
|
313
|
-
# Update
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
344
|
+
# Update a case. Only some fields can be updated. EXAMPLES: cURL: ```shell case="
|
345
|
+
# projects/some-project/cases/43595344" curl \ --request PATCH \ --header "
|
346
|
+
# Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-
|
347
|
+
# Type: application/json" \ --data '` "priority": "P1" `' \ "https://
|
348
|
+
# cloudsupport.googleapis.com/v2/$case?updateMask=priority" ``` Python: ```
|
349
|
+
# python import googleapiclient.discovery api_version = "v2" supportApiService =
|
350
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
351
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
352
|
+
# discovery/rest?version=`api_version`", ) request = supportApiService.cases().
|
353
|
+
# patch( name="projects/some-project/cases/43112854", body=` "displayName": "
|
354
|
+
# This is Now a New Title", "priority": "P2", `, ) print(request.execute()) ```
|
319
355
|
# @param [String] name
|
320
356
|
# The resource name for the case.
|
321
357
|
# @param [Google::Apis::CloudsupportV2beta::Case] case_object
|
322
358
|
# @param [String] update_mask
|
323
|
-
# A list of attributes of the case
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
359
|
+
# A list of attributes of the case that should be updated. Supported values are `
|
360
|
+
# priority`, `display_name`, and `subscriber_email_addresses`. If no fields are
|
361
|
+
# specified, all supported fields are updated. Be careful - if you do not
|
362
|
+
# provide a field mask, then you might accidentally clear some fields. For
|
363
|
+
# example, if you leave the field mask empty and do not provide a value for `
|
364
|
+
# subscriber_email_addresses`, then `subscriber_email_addresses` is updated to
|
365
|
+
# empty.
|
330
366
|
# @param [String] fields
|
331
367
|
# Selector specifying which fields to include in a partial response.
|
332
368
|
# @param [String] quota_user
|
@@ -357,10 +393,15 @@ module Google
|
|
357
393
|
execute_or_queue_command(command, &block)
|
358
394
|
end
|
359
395
|
|
360
|
-
# Search cases using
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
396
|
+
# Search for cases using a query. EXAMPLES: cURL: ```shell parent="projects/some-
|
397
|
+
# project" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
|
398
|
+
# token)" \ "https://cloudsupport.googleapis.com/v2/$parent/cases:search" ```
|
399
|
+
# Python: ```python import googleapiclient.discovery api_version = "v2"
|
400
|
+
# supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport"
|
401
|
+
# , version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.
|
402
|
+
# com/$discovery/rest?version=`api_version`", ) request = supportApiService.
|
403
|
+
# cases().search( parent="projects/some-project", query="state=OPEN" ) print(
|
404
|
+
# request.execute()) ```
|
364
405
|
# @param [Fixnum] page_size
|
365
406
|
# The maximum number of cases fetched with each request. The default page size
|
366
407
|
# is 10.
|
@@ -368,28 +409,27 @@ module Google
|
|
368
409
|
# A token identifying the page of results to return. If unspecified, the first
|
369
410
|
# page is retrieved.
|
370
411
|
# @param [String] parent
|
371
|
-
# The
|
412
|
+
# The name of the parent resource to search for cases under.
|
372
413
|
# @param [String] query
|
373
|
-
# An expression
|
374
|
-
#
|
414
|
+
# An expression used to filter cases. Expressions use the following fields
|
415
|
+
# separated by `AND` and specified with `=`: - `organization`: An organization
|
375
416
|
# name in the form `organizations/`. - `project`: A project name in the form `
|
376
|
-
# projects/`. - `state`:
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
391
|
-
#
|
392
|
-
# P0 OR priority=P1)`
|
417
|
+
# projects/`. - `state`: Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `
|
418
|
+
# P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using
|
419
|
+
# the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`
|
420
|
+
# : The email address of the case creator. - `billingAccount`: A billing account
|
421
|
+
# in the form `billingAccounts/` You must specify either `organization` or `
|
422
|
+
# project`. To search across `displayName`, `description`, and comments, use a
|
423
|
+
# global restriction with no keyword or operator. For example, `"my search"`. To
|
424
|
+
# search only cases updated after a certain date, use `update_time` restricted
|
425
|
+
# with that particular date, time, and timezone in ISO datetime format. For
|
426
|
+
# example, `update_time>"2020-01-01T00:00:00-05:00"`. `update_time` only
|
427
|
+
# supports the greater than operator (`>`). Examples: - `organization="
|
428
|
+
# organizations/123456789"` - `project="projects/my-project-id"` - `project="
|
429
|
+
# projects/123456789"` - `billing_account="billingAccounts/123456-A0B0C0-CUZ789"`
|
430
|
+
# - `organization="organizations/123456789" AND state=CLOSED` - `project="
|
431
|
+
# projects/my-project-id" AND creator.email="tester@example.com"` - `project="
|
432
|
+
# projects/my-project-id" AND (priority=P0 OR priority=P1)`
|
393
433
|
# @param [String] fields
|
394
434
|
# Selector specifying which fields to include in a partial response.
|
395
435
|
# @param [String] quota_user
|
@@ -420,13 +460,18 @@ module Google
|
|
420
460
|
execute_or_queue_command(command, &block)
|
421
461
|
end
|
422
462
|
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
463
|
+
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
|
464
|
+
# shell case="projects/some-project/cases/23598314" curl \ --header "
|
465
|
+
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
|
466
|
+
# cloudsupport.googleapis.com/v2/$case/attachments" ``` Python: ```python import
|
467
|
+
# googleapiclient.discovery api_version = "v2" supportApiService =
|
468
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
469
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
470
|
+
# discovery/rest?version=`api_version`", ) request = ( supportApiService.cases()
|
471
|
+
# .attachments() .list(parent="projects/some-project/cases/43595344") ) print(
|
472
|
+
# request.execute()) ```
|
427
473
|
# @param [String] parent
|
428
|
-
# Required. The
|
429
|
-
# listed.
|
474
|
+
# Required. The name of the case for which attachments should be listed.
|
430
475
|
# @param [Fixnum] page_size
|
431
476
|
# The maximum number of attachments fetched with each request. If not provided,
|
432
477
|
# the default is 10. The maximum page size that will be returned is 100.
|
@@ -462,14 +507,20 @@ module Google
|
|
462
507
|
execute_or_queue_command(command, &block)
|
463
508
|
end
|
464
509
|
|
465
|
-
# Add a new comment to
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
510
|
+
# Add a new comment to a case. The comment must have the following fields set: `
|
511
|
+
# body`. EXAMPLES: cURL: ```shell case="projects/some-project/cases/43591344"
|
512
|
+
# curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-
|
513
|
+
# access-token)" \ --header 'Content-Type: application/json' \ --data '` "body":
|
514
|
+
# "This is a test comment." `' \ "https://cloudsupport.googleapis.com/v2/$case/
|
515
|
+
# comments" ``` Python: ```python import googleapiclient.discovery api_version =
|
516
|
+
# "v2" supportApiService = googleapiclient.discovery.build( serviceName="
|
517
|
+
# cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
|
518
|
+
# googleapis.com/$discovery/rest?version=`api_version`", ) request = (
|
519
|
+
# supportApiService.cases() .comments() .create( parent="projects/some-project/
|
520
|
+
# cases/43595344", body=`"body": "This is a test comment."`, ) ) print(request.
|
521
|
+
# execute()) ```
|
471
522
|
# @param [String] parent
|
472
|
-
# Required. The
|
523
|
+
# Required. The name of the case to which the comment should be added.
|
473
524
|
# @param [Google::Apis::CloudsupportV2beta::Comment] comment_object
|
474
525
|
# @param [String] fields
|
475
526
|
# Selector specifying which fields to include in a partial response.
|
@@ -500,18 +551,22 @@ module Google
|
|
500
551
|
execute_or_queue_command(command, &block)
|
501
552
|
end
|
502
553
|
|
503
|
-
#
|
504
|
-
#
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
554
|
+
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
|
555
|
+
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
|
556
|
+
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
|
557
|
+
# case/comments" ``` Python: ```python import googleapiclient.discovery
|
558
|
+
# api_version = "v2" supportApiService = googleapiclient.discovery.build(
|
559
|
+
# serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://
|
560
|
+
# cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", ) request =
|
561
|
+
# ( supportApiService.cases() .comments() .list(parent="projects/some-project/
|
562
|
+
# cases/43595344") ) print(request.execute()) ```
|
508
563
|
# @param [String] parent
|
509
|
-
# Required. The
|
564
|
+
# Required. The name of the case for which to list comments.
|
510
565
|
# @param [Fixnum] page_size
|
511
|
-
# The maximum number of comments
|
566
|
+
# The maximum number of comments to fetch. Defaults to 10.
|
512
567
|
# @param [String] page_token
|
513
568
|
# A token identifying the page of results to return. If unspecified, the first
|
514
|
-
# page is
|
569
|
+
# page is returned.
|
515
570
|
# @param [String] fields
|
516
571
|
# Selector specifying which fields to include in a partial response.
|
517
572
|
# @param [String] quota_user
|
@@ -541,14 +596,19 @@ module Google
|
|
541
596
|
execute_or_queue_command(command, &block)
|
542
597
|
end
|
543
598
|
|
544
|
-
# Download a file
|
545
|
-
# media" to the URL.
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
549
|
-
#
|
599
|
+
# Download a file attached to a case. Note: HTTP requests must append "?alt=
|
600
|
+
# media" to the URL. EXAMPLES: cURL: ```shell name="projects/some-project/cases/
|
601
|
+
# 43594844/attachments/0674M00000WijAnZAJ" curl \ --header "Authorization:
|
602
|
+
# Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.
|
603
|
+
# com/v2/$name:download?alt=media" ``` Python: ```python import googleapiclient.
|
604
|
+
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
|
605
|
+
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
|
606
|
+
# https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
|
607
|
+
# request = supportApiService.media().download( name="projects/some-project/
|
608
|
+
# cases/43595344/attachments/0684M00000Pw6pHQAR" ) request.uri = request.uri.
|
609
|
+
# split("?")[0] + "?alt=media" print(request.execute()) ```
|
550
610
|
# @param [String] name
|
551
|
-
# The
|
611
|
+
# The name of the file attachment to download.
|
552
612
|
# @param [String] fields
|
553
613
|
# Selector specifying which fields to include in a partial response.
|
554
614
|
# @param [String] quota_user
|
@@ -583,17 +643,24 @@ module Google
|
|
583
643
|
execute_or_queue_command(command, &block)
|
584
644
|
end
|
585
645
|
|
586
|
-
# Create a file attachment on a case or Cloud resource. The attachment
|
587
|
-
#
|
588
|
-
#
|
589
|
-
#
|
590
|
-
#
|
591
|
-
#
|
592
|
-
#
|
593
|
-
#
|
646
|
+
# Create a file attachment on a case or Cloud resource. The attachment must have
|
647
|
+
# the following fields set: `filename`. EXAMPLES: cURL: ```shell echo "This text
|
648
|
+
# is in a file I'm uploading using CSAPI." \ > "./example_file.txt" case="
|
649
|
+
# projects/some-project/cases/43594844" curl \ --header "Authorization: Bearer $(
|
650
|
+
# gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \ "
|
651
|
+
# https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.
|
652
|
+
# filename=uploaded_via_curl.txt" ``` Python: ```python import googleapiclient.
|
653
|
+
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
|
654
|
+
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
|
655
|
+
# https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
|
656
|
+
# file_path = "./example_file.txt" with open(file_path, "w") as file: file.write(
|
657
|
+
# "This text is inside a file I'm going to upload using the Cloud Support API.",
|
658
|
+
# ) request = supportApiService.media().upload( parent="projects/some-project/
|
659
|
+
# cases/43595344", media_body=file_path ) request.uri = request.uri.split("?")[0]
|
660
|
+
# + "?attachment.filename=uploaded_via_python.txt" print(request.execute()) ```
|
594
661
|
# @param [String] parent
|
595
|
-
# Required. The
|
596
|
-
#
|
662
|
+
# Required. The name of the case or Cloud resource to which the attachment
|
663
|
+
# should be attached.
|
597
664
|
# @param [Google::Apis::CloudsupportV2beta::CreateAttachmentRequest] create_attachment_request_object
|
598
665
|
# @param [String] fields
|
599
666
|
# Selector specifying which fields to include in a partial response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudsupport_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.28.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|