google-apis-osconfig_v2 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/osconfig_v2/classes.rb +1872 -0
- data/lib/google/apis/osconfig_v2/gem_version.rb +28 -0
- data/lib/google/apis/osconfig_v2/representations.rb +800 -0
- data/lib/google/apis/osconfig_v2/service.rb +1180 -0
- data/lib/google/apis/osconfig_v2.rb +37 -0
- data/lib/google-apis-osconfig_v2.rb +15 -0
- metadata +79 -0
@@ -0,0 +1,1180 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 OsconfigV2
|
23
|
+
# 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_v2'
|
30
|
+
#
|
31
|
+
# Osconfig = Google::Apis::OsconfigV2 # Alias the module
|
32
|
+
# service = Osconfig::OSConfigService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/compute/docs/osconfig/rest
|
35
|
+
class OSConfigService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://osconfig.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
# API key. Your API key identifies your project and provides you with API access,
|
40
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
41
|
+
attr_accessor :key
|
42
|
+
|
43
|
+
# @return [String]
|
44
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
45
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46
|
+
attr_accessor :quota_user
|
47
|
+
|
48
|
+
def initialize
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
50
|
+
client_name: 'google-apis-osconfig_v2',
|
51
|
+
client_version: Google::Apis::OsconfigV2::GEM_VERSION)
|
52
|
+
@batch_path = 'batch'
|
53
|
+
end
|
54
|
+
|
55
|
+
# Creates a new policy orchestrator under the given folder resource. `name`
|
56
|
+
# field of the given orchestrator are ignored and instead replaced by a product
|
57
|
+
# of `parent` and `policy_orchestrator_id`. Orchestrator state field might be
|
58
|
+
# only set to `ACTIVE`, `STOPPED` or omitted (in which case, the created
|
59
|
+
# resource will be in `ACTIVE` state anyway).
|
60
|
+
# @param [String] parent
|
61
|
+
# Required. The parent resource name in the form of: * `organizations/`
|
62
|
+
# organization_id`/locations/global` * `folders/`folder_id`/locations/global` * `
|
63
|
+
# projects/`project_id_or_number`/locations/global`
|
64
|
+
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
|
65
|
+
# @param [String] policy_orchestrator_id
|
66
|
+
# Required. The logical identifier of the policy orchestrator, with the
|
67
|
+
# following restrictions: * Must contain only lowercase letters, numbers, and
|
68
|
+
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
|
69
|
+
# end with a number or a letter. * Must be unique within the parent.
|
70
|
+
# @param [String] request_id
|
71
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
72
|
+
# request ID so that if you must retry your request, the server will know to
|
73
|
+
# ignore the request if it has already been completed. The server will guarantee
|
74
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
75
|
+
# situation where you make an initial request and the request times out. If you
|
76
|
+
# make the request again with the same request ID, the server can check if
|
77
|
+
# original operation with the same request ID was received, and if so, will
|
78
|
+
# ignore the second request. This prevents clients from accidentally creating
|
79
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
80
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
81
|
+
# @param [String] fields
|
82
|
+
# Selector specifying which fields to include in a partial response.
|
83
|
+
# @param [String] quota_user
|
84
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
85
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
86
|
+
# @param [Google::Apis::RequestOptions] options
|
87
|
+
# Request-specific options
|
88
|
+
#
|
89
|
+
# @yield [result, err] Result & error if block supplied
|
90
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
91
|
+
# @yieldparam err [StandardError] error object if request failed
|
92
|
+
#
|
93
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
94
|
+
#
|
95
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
96
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
97
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
98
|
+
def create_folder_location_global_policy_orchestrator(parent, google_cloud_osconfig_v2__policy_orchestrator_object = nil, policy_orchestrator_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
99
|
+
command = make_simple_command(:post, 'v2/{+parent}/policyOrchestrators', options)
|
100
|
+
command.request_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
101
|
+
command.request_object = google_cloud_osconfig_v2__policy_orchestrator_object
|
102
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
103
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
104
|
+
command.params['parent'] = parent unless parent.nil?
|
105
|
+
command.query['policyOrchestratorId'] = policy_orchestrator_id unless policy_orchestrator_id.nil?
|
106
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
107
|
+
command.query['fields'] = fields unless fields.nil?
|
108
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
109
|
+
execute_or_queue_command(command, &block)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Deletes an existing policy orchestrator resource, parented by a folder.
|
113
|
+
# @param [String] name
|
114
|
+
# Required. Name of the resource to be deleted.
|
115
|
+
# @param [String] etag
|
116
|
+
# Optional. The current etag of the policy orchestrator. If an etag is provided
|
117
|
+
# and does not match the current etag of the policy orchestrator, deletion will
|
118
|
+
# be blocked and an ABORTED error will be returned.
|
119
|
+
# @param [String] request_id
|
120
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
121
|
+
# request ID so that if you must retry your request, the server will know to
|
122
|
+
# ignore the request if it has already been completed. The server will guarantee
|
123
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
124
|
+
# situation where you make an initial request and the request times out. If you
|
125
|
+
# make the request again with the same request ID, the server can check if
|
126
|
+
# original operation with the same request ID was received, and if so, will
|
127
|
+
# ignore the second request. This prevents clients from accidentally creating
|
128
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
129
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
130
|
+
# @param [String] fields
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
132
|
+
# @param [String] quota_user
|
133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
+
# @param [Google::Apis::RequestOptions] options
|
136
|
+
# Request-specific options
|
137
|
+
#
|
138
|
+
# @yield [result, err] Result & error if block supplied
|
139
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
140
|
+
# @yieldparam err [StandardError] error object if request failed
|
141
|
+
#
|
142
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
143
|
+
#
|
144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
+
def delete_folder_location_global_policy_orchestrator(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
149
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
150
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
151
|
+
command.params['name'] = name unless name.nil?
|
152
|
+
command.query['etag'] = etag unless etag.nil?
|
153
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
154
|
+
command.query['fields'] = fields unless fields.nil?
|
155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
|
+
execute_or_queue_command(command, &block)
|
157
|
+
end
|
158
|
+
|
159
|
+
# Retrieves an existing policy orchestrator, parented by a folder.
|
160
|
+
# @param [String] name
|
161
|
+
# Required. The resource name.
|
162
|
+
# @param [String] fields
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
164
|
+
# @param [String] quota_user
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
168
|
+
# Request-specific options
|
169
|
+
#
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
171
|
+
# @yieldparam result [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] parsed result object
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
173
|
+
#
|
174
|
+
# @return [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator]
|
175
|
+
#
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
+
def get_folder_location_global_policy_orchestrator(name, fields: nil, quota_user: nil, options: nil, &block)
|
180
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
181
|
+
command.response_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
182
|
+
command.response_class = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator
|
183
|
+
command.params['name'] = name unless name.nil?
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
186
|
+
execute_or_queue_command(command, &block)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Lists the policy orchestrators under the given parent folder resource.
|
190
|
+
# @param [String] parent
|
191
|
+
# Required. The parent resource name.
|
192
|
+
# @param [String] filter
|
193
|
+
# Optional. Filtering results
|
194
|
+
# @param [String] order_by
|
195
|
+
# Optional. Hint for how to order the results
|
196
|
+
# @param [Fixnum] page_size
|
197
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
198
|
+
# If unspecified, server will pick an appropriate default.
|
199
|
+
# @param [String] page_token
|
200
|
+
# Optional. A token identifying a page of results the server should return.
|
201
|
+
# @param [String] fields
|
202
|
+
# Selector specifying which fields to include in a partial response.
|
203
|
+
# @param [String] quota_user
|
204
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
205
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
206
|
+
# @param [Google::Apis::RequestOptions] options
|
207
|
+
# Request-specific options
|
208
|
+
#
|
209
|
+
# @yield [result, err] Result & error if block supplied
|
210
|
+
# @yieldparam result [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse] parsed result object
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
212
|
+
#
|
213
|
+
# @return [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse]
|
214
|
+
#
|
215
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
216
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
|
+
def list_folder_location_global_policy_orchestrators(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
219
|
+
command = make_simple_command(:get, 'v2/{+parent}/policyOrchestrators', options)
|
220
|
+
command.response_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse::Representation
|
221
|
+
command.response_class = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse
|
222
|
+
command.params['parent'] = parent unless parent.nil?
|
223
|
+
command.query['filter'] = filter unless filter.nil?
|
224
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
225
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
226
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
227
|
+
command.query['fields'] = fields unless fields.nil?
|
228
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
229
|
+
execute_or_queue_command(command, &block)
|
230
|
+
end
|
231
|
+
|
232
|
+
# Updates an existing policy orchestrator, parented by a folder.
|
233
|
+
# @param [String] name
|
234
|
+
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
|
235
|
+
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
|
236
|
+
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
|
237
|
+
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
|
238
|
+
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
|
239
|
+
# @param [String] update_mask
|
240
|
+
# Optional. The list of fields to merge into the existing policy orchestrator. A
|
241
|
+
# special ["*"] field mask can be used to simply replace the entire resource.
|
242
|
+
# Otherwise, for all paths referenced in the mask, following merge rules are
|
243
|
+
# used: * output only fields are ignored, * primitive fields are replaced, *
|
244
|
+
# repeated fields are replaced, * map fields are merged key by key, * message
|
245
|
+
# fields are cleared if not set in the request, otherwise they are merged
|
246
|
+
# recursively (in particular - message fields set to an empty message has no
|
247
|
+
# side effects) If field mask is not specified, it is automatically inferred
|
248
|
+
# from the request using following rules: * primitive fields are listed, if set
|
249
|
+
# to a non-default value (as there is no way to distinguish between default and
|
250
|
+
# unset value), * map and repeated fields are listed, * `google.protobuf.Any`
|
251
|
+
# fields are listed, * other message fields are traversed recursively. Note:
|
252
|
+
# implicit mask does not allow clearing fields.
|
253
|
+
# @param [String] fields
|
254
|
+
# Selector specifying which fields to include in a partial response.
|
255
|
+
# @param [String] quota_user
|
256
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
257
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
258
|
+
# @param [Google::Apis::RequestOptions] options
|
259
|
+
# Request-specific options
|
260
|
+
#
|
261
|
+
# @yield [result, err] Result & error if block supplied
|
262
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
263
|
+
# @yieldparam err [StandardError] error object if request failed
|
264
|
+
#
|
265
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
266
|
+
#
|
267
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
268
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
269
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
270
|
+
def patch_folder_location_global_policy_orchestrator(name, google_cloud_osconfig_v2__policy_orchestrator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
271
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
272
|
+
command.request_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
273
|
+
command.request_object = google_cloud_osconfig_v2__policy_orchestrator_object
|
274
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
275
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
276
|
+
command.params['name'] = name unless name.nil?
|
277
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
278
|
+
command.query['fields'] = fields unless fields.nil?
|
279
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
280
|
+
execute_or_queue_command(command, &block)
|
281
|
+
end
|
282
|
+
|
283
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
284
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
285
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
286
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
287
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
288
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
289
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
290
|
+
# , corresponding to `Code.CANCELLED`.
|
291
|
+
# @param [String] name
|
292
|
+
# The name of the operation resource to be cancelled.
|
293
|
+
# @param [Google::Apis::OsconfigV2::CancelOperationRequest] cancel_operation_request_object
|
294
|
+
# @param [String] fields
|
295
|
+
# Selector specifying which fields to include in a partial response.
|
296
|
+
# @param [String] quota_user
|
297
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
298
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
299
|
+
# @param [Google::Apis::RequestOptions] options
|
300
|
+
# Request-specific options
|
301
|
+
#
|
302
|
+
# @yield [result, err] Result & error if block supplied
|
303
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Empty] parsed result object
|
304
|
+
# @yieldparam err [StandardError] error object if request failed
|
305
|
+
#
|
306
|
+
# @return [Google::Apis::OsconfigV2::Empty]
|
307
|
+
#
|
308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
311
|
+
def cancel_folder_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
312
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
313
|
+
command.request_representation = Google::Apis::OsconfigV2::CancelOperationRequest::Representation
|
314
|
+
command.request_object = cancel_operation_request_object
|
315
|
+
command.response_representation = Google::Apis::OsconfigV2::Empty::Representation
|
316
|
+
command.response_class = Google::Apis::OsconfigV2::Empty
|
317
|
+
command.params['name'] = name unless name.nil?
|
318
|
+
command.query['fields'] = fields unless fields.nil?
|
319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
320
|
+
execute_or_queue_command(command, &block)
|
321
|
+
end
|
322
|
+
|
323
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
324
|
+
# longer interested in the operation result. It does not cancel the operation.
|
325
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
326
|
+
# UNIMPLEMENTED`.
|
327
|
+
# @param [String] name
|
328
|
+
# The name of the operation resource to be deleted.
|
329
|
+
# @param [String] fields
|
330
|
+
# Selector specifying which fields to include in a partial response.
|
331
|
+
# @param [String] quota_user
|
332
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
333
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
334
|
+
# @param [Google::Apis::RequestOptions] options
|
335
|
+
# Request-specific options
|
336
|
+
#
|
337
|
+
# @yield [result, err] Result & error if block supplied
|
338
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Empty] parsed result object
|
339
|
+
# @yieldparam err [StandardError] error object if request failed
|
340
|
+
#
|
341
|
+
# @return [Google::Apis::OsconfigV2::Empty]
|
342
|
+
#
|
343
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
344
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
345
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
346
|
+
def delete_folder_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
347
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
348
|
+
command.response_representation = Google::Apis::OsconfigV2::Empty::Representation
|
349
|
+
command.response_class = Google::Apis::OsconfigV2::Empty
|
350
|
+
command.params['name'] = name unless name.nil?
|
351
|
+
command.query['fields'] = fields unless fields.nil?
|
352
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
353
|
+
execute_or_queue_command(command, &block)
|
354
|
+
end
|
355
|
+
|
356
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
357
|
+
# to poll the operation result at intervals as recommended by the API service.
|
358
|
+
# @param [String] name
|
359
|
+
# The name of the operation resource.
|
360
|
+
# @param [String] fields
|
361
|
+
# Selector specifying which fields to include in a partial response.
|
362
|
+
# @param [String] quota_user
|
363
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
364
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
365
|
+
# @param [Google::Apis::RequestOptions] options
|
366
|
+
# Request-specific options
|
367
|
+
#
|
368
|
+
# @yield [result, err] Result & error if block supplied
|
369
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
370
|
+
# @yieldparam err [StandardError] error object if request failed
|
371
|
+
#
|
372
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
373
|
+
#
|
374
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
375
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
376
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
377
|
+
def get_folder_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
378
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
379
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
380
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
381
|
+
command.params['name'] = name unless name.nil?
|
382
|
+
command.query['fields'] = fields unless fields.nil?
|
383
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
384
|
+
execute_or_queue_command(command, &block)
|
385
|
+
end
|
386
|
+
|
387
|
+
# Lists operations that match the specified filter in the request. If the server
|
388
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
389
|
+
# @param [String] name
|
390
|
+
# The name of the operation's parent resource.
|
391
|
+
# @param [String] filter
|
392
|
+
# The standard list filter.
|
393
|
+
# @param [Fixnum] page_size
|
394
|
+
# The standard list page size.
|
395
|
+
# @param [String] page_token
|
396
|
+
# The standard list page token.
|
397
|
+
# @param [String] fields
|
398
|
+
# Selector specifying which fields to include in a partial response.
|
399
|
+
# @param [String] quota_user
|
400
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
401
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
402
|
+
# @param [Google::Apis::RequestOptions] options
|
403
|
+
# Request-specific options
|
404
|
+
#
|
405
|
+
# @yield [result, err] Result & error if block supplied
|
406
|
+
# @yieldparam result [Google::Apis::OsconfigV2::ListOperationsResponse] parsed result object
|
407
|
+
# @yieldparam err [StandardError] error object if request failed
|
408
|
+
#
|
409
|
+
# @return [Google::Apis::OsconfigV2::ListOperationsResponse]
|
410
|
+
#
|
411
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
412
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
413
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
414
|
+
def list_folder_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
415
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
416
|
+
command.response_representation = Google::Apis::OsconfigV2::ListOperationsResponse::Representation
|
417
|
+
command.response_class = Google::Apis::OsconfigV2::ListOperationsResponse
|
418
|
+
command.params['name'] = name unless name.nil?
|
419
|
+
command.query['filter'] = filter unless filter.nil?
|
420
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
421
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
422
|
+
command.query['fields'] = fields unless fields.nil?
|
423
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
424
|
+
execute_or_queue_command(command, &block)
|
425
|
+
end
|
426
|
+
|
427
|
+
# Creates a new policy orchestrator under the given organizations resource. `
|
428
|
+
# name` field of the given orchestrator are ignored and instead replaced by a
|
429
|
+
# product of `parent` and `policy_orchestrator_id`. Orchestrator state field
|
430
|
+
# might be only set to `ACTIVE`, `STOPPED` or omitted (in which case, the
|
431
|
+
# created resource will be in `ACTIVE` state anyway).
|
432
|
+
# @param [String] parent
|
433
|
+
# Required. The parent resource name in the form of: * `organizations/`
|
434
|
+
# organization_id`/locations/global` * `folders/`folder_id`/locations/global` * `
|
435
|
+
# projects/`project_id_or_number`/locations/global`
|
436
|
+
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
|
437
|
+
# @param [String] policy_orchestrator_id
|
438
|
+
# Required. The logical identifier of the policy orchestrator, with the
|
439
|
+
# following restrictions: * Must contain only lowercase letters, numbers, and
|
440
|
+
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
|
441
|
+
# end with a number or a letter. * Must be unique within the parent.
|
442
|
+
# @param [String] request_id
|
443
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
444
|
+
# request ID so that if you must retry your request, the server will know to
|
445
|
+
# ignore the request if it has already been completed. The server will guarantee
|
446
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
447
|
+
# situation where you make an initial request and the request times out. If you
|
448
|
+
# make the request again with the same request ID, the server can check if
|
449
|
+
# original operation with the same request ID was received, and if so, will
|
450
|
+
# ignore the second request. This prevents clients from accidentally creating
|
451
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
452
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
453
|
+
# @param [String] fields
|
454
|
+
# Selector specifying which fields to include in a partial response.
|
455
|
+
# @param [String] quota_user
|
456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
459
|
+
# Request-specific options
|
460
|
+
#
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
462
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
464
|
+
#
|
465
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
466
|
+
#
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
470
|
+
def create_organization_location_global_policy_orchestrator(parent, google_cloud_osconfig_v2__policy_orchestrator_object = nil, policy_orchestrator_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
471
|
+
command = make_simple_command(:post, 'v2/{+parent}/policyOrchestrators', options)
|
472
|
+
command.request_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
473
|
+
command.request_object = google_cloud_osconfig_v2__policy_orchestrator_object
|
474
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
475
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
476
|
+
command.params['parent'] = parent unless parent.nil?
|
477
|
+
command.query['policyOrchestratorId'] = policy_orchestrator_id unless policy_orchestrator_id.nil?
|
478
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
479
|
+
command.query['fields'] = fields unless fields.nil?
|
480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
481
|
+
execute_or_queue_command(command, &block)
|
482
|
+
end
|
483
|
+
|
484
|
+
# Deletes an existing policy orchestrator resource, parented by an organization.
|
485
|
+
# @param [String] name
|
486
|
+
# Required. Name of the resource to be deleted.
|
487
|
+
# @param [String] etag
|
488
|
+
# Optional. The current etag of the policy orchestrator. If an etag is provided
|
489
|
+
# and does not match the current etag of the policy orchestrator, deletion will
|
490
|
+
# be blocked and an ABORTED error will be returned.
|
491
|
+
# @param [String] request_id
|
492
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
493
|
+
# request ID so that if you must retry your request, the server will know to
|
494
|
+
# ignore the request if it has already been completed. The server will guarantee
|
495
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
496
|
+
# situation where you make an initial request and the request times out. If you
|
497
|
+
# make the request again with the same request ID, the server can check if
|
498
|
+
# original operation with the same request ID was received, and if so, will
|
499
|
+
# ignore the second request. This prevents clients from accidentally creating
|
500
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
501
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
502
|
+
# @param [String] fields
|
503
|
+
# Selector specifying which fields to include in a partial response.
|
504
|
+
# @param [String] quota_user
|
505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
507
|
+
# @param [Google::Apis::RequestOptions] options
|
508
|
+
# Request-specific options
|
509
|
+
#
|
510
|
+
# @yield [result, err] Result & error if block supplied
|
511
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
512
|
+
# @yieldparam err [StandardError] error object if request failed
|
513
|
+
#
|
514
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
515
|
+
#
|
516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
519
|
+
def delete_organization_location_global_policy_orchestrator(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
520
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
521
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
522
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
523
|
+
command.params['name'] = name unless name.nil?
|
524
|
+
command.query['etag'] = etag unless etag.nil?
|
525
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
526
|
+
command.query['fields'] = fields unless fields.nil?
|
527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
528
|
+
execute_or_queue_command(command, &block)
|
529
|
+
end
|
530
|
+
|
531
|
+
# Retrieves an existing policy orchestrator, parented by an organization.
|
532
|
+
# @param [String] name
|
533
|
+
# Required. The resource name.
|
534
|
+
# @param [String] fields
|
535
|
+
# Selector specifying which fields to include in a partial response.
|
536
|
+
# @param [String] quota_user
|
537
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
538
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
539
|
+
# @param [Google::Apis::RequestOptions] options
|
540
|
+
# Request-specific options
|
541
|
+
#
|
542
|
+
# @yield [result, err] Result & error if block supplied
|
543
|
+
# @yieldparam result [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] parsed result object
|
544
|
+
# @yieldparam err [StandardError] error object if request failed
|
545
|
+
#
|
546
|
+
# @return [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator]
|
547
|
+
#
|
548
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
549
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
550
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
551
|
+
def get_organization_location_global_policy_orchestrator(name, fields: nil, quota_user: nil, options: nil, &block)
|
552
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
553
|
+
command.response_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
554
|
+
command.response_class = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator
|
555
|
+
command.params['name'] = name unless name.nil?
|
556
|
+
command.query['fields'] = fields unless fields.nil?
|
557
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
558
|
+
execute_or_queue_command(command, &block)
|
559
|
+
end
|
560
|
+
|
561
|
+
# Lists the policy orchestrators under the given parent organization resource.
|
562
|
+
# @param [String] parent
|
563
|
+
# Required. The parent resource name.
|
564
|
+
# @param [String] filter
|
565
|
+
# Optional. Filtering results
|
566
|
+
# @param [String] order_by
|
567
|
+
# Optional. Hint for how to order the results
|
568
|
+
# @param [Fixnum] page_size
|
569
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
570
|
+
# If unspecified, server will pick an appropriate default.
|
571
|
+
# @param [String] page_token
|
572
|
+
# Optional. A token identifying a page of results the server should return.
|
573
|
+
# @param [String] fields
|
574
|
+
# Selector specifying which fields to include in a partial response.
|
575
|
+
# @param [String] quota_user
|
576
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
577
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
578
|
+
# @param [Google::Apis::RequestOptions] options
|
579
|
+
# Request-specific options
|
580
|
+
#
|
581
|
+
# @yield [result, err] Result & error if block supplied
|
582
|
+
# @yieldparam result [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse] parsed result object
|
583
|
+
# @yieldparam err [StandardError] error object if request failed
|
584
|
+
#
|
585
|
+
# @return [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse]
|
586
|
+
#
|
587
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
588
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
589
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
590
|
+
def list_organization_location_global_policy_orchestrators(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
591
|
+
command = make_simple_command(:get, 'v2/{+parent}/policyOrchestrators', options)
|
592
|
+
command.response_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse::Representation
|
593
|
+
command.response_class = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse
|
594
|
+
command.params['parent'] = parent unless parent.nil?
|
595
|
+
command.query['filter'] = filter unless filter.nil?
|
596
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
597
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
598
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
599
|
+
command.query['fields'] = fields unless fields.nil?
|
600
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
601
|
+
execute_or_queue_command(command, &block)
|
602
|
+
end
|
603
|
+
|
604
|
+
# Updates an existing policy orchestrator, parented by an organization.
|
605
|
+
# @param [String] name
|
606
|
+
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
|
607
|
+
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
|
608
|
+
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
|
609
|
+
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
|
610
|
+
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
|
611
|
+
# @param [String] update_mask
|
612
|
+
# Optional. The list of fields to merge into the existing policy orchestrator. A
|
613
|
+
# special ["*"] field mask can be used to simply replace the entire resource.
|
614
|
+
# Otherwise, for all paths referenced in the mask, following merge rules are
|
615
|
+
# used: * output only fields are ignored, * primitive fields are replaced, *
|
616
|
+
# repeated fields are replaced, * map fields are merged key by key, * message
|
617
|
+
# fields are cleared if not set in the request, otherwise they are merged
|
618
|
+
# recursively (in particular - message fields set to an empty message has no
|
619
|
+
# side effects) If field mask is not specified, it is automatically inferred
|
620
|
+
# from the request using following rules: * primitive fields are listed, if set
|
621
|
+
# to a non-default value (as there is no way to distinguish between default and
|
622
|
+
# unset value), * map and repeated fields are listed, * `google.protobuf.Any`
|
623
|
+
# fields are listed, * other message fields are traversed recursively. Note:
|
624
|
+
# implicit mask does not allow clearing fields.
|
625
|
+
# @param [String] fields
|
626
|
+
# Selector specifying which fields to include in a partial response.
|
627
|
+
# @param [String] quota_user
|
628
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
629
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
630
|
+
# @param [Google::Apis::RequestOptions] options
|
631
|
+
# Request-specific options
|
632
|
+
#
|
633
|
+
# @yield [result, err] Result & error if block supplied
|
634
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
635
|
+
# @yieldparam err [StandardError] error object if request failed
|
636
|
+
#
|
637
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
638
|
+
#
|
639
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
640
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
641
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
642
|
+
def patch_organization_location_global_policy_orchestrator(name, google_cloud_osconfig_v2__policy_orchestrator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
643
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
644
|
+
command.request_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
645
|
+
command.request_object = google_cloud_osconfig_v2__policy_orchestrator_object
|
646
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
647
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
648
|
+
command.params['name'] = name unless name.nil?
|
649
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
650
|
+
command.query['fields'] = fields unless fields.nil?
|
651
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
652
|
+
execute_or_queue_command(command, &block)
|
653
|
+
end
|
654
|
+
|
655
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
656
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
657
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
658
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
659
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
660
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
661
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
662
|
+
# , corresponding to `Code.CANCELLED`.
|
663
|
+
# @param [String] name
|
664
|
+
# The name of the operation resource to be cancelled.
|
665
|
+
# @param [Google::Apis::OsconfigV2::CancelOperationRequest] cancel_operation_request_object
|
666
|
+
# @param [String] fields
|
667
|
+
# Selector specifying which fields to include in a partial response.
|
668
|
+
# @param [String] quota_user
|
669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
671
|
+
# @param [Google::Apis::RequestOptions] options
|
672
|
+
# Request-specific options
|
673
|
+
#
|
674
|
+
# @yield [result, err] Result & error if block supplied
|
675
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Empty] parsed result object
|
676
|
+
# @yieldparam err [StandardError] error object if request failed
|
677
|
+
#
|
678
|
+
# @return [Google::Apis::OsconfigV2::Empty]
|
679
|
+
#
|
680
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
681
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
682
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
683
|
+
def cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
684
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
685
|
+
command.request_representation = Google::Apis::OsconfigV2::CancelOperationRequest::Representation
|
686
|
+
command.request_object = cancel_operation_request_object
|
687
|
+
command.response_representation = Google::Apis::OsconfigV2::Empty::Representation
|
688
|
+
command.response_class = Google::Apis::OsconfigV2::Empty
|
689
|
+
command.params['name'] = name unless name.nil?
|
690
|
+
command.query['fields'] = fields unless fields.nil?
|
691
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
692
|
+
execute_or_queue_command(command, &block)
|
693
|
+
end
|
694
|
+
|
695
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
696
|
+
# longer interested in the operation result. It does not cancel the operation.
|
697
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
698
|
+
# UNIMPLEMENTED`.
|
699
|
+
# @param [String] name
|
700
|
+
# The name of the operation resource to be deleted.
|
701
|
+
# @param [String] fields
|
702
|
+
# Selector specifying which fields to include in a partial response.
|
703
|
+
# @param [String] quota_user
|
704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
706
|
+
# @param [Google::Apis::RequestOptions] options
|
707
|
+
# Request-specific options
|
708
|
+
#
|
709
|
+
# @yield [result, err] Result & error if block supplied
|
710
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Empty] parsed result object
|
711
|
+
# @yieldparam err [StandardError] error object if request failed
|
712
|
+
#
|
713
|
+
# @return [Google::Apis::OsconfigV2::Empty]
|
714
|
+
#
|
715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
718
|
+
def delete_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
719
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
720
|
+
command.response_representation = Google::Apis::OsconfigV2::Empty::Representation
|
721
|
+
command.response_class = Google::Apis::OsconfigV2::Empty
|
722
|
+
command.params['name'] = name unless name.nil?
|
723
|
+
command.query['fields'] = fields unless fields.nil?
|
724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
725
|
+
execute_or_queue_command(command, &block)
|
726
|
+
end
|
727
|
+
|
728
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
729
|
+
# to poll the operation result at intervals as recommended by the API service.
|
730
|
+
# @param [String] name
|
731
|
+
# The name of the operation resource.
|
732
|
+
# @param [String] fields
|
733
|
+
# Selector specifying which fields to include in a partial response.
|
734
|
+
# @param [String] quota_user
|
735
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
736
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
737
|
+
# @param [Google::Apis::RequestOptions] options
|
738
|
+
# Request-specific options
|
739
|
+
#
|
740
|
+
# @yield [result, err] Result & error if block supplied
|
741
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
742
|
+
# @yieldparam err [StandardError] error object if request failed
|
743
|
+
#
|
744
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
745
|
+
#
|
746
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
747
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
748
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
749
|
+
def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
750
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
751
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
752
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
753
|
+
command.params['name'] = name unless name.nil?
|
754
|
+
command.query['fields'] = fields unless fields.nil?
|
755
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
756
|
+
execute_or_queue_command(command, &block)
|
757
|
+
end
|
758
|
+
|
759
|
+
# Lists operations that match the specified filter in the request. If the server
|
760
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
761
|
+
# @param [String] name
|
762
|
+
# The name of the operation's parent resource.
|
763
|
+
# @param [String] filter
|
764
|
+
# The standard list filter.
|
765
|
+
# @param [Fixnum] page_size
|
766
|
+
# The standard list page size.
|
767
|
+
# @param [String] page_token
|
768
|
+
# The standard list page token.
|
769
|
+
# @param [String] fields
|
770
|
+
# Selector specifying which fields to include in a partial response.
|
771
|
+
# @param [String] quota_user
|
772
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
773
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
774
|
+
# @param [Google::Apis::RequestOptions] options
|
775
|
+
# Request-specific options
|
776
|
+
#
|
777
|
+
# @yield [result, err] Result & error if block supplied
|
778
|
+
# @yieldparam result [Google::Apis::OsconfigV2::ListOperationsResponse] parsed result object
|
779
|
+
# @yieldparam err [StandardError] error object if request failed
|
780
|
+
#
|
781
|
+
# @return [Google::Apis::OsconfigV2::ListOperationsResponse]
|
782
|
+
#
|
783
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
784
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
785
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
786
|
+
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
787
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
788
|
+
command.response_representation = Google::Apis::OsconfigV2::ListOperationsResponse::Representation
|
789
|
+
command.response_class = Google::Apis::OsconfigV2::ListOperationsResponse
|
790
|
+
command.params['name'] = name unless name.nil?
|
791
|
+
command.query['filter'] = filter unless filter.nil?
|
792
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
793
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
794
|
+
command.query['fields'] = fields unless fields.nil?
|
795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
796
|
+
execute_or_queue_command(command, &block)
|
797
|
+
end
|
798
|
+
|
799
|
+
# Creates a new policy orchestrator under the given project resource. `name`
|
800
|
+
# field of the given orchestrator are ignored and instead replaced by a product
|
801
|
+
# of `parent` and `policy_orchestrator_id`. Orchestrator state field might be
|
802
|
+
# only set to `ACTIVE`, `STOPPED` or omitted (in which case, the created
|
803
|
+
# resource will be in `ACTIVE` state anyway).
|
804
|
+
# @param [String] parent
|
805
|
+
# Required. The parent resource name in the form of: * `organizations/`
|
806
|
+
# organization_id`/locations/global` * `folders/`folder_id`/locations/global` * `
|
807
|
+
# projects/`project_id_or_number`/locations/global`
|
808
|
+
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
|
809
|
+
# @param [String] policy_orchestrator_id
|
810
|
+
# Required. The logical identifier of the policy orchestrator, with the
|
811
|
+
# following restrictions: * Must contain only lowercase letters, numbers, and
|
812
|
+
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
|
813
|
+
# end with a number or a letter. * Must be unique within the parent.
|
814
|
+
# @param [String] request_id
|
815
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
816
|
+
# request ID so that if you must retry your request, the server will know to
|
817
|
+
# ignore the request if it has already been completed. The server will guarantee
|
818
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
819
|
+
# situation where you make an initial request and the request times out. If you
|
820
|
+
# make the request again with the same request ID, the server can check if
|
821
|
+
# original operation with the same request ID was received, and if so, will
|
822
|
+
# ignore the second request. This prevents clients from accidentally creating
|
823
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
824
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
825
|
+
# @param [String] fields
|
826
|
+
# Selector specifying which fields to include in a partial response.
|
827
|
+
# @param [String] quota_user
|
828
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
829
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
830
|
+
# @param [Google::Apis::RequestOptions] options
|
831
|
+
# Request-specific options
|
832
|
+
#
|
833
|
+
# @yield [result, err] Result & error if block supplied
|
834
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
835
|
+
# @yieldparam err [StandardError] error object if request failed
|
836
|
+
#
|
837
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
838
|
+
#
|
839
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
840
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
841
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
842
|
+
def create_project_location_global_policy_orchestrator(parent, google_cloud_osconfig_v2__policy_orchestrator_object = nil, policy_orchestrator_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
843
|
+
command = make_simple_command(:post, 'v2/{+parent}/policyOrchestrators', options)
|
844
|
+
command.request_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
845
|
+
command.request_object = google_cloud_osconfig_v2__policy_orchestrator_object
|
846
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
847
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
848
|
+
command.params['parent'] = parent unless parent.nil?
|
849
|
+
command.query['policyOrchestratorId'] = policy_orchestrator_id unless policy_orchestrator_id.nil?
|
850
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
851
|
+
command.query['fields'] = fields unless fields.nil?
|
852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
853
|
+
execute_or_queue_command(command, &block)
|
854
|
+
end
|
855
|
+
|
856
|
+
# Deletes an existing policy orchestrator resource, parented by a project.
|
857
|
+
# @param [String] name
|
858
|
+
# Required. Name of the resource to be deleted.
|
859
|
+
# @param [String] etag
|
860
|
+
# Optional. The current etag of the policy orchestrator. If an etag is provided
|
861
|
+
# and does not match the current etag of the policy orchestrator, deletion will
|
862
|
+
# be blocked and an ABORTED error will be returned.
|
863
|
+
# @param [String] request_id
|
864
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
865
|
+
# request ID so that if you must retry your request, the server will know to
|
866
|
+
# ignore the request if it has already been completed. The server will guarantee
|
867
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
868
|
+
# situation where you make an initial request and the request times out. If you
|
869
|
+
# make the request again with the same request ID, the server can check if
|
870
|
+
# original operation with the same request ID was received, and if so, will
|
871
|
+
# ignore the second request. This prevents clients from accidentally creating
|
872
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
873
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
874
|
+
# @param [String] fields
|
875
|
+
# Selector specifying which fields to include in a partial response.
|
876
|
+
# @param [String] quota_user
|
877
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
878
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
879
|
+
# @param [Google::Apis::RequestOptions] options
|
880
|
+
# Request-specific options
|
881
|
+
#
|
882
|
+
# @yield [result, err] Result & error if block supplied
|
883
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
884
|
+
# @yieldparam err [StandardError] error object if request failed
|
885
|
+
#
|
886
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
887
|
+
#
|
888
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
889
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
890
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
891
|
+
def delete_project_location_global_policy_orchestrator(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
892
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
893
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
894
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
895
|
+
command.params['name'] = name unless name.nil?
|
896
|
+
command.query['etag'] = etag unless etag.nil?
|
897
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
898
|
+
command.query['fields'] = fields unless fields.nil?
|
899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
900
|
+
execute_or_queue_command(command, &block)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Retrieves an existing policy orchestrator, parented by a project.
|
904
|
+
# @param [String] name
|
905
|
+
# Required. The resource name.
|
906
|
+
# @param [String] fields
|
907
|
+
# Selector specifying which fields to include in a partial response.
|
908
|
+
# @param [String] quota_user
|
909
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
910
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
911
|
+
# @param [Google::Apis::RequestOptions] options
|
912
|
+
# Request-specific options
|
913
|
+
#
|
914
|
+
# @yield [result, err] Result & error if block supplied
|
915
|
+
# @yieldparam result [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] parsed result object
|
916
|
+
# @yieldparam err [StandardError] error object if request failed
|
917
|
+
#
|
918
|
+
# @return [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator]
|
919
|
+
#
|
920
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
921
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
922
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
923
|
+
def get_project_location_global_policy_orchestrator(name, fields: nil, quota_user: nil, options: nil, &block)
|
924
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
925
|
+
command.response_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
926
|
+
command.response_class = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator
|
927
|
+
command.params['name'] = name unless name.nil?
|
928
|
+
command.query['fields'] = fields unless fields.nil?
|
929
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
930
|
+
execute_or_queue_command(command, &block)
|
931
|
+
end
|
932
|
+
|
933
|
+
# Lists the policy orchestrators under the given parent project resource.
|
934
|
+
# @param [String] parent
|
935
|
+
# Required. The parent resource name.
|
936
|
+
# @param [String] filter
|
937
|
+
# Optional. Filtering results
|
938
|
+
# @param [String] order_by
|
939
|
+
# Optional. Hint for how to order the results
|
940
|
+
# @param [Fixnum] page_size
|
941
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
942
|
+
# If unspecified, server will pick an appropriate default.
|
943
|
+
# @param [String] page_token
|
944
|
+
# Optional. A token identifying a page of results the server should return.
|
945
|
+
# @param [String] fields
|
946
|
+
# Selector specifying which fields to include in a partial response.
|
947
|
+
# @param [String] quota_user
|
948
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
949
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
950
|
+
# @param [Google::Apis::RequestOptions] options
|
951
|
+
# Request-specific options
|
952
|
+
#
|
953
|
+
# @yield [result, err] Result & error if block supplied
|
954
|
+
# @yieldparam result [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse] parsed result object
|
955
|
+
# @yieldparam err [StandardError] error object if request failed
|
956
|
+
#
|
957
|
+
# @return [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse]
|
958
|
+
#
|
959
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
960
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
961
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
962
|
+
def list_project_location_global_policy_orchestrators(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
963
|
+
command = make_simple_command(:get, 'v2/{+parent}/policyOrchestrators', options)
|
964
|
+
command.response_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse::Representation
|
965
|
+
command.response_class = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse
|
966
|
+
command.params['parent'] = parent unless parent.nil?
|
967
|
+
command.query['filter'] = filter unless filter.nil?
|
968
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
969
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
970
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
971
|
+
command.query['fields'] = fields unless fields.nil?
|
972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
973
|
+
execute_or_queue_command(command, &block)
|
974
|
+
end
|
975
|
+
|
976
|
+
# Updates an existing policy orchestrator, parented by a project.
|
977
|
+
# @param [String] name
|
978
|
+
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
|
979
|
+
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
|
980
|
+
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
|
981
|
+
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
|
982
|
+
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
|
983
|
+
# @param [String] update_mask
|
984
|
+
# Optional. The list of fields to merge into the existing policy orchestrator. A
|
985
|
+
# special ["*"] field mask can be used to simply replace the entire resource.
|
986
|
+
# Otherwise, for all paths referenced in the mask, following merge rules are
|
987
|
+
# used: * output only fields are ignored, * primitive fields are replaced, *
|
988
|
+
# repeated fields are replaced, * map fields are merged key by key, * message
|
989
|
+
# fields are cleared if not set in the request, otherwise they are merged
|
990
|
+
# recursively (in particular - message fields set to an empty message has no
|
991
|
+
# side effects) If field mask is not specified, it is automatically inferred
|
992
|
+
# from the request using following rules: * primitive fields are listed, if set
|
993
|
+
# to a non-default value (as there is no way to distinguish between default and
|
994
|
+
# unset value), * map and repeated fields are listed, * `google.protobuf.Any`
|
995
|
+
# fields are listed, * other message fields are traversed recursively. Note:
|
996
|
+
# implicit mask does not allow clearing fields.
|
997
|
+
# @param [String] fields
|
998
|
+
# Selector specifying which fields to include in a partial response.
|
999
|
+
# @param [String] quota_user
|
1000
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1001
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1002
|
+
# @param [Google::Apis::RequestOptions] options
|
1003
|
+
# Request-specific options
|
1004
|
+
#
|
1005
|
+
# @yield [result, err] Result & error if block supplied
|
1006
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
1007
|
+
# @yieldparam err [StandardError] error object if request failed
|
1008
|
+
#
|
1009
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
1010
|
+
#
|
1011
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1012
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1013
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1014
|
+
def patch_project_location_global_policy_orchestrator(name, google_cloud_osconfig_v2__policy_orchestrator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1015
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1016
|
+
command.request_representation = Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator::Representation
|
1017
|
+
command.request_object = google_cloud_osconfig_v2__policy_orchestrator_object
|
1018
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
1019
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
1020
|
+
command.params['name'] = name unless name.nil?
|
1021
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1022
|
+
command.query['fields'] = fields unless fields.nil?
|
1023
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1024
|
+
execute_or_queue_command(command, &block)
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1028
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1029
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1030
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
1031
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
1032
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1033
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
1034
|
+
# , corresponding to `Code.CANCELLED`.
|
1035
|
+
# @param [String] name
|
1036
|
+
# The name of the operation resource to be cancelled.
|
1037
|
+
# @param [Google::Apis::OsconfigV2::CancelOperationRequest] cancel_operation_request_object
|
1038
|
+
# @param [String] fields
|
1039
|
+
# Selector specifying which fields to include in a partial response.
|
1040
|
+
# @param [String] quota_user
|
1041
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1042
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1043
|
+
# @param [Google::Apis::RequestOptions] options
|
1044
|
+
# Request-specific options
|
1045
|
+
#
|
1046
|
+
# @yield [result, err] Result & error if block supplied
|
1047
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Empty] parsed result object
|
1048
|
+
# @yieldparam err [StandardError] error object if request failed
|
1049
|
+
#
|
1050
|
+
# @return [Google::Apis::OsconfigV2::Empty]
|
1051
|
+
#
|
1052
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1053
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1054
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1055
|
+
def cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1056
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
1057
|
+
command.request_representation = Google::Apis::OsconfigV2::CancelOperationRequest::Representation
|
1058
|
+
command.request_object = cancel_operation_request_object
|
1059
|
+
command.response_representation = Google::Apis::OsconfigV2::Empty::Representation
|
1060
|
+
command.response_class = Google::Apis::OsconfigV2::Empty
|
1061
|
+
command.params['name'] = name unless name.nil?
|
1062
|
+
command.query['fields'] = fields unless fields.nil?
|
1063
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1064
|
+
execute_or_queue_command(command, &block)
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
1068
|
+
# longer interested in the operation result. It does not cancel the operation.
|
1069
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
1070
|
+
# UNIMPLEMENTED`.
|
1071
|
+
# @param [String] name
|
1072
|
+
# The name of the operation resource to be deleted.
|
1073
|
+
# @param [String] fields
|
1074
|
+
# Selector specifying which fields to include in a partial response.
|
1075
|
+
# @param [String] quota_user
|
1076
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1077
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1078
|
+
# @param [Google::Apis::RequestOptions] options
|
1079
|
+
# Request-specific options
|
1080
|
+
#
|
1081
|
+
# @yield [result, err] Result & error if block supplied
|
1082
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Empty] parsed result object
|
1083
|
+
# @yieldparam err [StandardError] error object if request failed
|
1084
|
+
#
|
1085
|
+
# @return [Google::Apis::OsconfigV2::Empty]
|
1086
|
+
#
|
1087
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1088
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1089
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1090
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1091
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1092
|
+
command.response_representation = Google::Apis::OsconfigV2::Empty::Representation
|
1093
|
+
command.response_class = Google::Apis::OsconfigV2::Empty
|
1094
|
+
command.params['name'] = name unless name.nil?
|
1095
|
+
command.query['fields'] = fields unless fields.nil?
|
1096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1097
|
+
execute_or_queue_command(command, &block)
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1101
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1102
|
+
# @param [String] name
|
1103
|
+
# The name of the operation resource.
|
1104
|
+
# @param [String] fields
|
1105
|
+
# Selector specifying which fields to include in a partial response.
|
1106
|
+
# @param [String] quota_user
|
1107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1109
|
+
# @param [Google::Apis::RequestOptions] options
|
1110
|
+
# Request-specific options
|
1111
|
+
#
|
1112
|
+
# @yield [result, err] Result & error if block supplied
|
1113
|
+
# @yieldparam result [Google::Apis::OsconfigV2::Operation] parsed result object
|
1114
|
+
# @yieldparam err [StandardError] error object if request failed
|
1115
|
+
#
|
1116
|
+
# @return [Google::Apis::OsconfigV2::Operation]
|
1117
|
+
#
|
1118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1121
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1122
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1123
|
+
command.response_representation = Google::Apis::OsconfigV2::Operation::Representation
|
1124
|
+
command.response_class = Google::Apis::OsconfigV2::Operation
|
1125
|
+
command.params['name'] = name unless name.nil?
|
1126
|
+
command.query['fields'] = fields unless fields.nil?
|
1127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1128
|
+
execute_or_queue_command(command, &block)
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# Lists operations that match the specified filter in the request. If the server
|
1132
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1133
|
+
# @param [String] name
|
1134
|
+
# The name of the operation's parent resource.
|
1135
|
+
# @param [String] filter
|
1136
|
+
# The standard list filter.
|
1137
|
+
# @param [Fixnum] page_size
|
1138
|
+
# The standard list page size.
|
1139
|
+
# @param [String] page_token
|
1140
|
+
# The standard list page token.
|
1141
|
+
# @param [String] fields
|
1142
|
+
# Selector specifying which fields to include in a partial response.
|
1143
|
+
# @param [String] quota_user
|
1144
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1145
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1146
|
+
# @param [Google::Apis::RequestOptions] options
|
1147
|
+
# Request-specific options
|
1148
|
+
#
|
1149
|
+
# @yield [result, err] Result & error if block supplied
|
1150
|
+
# @yieldparam result [Google::Apis::OsconfigV2::ListOperationsResponse] parsed result object
|
1151
|
+
# @yieldparam err [StandardError] error object if request failed
|
1152
|
+
#
|
1153
|
+
# @return [Google::Apis::OsconfigV2::ListOperationsResponse]
|
1154
|
+
#
|
1155
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1156
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1157
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1158
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1159
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
1160
|
+
command.response_representation = Google::Apis::OsconfigV2::ListOperationsResponse::Representation
|
1161
|
+
command.response_class = Google::Apis::OsconfigV2::ListOperationsResponse
|
1162
|
+
command.params['name'] = name unless name.nil?
|
1163
|
+
command.query['filter'] = filter unless filter.nil?
|
1164
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1165
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1166
|
+
command.query['fields'] = fields unless fields.nil?
|
1167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1168
|
+
execute_or_queue_command(command, &block)
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
protected
|
1172
|
+
|
1173
|
+
def apply_command_defaults(command)
|
1174
|
+
command.query['key'] = key unless key.nil?
|
1175
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1176
|
+
end
|
1177
|
+
end
|
1178
|
+
end
|
1179
|
+
end
|
1180
|
+
end
|