-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
cloudsupport-gen.go
3885 lines (3510 loc) · 153 KB
/
cloudsupport-gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package cloudsupport provides access to the Google Cloud Support API.
//
// For product documentation, see: https://cloud.google.com/support/docs/apis
//
// # Library status
//
// These client libraries are officially supported by Google. However, this
// library is considered complete and is in maintenance mode. This means
// that we will address critical bugs and security issues but will not add
// any new features.
//
// When possible, we recommend using our newer
// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
// that are still actively being worked and iterated on.
//
// # Creating a client
//
// Usage example:
//
// import "google.golang.org/api/cloudsupport/v2"
// ...
// ctx := context.Background()
// cloudsupportService, err := cloudsupport.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for
// authentication. For information on how to create and obtain Application
// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// # Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API
// keys), use [google.golang.org/api/option.WithAPIKey]:
//
// cloudsupportService, err := cloudsupport.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
// flow, use [google.golang.org/api/option.WithTokenSource]:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// cloudsupportService, err := cloudsupport.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See [google.golang.org/api/option.ClientOption] for details on options.
package cloudsupport // import "google.golang.org/api/cloudsupport/v2"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
internal "google.golang.org/api/internal"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
var _ = internal.Version
const apiId = "cloudsupport:v2"
const apiName = "cloudsupport"
const apiVersion = "v2"
const basePath = "https://cloudsupport.googleapis.com/"
const mtlsBasePath = "https://cloudsupport.mtls.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// See, edit, configure, and delete your Google Cloud data and see the
// email address for your Google Account.
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := internaloption.WithDefaultScopes(
"https://www.googleapis.com/auth/cloud-platform",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.CaseClassifications = NewCaseClassificationsService(s)
s.Cases = NewCasesService(s)
s.Media = NewMediaService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
CaseClassifications *CaseClassificationsService
Cases *CasesService
Media *MediaService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewCaseClassificationsService(s *Service) *CaseClassificationsService {
rs := &CaseClassificationsService{s: s}
return rs
}
type CaseClassificationsService struct {
s *Service
}
func NewCasesService(s *Service) *CasesService {
rs := &CasesService{s: s}
rs.Attachments = NewCasesAttachmentsService(s)
rs.Comments = NewCasesCommentsService(s)
return rs
}
type CasesService struct {
s *Service
Attachments *CasesAttachmentsService
Comments *CasesCommentsService
}
func NewCasesAttachmentsService(s *Service) *CasesAttachmentsService {
rs := &CasesAttachmentsService{s: s}
return rs
}
type CasesAttachmentsService struct {
s *Service
}
func NewCasesCommentsService(s *Service) *CasesCommentsService {
rs := &CasesCommentsService{s: s}
return rs
}
type CasesCommentsService struct {
s *Service
}
func NewMediaService(s *Service) *MediaService {
rs := &MediaService{s: s}
return rs
}
type MediaService struct {
s *Service
}
// Actor: An object containing information about the effective user and
// authenticated principal responsible for an action.
type Actor struct {
// DisplayName: 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. This will be
// obfuscated if the user is a Google Support agent.
DisplayName string `json:"displayName,omitempty"`
// Email: 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 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.
Email string `json:"email,omitempty"`
// GoogleSupport: Output only. Whether the actor is a Google support
// actor.
GoogleSupport bool `json:"googleSupport,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Actor) MarshalJSON() ([]byte, error) {
type NoMethod Actor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Attachment: Represents a file attached to a support case.
type Attachment struct {
// CreateTime: Output only. The time at which the attachment was
// created.
CreateTime string `json:"createTime,omitempty"`
// Creator: Output only. The user who uploaded the attachment. Note, the
// name and email will be obfuscated if the attachment was uploaded by
// Google support.
Creator *Actor `json:"creator,omitempty"`
// Filename: The filename of the attachment (e.g. "graph.jpg").
Filename string `json:"filename,omitempty"`
// MimeType: Output only. The MIME type of the attachment (e.g.
// text/plain).
MimeType string `json:"mimeType,omitempty"`
// Name: Output only. The resource name of the attachment.
Name string `json:"name,omitempty"`
// SizeBytes: Output only. The size of the attachment in bytes.
SizeBytes int64 `json:"sizeBytes,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Attachment) MarshalJSON() ([]byte, error) {
type NoMethod Attachment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Blobstore2Info: # gdata.* are outside protos with mising
// documentation
type Blobstore2Info struct {
// BlobGeneration: # gdata.* are outside protos with mising
// documentation
BlobGeneration int64 `json:"blobGeneration,omitempty,string"`
// BlobId: # gdata.* are outside protos with mising documentation
BlobId string `json:"blobId,omitempty"`
// DownloadReadHandle: # gdata.* are outside protos with mising
// documentation
DownloadReadHandle string `json:"downloadReadHandle,omitempty"`
// ReadToken: # gdata.* are outside protos with mising documentation
ReadToken string `json:"readToken,omitempty"`
// UploadMetadataContainer: # gdata.* are outside protos with mising
// documentation
UploadMetadataContainer string `json:"uploadMetadataContainer,omitempty"`
// ForceSendFields is a list of field names (e.g. "BlobGeneration") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BlobGeneration") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Blobstore2Info) MarshalJSON() ([]byte, error) {
type NoMethod Blobstore2Info
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Case: A support case.
type Case struct {
// Classification: The issue classification applicable to this case.
Classification *CaseClassification `json:"classification,omitempty"`
// ContactEmail: 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 EUCs.
ContactEmail string `json:"contactEmail,omitempty"`
// CreateTime: Output only. The time this case was created.
CreateTime string `json:"createTime,omitempty"`
// Creator: The user who created the case. Note: The name and email will
// be obfuscated if the case was created by Google Support.
Creator *Actor `json:"creator,omitempty"`
// Description: A broad description of the issue.
Description string `json:"description,omitempty"`
// DisplayName: The short summary of the issue reported in this case.
DisplayName string `json:"displayName,omitempty"`
// Escalated: Whether the case is currently escalated.
Escalated bool `json:"escalated,omitempty"`
// LanguageCode: 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 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 languages and their support working hours, see:
// https://cloud.google.com/support/docs/language-working-hours
LanguageCode string `json:"languageCode,omitempty"`
// Name: The resource name for the case.
Name string `json:"name,omitempty"`
// Priority: The priority of this case.
//
// Possible values:
// "PRIORITY_UNSPECIFIED" - Priority is undefined or has not been set
// yet.
// "P0" - Extreme impact on a production service. Service is hard
// down.
// "P1" - Critical impact on a production service. Service is
// currently unusable.
// "P2" - Severe impact on a production service. Service is usable but
// greatly impaired.
// "P3" - Medium impact on a production service. Service is available,
// but moderately impaired.
// "P4" - General questions or minor issues. Production service is
// fully available.
Priority string `json:"priority,omitempty"`
// State: Output only. The current status of the support case.
//
// Possible values:
// "STATE_UNSPECIFIED" - Case is in an unknown state.
// "NEW" - The case has been created but no one is assigned to work on
// it yet.
// "IN_PROGRESS_GOOGLE_SUPPORT" - The case is currently being handled
// by Google support.
// "ACTION_REQUIRED" - Google is waiting for a response.
// "SOLUTION_PROVIDED" - A solution has been offered for the case, but
// it isn't yet closed.
// "CLOSED" - The case has been resolved.
State string `json:"state,omitempty"`
// SubscriberEmailAddresses: The email addresses to receive updates on
// this case.
SubscriberEmailAddresses []string `json:"subscriberEmailAddresses,omitempty"`
// TestCase: Whether this case was created for internal API testing and
// should not be acted on by the support team.
TestCase bool `json:"testCase,omitempty"`
// TimeZone: 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.
TimeZone string `json:"timeZone,omitempty"`
// UpdateTime: Output only. The time this case was last updated.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Classification") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Classification") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Case) MarshalJSON() ([]byte, error) {
type NoMethod Case
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CaseClassification: A classification object with a product type and
// value.
type CaseClassification struct {
// DisplayName: 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.
DisplayName string `json:"displayName,omitempty"`
// Id: 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 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 6 months, `case.create`
// requests using the classification ID will fail.
Id string `json:"id,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CaseClassification) MarshalJSON() ([]byte, error) {
type NoMethod CaseClassification
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloseCaseRequest: The request message for the CloseCase endpoint.
type CloseCaseRequest struct {
}
// Comment: A comment associated with a support case.
type Comment struct {
// Body: The full comment body. Maximum of 12800 characters. This can
// contain rich text syntax.
Body string `json:"body,omitempty"`
// CreateTime: Output only. The time when this comment was created.
CreateTime string `json:"createTime,omitempty"`
// Creator: Output only. The user or Google Support agent created this
// comment.
Creator *Actor `json:"creator,omitempty"`
// Name: Output only. The resource name for the comment.
Name string `json:"name,omitempty"`
// PlainTextBody: Output only. DEPRECATED. An automatically generated
// plain text version of body with all rich text syntax stripped.
PlainTextBody string `json:"plainTextBody,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Body") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Body") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Comment) MarshalJSON() ([]byte, error) {
type NoMethod Comment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CompositeMedia: # gdata.* are outside protos with mising
// documentation
type CompositeMedia struct {
// BlobRef: # gdata.* are outside protos with mising documentation
BlobRef string `json:"blobRef,omitempty"`
// Blobstore2Info: # gdata.* are outside protos with mising
// documentation
Blobstore2Info *Blobstore2Info `json:"blobstore2Info,omitempty"`
// CosmoBinaryReference: # gdata.* are outside protos with mising
// documentation
CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
// Crc32cHash: # gdata.* are outside protos with mising documentation
Crc32cHash int64 `json:"crc32cHash,omitempty"`
// Inline: # gdata.* are outside protos with mising documentation
Inline string `json:"inline,omitempty"`
// Length: # gdata.* are outside protos with mising documentation
Length int64 `json:"length,omitempty,string"`
// Md5Hash: # gdata.* are outside protos with mising documentation
Md5Hash string `json:"md5Hash,omitempty"`
// ObjectId: # gdata.* are outside protos with mising documentation
ObjectId *ObjectId `json:"objectId,omitempty"`
// Path: # gdata.* are outside protos with mising documentation
Path string `json:"path,omitempty"`
// ReferenceType: # gdata.* are outside protos with mising documentation
//
// Possible values:
// "PATH" - # gdata.* are outside protos with mising documentation
// "BLOB_REF" - # gdata.* are outside protos with mising documentation
// "INLINE" - # gdata.* are outside protos with mising documentation
// "BIGSTORE_REF" - # gdata.* are outside protos with mising
// documentation
// "COSMO_BINARY_REFERENCE" - # gdata.* are outside protos with mising
// documentation
ReferenceType string `json:"referenceType,omitempty"`
// Sha1Hash: # gdata.* are outside protos with mising documentation
Sha1Hash string `json:"sha1Hash,omitempty"`
// ForceSendFields is a list of field names (e.g. "BlobRef") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BlobRef") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CompositeMedia) MarshalJSON() ([]byte, error) {
type NoMethod CompositeMedia
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ContentTypeInfo: # gdata.* are outside protos with mising
// documentation
type ContentTypeInfo struct {
// BestGuess: # gdata.* are outside protos with mising documentation
BestGuess string `json:"bestGuess,omitempty"`
// FromBytes: # gdata.* are outside protos with mising documentation
FromBytes string `json:"fromBytes,omitempty"`
// FromFileName: # gdata.* are outside protos with mising documentation
FromFileName string `json:"fromFileName,omitempty"`
// FromHeader: # gdata.* are outside protos with mising documentation
FromHeader string `json:"fromHeader,omitempty"`
// FromUrlPath: # gdata.* are outside protos with mising documentation
FromUrlPath string `json:"fromUrlPath,omitempty"`
// ForceSendFields is a list of field names (e.g. "BestGuess") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BestGuess") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ContentTypeInfo) MarshalJSON() ([]byte, error) {
type NoMethod ContentTypeInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateAttachmentRequest: The request message for the CreateAttachment
// endpoint.
type CreateAttachmentRequest struct {
// Attachment: Required. The attachment to be created.
Attachment *Attachment `json:"attachment,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attachment") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Attachment") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateAttachmentRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateAttachmentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiffChecksumsResponse: # gdata.* are outside protos with mising
// documentation
type DiffChecksumsResponse struct {
// ChecksumsLocation: # gdata.* are outside protos with mising
// documentation
ChecksumsLocation *CompositeMedia `json:"checksumsLocation,omitempty"`
// ChunkSizeBytes: # gdata.* are outside protos with mising
// documentation
ChunkSizeBytes int64 `json:"chunkSizeBytes,omitempty,string"`
// ObjectLocation: # gdata.* are outside protos with mising
// documentation
ObjectLocation *CompositeMedia `json:"objectLocation,omitempty"`
// ObjectSizeBytes: # gdata.* are outside protos with mising
// documentation
ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
// ObjectVersion: # gdata.* are outside protos with mising documentation
ObjectVersion string `json:"objectVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChecksumsLocation")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChecksumsLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DiffChecksumsResponse) MarshalJSON() ([]byte, error) {
type NoMethod DiffChecksumsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiffDownloadResponse: # gdata.* are outside protos with mising
// documentation
type DiffDownloadResponse struct {
// ObjectLocation: # gdata.* are outside protos with mising
// documentation
ObjectLocation *CompositeMedia `json:"objectLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectLocation") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DiffDownloadResponse) MarshalJSON() ([]byte, error) {
type NoMethod DiffDownloadResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiffUploadRequest: # gdata.* are outside protos with mising
// documentation
type DiffUploadRequest struct {
// ChecksumsInfo: # gdata.* are outside protos with mising documentation
ChecksumsInfo *CompositeMedia `json:"checksumsInfo,omitempty"`
// ObjectInfo: # gdata.* are outside protos with mising documentation
ObjectInfo *CompositeMedia `json:"objectInfo,omitempty"`
// ObjectVersion: # gdata.* are outside protos with mising documentation
ObjectVersion string `json:"objectVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChecksumsInfo") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChecksumsInfo") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DiffUploadRequest) MarshalJSON() ([]byte, error) {
type NoMethod DiffUploadRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiffUploadResponse: # gdata.* are outside protos with mising
// documentation
type DiffUploadResponse struct {
// ObjectVersion: # gdata.* are outside protos with mising documentation
ObjectVersion string `json:"objectVersion,omitempty"`
// OriginalObject: # gdata.* are outside protos with mising
// documentation
OriginalObject *CompositeMedia `json:"originalObject,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectVersion") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectVersion") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DiffUploadResponse) MarshalJSON() ([]byte, error) {
type NoMethod DiffUploadResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DiffVersionResponse: # gdata.* are outside protos with mising
// documentation
type DiffVersionResponse struct {
// ObjectSizeBytes: # gdata.* are outside protos with mising
// documentation
ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
// ObjectVersion: # gdata.* are outside protos with mising documentation
ObjectVersion string `json:"objectVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectSizeBytes") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectSizeBytes") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DiffVersionResponse) MarshalJSON() ([]byte, error) {
type NoMethod DiffVersionResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DownloadParameters: # gdata.* are outside protos with mising
// documentation
type DownloadParameters struct {
// AllowGzipCompression: # gdata.* are outside protos with mising
// documentation
AllowGzipCompression bool `json:"allowGzipCompression,omitempty"`
// IgnoreRange: # gdata.* are outside protos with mising documentation
IgnoreRange bool `json:"ignoreRange,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllowGzipCompression") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AllowGzipCompression") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DownloadParameters) MarshalJSON() ([]byte, error) {
type NoMethod DownloadParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EscalateCaseRequest: The request message for the EscalateCase
// endpoint.
type EscalateCaseRequest struct {
// Escalation: The escalation information to be sent with the escalation
// request.
Escalation *Escalation `json:"escalation,omitempty"`
// ForceSendFields is a list of field names (e.g. "Escalation") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Escalation") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EscalateCaseRequest) MarshalJSON() ([]byte, error) {
type NoMethod EscalateCaseRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Escalation: An escalation of a support case.
type Escalation struct {
// Justification: Required. A free text description to accompany the
// `reason` field above. Provides additional context on why the case is
// being escalated.
Justification string `json:"justification,omitempty"`
// Reason: Required. The reason why the Case is being escalated.
//
// Possible values:
// "REASON_UNSPECIFIED" - The escalation reason is in an unknown state
// or has not been specified.
// "RESOLUTION_TIME" - The case is taking too long to resolve.
// "TECHNICAL_EXPERTISE" - The support agent does not have the
// expertise required to successfully resolve the issue.
// "BUSINESS_IMPACT" - The issue is having a significant business
// impact.
Reason string `json:"reason,omitempty"`
// ForceSendFields is a list of field names (e.g. "Justification") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Justification") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Escalation) MarshalJSON() ([]byte, error) {
type NoMethod Escalation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListAttachmentsResponse: The response message for the ListAttachments
// endpoint.
type ListAttachmentsResponse struct {
// Attachments: The list of attachments associated with a case.
Attachments []*Attachment `json:"attachments,omitempty"`
// NextPageToken: A token to retrieve the next page of results. Set this
// in the `page_token` field of subsequent `cases.attachments.list`
// requests. If unspecified, there are no more results to retrieve.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Attachments") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.