google-cloud-os_config-v1alpha 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/client.rb +238 -7
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/operations.rb +3 -0
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb +42 -0
- data/lib/google/cloud/os_config/v1alpha/version.rb +1 -1
- data/lib/google/cloud/os_config/v1alpha.rb +2 -0
- data/lib/google/cloud/osconfig/v1alpha/config_common_pb.rb +2 -0
- data/lib/google/cloud/osconfig/v1alpha/instance_os_policies_compliance_pb.rb +3 -1
- data/lib/google/cloud/osconfig/v1alpha/inventory_pb.rb +3 -1
- data/lib/google/cloud/osconfig/v1alpha/os_policy_assignment_reports_pb.rb +94 -0
- data/lib/google/cloud/osconfig/v1alpha/os_policy_assignments_pb.rb +10 -1
- data/lib/google/cloud/osconfig/v1alpha/os_policy_pb.rb +9 -1
- data/lib/google/cloud/osconfig/v1alpha/osconfig_common_pb.rb +2 -0
- data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_pb.rb +3 -1
- data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_services_pb.rb +6 -0
- data/lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb +12 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/osconfig/v1alpha/inventory.rb +9 -14
- data/proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb +44 -11
- data/proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.rb +293 -0
- data/proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignments.rb +33 -5
- data/proto_docs/google/cloud/osconfig/v1alpha/vulnerability.rb +38 -5
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +14 -12
@@ -0,0 +1,293 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module OsConfig
|
23
|
+
module V1alpha
|
24
|
+
# Get a report of the OS policy assignment for a VM instance.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Required. API resource name for OS policy assignment report.
|
28
|
+
#
|
29
|
+
# Format:
|
30
|
+
# `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
|
31
|
+
#
|
32
|
+
# For `{project}`, either `project-number` or `project-id` can be provided.
|
33
|
+
# For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
|
34
|
+
# can be provided.
|
35
|
+
# For `{assignment_id}`, the OSPolicyAssignment id must be provided.
|
36
|
+
class GetOSPolicyAssignmentReportRequest
|
37
|
+
include ::Google::Protobuf::MessageExts
|
38
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
39
|
+
end
|
40
|
+
|
41
|
+
# List the OS policy assignment reports for VM instances.
|
42
|
+
# @!attribute [rw] parent
|
43
|
+
# @return [::String]
|
44
|
+
# Required. The parent resource name.
|
45
|
+
#
|
46
|
+
# Format:
|
47
|
+
# `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
|
48
|
+
#
|
49
|
+
# For `{project}`, either `project-number` or `project-id` can be provided.
|
50
|
+
# For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
|
51
|
+
# provided. If '-' is provided, the response will include
|
52
|
+
# OSPolicyAssignmentReports for all instances in the project/location.
|
53
|
+
# For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
|
54
|
+
# is provided, the response will include OSPolicyAssignmentReports for all
|
55
|
+
# OSPolicyAssignments in the project/location.
|
56
|
+
# Either \\{instance} or \\{assignment} must be `-`.
|
57
|
+
#
|
58
|
+
# For example:
|
59
|
+
# `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
|
60
|
+
# returns all reports for the instance
|
61
|
+
# `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
|
62
|
+
# returns all the reports for the given assignment across all instances.
|
63
|
+
# `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
|
64
|
+
# returns all the reports for all assignments across all instances.
|
65
|
+
# @!attribute [rw] page_size
|
66
|
+
# @return [::Integer]
|
67
|
+
# The maximum number of results to return.
|
68
|
+
# @!attribute [rw] filter
|
69
|
+
# @return [::String]
|
70
|
+
# If provided, this field specifies the criteria that must be met by the
|
71
|
+
# `OSPolicyAssignmentReport` API resource that is included in the response.
|
72
|
+
# @!attribute [rw] page_token
|
73
|
+
# @return [::String]
|
74
|
+
# A pagination token returned from a previous call to the
|
75
|
+
# `ListOSPolicyAssignmentReports` method that indicates where this listing
|
76
|
+
# should continue from.
|
77
|
+
class ListOSPolicyAssignmentReportsRequest
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
end
|
81
|
+
|
82
|
+
# A response message for listing OS Policy assignment reports including the
|
83
|
+
# page of results and page token.
|
84
|
+
# @!attribute [rw] os_policy_assignment_reports
|
85
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport>]
|
86
|
+
# List of OS policy assignment reports.
|
87
|
+
# @!attribute [rw] next_page_token
|
88
|
+
# @return [::String]
|
89
|
+
# The pagination token to retrieve the next page of OS policy assignment
|
90
|
+
# report objects.
|
91
|
+
class ListOSPolicyAssignmentReportsResponse
|
92
|
+
include ::Google::Protobuf::MessageExts
|
93
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
94
|
+
end
|
95
|
+
|
96
|
+
# A report of the OS policy assignment status for a given instance.
|
97
|
+
# @!attribute [rw] name
|
98
|
+
# @return [::String]
|
99
|
+
# The `OSPolicyAssignmentReport` API resource name.
|
100
|
+
#
|
101
|
+
# Format:
|
102
|
+
# `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
|
103
|
+
# @!attribute [rw] instance
|
104
|
+
# @return [::String]
|
105
|
+
# The Compute Engine VM instance name.
|
106
|
+
# @!attribute [rw] os_policy_assignment
|
107
|
+
# @return [::String]
|
108
|
+
# Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
|
109
|
+
# belongs to.
|
110
|
+
#
|
111
|
+
# Format:
|
112
|
+
# `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
|
113
|
+
# @!attribute [rw] os_policy_compliances
|
114
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance>]
|
115
|
+
# Compliance data for each `OSPolicy` that is applied to the VM.
|
116
|
+
# @!attribute [rw] update_time
|
117
|
+
# @return [::Google::Protobuf::Timestamp]
|
118
|
+
# Timestamp for when the report was last generated.
|
119
|
+
# @!attribute [rw] last_run_id
|
120
|
+
# @return [::String]
|
121
|
+
# Unique identifier of the last attempted run to apply the OS policies
|
122
|
+
# associated with this assignment on the VM.
|
123
|
+
#
|
124
|
+
# This ID is logged by the OS Config agent while applying the OS
|
125
|
+
# policies associated with this assignment on the VM.
|
126
|
+
# NOTE: If the service is unable to successfully connect to the agent for
|
127
|
+
# this run, then this id will not be available in the agent logs.
|
128
|
+
class OSPolicyAssignmentReport
|
129
|
+
include ::Google::Protobuf::MessageExts
|
130
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
|
132
|
+
# Compliance data for an OS policy
|
133
|
+
# @!attribute [rw] os_policy_id
|
134
|
+
# @return [::String]
|
135
|
+
# The OS policy id
|
136
|
+
# @!attribute [rw] compliance_state
|
137
|
+
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::ComplianceState]
|
138
|
+
# The compliance state of the OS policy.
|
139
|
+
# @!attribute [rw] compliance_state_reason
|
140
|
+
# @return [::String]
|
141
|
+
# The reason for the OS policy to be in an unknown compliance state.
|
142
|
+
# This field is always populated when `compliance_state` is `UNKNOWN`.
|
143
|
+
#
|
144
|
+
# If populated, the field can contain one of the following values:
|
145
|
+
#
|
146
|
+
# * `vm-not-running`: The VM was not running.
|
147
|
+
# * `os-policies-not-supported-by-agent`: The version of the OS Config
|
148
|
+
# agent running on the VM does not support running OS policies.
|
149
|
+
# * `no-agent-detected`: The OS Config agent is not detected for the VM.
|
150
|
+
# * `resource-execution-errors`: The OS Config agent encountered errors
|
151
|
+
# while executing one or more resources in the policy. See
|
152
|
+
# `os_policy_resource_compliances` for details.
|
153
|
+
# * `task-timeout`: The task sent to the agent to apply the policy timed
|
154
|
+
# out.
|
155
|
+
# * `unexpected-agent-state`: The OS Config agent did not report the final
|
156
|
+
# status of the task that attempted to apply the policy. Instead, the agent
|
157
|
+
# unexpectedly started working on a different task. This mostly happens
|
158
|
+
# when the agent or VM unexpectedly restarts while applying OS policies.
|
159
|
+
# * `internal-service-errors`: Internal service errors were encountered
|
160
|
+
# while attempting to apply the policy.
|
161
|
+
# @!attribute [rw] os_policy_resource_compliances
|
162
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance>]
|
163
|
+
# Compliance data for each resource within the policy that is applied to
|
164
|
+
# the VM.
|
165
|
+
class OSPolicyCompliance
|
166
|
+
include ::Google::Protobuf::MessageExts
|
167
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
168
|
+
|
169
|
+
# Compliance data for an OS policy resource.
|
170
|
+
# @!attribute [rw] os_policy_resource_id
|
171
|
+
# @return [::String]
|
172
|
+
# The ID of the OS policy resource.
|
173
|
+
# @!attribute [rw] config_steps
|
174
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::OSPolicyResourceConfigStep>]
|
175
|
+
# Ordered list of configuration completed by the agent for the OS policy
|
176
|
+
# resource.
|
177
|
+
# @!attribute [rw] compliance_state
|
178
|
+
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::ComplianceState]
|
179
|
+
# The compliance state of the resource.
|
180
|
+
# @!attribute [rw] compliance_state_reason
|
181
|
+
# @return [::String]
|
182
|
+
# A reason for the resource to be in the given compliance state.
|
183
|
+
# This field is always populated when `compliance_state` is `UNKNOWN`.
|
184
|
+
#
|
185
|
+
# The following values are supported when `compliance_state == UNKNOWN`
|
186
|
+
#
|
187
|
+
# * `execution-errors`: Errors were encountered by the agent while
|
188
|
+
# executing the resource and the compliance state couldn't be
|
189
|
+
# determined.
|
190
|
+
# * `execution-skipped-by-agent`: Resource execution was skipped by the
|
191
|
+
# agent because errors were encountered while executing prior resources
|
192
|
+
# in the OS policy.
|
193
|
+
# * `os-policy-execution-attempt-failed`: The execution of the OS policy
|
194
|
+
# containing this resource failed and the compliance state couldn't be
|
195
|
+
# determined.
|
196
|
+
# @!attribute [rw] exec_resource_output
|
197
|
+
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::ExecResourceOutput]
|
198
|
+
# ExecResource specific output.
|
199
|
+
class OSPolicyResourceCompliance
|
200
|
+
include ::Google::Protobuf::MessageExts
|
201
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
202
|
+
|
203
|
+
# Step performed by the OS Config agent for configuring an
|
204
|
+
# `OSPolicy` resource to its desired state.
|
205
|
+
# @!attribute [rw] type
|
206
|
+
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::OSPolicyResourceConfigStep::Type]
|
207
|
+
# Configuration step type.
|
208
|
+
# @!attribute [rw] error_message
|
209
|
+
# @return [::String]
|
210
|
+
# An error message recorded during the execution of this step.
|
211
|
+
# Only populated if errors were encountered during this step execution.
|
212
|
+
class OSPolicyResourceConfigStep
|
213
|
+
include ::Google::Protobuf::MessageExts
|
214
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
215
|
+
|
216
|
+
# Supported configuration step types
|
217
|
+
module Type
|
218
|
+
# Default value. This value is unused.
|
219
|
+
TYPE_UNSPECIFIED = 0
|
220
|
+
|
221
|
+
# Checks for resource conflicts such as schema errors.
|
222
|
+
VALIDATION = 1
|
223
|
+
|
224
|
+
# Checks the current status of the desired state for a resource.
|
225
|
+
DESIRED_STATE_CHECK = 2
|
226
|
+
|
227
|
+
# Enforces the desired state for a resource that is not in desired
|
228
|
+
# state.
|
229
|
+
DESIRED_STATE_ENFORCEMENT = 3
|
230
|
+
|
231
|
+
# Re-checks the status of the desired state. This check is done
|
232
|
+
# for a resource after the enforcement of all OS policies.
|
233
|
+
#
|
234
|
+
# This step is used to determine the final desired state status for
|
235
|
+
# the resource. It accounts for any resources that might have drifted
|
236
|
+
# from their desired state due to side effects from executing other
|
237
|
+
# resources.
|
238
|
+
DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# ExecResource specific output.
|
243
|
+
# @!attribute [rw] enforcement_output
|
244
|
+
# @return [::String]
|
245
|
+
# Output from enforcement phase output file (if run).
|
246
|
+
# Output size is limited to 100K bytes.
|
247
|
+
class ExecResourceOutput
|
248
|
+
include ::Google::Protobuf::MessageExts
|
249
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
250
|
+
end
|
251
|
+
|
252
|
+
# Possible compliance states for a resource.
|
253
|
+
module ComplianceState
|
254
|
+
# The resource is in an unknown compliance state.
|
255
|
+
#
|
256
|
+
# To get more details about why the policy is in this state, review
|
257
|
+
# the output of the `compliance_state_reason` field.
|
258
|
+
UNKNOWN = 0
|
259
|
+
|
260
|
+
# Resource is compliant.
|
261
|
+
COMPLIANT = 1
|
262
|
+
|
263
|
+
# Resource is non-compliant.
|
264
|
+
NON_COMPLIANT = 2
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# Possible compliance states for an os policy.
|
269
|
+
module ComplianceState
|
270
|
+
# The policy is in an unknown compliance state.
|
271
|
+
#
|
272
|
+
# Refer to the field `compliance_state_reason` to learn the exact reason
|
273
|
+
# for the policy to be in this compliance state.
|
274
|
+
UNKNOWN = 0
|
275
|
+
|
276
|
+
# Policy is compliant.
|
277
|
+
#
|
278
|
+
# The policy is compliant if all the underlying resources are also
|
279
|
+
# compliant.
|
280
|
+
COMPLIANT = 1
|
281
|
+
|
282
|
+
# Policy is non-compliant.
|
283
|
+
#
|
284
|
+
# The policy is non-compliant if one or more underlying resources are
|
285
|
+
# non-compliant.
|
286
|
+
NON_COMPLIANT = 2
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
end
|
292
|
+
end
|
293
|
+
end
|
@@ -68,6 +68,10 @@ module Google
|
|
68
68
|
# @!attribute [r] revision_create_time
|
69
69
|
# @return [::Google::Protobuf::Timestamp]
|
70
70
|
# Output only. The timestamp that the revision was created.
|
71
|
+
# @!attribute [rw] etag
|
72
|
+
# @return [::String]
|
73
|
+
# The etag for this OS policy assignment.
|
74
|
+
# If this is provided on update, it must match the server's etag.
|
71
75
|
# @!attribute [r] rollout_state
|
72
76
|
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::RolloutState]
|
73
77
|
# Output only. OS policy assignment rollout state
|
@@ -122,14 +126,18 @@ module Google
|
|
122
126
|
end
|
123
127
|
end
|
124
128
|
|
125
|
-
#
|
129
|
+
# Filters to select target VMs for an assignment.
|
130
|
+
#
|
131
|
+
# If more than one filter criteria is specified below, a VM will be selected
|
132
|
+
# if and only if it satisfies all of them.
|
126
133
|
# @!attribute [rw] all
|
127
134
|
# @return [::Boolean]
|
128
135
|
# Target all VMs in the project. If true, no other criteria is
|
129
136
|
# permitted.
|
130
137
|
# @!attribute [rw] os_short_names
|
131
138
|
# @return [::Array<::String>]
|
132
|
-
#
|
139
|
+
# Deprecated. Use the `inventories` field instead.
|
140
|
+
# A VM is selected if it's OS short name matches with any of the
|
133
141
|
# values provided in this list.
|
134
142
|
# @!attribute [rw] inclusion_labels
|
135
143
|
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>]
|
@@ -143,13 +151,33 @@ module Google
|
|
143
151
|
#
|
144
152
|
# If the list has more than one label set, the VM is excluded if any
|
145
153
|
# of the label sets are applicable for the VM.
|
154
|
+
# @!attribute [rw] inventories
|
155
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::InstanceFilter::Inventory>]
|
156
|
+
# List of inventories to select VMs.
|
146
157
|
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
# label sets.
|
158
|
+
# A VM is selected if its inventory data matches at least one of the
|
159
|
+
# following inventories.
|
150
160
|
class InstanceFilter
|
151
161
|
include ::Google::Protobuf::MessageExts
|
152
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
|
+
|
164
|
+
# VM inventory details.
|
165
|
+
# @!attribute [rw] os_short_name
|
166
|
+
# @return [::String]
|
167
|
+
# Required. The OS short name
|
168
|
+
# @!attribute [rw] os_version
|
169
|
+
# @return [::String]
|
170
|
+
# The OS version
|
171
|
+
#
|
172
|
+
# Prefix matches are supported if asterisk(*) is provided as the
|
173
|
+
# last character. For example, to match all versions with a major
|
174
|
+
# version of `7`, specify the following value for this field `7.*`
|
175
|
+
#
|
176
|
+
# An empty string matches all OS versions.
|
177
|
+
class Inventory
|
178
|
+
include ::Google::Protobuf::MessageExts
|
179
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
180
|
+
end
|
153
181
|
end
|
154
182
|
|
155
183
|
# Message to configure the rollout at the zonal level for the OS policy
|
@@ -37,8 +37,8 @@ module Google
|
|
37
37
|
# Output only. List of vulnerabilities affecting the VM.
|
38
38
|
# @!attribute [r] update_time
|
39
39
|
# @return [::Google::Protobuf::Timestamp]
|
40
|
-
# Output only. The timestamp for when the last vulnerability report was
|
41
|
-
#
|
40
|
+
# Output only. The timestamp for when the last vulnerability report was generated for the
|
41
|
+
# VM.
|
42
42
|
class VulnerabilityReport
|
43
43
|
include ::Google::Protobuf::MessageExts
|
44
44
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -69,6 +69,9 @@ module Google
|
|
69
69
|
# @!attribute [rw] update_time
|
70
70
|
# @return [::Google::Protobuf::Timestamp]
|
71
71
|
# The timestamp for when the vulnerability was last modified.
|
72
|
+
# @!attribute [rw] items
|
73
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::VulnerabilityReport::Vulnerability::Item>]
|
74
|
+
# List of items affected by the vulnerability.
|
72
75
|
class Vulnerability
|
73
76
|
include ::Google::Protobuf::MessageExts
|
74
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -104,11 +107,43 @@ module Google
|
|
104
107
|
# @!attribute [rw] url
|
105
108
|
# @return [::String]
|
106
109
|
# The url of the reference.
|
110
|
+
# @!attribute [rw] source
|
111
|
+
# @return [::String]
|
112
|
+
# The source of the reference e.g. NVD.
|
107
113
|
class Reference
|
108
114
|
include ::Google::Protobuf::MessageExts
|
109
115
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
110
116
|
end
|
111
117
|
end
|
118
|
+
|
119
|
+
# OS inventory item that is affected by a vulnerability or fixed as a
|
120
|
+
# result of a vulnerability.
|
121
|
+
# @!attribute [rw] installed_inventory_item_id
|
122
|
+
# @return [::String]
|
123
|
+
# Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
|
124
|
+
# This field displays the inventory items affected by this vulnerability.
|
125
|
+
# If the vulnerability report was not updated after the VM inventory
|
126
|
+
# update, these values might not display in VM inventory. For some
|
127
|
+
# operating systems, this field might be empty.
|
128
|
+
# @!attribute [rw] available_inventory_item_id
|
129
|
+
# @return [::String]
|
130
|
+
# Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
|
131
|
+
# If the vulnerability report was not updated after the VM inventory
|
132
|
+
# update, these values might not display in VM inventory. If there is no
|
133
|
+
# available fix, the field is empty. The `inventory_item` value specifies
|
134
|
+
# the latest `SoftwarePackage` available to the VM that fixes the
|
135
|
+
# vulnerability.
|
136
|
+
# @!attribute [rw] fixed_cpe_uri
|
137
|
+
# @return [::String]
|
138
|
+
# The recommended [CPE URI](https://cpe.mitre.org/specification/) update
|
139
|
+
# that contains a fix for this vulnerability.
|
140
|
+
# @!attribute [rw] upstream_fix
|
141
|
+
# @return [::String]
|
142
|
+
# The upstream OS patch, packages or KB that fixes the vulnerability.
|
143
|
+
class Item
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
112
147
|
end
|
113
148
|
end
|
114
149
|
|
@@ -134,11 +169,9 @@ module Google
|
|
134
169
|
# @return [::String]
|
135
170
|
# Required. The parent resource name.
|
136
171
|
#
|
137
|
-
# Format: `projects/{project}/locations/{location}/instances
|
172
|
+
# Format: `projects/{project}/locations/{location}/instances/-`
|
138
173
|
#
|
139
174
|
# For `{project}`, either `project-number` or `project-id` can be provided.
|
140
|
-
# For `{instance}`, only `-` character is supported to list vulnerability
|
141
|
-
# reports across VMs.
|
142
175
|
# @!attribute [rw] page_size
|
143
176
|
# @return [::Integer]
|
144
177
|
# The maximum number of results to return.
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-os_config-v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,6 +181,7 @@ files:
|
|
181
181
|
- lib/google/cloud/osconfig/v1alpha/config_common_pb.rb
|
182
182
|
- lib/google/cloud/osconfig/v1alpha/instance_os_policies_compliance_pb.rb
|
183
183
|
- lib/google/cloud/osconfig/v1alpha/inventory_pb.rb
|
184
|
+
- lib/google/cloud/osconfig/v1alpha/os_policy_assignment_reports_pb.rb
|
184
185
|
- lib/google/cloud/osconfig/v1alpha/os_policy_assignments_pb.rb
|
185
186
|
- lib/google/cloud/osconfig/v1alpha/os_policy_pb.rb
|
186
187
|
- lib/google/cloud/osconfig/v1alpha/osconfig_common_pb.rb
|
@@ -194,6 +195,7 @@ files:
|
|
194
195
|
- proto_docs/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.rb
|
195
196
|
- proto_docs/google/cloud/osconfig/v1alpha/inventory.rb
|
196
197
|
- proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb
|
198
|
+
- proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.rb
|
197
199
|
- proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignments.rb
|
198
200
|
- proto_docs/google/cloud/osconfig/v1alpha/osconfig_common.rb
|
199
201
|
- proto_docs/google/cloud/osconfig/v1alpha/vulnerability.rb
|
@@ -217,14 +219,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
217
219
|
requirements:
|
218
220
|
- - ">="
|
219
221
|
- !ruby/object:Gem::Version
|
220
|
-
version: '2.
|
222
|
+
version: '2.6'
|
221
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
224
|
requirements:
|
223
225
|
- - ">="
|
224
226
|
- !ruby/object:Gem::Version
|
225
227
|
version: '0'
|
226
228
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
229
|
+
rubygems_version: 3.3.14
|
228
230
|
signing_key:
|
229
231
|
specification_version: 4
|
230
232
|
summary: API Client library for the Cloud OS Config V1alpha API
|