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,1133 @@
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
+ # An object containing information about the effective user and authenticated
26
+ # principal responsible for an action.
27
+ class Actor
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The name to display for the actor. If not provided, it is inferred from
31
+ # credentials supplied during case creation. When an email is provided, a
32
+ # display name must also be provided. This will be obfuscated if the user is a
33
+ # Google Support agent.
34
+ # Corresponds to the JSON property `displayName`
35
+ # @return [String]
36
+ attr_accessor :display_name
37
+
38
+ # The email address of the actor. If not provided, it is inferred from
39
+ # credentials supplied during case creation. If the authenticated principal does
40
+ # not have an email address, one must be provided. When a name is provided, an
41
+ # email must also be provided. This will be obfuscated if the user is a Google
42
+ # Support agent.
43
+ # Corresponds to the JSON property `email`
44
+ # @return [String]
45
+ attr_accessor :email
46
+
47
+ # Output only. Whether the actor is a Google support actor.
48
+ # Corresponds to the JSON property `googleSupport`
49
+ # @return [Boolean]
50
+ attr_accessor :google_support
51
+ alias_method :google_support?, :google_support
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @display_name = args[:display_name] if args.key?(:display_name)
60
+ @email = args[:email] if args.key?(:email)
61
+ @google_support = args[:google_support] if args.key?(:google_support)
62
+ end
63
+ end
64
+
65
+ # Represents a file attached to a support case.
66
+ class Attachment
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # Output only. The time at which the attachment was created.
70
+ # Corresponds to the JSON property `createTime`
71
+ # @return [String]
72
+ attr_accessor :create_time
73
+
74
+ # An object containing information about the effective user and authenticated
75
+ # principal responsible for an action.
76
+ # Corresponds to the JSON property `creator`
77
+ # @return [Google::Apis::CloudsupportV2::Actor]
78
+ attr_accessor :creator
79
+
80
+ # The filename of the attachment (e.g. `"graph.jpg"`).
81
+ # Corresponds to the JSON property `filename`
82
+ # @return [String]
83
+ attr_accessor :filename
84
+
85
+ # Output only. The MIME type of the attachment (e.g. text/plain).
86
+ # Corresponds to the JSON property `mimeType`
87
+ # @return [String]
88
+ attr_accessor :mime_type
89
+
90
+ # Output only. The resource name of the attachment.
91
+ # Corresponds to the JSON property `name`
92
+ # @return [String]
93
+ attr_accessor :name
94
+
95
+ # Output only. The size of the attachment in bytes.
96
+ # Corresponds to the JSON property `sizeBytes`
97
+ # @return [Fixnum]
98
+ attr_accessor :size_bytes
99
+
100
+ def initialize(**args)
101
+ update!(**args)
102
+ end
103
+
104
+ # Update properties of this object
105
+ def update!(**args)
106
+ @create_time = args[:create_time] if args.key?(:create_time)
107
+ @creator = args[:creator] if args.key?(:creator)
108
+ @filename = args[:filename] if args.key?(:filename)
109
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
110
+ @name = args[:name] if args.key?(:name)
111
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
112
+ end
113
+ end
114
+
115
+ # # gdata.* are outside protos with mising documentation
116
+ class Blobstore2Info
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # # gdata.* are outside protos with mising documentation
120
+ # Corresponds to the JSON property `blobGeneration`
121
+ # @return [Fixnum]
122
+ attr_accessor :blob_generation
123
+
124
+ # # gdata.* are outside protos with mising documentation
125
+ # Corresponds to the JSON property `blobId`
126
+ # @return [String]
127
+ attr_accessor :blob_id
128
+
129
+ # # gdata.* are outside protos with mising documentation
130
+ # Corresponds to the JSON property `downloadReadHandle`
131
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
132
+ # @return [String]
133
+ attr_accessor :download_read_handle
134
+
135
+ # # gdata.* are outside protos with mising documentation
136
+ # Corresponds to the JSON property `readToken`
137
+ # @return [String]
138
+ attr_accessor :read_token
139
+
140
+ # # gdata.* are outside protos with mising documentation
141
+ # Corresponds to the JSON property `uploadMetadataContainer`
142
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
143
+ # @return [String]
144
+ attr_accessor :upload_metadata_container
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ @blob_generation = args[:blob_generation] if args.key?(:blob_generation)
153
+ @blob_id = args[:blob_id] if args.key?(:blob_id)
154
+ @download_read_handle = args[:download_read_handle] if args.key?(:download_read_handle)
155
+ @read_token = args[:read_token] if args.key?(:read_token)
156
+ @upload_metadata_container = args[:upload_metadata_container] if args.key?(:upload_metadata_container)
157
+ end
158
+ end
159
+
160
+ # A support case.
161
+ class Case
162
+ include Google::Apis::Core::Hashable
163
+
164
+ # A classification object with a product type and value.
165
+ # Corresponds to the JSON property `classification`
166
+ # @return [Google::Apis::CloudsupportV2::CaseClassification]
167
+ attr_accessor :classification
168
+
169
+ # A user-supplied email address to send case update notifications for. This
170
+ # should only be used in BYOID flows, where we cannot infer the user's email
171
+ # address directly from their EUCs.
172
+ # Corresponds to the JSON property `contactEmail`
173
+ # @return [String]
174
+ attr_accessor :contact_email
175
+
176
+ # Output only. The time this case was created.
177
+ # Corresponds to the JSON property `createTime`
178
+ # @return [String]
179
+ attr_accessor :create_time
180
+
181
+ # An object containing information about the effective user and authenticated
182
+ # principal responsible for an action.
183
+ # Corresponds to the JSON property `creator`
184
+ # @return [Google::Apis::CloudsupportV2::Actor]
185
+ attr_accessor :creator
186
+
187
+ # A broad description of the issue.
188
+ # Corresponds to the JSON property `description`
189
+ # @return [String]
190
+ attr_accessor :description
191
+
192
+ # The short summary of the issue reported in this case.
193
+ # Corresponds to the JSON property `displayName`
194
+ # @return [String]
195
+ attr_accessor :display_name
196
+
197
+ # Whether the case is currently escalated.
198
+ # Corresponds to the JSON property `escalated`
199
+ # @return [Boolean]
200
+ attr_accessor :escalated
201
+ alias_method :escalated?, :escalated
202
+
203
+ # The language the user has requested to receive support in. This should be a
204
+ # BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`). If
205
+ # no language or an unsupported language is specified, this field defaults to
206
+ # English (en). Language selection during case creation may affect your
207
+ # available support options. For a list of supported languages and their support
208
+ # working hours, see: https://cloud.google.com/support/docs/language-working-
209
+ # hours
210
+ # Corresponds to the JSON property `languageCode`
211
+ # @return [String]
212
+ attr_accessor :language_code
213
+
214
+ # The resource name for the case.
215
+ # Corresponds to the JSON property `name`
216
+ # @return [String]
217
+ attr_accessor :name
218
+
219
+ # The priority of this case.
220
+ # Corresponds to the JSON property `priority`
221
+ # @return [String]
222
+ attr_accessor :priority
223
+
224
+ # Output only. The current status of the support case.
225
+ # Corresponds to the JSON property `state`
226
+ # @return [String]
227
+ attr_accessor :state
228
+
229
+ # The email addresses to receive updates on this case.
230
+ # Corresponds to the JSON property `subscriberEmailAddresses`
231
+ # @return [Array<String>]
232
+ attr_accessor :subscriber_email_addresses
233
+
234
+ # Whether this case was created for internal API testing and should not be acted
235
+ # on by the support team.
236
+ # Corresponds to the JSON property `testCase`
237
+ # @return [Boolean]
238
+ attr_accessor :test_case
239
+ alias_method :test_case?, :test_case
240
+
241
+ # The timezone of the user who created the support case. It should be in a
242
+ # format IANA recognizes: https://www.iana.org/time-zones. There is no
243
+ # additional validation done by the API.
244
+ # Corresponds to the JSON property `timeZone`
245
+ # @return [String]
246
+ attr_accessor :time_zone
247
+
248
+ # Output only. The time this case was last updated.
249
+ # Corresponds to the JSON property `updateTime`
250
+ # @return [String]
251
+ attr_accessor :update_time
252
+
253
+ def initialize(**args)
254
+ update!(**args)
255
+ end
256
+
257
+ # Update properties of this object
258
+ def update!(**args)
259
+ @classification = args[:classification] if args.key?(:classification)
260
+ @contact_email = args[:contact_email] if args.key?(:contact_email)
261
+ @create_time = args[:create_time] if args.key?(:create_time)
262
+ @creator = args[:creator] if args.key?(:creator)
263
+ @description = args[:description] if args.key?(:description)
264
+ @display_name = args[:display_name] if args.key?(:display_name)
265
+ @escalated = args[:escalated] if args.key?(:escalated)
266
+ @language_code = args[:language_code] if args.key?(:language_code)
267
+ @name = args[:name] if args.key?(:name)
268
+ @priority = args[:priority] if args.key?(:priority)
269
+ @state = args[:state] if args.key?(:state)
270
+ @subscriber_email_addresses = args[:subscriber_email_addresses] if args.key?(:subscriber_email_addresses)
271
+ @test_case = args[:test_case] if args.key?(:test_case)
272
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
273
+ @update_time = args[:update_time] if args.key?(:update_time)
274
+ end
275
+ end
276
+
277
+ # A classification object with a product type and value.
278
+ class CaseClassification
279
+ include Google::Apis::Core::Hashable
280
+
281
+ # A display name for the classification. The display name is not static and can
282
+ # change. To uniquely and consistently identify classifications, use the `
283
+ # CaseClassification.id` field.
284
+ # Corresponds to the JSON property `displayName`
285
+ # @return [String]
286
+ attr_accessor :display_name
287
+
288
+ # The unique ID for a classification. Must be specified for case creation. To
289
+ # retrieve valid classification IDs for case creation, use `caseClassifications.
290
+ # search`. Classification IDs returned by `caseClassifications.search` are
291
+ # guaranteed to be valid for at least 6 months. If a given classification is
292
+ # deactiveated, it will immediately stop being returned. After 6 months, `case.
293
+ # create` requests using the classification ID will fail.
294
+ # Corresponds to the JSON property `id`
295
+ # @return [String]
296
+ attr_accessor :id
297
+
298
+ def initialize(**args)
299
+ update!(**args)
300
+ end
301
+
302
+ # Update properties of this object
303
+ def update!(**args)
304
+ @display_name = args[:display_name] if args.key?(:display_name)
305
+ @id = args[:id] if args.key?(:id)
306
+ end
307
+ end
308
+
309
+ # The request message for the CloseCase endpoint.
310
+ class CloseCaseRequest
311
+ include Google::Apis::Core::Hashable
312
+
313
+ def initialize(**args)
314
+ update!(**args)
315
+ end
316
+
317
+ # Update properties of this object
318
+ def update!(**args)
319
+ end
320
+ end
321
+
322
+ # A comment associated with a support case.
323
+ class Comment
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # The full comment body. Maximum of 12800 characters. This can contain rich text
327
+ # syntax.
328
+ # Corresponds to the JSON property `body`
329
+ # @return [String]
330
+ attr_accessor :body
331
+
332
+ # Output only. The time when this comment was created.
333
+ # Corresponds to the JSON property `createTime`
334
+ # @return [String]
335
+ attr_accessor :create_time
336
+
337
+ # An object containing information about the effective user and authenticated
338
+ # principal responsible for an action.
339
+ # Corresponds to the JSON property `creator`
340
+ # @return [Google::Apis::CloudsupportV2::Actor]
341
+ attr_accessor :creator
342
+
343
+ # Output only. The resource name for the comment.
344
+ # Corresponds to the JSON property `name`
345
+ # @return [String]
346
+ attr_accessor :name
347
+
348
+ # Output only. DEPRECATED. An automatically generated plain text version of body
349
+ # with all rich text syntax stripped.
350
+ # Corresponds to the JSON property `plainTextBody`
351
+ # @return [String]
352
+ attr_accessor :plain_text_body
353
+
354
+ def initialize(**args)
355
+ update!(**args)
356
+ end
357
+
358
+ # Update properties of this object
359
+ def update!(**args)
360
+ @body = args[:body] if args.key?(:body)
361
+ @create_time = args[:create_time] if args.key?(:create_time)
362
+ @creator = args[:creator] if args.key?(:creator)
363
+ @name = args[:name] if args.key?(:name)
364
+ @plain_text_body = args[:plain_text_body] if args.key?(:plain_text_body)
365
+ end
366
+ end
367
+
368
+ # # gdata.* are outside protos with mising documentation
369
+ class CompositeMedia
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # # gdata.* are outside protos with mising documentation
373
+ # Corresponds to the JSON property `blobRef`
374
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
375
+ # @return [String]
376
+ attr_accessor :blob_ref
377
+
378
+ # # gdata.* are outside protos with mising documentation
379
+ # Corresponds to the JSON property `blobstore2Info`
380
+ # @return [Google::Apis::CloudsupportV2::Blobstore2Info]
381
+ attr_accessor :blobstore2_info
382
+
383
+ # # gdata.* are outside protos with mising documentation
384
+ # Corresponds to the JSON property `cosmoBinaryReference`
385
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
386
+ # @return [String]
387
+ attr_accessor :cosmo_binary_reference
388
+
389
+ # # gdata.* are outside protos with mising documentation
390
+ # Corresponds to the JSON property `crc32cHash`
391
+ # @return [Fixnum]
392
+ attr_accessor :crc32c_hash
393
+
394
+ # # gdata.* are outside protos with mising documentation
395
+ # Corresponds to the JSON property `inline`
396
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
397
+ # @return [String]
398
+ attr_accessor :inline
399
+
400
+ # # gdata.* are outside protos with mising documentation
401
+ # Corresponds to the JSON property `length`
402
+ # @return [Fixnum]
403
+ attr_accessor :length
404
+
405
+ # # gdata.* are outside protos with mising documentation
406
+ # Corresponds to the JSON property `md5Hash`
407
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
408
+ # @return [String]
409
+ attr_accessor :md5_hash
410
+
411
+ # # gdata.* are outside protos with mising documentation
412
+ # Corresponds to the JSON property `objectId`
413
+ # @return [Google::Apis::CloudsupportV2::ObjectIdProp]
414
+ attr_accessor :object_id_prop
415
+
416
+ # # gdata.* are outside protos with mising documentation
417
+ # Corresponds to the JSON property `path`
418
+ # @return [String]
419
+ attr_accessor :path
420
+
421
+ # # gdata.* are outside protos with mising documentation
422
+ # Corresponds to the JSON property `referenceType`
423
+ # @return [String]
424
+ attr_accessor :reference_type
425
+
426
+ # # gdata.* are outside protos with mising documentation
427
+ # Corresponds to the JSON property `sha1Hash`
428
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
429
+ # @return [String]
430
+ attr_accessor :sha1_hash
431
+
432
+ def initialize(**args)
433
+ update!(**args)
434
+ end
435
+
436
+ # Update properties of this object
437
+ def update!(**args)
438
+ @blob_ref = args[:blob_ref] if args.key?(:blob_ref)
439
+ @blobstore2_info = args[:blobstore2_info] if args.key?(:blobstore2_info)
440
+ @cosmo_binary_reference = args[:cosmo_binary_reference] if args.key?(:cosmo_binary_reference)
441
+ @crc32c_hash = args[:crc32c_hash] if args.key?(:crc32c_hash)
442
+ @inline = args[:inline] if args.key?(:inline)
443
+ @length = args[:length] if args.key?(:length)
444
+ @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
445
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
446
+ @path = args[:path] if args.key?(:path)
447
+ @reference_type = args[:reference_type] if args.key?(:reference_type)
448
+ @sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
449
+ end
450
+ end
451
+
452
+ # # gdata.* are outside protos with mising documentation
453
+ class ContentTypeInfo
454
+ include Google::Apis::Core::Hashable
455
+
456
+ # # gdata.* are outside protos with mising documentation
457
+ # Corresponds to the JSON property `bestGuess`
458
+ # @return [String]
459
+ attr_accessor :best_guess
460
+
461
+ # # gdata.* are outside protos with mising documentation
462
+ # Corresponds to the JSON property `fromBytes`
463
+ # @return [String]
464
+ attr_accessor :from_bytes
465
+
466
+ # # gdata.* are outside protos with mising documentation
467
+ # Corresponds to the JSON property `fromFileName`
468
+ # @return [String]
469
+ attr_accessor :from_file_name
470
+
471
+ # # gdata.* are outside protos with mising documentation
472
+ # Corresponds to the JSON property `fromHeader`
473
+ # @return [String]
474
+ attr_accessor :from_header
475
+
476
+ # # gdata.* are outside protos with mising documentation
477
+ # Corresponds to the JSON property `fromUrlPath`
478
+ # @return [String]
479
+ attr_accessor :from_url_path
480
+
481
+ def initialize(**args)
482
+ update!(**args)
483
+ end
484
+
485
+ # Update properties of this object
486
+ def update!(**args)
487
+ @best_guess = args[:best_guess] if args.key?(:best_guess)
488
+ @from_bytes = args[:from_bytes] if args.key?(:from_bytes)
489
+ @from_file_name = args[:from_file_name] if args.key?(:from_file_name)
490
+ @from_header = args[:from_header] if args.key?(:from_header)
491
+ @from_url_path = args[:from_url_path] if args.key?(:from_url_path)
492
+ end
493
+ end
494
+
495
+ # The request message for the CreateAttachment endpoint.
496
+ class CreateAttachmentRequest
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # Represents a file attached to a support case.
500
+ # Corresponds to the JSON property `attachment`
501
+ # @return [Google::Apis::CloudsupportV2::Attachment]
502
+ attr_accessor :attachment
503
+
504
+ def initialize(**args)
505
+ update!(**args)
506
+ end
507
+
508
+ # Update properties of this object
509
+ def update!(**args)
510
+ @attachment = args[:attachment] if args.key?(:attachment)
511
+ end
512
+ end
513
+
514
+ # # gdata.* are outside protos with mising documentation
515
+ class DiffChecksumsResponse
516
+ include Google::Apis::Core::Hashable
517
+
518
+ # # gdata.* are outside protos with mising documentation
519
+ # Corresponds to the JSON property `checksumsLocation`
520
+ # @return [Google::Apis::CloudsupportV2::CompositeMedia]
521
+ attr_accessor :checksums_location
522
+
523
+ # # gdata.* are outside protos with mising documentation
524
+ # Corresponds to the JSON property `chunkSizeBytes`
525
+ # @return [Fixnum]
526
+ attr_accessor :chunk_size_bytes
527
+
528
+ # # gdata.* are outside protos with mising documentation
529
+ # Corresponds to the JSON property `objectLocation`
530
+ # @return [Google::Apis::CloudsupportV2::CompositeMedia]
531
+ attr_accessor :object_location
532
+
533
+ # # gdata.* are outside protos with mising documentation
534
+ # Corresponds to the JSON property `objectSizeBytes`
535
+ # @return [Fixnum]
536
+ attr_accessor :object_size_bytes
537
+
538
+ # # gdata.* are outside protos with mising documentation
539
+ # Corresponds to the JSON property `objectVersion`
540
+ # @return [String]
541
+ attr_accessor :object_version
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @checksums_location = args[:checksums_location] if args.key?(:checksums_location)
550
+ @chunk_size_bytes = args[:chunk_size_bytes] if args.key?(:chunk_size_bytes)
551
+ @object_location = args[:object_location] if args.key?(:object_location)
552
+ @object_size_bytes = args[:object_size_bytes] if args.key?(:object_size_bytes)
553
+ @object_version = args[:object_version] if args.key?(:object_version)
554
+ end
555
+ end
556
+
557
+ # # gdata.* are outside protos with mising documentation
558
+ class DiffDownloadResponse
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # # gdata.* are outside protos with mising documentation
562
+ # Corresponds to the JSON property `objectLocation`
563
+ # @return [Google::Apis::CloudsupportV2::CompositeMedia]
564
+ attr_accessor :object_location
565
+
566
+ def initialize(**args)
567
+ update!(**args)
568
+ end
569
+
570
+ # Update properties of this object
571
+ def update!(**args)
572
+ @object_location = args[:object_location] if args.key?(:object_location)
573
+ end
574
+ end
575
+
576
+ # # gdata.* are outside protos with mising documentation
577
+ class DiffUploadRequest
578
+ include Google::Apis::Core::Hashable
579
+
580
+ # # gdata.* are outside protos with mising documentation
581
+ # Corresponds to the JSON property `checksumsInfo`
582
+ # @return [Google::Apis::CloudsupportV2::CompositeMedia]
583
+ attr_accessor :checksums_info
584
+
585
+ # # gdata.* are outside protos with mising documentation
586
+ # Corresponds to the JSON property `objectInfo`
587
+ # @return [Google::Apis::CloudsupportV2::CompositeMedia]
588
+ attr_accessor :object_info
589
+
590
+ # # gdata.* are outside protos with mising documentation
591
+ # Corresponds to the JSON property `objectVersion`
592
+ # @return [String]
593
+ attr_accessor :object_version
594
+
595
+ def initialize(**args)
596
+ update!(**args)
597
+ end
598
+
599
+ # Update properties of this object
600
+ def update!(**args)
601
+ @checksums_info = args[:checksums_info] if args.key?(:checksums_info)
602
+ @object_info = args[:object_info] if args.key?(:object_info)
603
+ @object_version = args[:object_version] if args.key?(:object_version)
604
+ end
605
+ end
606
+
607
+ # # gdata.* are outside protos with mising documentation
608
+ class DiffUploadResponse
609
+ include Google::Apis::Core::Hashable
610
+
611
+ # # gdata.* are outside protos with mising documentation
612
+ # Corresponds to the JSON property `objectVersion`
613
+ # @return [String]
614
+ attr_accessor :object_version
615
+
616
+ # # gdata.* are outside protos with mising documentation
617
+ # Corresponds to the JSON property `originalObject`
618
+ # @return [Google::Apis::CloudsupportV2::CompositeMedia]
619
+ attr_accessor :original_object
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ @object_version = args[:object_version] if args.key?(:object_version)
628
+ @original_object = args[:original_object] if args.key?(:original_object)
629
+ end
630
+ end
631
+
632
+ # # gdata.* are outside protos with mising documentation
633
+ class DiffVersionResponse
634
+ include Google::Apis::Core::Hashable
635
+
636
+ # # gdata.* are outside protos with mising documentation
637
+ # Corresponds to the JSON property `objectSizeBytes`
638
+ # @return [Fixnum]
639
+ attr_accessor :object_size_bytes
640
+
641
+ # # gdata.* are outside protos with mising documentation
642
+ # Corresponds to the JSON property `objectVersion`
643
+ # @return [String]
644
+ attr_accessor :object_version
645
+
646
+ def initialize(**args)
647
+ update!(**args)
648
+ end
649
+
650
+ # Update properties of this object
651
+ def update!(**args)
652
+ @object_size_bytes = args[:object_size_bytes] if args.key?(:object_size_bytes)
653
+ @object_version = args[:object_version] if args.key?(:object_version)
654
+ end
655
+ end
656
+
657
+ # # gdata.* are outside protos with mising documentation
658
+ class DownloadParameters
659
+ include Google::Apis::Core::Hashable
660
+
661
+ # # gdata.* are outside protos with mising documentation
662
+ # Corresponds to the JSON property `allowGzipCompression`
663
+ # @return [Boolean]
664
+ attr_accessor :allow_gzip_compression
665
+ alias_method :allow_gzip_compression?, :allow_gzip_compression
666
+
667
+ # # gdata.* are outside protos with mising documentation
668
+ # Corresponds to the JSON property `ignoreRange`
669
+ # @return [Boolean]
670
+ attr_accessor :ignore_range
671
+ alias_method :ignore_range?, :ignore_range
672
+
673
+ def initialize(**args)
674
+ update!(**args)
675
+ end
676
+
677
+ # Update properties of this object
678
+ def update!(**args)
679
+ @allow_gzip_compression = args[:allow_gzip_compression] if args.key?(:allow_gzip_compression)
680
+ @ignore_range = args[:ignore_range] if args.key?(:ignore_range)
681
+ end
682
+ end
683
+
684
+ # The request message for the EscalateCase endpoint.
685
+ class EscalateCaseRequest
686
+ include Google::Apis::Core::Hashable
687
+
688
+ # An escalation of a support case.
689
+ # Corresponds to the JSON property `escalation`
690
+ # @return [Google::Apis::CloudsupportV2::Escalation]
691
+ attr_accessor :escalation
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ @escalation = args[:escalation] if args.key?(:escalation)
700
+ end
701
+ end
702
+
703
+ # An escalation of a support case.
704
+ class Escalation
705
+ include Google::Apis::Core::Hashable
706
+
707
+ # Required. A free text description to accompany the `reason` field above.
708
+ # Provides additional context on why the case is being escalated.
709
+ # Corresponds to the JSON property `justification`
710
+ # @return [String]
711
+ attr_accessor :justification
712
+
713
+ # Required. The reason why the Case is being escalated.
714
+ # Corresponds to the JSON property `reason`
715
+ # @return [String]
716
+ attr_accessor :reason
717
+
718
+ def initialize(**args)
719
+ update!(**args)
720
+ end
721
+
722
+ # Update properties of this object
723
+ def update!(**args)
724
+ @justification = args[:justification] if args.key?(:justification)
725
+ @reason = args[:reason] if args.key?(:reason)
726
+ end
727
+ end
728
+
729
+ # The response message for the ListAttachments endpoint.
730
+ class ListAttachmentsResponse
731
+ include Google::Apis::Core::Hashable
732
+
733
+ # The list of attachments associated with the given case.
734
+ # Corresponds to the JSON property `attachments`
735
+ # @return [Array<Google::Apis::CloudsupportV2::Attachment>]
736
+ attr_accessor :attachments
737
+
738
+ # A token to retrieve the next page of results. This should be set in the `
739
+ # page_token` field of subsequent `cases.attachments.list` requests. If
740
+ # unspecified, there are no more results to retrieve.
741
+ # Corresponds to the JSON property `nextPageToken`
742
+ # @return [String]
743
+ attr_accessor :next_page_token
744
+
745
+ def initialize(**args)
746
+ update!(**args)
747
+ end
748
+
749
+ # Update properties of this object
750
+ def update!(**args)
751
+ @attachments = args[:attachments] if args.key?(:attachments)
752
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
753
+ end
754
+ end
755
+
756
+ # The response message for the ListCases endpoint.
757
+ class ListCasesResponse
758
+ include Google::Apis::Core::Hashable
759
+
760
+ # The list of cases associated with the Google Cloud Resource, after any filters
761
+ # have been applied.
762
+ # Corresponds to the JSON property `cases`
763
+ # @return [Array<Google::Apis::CloudsupportV2::Case>]
764
+ attr_accessor :cases
765
+
766
+ # A token to retrieve the next page of results. This should be set in the `
767
+ # page_token` field of the subsequent `ListCasesRequest` message that is issued.
768
+ # If unspecified, there are no more results to retrieve.
769
+ # Corresponds to the JSON property `nextPageToken`
770
+ # @return [String]
771
+ attr_accessor :next_page_token
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @cases = args[:cases] if args.key?(:cases)
780
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
781
+ end
782
+ end
783
+
784
+ # The response message for the ListComments endpoint.
785
+ class ListCommentsResponse
786
+ include Google::Apis::Core::Hashable
787
+
788
+ # The list of Comments associated with the given Case.
789
+ # Corresponds to the JSON property `comments`
790
+ # @return [Array<Google::Apis::CloudsupportV2::Comment>]
791
+ attr_accessor :comments
792
+
793
+ # A token to retrieve the next page of results. This should be set in the `
794
+ # page_token` field of subsequent `ListCommentsRequest` message that is issued.
795
+ # If unspecified, there are no more results to retrieve.
796
+ # Corresponds to the JSON property `nextPageToken`
797
+ # @return [String]
798
+ attr_accessor :next_page_token
799
+
800
+ def initialize(**args)
801
+ update!(**args)
802
+ end
803
+
804
+ # Update properties of this object
805
+ def update!(**args)
806
+ @comments = args[:comments] if args.key?(:comments)
807
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
808
+ end
809
+ end
810
+
811
+ # # gdata.* are outside protos with mising documentation
812
+ class Media
813
+ include Google::Apis::Core::Hashable
814
+
815
+ # # gdata.* are outside protos with mising documentation
816
+ # Corresponds to the JSON property `algorithm`
817
+ # @return [String]
818
+ attr_accessor :algorithm
819
+
820
+ # # gdata.* are outside protos with mising documentation
821
+ # Corresponds to the JSON property `bigstoreObjectRef`
822
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
823
+ # @return [String]
824
+ attr_accessor :bigstore_object_ref
825
+
826
+ # # gdata.* are outside protos with mising documentation
827
+ # Corresponds to the JSON property `blobRef`
828
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
829
+ # @return [String]
830
+ attr_accessor :blob_ref
831
+
832
+ # # gdata.* are outside protos with mising documentation
833
+ # Corresponds to the JSON property `blobstore2Info`
834
+ # @return [Google::Apis::CloudsupportV2::Blobstore2Info]
835
+ attr_accessor :blobstore2_info
836
+
837
+ # # gdata.* are outside protos with mising documentation
838
+ # Corresponds to the JSON property `compositeMedia`
839
+ # @return [Array<Google::Apis::CloudsupportV2::CompositeMedia>]
840
+ attr_accessor :composite_media
841
+
842
+ # # gdata.* are outside protos with mising documentation
843
+ # Corresponds to the JSON property `contentType`
844
+ # @return [String]
845
+ attr_accessor :content_type
846
+
847
+ # # gdata.* are outside protos with mising documentation
848
+ # Corresponds to the JSON property `contentTypeInfo`
849
+ # @return [Google::Apis::CloudsupportV2::ContentTypeInfo]
850
+ attr_accessor :content_type_info
851
+
852
+ # # gdata.* are outside protos with mising documentation
853
+ # Corresponds to the JSON property `cosmoBinaryReference`
854
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
855
+ # @return [String]
856
+ attr_accessor :cosmo_binary_reference
857
+
858
+ # # gdata.* are outside protos with mising documentation
859
+ # Corresponds to the JSON property `crc32cHash`
860
+ # @return [Fixnum]
861
+ attr_accessor :crc32c_hash
862
+
863
+ # # gdata.* are outside protos with mising documentation
864
+ # Corresponds to the JSON property `diffChecksumsResponse`
865
+ # @return [Google::Apis::CloudsupportV2::DiffChecksumsResponse]
866
+ attr_accessor :diff_checksums_response
867
+
868
+ # # gdata.* are outside protos with mising documentation
869
+ # Corresponds to the JSON property `diffDownloadResponse`
870
+ # @return [Google::Apis::CloudsupportV2::DiffDownloadResponse]
871
+ attr_accessor :diff_download_response
872
+
873
+ # # gdata.* are outside protos with mising documentation
874
+ # Corresponds to the JSON property `diffUploadRequest`
875
+ # @return [Google::Apis::CloudsupportV2::DiffUploadRequest]
876
+ attr_accessor :diff_upload_request
877
+
878
+ # # gdata.* are outside protos with mising documentation
879
+ # Corresponds to the JSON property `diffUploadResponse`
880
+ # @return [Google::Apis::CloudsupportV2::DiffUploadResponse]
881
+ attr_accessor :diff_upload_response
882
+
883
+ # # gdata.* are outside protos with mising documentation
884
+ # Corresponds to the JSON property `diffVersionResponse`
885
+ # @return [Google::Apis::CloudsupportV2::DiffVersionResponse]
886
+ attr_accessor :diff_version_response
887
+
888
+ # # gdata.* are outside protos with mising documentation
889
+ # Corresponds to the JSON property `downloadParameters`
890
+ # @return [Google::Apis::CloudsupportV2::DownloadParameters]
891
+ attr_accessor :download_parameters
892
+
893
+ # # gdata.* are outside protos with mising documentation
894
+ # Corresponds to the JSON property `filename`
895
+ # @return [String]
896
+ attr_accessor :filename
897
+
898
+ # # gdata.* are outside protos with mising documentation
899
+ # Corresponds to the JSON property `hash`
900
+ # @return [String]
901
+ attr_accessor :hash_prop
902
+
903
+ # # gdata.* are outside protos with mising documentation
904
+ # Corresponds to the JSON property `hashVerified`
905
+ # @return [Boolean]
906
+ attr_accessor :hash_verified
907
+ alias_method :hash_verified?, :hash_verified
908
+
909
+ # # gdata.* are outside protos with mising documentation
910
+ # Corresponds to the JSON property `inline`
911
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
912
+ # @return [String]
913
+ attr_accessor :inline
914
+
915
+ # # gdata.* are outside protos with mising documentation
916
+ # Corresponds to the JSON property `isPotentialRetry`
917
+ # @return [Boolean]
918
+ attr_accessor :is_potential_retry
919
+ alias_method :is_potential_retry?, :is_potential_retry
920
+
921
+ # # gdata.* are outside protos with mising documentation
922
+ # Corresponds to the JSON property `length`
923
+ # @return [Fixnum]
924
+ attr_accessor :length
925
+
926
+ # # gdata.* are outside protos with mising documentation
927
+ # Corresponds to the JSON property `md5Hash`
928
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
929
+ # @return [String]
930
+ attr_accessor :md5_hash
931
+
932
+ # # gdata.* are outside protos with mising documentation
933
+ # Corresponds to the JSON property `mediaId`
934
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
935
+ # @return [String]
936
+ attr_accessor :media_id
937
+
938
+ # # gdata.* are outside protos with mising documentation
939
+ # Corresponds to the JSON property `objectId`
940
+ # @return [Google::Apis::CloudsupportV2::ObjectIdProp]
941
+ attr_accessor :object_id_prop
942
+
943
+ # # gdata.* are outside protos with mising documentation
944
+ # Corresponds to the JSON property `path`
945
+ # @return [String]
946
+ attr_accessor :path
947
+
948
+ # # gdata.* are outside protos with mising documentation
949
+ # Corresponds to the JSON property `referenceType`
950
+ # @return [String]
951
+ attr_accessor :reference_type
952
+
953
+ # # gdata.* are outside protos with mising documentation
954
+ # Corresponds to the JSON property `sha1Hash`
955
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
956
+ # @return [String]
957
+ attr_accessor :sha1_hash
958
+
959
+ # # gdata.* are outside protos with mising documentation
960
+ # Corresponds to the JSON property `sha256Hash`
961
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
962
+ # @return [String]
963
+ attr_accessor :sha256_hash
964
+
965
+ # # gdata.* are outside protos with mising documentation
966
+ # Corresponds to the JSON property `timestamp`
967
+ # @return [Fixnum]
968
+ attr_accessor :timestamp
969
+
970
+ # # gdata.* are outside protos with mising documentation
971
+ # Corresponds to the JSON property `token`
972
+ # @return [String]
973
+ attr_accessor :token
974
+
975
+ def initialize(**args)
976
+ update!(**args)
977
+ end
978
+
979
+ # Update properties of this object
980
+ def update!(**args)
981
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
982
+ @bigstore_object_ref = args[:bigstore_object_ref] if args.key?(:bigstore_object_ref)
983
+ @blob_ref = args[:blob_ref] if args.key?(:blob_ref)
984
+ @blobstore2_info = args[:blobstore2_info] if args.key?(:blobstore2_info)
985
+ @composite_media = args[:composite_media] if args.key?(:composite_media)
986
+ @content_type = args[:content_type] if args.key?(:content_type)
987
+ @content_type_info = args[:content_type_info] if args.key?(:content_type_info)
988
+ @cosmo_binary_reference = args[:cosmo_binary_reference] if args.key?(:cosmo_binary_reference)
989
+ @crc32c_hash = args[:crc32c_hash] if args.key?(:crc32c_hash)
990
+ @diff_checksums_response = args[:diff_checksums_response] if args.key?(:diff_checksums_response)
991
+ @diff_download_response = args[:diff_download_response] if args.key?(:diff_download_response)
992
+ @diff_upload_request = args[:diff_upload_request] if args.key?(:diff_upload_request)
993
+ @diff_upload_response = args[:diff_upload_response] if args.key?(:diff_upload_response)
994
+ @diff_version_response = args[:diff_version_response] if args.key?(:diff_version_response)
995
+ @download_parameters = args[:download_parameters] if args.key?(:download_parameters)
996
+ @filename = args[:filename] if args.key?(:filename)
997
+ @hash_prop = args[:hash_prop] if args.key?(:hash_prop)
998
+ @hash_verified = args[:hash_verified] if args.key?(:hash_verified)
999
+ @inline = args[:inline] if args.key?(:inline)
1000
+ @is_potential_retry = args[:is_potential_retry] if args.key?(:is_potential_retry)
1001
+ @length = args[:length] if args.key?(:length)
1002
+ @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
1003
+ @media_id = args[:media_id] if args.key?(:media_id)
1004
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
1005
+ @path = args[:path] if args.key?(:path)
1006
+ @reference_type = args[:reference_type] if args.key?(:reference_type)
1007
+ @sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
1008
+ @sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
1009
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
1010
+ @token = args[:token] if args.key?(:token)
1011
+ end
1012
+ end
1013
+
1014
+ # # gdata.* are outside protos with mising documentation
1015
+ class ObjectIdProp
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # # gdata.* are outside protos with mising documentation
1019
+ # Corresponds to the JSON property `bucketName`
1020
+ # @return [String]
1021
+ attr_accessor :bucket_name
1022
+
1023
+ # # gdata.* are outside protos with mising documentation
1024
+ # Corresponds to the JSON property `generation`
1025
+ # @return [Fixnum]
1026
+ attr_accessor :generation
1027
+
1028
+ # # gdata.* are outside protos with mising documentation
1029
+ # Corresponds to the JSON property `objectName`
1030
+ # @return [String]
1031
+ attr_accessor :object_name
1032
+
1033
+ def initialize(**args)
1034
+ update!(**args)
1035
+ end
1036
+
1037
+ # Update properties of this object
1038
+ def update!(**args)
1039
+ @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
1040
+ @generation = args[:generation] if args.key?(:generation)
1041
+ @object_name = args[:object_name] if args.key?(:object_name)
1042
+ end
1043
+ end
1044
+
1045
+ # The response message for SearchCaseClassifications endpoint.
1046
+ class SearchCaseClassificationsResponse
1047
+ include Google::Apis::Core::Hashable
1048
+
1049
+ # The classifications retrieved.
1050
+ # Corresponds to the JSON property `caseClassifications`
1051
+ # @return [Array<Google::Apis::CloudsupportV2::CaseClassification>]
1052
+ attr_accessor :case_classifications
1053
+
1054
+ # A token to retrieve the next page of results. This should be set in the `
1055
+ # page_token` field of subsequent `SearchCaseClassificationsRequest` message
1056
+ # that is issued. If unspecified, there are no more results to retrieve.
1057
+ # Corresponds to the JSON property `nextPageToken`
1058
+ # @return [String]
1059
+ attr_accessor :next_page_token
1060
+
1061
+ def initialize(**args)
1062
+ update!(**args)
1063
+ end
1064
+
1065
+ # Update properties of this object
1066
+ def update!(**args)
1067
+ @case_classifications = args[:case_classifications] if args.key?(:case_classifications)
1068
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1069
+ end
1070
+ end
1071
+
1072
+ # The response message for the SearchCases endpoint.
1073
+ class SearchCasesResponse
1074
+ include Google::Apis::Core::Hashable
1075
+
1076
+ # The list of cases associated with the Google Cloud Resource, after any filters
1077
+ # have been applied.
1078
+ # Corresponds to the JSON property `cases`
1079
+ # @return [Array<Google::Apis::CloudsupportV2::Case>]
1080
+ attr_accessor :cases
1081
+
1082
+ # A token to retrieve the next page of results. This should be set in the `
1083
+ # page_token` field of subsequent `SearchCaseRequest` message that is issued. If
1084
+ # unspecified, there are no more results to retrieve.
1085
+ # Corresponds to the JSON property `nextPageToken`
1086
+ # @return [String]
1087
+ attr_accessor :next_page_token
1088
+
1089
+ def initialize(**args)
1090
+ update!(**args)
1091
+ end
1092
+
1093
+ # Update properties of this object
1094
+ def update!(**args)
1095
+ @cases = args[:cases] if args.key?(:cases)
1096
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1097
+ end
1098
+ end
1099
+
1100
+ # Metadata about the operation. Used to lookup the current status.
1101
+ class WorkflowOperationMetadata
1102
+ include Google::Apis::Core::Hashable
1103
+
1104
+ # The namespace that the job was scheduled in. Must be included in the workflow
1105
+ # metadata so the workflow status can be retrieved.
1106
+ # Corresponds to the JSON property `namespace`
1107
+ # @return [String]
1108
+ attr_accessor :namespace
1109
+
1110
+ # The type of action the operation is classified as.
1111
+ # Corresponds to the JSON property `operationAction`
1112
+ # @return [String]
1113
+ attr_accessor :operation_action
1114
+
1115
+ # Which version of the workflow service this operation came from.
1116
+ # Corresponds to the JSON property `workflowOperationType`
1117
+ # @return [String]
1118
+ attr_accessor :workflow_operation_type
1119
+
1120
+ def initialize(**args)
1121
+ update!(**args)
1122
+ end
1123
+
1124
+ # Update properties of this object
1125
+ def update!(**args)
1126
+ @namespace = args[:namespace] if args.key?(:namespace)
1127
+ @operation_action = args[:operation_action] if args.key?(:operation_action)
1128
+ @workflow_operation_type = args[:workflow_operation_type] if args.key?(:workflow_operation_type)
1129
+ end
1130
+ end
1131
+ end
1132
+ end
1133
+ end