/
patch_jobs.pb.go
executable file
·3367 lines (3029 loc) · 140 KB
/
patch_jobs.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/v1/patch_jobs.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"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// Enumeration of the various states a patch job passes through as it
// executes.
type PatchJob_State int32
const (
// State must be specified.
PatchJob_STATE_UNSPECIFIED PatchJob_State = 0
// The patch job was successfully initiated.
PatchJob_STARTED PatchJob_State = 1
// The patch job is looking up instances to run the patch on.
PatchJob_INSTANCE_LOOKUP PatchJob_State = 2
// Instances are being patched.
PatchJob_PATCHING PatchJob_State = 3
// Patch job completed successfully.
PatchJob_SUCCEEDED PatchJob_State = 4
// Patch job completed but there were errors.
PatchJob_COMPLETED_WITH_ERRORS PatchJob_State = 5
// The patch job was canceled.
PatchJob_CANCELED PatchJob_State = 6
// The patch job timed out.
PatchJob_TIMED_OUT PatchJob_State = 7
)
// Enum value maps for PatchJob_State.
var (
PatchJob_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "STARTED",
2: "INSTANCE_LOOKUP",
3: "PATCHING",
4: "SUCCEEDED",
5: "COMPLETED_WITH_ERRORS",
6: "CANCELED",
7: "TIMED_OUT",
}
PatchJob_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"STARTED": 1,
"INSTANCE_LOOKUP": 2,
"PATCHING": 3,
"SUCCEEDED": 4,
"COMPLETED_WITH_ERRORS": 5,
"CANCELED": 6,
"TIMED_OUT": 7,
}
)
func (x PatchJob_State) Enum() *PatchJob_State {
p := new(PatchJob_State)
*p = x
return p
}
func (x PatchJob_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PatchJob_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[0].Descriptor()
}
func (PatchJob_State) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[0]
}
func (x PatchJob_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PatchJob_State.Descriptor instead.
func (PatchJob_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{7, 0}
}
// Post-patch reboot settings.
type PatchConfig_RebootConfig int32
const (
// The default behavior is DEFAULT.
PatchConfig_REBOOT_CONFIG_UNSPECIFIED PatchConfig_RebootConfig = 0
// The agent decides if a reboot is necessary by checking signals such as
// registry keys on Windows or `/var/run/reboot-required` on APT based
// systems. On RPM based systems, a set of core system package install times
// are compared with system boot time.
PatchConfig_DEFAULT PatchConfig_RebootConfig = 1
// Always reboot the machine after the update completes.
PatchConfig_ALWAYS PatchConfig_RebootConfig = 2
// Never reboot the machine after the update completes.
PatchConfig_NEVER PatchConfig_RebootConfig = 3
)
// Enum value maps for PatchConfig_RebootConfig.
var (
PatchConfig_RebootConfig_name = map[int32]string{
0: "REBOOT_CONFIG_UNSPECIFIED",
1: "DEFAULT",
2: "ALWAYS",
3: "NEVER",
}
PatchConfig_RebootConfig_value = map[string]int32{
"REBOOT_CONFIG_UNSPECIFIED": 0,
"DEFAULT": 1,
"ALWAYS": 2,
"NEVER": 3,
}
)
func (x PatchConfig_RebootConfig) Enum() *PatchConfig_RebootConfig {
p := new(PatchConfig_RebootConfig)
*p = x
return p
}
func (x PatchConfig_RebootConfig) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PatchConfig_RebootConfig) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[1].Descriptor()
}
func (PatchConfig_RebootConfig) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[1]
}
func (x PatchConfig_RebootConfig) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PatchConfig_RebootConfig.Descriptor instead.
func (PatchConfig_RebootConfig) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{8, 0}
}
// Patch state of an instance.
type Instance_PatchState int32
const (
// Unspecified.
Instance_PATCH_STATE_UNSPECIFIED Instance_PatchState = 0
// The instance is not yet notified.
Instance_PENDING Instance_PatchState = 1
// Instance is inactive and cannot be patched.
Instance_INACTIVE Instance_PatchState = 2
// The instance is notified that it should be patched.
Instance_NOTIFIED Instance_PatchState = 3
// The instance has started the patching process.
Instance_STARTED Instance_PatchState = 4
// The instance is downloading patches.
Instance_DOWNLOADING_PATCHES Instance_PatchState = 5
// The instance is applying patches.
Instance_APPLYING_PATCHES Instance_PatchState = 6
// The instance is rebooting.
Instance_REBOOTING Instance_PatchState = 7
// The instance has completed applying patches.
Instance_SUCCEEDED Instance_PatchState = 8
// The instance has completed applying patches but a reboot is required.
Instance_SUCCEEDED_REBOOT_REQUIRED Instance_PatchState = 9
// The instance has failed to apply the patch.
Instance_FAILED Instance_PatchState = 10
// The instance acked the notification and will start shortly.
Instance_ACKED Instance_PatchState = 11
// The instance exceeded the time out while applying the patch.
Instance_TIMED_OUT Instance_PatchState = 12
// The instance is running the pre-patch step.
Instance_RUNNING_PRE_PATCH_STEP Instance_PatchState = 13
// The instance is running the post-patch step.
Instance_RUNNING_POST_PATCH_STEP Instance_PatchState = 14
// The service could not detect the presence of the agent. Check to ensure
// that the agent is installed, running, and able to communicate with the
// service.
Instance_NO_AGENT_DETECTED Instance_PatchState = 15
)
// Enum value maps for Instance_PatchState.
var (
Instance_PatchState_name = map[int32]string{
0: "PATCH_STATE_UNSPECIFIED",
1: "PENDING",
2: "INACTIVE",
3: "NOTIFIED",
4: "STARTED",
5: "DOWNLOADING_PATCHES",
6: "APPLYING_PATCHES",
7: "REBOOTING",
8: "SUCCEEDED",
9: "SUCCEEDED_REBOOT_REQUIRED",
10: "FAILED",
11: "ACKED",
12: "TIMED_OUT",
13: "RUNNING_PRE_PATCH_STEP",
14: "RUNNING_POST_PATCH_STEP",
15: "NO_AGENT_DETECTED",
}
Instance_PatchState_value = map[string]int32{
"PATCH_STATE_UNSPECIFIED": 0,
"PENDING": 1,
"INACTIVE": 2,
"NOTIFIED": 3,
"STARTED": 4,
"DOWNLOADING_PATCHES": 5,
"APPLYING_PATCHES": 6,
"REBOOTING": 7,
"SUCCEEDED": 8,
"SUCCEEDED_REBOOT_REQUIRED": 9,
"FAILED": 10,
"ACKED": 11,
"TIMED_OUT": 12,
"RUNNING_PRE_PATCH_STEP": 13,
"RUNNING_POST_PATCH_STEP": 14,
"NO_AGENT_DETECTED": 15,
}
)
func (x Instance_PatchState) Enum() *Instance_PatchState {
p := new(Instance_PatchState)
*p = x
return p
}
func (x Instance_PatchState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_PatchState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[2].Descriptor()
}
func (Instance_PatchState) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[2]
}
func (x Instance_PatchState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_PatchState.Descriptor instead.
func (Instance_PatchState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{9, 0}
}
// Apt patch type.
type AptSettings_Type int32
const (
// By default, upgrade will be performed.
AptSettings_TYPE_UNSPECIFIED AptSettings_Type = 0
// Runs `apt-get dist-upgrade`.
AptSettings_DIST AptSettings_Type = 1
// Runs `apt-get upgrade`.
AptSettings_UPGRADE AptSettings_Type = 2
)
// Enum value maps for AptSettings_Type.
var (
AptSettings_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "DIST",
2: "UPGRADE",
}
AptSettings_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"DIST": 1,
"UPGRADE": 2,
}
)
func (x AptSettings_Type) Enum() *AptSettings_Type {
p := new(AptSettings_Type)
*p = x
return p
}
func (x AptSettings_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AptSettings_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[3].Descriptor()
}
func (AptSettings_Type) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[3]
}
func (x AptSettings_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AptSettings_Type.Descriptor instead.
func (AptSettings_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{11, 0}
}
// Microsoft Windows update classifications as defined in
// [1]
// https://support.microsoft.com/en-us/help/824684/description-of-the-standard-terminology-that-is-used-to-describe-micro
type WindowsUpdateSettings_Classification int32
const (
// Invalid. If classifications are included, they must be specified.
WindowsUpdateSettings_CLASSIFICATION_UNSPECIFIED WindowsUpdateSettings_Classification = 0
// "A widely released fix for a specific problem that addresses a critical,
// non-security-related bug." [1]
WindowsUpdateSettings_CRITICAL WindowsUpdateSettings_Classification = 1
// "A widely released fix for a product-specific, security-related
// vulnerability. Security vulnerabilities are rated by their severity. The
// severity rating is indicated in the Microsoft security bulletin as
// critical, important, moderate, or low." [1]
WindowsUpdateSettings_SECURITY WindowsUpdateSettings_Classification = 2
// "A widely released and frequent software update that contains additions
// to a product's definition database. Definition databases are often used
// to detect objects that have specific attributes, such as malicious code,
// phishing websites, or junk mail." [1]
WindowsUpdateSettings_DEFINITION WindowsUpdateSettings_Classification = 3
// "Software that controls the input and output of a device." [1]
WindowsUpdateSettings_DRIVER WindowsUpdateSettings_Classification = 4
// "New product functionality that is first distributed outside the context
// of a product release and that is typically included in the next full
// product release." [1]
WindowsUpdateSettings_FEATURE_PACK WindowsUpdateSettings_Classification = 5
// "A tested, cumulative set of all hotfixes, security updates, critical
// updates, and updates. Additionally, service packs may contain additional
// fixes for problems that are found internally since the release of the
// product. Service packs my also contain a limited number of
// customer-requested design changes or features." [1]
WindowsUpdateSettings_SERVICE_PACK WindowsUpdateSettings_Classification = 6
// "A utility or feature that helps complete a task or set of tasks." [1]
WindowsUpdateSettings_TOOL WindowsUpdateSettings_Classification = 7
// "A tested, cumulative set of hotfixes, security updates, critical
// updates, and updates that are packaged together for easy deployment. A
// rollup generally targets a specific area, such as security, or a
// component of a product, such as Internet Information Services (IIS)." [1]
WindowsUpdateSettings_UPDATE_ROLLUP WindowsUpdateSettings_Classification = 8
// "A widely released fix for a specific problem. An update addresses a
// noncritical, non-security-related bug." [1]
WindowsUpdateSettings_UPDATE WindowsUpdateSettings_Classification = 9
)
// Enum value maps for WindowsUpdateSettings_Classification.
var (
WindowsUpdateSettings_Classification_name = map[int32]string{
0: "CLASSIFICATION_UNSPECIFIED",
1: "CRITICAL",
2: "SECURITY",
3: "DEFINITION",
4: "DRIVER",
5: "FEATURE_PACK",
6: "SERVICE_PACK",
7: "TOOL",
8: "UPDATE_ROLLUP",
9: "UPDATE",
}
WindowsUpdateSettings_Classification_value = map[string]int32{
"CLASSIFICATION_UNSPECIFIED": 0,
"CRITICAL": 1,
"SECURITY": 2,
"DEFINITION": 3,
"DRIVER": 4,
"FEATURE_PACK": 5,
"SERVICE_PACK": 6,
"TOOL": 7,
"UPDATE_ROLLUP": 8,
"UPDATE": 9,
}
)
func (x WindowsUpdateSettings_Classification) Enum() *WindowsUpdateSettings_Classification {
p := new(WindowsUpdateSettings_Classification)
*p = x
return p
}
func (x WindowsUpdateSettings_Classification) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WindowsUpdateSettings_Classification) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[4].Descriptor()
}
func (WindowsUpdateSettings_Classification) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[4]
}
func (x WindowsUpdateSettings_Classification) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WindowsUpdateSettings_Classification.Descriptor instead.
func (WindowsUpdateSettings_Classification) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{15, 0}
}
// The interpreter used to execute the a file.
type ExecStepConfig_Interpreter int32
const (
// Invalid for a Windows ExecStepConfig. For a Linux ExecStepConfig, the
// interpreter will be parsed from the shebang line of the script if
// unspecified.
ExecStepConfig_INTERPRETER_UNSPECIFIED ExecStepConfig_Interpreter = 0
// Indicates that the script is run with `/bin/sh` on Linux and `cmd`
// on Windows.
ExecStepConfig_SHELL ExecStepConfig_Interpreter = 1
// Indicates that the file is run with PowerShell flags
// `-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`.
ExecStepConfig_POWERSHELL ExecStepConfig_Interpreter = 2
)
// Enum value maps for ExecStepConfig_Interpreter.
var (
ExecStepConfig_Interpreter_name = map[int32]string{
0: "INTERPRETER_UNSPECIFIED",
1: "SHELL",
2: "POWERSHELL",
}
ExecStepConfig_Interpreter_value = map[string]int32{
"INTERPRETER_UNSPECIFIED": 0,
"SHELL": 1,
"POWERSHELL": 2,
}
)
func (x ExecStepConfig_Interpreter) Enum() *ExecStepConfig_Interpreter {
p := new(ExecStepConfig_Interpreter)
*p = x
return p
}
func (x ExecStepConfig_Interpreter) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecStepConfig_Interpreter) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[5].Descriptor()
}
func (ExecStepConfig_Interpreter) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[5]
}
func (x ExecStepConfig_Interpreter) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecStepConfig_Interpreter.Descriptor instead.
func (ExecStepConfig_Interpreter) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{17, 0}
}
// Type of the rollout.
type PatchRollout_Mode int32
const (
// Mode must be specified.
PatchRollout_MODE_UNSPECIFIED PatchRollout_Mode = 0
// Patches are applied one zone at a time. The patch job begins in the
// region with the lowest number of targeted VMs. Within the region,
// patching begins in the zone with the lowest number of targeted VMs. If
// multiple regions (or zones within a region) have the same number of
// targeted VMs, a tie-breaker is achieved by sorting the regions or zones
// in alphabetical order.
PatchRollout_ZONE_BY_ZONE PatchRollout_Mode = 1
// Patches are applied to VMs in all zones at the same time.
PatchRollout_CONCURRENT_ZONES PatchRollout_Mode = 2
)
// Enum value maps for PatchRollout_Mode.
var (
PatchRollout_Mode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
1: "ZONE_BY_ZONE",
2: "CONCURRENT_ZONES",
}
PatchRollout_Mode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"ZONE_BY_ZONE": 1,
"CONCURRENT_ZONES": 2,
}
)
func (x PatchRollout_Mode) Enum() *PatchRollout_Mode {
p := new(PatchRollout_Mode)
*p = x
return p
}
func (x PatchRollout_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PatchRollout_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[6].Descriptor()
}
func (PatchRollout_Mode) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1_patch_jobs_proto_enumTypes[6]
}
func (x PatchRollout_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PatchRollout_Mode.Descriptor instead.
func (PatchRollout_Mode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{20, 0}
}
// A request message to initiate patching across Compute Engine
// instances.
type ExecutePatchJobRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The project in which to run this patch in the form `projects/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Description of the patch job. Length of the description is limited
// to 1024 characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Required. Instances to patch, either explicitly or filtered by some
// criteria such as zone or labels.
InstanceFilter *PatchInstanceFilter `protobuf:"bytes,7,opt,name=instance_filter,json=instanceFilter,proto3" json:"instance_filter,omitempty"`
// Patch configuration being applied. If omitted, instances are
// patched using the default configurations.
PatchConfig *PatchConfig `protobuf:"bytes,4,opt,name=patch_config,json=patchConfig,proto3" json:"patch_config,omitempty"`
// Duration of the patch job. After the duration ends, the patch job
// times out.
Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"`
// If this patch is a dry-run only, instances are contacted but
// will do nothing.
DryRun bool `protobuf:"varint,6,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// Display name for this patch job. This does not have to be unique.
DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Rollout strategy of the patch job.
Rollout *PatchRollout `protobuf:"bytes,9,opt,name=rollout,proto3" json:"rollout,omitempty"`
}
func (x *ExecutePatchJobRequest) Reset() {
*x = ExecutePatchJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1_patch_jobs_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecutePatchJobRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecutePatchJobRequest) ProtoMessage() {}
func (x *ExecutePatchJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1_patch_jobs_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 ExecutePatchJobRequest.ProtoReflect.Descriptor instead.
func (*ExecutePatchJobRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{0}
}
func (x *ExecutePatchJobRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ExecutePatchJobRequest) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *ExecutePatchJobRequest) GetInstanceFilter() *PatchInstanceFilter {
if x != nil {
return x.InstanceFilter
}
return nil
}
func (x *ExecutePatchJobRequest) GetPatchConfig() *PatchConfig {
if x != nil {
return x.PatchConfig
}
return nil
}
func (x *ExecutePatchJobRequest) GetDuration() *durationpb.Duration {
if x != nil {
return x.Duration
}
return nil
}
func (x *ExecutePatchJobRequest) GetDryRun() bool {
if x != nil {
return x.DryRun
}
return false
}
func (x *ExecutePatchJobRequest) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *ExecutePatchJobRequest) GetRollout() *PatchRollout {
if x != nil {
return x.Rollout
}
return nil
}
// Request to get an active or completed patch job.
type GetPatchJobRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Name of the patch in the form `projects/*/patchJobs/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetPatchJobRequest) Reset() {
*x = GetPatchJobRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1_patch_jobs_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPatchJobRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPatchJobRequest) ProtoMessage() {}
func (x *GetPatchJobRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1_patch_jobs_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 GetPatchJobRequest.ProtoReflect.Descriptor instead.
func (*GetPatchJobRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{1}
}
func (x *GetPatchJobRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request to list details for all instances that are part of a patch job.
type ListPatchJobInstanceDetailsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The parent for the instances are in the form of
// `projects/*/patchJobs/*`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of instance details records to return. Default is 100.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A pagination token returned from a previous call
// that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A filter expression that filters results listed in the response. This
// field supports filtering results by instance zone, name, state, or
// `failure_reason`.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (x *ListPatchJobInstanceDetailsRequest) Reset() {
*x = ListPatchJobInstanceDetailsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1_patch_jobs_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListPatchJobInstanceDetailsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPatchJobInstanceDetailsRequest) ProtoMessage() {}
func (x *ListPatchJobInstanceDetailsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1_patch_jobs_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 ListPatchJobInstanceDetailsRequest.ProtoReflect.Descriptor instead.
func (*ListPatchJobInstanceDetailsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{2}
}
func (x *ListPatchJobInstanceDetailsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListPatchJobInstanceDetailsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListPatchJobInstanceDetailsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListPatchJobInstanceDetailsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
// A response message for listing the instances details for a patch job.
type ListPatchJobInstanceDetailsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A list of instance status.
PatchJobInstanceDetails []*PatchJobInstanceDetails `protobuf:"bytes,1,rep,name=patch_job_instance_details,json=patchJobInstanceDetails,proto3" json:"patch_job_instance_details,omitempty"`
// A pagination token that can be used to get the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListPatchJobInstanceDetailsResponse) Reset() {
*x = ListPatchJobInstanceDetailsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1_patch_jobs_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListPatchJobInstanceDetailsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPatchJobInstanceDetailsResponse) ProtoMessage() {}
func (x *ListPatchJobInstanceDetailsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1_patch_jobs_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 ListPatchJobInstanceDetailsResponse.ProtoReflect.Descriptor instead.
func (*ListPatchJobInstanceDetailsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{3}
}
func (x *ListPatchJobInstanceDetailsResponse) GetPatchJobInstanceDetails() []*PatchJobInstanceDetails {
if x != nil {
return x.PatchJobInstanceDetails
}
return nil
}
func (x *ListPatchJobInstanceDetailsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Patch details for a VM instance. For more information about reviewing VM
// instance details, see
// [Listing all VM instance details for a specific patch
// job](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-details).
type PatchJobInstanceDetails struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The instance name in the form `projects/*/zones/*/instances/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The unique identifier for the instance. This identifier is
// defined by the server.
InstanceSystemId string `protobuf:"bytes,2,opt,name=instance_system_id,json=instanceSystemId,proto3" json:"instance_system_id,omitempty"`
// Current state of instance patch.
State Instance_PatchState `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.osconfig.v1.Instance_PatchState" json:"state,omitempty"`
// If the patch fails, this field provides the reason.
FailureReason string `protobuf:"bytes,4,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
// The number of times the agent that the agent attempts to apply the patch.
AttemptCount int64 `protobuf:"varint,5,opt,name=attempt_count,json=attemptCount,proto3" json:"attempt_count,omitempty"`
}
func (x *PatchJobInstanceDetails) Reset() {
*x = PatchJobInstanceDetails{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1_patch_jobs_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PatchJobInstanceDetails) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PatchJobInstanceDetails) ProtoMessage() {}
func (x *PatchJobInstanceDetails) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1_patch_jobs_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 PatchJobInstanceDetails.ProtoReflect.Descriptor instead.
func (*PatchJobInstanceDetails) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{4}
}
func (x *PatchJobInstanceDetails) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PatchJobInstanceDetails) GetInstanceSystemId() string {
if x != nil {
return x.InstanceSystemId
}
return ""
}
func (x *PatchJobInstanceDetails) GetState() Instance_PatchState {
if x != nil {
return x.State
}
return Instance_PATCH_STATE_UNSPECIFIED
}
func (x *PatchJobInstanceDetails) GetFailureReason() string {
if x != nil {
return x.FailureReason
}
return ""
}
func (x *PatchJobInstanceDetails) GetAttemptCount() int64 {
if x != nil {
return x.AttemptCount
}
return 0
}
// A request message for listing patch jobs.
type ListPatchJobsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. In the form of `projects/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of instance status to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A pagination token returned from a previous call
// that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// If provided, this field specifies the criteria that must be met by patch
// jobs to be included in the response.
// Currently, filtering is only available on the patch_deployment field.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (x *ListPatchJobsRequest) Reset() {
*x = ListPatchJobsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1_patch_jobs_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListPatchJobsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListPatchJobsRequest) ProtoMessage() {}
func (x *ListPatchJobsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1_patch_jobs_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 ListPatchJobsRequest.ProtoReflect.Descriptor instead.
func (*ListPatchJobsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1_patch_jobs_proto_rawDescGZIP(), []int{5}
}
func (x *ListPatchJobsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}