google-apis-compute_preview 0.1.0 → 0.2.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.
|
@@ -55,6 +55,502 @@ module Google
|
|
|
55
55
|
@batch_path = 'batch/compute/v1'
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
# Lists member instances of the AcceleratorInterconnect.
|
|
59
|
+
# @param [String] project
|
|
60
|
+
# Project ID for the request.
|
|
61
|
+
# @param [String] zone
|
|
62
|
+
# Zone where the AcceleratorInterconnect is located. Zone name should conform
|
|
63
|
+
# to RFC1035.
|
|
64
|
+
# @param [String] accelerator_interconnect
|
|
65
|
+
# Name of the parent AcceleratorInterconnect. The name should conform to
|
|
66
|
+
# RFC1035 or be a resource ID.
|
|
67
|
+
# @param [String] filter
|
|
68
|
+
# A filter expression that filters resources listed in the response. Most
|
|
69
|
+
# Compute resources support two types of filter expressions:
|
|
70
|
+
# expressions that support regular expressions and expressions that follow
|
|
71
|
+
# API improvement proposal AIP-160.
|
|
72
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
73
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
74
|
+
# operator, and the value that you want to use for filtering. The value
|
|
75
|
+
# must be a string, a number, or a boolean. The operator
|
|
76
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
77
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
78
|
+
# exclude instances named `example-instance` by specifying
|
|
79
|
+
# `name != example-instance`.
|
|
80
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
81
|
+
# For example, to find all objects with `owner` label use:
|
|
82
|
+
# ```
|
|
83
|
+
# labels.owner:*
|
|
84
|
+
# ```
|
|
85
|
+
# You can also filter nested fields. For example, you could specify
|
|
86
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
87
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
88
|
+
# on nested fields to filter based onresource labels.
|
|
89
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
90
|
+
# parentheses. For example:
|
|
91
|
+
# ```
|
|
92
|
+
# (scheduling.automaticRestart = true)
|
|
93
|
+
# (cpuPlatform = "Intel Skylake")
|
|
94
|
+
# ```
|
|
95
|
+
# By default, each expression is an `AND` expression. However, you
|
|
96
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
97
|
+
# For example:
|
|
98
|
+
# ```
|
|
99
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
100
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
101
|
+
# (scheduling.automaticRestart = true)
|
|
102
|
+
# ```
|
|
103
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
104
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
105
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
106
|
+
# `fieldname eq unquoted literal`
|
|
107
|
+
# `fieldname eq 'single quoted literal'`
|
|
108
|
+
# `fieldname eq "double quoted literal"`
|
|
109
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
110
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
111
|
+
# library syntax.
|
|
112
|
+
# The literal value must match the entire field.
|
|
113
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
114
|
+
# you would use `name ne .*instance`.
|
|
115
|
+
# You cannot combine constraints on multiple fields using regular
|
|
116
|
+
# expressions.
|
|
117
|
+
# @param [Fixnum] max_results
|
|
118
|
+
# The maximum number of results per page that should be returned.
|
|
119
|
+
# If the number of available results is larger than `maxResults`,
|
|
120
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
121
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
122
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
123
|
+
# @param [String] order_by
|
|
124
|
+
# Sorts list results by a certain order. By default, results
|
|
125
|
+
# are returned in alphanumerical order based on the resource name.
|
|
126
|
+
# You can also sort results in descending order based on the creation
|
|
127
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
128
|
+
# results based on the `creationTimestamp` field in
|
|
129
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
130
|
+
# resources like operations so that the newest operation is returned first.
|
|
131
|
+
# Currently, only sorting by `name` or
|
|
132
|
+
# `creationTimestamp desc` is supported.
|
|
133
|
+
# @param [String] page_token
|
|
134
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
135
|
+
# `nextPageToken` returned by a previous list request to get
|
|
136
|
+
# the next page of results.
|
|
137
|
+
# @param [String] fields
|
|
138
|
+
# Selector specifying which fields to include in a partial response.
|
|
139
|
+
# @param [String] quota_user
|
|
140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
142
|
+
# @param [String] user_ip
|
|
143
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
|
145
|
+
# Request-specific options
|
|
146
|
+
#
|
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
|
148
|
+
# @yieldparam result [Google::Apis::ComputePreview::AcceleratorInterconnectMemberInstancesListResponse] parsed result object
|
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
150
|
+
#
|
|
151
|
+
# @return [Google::Apis::ComputePreview::AcceleratorInterconnectMemberInstancesListResponse]
|
|
152
|
+
#
|
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
156
|
+
def list_accelerator_interconnect_member_instances(project, zone, accelerator_interconnect, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
157
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorInterconnects/{acceleratorInterconnect}/memberInstances', options)
|
|
158
|
+
command.response_representation = Google::Apis::ComputePreview::AcceleratorInterconnectMemberInstancesListResponse::Representation
|
|
159
|
+
command.response_class = Google::Apis::ComputePreview::AcceleratorInterconnectMemberInstancesListResponse
|
|
160
|
+
command.params['project'] = project unless project.nil?
|
|
161
|
+
command.params['zone'] = zone unless zone.nil?
|
|
162
|
+
command.params['acceleratorInterconnect'] = accelerator_interconnect unless accelerator_interconnect.nil?
|
|
163
|
+
command.query['filter'] = filter unless filter.nil?
|
|
164
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
165
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
166
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
167
|
+
command.query['fields'] = fields unless fields.nil?
|
|
168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
169
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
170
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
171
|
+
execute_or_queue_command(command, &block)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Deletes the specified accelerator interconnect.
|
|
175
|
+
# @param [String] project
|
|
176
|
+
# Project ID for this request.
|
|
177
|
+
# @param [String] zone
|
|
178
|
+
# The name of thezone where the
|
|
179
|
+
# accelerator interconnect is located. Zone name should conform to RFC1035.
|
|
180
|
+
# @param [String] accelerator_interconnect
|
|
181
|
+
# The name of the accelerator interconnect to delete. Name should conform to
|
|
182
|
+
# RFC1035.
|
|
183
|
+
# @param [String] request_id
|
|
184
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
185
|
+
# that if you must retry your request, the server will know to ignore the
|
|
186
|
+
# request if it has already been completed.
|
|
187
|
+
# For example, consider a situation where you make an initial request and
|
|
188
|
+
# the request times out. If you make the request again with the same
|
|
189
|
+
# request ID, the server can check if original operation with the same
|
|
190
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
191
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
192
|
+
# The request ID must be
|
|
193
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
194
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
195
|
+
# @param [String] fields
|
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
|
197
|
+
# @param [String] quota_user
|
|
198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
200
|
+
# @param [String] user_ip
|
|
201
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
202
|
+
# @param [Google::Apis::RequestOptions] options
|
|
203
|
+
# Request-specific options
|
|
204
|
+
#
|
|
205
|
+
# @yield [result, err] Result & error if block supplied
|
|
206
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
207
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
208
|
+
#
|
|
209
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
210
|
+
#
|
|
211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
214
|
+
def delete_accelerator_interconnect(project, zone, accelerator_interconnect, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
215
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/acceleratorInterconnects/{acceleratorInterconnect}', options)
|
|
216
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
217
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
218
|
+
command.params['project'] = project unless project.nil?
|
|
219
|
+
command.params['zone'] = zone unless zone.nil?
|
|
220
|
+
command.params['acceleratorInterconnect'] = accelerator_interconnect unless accelerator_interconnect.nil?
|
|
221
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
222
|
+
command.query['fields'] = fields unless fields.nil?
|
|
223
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
224
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
225
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
226
|
+
execute_or_queue_command(command, &block)
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Returns all of the details about the specified accelerator interconnect.
|
|
230
|
+
# @param [String] project
|
|
231
|
+
# Project ID for this request.
|
|
232
|
+
# @param [String] zone
|
|
233
|
+
# The name of thezone where the
|
|
234
|
+
# accelerator interconnect is located. Zone name should conform to RFC1035.
|
|
235
|
+
# @param [String] accelerator_interconnect
|
|
236
|
+
# The name of the accelerator interconnect. Name should conform to RFC1035.
|
|
237
|
+
# @param [String] fields
|
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
|
239
|
+
# @param [String] quota_user
|
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
242
|
+
# @param [String] user_ip
|
|
243
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
244
|
+
# @param [Google::Apis::RequestOptions] options
|
|
245
|
+
# Request-specific options
|
|
246
|
+
#
|
|
247
|
+
# @yield [result, err] Result & error if block supplied
|
|
248
|
+
# @yieldparam result [Google::Apis::ComputePreview::AcceleratorInterconnect] parsed result object
|
|
249
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
250
|
+
#
|
|
251
|
+
# @return [Google::Apis::ComputePreview::AcceleratorInterconnect]
|
|
252
|
+
#
|
|
253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
256
|
+
def get_accelerator_interconnect(project, zone, accelerator_interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
257
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorInterconnects/{acceleratorInterconnect}', options)
|
|
258
|
+
command.response_representation = Google::Apis::ComputePreview::AcceleratorInterconnect::Representation
|
|
259
|
+
command.response_class = Google::Apis::ComputePreview::AcceleratorInterconnect
|
|
260
|
+
command.params['project'] = project unless project.nil?
|
|
261
|
+
command.params['zone'] = zone unless zone.nil?
|
|
262
|
+
command.params['acceleratorInterconnect'] = accelerator_interconnect unless accelerator_interconnect.nil?
|
|
263
|
+
command.query['fields'] = fields unless fields.nil?
|
|
264
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
265
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
266
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
267
|
+
execute_or_queue_command(command, &block)
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Creates an accelerator interconnect using the information that you specify
|
|
271
|
+
# in the request.
|
|
272
|
+
# @param [String] project
|
|
273
|
+
# Project ID for this request.
|
|
274
|
+
# @param [String] zone
|
|
275
|
+
# The name of the zone
|
|
276
|
+
# where you want to create the accelerator interconnect. Zone name should
|
|
277
|
+
# conform to RFC1035.
|
|
278
|
+
# @param [Google::Apis::ComputePreview::AcceleratorInterconnectsInsertRequest] accelerator_interconnects_insert_request_object
|
|
279
|
+
# @param [String] request_id
|
|
280
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
281
|
+
# that if you must retry your request, the server will know to ignore the
|
|
282
|
+
# request if it has already been completed.
|
|
283
|
+
# For example, consider a situation where you make an initial request and
|
|
284
|
+
# the request times out. If you make the request again with the same
|
|
285
|
+
# request ID, the server can check if original operation with the same
|
|
286
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
287
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
288
|
+
# The request ID must be
|
|
289
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
290
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
291
|
+
# @param [String] fields
|
|
292
|
+
# Selector specifying which fields to include in a partial response.
|
|
293
|
+
# @param [String] quota_user
|
|
294
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
295
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
296
|
+
# @param [String] user_ip
|
|
297
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
298
|
+
# @param [Google::Apis::RequestOptions] options
|
|
299
|
+
# Request-specific options
|
|
300
|
+
#
|
|
301
|
+
# @yield [result, err] Result & error if block supplied
|
|
302
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
303
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
304
|
+
#
|
|
305
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
306
|
+
#
|
|
307
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
308
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
309
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
310
|
+
def insert_accelerator_interconnect(project, zone, accelerator_interconnects_insert_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
311
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/acceleratorInterconnects', options)
|
|
312
|
+
command.request_representation = Google::Apis::ComputePreview::AcceleratorInterconnectsInsertRequest::Representation
|
|
313
|
+
command.request_object = accelerator_interconnects_insert_request_object
|
|
314
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
315
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
316
|
+
command.params['project'] = project unless project.nil?
|
|
317
|
+
command.params['zone'] = zone unless zone.nil?
|
|
318
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
|
320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
321
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
322
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
323
|
+
execute_or_queue_command(command, &block)
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# Retrieves a list of accelerator interconnects that are contained within the
|
|
327
|
+
# specified project and zone.
|
|
328
|
+
# @param [String] project
|
|
329
|
+
# Project ID for this request.
|
|
330
|
+
# @param [String] zone
|
|
331
|
+
# The name of thezone where the
|
|
332
|
+
# accelerator interconnect is located. Zone name should conform to RFC1035.
|
|
333
|
+
# @param [String] filter
|
|
334
|
+
# A filter expression that filters resources listed in the response. Most
|
|
335
|
+
# Compute resources support two types of filter expressions:
|
|
336
|
+
# expressions that support regular expressions and expressions that follow
|
|
337
|
+
# API improvement proposal AIP-160.
|
|
338
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
339
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
340
|
+
# operator, and the value that you want to use for filtering. The value
|
|
341
|
+
# must be a string, a number, or a boolean. The operator
|
|
342
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
343
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
344
|
+
# exclude instances named `example-instance` by specifying
|
|
345
|
+
# `name != example-instance`.
|
|
346
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
347
|
+
# For example, to find all objects with `owner` label use:
|
|
348
|
+
# ```
|
|
349
|
+
# labels.owner:*
|
|
350
|
+
# ```
|
|
351
|
+
# You can also filter nested fields. For example, you could specify
|
|
352
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
353
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
354
|
+
# on nested fields to filter based onresource labels.
|
|
355
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
356
|
+
# parentheses. For example:
|
|
357
|
+
# ```
|
|
358
|
+
# (scheduling.automaticRestart = true)
|
|
359
|
+
# (cpuPlatform = "Intel Skylake")
|
|
360
|
+
# ```
|
|
361
|
+
# By default, each expression is an `AND` expression. However, you
|
|
362
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
363
|
+
# For example:
|
|
364
|
+
# ```
|
|
365
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
366
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
367
|
+
# (scheduling.automaticRestart = true)
|
|
368
|
+
# ```
|
|
369
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
370
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
371
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
372
|
+
# `fieldname eq unquoted literal`
|
|
373
|
+
# `fieldname eq 'single quoted literal'`
|
|
374
|
+
# `fieldname eq "double quoted literal"`
|
|
375
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
376
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
377
|
+
# library syntax.
|
|
378
|
+
# The literal value must match the entire field.
|
|
379
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
380
|
+
# you would use `name ne .*instance`.
|
|
381
|
+
# You cannot combine constraints on multiple fields using regular
|
|
382
|
+
# expressions.
|
|
383
|
+
# @param [Fixnum] max_results
|
|
384
|
+
# The maximum number of results per page that should be returned.
|
|
385
|
+
# If the number of available results is larger than `maxResults`,
|
|
386
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
387
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
388
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
389
|
+
# @param [String] order_by
|
|
390
|
+
# Sorts list results by a certain order. By default, results
|
|
391
|
+
# are returned in alphanumerical order based on the resource name.
|
|
392
|
+
# You can also sort results in descending order based on the creation
|
|
393
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
394
|
+
# results based on the `creationTimestamp` field in
|
|
395
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
396
|
+
# resources like operations so that the newest operation is returned first.
|
|
397
|
+
# Currently, only sorting by `name` or
|
|
398
|
+
# `creationTimestamp desc` is supported.
|
|
399
|
+
# @param [String] page_token
|
|
400
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
401
|
+
# `nextPageToken` returned by a previous list request to get
|
|
402
|
+
# the next page of results.
|
|
403
|
+
# @param [String] fields
|
|
404
|
+
# Selector specifying which fields to include in a partial response.
|
|
405
|
+
# @param [String] quota_user
|
|
406
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
407
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
408
|
+
# @param [String] user_ip
|
|
409
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
410
|
+
# @param [Google::Apis::RequestOptions] options
|
|
411
|
+
# Request-specific options
|
|
412
|
+
#
|
|
413
|
+
# @yield [result, err] Result & error if block supplied
|
|
414
|
+
# @yieldparam result [Google::Apis::ComputePreview::AcceleratorInterconnectsList] parsed result object
|
|
415
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
416
|
+
#
|
|
417
|
+
# @return [Google::Apis::ComputePreview::AcceleratorInterconnectsList]
|
|
418
|
+
#
|
|
419
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
420
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
421
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
422
|
+
def list_accelerator_interconnects(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
423
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorInterconnects', options)
|
|
424
|
+
command.response_representation = Google::Apis::ComputePreview::AcceleratorInterconnectsList::Representation
|
|
425
|
+
command.response_class = Google::Apis::ComputePreview::AcceleratorInterconnectsList
|
|
426
|
+
command.params['project'] = project unless project.nil?
|
|
427
|
+
command.params['zone'] = zone unless zone.nil?
|
|
428
|
+
command.query['filter'] = filter unless filter.nil?
|
|
429
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
430
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
431
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
432
|
+
command.query['fields'] = fields unless fields.nil?
|
|
433
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
434
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
435
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
436
|
+
execute_or_queue_command(command, &block)
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# Queries hierarchical formability over dense reservations.
|
|
440
|
+
# @param [String] project
|
|
441
|
+
# Project ID for this request.
|
|
442
|
+
# @param [String] zone
|
|
443
|
+
# The name of thezone where the
|
|
444
|
+
# request is located. Zone name should conform to RFC1035.
|
|
445
|
+
# @param [Google::Apis::ComputePreview::QueryFormabilityRequest] query_formability_request_object
|
|
446
|
+
# @param [String] filter
|
|
447
|
+
# A filter expression that filters resources listed in the response. Most
|
|
448
|
+
# Compute resources support two types of filter expressions:
|
|
449
|
+
# expressions that support regular expressions and expressions that follow
|
|
450
|
+
# API improvement proposal AIP-160.
|
|
451
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
452
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
453
|
+
# operator, and the value that you want to use for filtering. The value
|
|
454
|
+
# must be a string, a number, or a boolean. The operator
|
|
455
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
456
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
457
|
+
# exclude instances named `example-instance` by specifying
|
|
458
|
+
# `name != example-instance`.
|
|
459
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
460
|
+
# For example, to find all objects with `owner` label use:
|
|
461
|
+
# ```
|
|
462
|
+
# labels.owner:*
|
|
463
|
+
# ```
|
|
464
|
+
# You can also filter nested fields. For example, you could specify
|
|
465
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
466
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
467
|
+
# on nested fields to filter based onresource labels.
|
|
468
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
469
|
+
# parentheses. For example:
|
|
470
|
+
# ```
|
|
471
|
+
# (scheduling.automaticRestart = true)
|
|
472
|
+
# (cpuPlatform = "Intel Skylake")
|
|
473
|
+
# ```
|
|
474
|
+
# By default, each expression is an `AND` expression. However, you
|
|
475
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
476
|
+
# For example:
|
|
477
|
+
# ```
|
|
478
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
479
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
480
|
+
# (scheduling.automaticRestart = true)
|
|
481
|
+
# ```
|
|
482
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
483
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
484
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
485
|
+
# `fieldname eq unquoted literal`
|
|
486
|
+
# `fieldname eq 'single quoted literal'`
|
|
487
|
+
# `fieldname eq "double quoted literal"`
|
|
488
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
489
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
490
|
+
# library syntax.
|
|
491
|
+
# The literal value must match the entire field.
|
|
492
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
493
|
+
# you would use `name ne .*instance`.
|
|
494
|
+
# You cannot combine constraints on multiple fields using regular
|
|
495
|
+
# expressions.
|
|
496
|
+
# @param [Fixnum] max_results
|
|
497
|
+
# The maximum number of results per page that should be returned.
|
|
498
|
+
# If the number of available results is larger than `maxResults`,
|
|
499
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
500
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
501
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
502
|
+
# @param [String] order_by
|
|
503
|
+
# Sorts list results by a certain order. By default, results
|
|
504
|
+
# are returned in alphanumerical order based on the resource name.
|
|
505
|
+
# You can also sort results in descending order based on the creation
|
|
506
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
507
|
+
# results based on the `creationTimestamp` field in
|
|
508
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
509
|
+
# resources like operations so that the newest operation is returned first.
|
|
510
|
+
# Currently, only sorting by `name` or
|
|
511
|
+
# `creationTimestamp desc` is supported.
|
|
512
|
+
# @param [String] page_token
|
|
513
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
514
|
+
# `nextPageToken` returned by a previous list request to get
|
|
515
|
+
# the next page of results.
|
|
516
|
+
# @param [String] fields
|
|
517
|
+
# Selector specifying which fields to include in a partial response.
|
|
518
|
+
# @param [String] quota_user
|
|
519
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
520
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
521
|
+
# @param [String] user_ip
|
|
522
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
523
|
+
# @param [Google::Apis::RequestOptions] options
|
|
524
|
+
# Request-specific options
|
|
525
|
+
#
|
|
526
|
+
# @yield [result, err] Result & error if block supplied
|
|
527
|
+
# @yieldparam result [Google::Apis::ComputePreview::QueryFormabilityResponse] parsed result object
|
|
528
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
529
|
+
#
|
|
530
|
+
# @return [Google::Apis::ComputePreview::QueryFormabilityResponse]
|
|
531
|
+
#
|
|
532
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
533
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
534
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
535
|
+
def query_accelerator_interconnect_formability(project, zone, query_formability_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
536
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/acceleratorInterconnects:queryFormability', options)
|
|
537
|
+
command.request_representation = Google::Apis::ComputePreview::QueryFormabilityRequest::Representation
|
|
538
|
+
command.request_object = query_formability_request_object
|
|
539
|
+
command.response_representation = Google::Apis::ComputePreview::QueryFormabilityResponse::Representation
|
|
540
|
+
command.response_class = Google::Apis::ComputePreview::QueryFormabilityResponse
|
|
541
|
+
command.params['project'] = project unless project.nil?
|
|
542
|
+
command.params['zone'] = zone unless zone.nil?
|
|
543
|
+
command.query['filter'] = filter unless filter.nil?
|
|
544
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
545
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
546
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
547
|
+
command.query['fields'] = fields unless fields.nil?
|
|
548
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
549
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
550
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
551
|
+
execute_or_queue_command(command, &block)
|
|
552
|
+
end
|
|
553
|
+
|
|
58
554
|
# Retrieves an aggregated list of accelerator types.
|
|
59
555
|
# To prevent failure, it is recommended that you set the
|
|
60
556
|
# `returnPartialSuccess` parameter to `true`.
|
|
@@ -18248,6 +18744,8 @@ module Google
|
|
|
18248
18744
|
# The request ID must be
|
|
18249
18745
|
# a valid UUID with the exception that zero UUID is not supported
|
|
18250
18746
|
# (00000000-0000-0000-0000-000000000000).
|
|
18747
|
+
# @param [String] reset_mode
|
|
18748
|
+
# Mode of reset operation. Defaults to HARD_RESET if not provided.
|
|
18251
18749
|
# @param [String] fields
|
|
18252
18750
|
# Selector specifying which fields to include in a partial response.
|
|
18253
18751
|
# @param [String] quota_user
|
|
@@ -18267,7 +18765,7 @@ module Google
|
|
|
18267
18765
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
18268
18766
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
18269
18767
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
18270
|
-
def reset_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
18768
|
+
def reset_instance(project, zone, instance, request_id: nil, reset_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
18271
18769
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options)
|
|
18272
18770
|
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
18273
18771
|
command.response_class = Google::Apis::ComputePreview::Operation
|
|
@@ -18275,6 +18773,7 @@ module Google
|
|
|
18275
18773
|
command.params['zone'] = zone unless zone.nil?
|
|
18276
18774
|
command.params['instance'] = instance unless instance.nil?
|
|
18277
18775
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
18776
|
+
command.query['resetMode'] = reset_mode unless reset_mode.nil?
|
|
18278
18777
|
command.query['fields'] = fields unless fields.nil?
|
|
18279
18778
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
18280
18779
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -23069,6 +23568,59 @@ module Google
|
|
|
23069
23568
|
execute_or_queue_command(command, &block)
|
|
23070
23569
|
end
|
|
23071
23570
|
|
|
23571
|
+
# Sets name of an interconnect.
|
|
23572
|
+
# @param [String] project
|
|
23573
|
+
# Project ID for this request.
|
|
23574
|
+
# @param [String] interconnect
|
|
23575
|
+
# Name of the interconnect to update.
|
|
23576
|
+
# @param [Google::Apis::ComputePreview::InterconnectsSetNameRequest] interconnects_set_name_request_object
|
|
23577
|
+
# @param [String] request_id
|
|
23578
|
+
# An optional request ID to identify requests. Specify a unique request ID
|
|
23579
|
+
# so that if you must retry your request, the server will know to ignore
|
|
23580
|
+
# the request if it has already been completed.
|
|
23581
|
+
# For example, consider a situation where you make an initial request and
|
|
23582
|
+
# the request times out. If you make the request again with the same
|
|
23583
|
+
# request ID, the server can check if original operation with the same
|
|
23584
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
23585
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
23586
|
+
# The request ID must be
|
|
23587
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
23588
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
23589
|
+
# @param [String] fields
|
|
23590
|
+
# Selector specifying which fields to include in a partial response.
|
|
23591
|
+
# @param [String] quota_user
|
|
23592
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
23593
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
23594
|
+
# @param [String] user_ip
|
|
23595
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
23596
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23597
|
+
# Request-specific options
|
|
23598
|
+
#
|
|
23599
|
+
# @yield [result, err] Result & error if block supplied
|
|
23600
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
23601
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23602
|
+
#
|
|
23603
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
23604
|
+
#
|
|
23605
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23606
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23607
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23608
|
+
def set_interconnect_name(project, interconnect, interconnects_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23609
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects/{interconnect}/setName', options)
|
|
23610
|
+
command.request_representation = Google::Apis::ComputePreview::InterconnectsSetNameRequest::Representation
|
|
23611
|
+
command.request_object = interconnects_set_name_request_object
|
|
23612
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
23613
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
23614
|
+
command.params['project'] = project unless project.nil?
|
|
23615
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
|
23616
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
23617
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23618
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23619
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23620
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
23621
|
+
execute_or_queue_command(command, &block)
|
|
23622
|
+
end
|
|
23623
|
+
|
|
23072
23624
|
# Return a specified license code. License codes are mirrored across
|
|
23073
23625
|
# all projects that have permissions to read the License Code.
|
|
23074
23626
|
# *Caution* This resource is intended
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-compute_preview
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.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-compute_preview/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_preview/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_preview/v0.2.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_preview
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|