google-apis-cloudsupport_v2 0.1.0

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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module CloudsupportV2
18
+ # Version of the google-apis-cloudsupport_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.12.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20230626"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,484 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudsupportV2
24
+
25
+ class Actor
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Attachment
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Blobstore2Info
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Case
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CaseClassification
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CloseCaseRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Comment
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CompositeMedia
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ContentTypeInfo
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class CreateAttachmentRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class DiffChecksumsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class DiffDownloadResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class DiffUploadRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class DiffUploadResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class DiffVersionResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class DownloadParameters
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class EscalateCaseRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Escalation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListAttachmentsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListCasesResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListCommentsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Media
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ObjectIdProp
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class SearchCaseClassificationsResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class SearchCasesResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class WorkflowOperationMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Actor
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :display_name, as: 'displayName'
185
+ property :email, as: 'email'
186
+ property :google_support, as: 'googleSupport'
187
+ end
188
+ end
189
+
190
+ class Attachment
191
+ # @private
192
+ class Representation < Google::Apis::Core::JsonRepresentation
193
+ property :create_time, as: 'createTime'
194
+ property :creator, as: 'creator', class: Google::Apis::CloudsupportV2::Actor, decorator: Google::Apis::CloudsupportV2::Actor::Representation
195
+
196
+ property :filename, as: 'filename'
197
+ property :mime_type, as: 'mimeType'
198
+ property :name, as: 'name'
199
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
200
+ end
201
+ end
202
+
203
+ class Blobstore2Info
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ property :blob_generation, :numeric_string => true, as: 'blobGeneration'
207
+ property :blob_id, as: 'blobId'
208
+ property :download_read_handle, :base64 => true, as: 'downloadReadHandle'
209
+ property :read_token, as: 'readToken'
210
+ property :upload_metadata_container, :base64 => true, as: 'uploadMetadataContainer'
211
+ end
212
+ end
213
+
214
+ class Case
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :classification, as: 'classification', class: Google::Apis::CloudsupportV2::CaseClassification, decorator: Google::Apis::CloudsupportV2::CaseClassification::Representation
218
+
219
+ property :contact_email, as: 'contactEmail'
220
+ property :create_time, as: 'createTime'
221
+ property :creator, as: 'creator', class: Google::Apis::CloudsupportV2::Actor, decorator: Google::Apis::CloudsupportV2::Actor::Representation
222
+
223
+ property :description, as: 'description'
224
+ property :display_name, as: 'displayName'
225
+ property :escalated, as: 'escalated'
226
+ property :language_code, as: 'languageCode'
227
+ property :name, as: 'name'
228
+ property :priority, as: 'priority'
229
+ property :state, as: 'state'
230
+ collection :subscriber_email_addresses, as: 'subscriberEmailAddresses'
231
+ property :test_case, as: 'testCase'
232
+ property :time_zone, as: 'timeZone'
233
+ property :update_time, as: 'updateTime'
234
+ end
235
+ end
236
+
237
+ class CaseClassification
238
+ # @private
239
+ class Representation < Google::Apis::Core::JsonRepresentation
240
+ property :display_name, as: 'displayName'
241
+ property :id, as: 'id'
242
+ end
243
+ end
244
+
245
+ class CloseCaseRequest
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ end
249
+ end
250
+
251
+ class Comment
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ property :body, as: 'body'
255
+ property :create_time, as: 'createTime'
256
+ property :creator, as: 'creator', class: Google::Apis::CloudsupportV2::Actor, decorator: Google::Apis::CloudsupportV2::Actor::Representation
257
+
258
+ property :name, as: 'name'
259
+ property :plain_text_body, as: 'plainTextBody'
260
+ end
261
+ end
262
+
263
+ class CompositeMedia
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :blob_ref, :base64 => true, as: 'blobRef'
267
+ property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::CloudsupportV2::Blobstore2Info, decorator: Google::Apis::CloudsupportV2::Blobstore2Info::Representation
268
+
269
+ property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
270
+ property :crc32c_hash, as: 'crc32cHash'
271
+ property :inline, :base64 => true, as: 'inline'
272
+ property :length, :numeric_string => true, as: 'length'
273
+ property :md5_hash, :base64 => true, as: 'md5Hash'
274
+ property :object_id_prop, as: 'objectId', class: Google::Apis::CloudsupportV2::ObjectIdProp, decorator: Google::Apis::CloudsupportV2::ObjectIdProp::Representation
275
+
276
+ property :path, as: 'path'
277
+ property :reference_type, as: 'referenceType'
278
+ property :sha1_hash, :base64 => true, as: 'sha1Hash'
279
+ end
280
+ end
281
+
282
+ class ContentTypeInfo
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :best_guess, as: 'bestGuess'
286
+ property :from_bytes, as: 'fromBytes'
287
+ property :from_file_name, as: 'fromFileName'
288
+ property :from_header, as: 'fromHeader'
289
+ property :from_url_path, as: 'fromUrlPath'
290
+ end
291
+ end
292
+
293
+ class CreateAttachmentRequest
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ property :attachment, as: 'attachment', class: Google::Apis::CloudsupportV2::Attachment, decorator: Google::Apis::CloudsupportV2::Attachment::Representation
297
+
298
+ end
299
+ end
300
+
301
+ class DiffChecksumsResponse
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :checksums_location, as: 'checksumsLocation', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
305
+
306
+ property :chunk_size_bytes, :numeric_string => true, as: 'chunkSizeBytes'
307
+ property :object_location, as: 'objectLocation', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
308
+
309
+ property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
310
+ property :object_version, as: 'objectVersion'
311
+ end
312
+ end
313
+
314
+ class DiffDownloadResponse
315
+ # @private
316
+ class Representation < Google::Apis::Core::JsonRepresentation
317
+ property :object_location, as: 'objectLocation', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
318
+
319
+ end
320
+ end
321
+
322
+ class DiffUploadRequest
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :checksums_info, as: 'checksumsInfo', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
326
+
327
+ property :object_info, as: 'objectInfo', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
328
+
329
+ property :object_version, as: 'objectVersion'
330
+ end
331
+ end
332
+
333
+ class DiffUploadResponse
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ property :object_version, as: 'objectVersion'
337
+ property :original_object, as: 'originalObject', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
338
+
339
+ end
340
+ end
341
+
342
+ class DiffVersionResponse
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
346
+ property :object_version, as: 'objectVersion'
347
+ end
348
+ end
349
+
350
+ class DownloadParameters
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ property :allow_gzip_compression, as: 'allowGzipCompression'
354
+ property :ignore_range, as: 'ignoreRange'
355
+ end
356
+ end
357
+
358
+ class EscalateCaseRequest
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ property :escalation, as: 'escalation', class: Google::Apis::CloudsupportV2::Escalation, decorator: Google::Apis::CloudsupportV2::Escalation::Representation
362
+
363
+ end
364
+ end
365
+
366
+ class Escalation
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :justification, as: 'justification'
370
+ property :reason, as: 'reason'
371
+ end
372
+ end
373
+
374
+ class ListAttachmentsResponse
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ collection :attachments, as: 'attachments', class: Google::Apis::CloudsupportV2::Attachment, decorator: Google::Apis::CloudsupportV2::Attachment::Representation
378
+
379
+ property :next_page_token, as: 'nextPageToken'
380
+ end
381
+ end
382
+
383
+ class ListCasesResponse
384
+ # @private
385
+ class Representation < Google::Apis::Core::JsonRepresentation
386
+ collection :cases, as: 'cases', class: Google::Apis::CloudsupportV2::Case, decorator: Google::Apis::CloudsupportV2::Case::Representation
387
+
388
+ property :next_page_token, as: 'nextPageToken'
389
+ end
390
+ end
391
+
392
+ class ListCommentsResponse
393
+ # @private
394
+ class Representation < Google::Apis::Core::JsonRepresentation
395
+ collection :comments, as: 'comments', class: Google::Apis::CloudsupportV2::Comment, decorator: Google::Apis::CloudsupportV2::Comment::Representation
396
+
397
+ property :next_page_token, as: 'nextPageToken'
398
+ end
399
+ end
400
+
401
+ class Media
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :algorithm, as: 'algorithm'
405
+ property :bigstore_object_ref, :base64 => true, as: 'bigstoreObjectRef'
406
+ property :blob_ref, :base64 => true, as: 'blobRef'
407
+ property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::CloudsupportV2::Blobstore2Info, decorator: Google::Apis::CloudsupportV2::Blobstore2Info::Representation
408
+
409
+ collection :composite_media, as: 'compositeMedia', class: Google::Apis::CloudsupportV2::CompositeMedia, decorator: Google::Apis::CloudsupportV2::CompositeMedia::Representation
410
+
411
+ property :content_type, as: 'contentType'
412
+ property :content_type_info, as: 'contentTypeInfo', class: Google::Apis::CloudsupportV2::ContentTypeInfo, decorator: Google::Apis::CloudsupportV2::ContentTypeInfo::Representation
413
+
414
+ property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
415
+ property :crc32c_hash, as: 'crc32cHash'
416
+ property :diff_checksums_response, as: 'diffChecksumsResponse', class: Google::Apis::CloudsupportV2::DiffChecksumsResponse, decorator: Google::Apis::CloudsupportV2::DiffChecksumsResponse::Representation
417
+
418
+ property :diff_download_response, as: 'diffDownloadResponse', class: Google::Apis::CloudsupportV2::DiffDownloadResponse, decorator: Google::Apis::CloudsupportV2::DiffDownloadResponse::Representation
419
+
420
+ property :diff_upload_request, as: 'diffUploadRequest', class: Google::Apis::CloudsupportV2::DiffUploadRequest, decorator: Google::Apis::CloudsupportV2::DiffUploadRequest::Representation
421
+
422
+ property :diff_upload_response, as: 'diffUploadResponse', class: Google::Apis::CloudsupportV2::DiffUploadResponse, decorator: Google::Apis::CloudsupportV2::DiffUploadResponse::Representation
423
+
424
+ property :diff_version_response, as: 'diffVersionResponse', class: Google::Apis::CloudsupportV2::DiffVersionResponse, decorator: Google::Apis::CloudsupportV2::DiffVersionResponse::Representation
425
+
426
+ property :download_parameters, as: 'downloadParameters', class: Google::Apis::CloudsupportV2::DownloadParameters, decorator: Google::Apis::CloudsupportV2::DownloadParameters::Representation
427
+
428
+ property :filename, as: 'filename'
429
+ property :hash_prop, as: 'hash'
430
+ property :hash_verified, as: 'hashVerified'
431
+ property :inline, :base64 => true, as: 'inline'
432
+ property :is_potential_retry, as: 'isPotentialRetry'
433
+ property :length, :numeric_string => true, as: 'length'
434
+ property :md5_hash, :base64 => true, as: 'md5Hash'
435
+ property :media_id, :base64 => true, as: 'mediaId'
436
+ property :object_id_prop, as: 'objectId', class: Google::Apis::CloudsupportV2::ObjectIdProp, decorator: Google::Apis::CloudsupportV2::ObjectIdProp::Representation
437
+
438
+ property :path, as: 'path'
439
+ property :reference_type, as: 'referenceType'
440
+ property :sha1_hash, :base64 => true, as: 'sha1Hash'
441
+ property :sha256_hash, :base64 => true, as: 'sha256Hash'
442
+ property :timestamp, :numeric_string => true, as: 'timestamp'
443
+ property :token, as: 'token'
444
+ end
445
+ end
446
+
447
+ class ObjectIdProp
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ property :bucket_name, as: 'bucketName'
451
+ property :generation, :numeric_string => true, as: 'generation'
452
+ property :object_name, as: 'objectName'
453
+ end
454
+ end
455
+
456
+ class SearchCaseClassificationsResponse
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ collection :case_classifications, as: 'caseClassifications', class: Google::Apis::CloudsupportV2::CaseClassification, decorator: Google::Apis::CloudsupportV2::CaseClassification::Representation
460
+
461
+ property :next_page_token, as: 'nextPageToken'
462
+ end
463
+ end
464
+
465
+ class SearchCasesResponse
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ collection :cases, as: 'cases', class: Google::Apis::CloudsupportV2::Case, decorator: Google::Apis::CloudsupportV2::Case::Representation
469
+
470
+ property :next_page_token, as: 'nextPageToken'
471
+ end
472
+ end
473
+
474
+ class WorkflowOperationMetadata
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :namespace, as: 'namespace'
478
+ property :operation_action, as: 'operationAction'
479
+ property :workflow_operation_type, as: 'workflowOperationType'
480
+ end
481
+ end
482
+ end
483
+ end
484
+ end