google-apis-osconfig_v1 0.6.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/osconfig_v1/classes.rb +1664 -121
- data/lib/google/apis/osconfig_v1/gem_version.rb +3 -3
- data/lib/google/apis/osconfig_v1/representations.rb +640 -3
- data/lib/google/apis/osconfig_v1/service.rb +349 -29
- data/lib/google/apis/osconfig_v1.rb +1 -1
- metadata +13 -7
@@ -50,12 +50,16 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
56
|
-
# UNIMPLEMENTED`.
|
53
|
+
# Get inventory data for the specified VM instance. If the VM has no associated
|
54
|
+
# inventory, the message `NOT_FOUND` is returned.
|
57
55
|
# @param [String] name
|
58
|
-
#
|
56
|
+
# Required. API resource name for inventory resource. Format: `projects/`project`
|
57
|
+
# /locations/`location`/instances/`instance`/inventory` For ``project``, either `
|
58
|
+
# project-number` or `project-id` can be provided. For ``instance``, either
|
59
|
+
# Compute Engine `instance-id` or `instance-name` can be provided.
|
60
|
+
# @param [String] view
|
61
|
+
# Inventory view indicating what information should be included in the inventory
|
62
|
+
# resource. If unspecified, the default view is BASIC.
|
59
63
|
# @param [String] fields
|
60
64
|
# Selector specifying which fields to include in a partial response.
|
61
65
|
# @param [String] quota_user
|
@@ -65,40 +69,41 @@ module Google
|
|
65
69
|
# Request-specific options
|
66
70
|
#
|
67
71
|
# @yield [result, err] Result & error if block supplied
|
68
|
-
# @yieldparam result [Google::Apis::OsconfigV1::
|
72
|
+
# @yieldparam result [Google::Apis::OsconfigV1::Inventory] parsed result object
|
69
73
|
# @yieldparam err [StandardError] error object if request failed
|
70
74
|
#
|
71
|
-
# @return [Google::Apis::OsconfigV1::
|
75
|
+
# @return [Google::Apis::OsconfigV1::Inventory]
|
72
76
|
#
|
73
77
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
78
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
79
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
-
def
|
77
|
-
command = make_simple_command(:
|
78
|
-
command.response_representation = Google::Apis::OsconfigV1::
|
79
|
-
command.response_class = Google::Apis::OsconfigV1::
|
80
|
+
def get_project_location_instance_inventory(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
82
|
+
command.response_representation = Google::Apis::OsconfigV1::Inventory::Representation
|
83
|
+
command.response_class = Google::Apis::OsconfigV1::Inventory
|
80
84
|
command.params['name'] = name unless name.nil?
|
85
|
+
command.query['view'] = view unless view.nil?
|
81
86
|
command.query['fields'] = fields unless fields.nil?
|
82
87
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
88
|
execute_or_queue_command(command, &block)
|
84
89
|
end
|
85
90
|
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
# service configuration. For backwards compatibility, the default name includes
|
92
|
-
# the operations collection id, however overriding users must ensure the name
|
93
|
-
# binding is the parent resource, without the operations collection id.
|
94
|
-
# @param [String] name
|
95
|
-
# The name of the operation's parent resource.
|
91
|
+
# List inventory data for all VM instances in the specified zone.
|
92
|
+
# @param [String] parent
|
93
|
+
# Required. The parent resource name. Format: `projects/`project`/locations/`
|
94
|
+
# location`/instances/-` For ``project``, either `project-number` or `project-id`
|
95
|
+
# can be provided.
|
96
96
|
# @param [String] filter
|
97
|
-
#
|
97
|
+
# If provided, this field specifies the criteria that must be met by a `
|
98
|
+
# Inventory` API resource to be included in the response.
|
98
99
|
# @param [Fixnum] page_size
|
99
|
-
# The
|
100
|
+
# The maximum number of results to return.
|
100
101
|
# @param [String] page_token
|
101
|
-
#
|
102
|
+
# A pagination token returned from a previous call to `ListInventories` that
|
103
|
+
# indicates where this listing should continue from.
|
104
|
+
# @param [String] view
|
105
|
+
# Inventory view indicating what information should be included in the inventory
|
106
|
+
# resource. If unspecified, the default view is BASIC.
|
102
107
|
# @param [String] fields
|
103
108
|
# Selector specifying which fields to include in a partial response.
|
104
109
|
# @param [String] quota_user
|
@@ -108,19 +113,98 @@ module Google
|
|
108
113
|
# Request-specific options
|
109
114
|
#
|
110
115
|
# @yield [result, err] Result & error if block supplied
|
111
|
-
# @yieldparam result [Google::Apis::OsconfigV1::
|
116
|
+
# @yieldparam result [Google::Apis::OsconfigV1::ListInventoriesResponse] parsed result object
|
112
117
|
# @yieldparam err [StandardError] error object if request failed
|
113
118
|
#
|
114
|
-
# @return [Google::Apis::OsconfigV1::
|
119
|
+
# @return [Google::Apis::OsconfigV1::ListInventoriesResponse]
|
115
120
|
#
|
116
121
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
117
122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
118
123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
119
|
-
def
|
124
|
+
def list_project_location_instance_inventories(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
125
|
+
command = make_simple_command(:get, 'v1/{+parent}/inventories', options)
|
126
|
+
command.response_representation = Google::Apis::OsconfigV1::ListInventoriesResponse::Representation
|
127
|
+
command.response_class = Google::Apis::OsconfigV1::ListInventoriesResponse
|
128
|
+
command.params['parent'] = parent unless parent.nil?
|
129
|
+
command.query['filter'] = filter unless filter.nil?
|
130
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
131
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
132
|
+
command.query['view'] = view unless view.nil?
|
133
|
+
command.query['fields'] = fields unless fields.nil?
|
134
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
135
|
+
execute_or_queue_command(command, &block)
|
136
|
+
end
|
137
|
+
|
138
|
+
# Gets the vulnerability report for the specified VM instance. Only VMs with
|
139
|
+
# inventory data have vulnerability reports associated with them.
|
140
|
+
# @param [String] name
|
141
|
+
# Required. API resource name for vulnerability resource. Format: `projects/`
|
142
|
+
# project`/locations/`location`/instances/`instance`/vulnerabilityReport` For ``
|
143
|
+
# project``, either `project-number` or `project-id` can be provided. For ``
|
144
|
+
# instance``, either Compute Engine `instance-id` or `instance-name` can be
|
145
|
+
# provided.
|
146
|
+
# @param [String] fields
|
147
|
+
# Selector specifying which fields to include in a partial response.
|
148
|
+
# @param [String] quota_user
|
149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
151
|
+
# @param [Google::Apis::RequestOptions] options
|
152
|
+
# Request-specific options
|
153
|
+
#
|
154
|
+
# @yield [result, err] Result & error if block supplied
|
155
|
+
# @yieldparam result [Google::Apis::OsconfigV1::VulnerabilityReport] parsed result object
|
156
|
+
# @yieldparam err [StandardError] error object if request failed
|
157
|
+
#
|
158
|
+
# @return [Google::Apis::OsconfigV1::VulnerabilityReport]
|
159
|
+
#
|
160
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
161
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
162
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
163
|
+
def get_project_location_instance_vulnerability_report(name, fields: nil, quota_user: nil, options: nil, &block)
|
120
164
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
121
|
-
command.response_representation = Google::Apis::OsconfigV1::
|
122
|
-
command.response_class = Google::Apis::OsconfigV1::
|
165
|
+
command.response_representation = Google::Apis::OsconfigV1::VulnerabilityReport::Representation
|
166
|
+
command.response_class = Google::Apis::OsconfigV1::VulnerabilityReport
|
123
167
|
command.params['name'] = name unless name.nil?
|
168
|
+
command.query['fields'] = fields unless fields.nil?
|
169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
170
|
+
execute_or_queue_command(command, &block)
|
171
|
+
end
|
172
|
+
|
173
|
+
# List vulnerability reports for all VM instances in the specified zone.
|
174
|
+
# @param [String] parent
|
175
|
+
# Required. The parent resource name. Format: `projects/`project`/locations/`
|
176
|
+
# location`/instances/-` For ``project``, either `project-number` or `project-id`
|
177
|
+
# can be provided.
|
178
|
+
# @param [String] filter
|
179
|
+
# If provided, this field specifies the criteria that must be met by a `
|
180
|
+
# vulnerabilityReport` API resource to be included in the response.
|
181
|
+
# @param [Fixnum] page_size
|
182
|
+
# The maximum number of results to return.
|
183
|
+
# @param [String] page_token
|
184
|
+
# A pagination token returned from a previous call to `ListVulnerabilityReports`
|
185
|
+
# that indicates where this listing should continue from.
|
186
|
+
# @param [String] fields
|
187
|
+
# Selector specifying which fields to include in a partial response.
|
188
|
+
# @param [String] quota_user
|
189
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
190
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
191
|
+
# @param [Google::Apis::RequestOptions] options
|
192
|
+
# Request-specific options
|
193
|
+
#
|
194
|
+
# @yield [result, err] Result & error if block supplied
|
195
|
+
# @yieldparam result [Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse] parsed result object
|
196
|
+
# @yieldparam err [StandardError] error object if request failed
|
197
|
+
#
|
198
|
+
# @return [Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse]
|
199
|
+
#
|
200
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
201
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
202
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
203
|
+
def list_project_location_instance_vulnerability_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
204
|
+
command = make_simple_command(:get, 'v1/{+parent}/vulnerabilityReports', options)
|
205
|
+
command.response_representation = Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse::Representation
|
206
|
+
command.response_class = Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse
|
207
|
+
command.params['parent'] = parent unless parent.nil?
|
124
208
|
command.query['filter'] = filter unless filter.nil?
|
125
209
|
command.query['pageSize'] = page_size unless page_size.nil?
|
126
210
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -129,6 +213,242 @@ module Google
|
|
129
213
|
execute_or_queue_command(command, &block)
|
130
214
|
end
|
131
215
|
|
216
|
+
# Create an OS policy assignment. This method also creates the first revision of
|
217
|
+
# the OS policy assignment. This method returns a long running operation (LRO)
|
218
|
+
# that contains the rollout details. The rollout can be cancelled by cancelling
|
219
|
+
# the LRO. For more information, see [Method: projects.locations.
|
220
|
+
# osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/
|
221
|
+
# osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
|
222
|
+
# @param [String] parent
|
223
|
+
# Required. The parent resource name in the form: projects/`project`/locations/`
|
224
|
+
# location`
|
225
|
+
# @param [Google::Apis::OsconfigV1::OsPolicyAssignment] os_policy_assignment_object
|
226
|
+
# @param [String] os_policy_assignment_id
|
227
|
+
# Required. The logical name of the OS policy assignment in the project with the
|
228
|
+
# following restrictions: * Must contain only lowercase letters, numbers, and
|
229
|
+
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
|
230
|
+
# end with a number or a letter. * Must be unique within the project.
|
231
|
+
# @param [String] fields
|
232
|
+
# Selector specifying which fields to include in a partial response.
|
233
|
+
# @param [String] quota_user
|
234
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
235
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
236
|
+
# @param [Google::Apis::RequestOptions] options
|
237
|
+
# Request-specific options
|
238
|
+
#
|
239
|
+
# @yield [result, err] Result & error if block supplied
|
240
|
+
# @yieldparam result [Google::Apis::OsconfigV1::Operation] parsed result object
|
241
|
+
# @yieldparam err [StandardError] error object if request failed
|
242
|
+
#
|
243
|
+
# @return [Google::Apis::OsconfigV1::Operation]
|
244
|
+
#
|
245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
248
|
+
def create_project_location_os_policy_assignment(parent, os_policy_assignment_object = nil, os_policy_assignment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
249
|
+
command = make_simple_command(:post, 'v1/{+parent}/osPolicyAssignments', options)
|
250
|
+
command.request_representation = Google::Apis::OsconfigV1::OsPolicyAssignment::Representation
|
251
|
+
command.request_object = os_policy_assignment_object
|
252
|
+
command.response_representation = Google::Apis::OsconfigV1::Operation::Representation
|
253
|
+
command.response_class = Google::Apis::OsconfigV1::Operation
|
254
|
+
command.params['parent'] = parent unless parent.nil?
|
255
|
+
command.query['osPolicyAssignmentId'] = os_policy_assignment_id unless os_policy_assignment_id.nil?
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
|
+
execute_or_queue_command(command, &block)
|
259
|
+
end
|
260
|
+
|
261
|
+
# Delete the OS policy assignment. This method creates a new revision of the OS
|
262
|
+
# policy assignment. This method returns a long running operation (LRO) that
|
263
|
+
# contains the rollout details. The rollout can be cancelled by cancelling the
|
264
|
+
# LRO. If the LRO completes and is not cancelled, all revisions associated with
|
265
|
+
# the OS policy assignment are deleted. For more information, see [Method:
|
266
|
+
# projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.
|
267
|
+
# com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.
|
268
|
+
# operations/cancel).
|
269
|
+
# @param [String] name
|
270
|
+
# Required. The name of the OS policy assignment to be deleted
|
271
|
+
# @param [String] fields
|
272
|
+
# Selector specifying which fields to include in a partial response.
|
273
|
+
# @param [String] quota_user
|
274
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
275
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
+
# @param [Google::Apis::RequestOptions] options
|
277
|
+
# Request-specific options
|
278
|
+
#
|
279
|
+
# @yield [result, err] Result & error if block supplied
|
280
|
+
# @yieldparam result [Google::Apis::OsconfigV1::Operation] parsed result object
|
281
|
+
# @yieldparam err [StandardError] error object if request failed
|
282
|
+
#
|
283
|
+
# @return [Google::Apis::OsconfigV1::Operation]
|
284
|
+
#
|
285
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
+
def delete_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
290
|
+
command.response_representation = Google::Apis::OsconfigV1::Operation::Representation
|
291
|
+
command.response_class = Google::Apis::OsconfigV1::Operation
|
292
|
+
command.params['name'] = name unless name.nil?
|
293
|
+
command.query['fields'] = fields unless fields.nil?
|
294
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
295
|
+
execute_or_queue_command(command, &block)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Retrieve an existing OS policy assignment. This method always returns the
|
299
|
+
# latest revision. In order to retrieve a previous revision of the assignment,
|
300
|
+
# also provide the revision ID in the `name` parameter.
|
301
|
+
# @param [String] name
|
302
|
+
# Required. The resource name of OS policy assignment. Format: `projects/`
|
303
|
+
# project`/locations/`location`/osPolicyAssignments/`os_policy_assignment`@`
|
304
|
+
# revisionId``
|
305
|
+
# @param [String] fields
|
306
|
+
# Selector specifying which fields to include in a partial response.
|
307
|
+
# @param [String] quota_user
|
308
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
309
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
310
|
+
# @param [Google::Apis::RequestOptions] options
|
311
|
+
# Request-specific options
|
312
|
+
#
|
313
|
+
# @yield [result, err] Result & error if block supplied
|
314
|
+
# @yieldparam result [Google::Apis::OsconfigV1::OsPolicyAssignment] parsed result object
|
315
|
+
# @yieldparam err [StandardError] error object if request failed
|
316
|
+
#
|
317
|
+
# @return [Google::Apis::OsconfigV1::OsPolicyAssignment]
|
318
|
+
#
|
319
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
320
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
321
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
322
|
+
def get_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil, &block)
|
323
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
324
|
+
command.response_representation = Google::Apis::OsconfigV1::OsPolicyAssignment::Representation
|
325
|
+
command.response_class = Google::Apis::OsconfigV1::OsPolicyAssignment
|
326
|
+
command.params['name'] = name unless name.nil?
|
327
|
+
command.query['fields'] = fields unless fields.nil?
|
328
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
329
|
+
execute_or_queue_command(command, &block)
|
330
|
+
end
|
331
|
+
|
332
|
+
# List the OS policy assignments under the parent resource. For each OS policy
|
333
|
+
# assignment, the latest revision is returned.
|
334
|
+
# @param [String] parent
|
335
|
+
# Required. The parent resource name.
|
336
|
+
# @param [Fixnum] page_size
|
337
|
+
# The maximum number of assignments to return.
|
338
|
+
# @param [String] page_token
|
339
|
+
# A pagination token returned from a previous call to `ListOSPolicyAssignments`
|
340
|
+
# that indicates where this listing should continue from.
|
341
|
+
# @param [String] fields
|
342
|
+
# Selector specifying which fields to include in a partial response.
|
343
|
+
# @param [String] quota_user
|
344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
346
|
+
# @param [Google::Apis::RequestOptions] options
|
347
|
+
# Request-specific options
|
348
|
+
#
|
349
|
+
# @yield [result, err] Result & error if block supplied
|
350
|
+
# @yieldparam result [Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse] parsed result object
|
351
|
+
# @yieldparam err [StandardError] error object if request failed
|
352
|
+
#
|
353
|
+
# @return [Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse]
|
354
|
+
#
|
355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
358
|
+
def list_project_location_os_policy_assignments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
359
|
+
command = make_simple_command(:get, 'v1/{+parent}/osPolicyAssignments', options)
|
360
|
+
command.response_representation = Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse::Representation
|
361
|
+
command.response_class = Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse
|
362
|
+
command.params['parent'] = parent unless parent.nil?
|
363
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
364
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
365
|
+
command.query['fields'] = fields unless fields.nil?
|
366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
367
|
+
execute_or_queue_command(command, &block)
|
368
|
+
end
|
369
|
+
|
370
|
+
# List the OS policy assignment revisions for a given OS policy assignment.
|
371
|
+
# @param [String] name
|
372
|
+
# Required. The name of the OS policy assignment to list revisions for.
|
373
|
+
# @param [Fixnum] page_size
|
374
|
+
# The maximum number of revisions to return.
|
375
|
+
# @param [String] page_token
|
376
|
+
# A pagination token returned from a previous call to `
|
377
|
+
# ListOSPolicyAssignmentRevisions` that indicates where this listing should
|
378
|
+
# continue from.
|
379
|
+
# @param [String] fields
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
381
|
+
# @param [String] quota_user
|
382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
384
|
+
# @param [Google::Apis::RequestOptions] options
|
385
|
+
# Request-specific options
|
386
|
+
#
|
387
|
+
# @yield [result, err] Result & error if block supplied
|
388
|
+
# @yieldparam result [Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse] parsed result object
|
389
|
+
# @yieldparam err [StandardError] error object if request failed
|
390
|
+
#
|
391
|
+
# @return [Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse]
|
392
|
+
#
|
393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
396
|
+
def list_project_location_os_policy_assignment_revisions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
397
|
+
command = make_simple_command(:get, 'v1/{+name}:listRevisions', options)
|
398
|
+
command.response_representation = Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse::Representation
|
399
|
+
command.response_class = Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse
|
400
|
+
command.params['name'] = name unless name.nil?
|
401
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
402
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
403
|
+
command.query['fields'] = fields unless fields.nil?
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
405
|
+
execute_or_queue_command(command, &block)
|
406
|
+
end
|
407
|
+
|
408
|
+
# Update an existing OS policy assignment. This method creates a new revision of
|
409
|
+
# the OS policy assignment. This method returns a long running operation (LRO)
|
410
|
+
# that contains the rollout details. The rollout can be cancelled by cancelling
|
411
|
+
# the LRO. For more information, see [Method: projects.locations.
|
412
|
+
# osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/
|
413
|
+
# osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
|
414
|
+
# @param [String] name
|
415
|
+
# Resource name. Format: `projects/`project_number`/locations/`location`/
|
416
|
+
# osPolicyAssignments/`os_policy_assignment_id`` This field is ignored when you
|
417
|
+
# create an OS policy assignment.
|
418
|
+
# @param [Google::Apis::OsconfigV1::OsPolicyAssignment] os_policy_assignment_object
|
419
|
+
# @param [String] update_mask
|
420
|
+
# Optional. Field mask that controls which fields of the assignment should be
|
421
|
+
# updated.
|
422
|
+
# @param [String] fields
|
423
|
+
# Selector specifying which fields to include in a partial response.
|
424
|
+
# @param [String] quota_user
|
425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
427
|
+
# @param [Google::Apis::RequestOptions] options
|
428
|
+
# Request-specific options
|
429
|
+
#
|
430
|
+
# @yield [result, err] Result & error if block supplied
|
431
|
+
# @yieldparam result [Google::Apis::OsconfigV1::Operation] parsed result object
|
432
|
+
# @yieldparam err [StandardError] error object if request failed
|
433
|
+
#
|
434
|
+
# @return [Google::Apis::OsconfigV1::Operation]
|
435
|
+
#
|
436
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
437
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
438
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
439
|
+
def patch_project_location_os_policy_assignment(name, os_policy_assignment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
440
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
441
|
+
command.request_representation = Google::Apis::OsconfigV1::OsPolicyAssignment::Representation
|
442
|
+
command.request_object = os_policy_assignment_object
|
443
|
+
command.response_representation = Google::Apis::OsconfigV1::Operation::Representation
|
444
|
+
command.response_class = Google::Apis::OsconfigV1::Operation
|
445
|
+
command.params['name'] = name unless name.nil?
|
446
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
447
|
+
command.query['fields'] = fields unless fields.nil?
|
448
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
449
|
+
execute_or_queue_command(command, &block)
|
450
|
+
end
|
451
|
+
|
132
452
|
# Create an OS Config patch deployment.
|
133
453
|
# @param [String] parent
|
134
454
|
# Required. The project to apply this patch deployment to in the form `projects/*
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-osconfig_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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: 2021-
|
11
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for OS Config API V1. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.10.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|