-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
kmsinventory-gen.go
1600 lines (1440 loc) · 67.1 KB
/
kmsinventory-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 2024 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 kmsinventory provides access to the KMS Inventory API.
//
// For product documentation, see: https://cloud.google.com/kms/
//
// # 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/kmsinventory/v1"
// ...
// ctx := context.Background()
// kmsinventoryService, err := kmsinventory.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]:
//
// kmsinventoryService, err := kmsinventory.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, ...)
// kmsinventoryService, err := kmsinventory.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See [google.golang.org/api/option.ClientOption] for details on options.
package kmsinventory // import "google.golang.org/api/kmsinventory/v1"
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 = "kmsinventory:v1"
const apiName = "kmsinventory"
const apiVersion = "v1"
const basePath = "https://kmsinventory.googleapis.com/"
const basePathTemplate = "https://kmsinventory.UNIVERSE_DOMAIN/"
const mtlsBasePath = "https://kmsinventory.mtls.googleapis.com/"
const defaultUniverseDomain = "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.WithDefaultEndpointTemplate(basePathTemplate))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
opts = append(opts, internaloption.WithDefaultUniverseDomain(defaultUniverseDomain))
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.Organizations = NewOrganizationsService(s)
s.Projects = NewProjectsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Organizations *OrganizationsService
Projects *ProjectsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewOrganizationsService(s *Service) *OrganizationsService {
rs := &OrganizationsService{s: s}
rs.ProtectedResources = NewOrganizationsProtectedResourcesService(s)
return rs
}
type OrganizationsService struct {
s *Service
ProtectedResources *OrganizationsProtectedResourcesService
}
func NewOrganizationsProtectedResourcesService(s *Service) *OrganizationsProtectedResourcesService {
rs := &OrganizationsProtectedResourcesService{s: s}
return rs
}
type OrganizationsProtectedResourcesService struct {
s *Service
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.CryptoKeys = NewProjectsCryptoKeysService(s)
rs.Locations = NewProjectsLocationsService(s)
return rs
}
type ProjectsService struct {
s *Service
CryptoKeys *ProjectsCryptoKeysService
Locations *ProjectsLocationsService
}
func NewProjectsCryptoKeysService(s *Service) *ProjectsCryptoKeysService {
rs := &ProjectsCryptoKeysService{s: s}
return rs
}
type ProjectsCryptoKeysService struct {
s *Service
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.KeyRings = NewProjectsLocationsKeyRingsService(s)
return rs
}
type ProjectsLocationsService struct {
s *Service
KeyRings *ProjectsLocationsKeyRingsService
}
func NewProjectsLocationsKeyRingsService(s *Service) *ProjectsLocationsKeyRingsService {
rs := &ProjectsLocationsKeyRingsService{s: s}
rs.CryptoKeys = NewProjectsLocationsKeyRingsCryptoKeysService(s)
return rs
}
type ProjectsLocationsKeyRingsService struct {
s *Service
CryptoKeys *ProjectsLocationsKeyRingsCryptoKeysService
}
func NewProjectsLocationsKeyRingsCryptoKeysService(s *Service) *ProjectsLocationsKeyRingsCryptoKeysService {
rs := &ProjectsLocationsKeyRingsCryptoKeysService{s: s}
return rs
}
type ProjectsLocationsKeyRingsCryptoKeysService struct {
s *Service
}
// GoogleCloudKmsInventoryV1ListCryptoKeysResponse: Response message for
// KeyDashboardService.ListCryptoKeys.
type GoogleCloudKmsInventoryV1ListCryptoKeysResponse struct {
// CryptoKeys: The list of CryptoKeys.
CryptoKeys []*GoogleCloudKmsV1CryptoKey `json:"cryptoKeys,omitempty"`
// NextPageToken: The page token returned from the previous response if
// the next page is desired.
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. "CryptoKeys") 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. "CryptoKeys") 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 *GoogleCloudKmsInventoryV1ListCryptoKeysResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsInventoryV1ListCryptoKeysResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsInventoryV1ProtectedResource: Metadata about a resource
// protected by a Cloud KMS key.
type GoogleCloudKmsInventoryV1ProtectedResource struct {
// CloudProduct: The Cloud product that owns the resource. Example:
// `compute`
CloudProduct string `json:"cloudProduct,omitempty"`
// CreateTime: Output only. The time at which this resource was created.
// The granularity is in seconds. Timestamp.nanos will always be 0.
CreateTime string `json:"createTime,omitempty"`
// CryptoKeyVersion: The name of the Cloud KMS CryptoKeyVersion
// (https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
// used to protect this resource via CMEK. This field is empty if the
// Google Cloud product owning the resource does not provide key version
// data to Asset Inventory. If there are multiple key versions
// protecting the resource, then this is same value as the first element
// of crypto_key_versions.
CryptoKeyVersion string `json:"cryptoKeyVersion,omitempty"`
// CryptoKeyVersions: The names of the Cloud KMS CryptoKeyVersion
// (https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
// used to protect this resource via CMEK. This field is empty if the
// Google Cloud product owning the resource does not provide key
// versions data to Asset Inventory. The first element of this field is
// stored in crypto_key_version.
CryptoKeyVersions []string `json:"cryptoKeyVersions,omitempty"`
// Labels: A key-value pair of the resource's labels (v1) to their
// values.
Labels map[string]string `json:"labels,omitempty"`
// Location: Location can be `global`, regional like `us-east1`, or
// zonal like `us-west1-b`.
Location string `json:"location,omitempty"`
// Name: The full resource name of the resource. Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instance
// s/instance1`.
Name string `json:"name,omitempty"`
// Project: Format: `projects/{PROJECT_NUMBER}`.
Project string `json:"project,omitempty"`
// ProjectId: The ID of the project that owns the resource.
ProjectId string `json:"projectId,omitempty"`
// ResourceType: Example: `compute.googleapis.com/Disk`
ResourceType string `json:"resourceType,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudProduct") 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. "CloudProduct") 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 *GoogleCloudKmsInventoryV1ProtectedResource) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsInventoryV1ProtectedResource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsInventoryV1ProtectedResourcesSummary: Aggregate
// information about the resources protected by a Cloud KMS key in the
// same Cloud organization as the key.
type GoogleCloudKmsInventoryV1ProtectedResourcesSummary struct {
// CloudProducts: The number of resources protected by the key grouped
// by Cloud product.
CloudProducts map[string]string `json:"cloudProducts,omitempty"`
// Locations: The number of resources protected by the key grouped by
// region.
Locations map[string]string `json:"locations,omitempty"`
// Name: The full name of the ProtectedResourcesSummary resource.
// Example:
// projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/te
// st-key/protectedResourcesSummary
Name string `json:"name,omitempty"`
// ProjectCount: The number of distinct Cloud projects in the same Cloud
// organization as the key that have resources protected by the key.
ProjectCount int64 `json:"projectCount,omitempty"`
// ResourceCount: The total number of protected resources in the same
// Cloud organization as the key.
ResourceCount int64 `json:"resourceCount,omitempty,string"`
// ResourceTypes: The number of resources protected by the key grouped
// by resource type.
ResourceTypes map[string]string `json:"resourceTypes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CloudProducts") 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. "CloudProducts") 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 *GoogleCloudKmsInventoryV1ProtectedResourcesSummary) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsInventoryV1ProtectedResourcesSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse: Response
// message for KeyTrackingService.SearchProtectedResources.
type GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse struct {
// NextPageToken: A token that can be sent as `page_token` to retrieve
// the next page. If this field is omitted, there are no subsequent
// pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// ProtectedResources: Protected resources for this page.
ProtectedResources []*GoogleCloudKmsInventoryV1ProtectedResource `json:"protectedResources,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsV1CryptoKey: A CryptoKey represents a logical key that
// can be used for cryptographic operations. A CryptoKey is made up of
// zero or more versions, which represent the actual key material used
// in cryptographic operations.
type GoogleCloudKmsV1CryptoKey struct {
// CreateTime: Output only. The time at which this CryptoKey was
// created.
CreateTime string `json:"createTime,omitempty"`
// CryptoKeyBackend: Immutable. The resource name of the backend
// environment where the key material for all CryptoKeyVersions
// associated with this CryptoKey reside and where all related
// cryptographic operations are performed. Only applicable if
// CryptoKeyVersions have a ProtectionLevel of EXTERNAL_VPC, with the
// resource name in the format
// `projects/*/locations/*/ekmConnections/*`. Note, this list is
// non-exhaustive and may apply to additional ProtectionLevels in the
// future.
CryptoKeyBackend string `json:"cryptoKeyBackend,omitempty"`
// DestroyScheduledDuration: Immutable. The period of time that versions
// of this key spend in the DESTROY_SCHEDULED state before transitioning
// to DESTROYED. If not specified at creation time, the default duration
// is 24 hours.
DestroyScheduledDuration string `json:"destroyScheduledDuration,omitempty"`
// ImportOnly: Immutable. Whether this key may contain imported versions
// only.
ImportOnly bool `json:"importOnly,omitempty"`
// Labels: Labels with user-defined metadata. For more information, see
// Labeling Keys (https://cloud.google.com/kms/docs/labeling-keys).
Labels map[string]string `json:"labels,omitempty"`
// Name: Output only. The resource name for this CryptoKey in the format
// `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
Name string `json:"name,omitempty"`
// NextRotationTime: At next_rotation_time, the Key Management Service
// will automatically: 1. Create a new version of this CryptoKey. 2.
// Mark the new version as primary. Key rotations performed manually via
// CreateCryptoKeyVersion and UpdateCryptoKeyPrimaryVersion do not
// affect next_rotation_time. Keys with purpose ENCRYPT_DECRYPT support
// automatic rotation. For other keys, this field must be omitted.
NextRotationTime string `json:"nextRotationTime,omitempty"`
// Primary: Output only. A copy of the "primary" CryptoKeyVersion that
// will be used by Encrypt when this CryptoKey is given in
// EncryptRequest.name. The CryptoKey's primary version can be updated
// via UpdateCryptoKeyPrimaryVersion. Keys with purpose ENCRYPT_DECRYPT
// may have a primary. For other keys, this field will be omitted.
Primary *GoogleCloudKmsV1CryptoKeyVersion `json:"primary,omitempty"`
// Purpose: Immutable. The immutable purpose of this CryptoKey.
//
// Possible values:
// "CRYPTO_KEY_PURPOSE_UNSPECIFIED" - Not specified.
// "ENCRYPT_DECRYPT" - CryptoKeys with this purpose may be used with
// Encrypt and Decrypt.
// "ASYMMETRIC_SIGN" - CryptoKeys with this purpose may be used with
// AsymmetricSign and GetPublicKey.
// "ASYMMETRIC_DECRYPT" - CryptoKeys with this purpose may be used
// with AsymmetricDecrypt and GetPublicKey.
// "RAW_ENCRYPT_DECRYPT" - CryptoKeys with this purpose may be used
// with RawEncrypt and RawDecrypt. This purpose is meant to be used for
// interoperable symmetric encryption and does not support automatic
// CryptoKey rotation.
// "MAC" - CryptoKeys with this purpose may be used with MacSign.
Purpose string `json:"purpose,omitempty"`
// RotationPeriod: next_rotation_time will be advanced by this period
// when the service automatically rotates a key. Must be at least 24
// hours and at most 876,000 hours. If rotation_period is set,
// next_rotation_time must also be set. Keys with purpose
// ENCRYPT_DECRYPT support automatic rotation. For other keys, this
// field must be omitted.
RotationPeriod string `json:"rotationPeriod,omitempty"`
// VersionTemplate: A template describing settings for new
// CryptoKeyVersion instances. The properties of new CryptoKeyVersion
// instances created by either CreateCryptoKeyVersion or auto-rotation
// are controlled by this template.
VersionTemplate *GoogleCloudKmsV1CryptoKeyVersionTemplate `json:"versionTemplate,omitempty"`
// 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 *GoogleCloudKmsV1CryptoKey) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsV1CryptoKey
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsV1CryptoKeyVersion: A CryptoKeyVersion represents an
// individual cryptographic key, and the associated key material. An
// ENABLED version can be used for cryptographic operations. For
// security reasons, the raw cryptographic key material represented by a
// CryptoKeyVersion can never be viewed or exported. It can only be used
// to encrypt, decrypt, or sign data when an authorized user or
// application invokes Cloud KMS.
type GoogleCloudKmsV1CryptoKeyVersion struct {
// Algorithm: Output only. The CryptoKeyVersionAlgorithm that this
// CryptoKeyVersion supports.
//
// Possible values:
// "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" - Not specified.
// "GOOGLE_SYMMETRIC_ENCRYPTION" - Creates symmetric encryption keys.
// "AES_128_GCM" - AES-GCM (Galois Counter Mode) using 128-bit keys.
// "AES_256_GCM" - AES-GCM (Galois Counter Mode) using 256-bit keys.
// "AES_128_CBC" - AES-CBC (Cipher Block Chaining Mode) using 128-bit
// keys.
// "AES_256_CBC" - AES-CBC (Cipher Block Chaining Mode) using 256-bit
// keys.
// "AES_128_CTR" - AES-CTR (Counter Mode) using 128-bit keys.
// "AES_256_CTR" - AES-CTR (Counter Mode) using 256-bit keys.
// "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256
// digest.
// "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256
// digest.
// "RSA_SIGN_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256
// digest.
// "RSA_SIGN_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512
// digest.
// "RSA_SIGN_PKCS1_2048_SHA256" - RSASSA-PKCS1-v1_5 with a 2048 bit
// key and a SHA256 digest.
// "RSA_SIGN_PKCS1_3072_SHA256" - RSASSA-PKCS1-v1_5 with a 3072 bit
// key and a SHA256 digest.
// "RSA_SIGN_PKCS1_4096_SHA256" - RSASSA-PKCS1-v1_5 with a 4096 bit
// key and a SHA256 digest.
// "RSA_SIGN_PKCS1_4096_SHA512" - RSASSA-PKCS1-v1_5 with a 4096 bit
// key and a SHA512 digest.
// "RSA_SIGN_RAW_PKCS1_2048" - RSASSA-PKCS1-v1_5 signing without
// encoding, with a 2048 bit key.
// "RSA_SIGN_RAW_PKCS1_3072" - RSASSA-PKCS1-v1_5 signing without
// encoding, with a 3072 bit key.
// "RSA_SIGN_RAW_PKCS1_4096" - RSASSA-PKCS1-v1_5 signing without
// encoding, with a 4096 bit key.
// "RSA_DECRYPT_OAEP_2048_SHA256" - RSAES-OAEP 2048 bit key with a
// SHA256 digest.
// "RSA_DECRYPT_OAEP_3072_SHA256" - RSAES-OAEP 3072 bit key with a
// SHA256 digest.
// "RSA_DECRYPT_OAEP_4096_SHA256" - RSAES-OAEP 4096 bit key with a
// SHA256 digest.
// "RSA_DECRYPT_OAEP_4096_SHA512" - RSAES-OAEP 4096 bit key with a
// SHA512 digest.
// "RSA_DECRYPT_OAEP_2048_SHA1" - RSAES-OAEP 2048 bit key with a SHA1
// digest.
// "RSA_DECRYPT_OAEP_3072_SHA1" - RSAES-OAEP 3072 bit key with a SHA1
// digest.
// "RSA_DECRYPT_OAEP_4096_SHA1" - RSAES-OAEP 4096 bit key with a SHA1
// digest.
// "EC_SIGN_P256_SHA256" - ECDSA on the NIST P-256 curve with a SHA256
// digest. Other hash functions can also be used:
// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
// "EC_SIGN_P384_SHA384" - ECDSA on the NIST P-384 curve with a SHA384
// digest. Other hash functions can also be used:
// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
// "EC_SIGN_SECP256K1_SHA256" - ECDSA on the non-NIST secp256k1 curve.
// This curve is only supported for HSM protection level. Other hash
// functions can also be used:
// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
// "HMAC_SHA256" - HMAC-SHA256 signing with a 256 bit key.
// "HMAC_SHA1" - HMAC-SHA1 signing with a 160 bit key.
// "HMAC_SHA384" - HMAC-SHA384 signing with a 384 bit key.
// "HMAC_SHA512" - HMAC-SHA512 signing with a 512 bit key.
// "HMAC_SHA224" - HMAC-SHA224 signing with a 224 bit key.
// "EXTERNAL_SYMMETRIC_ENCRYPTION" - Algorithm representing symmetric
// encryption by an external key manager.
Algorithm string `json:"algorithm,omitempty"`
// Attestation: Output only. Statement that was generated and signed by
// the HSM at key creation time. Use this statement to verify attributes
// of the key as stored on the HSM, independently of Google. Only
// provided for key versions with protection_level HSM.
Attestation *GoogleCloudKmsV1KeyOperationAttestation `json:"attestation,omitempty"`
// CreateTime: Output only. The time at which this CryptoKeyVersion was
// created.
CreateTime string `json:"createTime,omitempty"`
// DestroyEventTime: Output only. The time this CryptoKeyVersion's key
// material was destroyed. Only present if state is DESTROYED.
DestroyEventTime string `json:"destroyEventTime,omitempty"`
// DestroyTime: Output only. The time this CryptoKeyVersion's key
// material is scheduled for destruction. Only present if state is
// DESTROY_SCHEDULED.
DestroyTime string `json:"destroyTime,omitempty"`
// ExternalDestructionFailureReason: Output only. The root cause of the
// most recent external destruction failure. Only present if state is
// EXTERNAL_DESTRUCTION_FAILED.
ExternalDestructionFailureReason string `json:"externalDestructionFailureReason,omitempty"`
// ExternalProtectionLevelOptions: ExternalProtectionLevelOptions stores
// a group of additional fields for configuring a CryptoKeyVersion that
// are specific to the EXTERNAL protection level and EXTERNAL_VPC
// protection levels.
ExternalProtectionLevelOptions *GoogleCloudKmsV1ExternalProtectionLevelOptions `json:"externalProtectionLevelOptions,omitempty"`
// GenerateTime: Output only. The time this CryptoKeyVersion's key
// material was generated.
GenerateTime string `json:"generateTime,omitempty"`
// GenerationFailureReason: Output only. The root cause of the most
// recent generation failure. Only present if state is
// GENERATION_FAILED.
GenerationFailureReason string `json:"generationFailureReason,omitempty"`
// ImportFailureReason: Output only. The root cause of the most recent
// import failure. Only present if state is IMPORT_FAILED.
ImportFailureReason string `json:"importFailureReason,omitempty"`
// ImportJob: Output only. The name of the ImportJob used in the most
// recent import of this CryptoKeyVersion. Only present if the
// underlying key material was imported.
ImportJob string `json:"importJob,omitempty"`
// ImportTime: Output only. The time at which this CryptoKeyVersion's
// key material was most recently imported.
ImportTime string `json:"importTime,omitempty"`
// Name: Output only. The resource name for this CryptoKeyVersion in the
// format
// `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
Name string `json:"name,omitempty"`
// ProtectionLevel: Output only. The ProtectionLevel describing how
// crypto operations are performed with this CryptoKeyVersion.
//
// Possible values:
// "PROTECTION_LEVEL_UNSPECIFIED" - Not specified.
// "SOFTWARE" - Crypto operations are performed in software.
// "HSM" - Crypto operations are performed in a Hardware Security
// Module.
// "EXTERNAL" - Crypto operations are performed by an external key
// manager.
// "EXTERNAL_VPC" - Crypto operations are performed in an EKM-over-VPC
// backend.
ProtectionLevel string `json:"protectionLevel,omitempty"`
// ReimportEligible: Output only. Whether or not this key version is
// eligible for reimport, by being specified as a target in
// ImportCryptoKeyVersionRequest.crypto_key_version.
ReimportEligible bool `json:"reimportEligible,omitempty"`
// State: The current state of the CryptoKeyVersion.
//
// Possible values:
// "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED" - Not specified.
// "PENDING_GENERATION" - This version is still being generated. It
// may not be used, enabled, disabled, or destroyed yet. Cloud KMS will
// automatically mark this version ENABLED as soon as the version is
// ready.
// "ENABLED" - This version may be used for cryptographic operations.
// "DISABLED" - This version may not be used, but the key material is
// still available, and the version can be placed back into the ENABLED
// state.
// "DESTROYED" - This version is destroyed, and the key material is no
// longer stored. This version may only become ENABLED again if this
// version is reimport_eligible and the original key material is
// reimported with a call to
// KeyManagementService.ImportCryptoKeyVersion.
// "DESTROY_SCHEDULED" - This version is scheduled for destruction,
// and will be destroyed soon. Call RestoreCryptoKeyVersion to put it
// back into the DISABLED state.
// "PENDING_IMPORT" - This version is still being imported. It may not
// be used, enabled, disabled, or destroyed yet. Cloud KMS will
// automatically mark this version ENABLED as soon as the version is
// ready.
// "IMPORT_FAILED" - This version was not imported successfully. It
// may not be used, enabled, disabled, or destroyed. The submitted key
// material has been discarded. Additional details can be found in
// CryptoKeyVersion.import_failure_reason.
// "GENERATION_FAILED" - This version was not generated successfully.
// It may not be used, enabled, disabled, or destroyed. Additional
// details can be found in CryptoKeyVersion.generation_failure_reason.
// "PENDING_EXTERNAL_DESTRUCTION" - This version was destroyed, and it
// may not be used or enabled again. Cloud KMS is waiting for the
// corresponding key material residing in an external key manager to be
// destroyed.
// "EXTERNAL_DESTRUCTION_FAILED" - This version was destroyed, and it
// may not be used or enabled again. However, Cloud KMS could not
// confirm that the corresponding key material residing in an external
// key manager was destroyed. Additional details can be found in
// CryptoKeyVersion.external_destruction_failure_reason.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "Algorithm") 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. "Algorithm") 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 *GoogleCloudKmsV1CryptoKeyVersion) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsV1CryptoKeyVersion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsV1CryptoKeyVersionTemplate: A CryptoKeyVersionTemplate
// specifies the properties to use when creating a new CryptoKeyVersion,
// either manually with CreateCryptoKeyVersion or automatically as a
// result of auto-rotation.
type GoogleCloudKmsV1CryptoKeyVersionTemplate struct {
// Algorithm: Required. Algorithm to use when creating a
// CryptoKeyVersion based on this template. For backwards compatibility,
// GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted
// and CryptoKey.purpose is ENCRYPT_DECRYPT.
//
// Possible values:
// "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" - Not specified.
// "GOOGLE_SYMMETRIC_ENCRYPTION" - Creates symmetric encryption keys.
// "AES_128_GCM" - AES-GCM (Galois Counter Mode) using 128-bit keys.
// "AES_256_GCM" - AES-GCM (Galois Counter Mode) using 256-bit keys.
// "AES_128_CBC" - AES-CBC (Cipher Block Chaining Mode) using 128-bit
// keys.
// "AES_256_CBC" - AES-CBC (Cipher Block Chaining Mode) using 256-bit
// keys.
// "AES_128_CTR" - AES-CTR (Counter Mode) using 128-bit keys.
// "AES_256_CTR" - AES-CTR (Counter Mode) using 256-bit keys.
// "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256
// digest.
// "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256
// digest.
// "RSA_SIGN_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256
// digest.
// "RSA_SIGN_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512
// digest.
// "RSA_SIGN_PKCS1_2048_SHA256" - RSASSA-PKCS1-v1_5 with a 2048 bit
// key and a SHA256 digest.
// "RSA_SIGN_PKCS1_3072_SHA256" - RSASSA-PKCS1-v1_5 with a 3072 bit
// key and a SHA256 digest.
// "RSA_SIGN_PKCS1_4096_SHA256" - RSASSA-PKCS1-v1_5 with a 4096 bit
// key and a SHA256 digest.
// "RSA_SIGN_PKCS1_4096_SHA512" - RSASSA-PKCS1-v1_5 with a 4096 bit
// key and a SHA512 digest.
// "RSA_SIGN_RAW_PKCS1_2048" - RSASSA-PKCS1-v1_5 signing without
// encoding, with a 2048 bit key.
// "RSA_SIGN_RAW_PKCS1_3072" - RSASSA-PKCS1-v1_5 signing without
// encoding, with a 3072 bit key.
// "RSA_SIGN_RAW_PKCS1_4096" - RSASSA-PKCS1-v1_5 signing without
// encoding, with a 4096 bit key.
// "RSA_DECRYPT_OAEP_2048_SHA256" - RSAES-OAEP 2048 bit key with a
// SHA256 digest.
// "RSA_DECRYPT_OAEP_3072_SHA256" - RSAES-OAEP 3072 bit key with a
// SHA256 digest.
// "RSA_DECRYPT_OAEP_4096_SHA256" - RSAES-OAEP 4096 bit key with a
// SHA256 digest.
// "RSA_DECRYPT_OAEP_4096_SHA512" - RSAES-OAEP 4096 bit key with a
// SHA512 digest.
// "RSA_DECRYPT_OAEP_2048_SHA1" - RSAES-OAEP 2048 bit key with a SHA1
// digest.
// "RSA_DECRYPT_OAEP_3072_SHA1" - RSAES-OAEP 3072 bit key with a SHA1
// digest.
// "RSA_DECRYPT_OAEP_4096_SHA1" - RSAES-OAEP 4096 bit key with a SHA1
// digest.
// "EC_SIGN_P256_SHA256" - ECDSA on the NIST P-256 curve with a SHA256
// digest. Other hash functions can also be used:
// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
// "EC_SIGN_P384_SHA384" - ECDSA on the NIST P-384 curve with a SHA384
// digest. Other hash functions can also be used:
// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
// "EC_SIGN_SECP256K1_SHA256" - ECDSA on the non-NIST secp256k1 curve.
// This curve is only supported for HSM protection level. Other hash
// functions can also be used:
// https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
// "HMAC_SHA256" - HMAC-SHA256 signing with a 256 bit key.
// "HMAC_SHA1" - HMAC-SHA1 signing with a 160 bit key.
// "HMAC_SHA384" - HMAC-SHA384 signing with a 384 bit key.
// "HMAC_SHA512" - HMAC-SHA512 signing with a 512 bit key.
// "HMAC_SHA224" - HMAC-SHA224 signing with a 224 bit key.
// "EXTERNAL_SYMMETRIC_ENCRYPTION" - Algorithm representing symmetric
// encryption by an external key manager.
Algorithm string `json:"algorithm,omitempty"`
// ProtectionLevel: ProtectionLevel to use when creating a
// CryptoKeyVersion based on this template. Immutable. Defaults to
// SOFTWARE.
//
// Possible values:
// "PROTECTION_LEVEL_UNSPECIFIED" - Not specified.
// "SOFTWARE" - Crypto operations are performed in software.
// "HSM" - Crypto operations are performed in a Hardware Security
// Module.
// "EXTERNAL" - Crypto operations are performed by an external key
// manager.
// "EXTERNAL_VPC" - Crypto operations are performed in an EKM-over-VPC
// backend.
ProtectionLevel string `json:"protectionLevel,omitempty"`
// ForceSendFields is a list of field names (e.g. "Algorithm") 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. "Algorithm") 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 *GoogleCloudKmsV1CryptoKeyVersionTemplate) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsV1CryptoKeyVersionTemplate
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsV1ExternalProtectionLevelOptions:
// ExternalProtectionLevelOptions stores a group of additional fields
// for configuring a CryptoKeyVersion that are specific to the EXTERNAL
// protection level and EXTERNAL_VPC protection levels.
type GoogleCloudKmsV1ExternalProtectionLevelOptions struct {
// EkmConnectionKeyPath: The path to the external key material on the
// EKM when using EkmConnection e.g., "v0/my/key". Set this field
// instead of external_key_uri when using an EkmConnection.
EkmConnectionKeyPath string `json:"ekmConnectionKeyPath,omitempty"`
// ExternalKeyUri: The URI for an external resource that this
// CryptoKeyVersion represents.
ExternalKeyUri string `json:"externalKeyUri,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EkmConnectionKeyPath") 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. "EkmConnectionKeyPath") 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 *GoogleCloudKmsV1ExternalProtectionLevelOptions) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsV1ExternalProtectionLevelOptions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsV1KeyOperationAttestation: Contains an HSM-generated
// attestation about a key operation. For more information, see
// [Verifying attestations]
// (https://cloud.google.com/kms/docs/attest-key).
type GoogleCloudKmsV1KeyOperationAttestation struct {
// CertChains: Output only. The certificate chains needed to validate
// the attestation
CertChains *GoogleCloudKmsV1KeyOperationAttestationCertificateChains `json:"certChains,omitempty"`
// Content: Output only. The attestation data provided by the HSM when
// the key operation was performed.
Content string `json:"content,omitempty"`
// Format: Output only. The format of the attestation data.
//
// Possible values:
// "ATTESTATION_FORMAT_UNSPECIFIED" - Not specified.
// "CAVIUM_V1_COMPRESSED" - Cavium HSM attestation compressed with
// gzip. Note that this format is defined by Cavium and subject to
// change at any time. See
// https://www.marvell.com/products/security-solutions/nitrox-hs-adapters/software-key-attestation.html.
// "CAVIUM_V2_COMPRESSED" - Cavium HSM attestation V2 compressed with
// gzip. This is a new format introduced in Cavium's version 3.2-08.
Format string `json:"format,omitempty"`
// ForceSendFields is a list of field names (e.g. "CertChains") 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. "CertChains") 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 *GoogleCloudKmsV1KeyOperationAttestation) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudKmsV1KeyOperationAttestation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleCloudKmsV1KeyOperationAttestationCertificateChains: Certificate
// chains needed to verify the attestation. Certificates in chains are
// PEM-encoded and are ordered based on
// https://tools.ietf.org/html/rfc5246#section-7.4.2.
type GoogleCloudKmsV1KeyOperationAttestationCertificateChains struct {
// CaviumCerts: Cavium certificate chain corresponding to the
// attestation.
CaviumCerts []string `json:"caviumCerts,omitempty"`
// GoogleCardCerts: Google card certificate chain corresponding to the
// attestation.
GoogleCardCerts []string `json:"googleCardCerts,omitempty"`
// GooglePartitionCerts: Google partition certificate chain
// corresponding to the attestation.
GooglePartitionCerts []string `json:"googlePartitionCerts,omitempty"`
// ForceSendFields is a list of field names (e.g. "CaviumCerts") 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. "CaviumCerts") 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.