google-apis-observability_v1 0.12.0 → 0.13.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/observability_v1/gem_version.rb +2 -2
- data/lib/google/apis/observability_v1/service.rb +460 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5d95a5e804ce67cc2df299a143981bc6ab35e6f60230c3b3924b4d95ccaac58
|
|
4
|
+
data.tar.gz: 31142323380f8cda1cc11fd713f02ed27c8c1077f90607daf1db39b9bb9d6b31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 126069c6ea9967569d0a5ba9f82225430c8d3722025976b3c6abbb5b2d3ad9d72ba93f78a76bd557ebe3bfaf628e3938492e193b4a4725abe92726514b748636
|
|
7
|
+
data.tar.gz: 25d94a3167eaca655d0d943e618faf8371c58c04ba598abaa912509242de9ac5b300886d48dced3050848859ecfe9ba67ba149aa8ed8c1d2135b83544bc846bd
|
data/CHANGELOG.md
CHANGED
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module ObservabilityV1
|
|
18
18
|
# Version of the google-apis-observability_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.13.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260122"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -52,6 +52,466 @@ module Google
|
|
|
52
52
|
@batch_path = 'batch'
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
# Gets information about a location.
|
|
56
|
+
# @param [String] name
|
|
57
|
+
# Resource name for the location.
|
|
58
|
+
# @param [String] fields
|
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
|
60
|
+
# @param [String] quota_user
|
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
|
64
|
+
# Request-specific options
|
|
65
|
+
#
|
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
|
67
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Location] parsed result object
|
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
69
|
+
#
|
|
70
|
+
# @return [Google::Apis::ObservabilityV1::Location]
|
|
71
|
+
#
|
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
+
def get_folder_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
76
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
77
|
+
command.response_representation = Google::Apis::ObservabilityV1::Location::Representation
|
|
78
|
+
command.response_class = Google::Apis::ObservabilityV1::Location
|
|
79
|
+
command.params['name'] = name unless name.nil?
|
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
82
|
+
execute_or_queue_command(command, &block)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Lists information about the supported locations for this service.
|
|
86
|
+
# @param [String] name
|
|
87
|
+
# The resource that owns the locations collection, if applicable.
|
|
88
|
+
# @param [Array<String>, String] extra_location_types
|
|
89
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
90
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
91
|
+
# @param [String] filter
|
|
92
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
|
93
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
94
|
+
# in [AIP-160](https://google.aip.dev/160).
|
|
95
|
+
# @param [Fixnum] page_size
|
|
96
|
+
# The maximum number of results to return. If not set, the service selects a
|
|
97
|
+
# default.
|
|
98
|
+
# @param [String] page_token
|
|
99
|
+
# A page token received from the `next_page_token` field in the response. Send
|
|
100
|
+
# that page token to receive the subsequent page.
|
|
101
|
+
# @param [String] fields
|
|
102
|
+
# Selector specifying which fields to include in a partial response.
|
|
103
|
+
# @param [String] quota_user
|
|
104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
106
|
+
# @param [Google::Apis::RequestOptions] options
|
|
107
|
+
# Request-specific options
|
|
108
|
+
#
|
|
109
|
+
# @yield [result, err] Result & error if block supplied
|
|
110
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::ListLocationsResponse] parsed result object
|
|
111
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
112
|
+
#
|
|
113
|
+
# @return [Google::Apis::ObservabilityV1::ListLocationsResponse]
|
|
114
|
+
#
|
|
115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
118
|
+
def list_folder_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
119
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
|
120
|
+
command.response_representation = Google::Apis::ObservabilityV1::ListLocationsResponse::Representation
|
|
121
|
+
command.response_class = Google::Apis::ObservabilityV1::ListLocationsResponse
|
|
122
|
+
command.params['name'] = name unless name.nil?
|
|
123
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
|
124
|
+
command.query['filter'] = filter unless filter.nil?
|
|
125
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
126
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
127
|
+
command.query['fields'] = fields unless fields.nil?
|
|
128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
129
|
+
execute_or_queue_command(command, &block)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
133
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
134
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
135
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
136
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
137
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
138
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
139
|
+
# , corresponding to `Code.CANCELLED`.
|
|
140
|
+
# @param [String] name
|
|
141
|
+
# The name of the operation resource to be cancelled.
|
|
142
|
+
# @param [Google::Apis::ObservabilityV1::CancelOperationRequest] cancel_operation_request_object
|
|
143
|
+
# @param [String] fields
|
|
144
|
+
# Selector specifying which fields to include in a partial response.
|
|
145
|
+
# @param [String] quota_user
|
|
146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
148
|
+
# @param [Google::Apis::RequestOptions] options
|
|
149
|
+
# Request-specific options
|
|
150
|
+
#
|
|
151
|
+
# @yield [result, err] Result & error if block supplied
|
|
152
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Empty] parsed result object
|
|
153
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
154
|
+
#
|
|
155
|
+
# @return [Google::Apis::ObservabilityV1::Empty]
|
|
156
|
+
#
|
|
157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
160
|
+
def cancel_folder_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
161
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
162
|
+
command.request_representation = Google::Apis::ObservabilityV1::CancelOperationRequest::Representation
|
|
163
|
+
command.request_object = cancel_operation_request_object
|
|
164
|
+
command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
|
|
165
|
+
command.response_class = Google::Apis::ObservabilityV1::Empty
|
|
166
|
+
command.params['name'] = name unless name.nil?
|
|
167
|
+
command.query['fields'] = fields unless fields.nil?
|
|
168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
169
|
+
execute_or_queue_command(command, &block)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
173
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
174
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
175
|
+
# UNIMPLEMENTED`.
|
|
176
|
+
# @param [String] name
|
|
177
|
+
# The name of the operation resource to be deleted.
|
|
178
|
+
# @param [String] fields
|
|
179
|
+
# Selector specifying which fields to include in a partial response.
|
|
180
|
+
# @param [String] quota_user
|
|
181
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
182
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
183
|
+
# @param [Google::Apis::RequestOptions] options
|
|
184
|
+
# Request-specific options
|
|
185
|
+
#
|
|
186
|
+
# @yield [result, err] Result & error if block supplied
|
|
187
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Empty] parsed result object
|
|
188
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
189
|
+
#
|
|
190
|
+
# @return [Google::Apis::ObservabilityV1::Empty]
|
|
191
|
+
#
|
|
192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
195
|
+
def delete_folder_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
196
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
197
|
+
command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
|
|
198
|
+
command.response_class = Google::Apis::ObservabilityV1::Empty
|
|
199
|
+
command.params['name'] = name unless name.nil?
|
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
202
|
+
execute_or_queue_command(command, &block)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
206
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
207
|
+
# @param [String] name
|
|
208
|
+
# The name of the operation resource.
|
|
209
|
+
# @param [String] fields
|
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
|
211
|
+
# @param [String] quota_user
|
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
|
215
|
+
# Request-specific options
|
|
216
|
+
#
|
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
|
218
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
|
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
220
|
+
#
|
|
221
|
+
# @return [Google::Apis::ObservabilityV1::Operation]
|
|
222
|
+
#
|
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
226
|
+
def get_folder_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
227
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
228
|
+
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
|
|
229
|
+
command.response_class = Google::Apis::ObservabilityV1::Operation
|
|
230
|
+
command.params['name'] = name unless name.nil?
|
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
233
|
+
execute_or_queue_command(command, &block)
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
237
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
238
|
+
# @param [String] name
|
|
239
|
+
# The name of the operation's parent resource.
|
|
240
|
+
# @param [String] filter
|
|
241
|
+
# The standard list filter.
|
|
242
|
+
# @param [Fixnum] page_size
|
|
243
|
+
# The standard list page size.
|
|
244
|
+
# @param [String] page_token
|
|
245
|
+
# The standard list page token.
|
|
246
|
+
# @param [Boolean] return_partial_success
|
|
247
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
248
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
249
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
250
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
251
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
252
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
253
|
+
# documentation.
|
|
254
|
+
# @param [String] fields
|
|
255
|
+
# Selector specifying which fields to include in a partial response.
|
|
256
|
+
# @param [String] quota_user
|
|
257
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
258
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
259
|
+
# @param [Google::Apis::RequestOptions] options
|
|
260
|
+
# Request-specific options
|
|
261
|
+
#
|
|
262
|
+
# @yield [result, err] Result & error if block supplied
|
|
263
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::ListOperationsResponse] parsed result object
|
|
264
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
265
|
+
#
|
|
266
|
+
# @return [Google::Apis::ObservabilityV1::ListOperationsResponse]
|
|
267
|
+
#
|
|
268
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
269
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
270
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
271
|
+
def list_folder_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
272
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
273
|
+
command.response_representation = Google::Apis::ObservabilityV1::ListOperationsResponse::Representation
|
|
274
|
+
command.response_class = Google::Apis::ObservabilityV1::ListOperationsResponse
|
|
275
|
+
command.params['name'] = name unless name.nil?
|
|
276
|
+
command.query['filter'] = filter unless filter.nil?
|
|
277
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
278
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
279
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
280
|
+
command.query['fields'] = fields unless fields.nil?
|
|
281
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
282
|
+
execute_or_queue_command(command, &block)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Gets information about a location.
|
|
286
|
+
# @param [String] name
|
|
287
|
+
# Resource name for the location.
|
|
288
|
+
# @param [String] fields
|
|
289
|
+
# Selector specifying which fields to include in a partial response.
|
|
290
|
+
# @param [String] quota_user
|
|
291
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
292
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
293
|
+
# @param [Google::Apis::RequestOptions] options
|
|
294
|
+
# Request-specific options
|
|
295
|
+
#
|
|
296
|
+
# @yield [result, err] Result & error if block supplied
|
|
297
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Location] parsed result object
|
|
298
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
299
|
+
#
|
|
300
|
+
# @return [Google::Apis::ObservabilityV1::Location]
|
|
301
|
+
#
|
|
302
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
303
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
304
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
305
|
+
def get_organization_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
306
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
307
|
+
command.response_representation = Google::Apis::ObservabilityV1::Location::Representation
|
|
308
|
+
command.response_class = Google::Apis::ObservabilityV1::Location
|
|
309
|
+
command.params['name'] = name unless name.nil?
|
|
310
|
+
command.query['fields'] = fields unless fields.nil?
|
|
311
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
312
|
+
execute_or_queue_command(command, &block)
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Lists information about the supported locations for this service.
|
|
316
|
+
# @param [String] name
|
|
317
|
+
# The resource that owns the locations collection, if applicable.
|
|
318
|
+
# @param [Array<String>, String] extra_location_types
|
|
319
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
320
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
321
|
+
# @param [String] filter
|
|
322
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
|
323
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
324
|
+
# in [AIP-160](https://google.aip.dev/160).
|
|
325
|
+
# @param [Fixnum] page_size
|
|
326
|
+
# The maximum number of results to return. If not set, the service selects a
|
|
327
|
+
# default.
|
|
328
|
+
# @param [String] page_token
|
|
329
|
+
# A page token received from the `next_page_token` field in the response. Send
|
|
330
|
+
# that page token to receive the subsequent page.
|
|
331
|
+
# @param [String] fields
|
|
332
|
+
# Selector specifying which fields to include in a partial response.
|
|
333
|
+
# @param [String] quota_user
|
|
334
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
335
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
336
|
+
# @param [Google::Apis::RequestOptions] options
|
|
337
|
+
# Request-specific options
|
|
338
|
+
#
|
|
339
|
+
# @yield [result, err] Result & error if block supplied
|
|
340
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::ListLocationsResponse] parsed result object
|
|
341
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
342
|
+
#
|
|
343
|
+
# @return [Google::Apis::ObservabilityV1::ListLocationsResponse]
|
|
344
|
+
#
|
|
345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
348
|
+
def list_organization_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
349
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
|
350
|
+
command.response_representation = Google::Apis::ObservabilityV1::ListLocationsResponse::Representation
|
|
351
|
+
command.response_class = Google::Apis::ObservabilityV1::ListLocationsResponse
|
|
352
|
+
command.params['name'] = name unless name.nil?
|
|
353
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
|
354
|
+
command.query['filter'] = filter unless filter.nil?
|
|
355
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
356
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
357
|
+
command.query['fields'] = fields unless fields.nil?
|
|
358
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
359
|
+
execute_or_queue_command(command, &block)
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
363
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
364
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
365
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
366
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
367
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
368
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
369
|
+
# , corresponding to `Code.CANCELLED`.
|
|
370
|
+
# @param [String] name
|
|
371
|
+
# The name of the operation resource to be cancelled.
|
|
372
|
+
# @param [Google::Apis::ObservabilityV1::CancelOperationRequest] cancel_operation_request_object
|
|
373
|
+
# @param [String] fields
|
|
374
|
+
# Selector specifying which fields to include in a partial response.
|
|
375
|
+
# @param [String] quota_user
|
|
376
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
377
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
378
|
+
# @param [Google::Apis::RequestOptions] options
|
|
379
|
+
# Request-specific options
|
|
380
|
+
#
|
|
381
|
+
# @yield [result, err] Result & error if block supplied
|
|
382
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Empty] parsed result object
|
|
383
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
384
|
+
#
|
|
385
|
+
# @return [Google::Apis::ObservabilityV1::Empty]
|
|
386
|
+
#
|
|
387
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
388
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
389
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
390
|
+
def cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
391
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
392
|
+
command.request_representation = Google::Apis::ObservabilityV1::CancelOperationRequest::Representation
|
|
393
|
+
command.request_object = cancel_operation_request_object
|
|
394
|
+
command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
|
|
395
|
+
command.response_class = Google::Apis::ObservabilityV1::Empty
|
|
396
|
+
command.params['name'] = name unless name.nil?
|
|
397
|
+
command.query['fields'] = fields unless fields.nil?
|
|
398
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
399
|
+
execute_or_queue_command(command, &block)
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
403
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
404
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
405
|
+
# UNIMPLEMENTED`.
|
|
406
|
+
# @param [String] name
|
|
407
|
+
# The name of the operation resource to be deleted.
|
|
408
|
+
# @param [String] fields
|
|
409
|
+
# Selector specifying which fields to include in a partial response.
|
|
410
|
+
# @param [String] quota_user
|
|
411
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
412
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
413
|
+
# @param [Google::Apis::RequestOptions] options
|
|
414
|
+
# Request-specific options
|
|
415
|
+
#
|
|
416
|
+
# @yield [result, err] Result & error if block supplied
|
|
417
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Empty] parsed result object
|
|
418
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
419
|
+
#
|
|
420
|
+
# @return [Google::Apis::ObservabilityV1::Empty]
|
|
421
|
+
#
|
|
422
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
423
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
424
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
425
|
+
def delete_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
426
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
427
|
+
command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
|
|
428
|
+
command.response_class = Google::Apis::ObservabilityV1::Empty
|
|
429
|
+
command.params['name'] = name unless name.nil?
|
|
430
|
+
command.query['fields'] = fields unless fields.nil?
|
|
431
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
432
|
+
execute_or_queue_command(command, &block)
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
436
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
437
|
+
# @param [String] name
|
|
438
|
+
# The name of the operation resource.
|
|
439
|
+
# @param [String] fields
|
|
440
|
+
# Selector specifying which fields to include in a partial response.
|
|
441
|
+
# @param [String] quota_user
|
|
442
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
443
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
444
|
+
# @param [Google::Apis::RequestOptions] options
|
|
445
|
+
# Request-specific options
|
|
446
|
+
#
|
|
447
|
+
# @yield [result, err] Result & error if block supplied
|
|
448
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
|
|
449
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
450
|
+
#
|
|
451
|
+
# @return [Google::Apis::ObservabilityV1::Operation]
|
|
452
|
+
#
|
|
453
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
454
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
455
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
456
|
+
def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
457
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
458
|
+
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
|
|
459
|
+
command.response_class = Google::Apis::ObservabilityV1::Operation
|
|
460
|
+
command.params['name'] = name unless name.nil?
|
|
461
|
+
command.query['fields'] = fields unless fields.nil?
|
|
462
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
463
|
+
execute_or_queue_command(command, &block)
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
467
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
468
|
+
# @param [String] name
|
|
469
|
+
# The name of the operation's parent resource.
|
|
470
|
+
# @param [String] filter
|
|
471
|
+
# The standard list filter.
|
|
472
|
+
# @param [Fixnum] page_size
|
|
473
|
+
# The standard list page size.
|
|
474
|
+
# @param [String] page_token
|
|
475
|
+
# The standard list page token.
|
|
476
|
+
# @param [Boolean] return_partial_success
|
|
477
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
478
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
479
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
480
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
481
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
482
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
483
|
+
# documentation.
|
|
484
|
+
# @param [String] fields
|
|
485
|
+
# Selector specifying which fields to include in a partial response.
|
|
486
|
+
# @param [String] quota_user
|
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
489
|
+
# @param [Google::Apis::RequestOptions] options
|
|
490
|
+
# Request-specific options
|
|
491
|
+
#
|
|
492
|
+
# @yield [result, err] Result & error if block supplied
|
|
493
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::ListOperationsResponse] parsed result object
|
|
494
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
495
|
+
#
|
|
496
|
+
# @return [Google::Apis::ObservabilityV1::ListOperationsResponse]
|
|
497
|
+
#
|
|
498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
501
|
+
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
502
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
503
|
+
command.response_representation = Google::Apis::ObservabilityV1::ListOperationsResponse::Representation
|
|
504
|
+
command.response_class = Google::Apis::ObservabilityV1::ListOperationsResponse
|
|
505
|
+
command.params['name'] = name unless name.nil?
|
|
506
|
+
command.query['filter'] = filter unless filter.nil?
|
|
507
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
508
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
509
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
510
|
+
command.query['fields'] = fields unless fields.nil?
|
|
511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
512
|
+
execute_or_queue_command(command, &block)
|
|
513
|
+
end
|
|
514
|
+
|
|
55
515
|
# Gets information about a location.
|
|
56
516
|
# @param [String] name
|
|
57
517
|
# Resource name for the location.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-observability_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.13.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|