google-apis-compute_v1 0.111.0 → 0.113.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10862,6 +10862,70 @@ module Google
10862
10862
  execute_or_queue_command(command, &block)
10863
10863
  end
10864
10864
 
10865
+ # Flags the specified instances in the managed instance group to be resumed.
10866
+ # This method increases the targetSize and decreases the targetSuspendedSize of
10867
+ # the managed instance group by the number of instances that you resume. The
10868
+ # resumeInstances operation is marked DONE if the resumeInstances request is
10869
+ # successful. The underlying actions take additional time. You must separately
10870
+ # verify the status of the RESUMING action with the listmanagedinstances method.
10871
+ # In this request, you can only specify instances that are suspended. For
10872
+ # example, if an instance was previously suspended using the suspendInstances
10873
+ # method, it can be resumed using the resumeInstances method. If a health check
10874
+ # is attached to the managed instance group, the specified instances will be
10875
+ # verified as healthy after they are resumed. You can specify a maximum of 1000
10876
+ # instances with this method per request.
10877
+ # @param [String] project
10878
+ # Project ID for this request.
10879
+ # @param [String] zone
10880
+ # The name of the zone where the managed instance group is located.
10881
+ # @param [String] instance_group_manager
10882
+ # The name of the managed instance group.
10883
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersResumeInstancesRequest] instance_group_managers_resume_instances_request_object
10884
+ # @param [String] request_id
10885
+ # An optional request ID to identify requests. Specify a unique request ID so
10886
+ # that if you must retry your request, the server will know to ignore the
10887
+ # request if it has already been completed. For example, consider a situation
10888
+ # where you make an initial request and the request times out. If you make the
10889
+ # request again with the same request ID, the server can check if original
10890
+ # operation with the same request ID was received, and if so, will ignore the
10891
+ # second request. This prevents clients from accidentally creating duplicate
10892
+ # commitments. The request ID must be a valid UUID with the exception that zero
10893
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
10894
+ # @param [String] fields
10895
+ # Selector specifying which fields to include in a partial response.
10896
+ # @param [String] quota_user
10897
+ # Available to use for quota purposes for server-side applications. Can be any
10898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10899
+ # @param [String] user_ip
10900
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10901
+ # @param [Google::Apis::RequestOptions] options
10902
+ # Request-specific options
10903
+ #
10904
+ # @yield [result, err] Result & error if block supplied
10905
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
10906
+ # @yieldparam err [StandardError] error object if request failed
10907
+ #
10908
+ # @return [Google::Apis::ComputeV1::Operation]
10909
+ #
10910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10913
+ def resume_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_resume_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10914
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
10915
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersResumeInstancesRequest::Representation
10916
+ command.request_object = instance_group_managers_resume_instances_request_object
10917
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10918
+ command.response_class = Google::Apis::ComputeV1::Operation
10919
+ command.params['project'] = project unless project.nil?
10920
+ command.params['zone'] = zone unless zone.nil?
10921
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10922
+ command.query['requestId'] = request_id unless request_id.nil?
10923
+ command.query['fields'] = fields unless fields.nil?
10924
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10925
+ command.query['userIp'] = user_ip unless user_ip.nil?
10926
+ execute_or_queue_command(command, &block)
10927
+ end
10928
+
10865
10929
  # Specifies the instance template to use when creating new instances in this
10866
10930
  # group. The templates for existing instances in the group do not change unless
10867
10931
  # you run recreateInstances, run applyUpdatesToInstances, or set the group's
@@ -10976,6 +11040,210 @@ module Google
10976
11040
  execute_or_queue_command(command, &block)
10977
11041
  end
10978
11042
 
11043
+ # Flags the specified instances in the managed instance group to be started.
11044
+ # This method increases the targetSize and decreases the targetStoppedSize of
11045
+ # the managed instance group by the number of instances that you start. The
11046
+ # startInstances operation is marked DONE if the startInstances request is
11047
+ # successful. The underlying actions take additional time. You must separately
11048
+ # verify the status of the STARTING action with the listmanagedinstances method.
11049
+ # In this request, you can only specify instances that are stopped. For example,
11050
+ # if an instance was previously stopped using the stopInstances method, it can
11051
+ # be started using the startInstances method. If a health check is attached to
11052
+ # the managed instance group, the specified instances will be verified as
11053
+ # healthy after they are started. You can specify a maximum of 1000 instances
11054
+ # with this method per request.
11055
+ # @param [String] project
11056
+ # Project ID for this request.
11057
+ # @param [String] zone
11058
+ # The name of the zone where the managed instance group is located.
11059
+ # @param [String] instance_group_manager
11060
+ # The name of the managed instance group.
11061
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersStartInstancesRequest] instance_group_managers_start_instances_request_object
11062
+ # @param [String] request_id
11063
+ # An optional request ID to identify requests. Specify a unique request ID so
11064
+ # that if you must retry your request, the server will know to ignore the
11065
+ # request if it has already been completed. For example, consider a situation
11066
+ # where you make an initial request and the request times out. If you make the
11067
+ # request again with the same request ID, the server can check if original
11068
+ # operation with the same request ID was received, and if so, will ignore the
11069
+ # second request. This prevents clients from accidentally creating duplicate
11070
+ # commitments. The request ID must be a valid UUID with the exception that zero
11071
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
11072
+ # @param [String] fields
11073
+ # Selector specifying which fields to include in a partial response.
11074
+ # @param [String] quota_user
11075
+ # Available to use for quota purposes for server-side applications. Can be any
11076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11077
+ # @param [String] user_ip
11078
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11079
+ # @param [Google::Apis::RequestOptions] options
11080
+ # Request-specific options
11081
+ #
11082
+ # @yield [result, err] Result & error if block supplied
11083
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
11084
+ # @yieldparam err [StandardError] error object if request failed
11085
+ #
11086
+ # @return [Google::Apis::ComputeV1::Operation]
11087
+ #
11088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11091
+ def start_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_start_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11092
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
11093
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersStartInstancesRequest::Representation
11094
+ command.request_object = instance_group_managers_start_instances_request_object
11095
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
11096
+ command.response_class = Google::Apis::ComputeV1::Operation
11097
+ command.params['project'] = project unless project.nil?
11098
+ command.params['zone'] = zone unless zone.nil?
11099
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
11100
+ command.query['requestId'] = request_id unless request_id.nil?
11101
+ command.query['fields'] = fields unless fields.nil?
11102
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11103
+ command.query['userIp'] = user_ip unless user_ip.nil?
11104
+ execute_or_queue_command(command, &block)
11105
+ end
11106
+
11107
+ # Flags the specified instances in the managed instance group to be immediately
11108
+ # stopped. You can only specify instances that are running in this request. This
11109
+ # method reduces the targetSize and increases the targetStoppedSize of the
11110
+ # managed instance group by the number of instances that you stop. The
11111
+ # stopInstances operation is marked DONE if the stopInstances request is
11112
+ # successful. The underlying actions take additional time. You must separately
11113
+ # verify the status of the STOPPING action with the listmanagedinstances method.
11114
+ # If the standbyPolicy.initialDelaySec field is set, the group delays stopping
11115
+ # the instances until initialDelaySec have passed from instance.
11116
+ # creationTimestamp (that is, when the instance was created). This delay gives
11117
+ # your application time to set itself up and initialize on the instance. If more
11118
+ # than initialDelaySec seconds have passed since instance.creationTimestamp when
11119
+ # this method is called, there will be zero delay. If the group is part of a
11120
+ # backend service that has enabled connection draining, it can take up to 60
11121
+ # seconds after the connection draining duration has elapsed before the VM
11122
+ # instance is stopped. Stopped instances can be started using the startInstances
11123
+ # method. You can specify a maximum of 1000 instances with this method per
11124
+ # request.
11125
+ # @param [String] project
11126
+ # Project ID for this request.
11127
+ # @param [String] zone
11128
+ # The name of the zone where the managed instance group is located.
11129
+ # @param [String] instance_group_manager
11130
+ # The name of the managed instance group.
11131
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersStopInstancesRequest] instance_group_managers_stop_instances_request_object
11132
+ # @param [String] request_id
11133
+ # An optional request ID to identify requests. Specify a unique request ID so
11134
+ # that if you must retry your request, the server will know to ignore the
11135
+ # request if it has already been completed. For example, consider a situation
11136
+ # where you make an initial request and the request times out. If you make the
11137
+ # request again with the same request ID, the server can check if original
11138
+ # operation with the same request ID was received, and if so, will ignore the
11139
+ # second request. This prevents clients from accidentally creating duplicate
11140
+ # commitments. The request ID must be a valid UUID with the exception that zero
11141
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
11142
+ # @param [String] fields
11143
+ # Selector specifying which fields to include in a partial response.
11144
+ # @param [String] quota_user
11145
+ # Available to use for quota purposes for server-side applications. Can be any
11146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11147
+ # @param [String] user_ip
11148
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11149
+ # @param [Google::Apis::RequestOptions] options
11150
+ # Request-specific options
11151
+ #
11152
+ # @yield [result, err] Result & error if block supplied
11153
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
11154
+ # @yieldparam err [StandardError] error object if request failed
11155
+ #
11156
+ # @return [Google::Apis::ComputeV1::Operation]
11157
+ #
11158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11161
+ def stop_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_stop_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11162
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
11163
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersStopInstancesRequest::Representation
11164
+ command.request_object = instance_group_managers_stop_instances_request_object
11165
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
11166
+ command.response_class = Google::Apis::ComputeV1::Operation
11167
+ command.params['project'] = project unless project.nil?
11168
+ command.params['zone'] = zone unless zone.nil?
11169
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
11170
+ command.query['requestId'] = request_id unless request_id.nil?
11171
+ command.query['fields'] = fields unless fields.nil?
11172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11173
+ command.query['userIp'] = user_ip unless user_ip.nil?
11174
+ execute_or_queue_command(command, &block)
11175
+ end
11176
+
11177
+ # Flags the specified instances in the managed instance group to be immediately
11178
+ # suspended. You can only specify instances that are running in this request.
11179
+ # This method reduces the targetSize and increases the targetSuspendedSize of
11180
+ # the managed instance group by the number of instances that you suspend. The
11181
+ # suspendInstances operation is marked DONE if the suspendInstances request is
11182
+ # successful. The underlying actions take additional time. You must separately
11183
+ # verify the status of the SUSPENDING action with the listmanagedinstances
11184
+ # method. If the standbyPolicy.initialDelaySec field is set, the group delays
11185
+ # suspension of the instances until initialDelaySec have passed from instance.
11186
+ # creationTimestamp (that is, when the instance was created). This delay gives
11187
+ # your application time to set itself up and initialize on the instance. If more
11188
+ # than initialDelaySec seconds have passed since instance.creationTimestamp when
11189
+ # this method is called, there will be zero delay. If the group is part of a
11190
+ # backend service that has enabled connection draining, it can take up to 60
11191
+ # seconds after the connection draining duration has elapsed before the VM
11192
+ # instance is suspended. Suspended instances can be resumed using the
11193
+ # resumeInstances method. You can specify a maximum of 1000 instances with this
11194
+ # method per request.
11195
+ # @param [String] project
11196
+ # Project ID for this request.
11197
+ # @param [String] zone
11198
+ # The name of the zone where the managed instance group is located.
11199
+ # @param [String] instance_group_manager
11200
+ # The name of the managed instance group.
11201
+ # @param [Google::Apis::ComputeV1::InstanceGroupManagersSuspendInstancesRequest] instance_group_managers_suspend_instances_request_object
11202
+ # @param [String] request_id
11203
+ # An optional request ID to identify requests. Specify a unique request ID so
11204
+ # that if you must retry your request, the server will know to ignore the
11205
+ # request if it has already been completed. For example, consider a situation
11206
+ # where you make an initial request and the request times out. If you make the
11207
+ # request again with the same request ID, the server can check if original
11208
+ # operation with the same request ID was received, and if so, will ignore the
11209
+ # second request. This prevents clients from accidentally creating duplicate
11210
+ # commitments. The request ID must be a valid UUID with the exception that zero
11211
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
11212
+ # @param [String] fields
11213
+ # Selector specifying which fields to include in a partial response.
11214
+ # @param [String] quota_user
11215
+ # Available to use for quota purposes for server-side applications. Can be any
11216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11217
+ # @param [String] user_ip
11218
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11219
+ # @param [Google::Apis::RequestOptions] options
11220
+ # Request-specific options
11221
+ #
11222
+ # @yield [result, err] Result & error if block supplied
11223
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
11224
+ # @yieldparam err [StandardError] error object if request failed
11225
+ #
11226
+ # @return [Google::Apis::ComputeV1::Operation]
11227
+ #
11228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11231
+ def suspend_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_suspend_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11232
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
11233
+ command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersSuspendInstancesRequest::Representation
11234
+ command.request_object = instance_group_managers_suspend_instances_request_object
11235
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
11236
+ command.response_class = Google::Apis::ComputeV1::Operation
11237
+ command.params['project'] = project unless project.nil?
11238
+ command.params['zone'] = zone unless zone.nil?
11239
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
11240
+ command.query['requestId'] = request_id unless request_id.nil?
11241
+ command.query['fields'] = fields unless fields.nil?
11242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11243
+ command.query['userIp'] = user_ip unless user_ip.nil?
11244
+ execute_or_queue_command(command, &block)
11245
+ end
11246
+
10979
11247
  # Inserts or updates per-instance configurations for the managed instance group.
10980
11248
  # perInstanceConfig.name serves as a key used to distinguish whether to perform
10981
11249
  # insert or patch.
@@ -19703,7 +19971,134 @@ module Google
19703
19971
  command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
19704
19972
  command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
19705
19973
  command.params['project'] = project unless project.nil?
19706
- command.params['resource'] = resource unless resource.nil?
19974
+ command.params['resource'] = resource unless resource.nil?
19975
+ command.query['fields'] = fields unless fields.nil?
19976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19977
+ command.query['userIp'] = user_ip unless user_ip.nil?
19978
+ execute_or_queue_command(command, &block)
19979
+ end
19980
+
19981
+ # Returns the specified network profile.
19982
+ # @param [String] project
19983
+ # Project ID for this request.
19984
+ # @param [String] network_profile
19985
+ # Name of the network profile to return.
19986
+ # @param [String] fields
19987
+ # Selector specifying which fields to include in a partial response.
19988
+ # @param [String] quota_user
19989
+ # Available to use for quota purposes for server-side applications. Can be any
19990
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19991
+ # @param [String] user_ip
19992
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19993
+ # @param [Google::Apis::RequestOptions] options
19994
+ # Request-specific options
19995
+ #
19996
+ # @yield [result, err] Result & error if block supplied
19997
+ # @yieldparam result [Google::Apis::ComputeV1::NetworkProfile] parsed result object
19998
+ # @yieldparam err [StandardError] error object if request failed
19999
+ #
20000
+ # @return [Google::Apis::ComputeV1::NetworkProfile]
20001
+ #
20002
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20003
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20004
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20005
+ def get_network_profile(project, network_profile, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20006
+ command = make_simple_command(:get, 'projects/{project}/global/networkProfiles/{networkProfile}', options)
20007
+ command.response_representation = Google::Apis::ComputeV1::NetworkProfile::Representation
20008
+ command.response_class = Google::Apis::ComputeV1::NetworkProfile
20009
+ command.params['project'] = project unless project.nil?
20010
+ command.params['networkProfile'] = network_profile unless network_profile.nil?
20011
+ command.query['fields'] = fields unless fields.nil?
20012
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20013
+ command.query['userIp'] = user_ip unless user_ip.nil?
20014
+ execute_or_queue_command(command, &block)
20015
+ end
20016
+
20017
+ # Retrieves a list of network profiles available to the specified project.
20018
+ # @param [String] project
20019
+ # Project ID for this request.
20020
+ # @param [String] filter
20021
+ # A filter expression that filters resources listed in the response. Most
20022
+ # Compute resources support two types of filter expressions: expressions that
20023
+ # support regular expressions and expressions that follow API improvement
20024
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
20025
+ # request. If you want to use AIP-160, your expression must specify the field
20026
+ # name, an operator, and the value that you want to use for filtering. The value
20027
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
20028
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
20029
+ # Engine instances, you can exclude instances named `example-instance` by
20030
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
20031
+ # whether a key has been defined. For example, to find all objects with `owner`
20032
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
20033
+ # example, you could specify `scheduling.automaticRestart = false` to include
20034
+ # instances only if they are not scheduled for automatic restarts. You can use
20035
+ # filtering on nested fields to filter based on resource labels. To filter on
20036
+ # multiple expressions, provide each separate expression within parentheses. For
20037
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
20038
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
20039
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
20040
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
20041
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
20042
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
20043
+ # un-parenthesized expression with or without quotes or against multiple
20044
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
20045
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
20046
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
20047
+ # interpreted as a regular expression using Google RE2 library syntax. The
20048
+ # literal value must match the entire field. For example, to filter for
20049
+ # instances that do not end with name "instance", you would use `name ne .*
20050
+ # instance`. You cannot combine constraints on multiple fields using regular
20051
+ # expressions.
20052
+ # @param [Fixnum] max_results
20053
+ # The maximum number of results per page that should be returned. If the number
20054
+ # of available results is larger than `maxResults`, Compute Engine returns a `
20055
+ # nextPageToken` that can be used to get the next page of results in subsequent
20056
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
20057
+ # @param [String] order_by
20058
+ # Sorts list results by a certain order. By default, results are returned in
20059
+ # alphanumerical order based on the resource name. You can also sort results in
20060
+ # descending order based on the creation timestamp using `orderBy="
20061
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
20062
+ # field in reverse chronological order (newest result first). Use this to sort
20063
+ # resources like operations so that the newest operation is returned first.
20064
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
20065
+ # @param [String] page_token
20066
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
20067
+ # by a previous list request to get the next page of results.
20068
+ # @param [Boolean] return_partial_success
20069
+ # Opt-in for partial success behavior which provides partial results in case of
20070
+ # failure. The default value is false. For example, when partial success
20071
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
20072
+ # resources in the zone or no resources, with an error code.
20073
+ # @param [String] fields
20074
+ # Selector specifying which fields to include in a partial response.
20075
+ # @param [String] quota_user
20076
+ # Available to use for quota purposes for server-side applications. Can be any
20077
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20078
+ # @param [String] user_ip
20079
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20080
+ # @param [Google::Apis::RequestOptions] options
20081
+ # Request-specific options
20082
+ #
20083
+ # @yield [result, err] Result & error if block supplied
20084
+ # @yieldparam result [Google::Apis::ComputeV1::NetworkProfilesListResponse] parsed result object
20085
+ # @yieldparam err [StandardError] error object if request failed
20086
+ #
20087
+ # @return [Google::Apis::ComputeV1::NetworkProfilesListResponse]
20088
+ #
20089
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20090
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20091
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20092
+ def list_network_profiles(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)
20093
+ command = make_simple_command(:get, 'projects/{project}/global/networkProfiles', options)
20094
+ command.response_representation = Google::Apis::ComputeV1::NetworkProfilesListResponse::Representation
20095
+ command.response_class = Google::Apis::ComputeV1::NetworkProfilesListResponse
20096
+ command.params['project'] = project unless project.nil?
20097
+ command.query['filter'] = filter unless filter.nil?
20098
+ command.query['maxResults'] = max_results unless max_results.nil?
20099
+ command.query['orderBy'] = order_by unless order_by.nil?
20100
+ command.query['pageToken'] = page_token unless page_token.nil?
20101
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19707
20102
  command.query['fields'] = fields unless fields.nil?
19708
20103
  command.query['quotaUser'] = quota_user unless quota_user.nil?
19709
20104
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -28030,6 +28425,70 @@ module Google
28030
28425
  execute_or_queue_command(command, &block)
28031
28426
  end
28032
28427
 
28428
+ # Flags the specified instances in the managed instance group to be resumed.
28429
+ # This method increases the targetSize and decreases the targetSuspendedSize of
28430
+ # the managed instance group by the number of instances that you resume. The
28431
+ # resumeInstances operation is marked DONE if the resumeInstances request is
28432
+ # successful. The underlying actions take additional time. You must separately
28433
+ # verify the status of the RESUMING action with the listmanagedinstances method.
28434
+ # In this request, you can only specify instances that are suspended. For
28435
+ # example, if an instance was previously suspended using the suspendInstances
28436
+ # method, it can be resumed using the resumeInstances method. If a health check
28437
+ # is attached to the managed instance group, the specified instances will be
28438
+ # verified as healthy after they are resumed. You can specify a maximum of 1000
28439
+ # instances with this method per request.
28440
+ # @param [String] project
28441
+ # Project ID for this request.
28442
+ # @param [String] region
28443
+ # Name of the region scoping this request.
28444
+ # @param [String] instance_group_manager
28445
+ # Name of the managed instance group.
28446
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
28447
+ # @param [String] request_id
28448
+ # An optional request ID to identify requests. Specify a unique request ID so
28449
+ # that if you must retry your request, the server will know to ignore the
28450
+ # request if it has already been completed. For example, consider a situation
28451
+ # where you make an initial request and the request times out. If you make the
28452
+ # request again with the same request ID, the server can check if original
28453
+ # operation with the same request ID was received, and if so, will ignore the
28454
+ # second request. This prevents clients from accidentally creating duplicate
28455
+ # commitments. The request ID must be a valid UUID with the exception that zero
28456
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28457
+ # @param [String] fields
28458
+ # Selector specifying which fields to include in a partial response.
28459
+ # @param [String] quota_user
28460
+ # Available to use for quota purposes for server-side applications. Can be any
28461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28462
+ # @param [String] user_ip
28463
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28464
+ # @param [Google::Apis::RequestOptions] options
28465
+ # Request-specific options
28466
+ #
28467
+ # @yield [result, err] Result & error if block supplied
28468
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28469
+ # @yieldparam err [StandardError] error object if request failed
28470
+ #
28471
+ # @return [Google::Apis::ComputeV1::Operation]
28472
+ #
28473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28476
+ def resume_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_resume_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28477
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
28478
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersResumeInstancesRequest::Representation
28479
+ command.request_object = region_instance_group_managers_resume_instances_request_object
28480
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28481
+ command.response_class = Google::Apis::ComputeV1::Operation
28482
+ command.params['project'] = project unless project.nil?
28483
+ command.params['region'] = region unless region.nil?
28484
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28485
+ command.query['requestId'] = request_id unless request_id.nil?
28486
+ command.query['fields'] = fields unless fields.nil?
28487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28488
+ command.query['userIp'] = user_ip unless user_ip.nil?
28489
+ execute_or_queue_command(command, &block)
28490
+ end
28491
+
28033
28492
  # Sets the instance template to use when creating new instances or recreating
28034
28493
  # instances in this group. Existing instances are not affected.
28035
28494
  # @param [String] project
@@ -28138,6 +28597,210 @@ module Google
28138
28597
  execute_or_queue_command(command, &block)
28139
28598
  end
28140
28599
 
28600
+ # Flags the specified instances in the managed instance group to be started.
28601
+ # This method increases the targetSize and decreases the targetStoppedSize of
28602
+ # the managed instance group by the number of instances that you start. The
28603
+ # startInstances operation is marked DONE if the startInstances request is
28604
+ # successful. The underlying actions take additional time. You must separately
28605
+ # verify the status of the STARTING action with the listmanagedinstances method.
28606
+ # In this request, you can only specify instances that are stopped. For example,
28607
+ # if an instance was previously stopped using the stopInstances method, it can
28608
+ # be started using the startInstances method. If a health check is attached to
28609
+ # the managed instance group, the specified instances will be verified as
28610
+ # healthy after they are started. You can specify a maximum of 1000 instances
28611
+ # with this method per request.
28612
+ # @param [String] project
28613
+ # Project ID for this request.
28614
+ # @param [String] region
28615
+ # Name of the region scoping this request.
28616
+ # @param [String] instance_group_manager
28617
+ # Name of the managed instance group.
28618
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
28619
+ # @param [String] request_id
28620
+ # An optional request ID to identify requests. Specify a unique request ID so
28621
+ # that if you must retry your request, the server will know to ignore the
28622
+ # request if it has already been completed. For example, consider a situation
28623
+ # where you make an initial request and the request times out. If you make the
28624
+ # request again with the same request ID, the server can check if original
28625
+ # operation with the same request ID was received, and if so, will ignore the
28626
+ # second request. This prevents clients from accidentally creating duplicate
28627
+ # commitments. The request ID must be a valid UUID with the exception that zero
28628
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28629
+ # @param [String] fields
28630
+ # Selector specifying which fields to include in a partial response.
28631
+ # @param [String] quota_user
28632
+ # Available to use for quota purposes for server-side applications. Can be any
28633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28634
+ # @param [String] user_ip
28635
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28636
+ # @param [Google::Apis::RequestOptions] options
28637
+ # Request-specific options
28638
+ #
28639
+ # @yield [result, err] Result & error if block supplied
28640
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28641
+ # @yieldparam err [StandardError] error object if request failed
28642
+ #
28643
+ # @return [Google::Apis::ComputeV1::Operation]
28644
+ #
28645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28648
+ def start_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_start_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28649
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
28650
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersStartInstancesRequest::Representation
28651
+ command.request_object = region_instance_group_managers_start_instances_request_object
28652
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28653
+ command.response_class = Google::Apis::ComputeV1::Operation
28654
+ command.params['project'] = project unless project.nil?
28655
+ command.params['region'] = region unless region.nil?
28656
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28657
+ command.query['requestId'] = request_id unless request_id.nil?
28658
+ command.query['fields'] = fields unless fields.nil?
28659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28660
+ command.query['userIp'] = user_ip unless user_ip.nil?
28661
+ execute_or_queue_command(command, &block)
28662
+ end
28663
+
28664
+ # Flags the specified instances in the managed instance group to be immediately
28665
+ # stopped. You can only specify instances that are running in this request. This
28666
+ # method reduces the targetSize and increases the targetStoppedSize of the
28667
+ # managed instance group by the number of instances that you stop. The
28668
+ # stopInstances operation is marked DONE if the stopInstances request is
28669
+ # successful. The underlying actions take additional time. You must separately
28670
+ # verify the status of the STOPPING action with the listmanagedinstances method.
28671
+ # If the standbyPolicy.initialDelaySec field is set, the group delays stopping
28672
+ # the instances until initialDelaySec have passed from instance.
28673
+ # creationTimestamp (that is, when the instance was created). This delay gives
28674
+ # your application time to set itself up and initialize on the instance. If more
28675
+ # than initialDelaySec seconds have passed since instance.creationTimestamp when
28676
+ # this method is called, there will be zero delay. If the group is part of a
28677
+ # backend service that has enabled connection draining, it can take up to 60
28678
+ # seconds after the connection draining duration has elapsed before the VM
28679
+ # instance is stopped. Stopped instances can be started using the startInstances
28680
+ # method. You can specify a maximum of 1000 instances with this method per
28681
+ # request.
28682
+ # @param [String] project
28683
+ # Project ID for this request.
28684
+ # @param [String] region
28685
+ # Name of the region scoping this request.
28686
+ # @param [String] instance_group_manager
28687
+ # The name of the managed instance group.
28688
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
28689
+ # @param [String] request_id
28690
+ # An optional request ID to identify requests. Specify a unique request ID so
28691
+ # that if you must retry your request, the server will know to ignore the
28692
+ # request if it has already been completed. For example, consider a situation
28693
+ # where you make an initial request and the request times out. If you make the
28694
+ # request again with the same request ID, the server can check if original
28695
+ # operation with the same request ID was received, and if so, will ignore the
28696
+ # second request. This prevents clients from accidentally creating duplicate
28697
+ # commitments. The request ID must be a valid UUID with the exception that zero
28698
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28699
+ # @param [String] fields
28700
+ # Selector specifying which fields to include in a partial response.
28701
+ # @param [String] quota_user
28702
+ # Available to use for quota purposes for server-side applications. Can be any
28703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28704
+ # @param [String] user_ip
28705
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28706
+ # @param [Google::Apis::RequestOptions] options
28707
+ # Request-specific options
28708
+ #
28709
+ # @yield [result, err] Result & error if block supplied
28710
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28711
+ # @yieldparam err [StandardError] error object if request failed
28712
+ #
28713
+ # @return [Google::Apis::ComputeV1::Operation]
28714
+ #
28715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28718
+ def stop_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_stop_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28719
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
28720
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersStopInstancesRequest::Representation
28721
+ command.request_object = region_instance_group_managers_stop_instances_request_object
28722
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28723
+ command.response_class = Google::Apis::ComputeV1::Operation
28724
+ command.params['project'] = project unless project.nil?
28725
+ command.params['region'] = region unless region.nil?
28726
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28727
+ command.query['requestId'] = request_id unless request_id.nil?
28728
+ command.query['fields'] = fields unless fields.nil?
28729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28730
+ command.query['userIp'] = user_ip unless user_ip.nil?
28731
+ execute_or_queue_command(command, &block)
28732
+ end
28733
+
28734
+ # Flags the specified instances in the managed instance group to be immediately
28735
+ # suspended. You can only specify instances that are running in this request.
28736
+ # This method reduces the targetSize and increases the targetSuspendedSize of
28737
+ # the managed instance group by the number of instances that you suspend. The
28738
+ # suspendInstances operation is marked DONE if the suspendInstances request is
28739
+ # successful. The underlying actions take additional time. You must separately
28740
+ # verify the status of the SUSPENDING action with the listmanagedinstances
28741
+ # method. If the standbyPolicy.initialDelaySec field is set, the group delays
28742
+ # suspension of the instances until initialDelaySec have passed from instance.
28743
+ # creationTimestamp (that is, when the instance was created). This delay gives
28744
+ # your application time to set itself up and initialize on the instance. If more
28745
+ # than initialDelaySec seconds have passed since instance.creationTimestamp when
28746
+ # this method is called, there will be zero delay. If the group is part of a
28747
+ # backend service that has enabled connection draining, it can take up to 60
28748
+ # seconds after the connection draining duration has elapsed before the VM
28749
+ # instance is suspended. Suspended instances can be resumed using the
28750
+ # resumeInstances method. You can specify a maximum of 1000 instances with this
28751
+ # method per request.
28752
+ # @param [String] project
28753
+ # Project ID for this request.
28754
+ # @param [String] region
28755
+ # Name of the region scoping this request.
28756
+ # @param [String] instance_group_manager
28757
+ # Name of the managed instance group.
28758
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
28759
+ # @param [String] request_id
28760
+ # An optional request ID to identify requests. Specify a unique request ID so
28761
+ # that if you must retry your request, the server will know to ignore the
28762
+ # request if it has already been completed. For example, consider a situation
28763
+ # where you make an initial request and the request times out. If you make the
28764
+ # request again with the same request ID, the server can check if original
28765
+ # operation with the same request ID was received, and if so, will ignore the
28766
+ # second request. This prevents clients from accidentally creating duplicate
28767
+ # commitments. The request ID must be a valid UUID with the exception that zero
28768
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28769
+ # @param [String] fields
28770
+ # Selector specifying which fields to include in a partial response.
28771
+ # @param [String] quota_user
28772
+ # Available to use for quota purposes for server-side applications. Can be any
28773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28774
+ # @param [String] user_ip
28775
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28776
+ # @param [Google::Apis::RequestOptions] options
28777
+ # Request-specific options
28778
+ #
28779
+ # @yield [result, err] Result & error if block supplied
28780
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28781
+ # @yieldparam err [StandardError] error object if request failed
28782
+ #
28783
+ # @return [Google::Apis::ComputeV1::Operation]
28784
+ #
28785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28788
+ def suspend_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_suspend_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28789
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
28790
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
28791
+ command.request_object = region_instance_group_managers_suspend_instances_request_object
28792
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28793
+ command.response_class = Google::Apis::ComputeV1::Operation
28794
+ command.params['project'] = project unless project.nil?
28795
+ command.params['region'] = region unless region.nil?
28796
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28797
+ command.query['requestId'] = request_id unless request_id.nil?
28798
+ command.query['fields'] = fields unless fields.nil?
28799
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28800
+ command.query['userIp'] = user_ip unless user_ip.nil?
28801
+ execute_or_queue_command(command, &block)
28802
+ end
28803
+
28141
28804
  # Inserts or updates per-instance configurations for the managed instance group.
28142
28805
  # perInstanceConfig.name serves as a key used to distinguish whether to perform
28143
28806
  # insert or patch.
@@ -31444,6 +32107,60 @@ module Google
31444
32107
  execute_or_queue_command(command, &block)
31445
32108
  end
31446
32109
 
32110
+ # Sets the labels on a security policy. To learn more about labels, read the
32111
+ # Labeling Resources documentation.
32112
+ # @param [String] project
32113
+ # Project ID for this request.
32114
+ # @param [String] region
32115
+ # The region for this request.
32116
+ # @param [String] resource
32117
+ # Name or id of the resource for this request.
32118
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
32119
+ # @param [String] request_id
32120
+ # An optional request ID to identify requests. Specify a unique request ID so
32121
+ # that if you must retry your request, the server will know to ignore the
32122
+ # request if it has already been completed. For example, consider a situation
32123
+ # where you make an initial request and the request times out. If you make the
32124
+ # request again with the same request ID, the server can check if original
32125
+ # operation with the same request ID was received, and if so, will ignore the
32126
+ # second request. This prevents clients from accidentally creating duplicate
32127
+ # commitments. The request ID must be a valid UUID with the exception that zero
32128
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32129
+ # @param [String] fields
32130
+ # Selector specifying which fields to include in a partial response.
32131
+ # @param [String] quota_user
32132
+ # Available to use for quota purposes for server-side applications. Can be any
32133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32134
+ # @param [String] user_ip
32135
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32136
+ # @param [Google::Apis::RequestOptions] options
32137
+ # Request-specific options
32138
+ #
32139
+ # @yield [result, err] Result & error if block supplied
32140
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
32141
+ # @yieldparam err [StandardError] error object if request failed
32142
+ #
32143
+ # @return [Google::Apis::ComputeV1::Operation]
32144
+ #
32145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32148
+ def set_region_security_policy_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32149
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
32150
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
32151
+ command.request_object = region_set_labels_request_object
32152
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
32153
+ command.response_class = Google::Apis::ComputeV1::Operation
32154
+ command.params['project'] = project unless project.nil?
32155
+ command.params['region'] = region unless region.nil?
32156
+ command.params['resource'] = resource unless resource.nil?
32157
+ command.query['requestId'] = request_id unless request_id.nil?
32158
+ command.query['fields'] = fields unless fields.nil?
32159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32160
+ command.query['userIp'] = user_ip unless user_ip.nil?
32161
+ execute_or_queue_command(command, &block)
32162
+ end
32163
+
31447
32164
  # Deletes the specified SslCertificate resource in the region.
31448
32165
  # @param [String] project
31449
32166
  # Project ID for this request.