google-apis-compute_alpha 0.38.0 → 0.41.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::ComputeAlpha::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::ComputeAlpha::Operation] parsed result object
640
+ # @yieldparam err [StandardError] error object if request failed
641
+ #
642
+ # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::RegionAddressesMoveRequest::Representation
650
+ command.request_object = region_addresses_move_request_object
651
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
652
+ command.response_class = Google::Apis::ComputeAlpha::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
@@ -6451,6 +6504,56 @@ module Google
6451
6504
  execute_or_queue_command(command, &block)
6452
6505
  end
6453
6506
 
6507
+ # Moves the specified address resource from one project to another project.
6508
+ # @param [String] project
6509
+ # Source project ID which the Address is moved from.
6510
+ # @param [String] address
6511
+ # Name of the address resource to move.
6512
+ # @param [Google::Apis::ComputeAlpha::GlobalAddressesMoveRequest] global_addresses_move_request_object
6513
+ # @param [String] request_id
6514
+ # An optional request ID to identify requests. Specify a unique request ID so
6515
+ # that if you must retry your request, the server will know to ignore the
6516
+ # request if it has already been completed. For example, consider a situation
6517
+ # where you make an initial request and the request times out. If you make the
6518
+ # request again with the same request ID, the server can check if original
6519
+ # operation with the same request ID was received, and if so, will ignore the
6520
+ # second request. This prevents clients from accidentally creating duplicate
6521
+ # commitments. The request ID must be a valid UUID with the exception that zero
6522
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
6523
+ # @param [String] fields
6524
+ # Selector specifying which fields to include in a partial response.
6525
+ # @param [String] quota_user
6526
+ # Available to use for quota purposes for server-side applications. Can be any
6527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6528
+ # @param [String] user_ip
6529
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6530
+ # @param [Google::Apis::RequestOptions] options
6531
+ # Request-specific options
6532
+ #
6533
+ # @yield [result, err] Result & error if block supplied
6534
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
6535
+ # @yieldparam err [StandardError] error object if request failed
6536
+ #
6537
+ # @return [Google::Apis::ComputeAlpha::Operation]
6538
+ #
6539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6542
+ 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)
6543
+ command = make_simple_command(:post, 'projects/{project}/global/addresses/{address}/move', options)
6544
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalAddressesMoveRequest::Representation
6545
+ command.request_object = global_addresses_move_request_object
6546
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
6547
+ command.response_class = Google::Apis::ComputeAlpha::Operation
6548
+ command.params['project'] = project unless project.nil?
6549
+ command.params['address'] = address unless address.nil?
6550
+ command.query['requestId'] = request_id unless request_id.nil?
6551
+ command.query['fields'] = fields unless fields.nil?
6552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6553
+ command.query['userIp'] = user_ip unless user_ip.nil?
6554
+ execute_or_queue_command(command, &block)
6555
+ end
6556
+
6454
6557
  # Sets the labels on a GlobalAddress. To learn more about labels, read the
6455
6558
  # Labeling Resources documentation.
6456
6559
  # @param [String] project
@@ -10798,7 +10901,9 @@ module Google
10798
10901
  # group is performing on the instance. For example, if the group is still
10799
10902
  # creating an instance, the currentAction is CREATING. If a previous action
10800
10903
  # failed, the list displays the errors for that failed action. The orderBy query
10801
- # parameter is not supported.
10904
+ # parameter is not supported. The `pageToken` query parameter is supported only
10905
+ # in the alpha and beta API and only if the group's `listManagedInstancesResults`
10906
+ # field is set to `PAGINATED`.
10802
10907
  # @param [String] project
10803
10908
  # Project ID for this request.
10804
10909
  # @param [String] zone
@@ -16921,6 +17026,171 @@ module Google
16921
17026
  execute_or_queue_command(command, &block)
16922
17027
  end
16923
17028
 
17029
+ # Returns the details for the specified interconnect remote location. Gets a
17030
+ # list of available interconnect remote locations by making a list() request.
17031
+ # @param [String] project
17032
+ # Project ID for this request.
17033
+ # @param [String] interconnect_remote_location
17034
+ # Name of the interconnect remote location to return.
17035
+ # @param [String] fields
17036
+ # Selector specifying which fields to include in a partial response.
17037
+ # @param [String] quota_user
17038
+ # Available to use for quota purposes for server-side applications. Can be any
17039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
17040
+ # @param [String] user_ip
17041
+ # Legacy name for parameter that has been superseded by `quotaUser`.
17042
+ # @param [Google::Apis::RequestOptions] options
17043
+ # Request-specific options
17044
+ #
17045
+ # @yield [result, err] Result & error if block supplied
17046
+ # @yieldparam result [Google::Apis::ComputeAlpha::InterconnectRemoteLocation] parsed result object
17047
+ # @yieldparam err [StandardError] error object if request failed
17048
+ #
17049
+ # @return [Google::Apis::ComputeAlpha::InterconnectRemoteLocation]
17050
+ #
17051
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17052
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17053
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17054
+ def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17055
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
17056
+ command.response_representation = Google::Apis::ComputeAlpha::InterconnectRemoteLocation::Representation
17057
+ command.response_class = Google::Apis::ComputeAlpha::InterconnectRemoteLocation
17058
+ command.params['project'] = project unless project.nil?
17059
+ command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
17060
+ command.query['fields'] = fields unless fields.nil?
17061
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17062
+ command.query['userIp'] = user_ip unless user_ip.nil?
17063
+ execute_or_queue_command(command, &block)
17064
+ end
17065
+
17066
+ # Retrieves the list of interconnect remote locations available to the specified
17067
+ # project.
17068
+ # @param [String] project
17069
+ # Project ID for this request.
17070
+ # @param [String] filter
17071
+ # A filter expression that filters resources listed in the response. Most
17072
+ # Compute resources support two types of filter expressions: expressions that
17073
+ # support regular expressions and expressions that follow API improvement
17074
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
17075
+ # field name, an operator, and the value that you want to use for filtering. The
17076
+ # value must be a string, a number, or a boolean. The operator must be either `=`
17077
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
17078
+ # Engine instances, you can exclude instances named `example-instance` by
17079
+ # specifying `name != example-instance`. The `:` operator can be used with
17080
+ # string fields to match substrings. For non-string fields it is equivalent to
17081
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
17082
+ # been defined. For example, to find all objects with `owner` label use: ```
17083
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
17084
+ # specify `scheduling.automaticRestart = false` to include instances only if
17085
+ # they are not scheduled for automatic restarts. You can use filtering on nested
17086
+ # fields to filter based on resource labels. To filter on multiple expressions,
17087
+ # provide each separate expression within parentheses. For example: ``` (
17088
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
17089
+ # default, each expression is an `AND` expression. However, you can include `AND`
17090
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
17091
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
17092
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
17093
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
17094
+ # expression with or without quotes or against multiple parenthesized
17095
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
17096
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
17097
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
17098
+ # regular expression using Google RE2 library syntax. The literal value must
17099
+ # match the entire field. For example, to filter for instances that do not end
17100
+ # with name "instance", you would use `name ne .*instance`.
17101
+ # @param [Fixnum] max_results
17102
+ # The maximum number of results per page that should be returned. If the number
17103
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17104
+ # nextPageToken` that can be used to get the next page of results in subsequent
17105
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17106
+ # @param [String] order_by
17107
+ # Sorts list results by a certain order. By default, results are returned in
17108
+ # alphanumerical order based on the resource name. You can also sort results in
17109
+ # descending order based on the creation timestamp using `orderBy="
17110
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
17111
+ # field in reverse chronological order (newest result first). Use this to sort
17112
+ # resources like operations so that the newest operation is returned first.
17113
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17114
+ # @param [String] page_token
17115
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17116
+ # by a previous list request to get the next page of results.
17117
+ # @param [Boolean] return_partial_success
17118
+ # Opt-in for partial success behavior which provides partial results in case of
17119
+ # failure. The default value is false.
17120
+ # @param [String] fields
17121
+ # Selector specifying which fields to include in a partial response.
17122
+ # @param [String] quota_user
17123
+ # Available to use for quota purposes for server-side applications. Can be any
17124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
17125
+ # @param [String] user_ip
17126
+ # Legacy name for parameter that has been superseded by `quotaUser`.
17127
+ # @param [Google::Apis::RequestOptions] options
17128
+ # Request-specific options
17129
+ #
17130
+ # @yield [result, err] Result & error if block supplied
17131
+ # @yieldparam result [Google::Apis::ComputeAlpha::InterconnectRemoteLocationList] parsed result object
17132
+ # @yieldparam err [StandardError] error object if request failed
17133
+ #
17134
+ # @return [Google::Apis::ComputeAlpha::InterconnectRemoteLocationList]
17135
+ #
17136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17139
+ 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)
17140
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations', options)
17141
+ command.response_representation = Google::Apis::ComputeAlpha::InterconnectRemoteLocationList::Representation
17142
+ command.response_class = Google::Apis::ComputeAlpha::InterconnectRemoteLocationList
17143
+ command.params['project'] = project unless project.nil?
17144
+ command.query['filter'] = filter unless filter.nil?
17145
+ command.query['maxResults'] = max_results unless max_results.nil?
17146
+ command.query['orderBy'] = order_by unless order_by.nil?
17147
+ command.query['pageToken'] = page_token unless page_token.nil?
17148
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17149
+ command.query['fields'] = fields unless fields.nil?
17150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17151
+ command.query['userIp'] = user_ip unless user_ip.nil?
17152
+ execute_or_queue_command(command, &block)
17153
+ end
17154
+
17155
+ # Returns permissions that a caller has on the specified resource.
17156
+ # @param [String] project
17157
+ # Project ID for this request.
17158
+ # @param [String] resource
17159
+ # Name or id of the resource for this request.
17160
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
17161
+ # @param [String] fields
17162
+ # Selector specifying which fields to include in a partial response.
17163
+ # @param [String] quota_user
17164
+ # Available to use for quota purposes for server-side applications. Can be any
17165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
17166
+ # @param [String] user_ip
17167
+ # Legacy name for parameter that has been superseded by `quotaUser`.
17168
+ # @param [Google::Apis::RequestOptions] options
17169
+ # Request-specific options
17170
+ #
17171
+ # @yield [result, err] Result & error if block supplied
17172
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
17173
+ # @yieldparam err [StandardError] error object if request failed
17174
+ #
17175
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
17176
+ #
17177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17180
+ def test_interconnect_remote_location_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17181
+ command = make_simple_command(:post, 'projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions', options)
17182
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
17183
+ command.request_object = test_permissions_request_object
17184
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
17185
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
17186
+ command.params['project'] = project unless project.nil?
17187
+ command.params['resource'] = resource unless resource.nil?
17188
+ command.query['fields'] = fields unless fields.nil?
17189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17190
+ command.query['userIp'] = user_ip unless user_ip.nil?
17191
+ execute_or_queue_command(command, &block)
17192
+ end
17193
+
16924
17194
  # Deletes the specified interconnect.
16925
17195
  # @param [String] project
16926
17196
  # Project ID for this request.
@@ -28976,6 +29246,9 @@ module Google
28976
29246
  # Lists the instances in the managed instance group and instances that are
28977
29247
  # scheduled to be created. The list includes any current actions that the group
28978
29248
  # has scheduled for its instances. The orderBy query parameter is not supported.
29249
+ # The `pageToken` query parameter is supported only in the alpha and beta API
29250
+ # and only if the group's `listManagedInstancesResults` field is set to `
29251
+ # PAGINATED`.
28979
29252
  # @param [String] project
28980
29253
  # Project ID for this request.
28981
29254
  # @param [String] region
@@ -30384,6 +30657,240 @@ module Google
30384
30657
  execute_or_queue_command(command, &block)
30385
30658
  end
30386
30659
 
30660
+ # Deletes the specified instance template. Deleting an instance template is
30661
+ # permanent and cannot be undone.
30662
+ # @param [String] project
30663
+ # Project ID for this request.
30664
+ # @param [String] region
30665
+ # The name of the region for this request.
30666
+ # @param [String] instance_template
30667
+ # The name of the instance template to delete.
30668
+ # @param [String] request_id
30669
+ # An optional request ID to identify requests. Specify a unique request ID so
30670
+ # that if you must retry your request, the server will know to ignore the
30671
+ # request if it has already been completed. For example, consider a situation
30672
+ # where you make an initial request and the request times out. If you make the
30673
+ # request again with the same request ID, the server can check if original
30674
+ # operation with the same request ID was received, and if so, will ignore the
30675
+ # second request. This prevents clients from accidentally creating duplicate
30676
+ # commitments. The request ID must be a valid UUID with the exception that zero
30677
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30678
+ # @param [String] fields
30679
+ # Selector specifying which fields to include in a partial response.
30680
+ # @param [String] quota_user
30681
+ # Available to use for quota purposes for server-side applications. Can be any
30682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30683
+ # @param [String] user_ip
30684
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30685
+ # @param [Google::Apis::RequestOptions] options
30686
+ # Request-specific options
30687
+ #
30688
+ # @yield [result, err] Result & error if block supplied
30689
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30690
+ # @yieldparam err [StandardError] error object if request failed
30691
+ #
30692
+ # @return [Google::Apis::ComputeAlpha::Operation]
30693
+ #
30694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30697
+ def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30698
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
30699
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30700
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30701
+ command.params['project'] = project unless project.nil?
30702
+ command.params['region'] = region unless region.nil?
30703
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
30704
+ command.query['requestId'] = request_id unless request_id.nil?
30705
+ command.query['fields'] = fields unless fields.nil?
30706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30707
+ command.query['userIp'] = user_ip unless user_ip.nil?
30708
+ execute_or_queue_command(command, &block)
30709
+ end
30710
+
30711
+ # Returns the specified instance template. Gets a list of available instance
30712
+ # templates by making a list() request.
30713
+ # @param [String] project
30714
+ # Project ID for this request.
30715
+ # @param [String] region
30716
+ # The name of the region for this request.
30717
+ # @param [String] instance_template
30718
+ # The name of the instance template.
30719
+ # @param [String] fields
30720
+ # Selector specifying which fields to include in a partial response.
30721
+ # @param [String] quota_user
30722
+ # Available to use for quota purposes for server-side applications. Can be any
30723
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30724
+ # @param [String] user_ip
30725
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30726
+ # @param [Google::Apis::RequestOptions] options
30727
+ # Request-specific options
30728
+ #
30729
+ # @yield [result, err] Result & error if block supplied
30730
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceTemplate] parsed result object
30731
+ # @yieldparam err [StandardError] error object if request failed
30732
+ #
30733
+ # @return [Google::Apis::ComputeAlpha::InstanceTemplate]
30734
+ #
30735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30738
+ def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30739
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
30740
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation
30741
+ command.response_class = Google::Apis::ComputeAlpha::InstanceTemplate
30742
+ command.params['project'] = project unless project.nil?
30743
+ command.params['region'] = region unless region.nil?
30744
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
30745
+ command.query['fields'] = fields unless fields.nil?
30746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30747
+ command.query['userIp'] = user_ip unless user_ip.nil?
30748
+ execute_or_queue_command(command, &block)
30749
+ end
30750
+
30751
+ # Creates an instance template in the specified project and region using the
30752
+ # global instance template whose URL is included in the request.
30753
+ # @param [String] project
30754
+ # Project ID for this request.
30755
+ # @param [String] region
30756
+ # The name of the region for this request.
30757
+ # @param [Google::Apis::ComputeAlpha::InstanceTemplate] instance_template_object
30758
+ # @param [String] request_id
30759
+ # An optional request ID to identify requests. Specify a unique request ID so
30760
+ # that if you must retry your request, the server will know to ignore the
30761
+ # request if it has already been completed. For example, consider a situation
30762
+ # where you make an initial request and the request times out. If you make the
30763
+ # request again with the same request ID, the server can check if original
30764
+ # operation with the same request ID was received, and if so, will ignore the
30765
+ # second request. This prevents clients from accidentally creating duplicate
30766
+ # commitments. The request ID must be a valid UUID with the exception that zero
30767
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30768
+ # @param [String] fields
30769
+ # Selector specifying which fields to include in a partial response.
30770
+ # @param [String] quota_user
30771
+ # Available to use for quota purposes for server-side applications. Can be any
30772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30773
+ # @param [String] user_ip
30774
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30775
+ # @param [Google::Apis::RequestOptions] options
30776
+ # Request-specific options
30777
+ #
30778
+ # @yield [result, err] Result & error if block supplied
30779
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30780
+ # @yieldparam err [StandardError] error object if request failed
30781
+ #
30782
+ # @return [Google::Apis::ComputeAlpha::Operation]
30783
+ #
30784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30787
+ 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)
30788
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
30789
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation
30790
+ command.request_object = instance_template_object
30791
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30792
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30793
+ command.params['project'] = project unless project.nil?
30794
+ command.params['region'] = region unless region.nil?
30795
+ command.query['requestId'] = request_id unless request_id.nil?
30796
+ command.query['fields'] = fields unless fields.nil?
30797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30798
+ command.query['userIp'] = user_ip unless user_ip.nil?
30799
+ execute_or_queue_command(command, &block)
30800
+ end
30801
+
30802
+ # Retrieves a list of instance templates that are contained within the specified
30803
+ # project and region.
30804
+ # @param [String] project
30805
+ # Project ID for this request.
30806
+ # @param [String] region
30807
+ # The name of the regions for this request.
30808
+ # @param [String] filter
30809
+ # A filter expression that filters resources listed in the response. Most
30810
+ # Compute resources support two types of filter expressions: expressions that
30811
+ # support regular expressions and expressions that follow API improvement
30812
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
30813
+ # field name, an operator, and the value that you want to use for filtering. The
30814
+ # value must be a string, a number, or a boolean. The operator must be either `=`
30815
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
30816
+ # Engine instances, you can exclude instances named `example-instance` by
30817
+ # specifying `name != example-instance`. The `:` operator can be used with
30818
+ # string fields to match substrings. For non-string fields it is equivalent to
30819
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
30820
+ # been defined. For example, to find all objects with `owner` label use: ```
30821
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
30822
+ # specify `scheduling.automaticRestart = false` to include instances only if
30823
+ # they are not scheduled for automatic restarts. You can use filtering on nested
30824
+ # fields to filter based on resource labels. To filter on multiple expressions,
30825
+ # provide each separate expression within parentheses. For example: ``` (
30826
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
30827
+ # default, each expression is an `AND` expression. However, you can include `AND`
30828
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
30829
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
30830
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
30831
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
30832
+ # expression with or without quotes or against multiple parenthesized
30833
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
30834
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
30835
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
30836
+ # regular expression using Google RE2 library syntax. The literal value must
30837
+ # match the entire field. For example, to filter for instances that do not end
30838
+ # with name "instance", you would use `name ne .*instance`.
30839
+ # @param [Fixnum] max_results
30840
+ # The maximum number of results per page that should be returned. If the number
30841
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30842
+ # nextPageToken` that can be used to get the next page of results in subsequent
30843
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30844
+ # @param [String] order_by
30845
+ # Sorts list results by a certain order. By default, results are returned in
30846
+ # alphanumerical order based on the resource name. You can also sort results in
30847
+ # descending order based on the creation timestamp using `orderBy="
30848
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30849
+ # field in reverse chronological order (newest result first). Use this to sort
30850
+ # resources like operations so that the newest operation is returned first.
30851
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30852
+ # @param [String] page_token
30853
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30854
+ # by a previous list request to get the next page of results.
30855
+ # @param [Boolean] return_partial_success
30856
+ # Opt-in for partial success behavior which provides partial results in case of
30857
+ # failure. The default value is false.
30858
+ # @param [String] fields
30859
+ # Selector specifying which fields to include in a partial response.
30860
+ # @param [String] quota_user
30861
+ # Available to use for quota purposes for server-side applications. Can be any
30862
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30863
+ # @param [String] user_ip
30864
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30865
+ # @param [Google::Apis::RequestOptions] options
30866
+ # Request-specific options
30867
+ #
30868
+ # @yield [result, err] Result & error if block supplied
30869
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceTemplateList] parsed result object
30870
+ # @yieldparam err [StandardError] error object if request failed
30871
+ #
30872
+ # @return [Google::Apis::ComputeAlpha::InstanceTemplateList]
30873
+ #
30874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30877
+ 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)
30878
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
30879
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplateList::Representation
30880
+ command.response_class = Google::Apis::ComputeAlpha::InstanceTemplateList
30881
+ command.params['project'] = project unless project.nil?
30882
+ command.params['region'] = region unless region.nil?
30883
+ command.query['filter'] = filter unless filter.nil?
30884
+ command.query['maxResults'] = max_results unless max_results.nil?
30885
+ command.query['orderBy'] = order_by unless order_by.nil?
30886
+ command.query['pageToken'] = page_token unless page_token.nil?
30887
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30888
+ command.query['fields'] = fields unless fields.nil?
30889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30890
+ command.query['userIp'] = user_ip unless user_ip.nil?
30891
+ execute_or_queue_command(command, &block)
30892
+ end
30893
+
30387
30894
  # Creates multiple instances in a given region. Count specifies the number of
30388
30895
  # instances to create.
30389
30896
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.41.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: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.41.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []