google-apis-compute_v1 0.112.0 → 0.114.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.
@@ -12903,7 +13171,9 @@ module Google
12903
13171
  # and the adjusted start position is returned as the `start` property value. You
12904
13172
  # can also provide a negative start position, which translates to the most
12905
13173
  # recent number of bytes written to the serial port. For example, -3 is
12906
- # interpreted as the most recent 3 bytes written to the serial console.
13174
+ # interpreted as the most recent 3 bytes written to the serial console. Note
13175
+ # that the negative start is bounded by the retained buffer size, and the
13176
+ # returned serial console output will not exceed the max buffer size.
12907
13177
  # @param [String] fields
12908
13178
  # Selector specifying which fields to include in a partial response.
12909
13179
  # @param [String] quota_user
@@ -19036,6 +19306,112 @@ module Google
19036
19306
  execute_or_queue_command(command, &block)
19037
19307
  end
19038
19308
 
19309
+ # Retrieves an aggregated list of network firewall policies, listing network
19310
+ # firewall policies from all applicable scopes (global and regional) and
19311
+ # grouping the results per scope. To prevent failure, Google recommends that you
19312
+ # set the `returnPartialSuccess` parameter to `true`.
19313
+ # @param [String] project
19314
+ # Project ID for this request.
19315
+ # @param [String] filter
19316
+ # A filter expression that filters resources listed in the response. Most
19317
+ # Compute resources support two types of filter expressions: expressions that
19318
+ # support regular expressions and expressions that follow API improvement
19319
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
19320
+ # request. If you want to use AIP-160, your expression must specify the field
19321
+ # name, an operator, and the value that you want to use for filtering. The value
19322
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
19323
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
19324
+ # Engine instances, you can exclude instances named `example-instance` by
19325
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
19326
+ # whether a key has been defined. For example, to find all objects with `owner`
19327
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
19328
+ # example, you could specify `scheduling.automaticRestart = false` to include
19329
+ # instances only if they are not scheduled for automatic restarts. You can use
19330
+ # filtering on nested fields to filter based on resource labels. To filter on
19331
+ # multiple expressions, provide each separate expression within parentheses. For
19332
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
19333
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
19334
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
19335
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
19336
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
19337
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
19338
+ # un-parenthesized expression with or without quotes or against multiple
19339
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
19340
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
19341
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
19342
+ # interpreted as a regular expression using Google RE2 library syntax. The
19343
+ # literal value must match the entire field. For example, to filter for
19344
+ # instances that do not end with name "instance", you would use `name ne .*
19345
+ # instance`. You cannot combine constraints on multiple fields using regular
19346
+ # expressions.
19347
+ # @param [Boolean] include_all_scopes
19348
+ # Indicates whether every visible scope for each scope type (zone, region,
19349
+ # global) should be included in the response. For new resource types added after
19350
+ # this field, the flag has no effect as new resource types will always include
19351
+ # every visible scope for each scope type in response. For resource types which
19352
+ # predate this field, if this flag is omitted or false, only scopes of the scope
19353
+ # types where the resource type is expected to be found will be included.
19354
+ # @param [Fixnum] max_results
19355
+ # The maximum number of results per page that should be returned. If the number
19356
+ # of available results is larger than `maxResults`, Compute Engine returns a `
19357
+ # nextPageToken` that can be used to get the next page of results in subsequent
19358
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
19359
+ # @param [String] order_by
19360
+ # Sorts list results by a certain order. By default, results are returned in
19361
+ # alphanumerical order based on the resource name. You can also sort results in
19362
+ # descending order based on the creation timestamp using `orderBy="
19363
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
19364
+ # field in reverse chronological order (newest result first). Use this to sort
19365
+ # resources like operations so that the newest operation is returned first.
19366
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
19367
+ # @param [String] page_token
19368
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
19369
+ # by a previous list request to get the next page of results.
19370
+ # @param [Boolean] return_partial_success
19371
+ # Opt-in for partial success behavior which provides partial results in case of
19372
+ # failure. The default value is false. For example, when partial success
19373
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
19374
+ # resources in the zone or no resources, with an error code.
19375
+ # @param [Fixnum] service_project_number
19376
+ # The Shared VPC service project id or service project number for which
19377
+ # aggregated list request is invoked for subnetworks list-usable api.
19378
+ # @param [String] fields
19379
+ # Selector specifying which fields to include in a partial response.
19380
+ # @param [String] quota_user
19381
+ # Available to use for quota purposes for server-side applications. Can be any
19382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
19383
+ # @param [String] user_ip
19384
+ # Legacy name for parameter that has been superseded by `quotaUser`.
19385
+ # @param [Google::Apis::RequestOptions] options
19386
+ # Request-specific options
19387
+ #
19388
+ # @yield [result, err] Result & error if block supplied
19389
+ # @yieldparam result [Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList] parsed result object
19390
+ # @yieldparam err [StandardError] error object if request failed
19391
+ #
19392
+ # @return [Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList]
19393
+ #
19394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19397
+ def aggregated_network_firewall_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19398
+ command = make_simple_command(:get, 'projects/{project}/aggregated/firewallPolicies', options)
19399
+ command.response_representation = Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList::Representation
19400
+ command.response_class = Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList
19401
+ command.params['project'] = project unless project.nil?
19402
+ command.query['filter'] = filter unless filter.nil?
19403
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
19404
+ command.query['maxResults'] = max_results unless max_results.nil?
19405
+ command.query['orderBy'] = order_by unless order_by.nil?
19406
+ command.query['pageToken'] = page_token unless page_token.nil?
19407
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19408
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
19409
+ command.query['fields'] = fields unless fields.nil?
19410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19411
+ command.query['userIp'] = user_ip unless user_ip.nil?
19412
+ execute_or_queue_command(command, &block)
19413
+ end
19414
+
19039
19415
  # Copies rules to the specified firewall policy.
19040
19416
  # @param [String] project
19041
19417
  # Project ID for this request.
@@ -19701,7 +20077,134 @@ module Google
19701
20077
  command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
19702
20078
  command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
19703
20079
  command.params['project'] = project unless project.nil?
19704
- command.params['resource'] = resource unless resource.nil?
20080
+ command.params['resource'] = resource unless resource.nil?
20081
+ command.query['fields'] = fields unless fields.nil?
20082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20083
+ command.query['userIp'] = user_ip unless user_ip.nil?
20084
+ execute_or_queue_command(command, &block)
20085
+ end
20086
+
20087
+ # Returns the specified network profile.
20088
+ # @param [String] project
20089
+ # Project ID for this request.
20090
+ # @param [String] network_profile
20091
+ # Name of the network profile to return.
20092
+ # @param [String] fields
20093
+ # Selector specifying which fields to include in a partial response.
20094
+ # @param [String] quota_user
20095
+ # Available to use for quota purposes for server-side applications. Can be any
20096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20097
+ # @param [String] user_ip
20098
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20099
+ # @param [Google::Apis::RequestOptions] options
20100
+ # Request-specific options
20101
+ #
20102
+ # @yield [result, err] Result & error if block supplied
20103
+ # @yieldparam result [Google::Apis::ComputeV1::NetworkProfile] parsed result object
20104
+ # @yieldparam err [StandardError] error object if request failed
20105
+ #
20106
+ # @return [Google::Apis::ComputeV1::NetworkProfile]
20107
+ #
20108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20111
+ def get_network_profile(project, network_profile, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20112
+ command = make_simple_command(:get, 'projects/{project}/global/networkProfiles/{networkProfile}', options)
20113
+ command.response_representation = Google::Apis::ComputeV1::NetworkProfile::Representation
20114
+ command.response_class = Google::Apis::ComputeV1::NetworkProfile
20115
+ command.params['project'] = project unless project.nil?
20116
+ command.params['networkProfile'] = network_profile unless network_profile.nil?
20117
+ command.query['fields'] = fields unless fields.nil?
20118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
20119
+ command.query['userIp'] = user_ip unless user_ip.nil?
20120
+ execute_or_queue_command(command, &block)
20121
+ end
20122
+
20123
+ # Retrieves a list of network profiles available to the specified project.
20124
+ # @param [String] project
20125
+ # Project ID for this request.
20126
+ # @param [String] filter
20127
+ # A filter expression that filters resources listed in the response. Most
20128
+ # Compute resources support two types of filter expressions: expressions that
20129
+ # support regular expressions and expressions that follow API improvement
20130
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
20131
+ # request. If you want to use AIP-160, your expression must specify the field
20132
+ # name, an operator, and the value that you want to use for filtering. The value
20133
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
20134
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
20135
+ # Engine instances, you can exclude instances named `example-instance` by
20136
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
20137
+ # whether a key has been defined. For example, to find all objects with `owner`
20138
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
20139
+ # example, you could specify `scheduling.automaticRestart = false` to include
20140
+ # instances only if they are not scheduled for automatic restarts. You can use
20141
+ # filtering on nested fields to filter based on resource labels. To filter on
20142
+ # multiple expressions, provide each separate expression within parentheses. For
20143
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
20144
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
20145
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
20146
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
20147
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
20148
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
20149
+ # un-parenthesized expression with or without quotes or against multiple
20150
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
20151
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
20152
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
20153
+ # interpreted as a regular expression using Google RE2 library syntax. The
20154
+ # literal value must match the entire field. For example, to filter for
20155
+ # instances that do not end with name "instance", you would use `name ne .*
20156
+ # instance`. You cannot combine constraints on multiple fields using regular
20157
+ # expressions.
20158
+ # @param [Fixnum] max_results
20159
+ # The maximum number of results per page that should be returned. If the number
20160
+ # of available results is larger than `maxResults`, Compute Engine returns a `
20161
+ # nextPageToken` that can be used to get the next page of results in subsequent
20162
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
20163
+ # @param [String] order_by
20164
+ # Sorts list results by a certain order. By default, results are returned in
20165
+ # alphanumerical order based on the resource name. You can also sort results in
20166
+ # descending order based on the creation timestamp using `orderBy="
20167
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
20168
+ # field in reverse chronological order (newest result first). Use this to sort
20169
+ # resources like operations so that the newest operation is returned first.
20170
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
20171
+ # @param [String] page_token
20172
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
20173
+ # by a previous list request to get the next page of results.
20174
+ # @param [Boolean] return_partial_success
20175
+ # Opt-in for partial success behavior which provides partial results in case of
20176
+ # failure. The default value is false. For example, when partial success
20177
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
20178
+ # resources in the zone or no resources, with an error code.
20179
+ # @param [String] fields
20180
+ # Selector specifying which fields to include in a partial response.
20181
+ # @param [String] quota_user
20182
+ # Available to use for quota purposes for server-side applications. Can be any
20183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
20184
+ # @param [String] user_ip
20185
+ # Legacy name for parameter that has been superseded by `quotaUser`.
20186
+ # @param [Google::Apis::RequestOptions] options
20187
+ # Request-specific options
20188
+ #
20189
+ # @yield [result, err] Result & error if block supplied
20190
+ # @yieldparam result [Google::Apis::ComputeV1::NetworkProfilesListResponse] parsed result object
20191
+ # @yieldparam err [StandardError] error object if request failed
20192
+ #
20193
+ # @return [Google::Apis::ComputeV1::NetworkProfilesListResponse]
20194
+ #
20195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
20198
+ 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)
20199
+ command = make_simple_command(:get, 'projects/{project}/global/networkProfiles', options)
20200
+ command.response_representation = Google::Apis::ComputeV1::NetworkProfilesListResponse::Representation
20201
+ command.response_class = Google::Apis::ComputeV1::NetworkProfilesListResponse
20202
+ command.params['project'] = project unless project.nil?
20203
+ command.query['filter'] = filter unless filter.nil?
20204
+ command.query['maxResults'] = max_results unless max_results.nil?
20205
+ command.query['orderBy'] = order_by unless order_by.nil?
20206
+ command.query['pageToken'] = page_token unless page_token.nil?
20207
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19705
20208
  command.query['fields'] = fields unless fields.nil?
19706
20209
  command.query['quotaUser'] = quota_user unless quota_user.nil?
19707
20210
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -28028,6 +28531,70 @@ module Google
28028
28531
  execute_or_queue_command(command, &block)
28029
28532
  end
28030
28533
 
28534
+ # Flags the specified instances in the managed instance group to be resumed.
28535
+ # This method increases the targetSize and decreases the targetSuspendedSize of
28536
+ # the managed instance group by the number of instances that you resume. The
28537
+ # resumeInstances operation is marked DONE if the resumeInstances request is
28538
+ # successful. The underlying actions take additional time. You must separately
28539
+ # verify the status of the RESUMING action with the listmanagedinstances method.
28540
+ # In this request, you can only specify instances that are suspended. For
28541
+ # example, if an instance was previously suspended using the suspendInstances
28542
+ # method, it can be resumed using the resumeInstances method. If a health check
28543
+ # is attached to the managed instance group, the specified instances will be
28544
+ # verified as healthy after they are resumed. You can specify a maximum of 1000
28545
+ # instances with this method per request.
28546
+ # @param [String] project
28547
+ # Project ID for this request.
28548
+ # @param [String] region
28549
+ # Name of the region scoping this request.
28550
+ # @param [String] instance_group_manager
28551
+ # Name of the managed instance group.
28552
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
28553
+ # @param [String] request_id
28554
+ # An optional request ID to identify requests. Specify a unique request ID so
28555
+ # that if you must retry your request, the server will know to ignore the
28556
+ # request if it has already been completed. For example, consider a situation
28557
+ # where you make an initial request and the request times out. If you make the
28558
+ # request again with the same request ID, the server can check if original
28559
+ # operation with the same request ID was received, and if so, will ignore the
28560
+ # second request. This prevents clients from accidentally creating duplicate
28561
+ # commitments. The request ID must be a valid UUID with the exception that zero
28562
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28563
+ # @param [String] fields
28564
+ # Selector specifying which fields to include in a partial response.
28565
+ # @param [String] quota_user
28566
+ # Available to use for quota purposes for server-side applications. Can be any
28567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28568
+ # @param [String] user_ip
28569
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28570
+ # @param [Google::Apis::RequestOptions] options
28571
+ # Request-specific options
28572
+ #
28573
+ # @yield [result, err] Result & error if block supplied
28574
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28575
+ # @yieldparam err [StandardError] error object if request failed
28576
+ #
28577
+ # @return [Google::Apis::ComputeV1::Operation]
28578
+ #
28579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28582
+ 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)
28583
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
28584
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersResumeInstancesRequest::Representation
28585
+ command.request_object = region_instance_group_managers_resume_instances_request_object
28586
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28587
+ command.response_class = Google::Apis::ComputeV1::Operation
28588
+ command.params['project'] = project unless project.nil?
28589
+ command.params['region'] = region unless region.nil?
28590
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28591
+ command.query['requestId'] = request_id unless request_id.nil?
28592
+ command.query['fields'] = fields unless fields.nil?
28593
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28594
+ command.query['userIp'] = user_ip unless user_ip.nil?
28595
+ execute_or_queue_command(command, &block)
28596
+ end
28597
+
28031
28598
  # Sets the instance template to use when creating new instances or recreating
28032
28599
  # instances in this group. Existing instances are not affected.
28033
28600
  # @param [String] project
@@ -28136,6 +28703,210 @@ module Google
28136
28703
  execute_or_queue_command(command, &block)
28137
28704
  end
28138
28705
 
28706
+ # Flags the specified instances in the managed instance group to be started.
28707
+ # This method increases the targetSize and decreases the targetStoppedSize of
28708
+ # the managed instance group by the number of instances that you start. The
28709
+ # startInstances operation is marked DONE if the startInstances request is
28710
+ # successful. The underlying actions take additional time. You must separately
28711
+ # verify the status of the STARTING action with the listmanagedinstances method.
28712
+ # In this request, you can only specify instances that are stopped. For example,
28713
+ # if an instance was previously stopped using the stopInstances method, it can
28714
+ # be started using the startInstances method. If a health check is attached to
28715
+ # the managed instance group, the specified instances will be verified as
28716
+ # healthy after they are started. You can specify a maximum of 1000 instances
28717
+ # with this method per request.
28718
+ # @param [String] project
28719
+ # Project ID for this request.
28720
+ # @param [String] region
28721
+ # Name of the region scoping this request.
28722
+ # @param [String] instance_group_manager
28723
+ # Name of the managed instance group.
28724
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
28725
+ # @param [String] request_id
28726
+ # An optional request ID to identify requests. Specify a unique request ID so
28727
+ # that if you must retry your request, the server will know to ignore the
28728
+ # request if it has already been completed. For example, consider a situation
28729
+ # where you make an initial request and the request times out. If you make the
28730
+ # request again with the same request ID, the server can check if original
28731
+ # operation with the same request ID was received, and if so, will ignore the
28732
+ # second request. This prevents clients from accidentally creating duplicate
28733
+ # commitments. The request ID must be a valid UUID with the exception that zero
28734
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28735
+ # @param [String] fields
28736
+ # Selector specifying which fields to include in a partial response.
28737
+ # @param [String] quota_user
28738
+ # Available to use for quota purposes for server-side applications. Can be any
28739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28740
+ # @param [String] user_ip
28741
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28742
+ # @param [Google::Apis::RequestOptions] options
28743
+ # Request-specific options
28744
+ #
28745
+ # @yield [result, err] Result & error if block supplied
28746
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28747
+ # @yieldparam err [StandardError] error object if request failed
28748
+ #
28749
+ # @return [Google::Apis::ComputeV1::Operation]
28750
+ #
28751
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28752
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28753
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28754
+ 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)
28755
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
28756
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersStartInstancesRequest::Representation
28757
+ command.request_object = region_instance_group_managers_start_instances_request_object
28758
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28759
+ command.response_class = Google::Apis::ComputeV1::Operation
28760
+ command.params['project'] = project unless project.nil?
28761
+ command.params['region'] = region unless region.nil?
28762
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28763
+ command.query['requestId'] = request_id unless request_id.nil?
28764
+ command.query['fields'] = fields unless fields.nil?
28765
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28766
+ command.query['userIp'] = user_ip unless user_ip.nil?
28767
+ execute_or_queue_command(command, &block)
28768
+ end
28769
+
28770
+ # Flags the specified instances in the managed instance group to be immediately
28771
+ # stopped. You can only specify instances that are running in this request. This
28772
+ # method reduces the targetSize and increases the targetStoppedSize of the
28773
+ # managed instance group by the number of instances that you stop. The
28774
+ # stopInstances operation is marked DONE if the stopInstances request is
28775
+ # successful. The underlying actions take additional time. You must separately
28776
+ # verify the status of the STOPPING action with the listmanagedinstances method.
28777
+ # If the standbyPolicy.initialDelaySec field is set, the group delays stopping
28778
+ # the instances until initialDelaySec have passed from instance.
28779
+ # creationTimestamp (that is, when the instance was created). This delay gives
28780
+ # your application time to set itself up and initialize on the instance. If more
28781
+ # than initialDelaySec seconds have passed since instance.creationTimestamp when
28782
+ # this method is called, there will be zero delay. If the group is part of a
28783
+ # backend service that has enabled connection draining, it can take up to 60
28784
+ # seconds after the connection draining duration has elapsed before the VM
28785
+ # instance is stopped. Stopped instances can be started using the startInstances
28786
+ # method. You can specify a maximum of 1000 instances with this method per
28787
+ # request.
28788
+ # @param [String] project
28789
+ # Project ID for this request.
28790
+ # @param [String] region
28791
+ # Name of the region scoping this request.
28792
+ # @param [String] instance_group_manager
28793
+ # The name of the managed instance group.
28794
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
28795
+ # @param [String] request_id
28796
+ # An optional request ID to identify requests. Specify a unique request ID so
28797
+ # that if you must retry your request, the server will know to ignore the
28798
+ # request if it has already been completed. For example, consider a situation
28799
+ # where you make an initial request and the request times out. If you make the
28800
+ # request again with the same request ID, the server can check if original
28801
+ # operation with the same request ID was received, and if so, will ignore the
28802
+ # second request. This prevents clients from accidentally creating duplicate
28803
+ # commitments. The request ID must be a valid UUID with the exception that zero
28804
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28805
+ # @param [String] fields
28806
+ # Selector specifying which fields to include in a partial response.
28807
+ # @param [String] quota_user
28808
+ # Available to use for quota purposes for server-side applications. Can be any
28809
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28810
+ # @param [String] user_ip
28811
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28812
+ # @param [Google::Apis::RequestOptions] options
28813
+ # Request-specific options
28814
+ #
28815
+ # @yield [result, err] Result & error if block supplied
28816
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28817
+ # @yieldparam err [StandardError] error object if request failed
28818
+ #
28819
+ # @return [Google::Apis::ComputeV1::Operation]
28820
+ #
28821
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28822
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28823
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28824
+ 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)
28825
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
28826
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersStopInstancesRequest::Representation
28827
+ command.request_object = region_instance_group_managers_stop_instances_request_object
28828
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28829
+ command.response_class = Google::Apis::ComputeV1::Operation
28830
+ command.params['project'] = project unless project.nil?
28831
+ command.params['region'] = region unless region.nil?
28832
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28833
+ command.query['requestId'] = request_id unless request_id.nil?
28834
+ command.query['fields'] = fields unless fields.nil?
28835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28836
+ command.query['userIp'] = user_ip unless user_ip.nil?
28837
+ execute_or_queue_command(command, &block)
28838
+ end
28839
+
28840
+ # Flags the specified instances in the managed instance group to be immediately
28841
+ # suspended. You can only specify instances that are running in this request.
28842
+ # This method reduces the targetSize and increases the targetSuspendedSize of
28843
+ # the managed instance group by the number of instances that you suspend. The
28844
+ # suspendInstances operation is marked DONE if the suspendInstances request is
28845
+ # successful. The underlying actions take additional time. You must separately
28846
+ # verify the status of the SUSPENDING action with the listmanagedinstances
28847
+ # method. If the standbyPolicy.initialDelaySec field is set, the group delays
28848
+ # suspension of the instances until initialDelaySec have passed from instance.
28849
+ # creationTimestamp (that is, when the instance was created). This delay gives
28850
+ # your application time to set itself up and initialize on the instance. If more
28851
+ # than initialDelaySec seconds have passed since instance.creationTimestamp when
28852
+ # this method is called, there will be zero delay. If the group is part of a
28853
+ # backend service that has enabled connection draining, it can take up to 60
28854
+ # seconds after the connection draining duration has elapsed before the VM
28855
+ # instance is suspended. Suspended instances can be resumed using the
28856
+ # resumeInstances method. You can specify a maximum of 1000 instances with this
28857
+ # method per request.
28858
+ # @param [String] project
28859
+ # Project ID for this request.
28860
+ # @param [String] region
28861
+ # Name of the region scoping this request.
28862
+ # @param [String] instance_group_manager
28863
+ # Name of the managed instance group.
28864
+ # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
28865
+ # @param [String] request_id
28866
+ # An optional request ID to identify requests. Specify a unique request ID so
28867
+ # that if you must retry your request, the server will know to ignore the
28868
+ # request if it has already been completed. For example, consider a situation
28869
+ # where you make an initial request and the request times out. If you make the
28870
+ # request again with the same request ID, the server can check if original
28871
+ # operation with the same request ID was received, and if so, will ignore the
28872
+ # second request. This prevents clients from accidentally creating duplicate
28873
+ # commitments. The request ID must be a valid UUID with the exception that zero
28874
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28875
+ # @param [String] fields
28876
+ # Selector specifying which fields to include in a partial response.
28877
+ # @param [String] quota_user
28878
+ # Available to use for quota purposes for server-side applications. Can be any
28879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28880
+ # @param [String] user_ip
28881
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28882
+ # @param [Google::Apis::RequestOptions] options
28883
+ # Request-specific options
28884
+ #
28885
+ # @yield [result, err] Result & error if block supplied
28886
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
28887
+ # @yieldparam err [StandardError] error object if request failed
28888
+ #
28889
+ # @return [Google::Apis::ComputeV1::Operation]
28890
+ #
28891
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28892
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28893
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28894
+ 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)
28895
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
28896
+ command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
28897
+ command.request_object = region_instance_group_managers_suspend_instances_request_object
28898
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
28899
+ command.response_class = Google::Apis::ComputeV1::Operation
28900
+ command.params['project'] = project unless project.nil?
28901
+ command.params['region'] = region unless region.nil?
28902
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
28903
+ command.query['requestId'] = request_id unless request_id.nil?
28904
+ command.query['fields'] = fields unless fields.nil?
28905
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28906
+ command.query['userIp'] = user_ip unless user_ip.nil?
28907
+ execute_or_queue_command(command, &block)
28908
+ end
28909
+
28139
28910
  # Inserts or updates per-instance configurations for the managed instance group.
28140
28911
  # perInstanceConfig.name serves as a key used to distinguish whether to perform
28141
28912
  # insert or patch.
@@ -31442,6 +32213,60 @@ module Google
31442
32213
  execute_or_queue_command(command, &block)
31443
32214
  end
31444
32215
 
32216
+ # Sets the labels on a security policy. To learn more about labels, read the
32217
+ # Labeling Resources documentation.
32218
+ # @param [String] project
32219
+ # Project ID for this request.
32220
+ # @param [String] region
32221
+ # The region for this request.
32222
+ # @param [String] resource
32223
+ # Name or id of the resource for this request.
32224
+ # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
32225
+ # @param [String] request_id
32226
+ # An optional request ID to identify requests. Specify a unique request ID so
32227
+ # that if you must retry your request, the server will know to ignore the
32228
+ # request if it has already been completed. For example, consider a situation
32229
+ # where you make an initial request and the request times out. If you make the
32230
+ # request again with the same request ID, the server can check if original
32231
+ # operation with the same request ID was received, and if so, will ignore the
32232
+ # second request. This prevents clients from accidentally creating duplicate
32233
+ # commitments. The request ID must be a valid UUID with the exception that zero
32234
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32235
+ # @param [String] fields
32236
+ # Selector specifying which fields to include in a partial response.
32237
+ # @param [String] quota_user
32238
+ # Available to use for quota purposes for server-side applications. Can be any
32239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32240
+ # @param [String] user_ip
32241
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32242
+ # @param [Google::Apis::RequestOptions] options
32243
+ # Request-specific options
32244
+ #
32245
+ # @yield [result, err] Result & error if block supplied
32246
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
32247
+ # @yieldparam err [StandardError] error object if request failed
32248
+ #
32249
+ # @return [Google::Apis::ComputeV1::Operation]
32250
+ #
32251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32254
+ 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)
32255
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
32256
+ command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
32257
+ command.request_object = region_set_labels_request_object
32258
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
32259
+ command.response_class = Google::Apis::ComputeV1::Operation
32260
+ command.params['project'] = project unless project.nil?
32261
+ command.params['region'] = region unless region.nil?
32262
+ command.params['resource'] = resource unless resource.nil?
32263
+ command.query['requestId'] = request_id unless request_id.nil?
32264
+ command.query['fields'] = fields unless fields.nil?
32265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32266
+ command.query['userIp'] = user_ip unless user_ip.nil?
32267
+ execute_or_queue_command(command, &block)
32268
+ end
32269
+
31445
32270
  # Deletes the specified SslCertificate resource in the region.
31446
32271
  # @param [String] project
31447
32272
  # Project ID for this request.