google-cloud-os_config-v1 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/os_config/v1/os_config_service/client.rb +18 -22
- data/lib/google/cloud/os_config/v1/os_config_service/rest/client.rb +1183 -0
- data/lib/google/cloud/os_config/v1/os_config_service/rest/service_stub.rb +762 -0
- data/lib/google/cloud/os_config/v1/os_config_service/rest.rb +55 -0
- data/lib/google/cloud/os_config/v1/os_config_service.rb +7 -1
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +38 -46
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +17 -17
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/client.rb +1284 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/operations.rb +795 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/service_stub.rb +758 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest.rb +56 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service.rb +7 -1
- data/lib/google/cloud/os_config/v1/rest.rb +38 -0
- data/lib/google/cloud/os_config/v1/version.rb +1 -1
- data/lib/google/cloud/os_config/v1.rb +7 -2
- data/lib/google/cloud/osconfig/v1/inventory_pb.rb +26 -109
- data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +25 -61
- data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +29 -93
- data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +24 -158
- data/lib/google/cloud/osconfig/v1/osconfig_common_pb.rb +24 -7
- data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +25 -2
- data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -2
- data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +30 -88
- data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +27 -209
- data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +25 -92
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +19 -8
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/osconfig/v1/patch_jobs.proto
|
3
4
|
|
@@ -9,217 +10,34 @@ require 'google/cloud/osconfig/v1/osconfig_common_pb'
|
|
9
10
|
require 'google/protobuf/duration_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
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
|
-
end
|
37
|
-
add_message "google.cloud.osconfig.v1.PatchJobInstanceDetails" do
|
38
|
-
optional :name, :string, 1
|
39
|
-
optional :instance_system_id, :string, 2
|
40
|
-
optional :state, :enum, 3, "google.cloud.osconfig.v1.Instance.PatchState"
|
41
|
-
optional :failure_reason, :string, 4
|
42
|
-
optional :attempt_count, :int64, 5
|
43
|
-
end
|
44
|
-
add_message "google.cloud.osconfig.v1.ListPatchJobsRequest" do
|
45
|
-
optional :parent, :string, 1
|
46
|
-
optional :page_size, :int32, 2
|
47
|
-
optional :page_token, :string, 3
|
48
|
-
optional :filter, :string, 4
|
49
|
-
end
|
50
|
-
add_message "google.cloud.osconfig.v1.ListPatchJobsResponse" do
|
51
|
-
repeated :patch_jobs, :message, 1, "google.cloud.osconfig.v1.PatchJob"
|
52
|
-
optional :next_page_token, :string, 2
|
53
|
-
end
|
54
|
-
add_message "google.cloud.osconfig.v1.PatchJob" do
|
55
|
-
optional :name, :string, 1
|
56
|
-
optional :display_name, :string, 14
|
57
|
-
optional :description, :string, 2
|
58
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
59
|
-
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
60
|
-
optional :state, :enum, 5, "google.cloud.osconfig.v1.PatchJob.State"
|
61
|
-
optional :instance_filter, :message, 13, "google.cloud.osconfig.v1.PatchInstanceFilter"
|
62
|
-
optional :patch_config, :message, 7, "google.cloud.osconfig.v1.PatchConfig"
|
63
|
-
optional :duration, :message, 8, "google.protobuf.Duration"
|
64
|
-
optional :instance_details_summary, :message, 9, "google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary"
|
65
|
-
optional :dry_run, :bool, 10
|
66
|
-
optional :error_message, :string, 11
|
67
|
-
optional :percent_complete, :double, 12
|
68
|
-
optional :patch_deployment, :string, 15
|
69
|
-
optional :rollout, :message, 16, "google.cloud.osconfig.v1.PatchRollout"
|
70
|
-
end
|
71
|
-
add_message "google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary" do
|
72
|
-
optional :pending_instance_count, :int64, 1
|
73
|
-
optional :inactive_instance_count, :int64, 2
|
74
|
-
optional :notified_instance_count, :int64, 3
|
75
|
-
optional :started_instance_count, :int64, 4
|
76
|
-
optional :downloading_patches_instance_count, :int64, 5
|
77
|
-
optional :applying_patches_instance_count, :int64, 6
|
78
|
-
optional :rebooting_instance_count, :int64, 7
|
79
|
-
optional :succeeded_instance_count, :int64, 8
|
80
|
-
optional :succeeded_reboot_required_instance_count, :int64, 9
|
81
|
-
optional :failed_instance_count, :int64, 10
|
82
|
-
optional :acked_instance_count, :int64, 11
|
83
|
-
optional :timed_out_instance_count, :int64, 12
|
84
|
-
optional :pre_patch_step_instance_count, :int64, 13
|
85
|
-
optional :post_patch_step_instance_count, :int64, 14
|
86
|
-
optional :no_agent_detected_instance_count, :int64, 15
|
87
|
-
end
|
88
|
-
add_enum "google.cloud.osconfig.v1.PatchJob.State" do
|
89
|
-
value :STATE_UNSPECIFIED, 0
|
90
|
-
value :STARTED, 1
|
91
|
-
value :INSTANCE_LOOKUP, 2
|
92
|
-
value :PATCHING, 3
|
93
|
-
value :SUCCEEDED, 4
|
94
|
-
value :COMPLETED_WITH_ERRORS, 5
|
95
|
-
value :CANCELED, 6
|
96
|
-
value :TIMED_OUT, 7
|
97
|
-
end
|
98
|
-
add_message "google.cloud.osconfig.v1.PatchConfig" do
|
99
|
-
optional :reboot_config, :enum, 1, "google.cloud.osconfig.v1.PatchConfig.RebootConfig"
|
100
|
-
optional :apt, :message, 3, "google.cloud.osconfig.v1.AptSettings"
|
101
|
-
optional :yum, :message, 4, "google.cloud.osconfig.v1.YumSettings"
|
102
|
-
optional :goo, :message, 5, "google.cloud.osconfig.v1.GooSettings"
|
103
|
-
optional :zypper, :message, 6, "google.cloud.osconfig.v1.ZypperSettings"
|
104
|
-
optional :windows_update, :message, 7, "google.cloud.osconfig.v1.WindowsUpdateSettings"
|
105
|
-
optional :pre_step, :message, 8, "google.cloud.osconfig.v1.ExecStep"
|
106
|
-
optional :post_step, :message, 9, "google.cloud.osconfig.v1.ExecStep"
|
107
|
-
optional :mig_instances_allowed, :bool, 10
|
108
|
-
end
|
109
|
-
add_enum "google.cloud.osconfig.v1.PatchConfig.RebootConfig" do
|
110
|
-
value :REBOOT_CONFIG_UNSPECIFIED, 0
|
111
|
-
value :DEFAULT, 1
|
112
|
-
value :ALWAYS, 2
|
113
|
-
value :NEVER, 3
|
114
|
-
end
|
115
|
-
add_message "google.cloud.osconfig.v1.Instance" do
|
116
|
-
end
|
117
|
-
add_enum "google.cloud.osconfig.v1.Instance.PatchState" do
|
118
|
-
value :PATCH_STATE_UNSPECIFIED, 0
|
119
|
-
value :PENDING, 1
|
120
|
-
value :INACTIVE, 2
|
121
|
-
value :NOTIFIED, 3
|
122
|
-
value :STARTED, 4
|
123
|
-
value :DOWNLOADING_PATCHES, 5
|
124
|
-
value :APPLYING_PATCHES, 6
|
125
|
-
value :REBOOTING, 7
|
126
|
-
value :SUCCEEDED, 8
|
127
|
-
value :SUCCEEDED_REBOOT_REQUIRED, 9
|
128
|
-
value :FAILED, 10
|
129
|
-
value :ACKED, 11
|
130
|
-
value :TIMED_OUT, 12
|
131
|
-
value :RUNNING_PRE_PATCH_STEP, 13
|
132
|
-
value :RUNNING_POST_PATCH_STEP, 14
|
133
|
-
value :NO_AGENT_DETECTED, 15
|
134
|
-
end
|
135
|
-
add_message "google.cloud.osconfig.v1.CancelPatchJobRequest" do
|
136
|
-
optional :name, :string, 1
|
137
|
-
end
|
138
|
-
add_message "google.cloud.osconfig.v1.AptSettings" do
|
139
|
-
optional :type, :enum, 1, "google.cloud.osconfig.v1.AptSettings.Type"
|
140
|
-
repeated :excludes, :string, 2
|
141
|
-
repeated :exclusive_packages, :string, 3
|
142
|
-
end
|
143
|
-
add_enum "google.cloud.osconfig.v1.AptSettings.Type" do
|
144
|
-
value :TYPE_UNSPECIFIED, 0
|
145
|
-
value :DIST, 1
|
146
|
-
value :UPGRADE, 2
|
147
|
-
end
|
148
|
-
add_message "google.cloud.osconfig.v1.YumSettings" do
|
149
|
-
optional :security, :bool, 1
|
150
|
-
optional :minimal, :bool, 2
|
151
|
-
repeated :excludes, :string, 3
|
152
|
-
repeated :exclusive_packages, :string, 4
|
153
|
-
end
|
154
|
-
add_message "google.cloud.osconfig.v1.GooSettings" do
|
155
|
-
end
|
156
|
-
add_message "google.cloud.osconfig.v1.ZypperSettings" do
|
157
|
-
optional :with_optional, :bool, 1
|
158
|
-
optional :with_update, :bool, 2
|
159
|
-
repeated :categories, :string, 3
|
160
|
-
repeated :severities, :string, 4
|
161
|
-
repeated :excludes, :string, 5
|
162
|
-
repeated :exclusive_patches, :string, 6
|
163
|
-
end
|
164
|
-
add_message "google.cloud.osconfig.v1.WindowsUpdateSettings" do
|
165
|
-
repeated :classifications, :enum, 1, "google.cloud.osconfig.v1.WindowsUpdateSettings.Classification"
|
166
|
-
repeated :excludes, :string, 2
|
167
|
-
repeated :exclusive_patches, :string, 3
|
168
|
-
end
|
169
|
-
add_enum "google.cloud.osconfig.v1.WindowsUpdateSettings.Classification" do
|
170
|
-
value :CLASSIFICATION_UNSPECIFIED, 0
|
171
|
-
value :CRITICAL, 1
|
172
|
-
value :SECURITY, 2
|
173
|
-
value :DEFINITION, 3
|
174
|
-
value :DRIVER, 4
|
175
|
-
value :FEATURE_PACK, 5
|
176
|
-
value :SERVICE_PACK, 6
|
177
|
-
value :TOOL, 7
|
178
|
-
value :UPDATE_ROLLUP, 8
|
179
|
-
value :UPDATE, 9
|
180
|
-
end
|
181
|
-
add_message "google.cloud.osconfig.v1.ExecStep" do
|
182
|
-
optional :linux_exec_step_config, :message, 1, "google.cloud.osconfig.v1.ExecStepConfig"
|
183
|
-
optional :windows_exec_step_config, :message, 2, "google.cloud.osconfig.v1.ExecStepConfig"
|
184
|
-
end
|
185
|
-
add_message "google.cloud.osconfig.v1.ExecStepConfig" do
|
186
|
-
repeated :allowed_success_codes, :int32, 3
|
187
|
-
optional :interpreter, :enum, 4, "google.cloud.osconfig.v1.ExecStepConfig.Interpreter"
|
188
|
-
oneof :executable do
|
189
|
-
optional :local_path, :string, 1
|
190
|
-
optional :gcs_object, :message, 2, "google.cloud.osconfig.v1.GcsObject"
|
191
|
-
end
|
192
|
-
end
|
193
|
-
add_enum "google.cloud.osconfig.v1.ExecStepConfig.Interpreter" do
|
194
|
-
value :INTERPRETER_UNSPECIFIED, 0
|
195
|
-
value :SHELL, 1
|
196
|
-
value :POWERSHELL, 2
|
197
|
-
end
|
198
|
-
add_message "google.cloud.osconfig.v1.GcsObject" do
|
199
|
-
optional :bucket, :string, 1
|
200
|
-
optional :object, :string, 2
|
201
|
-
optional :generation_number, :int64, 3
|
202
|
-
end
|
203
|
-
add_message "google.cloud.osconfig.v1.PatchInstanceFilter" do
|
204
|
-
optional :all, :bool, 1
|
205
|
-
repeated :group_labels, :message, 2, "google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel"
|
206
|
-
repeated :zones, :string, 3
|
207
|
-
repeated :instances, :string, 4
|
208
|
-
repeated :instance_name_prefixes, :string, 5
|
209
|
-
end
|
210
|
-
add_message "google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel" do
|
211
|
-
map :labels, :string, :string, 1
|
212
|
-
end
|
213
|
-
add_message "google.cloud.osconfig.v1.PatchRollout" do
|
214
|
-
optional :mode, :enum, 1, "google.cloud.osconfig.v1.PatchRollout.Mode"
|
215
|
-
optional :disruption_budget, :message, 2, "google.cloud.osconfig.v1.FixedOrPercent"
|
216
|
-
end
|
217
|
-
add_enum "google.cloud.osconfig.v1.PatchRollout.Mode" do
|
218
|
-
value :MODE_UNSPECIFIED, 0
|
219
|
-
value :ZONE_BY_ZONE, 1
|
220
|
-
value :CONCURRENT_ZONES, 2
|
13
|
+
|
14
|
+
descriptor_data = "\n)google/cloud/osconfig/v1/patch_jobs.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/osconfig/v1/osconfig_common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x89\x03\n\x16\x45xecutePatchJobRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12K\n\x0finstance_filter\x18\x07 \x01(\x0b\x32-.google.cloud.osconfig.v1.PatchInstanceFilterB\x03\xe0\x41\x02\x12;\n\x0cpatch_config\x18\x04 \x01(\x0b\x32%.google.cloud.osconfig.v1.PatchConfig\x12+\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x64ry_run\x18\x06 \x01(\x08\x12\x14\n\x0c\x64isplay_name\x18\x08 \x01(\t\x12\x37\n\x07rollout\x18\t \x01(\x0b\x32&.google.cloud.osconfig.v1.PatchRollout\"L\n\x12GetPatchJobRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n osconfig.googleapis.com/PatchJob\"\x95\x01\n\"ListPatchJobInstanceDetailsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n osconfig.googleapis.com/PatchJob\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x95\x01\n#ListPatchJobInstanceDetailsResponse\x12U\n\x1apatch_job_instance_details\x18\x01 \x03(\x0b\x32\x31.google.cloud.osconfig.v1.PatchJobInstanceDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd6\x01\n\x17PatchJobInstanceDetails\x12\x32\n\x04name\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12\x1a\n\x12instance_system_id\x18\x02 \x01(\t\x12<\n\x05state\x18\x03 \x01(\x0e\x32-.google.cloud.osconfig.v1.Instance.PatchState\x12\x16\n\x0e\x66\x61ilure_reason\x18\x04 \x01(\t\x12\x15\n\rattempt_count\x18\x05 \x01(\x03\"\x92\x01\n\x14ListPatchJobsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"h\n\x15ListPatchJobsResponse\x12\x36\n\npatch_jobs\x18\x01 \x03(\x0b\x32\".google.cloud.osconfig.v1.PatchJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdc\x0b\n\x08PatchJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x0e \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x05 \x01(\x0e\x32(.google.cloud.osconfig.v1.PatchJob.State\x12\x46\n\x0finstance_filter\x18\r \x01(\x0b\x32-.google.cloud.osconfig.v1.PatchInstanceFilter\x12;\n\x0cpatch_config\x18\x07 \x01(\x0b\x32%.google.cloud.osconfig.v1.PatchConfig\x12+\n\x08\x64uration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12[\n\x18instance_details_summary\x18\t \x01(\x0b\x32\x39.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary\x12\x0f\n\x07\x64ry_run\x18\n \x01(\x08\x12\x15\n\rerror_message\x18\x0b \x01(\t\x12\x18\n\x10percent_complete\x18\x0c \x01(\x01\x12I\n\x10patch_deployment\x18\x0f \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'osconfig.googleapis.com/PatchDeployment\x12\x37\n\x07rollout\x18\x10 \x01(\x0b\x32&.google.cloud.osconfig.v1.PatchRollout\x1a\xbd\x04\n\x16InstanceDetailsSummary\x12\x1e\n\x16pending_instance_count\x18\x01 \x01(\x03\x12\x1f\n\x17inactive_instance_count\x18\x02 \x01(\x03\x12\x1f\n\x17notified_instance_count\x18\x03 \x01(\x03\x12\x1e\n\x16started_instance_count\x18\x04 \x01(\x03\x12*\n\"downloading_patches_instance_count\x18\x05 \x01(\x03\x12\'\n\x1f\x61pplying_patches_instance_count\x18\x06 \x01(\x03\x12 \n\x18rebooting_instance_count\x18\x07 \x01(\x03\x12 \n\x18succeeded_instance_count\x18\x08 \x01(\x03\x12\x30\n(succeeded_reboot_required_instance_count\x18\t \x01(\x03\x12\x1d\n\x15\x66\x61iled_instance_count\x18\n \x01(\x03\x12\x1c\n\x14\x61\x63ked_instance_count\x18\x0b \x01(\x03\x12 \n\x18timed_out_instance_count\x18\x0c \x01(\x03\x12%\n\x1dpre_patch_step_instance_count\x18\r \x01(\x03\x12&\n\x1epost_patch_step_instance_count\x18\x0e \x01(\x03\x12(\n no_agent_detected_instance_count\x18\x0f \x01(\x03\"\x95\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07STARTED\x10\x01\x12\x13\n\x0fINSTANCE_LOOKUP\x10\x02\x12\x0c\n\x08PATCHING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x19\n\x15\x43OMPLETED_WITH_ERRORS\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x12\r\n\tTIMED_OUT\x10\x07:O\xea\x41L\n osconfig.googleapis.com/PatchJob\x12(projects/{project}/patchJobs/{patch_job}\"\xd6\x04\n\x0bPatchConfig\x12I\n\rreboot_config\x18\x01 \x01(\x0e\x32\x32.google.cloud.osconfig.v1.PatchConfig.RebootConfig\x12\x32\n\x03\x61pt\x18\x03 \x01(\x0b\x32%.google.cloud.osconfig.v1.AptSettings\x12\x32\n\x03yum\x18\x04 \x01(\x0b\x32%.google.cloud.osconfig.v1.YumSettings\x12\x32\n\x03goo\x18\x05 \x01(\x0b\x32%.google.cloud.osconfig.v1.GooSettings\x12\x38\n\x06zypper\x18\x06 \x01(\x0b\x32(.google.cloud.osconfig.v1.ZypperSettings\x12G\n\x0ewindows_update\x18\x07 \x01(\x0b\x32/.google.cloud.osconfig.v1.WindowsUpdateSettings\x12\x34\n\x08pre_step\x18\x08 \x01(\x0b\x32\".google.cloud.osconfig.v1.ExecStep\x12\x35\n\tpost_step\x18\t \x01(\x0b\x32\".google.cloud.osconfig.v1.ExecStep\x12\x1d\n\x15mig_instances_allowed\x18\n \x01(\x08\"Q\n\x0cRebootConfig\x12\x1d\n\x19REBOOT_CONFIG_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\n\n\x06\x41LWAYS\x10\x02\x12\t\n\x05NEVER\x10\x03\"\xce\x02\n\x08Instance\"\xc1\x02\n\nPatchState\x12\x1b\n\x17PATCH_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\x0c\n\x08NOTIFIED\x10\x03\x12\x0b\n\x07STARTED\x10\x04\x12\x17\n\x13\x44OWNLOADING_PATCHES\x10\x05\x12\x14\n\x10\x41PPLYING_PATCHES\x10\x06\x12\r\n\tREBOOTING\x10\x07\x12\r\n\tSUCCEEDED\x10\x08\x12\x1d\n\x19SUCCEEDED_REBOOT_REQUIRED\x10\t\x12\n\n\x06\x46\x41ILED\x10\n\x12\t\n\x05\x41\x43KED\x10\x0b\x12\r\n\tTIMED_OUT\x10\x0c\x12\x1a\n\x16RUNNING_PRE_PATCH_STEP\x10\r\x12\x1b\n\x17RUNNING_POST_PATCH_STEP\x10\x0e\x12\x15\n\x11NO_AGENT_DETECTED\x10\x0f\"O\n\x15\x43\x61ncelPatchJobRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n osconfig.googleapis.com/PatchJob\"\xaa\x01\n\x0b\x41ptSettings\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32*.google.cloud.osconfig.v1.AptSettings.Type\x12\x10\n\x08\x65xcludes\x18\x02 \x03(\t\x12\x1a\n\x12\x65xclusive_packages\x18\x03 \x03(\t\"3\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x44IST\x10\x01\x12\x0b\n\x07UPGRADE\x10\x02\"^\n\x0bYumSettings\x12\x10\n\x08security\x18\x01 \x01(\x08\x12\x0f\n\x07minimal\x18\x02 \x01(\x08\x12\x10\n\x08\x65xcludes\x18\x03 \x03(\t\x12\x1a\n\x12\x65xclusive_packages\x18\x04 \x03(\t\"\r\n\x0bGooSettings\"\x91\x01\n\x0eZypperSettings\x12\x15\n\rwith_optional\x18\x01 \x01(\x08\x12\x13\n\x0bwith_update\x18\x02 \x01(\x08\x12\x12\n\ncategories\x18\x03 \x03(\t\x12\x12\n\nseverities\x18\x04 \x03(\t\x12\x10\n\x08\x65xcludes\x18\x05 \x03(\t\x12\x19\n\x11\x65xclusive_patches\x18\x06 \x03(\t\"\xd5\x02\n\x15WindowsUpdateSettings\x12W\n\x0f\x63lassifications\x18\x01 \x03(\x0e\x32>.google.cloud.osconfig.v1.WindowsUpdateSettings.Classification\x12\x10\n\x08\x65xcludes\x18\x02 \x03(\t\x12\x19\n\x11\x65xclusive_patches\x18\x03 \x03(\t\"\xb5\x01\n\x0e\x43lassification\x12\x1e\n\x1a\x43LASSIFICATION_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\x0c\n\x08SECURITY\x10\x02\x12\x0e\n\nDEFINITION\x10\x03\x12\n\n\x06\x44RIVER\x10\x04\x12\x10\n\x0c\x46\x45\x41TURE_PACK\x10\x05\x12\x10\n\x0cSERVICE_PACK\x10\x06\x12\x08\n\x04TOOL\x10\x07\x12\x11\n\rUPDATE_ROLLUP\x10\x08\x12\n\n\x06UPDATE\x10\t\"\xa0\x01\n\x08\x45xecStep\x12H\n\x16linux_exec_step_config\x18\x01 \x01(\x0b\x32(.google.cloud.osconfig.v1.ExecStepConfig\x12J\n\x18windows_exec_step_config\x18\x02 \x01(\x0b\x32(.google.cloud.osconfig.v1.ExecStepConfig\"\xa0\x02\n\x0e\x45xecStepConfig\x12\x14\n\nlocal_path\x18\x01 \x01(\tH\x00\x12\x39\n\ngcs_object\x18\x02 \x01(\x0b\x32#.google.cloud.osconfig.v1.GcsObjectH\x00\x12\x1d\n\x15\x61llowed_success_codes\x18\x03 \x03(\x05\x12I\n\x0binterpreter\x18\x04 \x01(\x0e\x32\x34.google.cloud.osconfig.v1.ExecStepConfig.Interpreter\"E\n\x0bInterpreter\x12\x1b\n\x17INTERPRETER_UNSPECIFIED\x10\x00\x12\t\n\x05SHELL\x10\x01\x12\x0e\n\nPOWERSHELL\x10\x02\x42\x0c\n\nexecutable\"U\n\tGcsObject\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06object\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11generation_number\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\"\xc8\x02\n\x13PatchInstanceFilter\x12\x0b\n\x03\x61ll\x18\x01 \x01(\x08\x12N\n\x0cgroup_labels\x18\x02 \x03(\x0b\x32\x38.google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel\x12\r\n\x05zones\x18\x03 \x03(\t\x12\x11\n\tinstances\x18\x04 \x03(\t\x12\x1e\n\x16instance_name_prefixes\x18\x05 \x03(\t\x1a\x91\x01\n\nGroupLabel\x12T\n\x06labels\x18\x01 \x03(\x0b\x32\x44.google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd4\x01\n\x0cPatchRollout\x12\x39\n\x04mode\x18\x01 \x01(\x0e\x32+.google.cloud.osconfig.v1.PatchRollout.Mode\x12\x43\n\x11\x64isruption_budget\x18\x02 \x01(\x0b\x32(.google.cloud.osconfig.v1.FixedOrPercent\"D\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cZONE_BY_ZONE\x10\x01\x12\x14\n\x10\x43ONCURRENT_ZONES\x10\x02\x42\xb7\x01\n\x1c\x63om.google.cloud.osconfig.v1B\tPatchJobsZ8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.osconfig.v1.FixedOrPercent", "google/cloud/osconfig/v1/osconfig_common.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
221
37
|
end
|
222
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
223
41
|
end
|
224
42
|
|
225
43
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/osconfig/v1/vulnerability.proto
|
3
4
|
|
@@ -7,100 +8,32 @@ require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference" do
|
34
|
-
optional :url, :string, 1
|
35
|
-
optional :source, :string, 2
|
36
|
-
end
|
37
|
-
add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item" do
|
38
|
-
optional :installed_inventory_item_id, :string, 1
|
39
|
-
optional :available_inventory_item_id, :string, 2
|
40
|
-
optional :fixed_cpe_uri, :string, 3
|
41
|
-
optional :upstream_fix, :string, 4
|
42
|
-
end
|
43
|
-
add_message "google.cloud.osconfig.v1.GetVulnerabilityReportRequest" do
|
44
|
-
optional :name, :string, 1
|
45
|
-
end
|
46
|
-
add_message "google.cloud.osconfig.v1.ListVulnerabilityReportsRequest" do
|
47
|
-
optional :parent, :string, 1
|
48
|
-
optional :page_size, :int32, 2
|
49
|
-
optional :page_token, :string, 3
|
50
|
-
optional :filter, :string, 4
|
51
|
-
end
|
52
|
-
add_message "google.cloud.osconfig.v1.ListVulnerabilityReportsResponse" do
|
53
|
-
repeated :vulnerability_reports, :message, 1, "google.cloud.osconfig.v1.VulnerabilityReport"
|
54
|
-
optional :next_page_token, :string, 2
|
55
|
-
end
|
56
|
-
add_message "google.cloud.osconfig.v1.CVSSv3" do
|
57
|
-
optional :base_score, :float, 1
|
58
|
-
optional :exploitability_score, :float, 2
|
59
|
-
optional :impact_score, :float, 3
|
60
|
-
optional :attack_vector, :enum, 5, "google.cloud.osconfig.v1.CVSSv3.AttackVector"
|
61
|
-
optional :attack_complexity, :enum, 6, "google.cloud.osconfig.v1.CVSSv3.AttackComplexity"
|
62
|
-
optional :privileges_required, :enum, 7, "google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired"
|
63
|
-
optional :user_interaction, :enum, 8, "google.cloud.osconfig.v1.CVSSv3.UserInteraction"
|
64
|
-
optional :scope, :enum, 9, "google.cloud.osconfig.v1.CVSSv3.Scope"
|
65
|
-
optional :confidentiality_impact, :enum, 10, "google.cloud.osconfig.v1.CVSSv3.Impact"
|
66
|
-
optional :integrity_impact, :enum, 11, "google.cloud.osconfig.v1.CVSSv3.Impact"
|
67
|
-
optional :availability_impact, :enum, 12, "google.cloud.osconfig.v1.CVSSv3.Impact"
|
68
|
-
end
|
69
|
-
add_enum "google.cloud.osconfig.v1.CVSSv3.AttackVector" do
|
70
|
-
value :ATTACK_VECTOR_UNSPECIFIED, 0
|
71
|
-
value :ATTACK_VECTOR_NETWORK, 1
|
72
|
-
value :ATTACK_VECTOR_ADJACENT, 2
|
73
|
-
value :ATTACK_VECTOR_LOCAL, 3
|
74
|
-
value :ATTACK_VECTOR_PHYSICAL, 4
|
75
|
-
end
|
76
|
-
add_enum "google.cloud.osconfig.v1.CVSSv3.AttackComplexity" do
|
77
|
-
value :ATTACK_COMPLEXITY_UNSPECIFIED, 0
|
78
|
-
value :ATTACK_COMPLEXITY_LOW, 1
|
79
|
-
value :ATTACK_COMPLEXITY_HIGH, 2
|
80
|
-
end
|
81
|
-
add_enum "google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired" do
|
82
|
-
value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0
|
83
|
-
value :PRIVILEGES_REQUIRED_NONE, 1
|
84
|
-
value :PRIVILEGES_REQUIRED_LOW, 2
|
85
|
-
value :PRIVILEGES_REQUIRED_HIGH, 3
|
86
|
-
end
|
87
|
-
add_enum "google.cloud.osconfig.v1.CVSSv3.UserInteraction" do
|
88
|
-
value :USER_INTERACTION_UNSPECIFIED, 0
|
89
|
-
value :USER_INTERACTION_NONE, 1
|
90
|
-
value :USER_INTERACTION_REQUIRED, 2
|
91
|
-
end
|
92
|
-
add_enum "google.cloud.osconfig.v1.CVSSv3.Scope" do
|
93
|
-
value :SCOPE_UNSPECIFIED, 0
|
94
|
-
value :SCOPE_UNCHANGED, 1
|
95
|
-
value :SCOPE_CHANGED, 2
|
96
|
-
end
|
97
|
-
add_enum "google.cloud.osconfig.v1.CVSSv3.Impact" do
|
98
|
-
value :IMPACT_UNSPECIFIED, 0
|
99
|
-
value :IMPACT_HIGH, 1
|
100
|
-
value :IMPACT_LOW, 2
|
101
|
-
value :IMPACT_NONE, 3
|
11
|
+
|
12
|
+
descriptor_data = "\n,google/cloud/osconfig/v1/vulnerability.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x08\n\x13VulnerabilityReport\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12Y\n\x0fvulnerabilities\x18\x02 \x03(\x0b\x32;.google.cloud.osconfig.v1.VulnerabilityReport.VulnerabilityB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x82\x06\n\rVulnerability\x12T\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x43.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details\x12(\n\x1cinstalled_inventory_item_ids\x18\x02 \x03(\tB\x02\x18\x01\x12(\n\x1c\x61vailable_inventory_item_ids\x18\x03 \x03(\tB\x02\x18\x01\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x05items\x18\x06 \x03(\x0b\x32@.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item\x1a\x94\x02\n\x07\x44\x65tails\x12\x0b\n\x03\x63ve\x18\x01 \x01(\t\x12\x15\n\rcvss_v2_score\x18\x02 \x01(\x02\x12\x31\n\x07\x63vss_v3\x18\x03 \x01(\x0b\x32 .google.cloud.osconfig.v1.CVSSv3\x12\x10\n\x08severity\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x61\n\nreferences\x18\x06 \x03(\x0b\x32M.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference\x1a(\n\tReference\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x1a}\n\x04Item\x12#\n\x1binstalled_inventory_item_id\x18\x01 \x01(\t\x12#\n\x1b\x61vailable_inventory_item_id\x18\x02 \x01(\t\x12\x15\n\rfixed_cpe_uri\x18\x03 \x01(\t\x12\x14\n\x0cupstream_fix\x18\x04 \x01(\t:\x82\x01\xea\x41\x7f\n+osconfig.googleapis.com/VulnerabilityReport\x12Pprojects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport\"b\n\x1dGetVulnerabilityReportRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+osconfig.googleapis.com/VulnerabilityReport\"\x91\x01\n\x1fListVulnerabilityReportsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x89\x01\n ListVulnerabilityReportsResponse\x12L\n\x15vulnerability_reports\x18\x01 \x03(\x0b\x32-.google.cloud.osconfig.v1.VulnerabilityReport\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb5\n\n\x06\x43VSSv3\x12\x12\n\nbase_score\x18\x01 \x01(\x02\x12\x1c\n\x14\x65xploitability_score\x18\x02 \x01(\x02\x12\x14\n\x0cimpact_score\x18\x03 \x01(\x02\x12\x44\n\rattack_vector\x18\x05 \x01(\x0e\x32-.google.cloud.osconfig.v1.CVSSv3.AttackVector\x12L\n\x11\x61ttack_complexity\x18\x06 \x01(\x0e\x32\x31.google.cloud.osconfig.v1.CVSSv3.AttackComplexity\x12P\n\x13privileges_required\x18\x07 \x01(\x0e\x32\x33.google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired\x12J\n\x10user_interaction\x18\x08 \x01(\x0e\x32\x30.google.cloud.osconfig.v1.CVSSv3.UserInteraction\x12\x35\n\x05scope\x18\t \x01(\x0e\x32&.google.cloud.osconfig.v1.CVSSv3.Scope\x12G\n\x16\x63onfidentiality_impact\x18\n \x01(\x0e\x32\'.google.cloud.osconfig.v1.CVSSv3.Impact\x12\x41\n\x10integrity_impact\x18\x0b \x01(\x0e\x32\'.google.cloud.osconfig.v1.CVSSv3.Impact\x12\x44\n\x13\x61vailability_impact\x18\x0c \x01(\x0e\x32\'.google.cloud.osconfig.v1.CVSSv3.Impact\"\x99\x01\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16\x41TTACK_VECTOR_ADJACENT\x10\x02\x12\x17\n\x13\x41TTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16\x41TTACK_VECTOR_PHYSICAL\x10\x04\"l\n\x10\x41ttackComplexity\x12!\n\x1d\x41TTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_COMPLEXITY_LOW\x10\x01\x12\x1a\n\x16\x41TTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\n\x12PrivilegesRequired\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\n\x0fUserInteraction\x12 \n\x1cUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\n\x15USER_INTERACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02\"F\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSCOPE_UNCHANGED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02\"R\n\x06Impact\x12\x16\n\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03\x42\xc2\x01\n\x1c\x63om.google.cloud.osconfig.v1B\x12VulnerabilityProtoP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
102
33
|
end
|
103
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
104
37
|
end
|
105
38
|
|
106
39
|
module Google
|