/
guest_policies.pb.go
executable file
·3992 lines (3561 loc) · 161 KB
/
guest_policies.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 2020 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/osconfig/v1beta/guest_policies.proto
package osconfigpb
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"
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 desired state that the OS Config agent maintains on the VM instance.
type DesiredState int32
const (
// The default is to ensure the package is installed.
DesiredState_DESIRED_STATE_UNSPECIFIED DesiredState = 0
// The agent ensures that the package is installed.
DesiredState_INSTALLED DesiredState = 1
// The agent ensures that the package is installed and
// periodically checks for and install any updates.
DesiredState_UPDATED DesiredState = 2
// The agent ensures that the package is not installed and uninstall it
// if detected.
DesiredState_REMOVED DesiredState = 3
)
// Enum value maps for DesiredState.
var (
DesiredState_name = map[int32]string{
0: "DESIRED_STATE_UNSPECIFIED",
1: "INSTALLED",
2: "UPDATED",
3: "REMOVED",
}
DesiredState_value = map[string]int32{
"DESIRED_STATE_UNSPECIFIED": 0,
"INSTALLED": 1,
"UPDATED": 2,
"REMOVED": 3,
}
)
func (x DesiredState) Enum() *DesiredState {
p := new(DesiredState)
*p = x
return p
}
func (x DesiredState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DesiredState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[0].Descriptor()
}
func (DesiredState) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[0]
}
func (x DesiredState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DesiredState.Descriptor instead.
func (DesiredState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{0}
}
// Types of package managers that may be used to manage this package.
type Package_Manager int32
const (
// The default behavior is ANY.
Package_MANAGER_UNSPECIFIED Package_Manager = 0
// Apply this package config using the default system package manager.
Package_ANY Package_Manager = 1
// Apply this package config only if Apt is available on the system.
Package_APT Package_Manager = 2
// Apply this package config only if Yum is available on the system.
Package_YUM Package_Manager = 3
// Apply this package config only if Zypper is available on the system.
Package_ZYPPER Package_Manager = 4
// Apply this package config only if GooGet is available on the system.
Package_GOO Package_Manager = 5
)
// Enum value maps for Package_Manager.
var (
Package_Manager_name = map[int32]string{
0: "MANAGER_UNSPECIFIED",
1: "ANY",
2: "APT",
3: "YUM",
4: "ZYPPER",
5: "GOO",
}
Package_Manager_value = map[string]int32{
"MANAGER_UNSPECIFIED": 0,
"ANY": 1,
"APT": 2,
"YUM": 3,
"ZYPPER": 4,
"GOO": 5,
}
)
func (x Package_Manager) Enum() *Package_Manager {
p := new(Package_Manager)
*p = x
return p
}
func (x Package_Manager) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Package_Manager) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[1].Descriptor()
}
func (Package_Manager) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[1]
}
func (x Package_Manager) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Package_Manager.Descriptor instead.
func (Package_Manager) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{2, 0}
}
// Type of archive.
type AptRepository_ArchiveType int32
const (
// Unspecified.
AptRepository_ARCHIVE_TYPE_UNSPECIFIED AptRepository_ArchiveType = 0
// DEB indicates that the archive contains binary files.
AptRepository_DEB AptRepository_ArchiveType = 1
// DEB_SRC indicates that the archive contains source files.
AptRepository_DEB_SRC AptRepository_ArchiveType = 2
)
// Enum value maps for AptRepository_ArchiveType.
var (
AptRepository_ArchiveType_name = map[int32]string{
0: "ARCHIVE_TYPE_UNSPECIFIED",
1: "DEB",
2: "DEB_SRC",
}
AptRepository_ArchiveType_value = map[string]int32{
"ARCHIVE_TYPE_UNSPECIFIED": 0,
"DEB": 1,
"DEB_SRC": 2,
}
)
func (x AptRepository_ArchiveType) Enum() *AptRepository_ArchiveType {
p := new(AptRepository_ArchiveType)
*p = x
return p
}
func (x AptRepository_ArchiveType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AptRepository_ArchiveType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[2].Descriptor()
}
func (AptRepository_ArchiveType) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[2]
}
func (x AptRepository_ArchiveType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AptRepository_ArchiveType.Descriptor instead.
func (AptRepository_ArchiveType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{3, 0}
}
// Specifying the type of archive.
type SoftwareRecipe_Step_ExtractArchive_ArchiveType int32
const (
// Indicates that the archive type isn't specified.
SoftwareRecipe_Step_ExtractArchive_ARCHIVE_TYPE_UNSPECIFIED SoftwareRecipe_Step_ExtractArchive_ArchiveType = 0
// Indicates that the archive is a tar archive with no encryption.
SoftwareRecipe_Step_ExtractArchive_TAR SoftwareRecipe_Step_ExtractArchive_ArchiveType = 1
// Indicates that the archive is a tar archive with gzip encryption.
SoftwareRecipe_Step_ExtractArchive_TAR_GZIP SoftwareRecipe_Step_ExtractArchive_ArchiveType = 2
// Indicates that the archive is a tar archive with bzip encryption.
SoftwareRecipe_Step_ExtractArchive_TAR_BZIP SoftwareRecipe_Step_ExtractArchive_ArchiveType = 3
// Indicates that the archive is a tar archive with lzma encryption.
SoftwareRecipe_Step_ExtractArchive_TAR_LZMA SoftwareRecipe_Step_ExtractArchive_ArchiveType = 4
// Indicates that the archive is a tar archive with xz encryption.
SoftwareRecipe_Step_ExtractArchive_TAR_XZ SoftwareRecipe_Step_ExtractArchive_ArchiveType = 5
// Indicates that the archive is a zip archive.
SoftwareRecipe_Step_ExtractArchive_ZIP SoftwareRecipe_Step_ExtractArchive_ArchiveType = 11
)
// Enum value maps for SoftwareRecipe_Step_ExtractArchive_ArchiveType.
var (
SoftwareRecipe_Step_ExtractArchive_ArchiveType_name = map[int32]string{
0: "ARCHIVE_TYPE_UNSPECIFIED",
1: "TAR",
2: "TAR_GZIP",
3: "TAR_BZIP",
4: "TAR_LZMA",
5: "TAR_XZ",
11: "ZIP",
}
SoftwareRecipe_Step_ExtractArchive_ArchiveType_value = map[string]int32{
"ARCHIVE_TYPE_UNSPECIFIED": 0,
"TAR": 1,
"TAR_GZIP": 2,
"TAR_BZIP": 3,
"TAR_LZMA": 4,
"TAR_XZ": 5,
"ZIP": 11,
}
)
func (x SoftwareRecipe_Step_ExtractArchive_ArchiveType) Enum() *SoftwareRecipe_Step_ExtractArchive_ArchiveType {
p := new(SoftwareRecipe_Step_ExtractArchive_ArchiveType)
*p = x
return p
}
func (x SoftwareRecipe_Step_ExtractArchive_ArchiveType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SoftwareRecipe_Step_ExtractArchive_ArchiveType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[3].Descriptor()
}
func (SoftwareRecipe_Step_ExtractArchive_ArchiveType) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[3]
}
func (x SoftwareRecipe_Step_ExtractArchive_ArchiveType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SoftwareRecipe_Step_ExtractArchive_ArchiveType.Descriptor instead.
func (SoftwareRecipe_Step_ExtractArchive_ArchiveType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{8, 1, 1, 0}
}
// The interpreter used to execute a script.
type SoftwareRecipe_Step_RunScript_Interpreter int32
const (
// Default value for ScriptType.
SoftwareRecipe_Step_RunScript_INTERPRETER_UNSPECIFIED SoftwareRecipe_Step_RunScript_Interpreter = 0
// Indicates that the script is run with `/bin/sh` on Linux and `cmd`
// on windows.
SoftwareRecipe_Step_RunScript_SHELL SoftwareRecipe_Step_RunScript_Interpreter = 1
// Indicates that the script is run with powershell.
SoftwareRecipe_Step_RunScript_POWERSHELL SoftwareRecipe_Step_RunScript_Interpreter = 3
)
// Enum value maps for SoftwareRecipe_Step_RunScript_Interpreter.
var (
SoftwareRecipe_Step_RunScript_Interpreter_name = map[int32]string{
0: "INTERPRETER_UNSPECIFIED",
1: "SHELL",
3: "POWERSHELL",
}
SoftwareRecipe_Step_RunScript_Interpreter_value = map[string]int32{
"INTERPRETER_UNSPECIFIED": 0,
"SHELL": 1,
"POWERSHELL": 3,
}
)
func (x SoftwareRecipe_Step_RunScript_Interpreter) Enum() *SoftwareRecipe_Step_RunScript_Interpreter {
p := new(SoftwareRecipe_Step_RunScript_Interpreter)
*p = x
return p
}
func (x SoftwareRecipe_Step_RunScript_Interpreter) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SoftwareRecipe_Step_RunScript_Interpreter) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[4].Descriptor()
}
func (SoftwareRecipe_Step_RunScript_Interpreter) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1beta_guest_policies_proto_enumTypes[4]
}
func (x SoftwareRecipe_Step_RunScript_Interpreter) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SoftwareRecipe_Step_RunScript_Interpreter.Descriptor instead.
func (SoftwareRecipe_Step_RunScript_Interpreter) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{8, 1, 6, 0}
}
// An OS Config resource representing a guest configuration policy. These
// policies represent the desired state for VM instance guest environments
// including packages to install or remove, package repository configurations,
// and software to install.
type GuestPolicy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Unique name of the resource in this project using one of the following
// forms:
// `projects/{project_number}/guestPolicies/{guest_policy_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Description of the guest policy. Length of the description is limited
// to 1024 characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Time this guest policy was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Last time this guest policy was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. Specifies the VM instances that are assigned to this policy. This allows
// you to target sets or groups of VM instances by different parameters such
// as labels, names, OS, or zones.
//
// If left empty, all VM instances underneath this policy are targeted.
//
// At the same level in the resource hierarchy (that is within a project), the
// service prevents the creation of multiple policies that conflict with
// each other. For more information, see how the service [handles assignment
// conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
Assignment *Assignment `protobuf:"bytes,6,opt,name=assignment,proto3" json:"assignment,omitempty"`
// The software packages to be managed by this policy.
Packages []*Package `protobuf:"bytes,7,rep,name=packages,proto3" json:"packages,omitempty"`
// A list of package repositories to configure on the VM instance. This is
// done before any other configs are applied so they can use these repos.
// Package repositories are only configured if the corresponding package
// manager(s) are available.
PackageRepositories []*PackageRepository `protobuf:"bytes,8,rep,name=package_repositories,json=packageRepositories,proto3" json:"package_repositories,omitempty"`
// A list of Recipes to install on the VM instance.
Recipes []*SoftwareRecipe `protobuf:"bytes,9,rep,name=recipes,proto3" json:"recipes,omitempty"`
// The etag for this guest policy.
// If this is provided on update, it must match the server's etag.
Etag string `protobuf:"bytes,10,opt,name=etag,proto3" json:"etag,omitempty"`
}
func (x *GuestPolicy) Reset() {
*x = GuestPolicy{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GuestPolicy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GuestPolicy) ProtoMessage() {}
func (x *GuestPolicy) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 GuestPolicy.ProtoReflect.Descriptor instead.
func (*GuestPolicy) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{0}
}
func (x *GuestPolicy) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GuestPolicy) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *GuestPolicy) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *GuestPolicy) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *GuestPolicy) GetAssignment() *Assignment {
if x != nil {
return x.Assignment
}
return nil
}
func (x *GuestPolicy) GetPackages() []*Package {
if x != nil {
return x.Packages
}
return nil
}
func (x *GuestPolicy) GetPackageRepositories() []*PackageRepository {
if x != nil {
return x.PackageRepositories
}
return nil
}
func (x *GuestPolicy) GetRecipes() []*SoftwareRecipe {
if x != nil {
return x.Recipes
}
return nil
}
func (x *GuestPolicy) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
// An assignment represents the group or groups of VM instances that the policy
// applies to.
//
// If an assignment is empty, it applies to all VM instances. Otherwise, the
// targeted VM instances must meet all the criteria specified. So if both
// labels and zones are specified, the policy applies to VM instances with those
// labels and in those zones.
type Assignment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Targets instances matching at least one of these label sets. This allows
// an assignment to target disparate groups, for example "env=prod or
// env=staging".
GroupLabels []*Assignment_GroupLabel `protobuf:"bytes,1,rep,name=group_labels,json=groupLabels,proto3" json:"group_labels,omitempty"`
// Targets instances in any of these zones. Leave empty to target instances
// in any zone.
//
// Zonal targeting is uncommon and is supported to facilitate the management
// of changes by zone.
Zones []string `protobuf:"bytes,2,rep,name=zones,proto3" json:"zones,omitempty"`
// Targets any of the instances specified. Instances are specified by their
// URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`.
//
// Instance targeting is uncommon and is supported to facilitate the
// management of changes by the instance or to target specific VM instances
// for development and testing.
//
// Only supported for project-level policies and must reference instances
// within this project.
Instances []string `protobuf:"bytes,3,rep,name=instances,proto3" json:"instances,omitempty"`
// Targets VM instances whose name starts with one of these prefixes.
//
// Like labels, this is another way to group VM instances when targeting
// configs, for example prefix="prod-".
//
// Only supported for project-level policies.
InstanceNamePrefixes []string `protobuf:"bytes,4,rep,name=instance_name_prefixes,json=instanceNamePrefixes,proto3" json:"instance_name_prefixes,omitempty"`
// Targets VM instances matching at least one of the following OS types.
//
// VM instances must match all supplied criteria for a given OsType to be
// included.
OsTypes []*Assignment_OsType `protobuf:"bytes,5,rep,name=os_types,json=osTypes,proto3" json:"os_types,omitempty"`
}
func (x *Assignment) Reset() {
*x = Assignment{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Assignment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Assignment) ProtoMessage() {}
func (x *Assignment) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 Assignment.ProtoReflect.Descriptor instead.
func (*Assignment) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{1}
}
func (x *Assignment) GetGroupLabels() []*Assignment_GroupLabel {
if x != nil {
return x.GroupLabels
}
return nil
}
func (x *Assignment) GetZones() []string {
if x != nil {
return x.Zones
}
return nil
}
func (x *Assignment) GetInstances() []string {
if x != nil {
return x.Instances
}
return nil
}
func (x *Assignment) GetInstanceNamePrefixes() []string {
if x != nil {
return x.InstanceNamePrefixes
}
return nil
}
func (x *Assignment) GetOsTypes() []*Assignment_OsType {
if x != nil {
return x.OsTypes
}
return nil
}
// Package is a reference to the software package to be installed or removed.
// The agent on the VM instance uses the system package manager to apply the
// config.
//
// These are the commands that the agent uses to install or remove
// packages.
//
// Apt
// install: `apt-get update && apt-get -y install package1 package2 package3`
// remove: `apt-get -y remove package1 package2 package3`
//
// Yum
// install: `yum -y install package1 package2 package3`
// remove: `yum -y remove package1 package2 package3`
//
// Zypper
// install: `zypper install package1 package2 package3`
// remove: `zypper rm package1 package2`
//
// Googet
// install: `googet -noconfirm install package1 package2 package3`
// remove: `googet -noconfirm remove package1 package2 package3`
type Package struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the package. A package is uniquely identified for conflict
// validation by checking the package name and the manager(s) that the
// package targets.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The desired_state the agent should maintain for this package. The
// default is to ensure the package is installed.
DesiredState DesiredState `protobuf:"varint,2,opt,name=desired_state,json=desiredState,proto3,enum=google.cloud.osconfig.v1beta.DesiredState" json:"desired_state,omitempty"`
// Type of package manager that can be used to install this package.
// If a system does not have the package manager, the package is not
// installed or removed no error message is returned. By default,
// or if you specify `ANY`,
// the agent attempts to install and remove this package using the default
// package manager. This is useful when creating a policy that applies to
// different types of systems.
//
// The default behavior is ANY.
Manager Package_Manager `protobuf:"varint,3,opt,name=manager,proto3,enum=google.cloud.osconfig.v1beta.Package_Manager" json:"manager,omitempty"`
}
func (x *Package) Reset() {
*x = Package{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Package) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Package) ProtoMessage() {}
func (x *Package) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 Package.ProtoReflect.Descriptor instead.
func (*Package) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{2}
}
func (x *Package) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Package) GetDesiredState() DesiredState {
if x != nil {
return x.DesiredState
}
return DesiredState_DESIRED_STATE_UNSPECIFIED
}
func (x *Package) GetManager() Package_Manager {
if x != nil {
return x.Manager
}
return Package_MANAGER_UNSPECIFIED
}
// Represents a single Apt package repository. This repository is added to
// a repo file that is stored at
// `/etc/apt/sources.list.d/google_osconfig.list`.
type AptRepository struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of archive files in this repository. The default behavior is DEB.
ArchiveType AptRepository_ArchiveType `protobuf:"varint,1,opt,name=archive_type,json=archiveType,proto3,enum=google.cloud.osconfig.v1beta.AptRepository_ArchiveType" json:"archive_type,omitempty"`
// Required. URI for this repository.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Required. Distribution of this repository.
Distribution string `protobuf:"bytes,3,opt,name=distribution,proto3" json:"distribution,omitempty"`
// Required. List of components for this repository. Must contain at least one item.
Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
// URI of the key file for this repository. The agent maintains
// a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing
// all the keys in any applied guest policy.
GpgKey string `protobuf:"bytes,5,opt,name=gpg_key,json=gpgKey,proto3" json:"gpg_key,omitempty"`
}
func (x *AptRepository) Reset() {
*x = AptRepository{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AptRepository) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AptRepository) ProtoMessage() {}
func (x *AptRepository) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 AptRepository.ProtoReflect.Descriptor instead.
func (*AptRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{3}
}
func (x *AptRepository) GetArchiveType() AptRepository_ArchiveType {
if x != nil {
return x.ArchiveType
}
return AptRepository_ARCHIVE_TYPE_UNSPECIFIED
}
func (x *AptRepository) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *AptRepository) GetDistribution() string {
if x != nil {
return x.Distribution
}
return ""
}
func (x *AptRepository) GetComponents() []string {
if x != nil {
return x.Components
}
return nil
}
func (x *AptRepository) GetGpgKey() string {
if x != nil {
return x.GpgKey
}
return ""
}
// Represents a single Yum package repository. This repository is added to a
// repo file that is stored at `/etc/yum.repos.d/google_osconfig.repo`.
type YumRepository struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. A one word, unique name for this repository. This is
// the `repo id` in the Yum config file and also the `display_name` if
// `display_name` is omitted. This id is also used as the unique identifier
// when checking for guest policy conflicts.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The display name of the repository.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The location of the repository directory.
BaseUrl string `protobuf:"bytes,3,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
// URIs of GPG keys.
GpgKeys []string `protobuf:"bytes,4,rep,name=gpg_keys,json=gpgKeys,proto3" json:"gpg_keys,omitempty"`
}
func (x *YumRepository) Reset() {
*x = YumRepository{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *YumRepository) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*YumRepository) ProtoMessage() {}
func (x *YumRepository) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 YumRepository.ProtoReflect.Descriptor instead.
func (*YumRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{4}
}
func (x *YumRepository) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *YumRepository) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *YumRepository) GetBaseUrl() string {
if x != nil {
return x.BaseUrl
}
return ""
}
func (x *YumRepository) GetGpgKeys() []string {
if x != nil {
return x.GpgKeys
}
return nil
}
// Represents a single Zypper package repository. This repository is added to a
// repo file that is stored at `/etc/zypp/repos.d/google_osconfig.repo`.
type ZypperRepository struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. A one word, unique name for this repository. This is
// the `repo id` in the zypper config file and also the `display_name` if
// `display_name` is omitted. This id is also used as the unique identifier
// when checking for guest policy conflicts.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The display name of the repository.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The location of the repository directory.
BaseUrl string `protobuf:"bytes,3,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
// URIs of GPG keys.
GpgKeys []string `protobuf:"bytes,4,rep,name=gpg_keys,json=gpgKeys,proto3" json:"gpg_keys,omitempty"`
}
func (x *ZypperRepository) Reset() {
*x = ZypperRepository{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ZypperRepository) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ZypperRepository) ProtoMessage() {}
func (x *ZypperRepository) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 ZypperRepository.ProtoReflect.Descriptor instead.
func (*ZypperRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{5}
}
func (x *ZypperRepository) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ZypperRepository) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *ZypperRepository) GetBaseUrl() string {
if x != nil {
return x.BaseUrl
}
return ""
}
func (x *ZypperRepository) GetGpgKeys() []string {
if x != nil {
return x.GpgKeys
}
return nil
}
// Represents a Goo package repository. These is added to a repo file
// that is stored at C:/ProgramData/GooGet/repos/google_osconfig.repo.
type GooRepository struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the repository.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The url of the repository.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *GooRepository) Reset() {
*x = GooRepository{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GooRepository) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GooRepository) ProtoMessage() {}
func (x *GooRepository) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1beta_guest_policies_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 GooRepository.ProtoReflect.Descriptor instead.
func (*GooRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1beta_guest_policies_proto_rawDescGZIP(), []int{6}
}
func (x *GooRepository) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GooRepository) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}