@maxim_mazurok/gapi.client.cloudsupport-v2 0.0.20230626

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.
package/index.d.ts ADDED
@@ -0,0 +1,1319 @@
1
+ /* Type definitions for non-npm package Google Cloud Support API v2 0.0 */
2
+ // Project: https://cloud.google.com/support/docs/apis
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://cloudsupport.googleapis.com/$discovery/rest?version=v2
12
+ // Revision: 20230626
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Google Cloud Support API v2 */
18
+ function load(urlOrObject: "https://cloudsupport.googleapis.com/$discovery/rest?version=v2"): Promise<void>;
19
+ /** @deprecated Please load APIs with discovery documents. */
20
+ function load(name: "cloudsupport", version: "v2"): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: "cloudsupport", version: "v2", callback: () => any): void;
23
+
24
+ namespace cloudsupport {
25
+ interface Actor {
26
+ /**
27
+ * The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided.
28
+ * This will be obfuscated if the user is a Google Support agent.
29
+ */
30
+ displayName?:
31
+ string;
32
+ /**
33
+ * The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one
34
+ * must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
35
+ */
36
+ email?:
37
+ string;
38
+ /** Output only. Whether the actor is a Google support actor. */
39
+ googleSupport?:
40
+ boolean;
41
+ }
42
+ interface Attachment {
43
+ /** Output only. The time at which the attachment was created. */
44
+ createTime?:
45
+ string;
46
+ /** Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support. */
47
+ creator?:
48
+ Actor;
49
+ /** The filename of the attachment (e.g. `"graph.jpg"`). */
50
+ filename?:
51
+ string;
52
+ /** Output only. The MIME type of the attachment (e.g. text/plain). */
53
+ mimeType?:
54
+ string;
55
+ /** Output only. The resource name of the attachment. */
56
+ name?:
57
+ string;
58
+ /** Output only. The size of the attachment in bytes. */
59
+ sizeBytes?:
60
+ string;
61
+ }
62
+ interface Blobstore2Info {
63
+ /** # gdata.* are outside protos with mising documentation */
64
+ blobGeneration?:
65
+ string;
66
+ /** # gdata.* are outside protos with mising documentation */
67
+ blobId?:
68
+ string;
69
+ /** # gdata.* are outside protos with mising documentation */
70
+ downloadReadHandle?:
71
+ string;
72
+ /** # gdata.* are outside protos with mising documentation */
73
+ readToken?:
74
+ string;
75
+ /** # gdata.* are outside protos with mising documentation */
76
+ uploadMetadataContainer?:
77
+ string;
78
+ }
79
+ interface Case {
80
+ /** The issue classification applicable to this case. */
81
+ classification?:
82
+ CaseClassification;
83
+ /**
84
+ * A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their
85
+ * EUCs.
86
+ */
87
+ contactEmail?:
88
+ string;
89
+ /** Output only. The time this case was created. */
90
+ createTime?:
91
+ string;
92
+ /** The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support. */
93
+ creator?:
94
+ Actor;
95
+ /** A broad description of the issue. */
96
+ description?:
97
+ string;
98
+ /** The short summary of the issue reported in this case. */
99
+ displayName?:
100
+ string;
101
+ /** Whether the case is currently escalated. */
102
+ escalated?:
103
+ boolean;
104
+ /**
105
+ * The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`). If no language or an
106
+ * unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported
107
+ * languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours
108
+ */
109
+ languageCode?:
110
+ string;
111
+ /** The resource name for the case. */
112
+ name?:
113
+ string;
114
+ /** The priority of this case. */
115
+ priority?:
116
+ string;
117
+ /** Output only. The current status of the support case. */
118
+ state?:
119
+ string;
120
+ /** The email addresses to receive updates on this case. */
121
+ subscriberEmailAddresses?:
122
+ string[];
123
+ /** Whether this case was created for internal API testing and should not be acted on by the support team. */
124
+ testCase?:
125
+ boolean;
126
+ /** The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API. */
127
+ timeZone?:
128
+ string;
129
+ /** Output only. The time this case was last updated. */
130
+ updateTime?:
131
+ string;
132
+ }
133
+ interface CaseClassification {
134
+ /** A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the `CaseClassification.id` field. */
135
+ displayName?:
136
+ string;
137
+ /**
138
+ * The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`. Classification IDs
139
+ * returned by `caseClassifications.search` are guaranteed to be valid for at least 6 months. If a given classification is deactiveated, it will immediately stop being returned. After
140
+ * 6 months, `case.create` requests using the classification ID will fail.
141
+ */
142
+ id?:
143
+ string;
144
+ }
145
+ // tslint:disable-next-line:no-empty-interface
146
+ interface CloseCaseRequest {
147
+ }
148
+ interface Comment {
149
+ /** The full comment body. Maximum of 12800 characters. This can contain rich text syntax. */
150
+ body?:
151
+ string;
152
+ /** Output only. The time when this comment was created. */
153
+ createTime?:
154
+ string;
155
+ /** Output only. The user or Google Support agent created this comment. */
156
+ creator?:
157
+ Actor;
158
+ /** Output only. The resource name for the comment. */
159
+ name?:
160
+ string;
161
+ /** Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped. */
162
+ plainTextBody?:
163
+ string;
164
+ }
165
+ interface CompositeMedia {
166
+ /** # gdata.* are outside protos with mising documentation */
167
+ blobRef?:
168
+ string;
169
+ /** # gdata.* are outside protos with mising documentation */
170
+ blobstore2Info?:
171
+ Blobstore2Info;
172
+ /** # gdata.* are outside protos with mising documentation */
173
+ cosmoBinaryReference?:
174
+ string;
175
+ /** # gdata.* are outside protos with mising documentation */
176
+ crc32cHash?:
177
+ number;
178
+ /** # gdata.* are outside protos with mising documentation */
179
+ inline?:
180
+ string;
181
+ /** # gdata.* are outside protos with mising documentation */
182
+ length?:
183
+ string;
184
+ /** # gdata.* are outside protos with mising documentation */
185
+ md5Hash?:
186
+ string;
187
+ /** # gdata.* are outside protos with mising documentation */
188
+ objectId?:
189
+ ObjectId;
190
+ /** # gdata.* are outside protos with mising documentation */
191
+ path?:
192
+ string;
193
+ /** # gdata.* are outside protos with mising documentation */
194
+ referenceType?:
195
+ string;
196
+ /** # gdata.* are outside protos with mising documentation */
197
+ sha1Hash?:
198
+ string;
199
+ }
200
+ interface ContentTypeInfo {
201
+ /** # gdata.* are outside protos with mising documentation */
202
+ bestGuess?:
203
+ string;
204
+ /** # gdata.* are outside protos with mising documentation */
205
+ fromBytes?:
206
+ string;
207
+ /** # gdata.* are outside protos with mising documentation */
208
+ fromFileName?:
209
+ string;
210
+ /** # gdata.* are outside protos with mising documentation */
211
+ fromHeader?:
212
+ string;
213
+ /** # gdata.* are outside protos with mising documentation */
214
+ fromUrlPath?:
215
+ string;
216
+ }
217
+ interface CreateAttachmentRequest {
218
+ /** Required. The attachment to be created. */
219
+ attachment?:
220
+ Attachment;
221
+ }
222
+ interface DiffChecksumsResponse {
223
+ /** # gdata.* are outside protos with mising documentation */
224
+ checksumsLocation?:
225
+ CompositeMedia;
226
+ /** # gdata.* are outside protos with mising documentation */
227
+ chunkSizeBytes?:
228
+ string;
229
+ /** # gdata.* are outside protos with mising documentation */
230
+ objectLocation?:
231
+ CompositeMedia;
232
+ /** # gdata.* are outside protos with mising documentation */
233
+ objectSizeBytes?:
234
+ string;
235
+ /** # gdata.* are outside protos with mising documentation */
236
+ objectVersion?:
237
+ string;
238
+ }
239
+ interface DiffDownloadResponse {
240
+ /** # gdata.* are outside protos with mising documentation */
241
+ objectLocation?:
242
+ CompositeMedia;
243
+ }
244
+ interface DiffUploadRequest {
245
+ /** # gdata.* are outside protos with mising documentation */
246
+ checksumsInfo?:
247
+ CompositeMedia;
248
+ /** # gdata.* are outside protos with mising documentation */
249
+ objectInfo?:
250
+ CompositeMedia;
251
+ /** # gdata.* are outside protos with mising documentation */
252
+ objectVersion?:
253
+ string;
254
+ }
255
+ interface DiffUploadResponse {
256
+ /** # gdata.* are outside protos with mising documentation */
257
+ objectVersion?:
258
+ string;
259
+ /** # gdata.* are outside protos with mising documentation */
260
+ originalObject?:
261
+ CompositeMedia;
262
+ }
263
+ interface DiffVersionResponse {
264
+ /** # gdata.* are outside protos with mising documentation */
265
+ objectSizeBytes?:
266
+ string;
267
+ /** # gdata.* are outside protos with mising documentation */
268
+ objectVersion?:
269
+ string;
270
+ }
271
+ interface DownloadParameters {
272
+ /** # gdata.* are outside protos with mising documentation */
273
+ allowGzipCompression?:
274
+ boolean;
275
+ /** # gdata.* are outside protos with mising documentation */
276
+ ignoreRange?:
277
+ boolean;
278
+ }
279
+ interface EscalateCaseRequest {
280
+ /** The escalation object to be sent with the escalation request. */
281
+ escalation?:
282
+ Escalation;
283
+ }
284
+ interface Escalation {
285
+ /** Required. A free text description to accompany the `reason` field above. Provides additional context on why the case is being escalated. */
286
+ justification?:
287
+ string;
288
+ /** Required. The reason why the Case is being escalated. */
289
+ reason?:
290
+ string;
291
+ }
292
+ interface ListAttachmentsResponse {
293
+ /** The list of attachments associated with the given case. */
294
+ attachments?:
295
+ Attachment[];
296
+ /**
297
+ * A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `cases.attachments.list` requests. If unspecified, there are no more results
298
+ * to retrieve.
299
+ */
300
+ nextPageToken?:
301
+ string;
302
+ }
303
+ interface ListCasesResponse {
304
+ /** The list of cases associated with the Google Cloud Resource, after any filters have been applied. */
305
+ cases?:
306
+ Case[];
307
+ /**
308
+ * A token to retrieve the next page of results. This should be set in the `page_token` field of the subsequent `ListCasesRequest` message that is issued. If unspecified, there are no
309
+ * more results to retrieve.
310
+ */
311
+ nextPageToken?:
312
+ string;
313
+ }
314
+ interface ListCommentsResponse {
315
+ /** The list of Comments associated with the given Case. */
316
+ comments?:
317
+ Comment[];
318
+ /**
319
+ * A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `ListCommentsRequest` message that is issued. If unspecified, there are no
320
+ * more results to retrieve.
321
+ */
322
+ nextPageToken?:
323
+ string;
324
+ }
325
+ interface Media {
326
+ /** # gdata.* are outside protos with mising documentation */
327
+ algorithm?:
328
+ string;
329
+ /** # gdata.* are outside protos with mising documentation */
330
+ bigstoreObjectRef?:
331
+ string;
332
+ /** # gdata.* are outside protos with mising documentation */
333
+ blobRef?:
334
+ string;
335
+ /** # gdata.* are outside protos with mising documentation */
336
+ blobstore2Info?:
337
+ Blobstore2Info;
338
+ /** # gdata.* are outside protos with mising documentation */
339
+ compositeMedia?:
340
+ CompositeMedia[];
341
+ /** # gdata.* are outside protos with mising documentation */
342
+ contentType?:
343
+ string;
344
+ /** # gdata.* are outside protos with mising documentation */
345
+ contentTypeInfo?:
346
+ ContentTypeInfo;
347
+ /** # gdata.* are outside protos with mising documentation */
348
+ cosmoBinaryReference?:
349
+ string;
350
+ /** # gdata.* are outside protos with mising documentation */
351
+ crc32cHash?:
352
+ number;
353
+ /** # gdata.* are outside protos with mising documentation */
354
+ diffChecksumsResponse?:
355
+ DiffChecksumsResponse;
356
+ /** # gdata.* are outside protos with mising documentation */
357
+ diffDownloadResponse?:
358
+ DiffDownloadResponse;
359
+ /** # gdata.* are outside protos with mising documentation */
360
+ diffUploadRequest?:
361
+ DiffUploadRequest;
362
+ /** # gdata.* are outside protos with mising documentation */
363
+ diffUploadResponse?:
364
+ DiffUploadResponse;
365
+ /** # gdata.* are outside protos with mising documentation */
366
+ diffVersionResponse?:
367
+ DiffVersionResponse;
368
+ /** # gdata.* are outside protos with mising documentation */
369
+ downloadParameters?:
370
+ DownloadParameters;
371
+ /** # gdata.* are outside protos with mising documentation */
372
+ filename?:
373
+ string;
374
+ /** # gdata.* are outside protos with mising documentation */
375
+ hash?:
376
+ string;
377
+ /** # gdata.* are outside protos with mising documentation */
378
+ hashVerified?:
379
+ boolean;
380
+ /** # gdata.* are outside protos with mising documentation */
381
+ inline?:
382
+ string;
383
+ /** # gdata.* are outside protos with mising documentation */
384
+ isPotentialRetry?:
385
+ boolean;
386
+ /** # gdata.* are outside protos with mising documentation */
387
+ length?:
388
+ string;
389
+ /** # gdata.* are outside protos with mising documentation */
390
+ md5Hash?:
391
+ string;
392
+ /** # gdata.* are outside protos with mising documentation */
393
+ mediaId?:
394
+ string;
395
+ /** # gdata.* are outside protos with mising documentation */
396
+ objectId?:
397
+ ObjectId;
398
+ /** # gdata.* are outside protos with mising documentation */
399
+ path?:
400
+ string;
401
+ /** # gdata.* are outside protos with mising documentation */
402
+ referenceType?:
403
+ string;
404
+ /** # gdata.* are outside protos with mising documentation */
405
+ sha1Hash?:
406
+ string;
407
+ /** # gdata.* are outside protos with mising documentation */
408
+ sha256Hash?:
409
+ string;
410
+ /** # gdata.* are outside protos with mising documentation */
411
+ timestamp?:
412
+ string;
413
+ /** # gdata.* are outside protos with mising documentation */
414
+ token?:
415
+ string;
416
+ }
417
+ interface ObjectId {
418
+ /** # gdata.* are outside protos with mising documentation */
419
+ bucketName?:
420
+ string;
421
+ /** # gdata.* are outside protos with mising documentation */
422
+ generation?:
423
+ string;
424
+ /** # gdata.* are outside protos with mising documentation */
425
+ objectName?:
426
+ string;
427
+ }
428
+ interface SearchCaseClassificationsResponse {
429
+ /** The classifications retrieved. */
430
+ caseClassifications?:
431
+ CaseClassification[];
432
+ /**
433
+ * A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `SearchCaseClassificationsRequest` message that is issued. If unspecified,
434
+ * there are no more results to retrieve.
435
+ */
436
+ nextPageToken?:
437
+ string;
438
+ }
439
+ interface SearchCasesResponse {
440
+ /** The list of cases associated with the Google Cloud Resource, after any filters have been applied. */
441
+ cases?:
442
+ Case[];
443
+ /**
444
+ * A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `SearchCaseRequest` message that is issued. If unspecified, there are no
445
+ * more results to retrieve.
446
+ */
447
+ nextPageToken?:
448
+ string;
449
+ }
450
+ interface WorkflowOperationMetadata {
451
+ /** The namespace that the job was scheduled in. Must be included in the workflow metadata so the workflow status can be retrieved. */
452
+ namespace?:
453
+ string;
454
+ /** The type of action the operation is classified as. */
455
+ operationAction?:
456
+ string;
457
+ /** Which version of the workflow service this operation came from. */
458
+ workflowOperationType?:
459
+ string;
460
+ }
461
+ interface CaseClassificationsResource {
462
+ /**
463
+ * Retrieve valid classifications to be used when creating a support case. The classications are hierarchical, with each classification containing all levels of the hierarchy,
464
+ * separated by `" > "`. For example `"Technical Issue > Compute > Compute Engine"`. Classification IDs returned by `caseClassifications.search` are guaranteed to be valid for at least
465
+ * 6 months. If a given classification is deactiveated, it will immediately stop being returned. After 6 months, `case.create` requests using the classification ID will fail.
466
+ */
467
+ search(request?: {
468
+ /** V1 error format. */
469
+ "$.xgafv"?:
470
+ string;
471
+ /** OAuth access token. */
472
+ access_token?:
473
+ string;
474
+ /** Data format for response. */
475
+ alt?:
476
+ string;
477
+ /** JSONP */
478
+ callback?:
479
+ string;
480
+ /** Selector specifying which fields to include in a partial response. */
481
+ fields?:
482
+ string;
483
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
484
+ key?:
485
+ string;
486
+ /** OAuth 2.0 token for the current user. */
487
+ oauth_token?:
488
+ string;
489
+ /** The maximum number of cases fetched with each request. */
490
+ pageSize?:
491
+ number;
492
+ /** A token identifying the page of results to return. If unspecified, the first page is retrieved. */
493
+ pageToken?:
494
+ string;
495
+ /** Returns response with indentations and line breaks. */
496
+ prettyPrint?:
497
+ boolean;
498
+ /** An expression written in the Google Cloud filter language. If non-empty, then only cases whose fields match the filter are returned. If empty, then no messages are filtered out. */
499
+ query?:
500
+ string;
501
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
502
+ quotaUser?:
503
+ string;
504
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
505
+ upload_protocol?:
506
+ string;
507
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
508
+ uploadType?:
509
+ string;
510
+ }): Request<SearchCaseClassificationsResponse>;
511
+ }
512
+ interface AttachmentsResource {
513
+ /** Retrieve all attachments associated with a support case. */
514
+ list(request?: {
515
+ /** V1 error format. */
516
+ "$.xgafv"?:
517
+ string;
518
+ /** OAuth access token. */
519
+ access_token?:
520
+ string;
521
+ /** Data format for response. */
522
+ alt?:
523
+ string;
524
+ /** JSONP */
525
+ callback?:
526
+ string;
527
+ /** Selector specifying which fields to include in a partial response. */
528
+ fields?:
529
+ string;
530
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
531
+ key?:
532
+ string;
533
+ /** OAuth 2.0 token for the current user. */
534
+ oauth_token?:
535
+ string;
536
+ /** The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100. */
537
+ pageSize?:
538
+ number;
539
+ /** A token identifying the page of results to return. If unspecified, the first page is retrieved. */
540
+ pageToken?:
541
+ string;
542
+ /** Required. The resource name of Case object for which attachments should be listed. */
543
+ parent:
544
+ string;
545
+ /** Returns response with indentations and line breaks. */
546
+ prettyPrint?:
547
+ boolean;
548
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
549
+ quotaUser?:
550
+ string;
551
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
552
+ upload_protocol?:
553
+ string;
554
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
555
+ uploadType?:
556
+ string;
557
+ }): Request<ListAttachmentsResponse>;
558
+ }
559
+ interface CommentsResource {
560
+ /** Add a new comment to the specified Case. The comment object must have the following fields set: body. */
561
+ create(request: {
562
+ /** V1 error format. */
563
+ "$.xgafv"?:
564
+ string;
565
+ /** OAuth access token. */
566
+ access_token?:
567
+ string;
568
+ /** Data format for response. */
569
+ alt?:
570
+ string;
571
+ /** JSONP */
572
+ callback?:
573
+ string;
574
+ /** Selector specifying which fields to include in a partial response. */
575
+ fields?:
576
+ string;
577
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
578
+ key?:
579
+ string;
580
+ /** OAuth 2.0 token for the current user. */
581
+ oauth_token?:
582
+ string;
583
+ /** Required. The resource name of Case to which this comment should be added. */
584
+ parent:
585
+ string;
586
+ /** Returns response with indentations and line breaks. */
587
+ prettyPrint?:
588
+ boolean;
589
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
590
+ quotaUser?:
591
+ string;
592
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
593
+ upload_protocol?:
594
+ string;
595
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
596
+ uploadType?:
597
+ string;
598
+ /** Request body */
599
+ resource:
600
+ Comment;
601
+ }): Request<Comment>;
602
+ create(request: {
603
+ /** V1 error format. */
604
+ "$.xgafv"?:
605
+ string;
606
+ /** OAuth access token. */
607
+ access_token?:
608
+ string;
609
+ /** Data format for response. */
610
+ alt?:
611
+ string;
612
+ /** JSONP */
613
+ callback?:
614
+ string;
615
+ /** Selector specifying which fields to include in a partial response. */
616
+ fields?:
617
+ string;
618
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
619
+ key?:
620
+ string;
621
+ /** OAuth 2.0 token for the current user. */
622
+ oauth_token?:
623
+ string;
624
+ /** Required. The resource name of Case to which this comment should be added. */
625
+ parent:
626
+ string;
627
+ /** Returns response with indentations and line breaks. */
628
+ prettyPrint?:
629
+ boolean;
630
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
631
+ quotaUser?:
632
+ string;
633
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
634
+ upload_protocol?:
635
+ string;
636
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
637
+ uploadType?:
638
+ string;
639
+ },
640
+ body: Comment): Request<Comment>;
641
+ /** Retrieve all Comments associated with the Case object. */
642
+ list(request?: {
643
+ /** V1 error format. */
644
+ "$.xgafv"?:
645
+ string;
646
+ /** OAuth access token. */
647
+ access_token?:
648
+ string;
649
+ /** Data format for response. */
650
+ alt?:
651
+ string;
652
+ /** JSONP */
653
+ callback?:
654
+ string;
655
+ /** Selector specifying which fields to include in a partial response. */
656
+ fields?:
657
+ string;
658
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
659
+ key?:
660
+ string;
661
+ /** OAuth 2.0 token for the current user. */
662
+ oauth_token?:
663
+ string;
664
+ /** The maximum number of comments fetched with each request. Defaults to 10. */
665
+ pageSize?:
666
+ number;
667
+ /** A token identifying the page of results to return. If unspecified, the first page is retrieved. */
668
+ pageToken?:
669
+ string;
670
+ /** Required. The resource name of Case object for which comments should be listed. */
671
+ parent:
672
+ string;
673
+ /** Returns response with indentations and line breaks. */
674
+ prettyPrint?:
675
+ boolean;
676
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
677
+ quotaUser?:
678
+ string;
679
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
680
+ upload_protocol?:
681
+ string;
682
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
683
+ uploadType?:
684
+ string;
685
+ }): Request<ListCommentsResponse>;
686
+ }
687
+ interface CasesResource {
688
+ /** Close the specified case. */
689
+ close(request: {
690
+ /** V1 error format. */
691
+ "$.xgafv"?:
692
+ string;
693
+ /** OAuth access token. */
694
+ access_token?:
695
+ string;
696
+ /** Data format for response. */
697
+ alt?:
698
+ string;
699
+ /** JSONP */
700
+ callback?:
701
+ string;
702
+ /** Selector specifying which fields to include in a partial response. */
703
+ fields?:
704
+ string;
705
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
706
+ key?:
707
+ string;
708
+ /** Required. The fully qualified name of the case resource to be closed. */
709
+ name:
710
+ string;
711
+ /** OAuth 2.0 token for the current user. */
712
+ oauth_token?:
713
+ string;
714
+ /** Returns response with indentations and line breaks. */
715
+ prettyPrint?:
716
+ boolean;
717
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
718
+ quotaUser?:
719
+ string;
720
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
721
+ upload_protocol?:
722
+ string;
723
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
724
+ uploadType?:
725
+ string;
726
+ /** Request body */
727
+ resource:
728
+ CloseCaseRequest;
729
+ }): Request<Case>;
730
+ close(request: {
731
+ /** V1 error format. */
732
+ "$.xgafv"?:
733
+ string;
734
+ /** OAuth access token. */
735
+ access_token?:
736
+ string;
737
+ /** Data format for response. */
738
+ alt?:
739
+ string;
740
+ /** JSONP */
741
+ callback?:
742
+ string;
743
+ /** Selector specifying which fields to include in a partial response. */
744
+ fields?:
745
+ string;
746
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
747
+ key?:
748
+ string;
749
+ /** Required. The fully qualified name of the case resource to be closed. */
750
+ name:
751
+ string;
752
+ /** OAuth 2.0 token for the current user. */
753
+ oauth_token?:
754
+ string;
755
+ /** Returns response with indentations and line breaks. */
756
+ prettyPrint?:
757
+ boolean;
758
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
759
+ quotaUser?:
760
+ string;
761
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
762
+ upload_protocol?:
763
+ string;
764
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
765
+ uploadType?:
766
+ string;
767
+ },
768
+ body: CloseCaseRequest): Request<Case>;
769
+ /**
770
+ * Create a new case and associate it with the given Google Cloud Resource. The case object must have the following fields set: `display_name`, `description`, `classification`, and
771
+ * `priority`.
772
+ */
773
+ create(request: {
774
+ /** V1 error format. */
775
+ "$.xgafv"?:
776
+ string;
777
+ /** OAuth access token. */
778
+ access_token?:
779
+ string;
780
+ /** Data format for response. */
781
+ alt?:
782
+ string;
783
+ /** JSONP */
784
+ callback?:
785
+ string;
786
+ /** Selector specifying which fields to include in a partial response. */
787
+ fields?:
788
+ string;
789
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
790
+ key?:
791
+ string;
792
+ /** OAuth 2.0 token for the current user. */
793
+ oauth_token?:
794
+ string;
795
+ /** Required. The name of the Google Cloud Resource under which the case should be created. */
796
+ parent:
797
+ string;
798
+ /** Returns response with indentations and line breaks. */
799
+ prettyPrint?:
800
+ boolean;
801
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
802
+ quotaUser?:
803
+ string;
804
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
805
+ upload_protocol?:
806
+ string;
807
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
808
+ uploadType?:
809
+ string;
810
+ /** Request body */
811
+ resource:
812
+ Case;
813
+ }): Request<Case>;
814
+ create(request: {
815
+ /** V1 error format. */
816
+ "$.xgafv"?:
817
+ string;
818
+ /** OAuth access token. */
819
+ access_token?:
820
+ string;
821
+ /** Data format for response. */
822
+ alt?:
823
+ string;
824
+ /** JSONP */
825
+ callback?:
826
+ string;
827
+ /** Selector specifying which fields to include in a partial response. */
828
+ fields?:
829
+ string;
830
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
831
+ key?:
832
+ string;
833
+ /** OAuth 2.0 token for the current user. */
834
+ oauth_token?:
835
+ string;
836
+ /** Required. The name of the Google Cloud Resource under which the case should be created. */
837
+ parent:
838
+ string;
839
+ /** Returns response with indentations and line breaks. */
840
+ prettyPrint?:
841
+ boolean;
842
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
843
+ quotaUser?:
844
+ string;
845
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
846
+ upload_protocol?:
847
+ string;
848
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
849
+ uploadType?:
850
+ string;
851
+ },
852
+ body: Case): Request<Case>;
853
+ /**
854
+ * Escalate a case. Escalating a case will initiate the Google Cloud Support escalation management process. This operation is only available to certain Customer Care tiers. Go to
855
+ * https://cloud.google.com/support and look for 'Technical support escalations' in the feature list to find out which tiers are able to perform escalations.
856
+ */
857
+ escalate(request: {
858
+ /** V1 error format. */
859
+ "$.xgafv"?:
860
+ string;
861
+ /** OAuth access token. */
862
+ access_token?:
863
+ string;
864
+ /** Data format for response. */
865
+ alt?:
866
+ string;
867
+ /** JSONP */
868
+ callback?:
869
+ string;
870
+ /** Selector specifying which fields to include in a partial response. */
871
+ fields?:
872
+ string;
873
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
874
+ key?:
875
+ string;
876
+ /** Required. The fully qualified name of the Case resource to be escalated. */
877
+ name:
878
+ string;
879
+ /** OAuth 2.0 token for the current user. */
880
+ oauth_token?:
881
+ string;
882
+ /** Returns response with indentations and line breaks. */
883
+ prettyPrint?:
884
+ boolean;
885
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
886
+ quotaUser?:
887
+ string;
888
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
889
+ upload_protocol?:
890
+ string;
891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
892
+ uploadType?:
893
+ string;
894
+ /** Request body */
895
+ resource:
896
+ EscalateCaseRequest;
897
+ }): Request<Case>;
898
+ escalate(request: {
899
+ /** V1 error format. */
900
+ "$.xgafv"?:
901
+ string;
902
+ /** OAuth access token. */
903
+ access_token?:
904
+ string;
905
+ /** Data format for response. */
906
+ alt?:
907
+ string;
908
+ /** JSONP */
909
+ callback?:
910
+ string;
911
+ /** Selector specifying which fields to include in a partial response. */
912
+ fields?:
913
+ string;
914
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
915
+ key?:
916
+ string;
917
+ /** Required. The fully qualified name of the Case resource to be escalated. */
918
+ name:
919
+ string;
920
+ /** OAuth 2.0 token for the current user. */
921
+ oauth_token?:
922
+ string;
923
+ /** Returns response with indentations and line breaks. */
924
+ prettyPrint?:
925
+ boolean;
926
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
927
+ quotaUser?:
928
+ string;
929
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
930
+ upload_protocol?:
931
+ string;
932
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
933
+ uploadType?:
934
+ string;
935
+ },
936
+ body: EscalateCaseRequest): Request<Case>;
937
+ /** Retrieve the specified case. */
938
+ get(request?: {
939
+ /** V1 error format. */
940
+ "$.xgafv"?:
941
+ string;
942
+ /** OAuth access token. */
943
+ access_token?:
944
+ string;
945
+ /** Data format for response. */
946
+ alt?:
947
+ string;
948
+ /** JSONP */
949
+ callback?:
950
+ string;
951
+ /** Selector specifying which fields to include in a partial response. */
952
+ fields?:
953
+ string;
954
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
955
+ key?:
956
+ string;
957
+ /** Required. The fully qualified name of a case to be retrieved. */
958
+ name:
959
+ string;
960
+ /** OAuth 2.0 token for the current user. */
961
+ oauth_token?:
962
+ string;
963
+ /** Returns response with indentations and line breaks. */
964
+ prettyPrint?:
965
+ boolean;
966
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
967
+ quotaUser?:
968
+ string;
969
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
970
+ upload_protocol?:
971
+ string;
972
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
973
+ uploadType?:
974
+ string;
975
+ }): Request<Case>;
976
+ /**
977
+ * Retrieve all cases under the specified parent. Note: Listing cases under an Organization returns only the cases directly parented by that organization. To retrieve all cases under
978
+ * an organization, including cases parented by projects under that organization, use `cases.search`.
979
+ */
980
+ list(request?: {
981
+ /** V1 error format. */
982
+ "$.xgafv"?:
983
+ string;
984
+ /** OAuth access token. */
985
+ access_token?:
986
+ string;
987
+ /** Data format for response. */
988
+ alt?:
989
+ string;
990
+ /** JSONP */
991
+ callback?:
992
+ string;
993
+ /** Selector specifying which fields to include in a partial response. */
994
+ fields?:
995
+ string;
996
+ /**
997
+ * An expression written in filter language. If non-empty, the query returns the cases that match the filter. Else, the query doesn't filter the cases. Filter expressions use the
998
+ * following fields with the operators equals (`=`) and `AND`: - `state`: The accepted values are `OPEN` or `CLOSED`. - `priority`: The accepted values are `P0`, `P1`, `P2`, `P3`,
999
+ * or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The email address of the case
1000
+ * creator. Examples: - `state=CLOSED` - `state=OPEN AND creator.email="tester@example.com"` - `state=OPEN AND (priority=P0 OR priority=P1)`
1001
+ */
1002
+ filter?:
1003
+ string;
1004
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1005
+ key?:
1006
+ string;
1007
+ /** OAuth 2.0 token for the current user. */
1008
+ oauth_token?:
1009
+ string;
1010
+ /** The maximum number of cases fetched with each request. Defaults to 10. */
1011
+ pageSize?:
1012
+ number;
1013
+ /** A token identifying the page of results to return. If unspecified, the first page is retrieved. */
1014
+ pageToken?:
1015
+ string;
1016
+ /** Required. The fully qualified name of parent resource to list cases under. */
1017
+ parent:
1018
+ string;
1019
+ /** Returns response with indentations and line breaks. */
1020
+ prettyPrint?:
1021
+ boolean;
1022
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1023
+ quotaUser?:
1024
+ string;
1025
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1026
+ upload_protocol?:
1027
+ string;
1028
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1029
+ uploadType?:
1030
+ string;
1031
+ }): Request<ListCasesResponse>;
1032
+ /** Update the specified case. Only a subset of fields can be updated. */
1033
+ patch(request: {
1034
+ /** V1 error format. */
1035
+ "$.xgafv"?:
1036
+ string;
1037
+ /** OAuth access token. */
1038
+ access_token?:
1039
+ string;
1040
+ /** Data format for response. */
1041
+ alt?:
1042
+ string;
1043
+ /** JSONP */
1044
+ callback?:
1045
+ string;
1046
+ /** Selector specifying which fields to include in a partial response. */
1047
+ fields?:
1048
+ string;
1049
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1050
+ key?:
1051
+ string;
1052
+ /** The resource name for the case. */
1053
+ name:
1054
+ string;
1055
+ /** OAuth 2.0 token for the current user. */
1056
+ oauth_token?:
1057
+ string;
1058
+ /** Returns response with indentations and line breaks. */
1059
+ prettyPrint?:
1060
+ boolean;
1061
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1062
+ quotaUser?:
1063
+ string;
1064
+ /**
1065
+ * A list of attributes of the case object that should be updated as part of this request. Supported values are `priority`, `display_name`, and `subscriber_email_addresses`. If no
1066
+ * fields are specified, all supported fields are updated. WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the
1067
+ * field mask empty and do not provide a value for `subscriber_email_addresses`, then `subscriber_email_addresses` is updated to empty.
1068
+ */
1069
+ updateMask?:
1070
+ string;
1071
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1072
+ upload_protocol?:
1073
+ string;
1074
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1075
+ uploadType?:
1076
+ string;
1077
+ /** Request body */
1078
+ resource:
1079
+ Case;
1080
+ }): Request<Case>;
1081
+ patch(request: {
1082
+ /** V1 error format. */
1083
+ "$.xgafv"?:
1084
+ string;
1085
+ /** OAuth access token. */
1086
+ access_token?:
1087
+ string;
1088
+ /** Data format for response. */
1089
+ alt?:
1090
+ string;
1091
+ /** JSONP */
1092
+ callback?:
1093
+ string;
1094
+ /** Selector specifying which fields to include in a partial response. */
1095
+ fields?:
1096
+ string;
1097
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1098
+ key?:
1099
+ string;
1100
+ /** The resource name for the case. */
1101
+ name:
1102
+ string;
1103
+ /** OAuth 2.0 token for the current user. */
1104
+ oauth_token?:
1105
+ string;
1106
+ /** Returns response with indentations and line breaks. */
1107
+ prettyPrint?:
1108
+ boolean;
1109
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1110
+ quotaUser?:
1111
+ string;
1112
+ /**
1113
+ * A list of attributes of the case object that should be updated as part of this request. Supported values are `priority`, `display_name`, and `subscriber_email_addresses`. If no
1114
+ * fields are specified, all supported fields are updated. WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the
1115
+ * field mask empty and do not provide a value for `subscriber_email_addresses`, then `subscriber_email_addresses` is updated to empty.
1116
+ */
1117
+ updateMask?:
1118
+ string;
1119
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1120
+ upload_protocol?:
1121
+ string;
1122
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1123
+ uploadType?:
1124
+ string;
1125
+ },
1126
+ body: Case): Request<Case>;
1127
+ /** Search cases using the specified query. */
1128
+ search(request?: {
1129
+ /** V1 error format. */
1130
+ "$.xgafv"?:
1131
+ string;
1132
+ /** OAuth access token. */
1133
+ access_token?:
1134
+ string;
1135
+ /** Data format for response. */
1136
+ alt?:
1137
+ string;
1138
+ /** JSONP */
1139
+ callback?:
1140
+ string;
1141
+ /** Selector specifying which fields to include in a partial response. */
1142
+ fields?:
1143
+ string;
1144
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1145
+ key?:
1146
+ string;
1147
+ /** OAuth 2.0 token for the current user. */
1148
+ oauth_token?:
1149
+ string;
1150
+ /** The maximum number of cases fetched with each request. The default page size is 10. */
1151
+ pageSize?:
1152
+ number;
1153
+ /** A token identifying the page of results to return. If unspecified, the first page is retrieved. */
1154
+ pageToken?:
1155
+ string;
1156
+ /** The fully qualified name of parent resource to search cases under. */
1157
+ parent:
1158
+ string;
1159
+ /** Returns response with indentations and line breaks. */
1160
+ prettyPrint?:
1161
+ boolean;
1162
+ /**
1163
+ * An expression written in filter language. A query uses the following fields with the operators equals (`=`) and `AND`: - `organization`: An organization name in the form
1164
+ * `organizations/`. - `project`: A project name in the form `projects/`. - `state`: The accepted values are `OPEN` or `CLOSED`. - `priority`: The accepted values are `P0`, `P1`,
1165
+ * `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`. - `creator.email`: The email address of the
1166
+ * case creator. - `billingAccount`: A billing account in the form `billingAccounts/` You must specify either `organization` or `project`. To search across `displayName`,
1167
+ * `description`, and comments, use a global restriction with no keyword or operator. For example, `"my search"`. To search only cases updated after a certain date, use
1168
+ * `update_time` restricted with that particular date, time, and timezone in ISO datetime format. For example, `update_time>"2020-01-01T00:00:00-05:00"`. `update_time` only
1169
+ * supports the greater than operator (`>`). Examples: - `organization="organizations/123456789"` - `project="projects/my-project-id"` - `project="projects/123456789"` -
1170
+ * `billing_account="billingAccounts/123456-A0B0C0-CUZ789"` - `organization="organizations/123456789" AND state=CLOSED` - `project="projects/my-project-id" AND
1171
+ * creator.email="tester@example.com"` - `project="projects/my-project-id" AND (priority=P0 OR priority=P1)`
1172
+ */
1173
+ query?:
1174
+ string;
1175
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1176
+ quotaUser?:
1177
+ string;
1178
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1179
+ upload_protocol?:
1180
+ string;
1181
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1182
+ uploadType?:
1183
+ string;
1184
+ }): Request<SearchCasesResponse>;
1185
+ attachments:
1186
+ AttachmentsResource;
1187
+ comments:
1188
+ CommentsResource;
1189
+ }
1190
+ interface MediaResource {
1191
+ /** Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL. */
1192
+ download(request?: {
1193
+ /** V1 error format. */
1194
+ "$.xgafv"?:
1195
+ string;
1196
+ /** OAuth access token. */
1197
+ access_token?:
1198
+ string;
1199
+ /** Data format for response. */
1200
+ alt?:
1201
+ string;
1202
+ /** JSONP */
1203
+ callback?:
1204
+ string;
1205
+ /** Selector specifying which fields to include in a partial response. */
1206
+ fields?:
1207
+ string;
1208
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1209
+ key?:
1210
+ string;
1211
+ /** The resource name of the attachment to be downloaded. */
1212
+ name:
1213
+ string;
1214
+ /** OAuth 2.0 token for the current user. */
1215
+ oauth_token?:
1216
+ string;
1217
+ /** Returns response with indentations and line breaks. */
1218
+ prettyPrint?:
1219
+ boolean;
1220
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1221
+ quotaUser?:
1222
+ string;
1223
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1224
+ upload_protocol?:
1225
+ string;
1226
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1227
+ uploadType?:
1228
+ string;
1229
+ }): Request<Media>;
1230
+ /** Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename. */
1231
+ upload(request: {
1232
+ /** V1 error format. */
1233
+ "$.xgafv"?:
1234
+ string;
1235
+ /** OAuth access token. */
1236
+ access_token?:
1237
+ string;
1238
+ /** Data format for response. */
1239
+ alt?:
1240
+ string;
1241
+ /** JSONP */
1242
+ callback?:
1243
+ string;
1244
+ /** Selector specifying which fields to include in a partial response. */
1245
+ fields?:
1246
+ string;
1247
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1248
+ key?:
1249
+ string;
1250
+ /** OAuth 2.0 token for the current user. */
1251
+ oauth_token?:
1252
+ string;
1253
+ /** Required. The resource name of the case (or case parent) to which the attachment should be attached. */
1254
+ parent:
1255
+ string;
1256
+ /** Returns response with indentations and line breaks. */
1257
+ prettyPrint?:
1258
+ boolean;
1259
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1260
+ quotaUser?:
1261
+ string;
1262
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1263
+ upload_protocol?:
1264
+ string;
1265
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1266
+ uploadType?:
1267
+ string;
1268
+ /** Request body */
1269
+ resource:
1270
+ CreateAttachmentRequest;
1271
+ }): Request<Attachment>;
1272
+ upload(request: {
1273
+ /** V1 error format. */
1274
+ "$.xgafv"?:
1275
+ string;
1276
+ /** OAuth access token. */
1277
+ access_token?:
1278
+ string;
1279
+ /** Data format for response. */
1280
+ alt?:
1281
+ string;
1282
+ /** JSONP */
1283
+ callback?:
1284
+ string;
1285
+ /** Selector specifying which fields to include in a partial response. */
1286
+ fields?:
1287
+ string;
1288
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1289
+ key?:
1290
+ string;
1291
+ /** OAuth 2.0 token for the current user. */
1292
+ oauth_token?:
1293
+ string;
1294
+ /** Required. The resource name of the case (or case parent) to which the attachment should be attached. */
1295
+ parent:
1296
+ string;
1297
+ /** Returns response with indentations and line breaks. */
1298
+ prettyPrint?:
1299
+ boolean;
1300
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1301
+ quotaUser?:
1302
+ string;
1303
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1304
+ upload_protocol?:
1305
+ string;
1306
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1307
+ uploadType?:
1308
+ string;
1309
+ },
1310
+ body: CreateAttachmentRequest): Request<Attachment>;
1311
+ }
1312
+
1313
+ const caseClassifications: CaseClassificationsResource;
1314
+
1315
+ const cases: CasesResource;
1316
+
1317
+ const media: MediaResource;
1318
+ }
1319
+ }