google-apis-cloudasset_v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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-cloudasset_v1beta1.rb +15 -0
- data/lib/google/apis/cloudasset_v1beta1.rb +36 -0
- data/lib/google/apis/cloudasset_v1beta1/classes.rb +1865 -0
- data/lib/google/apis/cloudasset_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/cloudasset_v1beta1/representations.rb +644 -0
- data/lib/google/apis/cloudasset_v1beta1/service.rb +383 -0
- metadata +76 -0
@@ -0,0 +1,383 @@
|
|
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 CloudassetV1beta1
|
23
|
+
# Cloud Asset API
|
24
|
+
#
|
25
|
+
# The cloud asset API manages the history and inventory of cloud resources.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/cloudasset_v1beta1'
|
29
|
+
#
|
30
|
+
# Cloudasset = Google::Apis::CloudassetV1beta1 # Alias the module
|
31
|
+
# service = Cloudasset::CloudAssetService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
34
|
+
class CloudAssetService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://cloudasset.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-cloudasset_v1beta1',
|
48
|
+
client_version: Google::Apis::CloudassetV1beta1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Exports assets with time and resource types to a given Cloud Storage location.
|
53
|
+
# The output format is newline-delimited JSON. This API implements the google.
|
54
|
+
# longrunning.Operation API allowing you to keep track of the export. We
|
55
|
+
# recommend intervals of at least 2 seconds with exponential retry to poll the
|
56
|
+
# export operation result. For regular-size resource parent, the export
|
57
|
+
# operation usually finishes within 5 minutes.
|
58
|
+
# @param [String] parent
|
59
|
+
# Required. The relative name of the root asset. This can only be an
|
60
|
+
# organization number (such as "organizations/123"), a project ID (such as "
|
61
|
+
# projects/my-project-id"), a project number (such as "projects/12345"), or a
|
62
|
+
# folder number (such as "folders/123").
|
63
|
+
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
|
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::CloudassetV1beta1::Operation] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
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 export_folder_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
|
83
|
+
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
|
84
|
+
command.request_object = export_assets_request_object
|
85
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
86
|
+
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
87
|
+
command.params['parent'] = parent unless parent.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
94
|
+
# to poll the operation result at intervals as recommended by the API service.
|
95
|
+
# @param [String] name
|
96
|
+
# The name of the operation resource.
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def get_folder_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
116
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
117
|
+
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
118
|
+
command.params['name'] = name unless name.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Batch gets the update history of assets that overlap a time window. For
|
125
|
+
# IAM_POLICY content, this API outputs history when the asset and its attached
|
126
|
+
# IAM POLICY both exist. This can create gaps in the output history. Otherwise,
|
127
|
+
# this API outputs history with asset in both non-delete or deleted status. If a
|
128
|
+
# specified asset does not exist, this API returns an INVALID_ARGUMENT error.
|
129
|
+
# @param [String] parent
|
130
|
+
# Required. The relative name of the root asset. It can only be an organization
|
131
|
+
# number (such as "organizations/123"), a project ID (such as "projects/my-
|
132
|
+
# project-id")", or a project number (such as "projects/12345").
|
133
|
+
# @param [Array<String>, String] asset_names
|
134
|
+
# A list of the full names of the assets. For example: `//compute.googleapis.com/
|
135
|
+
# projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](
|
136
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name) for
|
137
|
+
# more info. The request becomes a no-op if the asset name list is empty, and
|
138
|
+
# the max size of the asset name list is 100 in one request.
|
139
|
+
# @param [String] content_type
|
140
|
+
# Optional. The content type.
|
141
|
+
# @param [String] read_time_window_end_time
|
142
|
+
# End time of the time window (inclusive). If not specified, the current
|
143
|
+
# timestamp is used instead.
|
144
|
+
# @param [String] read_time_window_start_time
|
145
|
+
# Start time of the time window (exclusive).
|
146
|
+
# @param [String] fields
|
147
|
+
# Selector specifying which fields to include in a partial response.
|
148
|
+
# @param [String] quota_user
|
149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
151
|
+
# @param [Google::Apis::RequestOptions] options
|
152
|
+
# Request-specific options
|
153
|
+
#
|
154
|
+
# @yield [result, err] Result & error if block supplied
|
155
|
+
# @yieldparam result [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse] parsed result object
|
156
|
+
# @yieldparam err [StandardError] error object if request failed
|
157
|
+
#
|
158
|
+
# @return [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse]
|
159
|
+
#
|
160
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
161
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
162
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
163
|
+
def batch_organization_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
164
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}:batchGetAssetsHistory', options)
|
165
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse::Representation
|
166
|
+
command.response_class = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse
|
167
|
+
command.params['parent'] = parent unless parent.nil?
|
168
|
+
command.query['assetNames'] = asset_names unless asset_names.nil?
|
169
|
+
command.query['contentType'] = content_type unless content_type.nil?
|
170
|
+
command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil?
|
171
|
+
command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil?
|
172
|
+
command.query['fields'] = fields unless fields.nil?
|
173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
174
|
+
execute_or_queue_command(command, &block)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Exports assets with time and resource types to a given Cloud Storage location.
|
178
|
+
# The output format is newline-delimited JSON. This API implements the google.
|
179
|
+
# longrunning.Operation API allowing you to keep track of the export. We
|
180
|
+
# recommend intervals of at least 2 seconds with exponential retry to poll the
|
181
|
+
# export operation result. For regular-size resource parent, the export
|
182
|
+
# operation usually finishes within 5 minutes.
|
183
|
+
# @param [String] parent
|
184
|
+
# Required. The relative name of the root asset. This can only be an
|
185
|
+
# organization number (such as "organizations/123"), a project ID (such as "
|
186
|
+
# projects/my-project-id"), a project number (such as "projects/12345"), or a
|
187
|
+
# folder number (such as "folders/123").
|
188
|
+
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
|
189
|
+
# @param [String] fields
|
190
|
+
# Selector specifying which fields to include in a partial response.
|
191
|
+
# @param [String] quota_user
|
192
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
193
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
194
|
+
# @param [Google::Apis::RequestOptions] options
|
195
|
+
# Request-specific options
|
196
|
+
#
|
197
|
+
# @yield [result, err] Result & error if block supplied
|
198
|
+
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
|
199
|
+
# @yieldparam err [StandardError] error object if request failed
|
200
|
+
#
|
201
|
+
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
202
|
+
#
|
203
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
204
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
205
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
206
|
+
def export_organization_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
207
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
|
208
|
+
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
|
209
|
+
command.request_object = export_assets_request_object
|
210
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
211
|
+
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
212
|
+
command.params['parent'] = parent unless parent.nil?
|
213
|
+
command.query['fields'] = fields unless fields.nil?
|
214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
215
|
+
execute_or_queue_command(command, &block)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
219
|
+
# to poll the operation result at intervals as recommended by the API service.
|
220
|
+
# @param [String] name
|
221
|
+
# The name of the operation resource.
|
222
|
+
# @param [String] fields
|
223
|
+
# Selector specifying which fields to include in a partial response.
|
224
|
+
# @param [String] quota_user
|
225
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
226
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
227
|
+
# @param [Google::Apis::RequestOptions] options
|
228
|
+
# Request-specific options
|
229
|
+
#
|
230
|
+
# @yield [result, err] Result & error if block supplied
|
231
|
+
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
|
232
|
+
# @yieldparam err [StandardError] error object if request failed
|
233
|
+
#
|
234
|
+
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
235
|
+
#
|
236
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
237
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
238
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
239
|
+
def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
240
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
241
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
242
|
+
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
243
|
+
command.params['name'] = name unless name.nil?
|
244
|
+
command.query['fields'] = fields unless fields.nil?
|
245
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
246
|
+
execute_or_queue_command(command, &block)
|
247
|
+
end
|
248
|
+
|
249
|
+
# Batch gets the update history of assets that overlap a time window. For
|
250
|
+
# IAM_POLICY content, this API outputs history when the asset and its attached
|
251
|
+
# IAM POLICY both exist. This can create gaps in the output history. Otherwise,
|
252
|
+
# this API outputs history with asset in both non-delete or deleted status. If a
|
253
|
+
# specified asset does not exist, this API returns an INVALID_ARGUMENT error.
|
254
|
+
# @param [String] parent
|
255
|
+
# Required. The relative name of the root asset. It can only be an organization
|
256
|
+
# number (such as "organizations/123"), a project ID (such as "projects/my-
|
257
|
+
# project-id")", or a project number (such as "projects/12345").
|
258
|
+
# @param [Array<String>, String] asset_names
|
259
|
+
# A list of the full names of the assets. For example: `//compute.googleapis.com/
|
260
|
+
# projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](
|
261
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name) for
|
262
|
+
# more info. The request becomes a no-op if the asset name list is empty, and
|
263
|
+
# the max size of the asset name list is 100 in one request.
|
264
|
+
# @param [String] content_type
|
265
|
+
# Optional. The content type.
|
266
|
+
# @param [String] read_time_window_end_time
|
267
|
+
# End time of the time window (inclusive). If not specified, the current
|
268
|
+
# timestamp is used instead.
|
269
|
+
# @param [String] read_time_window_start_time
|
270
|
+
# Start time of the time window (exclusive).
|
271
|
+
# @param [String] fields
|
272
|
+
# Selector specifying which fields to include in a partial response.
|
273
|
+
# @param [String] quota_user
|
274
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
275
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
+
# @param [Google::Apis::RequestOptions] options
|
277
|
+
# Request-specific options
|
278
|
+
#
|
279
|
+
# @yield [result, err] Result & error if block supplied
|
280
|
+
# @yieldparam result [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse] parsed result object
|
281
|
+
# @yieldparam err [StandardError] error object if request failed
|
282
|
+
#
|
283
|
+
# @return [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse]
|
284
|
+
#
|
285
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
+
def batch_project_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}:batchGetAssetsHistory', options)
|
290
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse::Representation
|
291
|
+
command.response_class = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse
|
292
|
+
command.params['parent'] = parent unless parent.nil?
|
293
|
+
command.query['assetNames'] = asset_names unless asset_names.nil?
|
294
|
+
command.query['contentType'] = content_type unless content_type.nil?
|
295
|
+
command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil?
|
296
|
+
command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil?
|
297
|
+
command.query['fields'] = fields unless fields.nil?
|
298
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
299
|
+
execute_or_queue_command(command, &block)
|
300
|
+
end
|
301
|
+
|
302
|
+
# Exports assets with time and resource types to a given Cloud Storage location.
|
303
|
+
# The output format is newline-delimited JSON. This API implements the google.
|
304
|
+
# longrunning.Operation API allowing you to keep track of the export. We
|
305
|
+
# recommend intervals of at least 2 seconds with exponential retry to poll the
|
306
|
+
# export operation result. For regular-size resource parent, the export
|
307
|
+
# operation usually finishes within 5 minutes.
|
308
|
+
# @param [String] parent
|
309
|
+
# Required. The relative name of the root asset. This can only be an
|
310
|
+
# organization number (such as "organizations/123"), a project ID (such as "
|
311
|
+
# projects/my-project-id"), a project number (such as "projects/12345"), or a
|
312
|
+
# folder number (such as "folders/123").
|
313
|
+
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
|
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::CloudassetV1beta1::Operation] parsed result object
|
324
|
+
# @yieldparam err [StandardError] error object if request failed
|
325
|
+
#
|
326
|
+
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
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 export_project_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
332
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
|
333
|
+
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
|
334
|
+
command.request_object = export_assets_request_object
|
335
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
336
|
+
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
337
|
+
command.params['parent'] = parent unless parent.nil?
|
338
|
+
command.query['fields'] = fields unless fields.nil?
|
339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
340
|
+
execute_or_queue_command(command, &block)
|
341
|
+
end
|
342
|
+
|
343
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
344
|
+
# to poll the operation result at intervals as recommended by the API service.
|
345
|
+
# @param [String] name
|
346
|
+
# The name of the operation resource.
|
347
|
+
# @param [String] fields
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
349
|
+
# @param [String] quota_user
|
350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
353
|
+
# Request-specific options
|
354
|
+
#
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
356
|
+
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
358
|
+
#
|
359
|
+
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
360
|
+
#
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
364
|
+
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
365
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
366
|
+
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
367
|
+
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
368
|
+
command.params['name'] = name unless name.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
protected
|
375
|
+
|
376
|
+
def apply_command_defaults(command)
|
377
|
+
command.query['key'] = key unless key.nil?
|
378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
379
|
+
end
|
380
|
+
end
|
381
|
+
end
|
382
|
+
end
|
383
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-apis-cloudasset_v1beta1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-apis-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.1'
|
27
|
+
description: This is the simple REST client for Cloud Asset API V1beta1. Simple REST
|
28
|
+
clients are Ruby client libraries that provide access to Google services via their
|
29
|
+
HTTP REST API endpoints. These libraries are generated and updated automatically
|
30
|
+
based on the discovery documents published by the service, and they handle most
|
31
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
32
|
+
use this client to access the Cloud Asset API, but note that some services may provide
|
33
|
+
a separate modern client that is easier to use.
|
34
|
+
email: googleapis-packages@google.com
|
35
|
+
executables: []
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- ".yardopts"
|
40
|
+
- CHANGELOG.md
|
41
|
+
- LICENSE.md
|
42
|
+
- OVERVIEW.md
|
43
|
+
- lib/google-apis-cloudasset_v1beta1.rb
|
44
|
+
- lib/google/apis/cloudasset_v1beta1.rb
|
45
|
+
- lib/google/apis/cloudasset_v1beta1/classes.rb
|
46
|
+
- lib/google/apis/cloudasset_v1beta1/gem_version.rb
|
47
|
+
- lib/google/apis/cloudasset_v1beta1/representations.rb
|
48
|
+
- lib/google/apis/cloudasset_v1beta1/service.rb
|
49
|
+
homepage: https://github.com/google/google-api-ruby-client
|
50
|
+
licenses:
|
51
|
+
- Apache-2.0
|
52
|
+
metadata:
|
53
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1beta1/CHANGELOG.md
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1beta1/v0.1.0
|
56
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1beta1
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.4'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
requirements: []
|
72
|
+
rubygems_version: 3.1.4
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: Simple REST client for Cloud Asset API V1beta1
|
76
|
+
test_files: []
|