google-apis-cloudsupport_v2 0.1.0 → 0.3.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: 8428da806093b08571631ddb3f6b0cb522f7629d0b883c1d7a609e5e6af6057d
4
- data.tar.gz: afc7b1b3186198a47522d403d0bb56d499918bf760235ed4b5633141e5372a08
3
+ metadata.gz: 9e71bf8078540186c463d7806e543dc506dec619582dd2dffeef5ad3ba1568b8
4
+ data.tar.gz: e49e75175d1e926e2f91e9c6a295a6a7cdce8270c0c80bd1545992cc53ab4ab8
5
5
  SHA512:
6
- metadata.gz: bebfeb05a60ae3407370943d7723f6690fc14edd814e12d618383fb5707da57daf42d1877d3edd1b7b710c3b5574a5fd31dd2b65ce5a4e9d91b62dae2a772583
7
- data.tar.gz: 3a976b71aa49e1cade7a3ebdb4f043c8dd749403281f5b02c6cf827c42173c33ffe6cf42d1794890a5525f39fc55fed168e59bfdd5ca4fa2ca2fb8639bb6162d
6
+ metadata.gz: 1c08c3bde964244b221e8f68863bd7146454c4571281e7f4f6f59fe4b4bf77fa0e2ee09de8018eb627fc5a39999f968bfb039bc67336add106f196782e4626e7
7
+ data.tar.gz: db504c2fde0cf65eca87bdd05160ce5c5efff0955b5f07443cfc35b91cc60a6cb74156875fd92b990811ea09a52963baeab01c99a1502d02c2123dd96cc0db61
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudsupport_v2
2
2
 
3
+ ### v0.3.0 (2023-08-27)
4
+
5
+ * Regenerated from discovery document revision 20230818
6
+
7
+ ### v0.2.0 (2023-08-03)
8
+
9
+ * Regenerated from discovery document revision 20230725
10
+
3
11
  ### v0.1.0 (2023-07-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230626
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudsupportV2
18
18
  # Version of the google-apis-cloudsupport_v2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.3.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 = "20230626"
25
+ REVISION = "20230818"
26
26
  end
27
27
  end
28
28
  end
@@ -54,10 +54,13 @@ module Google
54
54
  # classications are hierarchical, with each classification containing all levels
55
55
  # of the hierarchy, separated by `" > "`. For example `"Technical Issue >
56
56
  # Compute > Compute Engine"`. Classification IDs returned by `
57
- # caseClassifications.search` are guaranteed to be valid for at least 6 months.
58
- # If a given classification is deactiveated, it will immediately stop being
59
- # returned. After 6 months, `case.create` requests using the classification ID
60
- # will fail.
57
+ # caseClassifications.search` are guaranteed to be valid for at least six months.
58
+ # If a given classification is deactivated, it immediately stops being returned.
59
+ # After six months, `case.create` requests using the classification ID will
60
+ # fail. Here is an example of calling this endpoint using cURL: ```shell curl \ -
61
+ # -header "Authorization: Bearer $(gcloud auth print-access-token)" \ 'https://
62
+ # cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*
63
+ # Compute%20Engine*"' ```
61
64
  # @param [Fixnum] page_size
62
65
  # The maximum number of cases fetched with each request.
63
66
  # @param [String] page_token
@@ -96,7 +99,10 @@ module Google
96
99
  execute_or_queue_command(command, &block)
97
100
  end
98
101
 
99
- # Close the specified case.
102
+ # Close the specified case. Here is an example of calling this endpoint using
103
+ # cURL: ```shell case="projects/some-project/cases/43595344" curl \ --request
104
+ # POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "
105
+ # https://cloudsupport.googleapis.com/v2/$case:close" ```
100
106
  # @param [String] name
101
107
  # Required. The fully qualified name of the case resource to be closed.
102
108
  # @param [Google::Apis::CloudsupportV2::CloseCaseRequest] close_case_request_object
@@ -129,9 +135,19 @@ module Google
129
135
  execute_or_queue_command(command, &block)
130
136
  end
131
137
 
132
- # Create a new case and associate it with the given Google Cloud Resource. The
133
- # case object must have the following fields set: `display_name`, `description`,
134
- # `classification`, and `priority`.
138
+ # Create a new case and associate it with a Google Cloud Resource. The case
139
+ # object must have the following fields set: `display_name`, `description`, `
140
+ # classification`, and `priority`. If you're just testing the API and don't want
141
+ # to route your case to an agent, set `testCase=true`. Here is an example of
142
+ # calling this endpoint using cURL: ```shell parent="projects/some-project" curl
143
+ # \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-
144
+ # token)" \ --header 'Content-Type: application/json' \ --data '` "display_name":
145
+ # "Test case created by me.", "description": "a random test case, feel free to
146
+ # close", "classification": ` "id": "
147
+ # 1BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
148
+ # `, "time_zone": "-07:00", "subscriber_email_addresses": [ "foo@domain.com", "
149
+ # bar@domain.com" ], "testCase": true, "priority": "P3" `' \ "https://
150
+ # cloudsupport.googleapis.com/v2/$parent/cases" ```
135
151
  # @param [String] parent
136
152
  # Required. The name of the Google Cloud Resource under which the case should be
137
153
  # created.
@@ -165,11 +181,16 @@ module Google
165
181
  execute_or_queue_command(command, &block)
166
182
  end
167
183
 
168
- # Escalate a case. Escalating a case will initiate the Google Cloud Support
184
+ # Escalate a case. Escalating a case initiates the Google Cloud Support
169
185
  # escalation management process. This operation is only available to certain
170
- # Customer Care tiers. Go to https://cloud.google.com/support and look for '
171
- # Technical support escalations' in the feature list to find out which tiers are
172
- # able to perform escalations.
186
+ # Customer Care support services. Go to https://cloud.google.com/support and
187
+ # look for 'Technical support escalations' in the feature list to find out which
188
+ # support services let you perform escalations. Here is an example of calling
189
+ # this endpoint using cURL: ```shell case="projects/some-project/cases/43595344"
190
+ # curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-
191
+ # access-token)" \ --header "Content-Type: application/json" \ --data '` "
192
+ # escalation": ` "reason": "BUSINESS_IMPACT", "justification": "This is a test
193
+ # escalation." ` `' \ "https://cloudsupport.googleapis.com/v2/$case:escalate" ```
173
194
  # @param [String] name
174
195
  # Required. The fully qualified name of the Case resource to be escalated.
175
196
  # @param [Google::Apis::CloudsupportV2::EscalateCaseRequest] escalate_case_request_object
@@ -202,7 +223,10 @@ module Google
202
223
  execute_or_queue_command(command, &block)
203
224
  end
204
225
 
205
- # Retrieve the specified case.
226
+ # Retrieve the specified case. Here is an example of calling this endpoint using
227
+ # cURL: ```shell case="projects/some-project/cases/16033687" curl \ --header "
228
+ # Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
229
+ # cloudsupport.googleapis.com/v2/$case" ```
206
230
  # @param [String] name
207
231
  # Required. The fully qualified name of a case to be retrieved.
208
232
  # @param [String] fields
@@ -233,9 +257,12 @@ module Google
233
257
  end
234
258
 
235
259
  # Retrieve all cases under the specified parent. Note: Listing cases under an
236
- # Organization returns only the cases directly parented by that organization. To
260
+ # organization returns only the cases directly parented by that organization. To
237
261
  # retrieve all cases under an organization, including cases parented by projects
238
- # under that organization, use `cases.search`.
262
+ # under that organization, use `cases.search`. Here is an example of calling
263
+ # this endpoint using cURL: ```shell parent="projects/some-project" curl \ --
264
+ # header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
265
+ # cloudsupport.googleapis.com/v2/$parent/cases" ```
239
266
  # @param [String] parent
240
267
  # Required. The fully qualified name of parent resource to list cases under.
241
268
  # @param [String] filter
@@ -283,7 +310,12 @@ module Google
283
310
  execute_or_queue_command(command, &block)
284
311
  end
285
312
 
286
- # Update the specified case. Only a subset of fields can be updated.
313
+ # Update the specified case. Only a subset of fields can be updated. Here is an
314
+ # example of calling this endpoint using cURL: ```shell case="projects/some-
315
+ # project/cases/43595344" curl \ --request PATCH \ --header "Authorization:
316
+ # Bearer $(gcloud auth print-access-token)" \ --header "Content-Type:
317
+ # application/json" \ --data '` "priority": "P1" `' \ "https://cloudsupport.
318
+ # googleapis.com/v2/$case?updateMask=priority" ```
287
319
  # @param [String] name
288
320
  # The resource name for the case.
289
321
  # @param [Google::Apis::CloudsupportV2::Case] case_object
@@ -325,7 +357,10 @@ module Google
325
357
  execute_or_queue_command(command, &block)
326
358
  end
327
359
 
328
- # Search cases using the specified query.
360
+ # Search cases using the specified query. Here is an example of calling this
361
+ # endpoint using cURL: ```shell parent="projects/some-project" curl \ --header "
362
+ # Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
363
+ # cloudsupport.googleapis.com/v2/$parent/cases:search" ```
329
364
  # @param [String] parent
330
365
  # The fully qualified name of parent resource to search cases under.
331
366
  # @param [Fixnum] page_size
@@ -385,7 +420,10 @@ module Google
385
420
  execute_or_queue_command(command, &block)
386
421
  end
387
422
 
388
- # Retrieve all attachments associated with a support case.
423
+ # Retrieve all attachments associated with a support case. Here is an example of
424
+ # calling this endpoint using cURL: ```shell case="projects/some-project/cases/
425
+ # 23598314" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
426
+ # token)" \ "https://cloudsupport.googleapis.com/v2/$case/attachments" ```
389
427
  # @param [String] parent
390
428
  # Required. The resource name of Case object for which attachments should be
391
429
  # listed.
@@ -425,7 +463,11 @@ module Google
425
463
  end
426
464
 
427
465
  # Add a new comment to the specified Case. The comment object must have the
428
- # following fields set: body.
466
+ # following fields set: body. Here is an example of calling this endpoint using
467
+ # cURL: ```shell case="projects/some-project/cases/43591344" curl \ --request
468
+ # POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --
469
+ # header 'Content-Type: application/json' \ --data '` "body": "This is a test
470
+ # comment." `' \ "https://cloudsupport.googleapis.com/v2/$case/comments" ```
429
471
  # @param [String] parent
430
472
  # Required. The resource name of Case to which this comment should be added.
431
473
  # @param [Google::Apis::CloudsupportV2::Comment] comment_object
@@ -458,7 +500,11 @@ module Google
458
500
  execute_or_queue_command(command, &block)
459
501
  end
460
502
 
461
- # Retrieve all Comments associated with the Case object.
503
+ # Retrieve all comments associated with the Case object. Here is an example of
504
+ # calling this endpoint using cURL: ```shell case="projects/cloud-support-qa-
505
+ # premium/cases/43595344" curl \ --header "Authorization: Bearer $(gcloud auth
506
+ # print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case/comments"
507
+ # ```
462
508
  # @param [String] parent
463
509
  # Required. The resource name of Case object for which comments should be listed.
464
510
  # @param [Fixnum] page_size
@@ -496,7 +542,11 @@ module Google
496
542
  end
497
543
 
498
544
  # Download a file attachment on a case. Note: HTTP requests must append "?alt=
499
- # media" to the URL.
545
+ # media" to the URL. Here is an example of calling this endpoint using cURL: ```
546
+ # shell name="projects/some-project/cases/43594844/attachments/
547
+ # 0674M00000WijAnZAJ" curl \ --header "Authorization: Bearer $(gcloud auth print-
548
+ # access-token)" \ "https://cloudsupport.googleapis.com/v2/$name:download?alt=
549
+ # media" ```
500
550
  # @param [String] name
501
551
  # The resource name of the attachment to be downloaded.
502
552
  # @param [String] fields
@@ -534,7 +584,13 @@ module Google
534
584
  end
535
585
 
536
586
  # Create a file attachment on a case or Cloud resource. The attachment object
537
- # must have the following fields set: filename.
587
+ # must have the following fields set: filename. Here is an example of calling
588
+ # this endpoint using cURL: ```shell echo "This text is in a file I'm uploading
589
+ # using CSAPI." \ > "./example_file.txt" case="projects/some-project/cases/
590
+ # 43594844" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
591
+ # token)" \ --data-binary @"./example_file.txt" \ "https://cloudsupport.
592
+ # googleapis.com/upload/v2beta/$case/attachments?attachment.filename=
593
+ # uploaded_via_curl.txt" ```
538
594
  # @param [String] parent
539
595
  # Required. The resource name of the case (or case parent) to which the
540
596
  # attachment should be attached.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudsupport_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.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-07-02 00:00:00.000000000 Z
11
+ date: 2023-08-27 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.3.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Cloud Support API V2