google-apis-compute_alpha 0.37.0 → 0.40.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.
@@ -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
@@ -9811,22 +9914,275 @@ module Google
9811
9914
  # Request-specific options
9812
9915
  #
9813
9916
  # @yield [result, err] Result & error if block supplied
9814
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
9917
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
9918
+ # @yieldparam err [StandardError] error object if request failed
9919
+ #
9920
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
9921
+ #
9922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9925
+ def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9926
+ command = make_simple_command(:post, 'projects/{project}/global/images/{resource}/testIamPermissions', options)
9927
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
9928
+ command.request_object = test_permissions_request_object
9929
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
9930
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
9931
+ command.params['project'] = project unless project.nil?
9932
+ command.params['resource'] = resource unless resource.nil?
9933
+ command.query['fields'] = fields unless fields.nil?
9934
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9935
+ command.query['userIp'] = user_ip unless user_ip.nil?
9936
+ execute_or_queue_command(command, &block)
9937
+ end
9938
+
9939
+ # Deletes the specified resize request.
9940
+ # @param [String] project
9941
+ # Project ID for this request.
9942
+ # @param [String] zone
9943
+ # The name of the zone where the managed instance group is located. The name
9944
+ # should conform to RFC1035.
9945
+ # @param [String] instance_group_manager
9946
+ # The name of the managed instance group. The name should conform to RFC1035 or
9947
+ # be a resource ID.
9948
+ # @param [String] resize_request
9949
+ # The name of the resize request to delete. The name should conform to RFC1035
9950
+ # or be a resource ID.
9951
+ # @param [String] request_id
9952
+ # An optional request ID to identify requests. Specify a unique request ID so
9953
+ # that if you must retry your request, the server will know to ignore the
9954
+ # request if it has already been completed. For example, consider a situation
9955
+ # where you make an initial request and the request times out. If you make the
9956
+ # request again with the same request ID, the server can check if original
9957
+ # operation with the same request ID was received, and if so, will ignore the
9958
+ # second request. This prevents clients from accidentally creating duplicate
9959
+ # commitments. The request ID must be a valid UUID with the exception that zero
9960
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9961
+ # @param [String] fields
9962
+ # Selector specifying which fields to include in a partial response.
9963
+ # @param [String] quota_user
9964
+ # Available to use for quota purposes for server-side applications. Can be any
9965
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9966
+ # @param [String] user_ip
9967
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9968
+ # @param [Google::Apis::RequestOptions] options
9969
+ # Request-specific options
9970
+ #
9971
+ # @yield [result, err] Result & error if block supplied
9972
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9973
+ # @yieldparam err [StandardError] error object if request failed
9974
+ #
9975
+ # @return [Google::Apis::ComputeAlpha::Operation]
9976
+ #
9977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9980
+ def delete_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9981
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9982
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9983
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9984
+ command.params['project'] = project unless project.nil?
9985
+ command.params['zone'] = zone unless zone.nil?
9986
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9987
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9988
+ command.query['requestId'] = request_id unless request_id.nil?
9989
+ command.query['fields'] = fields unless fields.nil?
9990
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9991
+ command.query['userIp'] = user_ip unless user_ip.nil?
9992
+ execute_or_queue_command(command, &block)
9993
+ end
9994
+
9995
+ # Returns all of the details about the specified resize request.
9996
+ # @param [String] project
9997
+ # Project ID for this request.
9998
+ # @param [String] zone
9999
+ # The name of the zone where the managed instance group and the resize request
10000
+ # are located. Name should conform to RFC1035.
10001
+ # @param [String] instance_group_manager
10002
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
10003
+ # resource ID.
10004
+ # @param [String] resize_request
10005
+ # The name of the resize request. Name should conform to RFC1035 or be a
10006
+ # resource ID.
10007
+ # @param [String] fields
10008
+ # Selector specifying which fields to include in a partial response.
10009
+ # @param [String] quota_user
10010
+ # Available to use for quota purposes for server-side applications. Can be any
10011
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10012
+ # @param [String] user_ip
10013
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10014
+ # @param [Google::Apis::RequestOptions] options
10015
+ # Request-specific options
10016
+ #
10017
+ # @yield [result, err] Result & error if block supplied
10018
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] parsed result object
10019
+ # @yieldparam err [StandardError] error object if request failed
10020
+ #
10021
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest]
10022
+ #
10023
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10024
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10025
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10026
+ def get_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10027
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
10028
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
10029
+ command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest
10030
+ command.params['project'] = project unless project.nil?
10031
+ command.params['zone'] = zone unless zone.nil?
10032
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10033
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
10034
+ command.query['fields'] = fields unless fields.nil?
10035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10036
+ command.query['userIp'] = user_ip unless user_ip.nil?
10037
+ execute_or_queue_command(command, &block)
10038
+ end
10039
+
10040
+ # Creates a new resize request that starts provisioning VMs immediately or
10041
+ # queues VM creation.
10042
+ # @param [String] project
10043
+ # Project ID for this request.
10044
+ # @param [String] zone
10045
+ # The name of the zone where the managed instance group is located and where the
10046
+ # resize request will be created. Name should conform to RFC1035.
10047
+ # @param [String] instance_group_manager
10048
+ # The name of the managed instance group to which the resize request will be
10049
+ # added. Name should conform to RFC1035 or be a resource ID.
10050
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
10051
+ # @param [String] request_id
10052
+ # An optional request ID to identify requests. Specify a unique request ID so
10053
+ # that if you must retry your request, the server will know to ignore the
10054
+ # request if it has already been completed. For example, consider a situation
10055
+ # where you make an initial request and the request times out. If you make the
10056
+ # request again with the same request ID, the server can check if original
10057
+ # operation with the same request ID was received, and if so, will ignore the
10058
+ # second request. This prevents clients from accidentally creating duplicate
10059
+ # commitments. The request ID must be a valid UUID with the exception that zero
10060
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
10061
+ # @param [String] fields
10062
+ # Selector specifying which fields to include in a partial response.
10063
+ # @param [String] quota_user
10064
+ # Available to use for quota purposes for server-side applications. Can be any
10065
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10066
+ # @param [String] user_ip
10067
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10068
+ # @param [Google::Apis::RequestOptions] options
10069
+ # Request-specific options
10070
+ #
10071
+ # @yield [result, err] Result & error if block supplied
10072
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
10073
+ # @yieldparam err [StandardError] error object if request failed
10074
+ #
10075
+ # @return [Google::Apis::ComputeAlpha::Operation]
10076
+ #
10077
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10078
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10079
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10080
+ def insert_instance_group_manager_resize_request(project, zone, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10081
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
10082
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
10083
+ command.request_object = instance_group_manager_resize_request_object
10084
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10085
+ command.response_class = Google::Apis::ComputeAlpha::Operation
10086
+ command.params['project'] = project unless project.nil?
10087
+ command.params['zone'] = zone unless zone.nil?
10088
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10089
+ command.query['requestId'] = request_id unless request_id.nil?
10090
+ command.query['fields'] = fields unless fields.nil?
10091
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10092
+ command.query['userIp'] = user_ip unless user_ip.nil?
10093
+ execute_or_queue_command(command, &block)
10094
+ end
10095
+
10096
+ # Retrieves a list of resize requests that are contained in the managed instance
10097
+ # group.
10098
+ # @param [String] project
10099
+ # Project ID for this request.
10100
+ # @param [String] zone
10101
+ # The name of the zone where the managed instance group is located. The name
10102
+ # should conform to RFC1035.
10103
+ # @param [String] instance_group_manager
10104
+ # The name of the managed instance group. The name should conform to RFC1035.
10105
+ # @param [String] filter
10106
+ # A filter expression that filters resources listed in the response. Most
10107
+ # Compute resources support two types of filter expressions: expressions that
10108
+ # support regular expressions and expressions that follow API improvement
10109
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
10110
+ # field name, an operator, and the value that you want to use for filtering. The
10111
+ # value must be a string, a number, or a boolean. The operator must be either `=`
10112
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
10113
+ # Engine instances, you can exclude instances named `example-instance` by
10114
+ # specifying `name != example-instance`. The `:` operator can be used with
10115
+ # string fields to match substrings. For non-string fields it is equivalent to
10116
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
10117
+ # been defined. For example, to find all objects with `owner` label use: ```
10118
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
10119
+ # specify `scheduling.automaticRestart = false` to include instances only if
10120
+ # they are not scheduled for automatic restarts. You can use filtering on nested
10121
+ # fields to filter based on resource labels. To filter on multiple expressions,
10122
+ # provide each separate expression within parentheses. For example: ``` (
10123
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
10124
+ # default, each expression is an `AND` expression. However, you can include `AND`
10125
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
10126
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
10127
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
10128
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
10129
+ # expression with or without quotes or against multiple parenthesized
10130
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
10131
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
10132
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
10133
+ # regular expression using Google RE2 library syntax. The literal value must
10134
+ # match the entire field. For example, to filter for instances that do not end
10135
+ # with name "instance", you would use `name ne .*instance`.
10136
+ # @param [Fixnum] max_results
10137
+ # The maximum number of results per page that should be returned. If the number
10138
+ # of available results is larger than `maxResults`, Compute Engine returns a `
10139
+ # nextPageToken` that can be used to get the next page of results in subsequent
10140
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
10141
+ # @param [String] order_by
10142
+ # Sorts list results by a certain order. By default, results are returned in
10143
+ # alphanumerical order based on the resource name. You can also sort results in
10144
+ # descending order based on the creation timestamp using `orderBy="
10145
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
10146
+ # field in reverse chronological order (newest result first). Use this to sort
10147
+ # resources like operations so that the newest operation is returned first.
10148
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
10149
+ # @param [String] page_token
10150
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
10151
+ # by a previous list request to get the next page of results.
10152
+ # @param [Boolean] return_partial_success
10153
+ # Opt-in for partial success behavior which provides partial results in case of
10154
+ # failure. The default value is false.
10155
+ # @param [String] fields
10156
+ # Selector specifying which fields to include in a partial response.
10157
+ # @param [String] quota_user
10158
+ # Available to use for quota purposes for server-side applications. Can be any
10159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10160
+ # @param [String] user_ip
10161
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10162
+ # @param [Google::Apis::RequestOptions] options
10163
+ # Request-specific options
10164
+ #
10165
+ # @yield [result, err] Result & error if block supplied
10166
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse] parsed result object
9815
10167
  # @yieldparam err [StandardError] error object if request failed
9816
10168
  #
9817
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
10169
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse]
9818
10170
  #
9819
10171
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9820
10172
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9821
10173
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9822
- def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9823
- command = make_simple_command(:post, 'projects/{project}/global/images/{resource}/testIamPermissions', options)
9824
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
9825
- command.request_object = test_permissions_request_object
9826
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
9827
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
10174
+ def list_instance_group_manager_resize_requests(project, zone, instance_group_manager, 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)
10175
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
10176
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Representation
10177
+ command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse
9828
10178
  command.params['project'] = project unless project.nil?
9829
- command.params['resource'] = resource unless resource.nil?
10179
+ command.params['zone'] = zone unless zone.nil?
10180
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10181
+ command.query['filter'] = filter unless filter.nil?
10182
+ command.query['maxResults'] = max_results unless max_results.nil?
10183
+ command.query['orderBy'] = order_by unless order_by.nil?
10184
+ command.query['pageToken'] = page_token unless page_token.nil?
10185
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
9830
10186
  command.query['fields'] = fields unless fields.nil?
9831
10187
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9832
10188
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -10545,7 +10901,9 @@ module Google
10545
10901
  # group is performing on the instance. For example, if the group is still
10546
10902
  # creating an instance, the currentAction is CREATING. If a previous action
10547
10903
  # failed, the list displays the errors for that failed action. The orderBy query
10548
- # 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`.
10549
10907
  # @param [String] project
10550
10908
  # Project ID for this request.
10551
10909
  # @param [String] zone
@@ -28723,6 +29081,9 @@ module Google
28723
29081
  # Lists the instances in the managed instance group and instances that are
28724
29082
  # scheduled to be created. The list includes any current actions that the group
28725
29083
  # has scheduled for its instances. The orderBy query parameter is not supported.
29084
+ # The `pageToken` query parameter is supported only in the alpha and beta API
29085
+ # and only if the group's `listManagedInstancesResults` field is set to `
29086
+ # PAGINATED`.
28726
29087
  # @param [String] project
28727
29088
  # Project ID for this request.
28728
29089
  # @param [String] region
@@ -30131,6 +30492,240 @@ module Google
30131
30492
  execute_or_queue_command(command, &block)
30132
30493
  end
30133
30494
 
30495
+ # Deletes the specified instance template. Deleting an instance template is
30496
+ # permanent and cannot be undone.
30497
+ # @param [String] project
30498
+ # Project ID for this request.
30499
+ # @param [String] region
30500
+ # The name of the region for this request.
30501
+ # @param [String] instance_template
30502
+ # The name of the instance template to delete.
30503
+ # @param [String] request_id
30504
+ # An optional request ID to identify requests. Specify a unique request ID so
30505
+ # that if you must retry your request, the server will know to ignore the
30506
+ # request if it has already been completed. For example, consider a situation
30507
+ # where you make an initial request and the request times out. If you make the
30508
+ # request again with the same request ID, the server can check if original
30509
+ # operation with the same request ID was received, and if so, will ignore the
30510
+ # second request. This prevents clients from accidentally creating duplicate
30511
+ # commitments. The request ID must be a valid UUID with the exception that zero
30512
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30513
+ # @param [String] fields
30514
+ # Selector specifying which fields to include in a partial response.
30515
+ # @param [String] quota_user
30516
+ # Available to use for quota purposes for server-side applications. Can be any
30517
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30518
+ # @param [String] user_ip
30519
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30520
+ # @param [Google::Apis::RequestOptions] options
30521
+ # Request-specific options
30522
+ #
30523
+ # @yield [result, err] Result & error if block supplied
30524
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30525
+ # @yieldparam err [StandardError] error object if request failed
30526
+ #
30527
+ # @return [Google::Apis::ComputeAlpha::Operation]
30528
+ #
30529
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30530
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30531
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30532
+ def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30533
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
30534
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30535
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30536
+ command.params['project'] = project unless project.nil?
30537
+ command.params['region'] = region unless region.nil?
30538
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
30539
+ command.query['requestId'] = request_id unless request_id.nil?
30540
+ command.query['fields'] = fields unless fields.nil?
30541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30542
+ command.query['userIp'] = user_ip unless user_ip.nil?
30543
+ execute_or_queue_command(command, &block)
30544
+ end
30545
+
30546
+ # Returns the specified instance template. Gets a list of available instance
30547
+ # templates by making a list() request.
30548
+ # @param [String] project
30549
+ # Project ID for this request.
30550
+ # @param [String] region
30551
+ # The name of the region for this request.
30552
+ # @param [String] instance_template
30553
+ # The name of the instance template.
30554
+ # @param [String] fields
30555
+ # Selector specifying which fields to include in a partial response.
30556
+ # @param [String] quota_user
30557
+ # Available to use for quota purposes for server-side applications. Can be any
30558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30559
+ # @param [String] user_ip
30560
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30561
+ # @param [Google::Apis::RequestOptions] options
30562
+ # Request-specific options
30563
+ #
30564
+ # @yield [result, err] Result & error if block supplied
30565
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceTemplate] parsed result object
30566
+ # @yieldparam err [StandardError] error object if request failed
30567
+ #
30568
+ # @return [Google::Apis::ComputeAlpha::InstanceTemplate]
30569
+ #
30570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30573
+ def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30574
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
30575
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation
30576
+ command.response_class = Google::Apis::ComputeAlpha::InstanceTemplate
30577
+ command.params['project'] = project unless project.nil?
30578
+ command.params['region'] = region unless region.nil?
30579
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
30580
+ command.query['fields'] = fields unless fields.nil?
30581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30582
+ command.query['userIp'] = user_ip unless user_ip.nil?
30583
+ execute_or_queue_command(command, &block)
30584
+ end
30585
+
30586
+ # Creates an instance template in the specified project and region using the
30587
+ # global instance template whose URL is included in the request.
30588
+ # @param [String] project
30589
+ # Project ID for this request.
30590
+ # @param [String] region
30591
+ # The name of the region for this request.
30592
+ # @param [Google::Apis::ComputeAlpha::InstanceTemplate] instance_template_object
30593
+ # @param [String] request_id
30594
+ # An optional request ID to identify requests. Specify a unique request ID so
30595
+ # that if you must retry your request, the server will know to ignore the
30596
+ # request if it has already been completed. For example, consider a situation
30597
+ # where you make an initial request and the request times out. If you make the
30598
+ # request again with the same request ID, the server can check if original
30599
+ # operation with the same request ID was received, and if so, will ignore the
30600
+ # second request. This prevents clients from accidentally creating duplicate
30601
+ # commitments. The request ID must be a valid UUID with the exception that zero
30602
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30603
+ # @param [String] fields
30604
+ # Selector specifying which fields to include in a partial response.
30605
+ # @param [String] quota_user
30606
+ # Available to use for quota purposes for server-side applications. Can be any
30607
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30608
+ # @param [String] user_ip
30609
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30610
+ # @param [Google::Apis::RequestOptions] options
30611
+ # Request-specific options
30612
+ #
30613
+ # @yield [result, err] Result & error if block supplied
30614
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30615
+ # @yieldparam err [StandardError] error object if request failed
30616
+ #
30617
+ # @return [Google::Apis::ComputeAlpha::Operation]
30618
+ #
30619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30622
+ 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)
30623
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
30624
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation
30625
+ command.request_object = instance_template_object
30626
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30627
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30628
+ command.params['project'] = project unless project.nil?
30629
+ command.params['region'] = region unless region.nil?
30630
+ command.query['requestId'] = request_id unless request_id.nil?
30631
+ command.query['fields'] = fields unless fields.nil?
30632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30633
+ command.query['userIp'] = user_ip unless user_ip.nil?
30634
+ execute_or_queue_command(command, &block)
30635
+ end
30636
+
30637
+ # Retrieves a list of instance templates that are contained within the specified
30638
+ # project and region.
30639
+ # @param [String] project
30640
+ # Project ID for this request.
30641
+ # @param [String] region
30642
+ # The name of the regions for this request.
30643
+ # @param [String] filter
30644
+ # A filter expression that filters resources listed in the response. Most
30645
+ # Compute resources support two types of filter expressions: expressions that
30646
+ # support regular expressions and expressions that follow API improvement
30647
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
30648
+ # field name, an operator, and the value that you want to use for filtering. The
30649
+ # value must be a string, a number, or a boolean. The operator must be either `=`
30650
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
30651
+ # Engine instances, you can exclude instances named `example-instance` by
30652
+ # specifying `name != example-instance`. The `:` operator can be used with
30653
+ # string fields to match substrings. For non-string fields it is equivalent to
30654
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
30655
+ # been defined. For example, to find all objects with `owner` label use: ```
30656
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
30657
+ # specify `scheduling.automaticRestart = false` to include instances only if
30658
+ # they are not scheduled for automatic restarts. You can use filtering on nested
30659
+ # fields to filter based on resource labels. To filter on multiple expressions,
30660
+ # provide each separate expression within parentheses. For example: ``` (
30661
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
30662
+ # default, each expression is an `AND` expression. However, you can include `AND`
30663
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
30664
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
30665
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
30666
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
30667
+ # expression with or without quotes or against multiple parenthesized
30668
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
30669
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
30670
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
30671
+ # regular expression using Google RE2 library syntax. The literal value must
30672
+ # match the entire field. For example, to filter for instances that do not end
30673
+ # with name "instance", you would use `name ne .*instance`.
30674
+ # @param [Fixnum] max_results
30675
+ # The maximum number of results per page that should be returned. If the number
30676
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30677
+ # nextPageToken` that can be used to get the next page of results in subsequent
30678
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30679
+ # @param [String] order_by
30680
+ # Sorts list results by a certain order. By default, results are returned in
30681
+ # alphanumerical order based on the resource name. You can also sort results in
30682
+ # descending order based on the creation timestamp using `orderBy="
30683
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30684
+ # field in reverse chronological order (newest result first). Use this to sort
30685
+ # resources like operations so that the newest operation is returned first.
30686
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30687
+ # @param [String] page_token
30688
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30689
+ # by a previous list request to get the next page of results.
30690
+ # @param [Boolean] return_partial_success
30691
+ # Opt-in for partial success behavior which provides partial results in case of
30692
+ # failure. The default value is false.
30693
+ # @param [String] fields
30694
+ # Selector specifying which fields to include in a partial response.
30695
+ # @param [String] quota_user
30696
+ # Available to use for quota purposes for server-side applications. Can be any
30697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30698
+ # @param [String] user_ip
30699
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30700
+ # @param [Google::Apis::RequestOptions] options
30701
+ # Request-specific options
30702
+ #
30703
+ # @yield [result, err] Result & error if block supplied
30704
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceTemplateList] parsed result object
30705
+ # @yieldparam err [StandardError] error object if request failed
30706
+ #
30707
+ # @return [Google::Apis::ComputeAlpha::InstanceTemplateList]
30708
+ #
30709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30712
+ 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)
30713
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
30714
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplateList::Representation
30715
+ command.response_class = Google::Apis::ComputeAlpha::InstanceTemplateList
30716
+ command.params['project'] = project unless project.nil?
30717
+ command.params['region'] = region unless region.nil?
30718
+ command.query['filter'] = filter unless filter.nil?
30719
+ command.query['maxResults'] = max_results unless max_results.nil?
30720
+ command.query['orderBy'] = order_by unless order_by.nil?
30721
+ command.query['pageToken'] = page_token unless page_token.nil?
30722
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30723
+ command.query['fields'] = fields unless fields.nil?
30724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30725
+ command.query['userIp'] = user_ip unless user_ip.nil?
30726
+ execute_or_queue_command(command, &block)
30727
+ end
30728
+
30134
30729
  # Creates multiple instances in a given region. Count specifies the number of
30135
30730
  # instances to create.
30136
30731
  # @param [String] project