google-apis-compute_v1 0.66.0 → 0.68.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -607,6 +607,59 @@ module Google
607
607
  execute_or_queue_command(command, &block)
608
608
  end
609
609
 
610
+ # Moves the specified address resource.
611
+ # @param [String] project
612
+ # Source project ID which the Address is moved from.
613
+ # @param [String] region
614
+ # Name of the region for this request.
615
+ # @param [String] address
616
+ # Name of the address resource to move.
617
+ # @param [Google::Apis::ComputeV1::RegionAddressesMoveRequest] region_addresses_move_request_object
618
+ # @param [String] request_id
619
+ # An optional request ID to identify requests. Specify a unique request ID so
620
+ # that if you must retry your request, the server will know to ignore the
621
+ # request if it has already been completed. For example, consider a situation
622
+ # where you make an initial request and the request times out. If you make the
623
+ # request again with the same request ID, the server can check if original
624
+ # operation with the same request ID was received, and if so, will ignore the
625
+ # second request. This prevents clients from accidentally creating duplicate
626
+ # commitments. The request ID must be a valid UUID with the exception that zero
627
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
628
+ # @param [String] fields
629
+ # Selector specifying which fields to include in a partial response.
630
+ # @param [String] quota_user
631
+ # Available to use for quota purposes for server-side applications. Can be any
632
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
633
+ # @param [String] user_ip
634
+ # Legacy name for parameter that has been superseded by `quotaUser`.
635
+ # @param [Google::Apis::RequestOptions] options
636
+ # Request-specific options
637
+ #
638
+ # @yield [result, err] Result & error if block supplied
639
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
640
+ # @yieldparam err [StandardError] error object if request failed
641
+ #
642
+ # @return [Google::Apis::ComputeV1::Operation]
643
+ #
644
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
647
+ def move_address(project, region, address, region_addresses_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
648
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{address}/move', options)
649
+ command.request_representation = Google::Apis::ComputeV1::RegionAddressesMoveRequest::Representation
650
+ command.request_object = region_addresses_move_request_object
651
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
652
+ command.response_class = Google::Apis::ComputeV1::Operation
653
+ command.params['project'] = project unless project.nil?
654
+ command.params['region'] = region unless region.nil?
655
+ command.params['address'] = address unless address.nil?
656
+ command.query['requestId'] = request_id unless request_id.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ command.query['userIp'] = user_ip unless user_ip.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
610
663
  # Sets the labels on an Address. To learn more about labels, read the Labeling
611
664
  # Resources documentation.
612
665
  # @param [String] project
@@ -5495,6 +5548,56 @@ module Google
5495
5548
  execute_or_queue_command(command, &block)
5496
5549
  end
5497
5550
 
5551
+ # Moves the specified address resource from one project to another project.
5552
+ # @param [String] project
5553
+ # Source project ID which the Address is moved from.
5554
+ # @param [String] address
5555
+ # Name of the address resource to move.
5556
+ # @param [Google::Apis::ComputeV1::GlobalAddressesMoveRequest] global_addresses_move_request_object
5557
+ # @param [String] request_id
5558
+ # An optional request ID to identify requests. Specify a unique request ID so
5559
+ # that if you must retry your request, the server will know to ignore the
5560
+ # request if it has already been completed. For example, consider a situation
5561
+ # where you make an initial request and the request times out. If you make the
5562
+ # request again with the same request ID, the server can check if original
5563
+ # operation with the same request ID was received, and if so, will ignore the
5564
+ # second request. This prevents clients from accidentally creating duplicate
5565
+ # commitments. The request ID must be a valid UUID with the exception that zero
5566
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5567
+ # @param [String] fields
5568
+ # Selector specifying which fields to include in a partial response.
5569
+ # @param [String] quota_user
5570
+ # Available to use for quota purposes for server-side applications. Can be any
5571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5572
+ # @param [String] user_ip
5573
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5574
+ # @param [Google::Apis::RequestOptions] options
5575
+ # Request-specific options
5576
+ #
5577
+ # @yield [result, err] Result & error if block supplied
5578
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
5579
+ # @yieldparam err [StandardError] error object if request failed
5580
+ #
5581
+ # @return [Google::Apis::ComputeV1::Operation]
5582
+ #
5583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5586
+ def move_global_address(project, address, global_addresses_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5587
+ command = make_simple_command(:post, 'projects/{project}/global/addresses/{address}/move', options)
5588
+ command.request_representation = Google::Apis::ComputeV1::GlobalAddressesMoveRequest::Representation
5589
+ command.request_object = global_addresses_move_request_object
5590
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
5591
+ command.response_class = Google::Apis::ComputeV1::Operation
5592
+ command.params['project'] = project unless project.nil?
5593
+ command.params['address'] = address unless address.nil?
5594
+ command.query['requestId'] = request_id unless request_id.nil?
5595
+ command.query['fields'] = fields unless fields.nil?
5596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5597
+ command.query['userIp'] = user_ip unless user_ip.nil?
5598
+ execute_or_queue_command(command, &block)
5599
+ end
5600
+
5498
5601
  # Sets the labels on a GlobalAddress. To learn more about labels, read the
5499
5602
  # Labeling Resources documentation.
5500
5603
  # @param [String] project
@@ -12968,6 +13071,16 @@ module Google
12968
13071
  # The name of the zone for this request.
12969
13072
  # @param [String] instance
12970
13073
  # Name of the instance scoping this request.
13074
+ # @param [String] request_id
13075
+ # An optional request ID to identify requests. Specify a unique request ID so
13076
+ # that if you must retry your request, the server will know to ignore the
13077
+ # request if it has already been completed. For example, consider a situation
13078
+ # where you make an initial request and the request times out. If you make the
13079
+ # request again with the same request ID, the server can check if original
13080
+ # operation with the same request ID was received, and if so, will ignore the
13081
+ # second request. This prevents clients from accidentally creating duplicate
13082
+ # commitments. The request ID must be a valid UUID with the exception that zero
13083
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
12971
13084
  # @param [String] fields
12972
13085
  # Selector specifying which fields to include in a partial response.
12973
13086
  # @param [String] quota_user
@@ -12987,13 +13100,14 @@ module Google
12987
13100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12988
13101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12989
13102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
12990
- def simulate_instance_maintenance_event(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13103
+ def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12991
13104
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
12992
13105
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
12993
13106
  command.response_class = Google::Apis::ComputeV1::Operation
12994
13107
  command.params['project'] = project unless project.nil?
12995
13108
  command.params['zone'] = zone unless zone.nil?
12996
13109
  command.params['instance'] = instance unless instance.nil?
13110
+ command.query['requestId'] = request_id unless request_id.nil?
12997
13111
  command.query['fields'] = fields unless fields.nil?
12998
13112
  command.query['quotaUser'] = quota_user unless quota_user.nil?
12999
13113
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -14125,6 +14239,132 @@ module Google
14125
14239
  execute_or_queue_command(command, &block)
14126
14240
  end
14127
14241
 
14242
+ # Returns the details for the specified interconnect remote location. Gets a
14243
+ # list of available interconnect remote locations by making a list() request.
14244
+ # @param [String] project
14245
+ # Project ID for this request.
14246
+ # @param [String] interconnect_remote_location
14247
+ # Name of the interconnect remote location to return.
14248
+ # @param [String] fields
14249
+ # Selector specifying which fields to include in a partial response.
14250
+ # @param [String] quota_user
14251
+ # Available to use for quota purposes for server-side applications. Can be any
14252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14253
+ # @param [String] user_ip
14254
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14255
+ # @param [Google::Apis::RequestOptions] options
14256
+ # Request-specific options
14257
+ #
14258
+ # @yield [result, err] Result & error if block supplied
14259
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectRemoteLocation] parsed result object
14260
+ # @yieldparam err [StandardError] error object if request failed
14261
+ #
14262
+ # @return [Google::Apis::ComputeV1::InterconnectRemoteLocation]
14263
+ #
14264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14267
+ def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14268
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
14269
+ command.response_representation = Google::Apis::ComputeV1::InterconnectRemoteLocation::Representation
14270
+ command.response_class = Google::Apis::ComputeV1::InterconnectRemoteLocation
14271
+ command.params['project'] = project unless project.nil?
14272
+ command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
14273
+ command.query['fields'] = fields unless fields.nil?
14274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14275
+ command.query['userIp'] = user_ip unless user_ip.nil?
14276
+ execute_or_queue_command(command, &block)
14277
+ end
14278
+
14279
+ # Retrieves the list of interconnect remote locations available to the specified
14280
+ # project.
14281
+ # @param [String] project
14282
+ # Project ID for this request.
14283
+ # @param [String] filter
14284
+ # A filter expression that filters resources listed in the response. Most
14285
+ # Compute resources support two types of filter expressions: expressions that
14286
+ # support regular expressions and expressions that follow API improvement
14287
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
14288
+ # field name, an operator, and the value that you want to use for filtering. The
14289
+ # value must be a string, a number, or a boolean. The operator must be either `=`
14290
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
14291
+ # Engine instances, you can exclude instances named `example-instance` by
14292
+ # specifying `name != example-instance`. The `:` operator can be used with
14293
+ # string fields to match substrings. For non-string fields it is equivalent to
14294
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
14295
+ # been defined. For example, to find all objects with `owner` label use: ```
14296
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
14297
+ # specify `scheduling.automaticRestart = false` to include instances only if
14298
+ # they are not scheduled for automatic restarts. You can use filtering on nested
14299
+ # fields to filter based on resource labels. To filter on multiple expressions,
14300
+ # provide each separate expression within parentheses. For example: ``` (
14301
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
14302
+ # default, each expression is an `AND` expression. However, you can include `AND`
14303
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
14304
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
14305
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
14306
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
14307
+ # expression with or without quotes or against multiple parenthesized
14308
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
14309
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
14310
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
14311
+ # regular expression using Google RE2 library syntax. The literal value must
14312
+ # match the entire field. For example, to filter for instances that do not end
14313
+ # with name "instance", you would use `name ne .*instance`.
14314
+ # @param [Fixnum] max_results
14315
+ # The maximum number of results per page that should be returned. If the number
14316
+ # of available results is larger than `maxResults`, Compute Engine returns a `
14317
+ # nextPageToken` that can be used to get the next page of results in subsequent
14318
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
14319
+ # @param [String] order_by
14320
+ # Sorts list results by a certain order. By default, results are returned in
14321
+ # alphanumerical order based on the resource name. You can also sort results in
14322
+ # descending order based on the creation timestamp using `orderBy="
14323
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
14324
+ # field in reverse chronological order (newest result first). Use this to sort
14325
+ # resources like operations so that the newest operation is returned first.
14326
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
14327
+ # @param [String] page_token
14328
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
14329
+ # by a previous list request to get the next page of results.
14330
+ # @param [Boolean] return_partial_success
14331
+ # Opt-in for partial success behavior which provides partial results in case of
14332
+ # failure. The default value is false.
14333
+ # @param [String] fields
14334
+ # Selector specifying which fields to include in a partial response.
14335
+ # @param [String] quota_user
14336
+ # Available to use for quota purposes for server-side applications. Can be any
14337
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14338
+ # @param [String] user_ip
14339
+ # Legacy name for parameter that has been superseded by `quotaUser`.
14340
+ # @param [Google::Apis::RequestOptions] options
14341
+ # Request-specific options
14342
+ #
14343
+ # @yield [result, err] Result & error if block supplied
14344
+ # @yieldparam result [Google::Apis::ComputeV1::InterconnectRemoteLocationList] parsed result object
14345
+ # @yieldparam err [StandardError] error object if request failed
14346
+ #
14347
+ # @return [Google::Apis::ComputeV1::InterconnectRemoteLocationList]
14348
+ #
14349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14352
+ def list_interconnect_remote_locations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14353
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations', options)
14354
+ command.response_representation = Google::Apis::ComputeV1::InterconnectRemoteLocationList::Representation
14355
+ command.response_class = Google::Apis::ComputeV1::InterconnectRemoteLocationList
14356
+ command.params['project'] = project unless project.nil?
14357
+ command.query['filter'] = filter unless filter.nil?
14358
+ command.query['maxResults'] = max_results unless max_results.nil?
14359
+ command.query['orderBy'] = order_by unless order_by.nil?
14360
+ command.query['pageToken'] = page_token unless page_token.nil?
14361
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
14362
+ command.query['fields'] = fields unless fields.nil?
14363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14364
+ command.query['userIp'] = user_ip unless user_ip.nil?
14365
+ execute_or_queue_command(command, &block)
14366
+ end
14367
+
14128
14368
  # Deletes the specified Interconnect.
14129
14369
  # @param [String] project
14130
14370
  # Project ID for this request.
@@ -25557,6 +25797,239 @@ module Google
25557
25797
  execute_or_queue_command(command, &block)
25558
25798
  end
25559
25799
 
25800
+ # Deletes the specified instance template. Deleting an instance template is
25801
+ # permanent and cannot be undone.
25802
+ # @param [String] project
25803
+ # Project ID for this request.
25804
+ # @param [String] region
25805
+ # The name of the region for this request.
25806
+ # @param [String] instance_template
25807
+ # The name of the instance template to delete.
25808
+ # @param [String] request_id
25809
+ # An optional request ID to identify requests. Specify a unique request ID so
25810
+ # that if you must retry your request, the server will know to ignore the
25811
+ # request if it has already been completed. For example, consider a situation
25812
+ # where you make an initial request and the request times out. If you make the
25813
+ # request again with the same request ID, the server can check if original
25814
+ # operation with the same request ID was received, and if so, will ignore the
25815
+ # second request. This prevents clients from accidentally creating duplicate
25816
+ # commitments. The request ID must be a valid UUID with the exception that zero
25817
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25818
+ # @param [String] fields
25819
+ # Selector specifying which fields to include in a partial response.
25820
+ # @param [String] quota_user
25821
+ # Available to use for quota purposes for server-side applications. Can be any
25822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25823
+ # @param [String] user_ip
25824
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25825
+ # @param [Google::Apis::RequestOptions] options
25826
+ # Request-specific options
25827
+ #
25828
+ # @yield [result, err] Result & error if block supplied
25829
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25830
+ # @yieldparam err [StandardError] error object if request failed
25831
+ #
25832
+ # @return [Google::Apis::ComputeV1::Operation]
25833
+ #
25834
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25835
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25836
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25837
+ def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25838
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25839
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25840
+ command.response_class = Google::Apis::ComputeV1::Operation
25841
+ command.params['project'] = project unless project.nil?
25842
+ command.params['region'] = region unless region.nil?
25843
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25844
+ command.query['requestId'] = request_id unless request_id.nil?
25845
+ command.query['fields'] = fields unless fields.nil?
25846
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25847
+ command.query['userIp'] = user_ip unless user_ip.nil?
25848
+ execute_or_queue_command(command, &block)
25849
+ end
25850
+
25851
+ # Returns the specified instance template.
25852
+ # @param [String] project
25853
+ # Project ID for this request.
25854
+ # @param [String] region
25855
+ # The name of the region for this request.
25856
+ # @param [String] instance_template
25857
+ # The name of the instance template.
25858
+ # @param [String] fields
25859
+ # Selector specifying which fields to include in a partial response.
25860
+ # @param [String] quota_user
25861
+ # Available to use for quota purposes for server-side applications. Can be any
25862
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25863
+ # @param [String] user_ip
25864
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25865
+ # @param [Google::Apis::RequestOptions] options
25866
+ # Request-specific options
25867
+ #
25868
+ # @yield [result, err] Result & error if block supplied
25869
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplate] parsed result object
25870
+ # @yieldparam err [StandardError] error object if request failed
25871
+ #
25872
+ # @return [Google::Apis::ComputeV1::InstanceTemplate]
25873
+ #
25874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25877
+ def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25878
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25879
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25880
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplate
25881
+ command.params['project'] = project unless project.nil?
25882
+ command.params['region'] = region unless region.nil?
25883
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25884
+ command.query['fields'] = fields unless fields.nil?
25885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25886
+ command.query['userIp'] = user_ip unless user_ip.nil?
25887
+ execute_or_queue_command(command, &block)
25888
+ end
25889
+
25890
+ # Creates an instance template in the specified project and region using the
25891
+ # global instance template whose URL is included in the request.
25892
+ # @param [String] project
25893
+ # Project ID for this request.
25894
+ # @param [String] region
25895
+ # The name of the region for this request.
25896
+ # @param [Google::Apis::ComputeV1::InstanceTemplate] instance_template_object
25897
+ # @param [String] request_id
25898
+ # An optional request ID to identify requests. Specify a unique request ID so
25899
+ # that if you must retry your request, the server will know to ignore the
25900
+ # request if it has already been completed. For example, consider a situation
25901
+ # where you make an initial request and the request times out. If you make the
25902
+ # request again with the same request ID, the server can check if original
25903
+ # operation with the same request ID was received, and if so, will ignore the
25904
+ # second request. This prevents clients from accidentally creating duplicate
25905
+ # commitments. The request ID must be a valid UUID with the exception that zero
25906
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25907
+ # @param [String] fields
25908
+ # Selector specifying which fields to include in a partial response.
25909
+ # @param [String] quota_user
25910
+ # Available to use for quota purposes for server-side applications. Can be any
25911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25912
+ # @param [String] user_ip
25913
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25914
+ # @param [Google::Apis::RequestOptions] options
25915
+ # Request-specific options
25916
+ #
25917
+ # @yield [result, err] Result & error if block supplied
25918
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25919
+ # @yieldparam err [StandardError] error object if request failed
25920
+ #
25921
+ # @return [Google::Apis::ComputeV1::Operation]
25922
+ #
25923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25926
+ def insert_region_instance_template(project, region, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25927
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
25928
+ command.request_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25929
+ command.request_object = instance_template_object
25930
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25931
+ command.response_class = Google::Apis::ComputeV1::Operation
25932
+ command.params['project'] = project unless project.nil?
25933
+ command.params['region'] = region unless region.nil?
25934
+ command.query['requestId'] = request_id unless request_id.nil?
25935
+ command.query['fields'] = fields unless fields.nil?
25936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25937
+ command.query['userIp'] = user_ip unless user_ip.nil?
25938
+ execute_or_queue_command(command, &block)
25939
+ end
25940
+
25941
+ # Retrieves a list of instance templates that are contained within the specified
25942
+ # project and region.
25943
+ # @param [String] project
25944
+ # Project ID for this request.
25945
+ # @param [String] region
25946
+ # The name of the regions for this request.
25947
+ # @param [String] filter
25948
+ # A filter expression that filters resources listed in the response. Most
25949
+ # Compute resources support two types of filter expressions: expressions that
25950
+ # support regular expressions and expressions that follow API improvement
25951
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
25952
+ # field name, an operator, and the value that you want to use for filtering. The
25953
+ # value must be a string, a number, or a boolean. The operator must be either `=`
25954
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
25955
+ # Engine instances, you can exclude instances named `example-instance` by
25956
+ # specifying `name != example-instance`. The `:` operator can be used with
25957
+ # string fields to match substrings. For non-string fields it is equivalent to
25958
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
25959
+ # been defined. For example, to find all objects with `owner` label use: ```
25960
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
25961
+ # specify `scheduling.automaticRestart = false` to include instances only if
25962
+ # they are not scheduled for automatic restarts. You can use filtering on nested
25963
+ # fields to filter based on resource labels. To filter on multiple expressions,
25964
+ # provide each separate expression within parentheses. For example: ``` (
25965
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
25966
+ # default, each expression is an `AND` expression. However, you can include `AND`
25967
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
25968
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
25969
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
25970
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
25971
+ # expression with or without quotes or against multiple parenthesized
25972
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
25973
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
25974
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
25975
+ # regular expression using Google RE2 library syntax. The literal value must
25976
+ # match the entire field. For example, to filter for instances that do not end
25977
+ # with name "instance", you would use `name ne .*instance`.
25978
+ # @param [Fixnum] max_results
25979
+ # The maximum number of results per page that should be returned. If the number
25980
+ # of available results is larger than `maxResults`, Compute Engine returns a `
25981
+ # nextPageToken` that can be used to get the next page of results in subsequent
25982
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25983
+ # @param [String] order_by
25984
+ # Sorts list results by a certain order. By default, results are returned in
25985
+ # alphanumerical order based on the resource name. You can also sort results in
25986
+ # descending order based on the creation timestamp using `orderBy="
25987
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
25988
+ # field in reverse chronological order (newest result first). Use this to sort
25989
+ # resources like operations so that the newest operation is returned first.
25990
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25991
+ # @param [String] page_token
25992
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25993
+ # by a previous list request to get the next page of results.
25994
+ # @param [Boolean] return_partial_success
25995
+ # Opt-in for partial success behavior which provides partial results in case of
25996
+ # failure. The default value is false.
25997
+ # @param [String] fields
25998
+ # Selector specifying which fields to include in a partial response.
25999
+ # @param [String] quota_user
26000
+ # Available to use for quota purposes for server-side applications. Can be any
26001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26002
+ # @param [String] user_ip
26003
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26004
+ # @param [Google::Apis::RequestOptions] options
26005
+ # Request-specific options
26006
+ #
26007
+ # @yield [result, err] Result & error if block supplied
26008
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplateList] parsed result object
26009
+ # @yieldparam err [StandardError] error object if request failed
26010
+ #
26011
+ # @return [Google::Apis::ComputeV1::InstanceTemplateList]
26012
+ #
26013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26016
+ def list_region_instance_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26017
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
26018
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplateList::Representation
26019
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplateList
26020
+ command.params['project'] = project unless project.nil?
26021
+ command.params['region'] = region unless region.nil?
26022
+ command.query['filter'] = filter unless filter.nil?
26023
+ command.query['maxResults'] = max_results unless max_results.nil?
26024
+ command.query['orderBy'] = order_by unless order_by.nil?
26025
+ command.query['pageToken'] = page_token unless page_token.nil?
26026
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26027
+ command.query['fields'] = fields unless fields.nil?
26028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26029
+ command.query['userIp'] = user_ip unless user_ip.nil?
26030
+ execute_or_queue_command(command, &block)
26031
+ end
26032
+
25560
26033
  # Creates multiple instances in a given region. Count specifies the number of
25561
26034
  # instances to create.
25562
26035
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-16 00:00:00.000000000 Z
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.66.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.68.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []