-
Notifications
You must be signed in to change notification settings - Fork 184
/
guest_policies.pb.go
2994 lines (2663 loc) · 125 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.26.0
// protoc v3.12.2
// source: google/cloud/osconfig/agentendpoint/v1beta/guest_policies.proto
package agentendpoint
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"
)
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 will maintain on the VM.
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_agentendpoint_v1beta_guest_policies_proto_enumTypes[0].Descriptor()
}
func (DesiredState) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_agentendpoint_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_agentendpoint_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_agentendpoint_v1beta_guest_policies_proto_enumTypes[1].Descriptor()
}
func (Package_Manager) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_agentendpoint_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_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{0, 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_agentendpoint_v1beta_guest_policies_proto_enumTypes[2].Descriptor()
}
func (AptRepository_ArchiveType) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_agentendpoint_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_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{1, 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_agentendpoint_v1beta_guest_policies_proto_enumTypes[3].Descriptor()
}
func (SoftwareRecipe_Step_ExtractArchive_ArchiveType) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_agentendpoint_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_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{6, 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_agentendpoint_v1beta_guest_policies_proto_enumTypes[4].Descriptor()
}
func (SoftwareRecipe_Step_RunScript_Interpreter) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_agentendpoint_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_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{6, 1, 6, 0}
}
// 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
// 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.agentendpoint.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.agentendpoint.v1beta.Package_Manager" json:"manager,omitempty"`
}
func (x *Package) Reset() {
*x = Package{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_msgTypes[0]
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_agentendpoint_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 Package.ProtoReflect.Descriptor instead.
func (*Package) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{0}
}
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.agentendpoint.v1beta.AptRepository_ArchiveType" json:"archive_type,omitempty"`
// URI for this repository.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Distribution of this repository.
Distribution string `protobuf:"bytes,3,opt,name=distribution,proto3" json:"distribution,omitempty"`
// 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_agentendpoint_v1beta_guest_policies_proto_msgTypes[1]
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_agentendpoint_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 AptRepository.ProtoReflect.Descriptor instead.
func (*AptRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{1}
}
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
// 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"`
// 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_agentendpoint_v1beta_guest_policies_proto_msgTypes[2]
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_agentendpoint_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 YumRepository.ProtoReflect.Descriptor instead.
func (*YumRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{2}
}
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
// 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"`
// 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_agentendpoint_v1beta_guest_policies_proto_msgTypes[3]
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_agentendpoint_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 ZypperRepository.ProtoReflect.Descriptor instead.
func (*ZypperRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{3}
}
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
// The name of the repository.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 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_agentendpoint_v1beta_guest_policies_proto_msgTypes[4]
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_agentendpoint_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 GooRepository.ProtoReflect.Descriptor instead.
func (*GooRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{4}
}
func (x *GooRepository) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GooRepository) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
// A package repository.
type PackageRepository struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A specific type of repository.
//
// Types that are assignable to Repository:
// *PackageRepository_Apt
// *PackageRepository_Yum
// *PackageRepository_Zypper
// *PackageRepository_Goo
Repository isPackageRepository_Repository `protobuf_oneof:"repository"`
}
func (x *PackageRepository) Reset() {
*x = PackageRepository{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PackageRepository) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PackageRepository) ProtoMessage() {}
func (x *PackageRepository) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_agentendpoint_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 PackageRepository.ProtoReflect.Descriptor instead.
func (*PackageRepository) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{5}
}
func (m *PackageRepository) GetRepository() isPackageRepository_Repository {
if m != nil {
return m.Repository
}
return nil
}
func (x *PackageRepository) GetApt() *AptRepository {
if x, ok := x.GetRepository().(*PackageRepository_Apt); ok {
return x.Apt
}
return nil
}
func (x *PackageRepository) GetYum() *YumRepository {
if x, ok := x.GetRepository().(*PackageRepository_Yum); ok {
return x.Yum
}
return nil
}
func (x *PackageRepository) GetZypper() *ZypperRepository {
if x, ok := x.GetRepository().(*PackageRepository_Zypper); ok {
return x.Zypper
}
return nil
}
func (x *PackageRepository) GetGoo() *GooRepository {
if x, ok := x.GetRepository().(*PackageRepository_Goo); ok {
return x.Goo
}
return nil
}
type isPackageRepository_Repository interface {
isPackageRepository_Repository()
}
type PackageRepository_Apt struct {
// An Apt Repository.
Apt *AptRepository `protobuf:"bytes,1,opt,name=apt,proto3,oneof"`
}
type PackageRepository_Yum struct {
// A Yum Repository.
Yum *YumRepository `protobuf:"bytes,2,opt,name=yum,proto3,oneof"`
}
type PackageRepository_Zypper struct {
// A Zypper Repository.
Zypper *ZypperRepository `protobuf:"bytes,3,opt,name=zypper,proto3,oneof"`
}
type PackageRepository_Goo struct {
// A Goo Repository.
Goo *GooRepository `protobuf:"bytes,4,opt,name=goo,proto3,oneof"`
}
func (*PackageRepository_Apt) isPackageRepository_Repository() {}
func (*PackageRepository_Yum) isPackageRepository_Repository() {}
func (*PackageRepository_Zypper) isPackageRepository_Repository() {}
func (*PackageRepository_Goo) isPackageRepository_Repository() {}
// A software recipe is a set of instructions for installing and configuring a
// piece of software. It consists of a set of artifacts that are
// downloaded, and a set of steps that install, configure, and/or update the
// software.
//
// Recipes support installing and updating software from artifacts in the
// following formats:
// Zip archive, Tar archive, Windows MSI, Debian package, and RPM package.
//
// Additionally, recipes support executing a script (either defined in a file or
// directly in this api) in bash, sh, cmd, and powershell.
//
// Updating a software recipe
//
// If a recipe is assigned to an instance and there is a recipe with the same
// name but a lower version already installed and the assigned state
// of the recipe is `INSTALLED_KEEP_UPDATED`, then the recipe is updated to
// the new version.
//
// Script Working Directories
//
// Each script or execution step is run in its own temporary directory which
// is deleted after completing the step.
type SoftwareRecipe struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Unique identifier for the recipe. Only one recipe with a given name is
// installed on an instance.
//
// Names are also used to identify resources which helps to determine whether
// guest policies have conflicts. This means that requests to create multiple
// recipes with the same name and version are rejected since they
// could potentially have conflicting assignments.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The version of this software recipe. Version can be up to 4 period
// separated numbers (e.g. 12.34.56.78).
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Resources available to be used in the steps in the recipe.
Artifacts []*SoftwareRecipe_Artifact `protobuf:"bytes,3,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
// Actions to be taken for installing this recipe. On failure it stops
// executing steps and does not attempt another installation. Any steps taken
// (including partially completed steps) are not rolled back. Install steps
// must be specified and are used on first installation.
InstallSteps []*SoftwareRecipe_Step `protobuf:"bytes,4,rep,name=install_steps,json=installSteps,proto3" json:"install_steps,omitempty"`
// Actions to be taken for updating this recipe. On failure it stops
// executing steps and does not attempt another update for this recipe. Any
// steps taken (including partially completed steps) are not rolled back.
// Upgrade steps are not mandatory and are only used when upgrading.
UpdateSteps []*SoftwareRecipe_Step `protobuf:"bytes,5,rep,name=update_steps,json=updateSteps,proto3" json:"update_steps,omitempty"`
// Default is INSTALLED. The desired state the agent should maintain for this
// recipe.
//
// INSTALLED: The software recipe is installed on the instance but won't be
// updated to new versions.
// UPDATED: The software recipe is installed on the instance. The recipe is
// updated to a higher version, if a higher version of
// the recipe is assigned to this instance.
// REMOVE: Remove is unsupported for software recipes and attempts to
// create or update a recipe to the REMOVE state is rejected.
DesiredState DesiredState `protobuf:"varint,6,opt,name=desired_state,json=desiredState,proto3,enum=google.cloud.osconfig.agentendpoint.v1beta.DesiredState" json:"desired_state,omitempty"`
}
func (x *SoftwareRecipe) Reset() {
*x = SoftwareRecipe{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SoftwareRecipe) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SoftwareRecipe) ProtoMessage() {}
func (x *SoftwareRecipe) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_agentendpoint_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 SoftwareRecipe.ProtoReflect.Descriptor instead.
func (*SoftwareRecipe) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_agentendpoint_v1beta_guest_policies_proto_rawDescGZIP(), []int{6}
}
func (x *SoftwareRecipe) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SoftwareRecipe) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *SoftwareRecipe) GetArtifacts() []*SoftwareRecipe_Artifact {
if x != nil {
return x.Artifacts
}
return nil
}
func (x *SoftwareRecipe) GetInstallSteps() []*SoftwareRecipe_Step {
if x != nil {
return x.InstallSteps
}
return nil
}
func (x *SoftwareRecipe) GetUpdateSteps() []*SoftwareRecipe_Step {
if x != nil {
return x.UpdateSteps
}
return nil
}
func (x *SoftwareRecipe) GetDesiredState() DesiredState {
if x != nil {
return x.DesiredState
}
return DesiredState_DESIRED_STATE_UNSPECIFIED
}
// A request message for getting effective policy assigned to the instance.