google-apis-compute_preview 0.1.0 → 0.3.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`.
@@ -993,6 +1489,249 @@ module Google
993
1489
  execute_or_queue_command(command, &block)
994
1490
  end
995
1491
 
1492
+ # Deletes the specified AliasNetworkEndpoint.
1493
+ # @param [String] project
1494
+ # Required. Project ID for this request.
1495
+ # @param [String] zone
1496
+ # Required. Name of the zone scoping this request.
1497
+ # @param [String] alias_network_endpoint
1498
+ # Required. Name of the AliasNetworkEndpoint resource to delete.
1499
+ # @param [String] request_id
1500
+ # An optional request ID to identify requests. Specify a unique request ID so
1501
+ # that if you must retry your request, the server will know to ignore the
1502
+ # request if it has already been completed.
1503
+ # @param [String] fields
1504
+ # Selector specifying which fields to include in a partial response.
1505
+ # @param [String] quota_user
1506
+ # Available to use for quota purposes for server-side applications. Can be any
1507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1508
+ # @param [String] user_ip
1509
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1510
+ # @param [Google::Apis::RequestOptions] options
1511
+ # Request-specific options
1512
+ #
1513
+ # @yield [result, err] Result & error if block supplied
1514
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
1515
+ # @yieldparam err [StandardError] error object if request failed
1516
+ #
1517
+ # @return [Google::Apis::ComputePreview::Operation]
1518
+ #
1519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1522
+ def delete_alias_network_endpoint(project, zone, alias_network_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1523
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints/{aliasNetworkEndpoint}', options)
1524
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
1525
+ command.response_class = Google::Apis::ComputePreview::Operation
1526
+ command.params['project'] = project unless project.nil?
1527
+ command.params['zone'] = zone unless zone.nil?
1528
+ command.params['aliasNetworkEndpoint'] = alias_network_endpoint unless alias_network_endpoint.nil?
1529
+ command.query['requestId'] = request_id unless request_id.nil?
1530
+ command.query['fields'] = fields unless fields.nil?
1531
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1532
+ command.query['userIp'] = user_ip unless user_ip.nil?
1533
+ command.set_api_version_header "2026-10-01-preview"
1534
+ execute_or_queue_command(command, &block)
1535
+ end
1536
+
1537
+ # Returns the specified AliasNetworkEndpoint resource.
1538
+ # @param [String] project
1539
+ # Required. Project ID for this request.
1540
+ # @param [String] zone
1541
+ # Required. Name of the zone scoping this request.
1542
+ # @param [String] alias_network_endpoint
1543
+ # Required. Name of the AliasNetworkEndpoint resource to return.
1544
+ # @param [String] fields
1545
+ # Selector specifying which fields to include in a partial response.
1546
+ # @param [String] quota_user
1547
+ # Available to use for quota purposes for server-side applications. Can be any
1548
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1549
+ # @param [String] user_ip
1550
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1551
+ # @param [Google::Apis::RequestOptions] options
1552
+ # Request-specific options
1553
+ #
1554
+ # @yield [result, err] Result & error if block supplied
1555
+ # @yieldparam result [Google::Apis::ComputePreview::AliasNetworkEndpoint] parsed result object
1556
+ # @yieldparam err [StandardError] error object if request failed
1557
+ #
1558
+ # @return [Google::Apis::ComputePreview::AliasNetworkEndpoint]
1559
+ #
1560
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1561
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1562
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1563
+ def get_alias_network_endpoint(project, zone, alias_network_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1564
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints/{aliasNetworkEndpoint}', options)
1565
+ command.response_representation = Google::Apis::ComputePreview::AliasNetworkEndpoint::Representation
1566
+ command.response_class = Google::Apis::ComputePreview::AliasNetworkEndpoint
1567
+ command.params['project'] = project unless project.nil?
1568
+ command.params['zone'] = zone unless zone.nil?
1569
+ command.params['aliasNetworkEndpoint'] = alias_network_endpoint unless alias_network_endpoint.nil?
1570
+ command.query['fields'] = fields unless fields.nil?
1571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1572
+ command.query['userIp'] = user_ip unless user_ip.nil?
1573
+ command.set_api_version_header "2026-10-01-preview"
1574
+ execute_or_queue_command(command, &block)
1575
+ end
1576
+
1577
+ # Creates an AliasNetworkEndpoint in the specified project and zone
1578
+ # using the data included in the request.
1579
+ # @param [String] project
1580
+ # Required. Project ID for this request.
1581
+ # @param [String] zone
1582
+ # Required. Name of the zone scoping this request.
1583
+ # @param [Google::Apis::ComputePreview::AliasNetworkEndpoint] alias_network_endpoint_object
1584
+ # @param [String] request_id
1585
+ # An optional request ID to identify requests. Specify a unique request ID so
1586
+ # that if you must retry your request, the server will know to ignore the
1587
+ # request if it has already been completed.
1588
+ # @param [String] fields
1589
+ # Selector specifying which fields to include in a partial response.
1590
+ # @param [String] quota_user
1591
+ # Available to use for quota purposes for server-side applications. Can be any
1592
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1593
+ # @param [String] user_ip
1594
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1595
+ # @param [Google::Apis::RequestOptions] options
1596
+ # Request-specific options
1597
+ #
1598
+ # @yield [result, err] Result & error if block supplied
1599
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
1600
+ # @yieldparam err [StandardError] error object if request failed
1601
+ #
1602
+ # @return [Google::Apis::ComputePreview::Operation]
1603
+ #
1604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1607
+ def insert_alias_network_endpoint(project, zone, alias_network_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1608
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints', options)
1609
+ command.request_representation = Google::Apis::ComputePreview::AliasNetworkEndpoint::Representation
1610
+ command.request_object = alias_network_endpoint_object
1611
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
1612
+ command.response_class = Google::Apis::ComputePreview::Operation
1613
+ command.params['project'] = project unless project.nil?
1614
+ command.params['zone'] = zone unless zone.nil?
1615
+ command.query['requestId'] = request_id unless request_id.nil?
1616
+ command.query['fields'] = fields unless fields.nil?
1617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1618
+ command.query['userIp'] = user_ip unless user_ip.nil?
1619
+ command.set_api_version_header "2026-10-01-preview"
1620
+ execute_or_queue_command(command, &block)
1621
+ end
1622
+
1623
+ # Retrieves a list of AliasNetworkEndpoints available to the specified
1624
+ # project.
1625
+ # @param [String] project
1626
+ # Required. Project ID for this request.
1627
+ # @param [String] zone
1628
+ # Required. Name of the zone of this request.
1629
+ # @param [String] filter
1630
+ # A filter expression that filters resources listed in the response. Most
1631
+ # Compute resources support two types of filter expressions:
1632
+ # expressions that support regular expressions and expressions that follow
1633
+ # API improvement proposal AIP-160.
1634
+ # These two types of filter expressions cannot be mixed in one request.
1635
+ # If you want to use AIP-160, your expression must specify the field name, an
1636
+ # operator, and the value that you want to use for filtering. The value
1637
+ # must be a string, a number, or a boolean. The operator
1638
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
1639
+ # For example, if you are filtering Compute Engine instances, you can
1640
+ # exclude instances named `example-instance` by specifying
1641
+ # `name != example-instance`.
1642
+ # The `:*` comparison can be used to test whether a key has been defined.
1643
+ # For example, to find all objects with `owner` label use:
1644
+ # ```
1645
+ # labels.owner:*
1646
+ # ```
1647
+ # You can also filter nested fields. For example, you could specify
1648
+ # `scheduling.automaticRestart = false` to include instances only
1649
+ # if they are not scheduled for automatic restarts. You can use filtering
1650
+ # on nested fields to filter based onresource labels.
1651
+ # To filter on multiple expressions, provide each separate expression within
1652
+ # parentheses. For example:
1653
+ # ```
1654
+ # (scheduling.automaticRestart = true)
1655
+ # (cpuPlatform = "Intel Skylake")
1656
+ # ```
1657
+ # By default, each expression is an `AND` expression. However, you
1658
+ # can include `AND` and `OR` expressions explicitly.
1659
+ # For example:
1660
+ # ```
1661
+ # (cpuPlatform = "Intel Skylake") OR
1662
+ # (cpuPlatform = "Intel Broadwell") AND
1663
+ # (scheduling.automaticRestart = true)
1664
+ # ```
1665
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
1666
+ # (not equal) operator against a single un-parenthesized expression with or
1667
+ # without quotes or against multiple parenthesized expressions. Examples:
1668
+ # `fieldname eq unquoted literal`
1669
+ # `fieldname eq 'single quoted literal'`
1670
+ # `fieldname eq "double quoted literal"`
1671
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
1672
+ # The literal value is interpreted as a regular expression using GoogleRE2
1673
+ # library syntax.
1674
+ # The literal value must match the entire field.
1675
+ # For example, to filter for instances that do not end with name "instance",
1676
+ # you would use `name ne .*instance`.
1677
+ # You cannot combine constraints on multiple fields using regular
1678
+ # expressions.
1679
+ # @param [Fixnum] max_results
1680
+ # The maximum number of results per page that should be returned.
1681
+ # If the number of available results is larger than `maxResults`,
1682
+ # Compute Engine returns a `nextPageToken` that can be used to get
1683
+ # the next page of results in subsequent list requests. Acceptable values are
1684
+ # `0` to `500`, inclusive. (Default: `500`)
1685
+ # @param [String] order_by
1686
+ # Sorts list results by a certain order. By default, results
1687
+ # are returned in alphanumerical order based on the resource name.
1688
+ # You can also sort results in descending order based on the creation
1689
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
1690
+ # results based on the `creationTimestamp` field in
1691
+ # reverse chronological order (newest result first). Use this to sort
1692
+ # resources like operations so that the newest operation is returned first.
1693
+ # Currently, only sorting by `name` or
1694
+ # `creationTimestamp desc` is supported.
1695
+ # @param [String] page_token
1696
+ # Specifies a page token to use. Set `pageToken` to the
1697
+ # `nextPageToken` returned by a previous list request to get
1698
+ # the next page of results.
1699
+ # @param [String] fields
1700
+ # Selector specifying which fields to include in a partial response.
1701
+ # @param [String] quota_user
1702
+ # Available to use for quota purposes for server-side applications. Can be any
1703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1704
+ # @param [String] user_ip
1705
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1706
+ # @param [Google::Apis::RequestOptions] options
1707
+ # Request-specific options
1708
+ #
1709
+ # @yield [result, err] Result & error if block supplied
1710
+ # @yieldparam result [Google::Apis::ComputePreview::AliasNetworkEndpointList] parsed result object
1711
+ # @yieldparam err [StandardError] error object if request failed
1712
+ #
1713
+ # @return [Google::Apis::ComputePreview::AliasNetworkEndpointList]
1714
+ #
1715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1718
+ def list_alias_network_endpoints(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1719
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints', options)
1720
+ command.response_representation = Google::Apis::ComputePreview::AliasNetworkEndpointList::Representation
1721
+ command.response_class = Google::Apis::ComputePreview::AliasNetworkEndpointList
1722
+ command.params['project'] = project unless project.nil?
1723
+ command.params['zone'] = zone unless zone.nil?
1724
+ command.query['filter'] = filter unless filter.nil?
1725
+ command.query['maxResults'] = max_results unless max_results.nil?
1726
+ command.query['orderBy'] = order_by unless order_by.nil?
1727
+ command.query['pageToken'] = page_token unless page_token.nil?
1728
+ command.query['fields'] = fields unless fields.nil?
1729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1730
+ command.query['userIp'] = user_ip unless user_ip.nil?
1731
+ command.set_api_version_header "2026-10-01-preview"
1732
+ execute_or_queue_command(command, &block)
1733
+ end
1734
+
996
1735
  # Retrieves an aggregated list of autoscalers.
997
1736
  # To prevent failure, it is recommended that you set the
998
1737
  # `returnPartialSuccess` parameter to `true`.
@@ -18248,6 +18987,8 @@ module Google
18248
18987
  # The request ID must be
18249
18988
  # a valid UUID with the exception that zero UUID is not supported
18250
18989
  # (00000000-0000-0000-0000-000000000000).
18990
+ # @param [String] reset_mode
18991
+ # Mode of reset operation. Defaults to HARD_RESET if not provided.
18251
18992
  # @param [String] fields
18252
18993
  # Selector specifying which fields to include in a partial response.
18253
18994
  # @param [String] quota_user
@@ -18267,7 +19008,7 @@ module Google
18267
19008
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18268
19009
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18269
19010
  # @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)
19011
+ def reset_instance(project, zone, instance, request_id: nil, reset_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18271
19012
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options)
18272
19013
  command.response_representation = Google::Apis::ComputePreview::Operation::Representation
18273
19014
  command.response_class = Google::Apis::ComputePreview::Operation
@@ -18275,6 +19016,7 @@ module Google
18275
19016
  command.params['zone'] = zone unless zone.nil?
18276
19017
  command.params['instance'] = instance unless instance.nil?
18277
19018
  command.query['requestId'] = request_id unless request_id.nil?
19019
+ command.query['resetMode'] = reset_mode unless reset_mode.nil?
18278
19020
  command.query['fields'] = fields unless fields.nil?
18279
19021
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18280
19022
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -23069,6 +23811,59 @@ module Google
23069
23811
  execute_or_queue_command(command, &block)
23070
23812
  end
23071
23813
 
23814
+ # Sets name of an interconnect.
23815
+ # @param [String] project
23816
+ # Project ID for this request.
23817
+ # @param [String] interconnect
23818
+ # Name of the interconnect to update.
23819
+ # @param [Google::Apis::ComputePreview::InterconnectsSetNameRequest] interconnects_set_name_request_object
23820
+ # @param [String] request_id
23821
+ # An optional request ID to identify requests. Specify a unique request ID
23822
+ # so that if you must retry your request, the server will know to ignore
23823
+ # the request if it has already been completed.
23824
+ # For example, consider a situation where you make an initial request and
23825
+ # the request times out. If you make the request again with the same
23826
+ # request ID, the server can check if original operation with the same
23827
+ # request ID was received, and if so, will ignore the second request. This
23828
+ # prevents clients from accidentally creating duplicate commitments.
23829
+ # The request ID must be
23830
+ # a valid UUID with the exception that zero UUID is not supported
23831
+ # (00000000-0000-0000-0000-000000000000).
23832
+ # @param [String] fields
23833
+ # Selector specifying which fields to include in a partial response.
23834
+ # @param [String] quota_user
23835
+ # Available to use for quota purposes for server-side applications. Can be any
23836
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23837
+ # @param [String] user_ip
23838
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23839
+ # @param [Google::Apis::RequestOptions] options
23840
+ # Request-specific options
23841
+ #
23842
+ # @yield [result, err] Result & error if block supplied
23843
+ # @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
23844
+ # @yieldparam err [StandardError] error object if request failed
23845
+ #
23846
+ # @return [Google::Apis::ComputePreview::Operation]
23847
+ #
23848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23851
+ 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)
23852
+ command = make_simple_command(:post, 'projects/{project}/global/interconnects/{interconnect}/setName', options)
23853
+ command.request_representation = Google::Apis::ComputePreview::InterconnectsSetNameRequest::Representation
23854
+ command.request_object = interconnects_set_name_request_object
23855
+ command.response_representation = Google::Apis::ComputePreview::Operation::Representation
23856
+ command.response_class = Google::Apis::ComputePreview::Operation
23857
+ command.params['project'] = project unless project.nil?
23858
+ command.params['interconnect'] = interconnect unless interconnect.nil?
23859
+ command.query['requestId'] = request_id unless request_id.nil?
23860
+ command.query['fields'] = fields unless fields.nil?
23861
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23862
+ command.query['userIp'] = user_ip unless user_ip.nil?
23863
+ command.set_api_version_header "2026-10-01-preview"
23864
+ execute_or_queue_command(command, &block)
23865
+ end
23866
+
23072
23867
  # Return a specified license code. License codes are mirrored across
23073
23868
  # all projects that have permissions to read the License Code.
23074
23869
  # *Caution* This resource is intended