/
assuredworkloads.pb.go
2696 lines (2419 loc) · 123 KB
/
assuredworkloads.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.26.0
// protoc v3.21.5
// source: google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto
package assuredworkloadspb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// The type of restriction.
type RestrictAllowedResourcesRequest_RestrictionType int32
const (
// Unknown restriction type.
RestrictAllowedResourcesRequest_RESTRICTION_TYPE_UNSPECIFIED RestrictAllowedResourcesRequest_RestrictionType = 0
// Allow the use all of all gcp products, irrespective of the compliance
// posture. This effectively removes gcp.restrictServiceUsage OrgPolicy
// on the AssuredWorkloads Folder.
RestrictAllowedResourcesRequest_ALLOW_ALL_GCP_RESOURCES RestrictAllowedResourcesRequest_RestrictionType = 1
// Based on Workload's compliance regime, allowed list changes.
// See - https://cloud.google.com/assured-workloads/docs/supported-products
// for the list of supported resources.
RestrictAllowedResourcesRequest_ALLOW_COMPLIANT_RESOURCES RestrictAllowedResourcesRequest_RestrictionType = 2
)
// Enum value maps for RestrictAllowedResourcesRequest_RestrictionType.
var (
RestrictAllowedResourcesRequest_RestrictionType_name = map[int32]string{
0: "RESTRICTION_TYPE_UNSPECIFIED",
1: "ALLOW_ALL_GCP_RESOURCES",
2: "ALLOW_COMPLIANT_RESOURCES",
}
RestrictAllowedResourcesRequest_RestrictionType_value = map[string]int32{
"RESTRICTION_TYPE_UNSPECIFIED": 0,
"ALLOW_ALL_GCP_RESOURCES": 1,
"ALLOW_COMPLIANT_RESOURCES": 2,
}
)
func (x RestrictAllowedResourcesRequest_RestrictionType) Enum() *RestrictAllowedResourcesRequest_RestrictionType {
p := new(RestrictAllowedResourcesRequest_RestrictionType)
*p = x
return p
}
func (x RestrictAllowedResourcesRequest_RestrictionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RestrictAllowedResourcesRequest_RestrictionType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[0].Descriptor()
}
func (RestrictAllowedResourcesRequest_RestrictionType) Type() protoreflect.EnumType {
return &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[0]
}
func (x RestrictAllowedResourcesRequest_RestrictionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RestrictAllowedResourcesRequest_RestrictionType.Descriptor instead.
func (RestrictAllowedResourcesRequest_RestrictionType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{2, 0}
}
// Supported Compliance Regimes.
type Workload_ComplianceRegime int32
const (
// Unknown compliance regime.
Workload_COMPLIANCE_REGIME_UNSPECIFIED Workload_ComplianceRegime = 0
// Information protection as per DoD IL4 requirements.
Workload_IL4 Workload_ComplianceRegime = 1
// Criminal Justice Information Services (CJIS) Security policies.
Workload_CJIS Workload_ComplianceRegime = 2
// FedRAMP High data protection controls
Workload_FEDRAMP_HIGH Workload_ComplianceRegime = 3
// FedRAMP Moderate data protection controls
Workload_FEDRAMP_MODERATE Workload_ComplianceRegime = 4
// Assured Workloads For US Regions data protection controls
Workload_US_REGIONAL_ACCESS Workload_ComplianceRegime = 5
// Health Insurance Portability and Accountability Act controls
Workload_HIPAA Workload_ComplianceRegime = 6
// Health Information Trust Alliance controls
Workload_HITRUST Workload_ComplianceRegime = 7
// Assured Workloads For EU Regions and Support controls
Workload_EU_REGIONS_AND_SUPPORT Workload_ComplianceRegime = 8
// Assured Workloads For Canada Regions and Support controls
Workload_CA_REGIONS_AND_SUPPORT Workload_ComplianceRegime = 9
// International Traffic in Arms Regulations
Workload_ITAR Workload_ComplianceRegime = 10
// Assured Workloads for Australia Regions and Support controls
Workload_AU_REGIONS_AND_US_SUPPORT Workload_ComplianceRegime = 11
)
// Enum value maps for Workload_ComplianceRegime.
var (
Workload_ComplianceRegime_name = map[int32]string{
0: "COMPLIANCE_REGIME_UNSPECIFIED",
1: "IL4",
2: "CJIS",
3: "FEDRAMP_HIGH",
4: "FEDRAMP_MODERATE",
5: "US_REGIONAL_ACCESS",
6: "HIPAA",
7: "HITRUST",
8: "EU_REGIONS_AND_SUPPORT",
9: "CA_REGIONS_AND_SUPPORT",
10: "ITAR",
11: "AU_REGIONS_AND_US_SUPPORT",
}
Workload_ComplianceRegime_value = map[string]int32{
"COMPLIANCE_REGIME_UNSPECIFIED": 0,
"IL4": 1,
"CJIS": 2,
"FEDRAMP_HIGH": 3,
"FEDRAMP_MODERATE": 4,
"US_REGIONAL_ACCESS": 5,
"HIPAA": 6,
"HITRUST": 7,
"EU_REGIONS_AND_SUPPORT": 8,
"CA_REGIONS_AND_SUPPORT": 9,
"ITAR": 10,
"AU_REGIONS_AND_US_SUPPORT": 11,
}
)
func (x Workload_ComplianceRegime) Enum() *Workload_ComplianceRegime {
p := new(Workload_ComplianceRegime)
*p = x
return p
}
func (x Workload_ComplianceRegime) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Workload_ComplianceRegime) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[1].Descriptor()
}
func (Workload_ComplianceRegime) Type() protoreflect.EnumType {
return &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[1]
}
func (x Workload_ComplianceRegime) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Workload_ComplianceRegime.Descriptor instead.
func (Workload_ComplianceRegime) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{10, 0}
}
// Key Access Justifications(KAJ) Enrollment State.
type Workload_KajEnrollmentState int32
const (
// Default State for KAJ Enrollment.
Workload_KAJ_ENROLLMENT_STATE_UNSPECIFIED Workload_KajEnrollmentState = 0
// Pending State for KAJ Enrollment.
Workload_KAJ_ENROLLMENT_STATE_PENDING Workload_KajEnrollmentState = 1
// Complete State for KAJ Enrollment.
Workload_KAJ_ENROLLMENT_STATE_COMPLETE Workload_KajEnrollmentState = 2
)
// Enum value maps for Workload_KajEnrollmentState.
var (
Workload_KajEnrollmentState_name = map[int32]string{
0: "KAJ_ENROLLMENT_STATE_UNSPECIFIED",
1: "KAJ_ENROLLMENT_STATE_PENDING",
2: "KAJ_ENROLLMENT_STATE_COMPLETE",
}
Workload_KajEnrollmentState_value = map[string]int32{
"KAJ_ENROLLMENT_STATE_UNSPECIFIED": 0,
"KAJ_ENROLLMENT_STATE_PENDING": 1,
"KAJ_ENROLLMENT_STATE_COMPLETE": 2,
}
)
func (x Workload_KajEnrollmentState) Enum() *Workload_KajEnrollmentState {
p := new(Workload_KajEnrollmentState)
*p = x
return p
}
func (x Workload_KajEnrollmentState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Workload_KajEnrollmentState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[2].Descriptor()
}
func (Workload_KajEnrollmentState) Type() protoreflect.EnumType {
return &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[2]
}
func (x Workload_KajEnrollmentState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Workload_KajEnrollmentState.Descriptor instead.
func (Workload_KajEnrollmentState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{10, 1}
}
// The type of resource.
type Workload_ResourceInfo_ResourceType int32
const (
// Unknown resource type.
Workload_ResourceInfo_RESOURCE_TYPE_UNSPECIFIED Workload_ResourceInfo_ResourceType = 0
// Deprecated. Existing workloads will continue to support this, but new
// CreateWorkloadRequests should not specify this as an input value.
//
// Deprecated: Do not use.
Workload_ResourceInfo_CONSUMER_PROJECT Workload_ResourceInfo_ResourceType = 1
// Consumer Folder.
Workload_ResourceInfo_CONSUMER_FOLDER Workload_ResourceInfo_ResourceType = 4
// Consumer project containing encryption keys.
Workload_ResourceInfo_ENCRYPTION_KEYS_PROJECT Workload_ResourceInfo_ResourceType = 2
// Keyring resource that hosts encryption keys.
Workload_ResourceInfo_KEYRING Workload_ResourceInfo_ResourceType = 3
)
// Enum value maps for Workload_ResourceInfo_ResourceType.
var (
Workload_ResourceInfo_ResourceType_name = map[int32]string{
0: "RESOURCE_TYPE_UNSPECIFIED",
1: "CONSUMER_PROJECT",
4: "CONSUMER_FOLDER",
2: "ENCRYPTION_KEYS_PROJECT",
3: "KEYRING",
}
Workload_ResourceInfo_ResourceType_value = map[string]int32{
"RESOURCE_TYPE_UNSPECIFIED": 0,
"CONSUMER_PROJECT": 1,
"CONSUMER_FOLDER": 4,
"ENCRYPTION_KEYS_PROJECT": 2,
"KEYRING": 3,
}
)
func (x Workload_ResourceInfo_ResourceType) Enum() *Workload_ResourceInfo_ResourceType {
p := new(Workload_ResourceInfo_ResourceType)
*p = x
return p
}
func (x Workload_ResourceInfo_ResourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Workload_ResourceInfo_ResourceType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[3].Descriptor()
}
func (Workload_ResourceInfo_ResourceType) Type() protoreflect.EnumType {
return &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[3]
}
func (x Workload_ResourceInfo_ResourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Workload_ResourceInfo_ResourceType.Descriptor instead.
func (Workload_ResourceInfo_ResourceType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{10, 0, 0}
}
// Setup state of SAA enrollment.
type Workload_SaaEnrollmentResponse_SetupState int32
const (
// Unspecified.
Workload_SaaEnrollmentResponse_SETUP_STATE_UNSPECIFIED Workload_SaaEnrollmentResponse_SetupState = 0
// SAA enrollment pending.
Workload_SaaEnrollmentResponse_STATUS_PENDING Workload_SaaEnrollmentResponse_SetupState = 1
// SAA enrollment comopleted.
Workload_SaaEnrollmentResponse_STATUS_COMPLETE Workload_SaaEnrollmentResponse_SetupState = 2
)
// Enum value maps for Workload_SaaEnrollmentResponse_SetupState.
var (
Workload_SaaEnrollmentResponse_SetupState_name = map[int32]string{
0: "SETUP_STATE_UNSPECIFIED",
1: "STATUS_PENDING",
2: "STATUS_COMPLETE",
}
Workload_SaaEnrollmentResponse_SetupState_value = map[string]int32{
"SETUP_STATE_UNSPECIFIED": 0,
"STATUS_PENDING": 1,
"STATUS_COMPLETE": 2,
}
)
func (x Workload_SaaEnrollmentResponse_SetupState) Enum() *Workload_SaaEnrollmentResponse_SetupState {
p := new(Workload_SaaEnrollmentResponse_SetupState)
*p = x
return p
}
func (x Workload_SaaEnrollmentResponse_SetupState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Workload_SaaEnrollmentResponse_SetupState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[4].Descriptor()
}
func (Workload_SaaEnrollmentResponse_SetupState) Type() protoreflect.EnumType {
return &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[4]
}
func (x Workload_SaaEnrollmentResponse_SetupState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Workload_SaaEnrollmentResponse_SetupState.Descriptor instead.
func (Workload_SaaEnrollmentResponse_SetupState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{10, 7, 0}
}
// Setup error of SAA enrollment.
type Workload_SaaEnrollmentResponse_SetupError int32
const (
// Unspecified.
Workload_SaaEnrollmentResponse_SETUP_ERROR_UNSPECIFIED Workload_SaaEnrollmentResponse_SetupError = 0
// Invalid states for all customers, to be redirected to AA UI for
// additional details.
Workload_SaaEnrollmentResponse_ERROR_INVALID_BASE_SETUP Workload_SaaEnrollmentResponse_SetupError = 1
// Returned when there is not an EKM key configured.
Workload_SaaEnrollmentResponse_ERROR_MISSING_EXTERNAL_SIGNING_KEY Workload_SaaEnrollmentResponse_SetupError = 2
// Returned when there are no enrolled services or the customer is
// enrolled in CAA only for a subset of services.
Workload_SaaEnrollmentResponse_ERROR_NOT_ALL_SERVICES_ENROLLED Workload_SaaEnrollmentResponse_SetupError = 3
// Returned when exception was encountered during evaluation of other
// criteria.
Workload_SaaEnrollmentResponse_ERROR_SETUP_CHECK_FAILED Workload_SaaEnrollmentResponse_SetupError = 4
)
// Enum value maps for Workload_SaaEnrollmentResponse_SetupError.
var (
Workload_SaaEnrollmentResponse_SetupError_name = map[int32]string{
0: "SETUP_ERROR_UNSPECIFIED",
1: "ERROR_INVALID_BASE_SETUP",
2: "ERROR_MISSING_EXTERNAL_SIGNING_KEY",
3: "ERROR_NOT_ALL_SERVICES_ENROLLED",
4: "ERROR_SETUP_CHECK_FAILED",
}
Workload_SaaEnrollmentResponse_SetupError_value = map[string]int32{
"SETUP_ERROR_UNSPECIFIED": 0,
"ERROR_INVALID_BASE_SETUP": 1,
"ERROR_MISSING_EXTERNAL_SIGNING_KEY": 2,
"ERROR_NOT_ALL_SERVICES_ENROLLED": 3,
"ERROR_SETUP_CHECK_FAILED": 4,
}
)
func (x Workload_SaaEnrollmentResponse_SetupError) Enum() *Workload_SaaEnrollmentResponse_SetupError {
p := new(Workload_SaaEnrollmentResponse_SetupError)
*p = x
return p
}
func (x Workload_SaaEnrollmentResponse_SetupError) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Workload_SaaEnrollmentResponse_SetupError) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[5].Descriptor()
}
func (Workload_SaaEnrollmentResponse_SetupError) Type() protoreflect.EnumType {
return &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_enumTypes[5]
}
func (x Workload_SaaEnrollmentResponse_SetupError) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Workload_SaaEnrollmentResponse_SetupError.Descriptor instead.
func (Workload_SaaEnrollmentResponse_SetupError) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{10, 7, 1}
}
// Request for creating a workload.
type CreateWorkloadRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the new Workload's parent.
// Must be of the form `organizations/{org_id}/locations/{location_id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Assured Workload to create
Workload *Workload `protobuf:"bytes,2,opt,name=workload,proto3" json:"workload,omitempty"`
// Optional. A identifier associated with the workload and underlying projects which
// allows for the break down of billing costs for a workload. The value
// provided for the identifier will add a label to the workload and contained
// projects with the identifier as the value.
ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
}
func (x *CreateWorkloadRequest) Reset() {
*x = CreateWorkloadRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateWorkloadRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateWorkloadRequest) ProtoMessage() {}
func (x *CreateWorkloadRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 CreateWorkloadRequest.ProtoReflect.Descriptor instead.
func (*CreateWorkloadRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{0}
}
func (x *CreateWorkloadRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateWorkloadRequest) GetWorkload() *Workload {
if x != nil {
return x.Workload
}
return nil
}
func (x *CreateWorkloadRequest) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
// Request for Updating a workload.
type UpdateWorkloadRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The workload to update.
// The workload's `name` field is used to identify the workload to be updated.
// Format:
// organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
Workload *Workload `protobuf:"bytes,1,opt,name=workload,proto3" json:"workload,omitempty"`
// Required. The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateWorkloadRequest) Reset() {
*x = UpdateWorkloadRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateWorkloadRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateWorkloadRequest) ProtoMessage() {}
func (x *UpdateWorkloadRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 UpdateWorkloadRequest.ProtoReflect.Descriptor instead.
func (*UpdateWorkloadRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{1}
}
func (x *UpdateWorkloadRequest) GetWorkload() *Workload {
if x != nil {
return x.Workload
}
return nil
}
func (x *UpdateWorkloadRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// Request for restricting list of available resources in Workload environment.
type RestrictAllowedResourcesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the Workload. This is the workloads's
// relative path in the API, formatted as
// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
// For example,
// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The type of restriction for using gcp products in the Workload environment.
RestrictionType RestrictAllowedResourcesRequest_RestrictionType `protobuf:"varint,2,opt,name=restriction_type,json=restrictionType,proto3,enum=google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest_RestrictionType" json:"restriction_type,omitempty"`
}
func (x *RestrictAllowedResourcesRequest) Reset() {
*x = RestrictAllowedResourcesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RestrictAllowedResourcesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RestrictAllowedResourcesRequest) ProtoMessage() {}
func (x *RestrictAllowedResourcesRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 RestrictAllowedResourcesRequest.ProtoReflect.Descriptor instead.
func (*RestrictAllowedResourcesRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{2}
}
func (x *RestrictAllowedResourcesRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RestrictAllowedResourcesRequest) GetRestrictionType() RestrictAllowedResourcesRequest_RestrictionType {
if x != nil {
return x.RestrictionType
}
return RestrictAllowedResourcesRequest_RESTRICTION_TYPE_UNSPECIFIED
}
// Response for restricting the list of allowed resources.
type RestrictAllowedResourcesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *RestrictAllowedResourcesResponse) Reset() {
*x = RestrictAllowedResourcesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RestrictAllowedResourcesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RestrictAllowedResourcesResponse) ProtoMessage() {}
func (x *RestrictAllowedResourcesResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 RestrictAllowedResourcesResponse.ProtoReflect.Descriptor instead.
func (*RestrictAllowedResourcesResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{3}
}
// Request for deleting a Workload.
type DeleteWorkloadRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The `name` field is used to identify the workload.
// Format:
// organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The etag of the workload.
// If this is provided, it must match the server's etag.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
}
func (x *DeleteWorkloadRequest) Reset() {
*x = DeleteWorkloadRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteWorkloadRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteWorkloadRequest) ProtoMessage() {}
func (x *DeleteWorkloadRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 DeleteWorkloadRequest.ProtoReflect.Descriptor instead.
func (*DeleteWorkloadRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{4}
}
func (x *DeleteWorkloadRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DeleteWorkloadRequest) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
// Request for fetching a workload.
type GetWorkloadRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The resource name of the Workload to fetch. This is the workloads's
// relative path in the API, formatted as
// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
// For example,
// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetWorkloadRequest) Reset() {
*x = GetWorkloadRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetWorkloadRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetWorkloadRequest) ProtoMessage() {}
func (x *GetWorkloadRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 GetWorkloadRequest.ProtoReflect.Descriptor instead.
func (*GetWorkloadRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{5}
}
func (x *GetWorkloadRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// A request to analyze a hypothetical move of a source project or project-based
// workload to a target (destination) folder-based workload.
type AnalyzeWorkloadMoveRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource type to be moved to the destination workload. It can be either
// an existing project or a project-based workload.
//
// Types that are assignable to ProjectOrWorkloadResource:
//
// *AnalyzeWorkloadMoveRequest_Source
// *AnalyzeWorkloadMoveRequest_Project
ProjectOrWorkloadResource isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource `protobuf_oneof:"projectOrWorkloadResource"`
// Required. The resource ID of the folder-based destination workload. This workload is
// where the source project will hypothetically be moved to. Specify the
// workload's relative resource name, formatted as:
// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
// For example:
// "organizations/123/locations/us-east1/workloads/assured-workload-2"
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
}
func (x *AnalyzeWorkloadMoveRequest) Reset() {
*x = AnalyzeWorkloadMoveRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnalyzeWorkloadMoveRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnalyzeWorkloadMoveRequest) ProtoMessage() {}
func (x *AnalyzeWorkloadMoveRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 AnalyzeWorkloadMoveRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeWorkloadMoveRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{6}
}
func (m *AnalyzeWorkloadMoveRequest) GetProjectOrWorkloadResource() isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource {
if m != nil {
return m.ProjectOrWorkloadResource
}
return nil
}
func (x *AnalyzeWorkloadMoveRequest) GetSource() string {
if x, ok := x.GetProjectOrWorkloadResource().(*AnalyzeWorkloadMoveRequest_Source); ok {
return x.Source
}
return ""
}
func (x *AnalyzeWorkloadMoveRequest) GetProject() string {
if x, ok := x.GetProjectOrWorkloadResource().(*AnalyzeWorkloadMoveRequest_Project); ok {
return x.Project
}
return ""
}
func (x *AnalyzeWorkloadMoveRequest) GetTarget() string {
if x != nil {
return x.Target
}
return ""
}
type isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource interface {
isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource()
}
type AnalyzeWorkloadMoveRequest_Source struct {
// The source type is a project-based workload. Specify the workloads's
// relative resource name, formatted as:
// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
// For example:
// "organizations/123/locations/us-east1/workloads/assured-workload-1"
Source string `protobuf:"bytes,1,opt,name=source,proto3,oneof"`
}
type AnalyzeWorkloadMoveRequest_Project struct {
// The source type is a project. Specify the project's relative resource
// name, formatted as either a project number or a project ID:
// "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
// For example:
// "projects/951040570662" when specifying a project number, or
// "projects/my-project-123" when specifying a project ID.
Project string `protobuf:"bytes,3,opt,name=project,proto3,oneof"`
}
func (*AnalyzeWorkloadMoveRequest_Source) isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource() {}
func (*AnalyzeWorkloadMoveRequest_Project) isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource() {}
// A response that includes the analysis of the hypothetical resource move.
type AnalyzeWorkloadMoveResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A list of blockers that should be addressed before moving the source
// project or project-based workload to the destination folder-based workload.
Blockers []string `protobuf:"bytes,1,rep,name=blockers,proto3" json:"blockers,omitempty"`
}
func (x *AnalyzeWorkloadMoveResponse) Reset() {
*x = AnalyzeWorkloadMoveResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnalyzeWorkloadMoveResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnalyzeWorkloadMoveResponse) ProtoMessage() {}
func (x *AnalyzeWorkloadMoveResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 AnalyzeWorkloadMoveResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeWorkloadMoveResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{7}
}
func (x *AnalyzeWorkloadMoveResponse) GetBlockers() []string {
if x != nil {
return x.Blockers
}
return nil
}
// Request for fetching workloads in an organization.
type ListWorkloadsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Parent Resource to list workloads from.
// Must be of the form `organizations/{org_id}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page size.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page token returned from previous request. Page token contains context from
// previous request. Page token needs to be passed in the second and following
// requests.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A custom filter for filtering by properties of a workload. At this time,
// only filtering by labels is supported.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (x *ListWorkloadsRequest) Reset() {
*x = ListWorkloadsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListWorkloadsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListWorkloadsRequest) ProtoMessage() {}
func (x *ListWorkloadsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_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 ListWorkloadsRequest.ProtoReflect.Descriptor instead.
func (*ListWorkloadsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto_rawDescGZIP(), []int{8}
}
func (x *ListWorkloadsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListWorkloadsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListWorkloadsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""