/
accessapproval.pb.go
executable file
·2966 lines (2706 loc) · 139 KB
/
accessapproval.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 2022 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.32.0
// protoc v4.25.2
// source: google/cloud/accessapproval/v1/accessapproval.proto
package accessapprovalpb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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)
)
// Represents the type of enrollment for a given service to Access Approval.
type EnrollmentLevel int32
const (
// Default value for proto, shouldn't be used.
EnrollmentLevel_ENROLLMENT_LEVEL_UNSPECIFIED EnrollmentLevel = 0
// Service is enrolled in Access Approval for all requests
EnrollmentLevel_BLOCK_ALL EnrollmentLevel = 1
)
// Enum value maps for EnrollmentLevel.
var (
EnrollmentLevel_name = map[int32]string{
0: "ENROLLMENT_LEVEL_UNSPECIFIED",
1: "BLOCK_ALL",
}
EnrollmentLevel_value = map[string]int32{
"ENROLLMENT_LEVEL_UNSPECIFIED": 0,
"BLOCK_ALL": 1,
}
)
func (x EnrollmentLevel) Enum() *EnrollmentLevel {
p := new(EnrollmentLevel)
*p = x
return p
}
func (x EnrollmentLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EnrollmentLevel) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_accessapproval_v1_accessapproval_proto_enumTypes[0].Descriptor()
}
func (EnrollmentLevel) Type() protoreflect.EnumType {
return &file_google_cloud_accessapproval_v1_accessapproval_proto_enumTypes[0]
}
func (x EnrollmentLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EnrollmentLevel.Descriptor instead.
func (EnrollmentLevel) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{0}
}
// Type of access justification.
type AccessReason_Type int32
const (
// Default value for proto, shouldn't be used.
AccessReason_TYPE_UNSPECIFIED AccessReason_Type = 0
// Customer made a request or raised an issue that required the principal to
// access customer data. `detail` is of the form ("#####" is the issue ID):
//
// - "Feedback Report: #####"
// - "Case Number: #####"
// - "Case ID: #####"
// - "E-PIN Reference: #####"
// - "Google-#####"
// - "T-#####"
AccessReason_CUSTOMER_INITIATED_SUPPORT AccessReason_Type = 1
// The principal accessed customer data in order to diagnose or resolve a
// suspected issue in services. Often this access is used to confirm that
// customers are not affected by a suspected service issue or to remediate a
// reversible system issue.
AccessReason_GOOGLE_INITIATED_SERVICE AccessReason_Type = 2
// Google initiated service for security, fraud, abuse, or compliance
// purposes.
AccessReason_GOOGLE_INITIATED_REVIEW AccessReason_Type = 3
// The principal was compelled to access customer data in order to respond
// to a legal third party data request or process, including legal processes
// from customers themselves.
AccessReason_THIRD_PARTY_DATA_REQUEST AccessReason_Type = 4
// The principal accessed customer data in order to diagnose or resolve a
// suspected issue in services or a known outage.
AccessReason_GOOGLE_RESPONSE_TO_PRODUCTION_ALERT AccessReason_Type = 5
)
// Enum value maps for AccessReason_Type.
var (
AccessReason_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "CUSTOMER_INITIATED_SUPPORT",
2: "GOOGLE_INITIATED_SERVICE",
3: "GOOGLE_INITIATED_REVIEW",
4: "THIRD_PARTY_DATA_REQUEST",
5: "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT",
}
AccessReason_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"CUSTOMER_INITIATED_SUPPORT": 1,
"GOOGLE_INITIATED_SERVICE": 2,
"GOOGLE_INITIATED_REVIEW": 3,
"THIRD_PARTY_DATA_REQUEST": 4,
"GOOGLE_RESPONSE_TO_PRODUCTION_ALERT": 5,
}
)
func (x AccessReason_Type) Enum() *AccessReason_Type {
p := new(AccessReason_Type)
*p = x
return p
}
func (x AccessReason_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AccessReason_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_accessapproval_v1_accessapproval_proto_enumTypes[1].Descriptor()
}
func (AccessReason_Type) Type() protoreflect.EnumType {
return &file_google_cloud_accessapproval_v1_accessapproval_proto_enumTypes[1]
}
func (x AccessReason_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AccessReason_Type.Descriptor instead.
func (AccessReason_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{1, 0}
}
// Home office and physical location of the principal.
type AccessLocations struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The "home office" location of the principal. A two-letter country code
// (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
// limited situations Google systems may refer refer to a region code instead
// of a country code.
// Possible Region Codes:
//
// - ASI: Asia
// - EUR: Europe
// - OCE: Oceania
// - AFR: Africa
// - NAM: North America
// - SAM: South America
// - ANT: Antarctica
// - ANY: Any location
PrincipalOfficeCountry string `protobuf:"bytes,1,opt,name=principal_office_country,json=principalOfficeCountry,proto3" json:"principal_office_country,omitempty"`
// Physical location of the principal at the time of the access. A
// two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
// a region code. In some limited situations Google systems may refer refer to
// a region code instead of a country code.
// Possible Region Codes:
//
// - ASI: Asia
// - EUR: Europe
// - OCE: Oceania
// - AFR: Africa
// - NAM: North America
// - SAM: South America
// - ANT: Antarctica
// - ANY: Any location
PrincipalPhysicalLocationCountry string `protobuf:"bytes,2,opt,name=principal_physical_location_country,json=principalPhysicalLocationCountry,proto3" json:"principal_physical_location_country,omitempty"`
}
func (x *AccessLocations) Reset() {
*x = AccessLocations{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessLocations) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessLocations) ProtoMessage() {}
func (x *AccessLocations) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 AccessLocations.ProtoReflect.Descriptor instead.
func (*AccessLocations) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{0}
}
func (x *AccessLocations) GetPrincipalOfficeCountry() string {
if x != nil {
return x.PrincipalOfficeCountry
}
return ""
}
func (x *AccessLocations) GetPrincipalPhysicalLocationCountry() string {
if x != nil {
return x.PrincipalPhysicalLocationCountry
}
return ""
}
type AccessReason struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of access justification.
Type AccessReason_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.accessapproval.v1.AccessReason_Type" json:"type,omitempty"`
// More detail about certain reason types. See comments for each type above.
Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
}
func (x *AccessReason) Reset() {
*x = AccessReason{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessReason) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessReason) ProtoMessage() {}
func (x *AccessReason) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 AccessReason.ProtoReflect.Descriptor instead.
func (*AccessReason) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{1}
}
func (x *AccessReason) GetType() AccessReason_Type {
if x != nil {
return x.Type
}
return AccessReason_TYPE_UNSPECIFIED
}
func (x *AccessReason) GetDetail() string {
if x != nil {
return x.Detail
}
return ""
}
// Information about the digital signature of the resource.
type SignatureInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The digital signature.
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// How this signature may be verified.
//
// Types that are assignable to VerificationInfo:
//
// *SignatureInfo_GooglePublicKeyPem
// *SignatureInfo_CustomerKmsKeyVersion
VerificationInfo isSignatureInfo_VerificationInfo `protobuf_oneof:"verification_info"`
}
func (x *SignatureInfo) Reset() {
*x = SignatureInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SignatureInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignatureInfo) ProtoMessage() {}
func (x *SignatureInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 SignatureInfo.ProtoReflect.Descriptor instead.
func (*SignatureInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{2}
}
func (x *SignatureInfo) GetSignature() []byte {
if x != nil {
return x.Signature
}
return nil
}
func (m *SignatureInfo) GetVerificationInfo() isSignatureInfo_VerificationInfo {
if m != nil {
return m.VerificationInfo
}
return nil
}
func (x *SignatureInfo) GetGooglePublicKeyPem() string {
if x, ok := x.GetVerificationInfo().(*SignatureInfo_GooglePublicKeyPem); ok {
return x.GooglePublicKeyPem
}
return ""
}
func (x *SignatureInfo) GetCustomerKmsKeyVersion() string {
if x, ok := x.GetVerificationInfo().(*SignatureInfo_CustomerKmsKeyVersion); ok {
return x.CustomerKmsKeyVersion
}
return ""
}
type isSignatureInfo_VerificationInfo interface {
isSignatureInfo_VerificationInfo()
}
type SignatureInfo_GooglePublicKeyPem struct {
// The public key for the Google default signing, encoded in PEM format. The
// signature was created using a private key which may be verified using
// this public key.
GooglePublicKeyPem string `protobuf:"bytes,2,opt,name=google_public_key_pem,json=googlePublicKeyPem,proto3,oneof"`
}
type SignatureInfo_CustomerKmsKeyVersion struct {
// The resource name of the customer CryptoKeyVersion used for signing.
CustomerKmsKeyVersion string `protobuf:"bytes,3,opt,name=customer_kms_key_version,json=customerKmsKeyVersion,proto3,oneof"`
}
func (*SignatureInfo_GooglePublicKeyPem) isSignatureInfo_VerificationInfo() {}
func (*SignatureInfo_CustomerKmsKeyVersion) isSignatureInfo_VerificationInfo() {}
// A decision that has been made to approve access to a resource.
type ApproveDecision struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The time at which approval was granted.
ApproveTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=approve_time,json=approveTime,proto3" json:"approve_time,omitempty"`
// The time at which the approval expires.
ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// If set, denotes the timestamp at which the approval is invalidated.
InvalidateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=invalidate_time,json=invalidateTime,proto3" json:"invalidate_time,omitempty"`
// The signature for the ApprovalRequest and details on how it was signed.
SignatureInfo *SignatureInfo `protobuf:"bytes,4,opt,name=signature_info,json=signatureInfo,proto3" json:"signature_info,omitempty"`
// True when the request has been auto-approved.
AutoApproved bool `protobuf:"varint,5,opt,name=auto_approved,json=autoApproved,proto3" json:"auto_approved,omitempty"`
}
func (x *ApproveDecision) Reset() {
*x = ApproveDecision{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApproveDecision) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApproveDecision) ProtoMessage() {}
func (x *ApproveDecision) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 ApproveDecision.ProtoReflect.Descriptor instead.
func (*ApproveDecision) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{3}
}
func (x *ApproveDecision) GetApproveTime() *timestamppb.Timestamp {
if x != nil {
return x.ApproveTime
}
return nil
}
func (x *ApproveDecision) GetExpireTime() *timestamppb.Timestamp {
if x != nil {
return x.ExpireTime
}
return nil
}
func (x *ApproveDecision) GetInvalidateTime() *timestamppb.Timestamp {
if x != nil {
return x.InvalidateTime
}
return nil
}
func (x *ApproveDecision) GetSignatureInfo() *SignatureInfo {
if x != nil {
return x.SignatureInfo
}
return nil
}
func (x *ApproveDecision) GetAutoApproved() bool {
if x != nil {
return x.AutoApproved
}
return false
}
// A decision that has been made to dismiss an approval request.
type DismissDecision struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The time at which the approval request was dismissed.
DismissTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=dismiss_time,json=dismissTime,proto3" json:"dismiss_time,omitempty"`
// This field will be true if the ApprovalRequest was implicitly dismissed due
// to inaction by the access approval approvers (the request is not acted
// on by the approvers before the exiration time).
Implicit bool `protobuf:"varint,2,opt,name=implicit,proto3" json:"implicit,omitempty"`
}
func (x *DismissDecision) Reset() {
*x = DismissDecision{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DismissDecision) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DismissDecision) ProtoMessage() {}
func (x *DismissDecision) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 DismissDecision.ProtoReflect.Descriptor instead.
func (*DismissDecision) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{4}
}
func (x *DismissDecision) GetDismissTime() *timestamppb.Timestamp {
if x != nil {
return x.DismissTime
}
return nil
}
func (x *DismissDecision) GetImplicit() bool {
if x != nil {
return x.Implicit
}
return false
}
// The properties associated with the resource of the request.
type ResourceProperties struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether an approval will exclude the descendants of the resource being
// requested.
ExcludesDescendants bool `protobuf:"varint,1,opt,name=excludes_descendants,json=excludesDescendants,proto3" json:"excludes_descendants,omitempty"`
}
func (x *ResourceProperties) Reset() {
*x = ResourceProperties{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceProperties) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceProperties) ProtoMessage() {}
func (x *ResourceProperties) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 ResourceProperties.ProtoReflect.Descriptor instead.
func (*ResourceProperties) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{5}
}
func (x *ResourceProperties) GetExcludesDescendants() bool {
if x != nil {
return x.ExcludesDescendants
}
return false
}
// A request for the customer to approve access to a resource.
type ApprovalRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the request. Format is
// "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource for which approval is being requested. The format of the
// resource name is defined at
// https://cloud.google.com/apis/design/resource_names. The resource name here
// may either be a "full" resource name (e.g.
// "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
// resource name (e.g. "shelves/shelf1/books/book2") as described in the
// resource name specification.
RequestedResourceName string `protobuf:"bytes,2,opt,name=requested_resource_name,json=requestedResourceName,proto3" json:"requested_resource_name,omitempty"`
// Properties related to the resource represented by requested_resource_name.
RequestedResourceProperties *ResourceProperties `protobuf:"bytes,9,opt,name=requested_resource_properties,json=requestedResourceProperties,proto3" json:"requested_resource_properties,omitempty"`
// The justification for which approval is being requested.
RequestedReason *AccessReason `protobuf:"bytes,3,opt,name=requested_reason,json=requestedReason,proto3" json:"requested_reason,omitempty"`
// The locations for which approval is being requested.
RequestedLocations *AccessLocations `protobuf:"bytes,4,opt,name=requested_locations,json=requestedLocations,proto3" json:"requested_locations,omitempty"`
// The time at which approval was requested.
RequestTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
// The requested expiration for the approval. If the request is approved,
// access will be granted from the time of approval until the expiration time.
RequestedExpiration *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=requested_expiration,json=requestedExpiration,proto3" json:"requested_expiration,omitempty"`
// The current decision on the approval request.
//
// Types that are assignable to Decision:
//
// *ApprovalRequest_Approve
// *ApprovalRequest_Dismiss
Decision isApprovalRequest_Decision `protobuf_oneof:"decision"`
}
func (x *ApprovalRequest) Reset() {
*x = ApprovalRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApprovalRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApprovalRequest) ProtoMessage() {}
func (x *ApprovalRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 ApprovalRequest.ProtoReflect.Descriptor instead.
func (*ApprovalRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{6}
}
func (x *ApprovalRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ApprovalRequest) GetRequestedResourceName() string {
if x != nil {
return x.RequestedResourceName
}
return ""
}
func (x *ApprovalRequest) GetRequestedResourceProperties() *ResourceProperties {
if x != nil {
return x.RequestedResourceProperties
}
return nil
}
func (x *ApprovalRequest) GetRequestedReason() *AccessReason {
if x != nil {
return x.RequestedReason
}
return nil
}
func (x *ApprovalRequest) GetRequestedLocations() *AccessLocations {
if x != nil {
return x.RequestedLocations
}
return nil
}
func (x *ApprovalRequest) GetRequestTime() *timestamppb.Timestamp {
if x != nil {
return x.RequestTime
}
return nil
}
func (x *ApprovalRequest) GetRequestedExpiration() *timestamppb.Timestamp {
if x != nil {
return x.RequestedExpiration
}
return nil
}
func (m *ApprovalRequest) GetDecision() isApprovalRequest_Decision {
if m != nil {
return m.Decision
}
return nil
}
func (x *ApprovalRequest) GetApprove() *ApproveDecision {
if x, ok := x.GetDecision().(*ApprovalRequest_Approve); ok {
return x.Approve
}
return nil
}
func (x *ApprovalRequest) GetDismiss() *DismissDecision {
if x, ok := x.GetDecision().(*ApprovalRequest_Dismiss); ok {
return x.Dismiss
}
return nil
}
type isApprovalRequest_Decision interface {
isApprovalRequest_Decision()
}
type ApprovalRequest_Approve struct {
// Access was approved.
Approve *ApproveDecision `protobuf:"bytes,7,opt,name=approve,proto3,oneof"`
}
type ApprovalRequest_Dismiss struct {
// The request was dismissed.
Dismiss *DismissDecision `protobuf:"bytes,8,opt,name=dismiss,proto3,oneof"`
}
func (*ApprovalRequest_Approve) isApprovalRequest_Decision() {}
func (*ApprovalRequest_Dismiss) isApprovalRequest_Decision() {}
// Represents the enrollment of a cloud resource into a specific service.
type EnrolledService struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The product for which Access Approval will be enrolled. Allowed values are
// listed below (case-sensitive):
//
// - all
// - GA
// - App Engine
// - BigQuery
// - Cloud Bigtable
// - Cloud Key Management Service
// - Compute Engine
// - Cloud Dataflow
// - Cloud Dataproc
// - Cloud DLP
// - Cloud EKM
// - Cloud HSM
// - Cloud Identity and Access Management
// - Cloud Logging
// - Cloud Pub/Sub
// - Cloud Spanner
// - Cloud SQL
// - Cloud Storage
// - Google Kubernetes Engine
// - Organization Policy Serivice
// - Persistent Disk
// - Resource Manager
// - Secret Manager
// - Speaker ID
//
// Note: These values are supported as input for legacy purposes, but will not
// be returned from the API.
//
// - all
// - ga-only
// - appengine.googleapis.com
// - bigquery.googleapis.com
// - bigtable.googleapis.com
// - container.googleapis.com
// - cloudkms.googleapis.com
// - cloudresourcemanager.googleapis.com
// - cloudsql.googleapis.com
// - compute.googleapis.com
// - dataflow.googleapis.com
// - dataproc.googleapis.com
// - dlp.googleapis.com
// - iam.googleapis.com
// - logging.googleapis.com
// - orgpolicy.googleapis.com
// - pubsub.googleapis.com
// - spanner.googleapis.com
// - secretmanager.googleapis.com
// - speakerid.googleapis.com
// - storage.googleapis.com
//
// Calls to UpdateAccessApprovalSettings using 'all' or any of the
// XXX.googleapis.com will be translated to the associated product name
// ('all', 'App Engine', etc.).
//
// Note: 'all' will enroll the resource in all products supported at both 'GA'
// and 'Preview' levels.
//
// More information about levels of support is available at
// https://cloud.google.com/access-approval/docs/supported-services
CloudProduct string `protobuf:"bytes,1,opt,name=cloud_product,json=cloudProduct,proto3" json:"cloud_product,omitempty"`
// The enrollment level of the service.
EnrollmentLevel EnrollmentLevel `protobuf:"varint,2,opt,name=enrollment_level,json=enrollmentLevel,proto3,enum=google.cloud.accessapproval.v1.EnrollmentLevel" json:"enrollment_level,omitempty"`
}
func (x *EnrolledService) Reset() {
*x = EnrolledService{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EnrolledService) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnrolledService) ProtoMessage() {}
func (x *EnrolledService) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 EnrolledService.ProtoReflect.Descriptor instead.
func (*EnrolledService) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{7}
}
func (x *EnrolledService) GetCloudProduct() string {
if x != nil {
return x.CloudProduct
}
return ""
}
func (x *EnrolledService) GetEnrollmentLevel() EnrollmentLevel {
if x != nil {
return x.EnrollmentLevel
}
return EnrollmentLevel_ENROLLMENT_LEVEL_UNSPECIFIED
}
// Settings on a Project/Folder/Organization related to Access Approval.
type AccessApprovalSettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the settings. Format is one of:
//
// - "projects/{project}/accessApprovalSettings"
// - "folders/{folder}/accessApprovalSettings"
// - "organizations/{organization}/accessApprovalSettings"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A list of email addresses to which notifications relating to approval
// requests should be sent. Notifications relating to a resource will be sent
// to all emails in the settings of ancestor resources of that resource. A
// maximum of 50 email addresses are allowed.
NotificationEmails []string `protobuf:"bytes,2,rep,name=notification_emails,json=notificationEmails,proto3" json:"notification_emails,omitempty"`
// A list of Google Cloud Services for which the given resource has Access
// Approval enrolled. Access requests for the resource given by name against
// any of these services contained here will be required to have explicit
// approval. If name refers to an organization, enrollment can be done for
// individual services. If name refers to a folder or project, enrollment can
// only be done on an all or nothing basis.
//
// If a cloud_product is repeated in this list, the first entry will be
// honored and all following entries will be discarded. A maximum of 10
// enrolled services will be enforced, to be expanded as the set of supported
// services is expanded.
EnrolledServices []*EnrolledService `protobuf:"bytes,3,rep,name=enrolled_services,json=enrolledServices,proto3" json:"enrolled_services,omitempty"`
// Output only. This field is read only (not settable via
// UpdateAccessApprovalSettings method). If the field is true, that
// indicates that at least one service is enrolled for Access Approval in one
// or more ancestors of the Project or Folder (this field will always be
// unset for the organization since organizations do not have ancestors).
EnrolledAncestor bool `protobuf:"varint,4,opt,name=enrolled_ancestor,json=enrolledAncestor,proto3" json:"enrolled_ancestor,omitempty"`
// The asymmetric crypto key version to use for signing approval requests.
// Empty active_key_version indicates that a Google-managed key should be used
// for signing. This property will be ignored if set by an ancestor of this
// resource, and new non-empty values may not be set.
ActiveKeyVersion string `protobuf:"bytes,6,opt,name=active_key_version,json=activeKeyVersion,proto3" json:"active_key_version,omitempty"`
// Output only. This field is read only (not settable via UpdateAccessApprovalSettings
// method). If the field is true, that indicates that an ancestor of this
// Project or Folder has set active_key_version (this field will always be
// unset for the organization since organizations do not have ancestors).
AncestorHasActiveKeyVersion bool `protobuf:"varint,7,opt,name=ancestor_has_active_key_version,json=ancestorHasActiveKeyVersion,proto3" json:"ancestor_has_active_key_version,omitempty"`
// Output only. This field is read only (not settable via UpdateAccessApprovalSettings
// method). If the field is true, that indicates that there is some
// configuration issue with the active_key_version configured at this level in
// the resource hierarchy (e.g. it doesn't exist or the Access Approval
// service account doesn't have the correct permissions on it, etc.) This key
// version is not necessarily the effective key version at this level, as key
// versions are inherited top-down.
InvalidKeyVersion bool `protobuf:"varint,8,opt,name=invalid_key_version,json=invalidKeyVersion,proto3" json:"invalid_key_version,omitempty"`
}
func (x *AccessApprovalSettings) Reset() {
*x = AccessApprovalSettings{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_accessapproval_v1_accessapproval_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessApprovalSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessApprovalSettings) ProtoMessage() {}
func (x *AccessApprovalSettings) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_accessapproval_v1_accessapproval_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 AccessApprovalSettings.ProtoReflect.Descriptor instead.
func (*AccessApprovalSettings) Descriptor() ([]byte, []int) {
return file_google_cloud_accessapproval_v1_accessapproval_proto_rawDescGZIP(), []int{8}
}
func (x *AccessApprovalSettings) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AccessApprovalSettings) GetNotificationEmails() []string {
if x != nil {
return x.NotificationEmails
}
return nil
}
func (x *AccessApprovalSettings) GetEnrolledServices() []*EnrolledService {
if x != nil {
return x.EnrolledServices
}
return nil
}
func (x *AccessApprovalSettings) GetEnrolledAncestor() bool {
if x != nil {
return x.EnrolledAncestor
}
return false
}
func (x *AccessApprovalSettings) GetActiveKeyVersion() string {
if x != nil {