-
Notifications
You must be signed in to change notification settings - Fork 195
/
resources.pb.go
1863 lines (1684 loc) · 80.6 KB
/
resources.pb.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
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.12.4
// source: mockgcp/cloud/secretmanager/v1/resources.proto
package secretmanagerpb
import (
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The state of a
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion], indicating if
// it can be accessed.
type SecretVersion_State int32
const (
// Not specified. This value is unused and invalid.
SecretVersion_STATE_UNSPECIFIED SecretVersion_State = 0
// The [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] may be
// accessed.
SecretVersion_ENABLED SecretVersion_State = 1
// The [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] may not
// be accessed, but the secret data is still available and can be placed
// back into the
// [ENABLED][mockgcp.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
// state.
SecretVersion_DISABLED SecretVersion_State = 2
// The [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] is
// destroyed and the secret data is no longer stored. A version may not
// leave this state once entered.
SecretVersion_DESTROYED SecretVersion_State = 3
)
// Enum value maps for SecretVersion_State.
var (
SecretVersion_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
3: "DESTROYED",
}
SecretVersion_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
"DESTROYED": 3,
}
)
func (x SecretVersion_State) Enum() *SecretVersion_State {
p := new(SecretVersion_State)
*p = x
return p
}
func (x SecretVersion_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SecretVersion_State) Descriptor() protoreflect.EnumDescriptor {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_enumTypes[0].Descriptor()
}
func (SecretVersion_State) Type() protoreflect.EnumType {
return &file_mockgcp_cloud_secretmanager_v1_resources_proto_enumTypes[0]
}
func (x SecretVersion_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SecretVersion_State.Descriptor instead.
func (SecretVersion_State) EnumDescriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{1, 0}
}
// A [Secret][mockgcp.cloud.secretmanager.v1.Secret] is a logical secret whose
// value and versions can be accessed.
//
// A [Secret][mockgcp.cloud.secretmanager.v1.Secret] is made up of zero or more
// [SecretVersions][mockgcp.cloud.secretmanager.v1.SecretVersion] that represent
// the secret data.
type Secret struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name of the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] in the format
// `projects/*/secrets/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. The replication policy of the secret data attached to
// the [Secret][mockgcp.cloud.secretmanager.v1.Secret].
//
// The replication policy cannot be changed after the Secret has been created.
Replication *Replication `protobuf:"bytes,2,opt,name=replication,proto3" json:"replication,omitempty"`
// Output only. The time at which the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The labels assigned to this Secret.
//
// Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
// of maximum 128 bytes, and must conform to the following PCRE regular
// expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
//
// Label values must be between 0 and 63 characters long, have a UTF-8
// encoding of maximum 128 bytes, and must conform to the following PCRE
// regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
//
// No more than 64 labels can be assigned to a given resource.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. A list of up to 10 Pub/Sub topics to which messages are published
// when control plane operations are called on the secret or its versions.
Topics []*Topic `protobuf:"bytes,5,rep,name=topics,proto3" json:"topics,omitempty"`
// Expiration policy attached to the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret]. If specified the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] and all
// [SecretVersions][mockgcp.cloud.secretmanager.v1.SecretVersion] will be
// automatically deleted at expiration. Expired secrets are irreversibly
// deleted.
//
// Expiration is *not* the recommended way to set time-based permissions. [IAM
// Conditions](https://cloud.google.com/secret-manager/docs/access-control#conditions)
// is recommended for granting time-based permissions because the operation
// can be reversed.
//
// Types that are assignable to Expiration:
//
// *Secret_ExpireTime
// *Secret_Ttl
Expiration isSecret_Expiration `protobuf_oneof:"expiration"`
// Optional. Etag of the currently stored
// [Secret][mockgcp.cloud.secretmanager.v1.Secret].
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. Rotation policy attached to the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret]. May be excluded if there is
// no rotation policy.
Rotation *Rotation `protobuf:"bytes,9,opt,name=rotation,proto3" json:"rotation,omitempty"`
// Optional. Mapping from version alias to version name.
//
// A version alias is a string with a maximum length of 63 characters and can
// contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
// and underscore ('_') characters. An alias string must start with a
// letter and cannot be the string 'latest' or 'NEW'.
// No more than 50 aliases can be assigned to a given secret.
//
// Version-Alias pairs will be viewable via GetSecret and modifiable via
// UpdateSecret. At launch access by alias will only be supported on
// GetSecretVersion and AccessSecretVersion.
VersionAliases map[string]int64 `protobuf:"bytes,11,rep,name=version_aliases,json=versionAliases,proto3" json:"version_aliases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// Optional. Custom metadata about the secret.
//
// Annotations are distinct from various forms of labels.
// Annotations exist to allow client tools to store their own state
// information without requiring a database.
//
// Annotation keys must be between 1 and 63 characters long, have a UTF-8
// encoding of maximum 128 bytes, begin and end with an alphanumeric character
// ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and
// alphanumerics in between these symbols.
//
// The total size of annotation keys and values must be less than 16KiB.
Annotations map[string]string `protobuf:"bytes,13,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Secret) Reset() {
*x = Secret{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Secret) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Secret) ProtoMessage() {}
func (x *Secret) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Secret.ProtoReflect.Descriptor instead.
func (*Secret) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{0}
}
func (x *Secret) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Secret) GetReplication() *Replication {
if x != nil {
return x.Replication
}
return nil
}
func (x *Secret) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Secret) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Secret) GetTopics() []*Topic {
if x != nil {
return x.Topics
}
return nil
}
func (m *Secret) GetExpiration() isSecret_Expiration {
if m != nil {
return m.Expiration
}
return nil
}
func (x *Secret) GetExpireTime() *timestamp.Timestamp {
if x, ok := x.GetExpiration().(*Secret_ExpireTime); ok {
return x.ExpireTime
}
return nil
}
func (x *Secret) GetTtl() *duration.Duration {
if x, ok := x.GetExpiration().(*Secret_Ttl); ok {
return x.Ttl
}
return nil
}
func (x *Secret) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
func (x *Secret) GetRotation() *Rotation {
if x != nil {
return x.Rotation
}
return nil
}
func (x *Secret) GetVersionAliases() map[string]int64 {
if x != nil {
return x.VersionAliases
}
return nil
}
func (x *Secret) GetAnnotations() map[string]string {
if x != nil {
return x.Annotations
}
return nil
}
type isSecret_Expiration interface {
isSecret_Expiration()
}
type Secret_ExpireTime struct {
// Optional. Timestamp in UTC when the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] is scheduled to expire.
// This is always provided on output, regardless of what was sent on input.
ExpireTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3,oneof"`
}
type Secret_Ttl struct {
// Input only. The TTL for the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret].
Ttl *duration.Duration `protobuf:"bytes,7,opt,name=ttl,proto3,oneof"`
}
func (*Secret_ExpireTime) isSecret_Expiration() {}
func (*Secret_Ttl) isSecret_Expiration() {}
// A secret version resource in the Secret Manager API.
type SecretVersion struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name of the
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] in the format
// `projects/*/secrets/*/versions/*`.
//
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] IDs in a
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] start at 1 and are
// incremented for each subsequent version of the secret.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time at which the
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time this
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] was destroyed.
// Only present if [state][mockgcp.cloud.secretmanager.v1.SecretVersion.state]
// is
// [DESTROYED][mockgcp.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
DestroyTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=destroy_time,json=destroyTime,proto3" json:"destroy_time,omitempty"`
// Output only. The current state of the
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion].
State SecretVersion_State `protobuf:"varint,4,opt,name=state,proto3,enum=mockgcp.cloud.secretmanager.v1.SecretVersion_State" json:"state,omitempty"`
// The replication status of the
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion].
ReplicationStatus *ReplicationStatus `protobuf:"bytes,5,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"`
// Output only. Etag of the currently stored
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion].
Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. True if payload checksum specified in
// [SecretPayload][mockgcp.cloud.secretmanager.v1.SecretPayload] object has
// been received by
// [SecretManagerService][mockgcp.cloud.secretmanager.v1.SecretManagerService]
// on
// [SecretManagerService.AddSecretVersion][mockgcp.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
ClientSpecifiedPayloadChecksum bool `protobuf:"varint,7,opt,name=client_specified_payload_checksum,json=clientSpecifiedPayloadChecksum,proto3" json:"client_specified_payload_checksum,omitempty"`
}
func (x *SecretVersion) Reset() {
*x = SecretVersion{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SecretVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecretVersion) ProtoMessage() {}
func (x *SecretVersion) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SecretVersion.ProtoReflect.Descriptor instead.
func (*SecretVersion) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{1}
}
func (x *SecretVersion) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SecretVersion) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *SecretVersion) GetDestroyTime() *timestamp.Timestamp {
if x != nil {
return x.DestroyTime
}
return nil
}
func (x *SecretVersion) GetState() SecretVersion_State {
if x != nil {
return x.State
}
return SecretVersion_STATE_UNSPECIFIED
}
func (x *SecretVersion) GetReplicationStatus() *ReplicationStatus {
if x != nil {
return x.ReplicationStatus
}
return nil
}
func (x *SecretVersion) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
func (x *SecretVersion) GetClientSpecifiedPayloadChecksum() bool {
if x != nil {
return x.ClientSpecifiedPayloadChecksum
}
return false
}
// A policy that defines the replication and encryption configuration of data.
type Replication struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The replication policy for this secret.
//
// Types that are assignable to Replication:
//
// *Replication_Automatic_
// *Replication_UserManaged_
Replication isReplication_Replication `protobuf_oneof:"replication"`
}
func (x *Replication) Reset() {
*x = Replication{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Replication) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Replication) ProtoMessage() {}
func (x *Replication) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Replication.ProtoReflect.Descriptor instead.
func (*Replication) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{2}
}
func (m *Replication) GetReplication() isReplication_Replication {
if m != nil {
return m.Replication
}
return nil
}
func (x *Replication) GetAutomatic() *Replication_Automatic {
if x, ok := x.GetReplication().(*Replication_Automatic_); ok {
return x.Automatic
}
return nil
}
func (x *Replication) GetUserManaged() *Replication_UserManaged {
if x, ok := x.GetReplication().(*Replication_UserManaged_); ok {
return x.UserManaged
}
return nil
}
type isReplication_Replication interface {
isReplication_Replication()
}
type Replication_Automatic_ struct {
// The [Secret][mockgcp.cloud.secretmanager.v1.Secret] will automatically be
// replicated without any restrictions.
Automatic *Replication_Automatic `protobuf:"bytes,1,opt,name=automatic,proto3,oneof"`
}
type Replication_UserManaged_ struct {
// The [Secret][mockgcp.cloud.secretmanager.v1.Secret] will only be
// replicated into the locations specified.
UserManaged *Replication_UserManaged `protobuf:"bytes,2,opt,name=user_managed,json=userManaged,proto3,oneof"`
}
func (*Replication_Automatic_) isReplication_Replication() {}
func (*Replication_UserManaged_) isReplication_Replication() {}
// Configuration for encrypting secret payloads using customer-managed
// encryption keys (CMEK).
type CustomerManagedEncryption struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the Cloud KMS CryptoKey used to encrypt
// secret payloads.
//
// For secrets using the
// [UserManaged][mockgcp.cloud.secretmanager.v1.Replication.UserManaged]
// replication policy type, Cloud KMS CryptoKeys must reside in the same
// location as the [replica location][Secret.UserManaged.Replica.location].
//
// For secrets using the
// [Automatic][mockgcp.cloud.secretmanager.v1.Replication.Automatic]
// replication policy type, Cloud KMS CryptoKeys must reside in `global`.
//
// The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
KmsKeyName string `protobuf:"bytes,1,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
}
func (x *CustomerManagedEncryption) Reset() {
*x = CustomerManagedEncryption{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomerManagedEncryption) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomerManagedEncryption) ProtoMessage() {}
func (x *CustomerManagedEncryption) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CustomerManagedEncryption.ProtoReflect.Descriptor instead.
func (*CustomerManagedEncryption) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{3}
}
func (x *CustomerManagedEncryption) GetKmsKeyName() string {
if x != nil {
return x.KmsKeyName
}
return ""
}
// The replication status of a
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion].
type ReplicationStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The replication status of the
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion].
//
// Types that are assignable to ReplicationStatus:
//
// *ReplicationStatus_Automatic
// *ReplicationStatus_UserManaged
ReplicationStatus isReplicationStatus_ReplicationStatus `protobuf_oneof:"replication_status"`
}
func (x *ReplicationStatus) Reset() {
*x = ReplicationStatus{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReplicationStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReplicationStatus) ProtoMessage() {}
func (x *ReplicationStatus) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReplicationStatus.ProtoReflect.Descriptor instead.
func (*ReplicationStatus) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{4}
}
func (m *ReplicationStatus) GetReplicationStatus() isReplicationStatus_ReplicationStatus {
if m != nil {
return m.ReplicationStatus
}
return nil
}
func (x *ReplicationStatus) GetAutomatic() *ReplicationStatus_AutomaticStatus {
if x, ok := x.GetReplicationStatus().(*ReplicationStatus_Automatic); ok {
return x.Automatic
}
return nil
}
func (x *ReplicationStatus) GetUserManaged() *ReplicationStatus_UserManagedStatus {
if x, ok := x.GetReplicationStatus().(*ReplicationStatus_UserManaged); ok {
return x.UserManaged
}
return nil
}
type isReplicationStatus_ReplicationStatus interface {
isReplicationStatus_ReplicationStatus()
}
type ReplicationStatus_Automatic struct {
// Describes the replication status of a
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] with
// automatic replication.
//
// Only populated if the parent
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] has an automatic
// replication policy.
Automatic *ReplicationStatus_AutomaticStatus `protobuf:"bytes,1,opt,name=automatic,proto3,oneof"`
}
type ReplicationStatus_UserManaged struct {
// Describes the replication status of a
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion] with
// user-managed replication.
//
// Only populated if the parent
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] has a user-managed
// replication policy.
UserManaged *ReplicationStatus_UserManagedStatus `protobuf:"bytes,2,opt,name=user_managed,json=userManaged,proto3,oneof"`
}
func (*ReplicationStatus_Automatic) isReplicationStatus_ReplicationStatus() {}
func (*ReplicationStatus_UserManaged) isReplicationStatus_ReplicationStatus() {}
// Describes the status of customer-managed encryption.
type CustomerManagedEncryptionStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the Cloud KMS CryptoKeyVersion used to
// encrypt the secret payload, in the following format:
// `projects/*/locations/*/keyRings/*/cryptoKeys/*/versions/*`.
KmsKeyVersionName string `protobuf:"bytes,1,opt,name=kms_key_version_name,json=kmsKeyVersionName,proto3" json:"kms_key_version_name,omitempty"`
}
func (x *CustomerManagedEncryptionStatus) Reset() {
*x = CustomerManagedEncryptionStatus{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomerManagedEncryptionStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomerManagedEncryptionStatus) ProtoMessage() {}
func (x *CustomerManagedEncryptionStatus) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CustomerManagedEncryptionStatus.ProtoReflect.Descriptor instead.
func (*CustomerManagedEncryptionStatus) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{5}
}
func (x *CustomerManagedEncryptionStatus) GetKmsKeyVersionName() string {
if x != nil {
return x.KmsKeyVersionName
}
return ""
}
// A Pub/Sub topic which Secret Manager will publish to when control plane
// events occur on this secret.
type Topic struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the Pub/Sub topic that will be published to,
// in the following format: `projects/*/topics/*`. For publication to succeed,
// the Secret Manager P4SA must have `pubsub.publisher` permissions on the
// topic.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *Topic) Reset() {
*x = Topic{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Topic) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Topic) ProtoMessage() {}
func (x *Topic) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Topic.ProtoReflect.Descriptor instead.
func (*Topic) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{6}
}
func (x *Topic) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// The rotation time and period for a
// [Secret][mockgcp.cloud.secretmanager.v1.Secret]. At next_rotation_time, Secret
// Manager will send a Pub/Sub notification to the topics configured on the
// Secret. [Secret.topics][mockgcp.cloud.secretmanager.v1.Secret.topics] must be
// set to configure rotation.
type Rotation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Timestamp in UTC at which the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] is scheduled to rotate.
// Cannot be set to less than 300s (5 min) in the future and at most
// 3153600000s (100 years).
//
// [next_rotation_time][mockgcp.cloud.secretmanager.v1.Rotation.next_rotation_time]
// MUST be set if
// [rotation_period][mockgcp.cloud.secretmanager.v1.Rotation.rotation_period]
// is set.
NextRotationTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"`
// Input only. The Duration between rotation notifications. Must be in seconds
// and at least 3600s (1h) and at most 3153600000s (100 years).
//
// If
// [rotation_period][mockgcp.cloud.secretmanager.v1.Rotation.rotation_period]
// is set,
// [next_rotation_time][mockgcp.cloud.secretmanager.v1.Rotation.next_rotation_time]
// must be set.
// [next_rotation_time][mockgcp.cloud.secretmanager.v1.Rotation.next_rotation_time]
// will be advanced by this period when the service automatically sends
// rotation notifications.
RotationPeriod *duration.Duration `protobuf:"bytes,2,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"`
}
func (x *Rotation) Reset() {
*x = Rotation{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Rotation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Rotation) ProtoMessage() {}
func (x *Rotation) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Rotation.ProtoReflect.Descriptor instead.
func (*Rotation) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{7}
}
func (x *Rotation) GetNextRotationTime() *timestamp.Timestamp {
if x != nil {
return x.NextRotationTime
}
return nil
}
func (x *Rotation) GetRotationPeriod() *duration.Duration {
if x != nil {
return x.RotationPeriod
}
return nil
}
// A secret payload resource in the Secret Manager API. This contains the
// sensitive secret payload that is associated with a
// [SecretVersion][mockgcp.cloud.secretmanager.v1.SecretVersion].
type SecretPayload struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The secret data. Must be no larger than 64KiB.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// Optional. If specified,
// [SecretManagerService][mockgcp.cloud.secretmanager.v1.SecretManagerService]
// will verify the integrity of the received
// [data][mockgcp.cloud.secretmanager.v1.SecretPayload.data] on
// [SecretManagerService.AddSecretVersion][mockgcp.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion]
// calls using the crc32c checksum and store it to include in future
// [SecretManagerService.AccessSecretVersion][mockgcp.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion]
// responses. If a checksum is not provided in the
// [SecretManagerService.AddSecretVersion][mockgcp.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion]
// request, the
// [SecretManagerService][mockgcp.cloud.secretmanager.v1.SecretManagerService]
// will generate and store one for you.
//
// The CRC32C value is encoded as a Int64 for compatibility, and can be
// safely downconverted to uint32 in languages that support this type.
// https://cloud.google.com/apis/design/design_patterns#integer_types
DataCrc32C *int64 `protobuf:"varint,2,opt,name=data_crc32c,json=dataCrc32c,proto3,oneof" json:"data_crc32c,omitempty"`
}
func (x *SecretPayload) Reset() {
*x = SecretPayload{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SecretPayload) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecretPayload) ProtoMessage() {}
func (x *SecretPayload) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SecretPayload.ProtoReflect.Descriptor instead.
func (*SecretPayload) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_secretmanager_v1_resources_proto_rawDescGZIP(), []int{8}
}
func (x *SecretPayload) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *SecretPayload) GetDataCrc32C() int64 {
if x != nil && x.DataCrc32C != nil {
return *x.DataCrc32C
}
return 0
}
// A replication policy that replicates the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret] payload without any
// restrictions.
type Replication_Automatic struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. The customer-managed encryption configuration of the
// [Secret][mockgcp.cloud.secretmanager.v1.Secret]. If no configuration is
// provided, Google-managed default encryption is used.
//
// Updates to the [Secret][mockgcp.cloud.secretmanager.v1.Secret] encryption
// configuration only apply to
// [SecretVersions][mockgcp.cloud.secretmanager.v1.SecretVersion] added
// afterwards. They do not apply retroactively to existing
// [SecretVersions][mockgcp.cloud.secretmanager.v1.SecretVersion].
CustomerManagedEncryption *CustomerManagedEncryption `protobuf:"bytes,1,opt,name=customer_managed_encryption,json=customerManagedEncryption,proto3" json:"customer_managed_encryption,omitempty"`
}
func (x *Replication_Automatic) Reset() {
*x = Replication_Automatic{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Replication_Automatic) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Replication_Automatic) ProtoMessage() {}
func (x *Replication_Automatic) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_secretmanager_v1_resources_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {