google-api-client 0.39.0 → 0.39.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/generated/google/apis/bigquery_v2.rb +1 -1
  4. data/generated/google/apis/bigquery_v2/classes.rb +566 -0
  5. data/generated/google/apis/bigquery_v2/representations.rb +147 -0
  6. data/generated/google/apis/bigquery_v2/service.rb +120 -0
  7. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  8. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +26 -10
  9. data/generated/google/apis/books_v1.rb +3 -3
  10. data/generated/google/apis/books_v1/classes.rb +435 -289
  11. data/generated/google/apis/books_v1/representations.rb +124 -91
  12. data/generated/google/apis/books_v1/service.rb +354 -484
  13. data/generated/google/apis/chat_v1.rb +1 -1
  14. data/generated/google/apis/chat_v1/classes.rb +15 -0
  15. data/generated/google/apis/chat_v1/representations.rb +2 -0
  16. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  17. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  18. data/generated/google/apis/cloudfunctions_v1/classes.rb +24 -12
  19. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -0
  20. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  21. data/generated/google/apis/cloudtasks_v2/classes.rb +26 -10
  22. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  23. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +26 -10
  24. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  25. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +26 -10
  26. data/generated/google/apis/logging_v2.rb +1 -1
  27. data/generated/google/apis/logging_v2/classes.rb +45 -32
  28. data/generated/google/apis/logging_v2/service.rb +9 -5
  29. data/generated/google/apis/monitoring_v3.rb +1 -1
  30. data/generated/google/apis/monitoring_v3/classes.rb +7 -5
  31. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  32. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +26 -14
  33. data/generated/google/apis/networkmanagement_v1beta1/service.rb +9 -6
  34. data/generated/google/apis/osconfig_v1beta.rb +35 -0
  35. data/generated/google/apis/osconfig_v1beta/classes.rb +2365 -0
  36. data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
  37. data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
  38. data/generated/google/apis/pubsub_v1.rb +1 -1
  39. data/generated/google/apis/pubsub_v1/classes.rb +36 -11
  40. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  41. data/generated/google/apis/pubsub_v1/service.rb +15 -6
  42. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  43. data/generated/google/apis/pubsub_v1beta2/classes.rb +23 -10
  44. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -4
  45. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  46. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -10
  47. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  48. data/generated/google/apis/servicemanagement_v1/classes.rb +61 -26
  49. data/generated/google/apis/servicemanagement_v1/service.rb +4 -4
  50. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  51. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  52. data/generated/google/apis/vault_v1.rb +1 -1
  53. data/generated/google/apis/vault_v1/classes.rb +4 -1
  54. data/lib/google/apis/version.rb +1 -1
  55. metadata +7 -3
@@ -0,0 +1,605 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module OsconfigV1beta
23
+ # Cloud OS Config API
24
+ #
25
+ # OS management tools that can be used for patch management, patch compliance,
26
+ # and configuration management on VM instances.
27
+ #
28
+ # @example
29
+ # require 'google/apis/osconfig_v1beta'
30
+ #
31
+ # Osconfig = Google::Apis::OsconfigV1beta # Alias the module
32
+ # service = Osconfig::SystemsManagementService.new
33
+ #
34
+ # @see https://cloud.google.com/
35
+ class SystemsManagementService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://osconfig.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Create an OS Config guest policy.
52
+ # @param [String] parent
53
+ # Required. The resource name of the parent using one of the following forms:
54
+ # `projects/`project_number``.
55
+ # @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
56
+ # @param [String] guest_policy_id
57
+ # Required. The logical name of the guest policy in the project
58
+ # with the following restrictions:
59
+ # * Must contain only lowercase letters, numbers, and hyphens.
60
+ # * Must start with a letter.
61
+ # * Must be between 1-63 characters.
62
+ # * Must end with a number or a letter.
63
+ # * Must be unique within the project.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::OsconfigV1beta::GuestPolicy] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::OsconfigV1beta::GuestPolicy]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def create_project_guest_policy(parent, guest_policy_object = nil, guest_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:post, 'v1beta/{+parent}/guestPolicies', options)
83
+ command.request_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
84
+ command.request_object = guest_policy_object
85
+ command.response_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
86
+ command.response_class = Google::Apis::OsconfigV1beta::GuestPolicy
87
+ command.params['parent'] = parent unless parent.nil?
88
+ command.query['guestPolicyId'] = guest_policy_id unless guest_policy_id.nil?
89
+ command.query['fields'] = fields unless fields.nil?
90
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
94
+ # Delete an OS Config guest policy.
95
+ # @param [String] name
96
+ # Required. The resource name of the guest policy using one of the following
97
+ # forms:
98
+ # `projects/`project_number`/guestPolicies/`guest_policy_id``.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::OsconfigV1beta::Empty] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::OsconfigV1beta::Empty]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def delete_project_guest_policy(name, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
118
+ command.response_representation = Google::Apis::OsconfigV1beta::Empty::Representation
119
+ command.response_class = Google::Apis::OsconfigV1beta::Empty
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Get an OS Config guest policy.
127
+ # @param [String] name
128
+ # Required. The resource name of the guest policy using one of the following
129
+ # forms:
130
+ # `projects/`project_number`/guestPolicies/`guest_policy_id``.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::OsconfigV1beta::GuestPolicy] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::OsconfigV1beta::GuestPolicy]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def get_project_guest_policy(name, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
150
+ command.response_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
151
+ command.response_class = Google::Apis::OsconfigV1beta::GuestPolicy
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
158
+ # Get a page of OS Config guest policies.
159
+ # @param [String] parent
160
+ # Required. The resource name of the parent using one of the following forms:
161
+ # `projects/`project_number``.
162
+ # @param [Fixnum] page_size
163
+ # The maximum number of guest policies to return.
164
+ # @param [String] page_token
165
+ # A pagination token returned from a previous call to `ListGuestPolicies`
166
+ # that indicates where this listing should continue from.
167
+ # @param [String] fields
168
+ # Selector specifying which fields to include in a partial response.
169
+ # @param [String] quota_user
170
+ # Available to use for quota purposes for server-side applications. Can be any
171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
172
+ # @param [Google::Apis::RequestOptions] options
173
+ # Request-specific options
174
+ #
175
+ # @yield [result, err] Result & error if block supplied
176
+ # @yieldparam result [Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse] parsed result object
177
+ # @yieldparam err [StandardError] error object if request failed
178
+ #
179
+ # @return [Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse]
180
+ #
181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
184
+ def list_project_guest_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:get, 'v1beta/{+parent}/guestPolicies', options)
186
+ command.response_representation = Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse::Representation
187
+ command.response_class = Google::Apis::OsconfigV1beta::ListGuestPoliciesResponse
188
+ command.params['parent'] = parent unless parent.nil?
189
+ command.query['pageSize'] = page_size unless page_size.nil?
190
+ command.query['pageToken'] = page_token unless page_token.nil?
191
+ command.query['fields'] = fields unless fields.nil?
192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
193
+ execute_or_queue_command(command, &block)
194
+ end
195
+
196
+ # Update an OS Config guest policy.
197
+ # @param [String] name
198
+ # Required. Unique name of the resource in this project using one of the
199
+ # following
200
+ # forms:
201
+ # `projects/`project_number`/guestPolicies/`guest_policy_id``.
202
+ # @param [Google::Apis::OsconfigV1beta::GuestPolicy] guest_policy_object
203
+ # @param [String] update_mask
204
+ # Field mask that controls which fields of the guest policy should be
205
+ # updated.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::OsconfigV1beta::GuestPolicy] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::OsconfigV1beta::GuestPolicy]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def patch_project_guest_policy(name, guest_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
225
+ command.request_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
226
+ command.request_object = guest_policy_object
227
+ command.response_representation = Google::Apis::OsconfigV1beta::GuestPolicy::Representation
228
+ command.response_class = Google::Apis::OsconfigV1beta::GuestPolicy
229
+ command.params['name'] = name unless name.nil?
230
+ command.query['updateMask'] = update_mask unless update_mask.nil?
231
+ command.query['fields'] = fields unless fields.nil?
232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ execute_or_queue_command(command, &block)
234
+ end
235
+
236
+ # Create an OS Config patch deployment.
237
+ # @param [String] parent
238
+ # Required. The project to apply this patch deployment to in the form `projects/*
239
+ # `.
240
+ # @param [Google::Apis::OsconfigV1beta::PatchDeployment] patch_deployment_object
241
+ # @param [String] patch_deployment_id
242
+ # Required. A name for the patch deployment in the project. When creating a name
243
+ # the following rules apply:
244
+ # * Must contain only lowercase letters, numbers, and hyphens.
245
+ # * Must start with a letter.
246
+ # * Must be between 1-63 characters.
247
+ # * Must end with a number or a letter.
248
+ # * Must be unique within the project.
249
+ # @param [String] fields
250
+ # Selector specifying which fields to include in a partial response.
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [Google::Apis::RequestOptions] options
255
+ # Request-specific options
256
+ #
257
+ # @yield [result, err] Result & error if block supplied
258
+ # @yieldparam result [Google::Apis::OsconfigV1beta::PatchDeployment] parsed result object
259
+ # @yieldparam err [StandardError] error object if request failed
260
+ #
261
+ # @return [Google::Apis::OsconfigV1beta::PatchDeployment]
262
+ #
263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
266
+ def create_project_patch_deployment(parent, patch_deployment_object = nil, patch_deployment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
267
+ command = make_simple_command(:post, 'v1beta/{+parent}/patchDeployments', options)
268
+ command.request_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
269
+ command.request_object = patch_deployment_object
270
+ command.response_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
271
+ command.response_class = Google::Apis::OsconfigV1beta::PatchDeployment
272
+ command.params['parent'] = parent unless parent.nil?
273
+ command.query['patchDeploymentId'] = patch_deployment_id unless patch_deployment_id.nil?
274
+ command.query['fields'] = fields unless fields.nil?
275
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
276
+ execute_or_queue_command(command, &block)
277
+ end
278
+
279
+ # Delete an OS Config patch deployment.
280
+ # @param [String] name
281
+ # Required. The resource name of the patch deployment in the form
282
+ # `projects/*/patchDeployments/*`.
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [String] quota_user
286
+ # Available to use for quota purposes for server-side applications. Can be any
287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
288
+ # @param [Google::Apis::RequestOptions] options
289
+ # Request-specific options
290
+ #
291
+ # @yield [result, err] Result & error if block supplied
292
+ # @yieldparam result [Google::Apis::OsconfigV1beta::Empty] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::OsconfigV1beta::Empty]
296
+ #
297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
300
+ def delete_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
301
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
302
+ command.response_representation = Google::Apis::OsconfigV1beta::Empty::Representation
303
+ command.response_class = Google::Apis::OsconfigV1beta::Empty
304
+ command.params['name'] = name unless name.nil?
305
+ command.query['fields'] = fields unless fields.nil?
306
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
307
+ execute_or_queue_command(command, &block)
308
+ end
309
+
310
+ # Get an OS Config patch deployment.
311
+ # @param [String] name
312
+ # Required. The resource name of the patch deployment in the form
313
+ # `projects/*/patchDeployments/*`.
314
+ # @param [String] fields
315
+ # Selector specifying which fields to include in a partial response.
316
+ # @param [String] quota_user
317
+ # Available to use for quota purposes for server-side applications. Can be any
318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
319
+ # @param [Google::Apis::RequestOptions] options
320
+ # Request-specific options
321
+ #
322
+ # @yield [result, err] Result & error if block supplied
323
+ # @yieldparam result [Google::Apis::OsconfigV1beta::PatchDeployment] parsed result object
324
+ # @yieldparam err [StandardError] error object if request failed
325
+ #
326
+ # @return [Google::Apis::OsconfigV1beta::PatchDeployment]
327
+ #
328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
331
+ def get_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
332
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
333
+ command.response_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
334
+ command.response_class = Google::Apis::OsconfigV1beta::PatchDeployment
335
+ command.params['name'] = name unless name.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Get a page of OS Config patch deployments.
342
+ # @param [String] parent
343
+ # Required. The resource name of the parent in the form `projects/*`.
344
+ # @param [Fixnum] page_size
345
+ # Optional. The maximum number of patch deployments to return. Default is 100.
346
+ # @param [String] page_token
347
+ # Optional. A pagination token returned from a previous call to
348
+ # ListPatchDeployments
349
+ # that indicates where this listing should continue from.
350
+ # @param [String] fields
351
+ # Selector specifying which fields to include in a partial response.
352
+ # @param [String] quota_user
353
+ # Available to use for quota purposes for server-side applications. Can be any
354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
355
+ # @param [Google::Apis::RequestOptions] options
356
+ # Request-specific options
357
+ #
358
+ # @yield [result, err] Result & error if block supplied
359
+ # @yieldparam result [Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse] parsed result object
360
+ # @yieldparam err [StandardError] error object if request failed
361
+ #
362
+ # @return [Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse]
363
+ #
364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
367
+ def list_project_patch_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
368
+ command = make_simple_command(:get, 'v1beta/{+parent}/patchDeployments', options)
369
+ command.response_representation = Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse::Representation
370
+ command.response_class = Google::Apis::OsconfigV1beta::ListPatchDeploymentsResponse
371
+ command.params['parent'] = parent unless parent.nil?
372
+ command.query['pageSize'] = page_size unless page_size.nil?
373
+ command.query['pageToken'] = page_token unless page_token.nil?
374
+ command.query['fields'] = fields unless fields.nil?
375
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
376
+ execute_or_queue_command(command, &block)
377
+ end
378
+
379
+ # Cancel a patch job. The patch job must be active. Canceled patch jobs
380
+ # cannot be restarted.
381
+ # @param [String] name
382
+ # Required. Name of the patch in the form `projects/*/patchJobs/*`
383
+ # @param [Google::Apis::OsconfigV1beta::CancelPatchJobRequest] cancel_patch_job_request_object
384
+ # @param [String] fields
385
+ # Selector specifying which fields to include in a partial response.
386
+ # @param [String] quota_user
387
+ # Available to use for quota purposes for server-side applications. Can be any
388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
389
+ # @param [Google::Apis::RequestOptions] options
390
+ # Request-specific options
391
+ #
392
+ # @yield [result, err] Result & error if block supplied
393
+ # @yieldparam result [Google::Apis::OsconfigV1beta::PatchJob] parsed result object
394
+ # @yieldparam err [StandardError] error object if request failed
395
+ #
396
+ # @return [Google::Apis::OsconfigV1beta::PatchJob]
397
+ #
398
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
399
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
400
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
401
+ def cancel_patch_job(name, cancel_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
402
+ command = make_simple_command(:post, 'v1beta/{+name}:cancel', options)
403
+ command.request_representation = Google::Apis::OsconfigV1beta::CancelPatchJobRequest::Representation
404
+ command.request_object = cancel_patch_job_request_object
405
+ command.response_representation = Google::Apis::OsconfigV1beta::PatchJob::Representation
406
+ command.response_class = Google::Apis::OsconfigV1beta::PatchJob
407
+ command.params['name'] = name unless name.nil?
408
+ command.query['fields'] = fields unless fields.nil?
409
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
410
+ execute_or_queue_command(command, &block)
411
+ end
412
+
413
+ # Patch VM instances by creating and running a patch job.
414
+ # @param [String] parent
415
+ # Required. The project in which to run this patch in the form `projects/*`
416
+ # @param [Google::Apis::OsconfigV1beta::ExecutePatchJobRequest] execute_patch_job_request_object
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
419
+ # @param [String] quota_user
420
+ # Available to use for quota purposes for server-side applications. Can be any
421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
422
+ # @param [Google::Apis::RequestOptions] options
423
+ # Request-specific options
424
+ #
425
+ # @yield [result, err] Result & error if block supplied
426
+ # @yieldparam result [Google::Apis::OsconfigV1beta::PatchJob] parsed result object
427
+ # @yieldparam err [StandardError] error object if request failed
428
+ #
429
+ # @return [Google::Apis::OsconfigV1beta::PatchJob]
430
+ #
431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
434
+ def execute_patch_job(parent, execute_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:post, 'v1beta/{+parent}/patchJobs:execute', options)
436
+ command.request_representation = Google::Apis::OsconfigV1beta::ExecutePatchJobRequest::Representation
437
+ command.request_object = execute_patch_job_request_object
438
+ command.response_representation = Google::Apis::OsconfigV1beta::PatchJob::Representation
439
+ command.response_class = Google::Apis::OsconfigV1beta::PatchJob
440
+ command.params['parent'] = parent unless parent.nil?
441
+ command.query['fields'] = fields unless fields.nil?
442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
443
+ execute_or_queue_command(command, &block)
444
+ end
445
+
446
+ # Get the patch job. This can be used to track the progress of an
447
+ # ongoing patch job or review the details of completed jobs.
448
+ # @param [String] name
449
+ # Required. Name of the patch in the form `projects/*/patchJobs/*`
450
+ # @param [String] fields
451
+ # Selector specifying which fields to include in a partial response.
452
+ # @param [String] quota_user
453
+ # Available to use for quota purposes for server-side applications. Can be any
454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
455
+ # @param [Google::Apis::RequestOptions] options
456
+ # Request-specific options
457
+ #
458
+ # @yield [result, err] Result & error if block supplied
459
+ # @yieldparam result [Google::Apis::OsconfigV1beta::PatchJob] parsed result object
460
+ # @yieldparam err [StandardError] error object if request failed
461
+ #
462
+ # @return [Google::Apis::OsconfigV1beta::PatchJob]
463
+ #
464
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
465
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
466
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
467
+ def get_project_patch_job(name, fields: nil, quota_user: nil, options: nil, &block)
468
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
469
+ command.response_representation = Google::Apis::OsconfigV1beta::PatchJob::Representation
470
+ command.response_class = Google::Apis::OsconfigV1beta::PatchJob
471
+ command.params['name'] = name unless name.nil?
472
+ command.query['fields'] = fields unless fields.nil?
473
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
474
+ execute_or_queue_command(command, &block)
475
+ end
476
+
477
+ # Get a list of patch jobs.
478
+ # @param [String] parent
479
+ # Required. In the form of `projects/*`
480
+ # @param [String] filter
481
+ # If provided, this field specifies the criteria that must be met by patch
482
+ # jobs to be included in the response.
483
+ # Currently, filtering is only available on the patch_deployment field.
484
+ # @param [Fixnum] page_size
485
+ # The maximum number of instance status to return.
486
+ # @param [String] page_token
487
+ # A pagination token returned from a previous call
488
+ # that indicates where this listing should continue from.
489
+ # @param [String] fields
490
+ # Selector specifying which fields to include in a partial response.
491
+ # @param [String] quota_user
492
+ # Available to use for quota purposes for server-side applications. Can be any
493
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
494
+ # @param [Google::Apis::RequestOptions] options
495
+ # Request-specific options
496
+ #
497
+ # @yield [result, err] Result & error if block supplied
498
+ # @yieldparam result [Google::Apis::OsconfigV1beta::ListPatchJobsResponse] parsed result object
499
+ # @yieldparam err [StandardError] error object if request failed
500
+ #
501
+ # @return [Google::Apis::OsconfigV1beta::ListPatchJobsResponse]
502
+ #
503
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
504
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
505
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
506
+ def list_project_patch_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
507
+ command = make_simple_command(:get, 'v1beta/{+parent}/patchJobs', options)
508
+ command.response_representation = Google::Apis::OsconfigV1beta::ListPatchJobsResponse::Representation
509
+ command.response_class = Google::Apis::OsconfigV1beta::ListPatchJobsResponse
510
+ command.params['parent'] = parent unless parent.nil?
511
+ command.query['filter'] = filter unless filter.nil?
512
+ command.query['pageSize'] = page_size unless page_size.nil?
513
+ command.query['pageToken'] = page_token unless page_token.nil?
514
+ command.query['fields'] = fields unless fields.nil?
515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
516
+ execute_or_queue_command(command, &block)
517
+ end
518
+
519
+ # Get a list of instance details for a given patch job.
520
+ # @param [String] parent
521
+ # Required. The parent for the instances are in the form of `projects/*/
522
+ # patchJobs/*`.
523
+ # @param [String] filter
524
+ # A filter expression that filters results listed in the response. This
525
+ # field supports filtering results by instance zone, name, state, or
526
+ # `failure_reason`.
527
+ # @param [Fixnum] page_size
528
+ # The maximum number of instance details records to return. Default is 100.
529
+ # @param [String] page_token
530
+ # A pagination token returned from a previous call
531
+ # that indicates where this listing should continue from.
532
+ # @param [String] fields
533
+ # Selector specifying which fields to include in a partial response.
534
+ # @param [String] quota_user
535
+ # Available to use for quota purposes for server-side applications. Can be any
536
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
537
+ # @param [Google::Apis::RequestOptions] options
538
+ # Request-specific options
539
+ #
540
+ # @yield [result, err] Result & error if block supplied
541
+ # @yieldparam result [Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse] parsed result object
542
+ # @yieldparam err [StandardError] error object if request failed
543
+ #
544
+ # @return [Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse]
545
+ #
546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
549
+ def list_project_patch_job_instance_details(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
550
+ command = make_simple_command(:get, 'v1beta/{+parent}/instanceDetails', options)
551
+ command.response_representation = Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse::Representation
552
+ command.response_class = Google::Apis::OsconfigV1beta::ListPatchJobInstanceDetailsResponse
553
+ command.params['parent'] = parent unless parent.nil?
554
+ command.query['filter'] = filter unless filter.nil?
555
+ command.query['pageSize'] = page_size unless page_size.nil?
556
+ command.query['pageToken'] = page_token unless page_token.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ execute_or_queue_command(command, &block)
560
+ end
561
+
562
+ # Lookup the effective guest policy that applies to a VM instance. This
563
+ # lookup merges all policies that are assigned to the instance ancestry.
564
+ # @param [String] instance
565
+ # Required. The VM instance whose policies are being looked up.
566
+ # @param [Google::Apis::OsconfigV1beta::LookupEffectiveGuestPolicyRequest] lookup_effective_guest_policy_request_object
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # Available to use for quota purposes for server-side applications. Can be any
571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
572
+ # @param [Google::Apis::RequestOptions] options
573
+ # Request-specific options
574
+ #
575
+ # @yield [result, err] Result & error if block supplied
576
+ # @yieldparam result [Google::Apis::OsconfigV1beta::EffectiveGuestPolicy] parsed result object
577
+ # @yieldparam err [StandardError] error object if request failed
578
+ #
579
+ # @return [Google::Apis::OsconfigV1beta::EffectiveGuestPolicy]
580
+ #
581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
584
+ def lookup_instance_effective_guest_policy(instance, lookup_effective_guest_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
585
+ command = make_simple_command(:post, 'v1beta/{+instance}:lookupEffectiveGuestPolicy', options)
586
+ command.request_representation = Google::Apis::OsconfigV1beta::LookupEffectiveGuestPolicyRequest::Representation
587
+ command.request_object = lookup_effective_guest_policy_request_object
588
+ command.response_representation = Google::Apis::OsconfigV1beta::EffectiveGuestPolicy::Representation
589
+ command.response_class = Google::Apis::OsconfigV1beta::EffectiveGuestPolicy
590
+ command.params['instance'] = instance unless instance.nil?
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
596
+ protected
597
+
598
+ def apply_command_defaults(command)
599
+ command.query['key'] = key unless key.nil?
600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
601
+ end
602
+ end
603
+ end
604
+ end
605
+ end