google-apis-compute_alpha 0.3.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/compute_alpha.rb +1 -1
- data/lib/google/apis/compute_alpha/classes.rb +662 -89
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +238 -2
- data/lib/google/apis/compute_alpha/service.rb +1473 -18
- metadata +5 -5
@@ -2246,7 +2246,8 @@ module Google
|
|
2246
2246
|
execute_or_queue_command(command, &block)
|
2247
2247
|
end
|
2248
2248
|
|
2249
|
-
# Sets the security policy for the specified backend service.
|
2249
|
+
# Sets the Google Cloud Armor security policy for the specified backend service.
|
2250
|
+
# For more information, see Google Cloud Armor Overview
|
2250
2251
|
# @param [String] project
|
2251
2252
|
# Project ID for this request.
|
2252
2253
|
# @param [String] backend_service
|
@@ -9790,12 +9791,12 @@ module Google
|
|
9790
9791
|
execute_or_queue_command(command, &block)
|
9791
9792
|
end
|
9792
9793
|
|
9793
|
-
# Flags the specified instances in the managed instance group to be
|
9794
|
-
# recreated.
|
9795
|
-
#
|
9796
|
-
# the
|
9797
|
-
#
|
9798
|
-
#
|
9794
|
+
# Flags the specified VM instances in the managed instance group to be
|
9795
|
+
# immediately recreated. Each instance is recreated using the group's current
|
9796
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
9797
|
+
# the instances have not yet been recreated. You must separately verify the
|
9798
|
+
# status of each instance by checking its currentAction field; for more
|
9799
|
+
# information, see Checking the status of managed instances.
|
9799
9800
|
# If the group is part of a backend service that has enabled connection draining,
|
9800
9801
|
# it can take up to 60 seconds after the connection draining duration has
|
9801
9802
|
# elapsed before the VM instance is removed or deleted.
|
@@ -9989,6 +9990,71 @@ module Google
|
|
9989
9990
|
execute_or_queue_command(command, &block)
|
9990
9991
|
end
|
9991
9992
|
|
9993
|
+
# Flags the specified instances in the managed instance group to be resumed.
|
9994
|
+
# This method increases the targetSize and decreases the targetSuspendedSize of
|
9995
|
+
# the managed instance group by the number of instances that you resume. The
|
9996
|
+
# resumeInstances operation is marked DONE if the resumeInstances request is
|
9997
|
+
# successful. The underlying actions take additional time. You must separately
|
9998
|
+
# verify the status of the RESUMING action with the listmanagedinstances method.
|
9999
|
+
# In this request, you can only specify instances that are suspended. For
|
10000
|
+
# example, if an instance was previously suspended using the suspendInstances
|
10001
|
+
# method, it can be resumed using the resumeInstances method.
|
10002
|
+
# If a health check is attached to the managed instance group, the specified
|
10003
|
+
# instances will be verified as healthy after they are resumed.
|
10004
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10005
|
+
# @param [String] project
|
10006
|
+
# Project ID for this request.
|
10007
|
+
# @param [String] zone
|
10008
|
+
# The name of the zone where the managed instance group is located.
|
10009
|
+
# @param [String] instance_group_manager
|
10010
|
+
# The name of the managed instance group.
|
10011
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest] instance_group_managers_resume_instances_request_object
|
10012
|
+
# @param [String] request_id
|
10013
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10014
|
+
# that if you must retry your request, the server will know to ignore the
|
10015
|
+
# request if it has already been completed.
|
10016
|
+
# For example, consider a situation where you make an initial request and the
|
10017
|
+
# request times out. If you make the request again with the same request ID, the
|
10018
|
+
# server can check if original operation with the same request ID was received,
|
10019
|
+
# and if so, will ignore the second request. This prevents clients from
|
10020
|
+
# accidentally creating duplicate commitments.
|
10021
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10022
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10023
|
+
# @param [String] fields
|
10024
|
+
# Selector specifying which fields to include in a partial response.
|
10025
|
+
# @param [String] quota_user
|
10026
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10027
|
+
# characters.
|
10028
|
+
# @param [String] user_ip
|
10029
|
+
# Deprecated. Please use quotaUser instead.
|
10030
|
+
# @param [Google::Apis::RequestOptions] options
|
10031
|
+
# Request-specific options
|
10032
|
+
#
|
10033
|
+
# @yield [result, err] Result & error if block supplied
|
10034
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10035
|
+
# @yieldparam err [StandardError] error object if request failed
|
10036
|
+
#
|
10037
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10038
|
+
#
|
10039
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10040
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10041
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10042
|
+
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)
|
10043
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
|
10044
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest::Representation
|
10045
|
+
command.request_object = instance_group_managers_resume_instances_request_object
|
10046
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10047
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10048
|
+
command.params['project'] = project unless project.nil?
|
10049
|
+
command.params['zone'] = zone unless zone.nil?
|
10050
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10051
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10052
|
+
command.query['fields'] = fields unless fields.nil?
|
10053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10054
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10055
|
+
execute_or_queue_command(command, &block)
|
10056
|
+
end
|
10057
|
+
|
9992
10058
|
# Motifies the autohealing policy for the instances in this managed instance
|
9993
10059
|
# group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch
|
9994
10060
|
# instead.
|
@@ -10161,6 +10227,222 @@ module Google
|
|
10161
10227
|
execute_or_queue_command(command, &block)
|
10162
10228
|
end
|
10163
10229
|
|
10230
|
+
# Flags the specified instances in the managed instance group to be started.
|
10231
|
+
# This method increases the targetSize and decreases the targetStoppedSize of
|
10232
|
+
# the managed instance group by the number of instances that you start. The
|
10233
|
+
# startInstances operation is marked DONE if the startInstances request is
|
10234
|
+
# successful. The underlying actions take additional time. You must separately
|
10235
|
+
# verify the status of the STARTING action with the listmanagedinstances method.
|
10236
|
+
# In this request, you can only specify instances that are stopped. For example,
|
10237
|
+
# if an instance was previously stopped using the stopInstances method, it can
|
10238
|
+
# be started using the startInstances method.
|
10239
|
+
# If a health check is attached to the managed instance group, the specified
|
10240
|
+
# instances will be verified as healthy after they are started.
|
10241
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10242
|
+
# @param [String] project
|
10243
|
+
# Project ID for this request.
|
10244
|
+
# @param [String] zone
|
10245
|
+
# The name of the zone where the managed instance group is located.
|
10246
|
+
# @param [String] instance_group_manager
|
10247
|
+
# The name of the managed instance group.
|
10248
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest] instance_group_managers_start_instances_request_object
|
10249
|
+
# @param [String] request_id
|
10250
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10251
|
+
# that if you must retry your request, the server will know to ignore the
|
10252
|
+
# request if it has already been completed.
|
10253
|
+
# For example, consider a situation where you make an initial request and the
|
10254
|
+
# request times out. If you make the request again with the same request ID, the
|
10255
|
+
# server can check if original operation with the same request ID was received,
|
10256
|
+
# and if so, will ignore the second request. This prevents clients from
|
10257
|
+
# accidentally creating duplicate commitments.
|
10258
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10259
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10260
|
+
# @param [String] fields
|
10261
|
+
# Selector specifying which fields to include in a partial response.
|
10262
|
+
# @param [String] quota_user
|
10263
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10264
|
+
# characters.
|
10265
|
+
# @param [String] user_ip
|
10266
|
+
# Deprecated. Please use quotaUser instead.
|
10267
|
+
# @param [Google::Apis::RequestOptions] options
|
10268
|
+
# Request-specific options
|
10269
|
+
#
|
10270
|
+
# @yield [result, err] Result & error if block supplied
|
10271
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10272
|
+
# @yieldparam err [StandardError] error object if request failed
|
10273
|
+
#
|
10274
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10275
|
+
#
|
10276
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10277
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10278
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10279
|
+
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)
|
10280
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
|
10281
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest::Representation
|
10282
|
+
command.request_object = instance_group_managers_start_instances_request_object
|
10283
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10284
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10285
|
+
command.params['project'] = project unless project.nil?
|
10286
|
+
command.params['zone'] = zone unless zone.nil?
|
10287
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10288
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10289
|
+
command.query['fields'] = fields unless fields.nil?
|
10290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10291
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10292
|
+
execute_or_queue_command(command, &block)
|
10293
|
+
end
|
10294
|
+
|
10295
|
+
# Flags the specified instances in the managed instance group to be immediately
|
10296
|
+
# stopped. You can only specify instances that are running in this request. This
|
10297
|
+
# method reduces the targetSize and increases the targetStoppedSize of the
|
10298
|
+
# managed instance group by the number of instances that you stop. The
|
10299
|
+
# stopInstances operation is marked DONE if the stopInstances request is
|
10300
|
+
# successful. The underlying actions take additional time. You must separately
|
10301
|
+
# verify the status of the STOPPING action with the listmanagedinstances method.
|
10302
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
10303
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
10304
|
+
# stopped, to give user programs time to perform necessary tasks. To initialize
|
10305
|
+
# an instance, the Instance Group Manager sets the metadata key google-compute-
|
10306
|
+
# initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
|
10307
|
+
# for the user program to signal it is ready. This is done by setting the guest
|
10308
|
+
# attribute path google-compute/initialization-state to value INITIALIZED. If
|
10309
|
+
# the instance does not signal successful initialization (does not set the guest
|
10310
|
+
# attribute to INITIALIZED) before timeout, the initialization is considered
|
10311
|
+
# failed and the instance is not stopped.
|
10312
|
+
# If the group is part of a backend service that has enabled connection draining,
|
10313
|
+
# it can take up to 60 seconds after the connection draining duration has
|
10314
|
+
# elapsed before the VM instance is suspended.
|
10315
|
+
# Stopped instances can be started using the startInstances method.
|
10316
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10317
|
+
# @param [String] project
|
10318
|
+
# Project ID for this request.
|
10319
|
+
# @param [String] zone
|
10320
|
+
# The name of the zone where the managed instance group is located.
|
10321
|
+
# @param [String] instance_group_manager
|
10322
|
+
# The name of the managed instance group.
|
10323
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest] instance_group_managers_stop_instances_request_object
|
10324
|
+
# @param [String] request_id
|
10325
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10326
|
+
# that if you must retry your request, the server will know to ignore the
|
10327
|
+
# request if it has already been completed.
|
10328
|
+
# For example, consider a situation where you make an initial request and the
|
10329
|
+
# request times out. If you make the request again with the same request ID, the
|
10330
|
+
# server can check if original operation with the same request ID was received,
|
10331
|
+
# and if so, will ignore the second request. This prevents clients from
|
10332
|
+
# accidentally creating duplicate commitments.
|
10333
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10334
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10335
|
+
# @param [String] fields
|
10336
|
+
# Selector specifying which fields to include in a partial response.
|
10337
|
+
# @param [String] quota_user
|
10338
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10339
|
+
# characters.
|
10340
|
+
# @param [String] user_ip
|
10341
|
+
# Deprecated. Please use quotaUser instead.
|
10342
|
+
# @param [Google::Apis::RequestOptions] options
|
10343
|
+
# Request-specific options
|
10344
|
+
#
|
10345
|
+
# @yield [result, err] Result & error if block supplied
|
10346
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10347
|
+
# @yieldparam err [StandardError] error object if request failed
|
10348
|
+
#
|
10349
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10350
|
+
#
|
10351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10354
|
+
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)
|
10355
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
|
10356
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest::Representation
|
10357
|
+
command.request_object = instance_group_managers_stop_instances_request_object
|
10358
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10359
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10360
|
+
command.params['project'] = project unless project.nil?
|
10361
|
+
command.params['zone'] = zone unless zone.nil?
|
10362
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10363
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10364
|
+
command.query['fields'] = fields unless fields.nil?
|
10365
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10366
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10367
|
+
execute_or_queue_command(command, &block)
|
10368
|
+
end
|
10369
|
+
|
10370
|
+
# Flags the specified instances in the managed instance group to be immediately
|
10371
|
+
# suspended. You can only specify instances that are running in this request.
|
10372
|
+
# This method reduces the targetSize and increases the targetSuspendedSize of
|
10373
|
+
# the managed instance group by the number of instances that you suspend. The
|
10374
|
+
# suspendInstances operation is marked DONE if the suspendInstances request is
|
10375
|
+
# successful. The underlying actions take additional time. You must separately
|
10376
|
+
# verify the status of the SUSPENDING action with the listmanagedinstances
|
10377
|
+
# method.
|
10378
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
10379
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
10380
|
+
# suspended, to give user programs time to perform necessary tasks. To
|
10381
|
+
# initialize an instance, the Instance Group Manager sets the metadata key
|
10382
|
+
# google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
|
10383
|
+
# instance, and waits for the user program to signal it is ready. This is done
|
10384
|
+
# by setting the guest attribute path google-compute/initialization-state to
|
10385
|
+
# value INITIALIZED. If the instance does not signal successful initialization (
|
10386
|
+
# does not set the guest attribute to INITIALIZED) before timeout, the
|
10387
|
+
# initialization is considered failed and the instance is not suspended.
|
10388
|
+
# If the group is part of a backend service that has enabled connection draining,
|
10389
|
+
# it can take up to 60 seconds after the connection draining duration has
|
10390
|
+
# elapsed before the VM instance is suspended.
|
10391
|
+
# Suspended instances can be resumed using the resumeInstances method.
|
10392
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10393
|
+
# @param [String] project
|
10394
|
+
# Project ID for this request.
|
10395
|
+
# @param [String] zone
|
10396
|
+
# The name of the zone where the managed instance group is located.
|
10397
|
+
# @param [String] instance_group_manager
|
10398
|
+
# The name of the managed instance group.
|
10399
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest] instance_group_managers_suspend_instances_request_object
|
10400
|
+
# @param [String] request_id
|
10401
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10402
|
+
# that if you must retry your request, the server will know to ignore the
|
10403
|
+
# request if it has already been completed.
|
10404
|
+
# For example, consider a situation where you make an initial request and the
|
10405
|
+
# request times out. If you make the request again with the same request ID, the
|
10406
|
+
# server can check if original operation with the same request ID was received,
|
10407
|
+
# and if so, will ignore the second request. This prevents clients from
|
10408
|
+
# accidentally creating duplicate commitments.
|
10409
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10410
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10411
|
+
# @param [String] fields
|
10412
|
+
# Selector specifying which fields to include in a partial response.
|
10413
|
+
# @param [String] quota_user
|
10414
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10415
|
+
# characters.
|
10416
|
+
# @param [String] user_ip
|
10417
|
+
# Deprecated. Please use quotaUser instead.
|
10418
|
+
# @param [Google::Apis::RequestOptions] options
|
10419
|
+
# Request-specific options
|
10420
|
+
#
|
10421
|
+
# @yield [result, err] Result & error if block supplied
|
10422
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10423
|
+
# @yieldparam err [StandardError] error object if request failed
|
10424
|
+
#
|
10425
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10426
|
+
#
|
10427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10430
|
+
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)
|
10431
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
|
10432
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest::Representation
|
10433
|
+
command.request_object = instance_group_managers_suspend_instances_request_object
|
10434
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10435
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10436
|
+
command.params['project'] = project unless project.nil?
|
10437
|
+
command.params['zone'] = zone unless zone.nil?
|
10438
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10439
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10440
|
+
command.query['fields'] = fields unless fields.nil?
|
10441
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10442
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10443
|
+
execute_or_queue_command(command, &block)
|
10444
|
+
end
|
10445
|
+
|
10164
10446
|
# Returns permissions that a caller has on the specified resource.
|
10165
10447
|
# @param [String] project
|
10166
10448
|
# Project ID for this request.
|
@@ -11568,8 +11850,8 @@ module Google
|
|
11568
11850
|
execute_or_queue_command(command, &block)
|
11569
11851
|
end
|
11570
11852
|
|
11571
|
-
# Deletes the specified Instance resource. For more information, see
|
11572
|
-
#
|
11853
|
+
# Deletes the specified Instance resource. For more information, see Deleting an
|
11854
|
+
# instance.
|
11573
11855
|
# @param [String] project
|
11574
11856
|
# Project ID for this request.
|
11575
11857
|
# @param [String] zone
|
@@ -12468,6 +12750,44 @@ module Google
|
|
12468
12750
|
execute_or_queue_command(command, &block)
|
12469
12751
|
end
|
12470
12752
|
|
12753
|
+
# TODO(b/180520210): Add IAM permission for this API. Sends diagnostic interrupt
|
12754
|
+
# to the instance.
|
12755
|
+
# @param [String] project
|
12756
|
+
# Project ID for this request.
|
12757
|
+
# @param [String] zone
|
12758
|
+
# The name of the zone for this request.
|
12759
|
+
# @param [String] instance
|
12760
|
+
# Name of the instance scoping this request.
|
12761
|
+
# @param [String] fields
|
12762
|
+
# Selector specifying which fields to include in a partial response.
|
12763
|
+
# @param [String] quota_user
|
12764
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
12765
|
+
# characters.
|
12766
|
+
# @param [String] user_ip
|
12767
|
+
# Deprecated. Please use quotaUser instead.
|
12768
|
+
# @param [Google::Apis::RequestOptions] options
|
12769
|
+
# Request-specific options
|
12770
|
+
#
|
12771
|
+
# @yield [result, err] Result & error if block supplied
|
12772
|
+
# @yieldparam result [NilClass] No result returned for this method
|
12773
|
+
# @yieldparam err [StandardError] error object if request failed
|
12774
|
+
#
|
12775
|
+
# @return [void]
|
12776
|
+
#
|
12777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12780
|
+
def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12781
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
|
12782
|
+
command.params['project'] = project unless project.nil?
|
12783
|
+
command.params['zone'] = zone unless zone.nil?
|
12784
|
+
command.params['instance'] = instance unless instance.nil?
|
12785
|
+
command.query['fields'] = fields unless fields.nil?
|
12786
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12787
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12788
|
+
execute_or_queue_command(command, &block)
|
12789
|
+
end
|
12790
|
+
|
12471
12791
|
# Sets deletion protection on the instance.
|
12472
12792
|
# @param [String] project
|
12473
12793
|
# Project ID for this request.
|
@@ -16700,6 +17020,17 @@ module Google
|
|
16700
17020
|
# @param [String] firewall_policy
|
16701
17021
|
# Name of the firewall policy to update.
|
16702
17022
|
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
17023
|
+
# @param [String] request_id
|
17024
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17025
|
+
# that if you must retry your request, the server will know to ignore the
|
17026
|
+
# request if it has already been completed.
|
17027
|
+
# For example, consider a situation where you make an initial request and the
|
17028
|
+
# request times out. If you make the request again with the same request ID, the
|
17029
|
+
# server can check if original operation with the same request ID was received,
|
17030
|
+
# and if so, will ignore the second request. This prevents clients from
|
17031
|
+
# accidentally creating duplicate commitments.
|
17032
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17033
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
16703
17034
|
# @param [String] fields
|
16704
17035
|
# Selector specifying which fields to include in a partial response.
|
16705
17036
|
# @param [String] quota_user
|
@@ -16719,7 +17050,7 @@ module Google
|
|
16719
17050
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16720
17051
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16721
17052
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16722
|
-
def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17053
|
+
def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16723
17054
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
|
16724
17055
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
16725
17056
|
command.request_object = firewall_policy_rule_object
|
@@ -16727,6 +17058,7 @@ module Google
|
|
16727
17058
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
16728
17059
|
command.params['project'] = project unless project.nil?
|
16729
17060
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17061
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16730
17062
|
command.query['fields'] = fields unless fields.nil?
|
16731
17063
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16732
17064
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -17169,6 +17501,17 @@ module Google
|
|
17169
17501
|
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
17170
17502
|
# @param [Fixnum] priority
|
17171
17503
|
# The priority of the rule to patch.
|
17504
|
+
# @param [String] request_id
|
17505
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17506
|
+
# that if you must retry your request, the server will know to ignore the
|
17507
|
+
# request if it has already been completed.
|
17508
|
+
# For example, consider a situation where you make an initial request and the
|
17509
|
+
# request times out. If you make the request again with the same request ID, the
|
17510
|
+
# server can check if original operation with the same request ID was received,
|
17511
|
+
# and if so, will ignore the second request. This prevents clients from
|
17512
|
+
# accidentally creating duplicate commitments.
|
17513
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17514
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17172
17515
|
# @param [String] fields
|
17173
17516
|
# Selector specifying which fields to include in a partial response.
|
17174
17517
|
# @param [String] quota_user
|
@@ -17188,7 +17531,7 @@ module Google
|
|
17188
17531
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17189
17532
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17190
17533
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17191
|
-
def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17534
|
+
def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17192
17535
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options)
|
17193
17536
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
17194
17537
|
command.request_object = firewall_policy_rule_object
|
@@ -17197,6 +17540,7 @@ module Google
|
|
17197
17540
|
command.params['project'] = project unless project.nil?
|
17198
17541
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17199
17542
|
command.query['priority'] = priority unless priority.nil?
|
17543
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17200
17544
|
command.query['fields'] = fields unless fields.nil?
|
17201
17545
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17202
17546
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -17261,6 +17605,17 @@ module Google
|
|
17261
17605
|
# Name of the firewall policy to update.
|
17262
17606
|
# @param [Fixnum] priority
|
17263
17607
|
# The priority of the rule to remove from the firewall policy.
|
17608
|
+
# @param [String] request_id
|
17609
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17610
|
+
# that if you must retry your request, the server will know to ignore the
|
17611
|
+
# request if it has already been completed.
|
17612
|
+
# For example, consider a situation where you make an initial request and the
|
17613
|
+
# request times out. If you make the request again with the same request ID, the
|
17614
|
+
# server can check if original operation with the same request ID was received,
|
17615
|
+
# and if so, will ignore the second request. This prevents clients from
|
17616
|
+
# accidentally creating duplicate commitments.
|
17617
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17618
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17264
17619
|
# @param [String] fields
|
17265
17620
|
# Selector specifying which fields to include in a partial response.
|
17266
17621
|
# @param [String] quota_user
|
@@ -17280,13 +17635,14 @@ module Google
|
|
17280
17635
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17281
17636
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17282
17637
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17283
|
-
def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17638
|
+
def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17284
17639
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options)
|
17285
17640
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17286
17641
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17287
17642
|
command.params['project'] = project unless project.nil?
|
17288
17643
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17289
17644
|
command.query['priority'] = priority unless priority.nil?
|
17645
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17290
17646
|
command.query['fields'] = fields unless fields.nil?
|
17291
17647
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17292
17648
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -25908,12 +26264,12 @@ module Google
|
|
25908
26264
|
execute_or_queue_command(command, &block)
|
25909
26265
|
end
|
25910
26266
|
|
25911
|
-
# Flags the specified instances in the managed instance group to be
|
25912
|
-
# recreated.
|
25913
|
-
#
|
25914
|
-
# the
|
25915
|
-
#
|
25916
|
-
#
|
26267
|
+
# Flags the specified VM instances in the managed instance group to be
|
26268
|
+
# immediately recreated. Each instance is recreated using the group's current
|
26269
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
26270
|
+
# the instances have not yet been recreated. You must separately verify the
|
26271
|
+
# status of each instance by checking its currentAction field; for more
|
26272
|
+
# information, see Checking the status of managed instances.
|
25917
26273
|
# If the group is part of a backend service that has enabled connection draining,
|
25918
26274
|
# it can take up to 60 seconds after the connection draining duration has
|
25919
26275
|
# elapsed before the VM instance is removed or deleted.
|
@@ -26101,6 +26457,71 @@ module Google
|
|
26101
26457
|
execute_or_queue_command(command, &block)
|
26102
26458
|
end
|
26103
26459
|
|
26460
|
+
# Flags the specified instances in the managed instance group to be resumed.
|
26461
|
+
# This method increases the targetSize and decreases the targetSuspendedSize of
|
26462
|
+
# the managed instance group by the number of instances that you resume. The
|
26463
|
+
# resumeInstances operation is marked DONE if the resumeInstances request is
|
26464
|
+
# successful. The underlying actions take additional time. You must separately
|
26465
|
+
# verify the status of the RESUMING action with the listmanagedinstances method.
|
26466
|
+
# In this request, you can only specify instances that are suspended. For
|
26467
|
+
# example, if an instance was previously suspended using the suspendInstances
|
26468
|
+
# method, it can be resumed using the resumeInstances method.
|
26469
|
+
# If a health check is attached to the managed instance group, the specified
|
26470
|
+
# instances will be verified as healthy after they are resumed.
|
26471
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26472
|
+
# @param [String] project
|
26473
|
+
# Project ID for this request.
|
26474
|
+
# @param [String] region
|
26475
|
+
# Name of the region scoping this request.
|
26476
|
+
# @param [String] instance_group_manager
|
26477
|
+
# Name of the managed instance group.
|
26478
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
|
26479
|
+
# @param [String] request_id
|
26480
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26481
|
+
# that if you must retry your request, the server will know to ignore the
|
26482
|
+
# request if it has already been completed.
|
26483
|
+
# For example, consider a situation where you make an initial request and the
|
26484
|
+
# request times out. If you make the request again with the same request ID, the
|
26485
|
+
# server can check if original operation with the same request ID was received,
|
26486
|
+
# and if so, will ignore the second request. This prevents clients from
|
26487
|
+
# accidentally creating duplicate commitments.
|
26488
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26489
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26490
|
+
# @param [String] fields
|
26491
|
+
# Selector specifying which fields to include in a partial response.
|
26492
|
+
# @param [String] quota_user
|
26493
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26494
|
+
# characters.
|
26495
|
+
# @param [String] user_ip
|
26496
|
+
# Deprecated. Please use quotaUser instead.
|
26497
|
+
# @param [Google::Apis::RequestOptions] options
|
26498
|
+
# Request-specific options
|
26499
|
+
#
|
26500
|
+
# @yield [result, err] Result & error if block supplied
|
26501
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26502
|
+
# @yieldparam err [StandardError] error object if request failed
|
26503
|
+
#
|
26504
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26505
|
+
#
|
26506
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26507
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26508
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26509
|
+
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)
|
26510
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
|
26511
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest::Representation
|
26512
|
+
command.request_object = region_instance_group_managers_resume_instances_request_object
|
26513
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26514
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26515
|
+
command.params['project'] = project unless project.nil?
|
26516
|
+
command.params['region'] = region unless region.nil?
|
26517
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26518
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26519
|
+
command.query['fields'] = fields unless fields.nil?
|
26520
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26521
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26522
|
+
execute_or_queue_command(command, &block)
|
26523
|
+
end
|
26524
|
+
|
26104
26525
|
# Modifies the autohealing policy for the instances in this managed instance
|
26105
26526
|
# group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
|
26106
26527
|
# patch instead.
|
@@ -26267,6 +26688,222 @@ module Google
|
|
26267
26688
|
execute_or_queue_command(command, &block)
|
26268
26689
|
end
|
26269
26690
|
|
26691
|
+
# Flags the specified instances in the managed instance group to be started.
|
26692
|
+
# This method increases the targetSize and decreases the targetStoppedSize of
|
26693
|
+
# the managed instance group by the number of instances that you start. The
|
26694
|
+
# startInstances operation is marked DONE if the startInstances request is
|
26695
|
+
# successful. The underlying actions take additional time. You must separately
|
26696
|
+
# verify the status of the STARTING action with the listmanagedinstances method.
|
26697
|
+
# In this request, you can only specify instances that are stopped. For example,
|
26698
|
+
# if an instance was previously stopped using the stopInstances method, it can
|
26699
|
+
# be started using the startInstances method.
|
26700
|
+
# If a health check is attached to the managed instance group, the specified
|
26701
|
+
# instances will be verified as healthy after they are started.
|
26702
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26703
|
+
# @param [String] project
|
26704
|
+
# Project ID for this request.
|
26705
|
+
# @param [String] region
|
26706
|
+
# Name of the region scoping this request.
|
26707
|
+
# @param [String] instance_group_manager
|
26708
|
+
# Name of the managed instance group.
|
26709
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
|
26710
|
+
# @param [String] request_id
|
26711
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26712
|
+
# that if you must retry your request, the server will know to ignore the
|
26713
|
+
# request if it has already been completed.
|
26714
|
+
# For example, consider a situation where you make an initial request and the
|
26715
|
+
# request times out. If you make the request again with the same request ID, the
|
26716
|
+
# server can check if original operation with the same request ID was received,
|
26717
|
+
# and if so, will ignore the second request. This prevents clients from
|
26718
|
+
# accidentally creating duplicate commitments.
|
26719
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26720
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26721
|
+
# @param [String] fields
|
26722
|
+
# Selector specifying which fields to include in a partial response.
|
26723
|
+
# @param [String] quota_user
|
26724
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26725
|
+
# characters.
|
26726
|
+
# @param [String] user_ip
|
26727
|
+
# Deprecated. Please use quotaUser instead.
|
26728
|
+
# @param [Google::Apis::RequestOptions] options
|
26729
|
+
# Request-specific options
|
26730
|
+
#
|
26731
|
+
# @yield [result, err] Result & error if block supplied
|
26732
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26733
|
+
# @yieldparam err [StandardError] error object if request failed
|
26734
|
+
#
|
26735
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26736
|
+
#
|
26737
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26738
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26739
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26740
|
+
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)
|
26741
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
|
26742
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest::Representation
|
26743
|
+
command.request_object = region_instance_group_managers_start_instances_request_object
|
26744
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26745
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26746
|
+
command.params['project'] = project unless project.nil?
|
26747
|
+
command.params['region'] = region unless region.nil?
|
26748
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26749
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26750
|
+
command.query['fields'] = fields unless fields.nil?
|
26751
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26752
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26753
|
+
execute_or_queue_command(command, &block)
|
26754
|
+
end
|
26755
|
+
|
26756
|
+
# Flags the specified instances in the managed instance group to be immediately
|
26757
|
+
# stopped. You can only specify instances that are running in this request. This
|
26758
|
+
# method reduces the targetSize and increases the targetStoppedSize of the
|
26759
|
+
# managed instance group by the number of instances that you stop. The
|
26760
|
+
# stopInstances operation is marked DONE if the stopInstances request is
|
26761
|
+
# successful. The underlying actions take additional time. You must separately
|
26762
|
+
# verify the status of the STOPPING action with the listmanagedinstances method.
|
26763
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
26764
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
26765
|
+
# stopped, to give user programs time to perform necessary tasks. To initialize
|
26766
|
+
# an instance, the Instance Group Manager sets the metadata key google-compute-
|
26767
|
+
# initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
|
26768
|
+
# for the user program to signal it is ready. This is done by setting the guest
|
26769
|
+
# attribute path google-compute/initialization-state to value INITIALIZED. If
|
26770
|
+
# the instance does not signal successful initialization (does not set the guest
|
26771
|
+
# attribute to INITIALIZED) before timeout, the initialization is considered
|
26772
|
+
# failed and the instance is not stopped.
|
26773
|
+
# If the group is part of a backend service that has enabled connection draining,
|
26774
|
+
# it can take up to 60 seconds after the connection draining duration has
|
26775
|
+
# elapsed before the VM instance is suspended.
|
26776
|
+
# Stopped instances can be started using the startInstances method.
|
26777
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26778
|
+
# @param [String] project
|
26779
|
+
# Project ID for this request.
|
26780
|
+
# @param [String] region
|
26781
|
+
# Name of the region scoping this request.
|
26782
|
+
# @param [String] instance_group_manager
|
26783
|
+
# The name of the managed instance group.
|
26784
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
|
26785
|
+
# @param [String] request_id
|
26786
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26787
|
+
# that if you must retry your request, the server will know to ignore the
|
26788
|
+
# request if it has already been completed.
|
26789
|
+
# For example, consider a situation where you make an initial request and the
|
26790
|
+
# request times out. If you make the request again with the same request ID, the
|
26791
|
+
# server can check if original operation with the same request ID was received,
|
26792
|
+
# and if so, will ignore the second request. This prevents clients from
|
26793
|
+
# accidentally creating duplicate commitments.
|
26794
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26795
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26796
|
+
# @param [String] fields
|
26797
|
+
# Selector specifying which fields to include in a partial response.
|
26798
|
+
# @param [String] quota_user
|
26799
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26800
|
+
# characters.
|
26801
|
+
# @param [String] user_ip
|
26802
|
+
# Deprecated. Please use quotaUser instead.
|
26803
|
+
# @param [Google::Apis::RequestOptions] options
|
26804
|
+
# Request-specific options
|
26805
|
+
#
|
26806
|
+
# @yield [result, err] Result & error if block supplied
|
26807
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26808
|
+
# @yieldparam err [StandardError] error object if request failed
|
26809
|
+
#
|
26810
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26811
|
+
#
|
26812
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26813
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26814
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26815
|
+
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)
|
26816
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
|
26817
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest::Representation
|
26818
|
+
command.request_object = region_instance_group_managers_stop_instances_request_object
|
26819
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26820
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26821
|
+
command.params['project'] = project unless project.nil?
|
26822
|
+
command.params['region'] = region unless region.nil?
|
26823
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26824
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26825
|
+
command.query['fields'] = fields unless fields.nil?
|
26826
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26827
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26828
|
+
execute_or_queue_command(command, &block)
|
26829
|
+
end
|
26830
|
+
|
26831
|
+
# Flags the specified instances in the managed instance group to be immediately
|
26832
|
+
# suspended. You can only specify instances that are running in this request.
|
26833
|
+
# This method reduces the targetSize and increases the targetSuspendedSize of
|
26834
|
+
# the managed instance group by the number of instances that you suspend. The
|
26835
|
+
# suspendInstances operation is marked DONE if the suspendInstances request is
|
26836
|
+
# successful. The underlying actions take additional time. You must separately
|
26837
|
+
# verify the status of the SUSPENDING action with the listmanagedinstances
|
26838
|
+
# method.
|
26839
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
26840
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
26841
|
+
# suspended, to give user programs time to perform necessary tasks. To
|
26842
|
+
# initialize an instance, the Instance Group Manager sets the metadata key
|
26843
|
+
# google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
|
26844
|
+
# instance, and waits for the user program to signal it is ready. This is done
|
26845
|
+
# by setting the guest attribute path google-compute/initialization-state to
|
26846
|
+
# value INITIALIZED. If the instance does not signal successful initialization (
|
26847
|
+
# does not set the guest attribute to INITIALIZED) before timeout, the
|
26848
|
+
# initialization is considered failed and the instance is not suspended.
|
26849
|
+
# If the group is part of a backend service that has enabled connection draining,
|
26850
|
+
# it can take up to 60 seconds after the connection draining duration has
|
26851
|
+
# elapsed before the VM instance is suspended.
|
26852
|
+
# Suspended instances can be resumed using the resumeInstances method.
|
26853
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26854
|
+
# @param [String] project
|
26855
|
+
# Project ID for this request.
|
26856
|
+
# @param [String] region
|
26857
|
+
# Name of the region scoping this request.
|
26858
|
+
# @param [String] instance_group_manager
|
26859
|
+
# Name of the managed instance group.
|
26860
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
|
26861
|
+
# @param [String] request_id
|
26862
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26863
|
+
# that if you must retry your request, the server will know to ignore the
|
26864
|
+
# request if it has already been completed.
|
26865
|
+
# For example, consider a situation where you make an initial request and the
|
26866
|
+
# request times out. If you make the request again with the same request ID, the
|
26867
|
+
# server can check if original operation with the same request ID was received,
|
26868
|
+
# and if so, will ignore the second request. This prevents clients from
|
26869
|
+
# accidentally creating duplicate commitments.
|
26870
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26871
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26872
|
+
# @param [String] fields
|
26873
|
+
# Selector specifying which fields to include in a partial response.
|
26874
|
+
# @param [String] quota_user
|
26875
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26876
|
+
# characters.
|
26877
|
+
# @param [String] user_ip
|
26878
|
+
# Deprecated. Please use quotaUser instead.
|
26879
|
+
# @param [Google::Apis::RequestOptions] options
|
26880
|
+
# Request-specific options
|
26881
|
+
#
|
26882
|
+
# @yield [result, err] Result & error if block supplied
|
26883
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26884
|
+
# @yieldparam err [StandardError] error object if request failed
|
26885
|
+
#
|
26886
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26887
|
+
#
|
26888
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26889
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26890
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26891
|
+
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)
|
26892
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
|
26893
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
|
26894
|
+
command.request_object = region_instance_group_managers_suspend_instances_request_object
|
26895
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26896
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26897
|
+
command.params['project'] = project unless project.nil?
|
26898
|
+
command.params['region'] = region unless region.nil?
|
26899
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26900
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26901
|
+
command.query['fields'] = fields unless fields.nil?
|
26902
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26903
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26904
|
+
execute_or_queue_command(command, &block)
|
26905
|
+
end
|
26906
|
+
|
26270
26907
|
# Returns permissions that a caller has on the specified resource.
|
26271
26908
|
# @param [String] project
|
26272
26909
|
# Project ID for this request.
|
@@ -27467,6 +28104,824 @@ module Google
|
|
27467
28104
|
execute_or_queue_command(command, &block)
|
27468
28105
|
end
|
27469
28106
|
|
28107
|
+
# Inserts an association for the specified network firewall policy.
|
28108
|
+
# @param [String] project
|
28109
|
+
# Project ID for this request.
|
28110
|
+
# @param [String] region
|
28111
|
+
# Name of the region scoping this request.
|
28112
|
+
# @param [String] firewall_policy
|
28113
|
+
# Name of the firewall policy to update.
|
28114
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
|
28115
|
+
# @param [Boolean] replace_existing_association
|
28116
|
+
# Indicates whether or not to replace it if an association already exists. This
|
28117
|
+
# is false by default, in which case an error will be returned if an association
|
28118
|
+
# already exists.
|
28119
|
+
# @param [String] request_id
|
28120
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28121
|
+
# that if you must retry your request, the server will know to ignore the
|
28122
|
+
# request if it has already been completed.
|
28123
|
+
# For example, consider a situation where you make an initial request and the
|
28124
|
+
# request times out. If you make the request again with the same request ID, the
|
28125
|
+
# server can check if original operation with the same request ID was received,
|
28126
|
+
# and if so, will ignore the second request. This prevents clients from
|
28127
|
+
# accidentally creating duplicate commitments.
|
28128
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28129
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28130
|
+
# @param [String] fields
|
28131
|
+
# Selector specifying which fields to include in a partial response.
|
28132
|
+
# @param [String] quota_user
|
28133
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28134
|
+
# characters.
|
28135
|
+
# @param [String] user_ip
|
28136
|
+
# Deprecated. Please use quotaUser instead.
|
28137
|
+
# @param [Google::Apis::RequestOptions] options
|
28138
|
+
# Request-specific options
|
28139
|
+
#
|
28140
|
+
# @yield [result, err] Result & error if block supplied
|
28141
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28142
|
+
# @yieldparam err [StandardError] error object if request failed
|
28143
|
+
#
|
28144
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28145
|
+
#
|
28146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28149
|
+
def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28150
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
|
28151
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
28152
|
+
command.request_object = firewall_policy_association_object
|
28153
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28154
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28155
|
+
command.params['project'] = project unless project.nil?
|
28156
|
+
command.params['region'] = region unless region.nil?
|
28157
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28158
|
+
command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
|
28159
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28160
|
+
command.query['fields'] = fields unless fields.nil?
|
28161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28162
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28163
|
+
execute_or_queue_command(command, &block)
|
28164
|
+
end
|
28165
|
+
|
28166
|
+
# Inserts a rule into a network firewall policy.
|
28167
|
+
# @param [String] project
|
28168
|
+
# Project ID for this request.
|
28169
|
+
# @param [String] region
|
28170
|
+
# Name of the region scoping this request.
|
28171
|
+
# @param [String] firewall_policy
|
28172
|
+
# Name of the firewall policy to update.
|
28173
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
28174
|
+
# @param [String] request_id
|
28175
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28176
|
+
# that if you must retry your request, the server will know to ignore the
|
28177
|
+
# request if it has already been completed.
|
28178
|
+
# For example, consider a situation where you make an initial request and the
|
28179
|
+
# request times out. If you make the request again with the same request ID, the
|
28180
|
+
# server can check if original operation with the same request ID was received,
|
28181
|
+
# and if so, will ignore the second request. This prevents clients from
|
28182
|
+
# accidentally creating duplicate commitments.
|
28183
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28184
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28185
|
+
# @param [String] fields
|
28186
|
+
# Selector specifying which fields to include in a partial response.
|
28187
|
+
# @param [String] quota_user
|
28188
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28189
|
+
# characters.
|
28190
|
+
# @param [String] user_ip
|
28191
|
+
# Deprecated. Please use quotaUser instead.
|
28192
|
+
# @param [Google::Apis::RequestOptions] options
|
28193
|
+
# Request-specific options
|
28194
|
+
#
|
28195
|
+
# @yield [result, err] Result & error if block supplied
|
28196
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28197
|
+
# @yieldparam err [StandardError] error object if request failed
|
28198
|
+
#
|
28199
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28200
|
+
#
|
28201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28204
|
+
def add_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28205
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
|
28206
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28207
|
+
command.request_object = firewall_policy_rule_object
|
28208
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28209
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28210
|
+
command.params['project'] = project unless project.nil?
|
28211
|
+
command.params['region'] = region unless region.nil?
|
28212
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28213
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28214
|
+
command.query['fields'] = fields unless fields.nil?
|
28215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28216
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28217
|
+
execute_or_queue_command(command, &block)
|
28218
|
+
end
|
28219
|
+
|
28220
|
+
# Copies rules to the specified network firewall policy.
|
28221
|
+
# @param [String] project
|
28222
|
+
# Project ID for this request.
|
28223
|
+
# @param [String] region
|
28224
|
+
# Name of the region scoping this request.
|
28225
|
+
# @param [String] firewall_policy
|
28226
|
+
# Name of the firewall policy to update.
|
28227
|
+
# @param [String] request_id
|
28228
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28229
|
+
# that if you must retry your request, the server will know to ignore the
|
28230
|
+
# request if it has already been completed.
|
28231
|
+
# For example, consider a situation where you make an initial request and the
|
28232
|
+
# request times out. If you make the request again with the same request ID, the
|
28233
|
+
# server can check if original operation with the same request ID was received,
|
28234
|
+
# and if so, will ignore the second request. This prevents clients from
|
28235
|
+
# accidentally creating duplicate commitments.
|
28236
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28237
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28238
|
+
# @param [String] source_firewall_policy
|
28239
|
+
# The firewall policy from which to copy rules.
|
28240
|
+
# @param [String] fields
|
28241
|
+
# Selector specifying which fields to include in a partial response.
|
28242
|
+
# @param [String] quota_user
|
28243
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28244
|
+
# characters.
|
28245
|
+
# @param [String] user_ip
|
28246
|
+
# Deprecated. Please use quotaUser instead.
|
28247
|
+
# @param [Google::Apis::RequestOptions] options
|
28248
|
+
# Request-specific options
|
28249
|
+
#
|
28250
|
+
# @yield [result, err] Result & error if block supplied
|
28251
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28252
|
+
# @yieldparam err [StandardError] error object if request failed
|
28253
|
+
#
|
28254
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28255
|
+
#
|
28256
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28257
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28258
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28259
|
+
def clone_region_network_firewall_policy_rules(project, region, firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28260
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules', options)
|
28261
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28262
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28263
|
+
command.params['project'] = project unless project.nil?
|
28264
|
+
command.params['region'] = region unless region.nil?
|
28265
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28266
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28267
|
+
command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
|
28268
|
+
command.query['fields'] = fields unless fields.nil?
|
28269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28270
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28271
|
+
execute_or_queue_command(command, &block)
|
28272
|
+
end
|
28273
|
+
|
28274
|
+
# Deletes the specified network firewall policy.
|
28275
|
+
# @param [String] project
|
28276
|
+
# Project ID for this request.
|
28277
|
+
# @param [String] region
|
28278
|
+
# Name of the region scoping this request.
|
28279
|
+
# @param [String] firewall_policy
|
28280
|
+
# Name of the firewall policy to delete.
|
28281
|
+
# @param [String] request_id
|
28282
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28283
|
+
# that if you must retry your request, the server will know to ignore the
|
28284
|
+
# request if it has already been completed.
|
28285
|
+
# For example, consider a situation where you make an initial request and the
|
28286
|
+
# request times out. If you make the request again with the same request ID, the
|
28287
|
+
# server can check if original operation with the same request ID was received,
|
28288
|
+
# and if so, will ignore the second request. This prevents clients from
|
28289
|
+
# accidentally creating duplicate commitments.
|
28290
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28291
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28292
|
+
# @param [String] fields
|
28293
|
+
# Selector specifying which fields to include in a partial response.
|
28294
|
+
# @param [String] quota_user
|
28295
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28296
|
+
# characters.
|
28297
|
+
# @param [String] user_ip
|
28298
|
+
# Deprecated. Please use quotaUser instead.
|
28299
|
+
# @param [Google::Apis::RequestOptions] options
|
28300
|
+
# Request-specific options
|
28301
|
+
#
|
28302
|
+
# @yield [result, err] Result & error if block supplied
|
28303
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28304
|
+
# @yieldparam err [StandardError] error object if request failed
|
28305
|
+
#
|
28306
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28307
|
+
#
|
28308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28311
|
+
def delete_region_network_firewall_policy(project, region, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28312
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
28313
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28314
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28315
|
+
command.params['project'] = project unless project.nil?
|
28316
|
+
command.params['region'] = region unless region.nil?
|
28317
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28318
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28319
|
+
command.query['fields'] = fields unless fields.nil?
|
28320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28321
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28322
|
+
execute_or_queue_command(command, &block)
|
28323
|
+
end
|
28324
|
+
|
28325
|
+
# Returns the specified network firewall policy.
|
28326
|
+
# @param [String] project
|
28327
|
+
# Project ID for this request.
|
28328
|
+
# @param [String] region
|
28329
|
+
# Name of the region scoping this request.
|
28330
|
+
# @param [String] firewall_policy
|
28331
|
+
# Name of the firewall policy to get.
|
28332
|
+
# @param [String] fields
|
28333
|
+
# Selector specifying which fields to include in a partial response.
|
28334
|
+
# @param [String] quota_user
|
28335
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28336
|
+
# characters.
|
28337
|
+
# @param [String] user_ip
|
28338
|
+
# Deprecated. Please use quotaUser instead.
|
28339
|
+
# @param [Google::Apis::RequestOptions] options
|
28340
|
+
# Request-specific options
|
28341
|
+
#
|
28342
|
+
# @yield [result, err] Result & error if block supplied
|
28343
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
|
28344
|
+
# @yieldparam err [StandardError] error object if request failed
|
28345
|
+
#
|
28346
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicy]
|
28347
|
+
#
|
28348
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28349
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28350
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28351
|
+
def get_region_network_firewall_policy(project, region, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28352
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
28353
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
28354
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
|
28355
|
+
command.params['project'] = project unless project.nil?
|
28356
|
+
command.params['region'] = region unless region.nil?
|
28357
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28358
|
+
command.query['fields'] = fields unless fields.nil?
|
28359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28360
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28361
|
+
execute_or_queue_command(command, &block)
|
28362
|
+
end
|
28363
|
+
|
28364
|
+
# Gets an association with the specified name.
|
28365
|
+
# @param [String] project
|
28366
|
+
# Project ID for this request.
|
28367
|
+
# @param [String] region
|
28368
|
+
# Name of the region scoping this request.
|
28369
|
+
# @param [String] firewall_policy
|
28370
|
+
# Name of the firewall policy to which the queried association belongs.
|
28371
|
+
# @param [String] name
|
28372
|
+
# The name of the association to get from the firewall policy.
|
28373
|
+
# @param [String] fields
|
28374
|
+
# Selector specifying which fields to include in a partial response.
|
28375
|
+
# @param [String] quota_user
|
28376
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28377
|
+
# characters.
|
28378
|
+
# @param [String] user_ip
|
28379
|
+
# Deprecated. Please use quotaUser instead.
|
28380
|
+
# @param [Google::Apis::RequestOptions] options
|
28381
|
+
# Request-specific options
|
28382
|
+
#
|
28383
|
+
# @yield [result, err] Result & error if block supplied
|
28384
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
|
28385
|
+
# @yieldparam err [StandardError] error object if request failed
|
28386
|
+
#
|
28387
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
|
28388
|
+
#
|
28389
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28390
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28391
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28392
|
+
def get_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28393
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation', options)
|
28394
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
28395
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
|
28396
|
+
command.params['project'] = project unless project.nil?
|
28397
|
+
command.params['region'] = region unless region.nil?
|
28398
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28399
|
+
command.query['name'] = name unless name.nil?
|
28400
|
+
command.query['fields'] = fields unless fields.nil?
|
28401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28402
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28403
|
+
execute_or_queue_command(command, &block)
|
28404
|
+
end
|
28405
|
+
|
28406
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
28407
|
+
# or resource exists.
|
28408
|
+
# @param [String] project
|
28409
|
+
# Project ID for this request.
|
28410
|
+
# @param [String] region
|
28411
|
+
# The name of the region for this request.
|
28412
|
+
# @param [String] resource
|
28413
|
+
# Name or id of the resource for this request.
|
28414
|
+
# @param [Fixnum] options_requested_policy_version
|
28415
|
+
# Requested IAM Policy version.
|
28416
|
+
# @param [String] fields
|
28417
|
+
# Selector specifying which fields to include in a partial response.
|
28418
|
+
# @param [String] quota_user
|
28419
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28420
|
+
# characters.
|
28421
|
+
# @param [String] user_ip
|
28422
|
+
# Deprecated. Please use quotaUser instead.
|
28423
|
+
# @param [Google::Apis::RequestOptions] options
|
28424
|
+
# Request-specific options
|
28425
|
+
#
|
28426
|
+
# @yield [result, err] Result & error if block supplied
|
28427
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
28428
|
+
# @yieldparam err [StandardError] error object if request failed
|
28429
|
+
#
|
28430
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
28431
|
+
#
|
28432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28435
|
+
def get_region_network_firewall_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28436
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy', options)
|
28437
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
28438
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
28439
|
+
command.params['project'] = project unless project.nil?
|
28440
|
+
command.params['region'] = region unless region.nil?
|
28441
|
+
command.params['resource'] = resource unless resource.nil?
|
28442
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
28443
|
+
command.query['fields'] = fields unless fields.nil?
|
28444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28445
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28446
|
+
execute_or_queue_command(command, &block)
|
28447
|
+
end
|
28448
|
+
|
28449
|
+
# Gets a rule of the specified priority.
|
28450
|
+
# @param [String] project
|
28451
|
+
# Project ID for this request.
|
28452
|
+
# @param [String] region
|
28453
|
+
# Name of the region scoping this request.
|
28454
|
+
# @param [String] firewall_policy
|
28455
|
+
# Name of the firewall policy to which the queried rule belongs.
|
28456
|
+
# @param [Fixnum] priority
|
28457
|
+
# The priority of the rule to get from the firewall policy.
|
28458
|
+
# @param [String] fields
|
28459
|
+
# Selector specifying which fields to include in a partial response.
|
28460
|
+
# @param [String] quota_user
|
28461
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28462
|
+
# characters.
|
28463
|
+
# @param [String] user_ip
|
28464
|
+
# Deprecated. Please use quotaUser instead.
|
28465
|
+
# @param [Google::Apis::RequestOptions] options
|
28466
|
+
# Request-specific options
|
28467
|
+
#
|
28468
|
+
# @yield [result, err] Result & error if block supplied
|
28469
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
|
28470
|
+
# @yieldparam err [StandardError] error object if request failed
|
28471
|
+
#
|
28472
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
|
28473
|
+
#
|
28474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28477
|
+
def get_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28478
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule', options)
|
28479
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28480
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
|
28481
|
+
command.params['project'] = project unless project.nil?
|
28482
|
+
command.params['region'] = region unless region.nil?
|
28483
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28484
|
+
command.query['priority'] = priority unless priority.nil?
|
28485
|
+
command.query['fields'] = fields unless fields.nil?
|
28486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28487
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28488
|
+
execute_or_queue_command(command, &block)
|
28489
|
+
end
|
28490
|
+
|
28491
|
+
# Creates a new network firewall policy in the specified project and region.
|
28492
|
+
# @param [String] project
|
28493
|
+
# Project ID for this request.
|
28494
|
+
# @param [String] region
|
28495
|
+
# Name of the region scoping this request.
|
28496
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
28497
|
+
# @param [String] request_id
|
28498
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28499
|
+
# that if you must retry your request, the server will know to ignore the
|
28500
|
+
# request if it has already been completed.
|
28501
|
+
# For example, consider a situation where you make an initial request and the
|
28502
|
+
# request times out. If you make the request again with the same request ID, the
|
28503
|
+
# server can check if original operation with the same request ID was received,
|
28504
|
+
# and if so, will ignore the second request. This prevents clients from
|
28505
|
+
# accidentally creating duplicate commitments.
|
28506
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28507
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28508
|
+
# @param [String] fields
|
28509
|
+
# Selector specifying which fields to include in a partial response.
|
28510
|
+
# @param [String] quota_user
|
28511
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28512
|
+
# characters.
|
28513
|
+
# @param [String] user_ip
|
28514
|
+
# Deprecated. Please use quotaUser instead.
|
28515
|
+
# @param [Google::Apis::RequestOptions] options
|
28516
|
+
# Request-specific options
|
28517
|
+
#
|
28518
|
+
# @yield [result, err] Result & error if block supplied
|
28519
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28520
|
+
# @yieldparam err [StandardError] error object if request failed
|
28521
|
+
#
|
28522
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28523
|
+
#
|
28524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28527
|
+
def insert_region_network_firewall_policy(project, region, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28528
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
28529
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
28530
|
+
command.request_object = firewall_policy_object
|
28531
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28532
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28533
|
+
command.params['project'] = project unless project.nil?
|
28534
|
+
command.params['region'] = region unless region.nil?
|
28535
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28536
|
+
command.query['fields'] = fields unless fields.nil?
|
28537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28538
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28539
|
+
execute_or_queue_command(command, &block)
|
28540
|
+
end
|
28541
|
+
|
28542
|
+
# Lists all the network firewall policies that have been configured for the
|
28543
|
+
# specified project in the given region.
|
28544
|
+
# @param [String] project
|
28545
|
+
# Project ID for this request.
|
28546
|
+
# @param [String] region
|
28547
|
+
# Name of the region scoping this request.
|
28548
|
+
# @param [String] filter
|
28549
|
+
# A filter expression that filters resources listed in the response. The
|
28550
|
+
# expression must specify the field name, a comparison operator, and the value
|
28551
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
28552
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
28553
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
28554
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
28555
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
28556
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
28557
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
28558
|
+
# on resource labels.
|
28559
|
+
# To filter on multiple expressions, provide each separate expression within
|
28560
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
28561
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
28562
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
28563
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
28564
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
28565
|
+
# @param [Fixnum] max_results
|
28566
|
+
# The maximum number of results per page that should be returned. If the number
|
28567
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28568
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
28569
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28570
|
+
# @param [String] order_by
|
28571
|
+
# Sorts list results by a certain order. By default, results are returned in
|
28572
|
+
# alphanumerical order based on the resource name.
|
28573
|
+
# You can also sort results in descending order based on the creation timestamp
|
28574
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
28575
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
28576
|
+
# Use this to sort resources like operations so that the newest operation is
|
28577
|
+
# returned first.
|
28578
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28579
|
+
# @param [String] page_token
|
28580
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28581
|
+
# by a previous list request to get the next page of results.
|
28582
|
+
# @param [Boolean] return_partial_success
|
28583
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
28584
|
+
# failure. The default value is false.
|
28585
|
+
# @param [String] fields
|
28586
|
+
# Selector specifying which fields to include in a partial response.
|
28587
|
+
# @param [String] quota_user
|
28588
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28589
|
+
# characters.
|
28590
|
+
# @param [String] user_ip
|
28591
|
+
# Deprecated. Please use quotaUser instead.
|
28592
|
+
# @param [Google::Apis::RequestOptions] options
|
28593
|
+
# Request-specific options
|
28594
|
+
#
|
28595
|
+
# @yield [result, err] Result & error if block supplied
|
28596
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
|
28597
|
+
# @yieldparam err [StandardError] error object if request failed
|
28598
|
+
#
|
28599
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
|
28600
|
+
#
|
28601
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28602
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28603
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28604
|
+
def list_region_network_firewall_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28605
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
28606
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
|
28607
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
|
28608
|
+
command.params['project'] = project unless project.nil?
|
28609
|
+
command.params['region'] = region unless region.nil?
|
28610
|
+
command.query['filter'] = filter unless filter.nil?
|
28611
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
28612
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
28613
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
28614
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28615
|
+
command.query['fields'] = fields unless fields.nil?
|
28616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28617
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28618
|
+
execute_or_queue_command(command, &block)
|
28619
|
+
end
|
28620
|
+
|
28621
|
+
# Patches the specified network firewall policy.
|
28622
|
+
# @param [String] project
|
28623
|
+
# Project ID for this request.
|
28624
|
+
# @param [String] region
|
28625
|
+
# Name of the region scoping this request.
|
28626
|
+
# @param [String] firewall_policy
|
28627
|
+
# Name of the firewall policy to update.
|
28628
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
28629
|
+
# @param [String] request_id
|
28630
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28631
|
+
# that if you must retry your request, the server will know to ignore the
|
28632
|
+
# request if it has already been completed.
|
28633
|
+
# For example, consider a situation where you make an initial request and the
|
28634
|
+
# request times out. If you make the request again with the same request ID, the
|
28635
|
+
# server can check if original operation with the same request ID was received,
|
28636
|
+
# and if so, will ignore the second request. This prevents clients from
|
28637
|
+
# accidentally creating duplicate commitments.
|
28638
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28639
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28640
|
+
# @param [String] fields
|
28641
|
+
# Selector specifying which fields to include in a partial response.
|
28642
|
+
# @param [String] quota_user
|
28643
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28644
|
+
# characters.
|
28645
|
+
# @param [String] user_ip
|
28646
|
+
# Deprecated. Please use quotaUser instead.
|
28647
|
+
# @param [Google::Apis::RequestOptions] options
|
28648
|
+
# Request-specific options
|
28649
|
+
#
|
28650
|
+
# @yield [result, err] Result & error if block supplied
|
28651
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28652
|
+
# @yieldparam err [StandardError] error object if request failed
|
28653
|
+
#
|
28654
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28655
|
+
#
|
28656
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28657
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28658
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28659
|
+
def patch_region_network_firewall_policy(project, region, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28660
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
28661
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
28662
|
+
command.request_object = firewall_policy_object
|
28663
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28664
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28665
|
+
command.params['project'] = project unless project.nil?
|
28666
|
+
command.params['region'] = region unless region.nil?
|
28667
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28668
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28669
|
+
command.query['fields'] = fields unless fields.nil?
|
28670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28671
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28672
|
+
execute_or_queue_command(command, &block)
|
28673
|
+
end
|
28674
|
+
|
28675
|
+
# Patches a rule of the specified priority.
|
28676
|
+
# @param [String] project
|
28677
|
+
# Project ID for this request.
|
28678
|
+
# @param [String] region
|
28679
|
+
# Name of the region scoping this request.
|
28680
|
+
# @param [String] firewall_policy
|
28681
|
+
# Name of the firewall policy to update.
|
28682
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
28683
|
+
# @param [Fixnum] priority
|
28684
|
+
# The priority of the rule to patch.
|
28685
|
+
# @param [String] request_id
|
28686
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28687
|
+
# that if you must retry your request, the server will know to ignore the
|
28688
|
+
# request if it has already been completed.
|
28689
|
+
# For example, consider a situation where you make an initial request and the
|
28690
|
+
# request times out. If you make the request again with the same request ID, the
|
28691
|
+
# server can check if original operation with the same request ID was received,
|
28692
|
+
# and if so, will ignore the second request. This prevents clients from
|
28693
|
+
# accidentally creating duplicate commitments.
|
28694
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28695
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28696
|
+
# @param [String] fields
|
28697
|
+
# Selector specifying which fields to include in a partial response.
|
28698
|
+
# @param [String] quota_user
|
28699
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28700
|
+
# characters.
|
28701
|
+
# @param [String] user_ip
|
28702
|
+
# Deprecated. Please use quotaUser instead.
|
28703
|
+
# @param [Google::Apis::RequestOptions] options
|
28704
|
+
# Request-specific options
|
28705
|
+
#
|
28706
|
+
# @yield [result, err] Result & error if block supplied
|
28707
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28708
|
+
# @yieldparam err [StandardError] error object if request failed
|
28709
|
+
#
|
28710
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28711
|
+
#
|
28712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28715
|
+
def patch_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28716
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
|
28717
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28718
|
+
command.request_object = firewall_policy_rule_object
|
28719
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28720
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28721
|
+
command.params['project'] = project unless project.nil?
|
28722
|
+
command.params['region'] = region unless region.nil?
|
28723
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28724
|
+
command.query['priority'] = priority unless priority.nil?
|
28725
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28726
|
+
command.query['fields'] = fields unless fields.nil?
|
28727
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28728
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28729
|
+
execute_or_queue_command(command, &block)
|
28730
|
+
end
|
28731
|
+
|
28732
|
+
# Removes an association for the specified network firewall policy.
|
28733
|
+
# @param [String] project
|
28734
|
+
# Project ID for this request.
|
28735
|
+
# @param [String] region
|
28736
|
+
# Name of the region scoping this request.
|
28737
|
+
# @param [String] firewall_policy
|
28738
|
+
# Name of the firewall policy to update.
|
28739
|
+
# @param [String] name
|
28740
|
+
# Name for the association that will be removed.
|
28741
|
+
# @param [String] request_id
|
28742
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28743
|
+
# that if you must retry your request, the server will know to ignore the
|
28744
|
+
# request if it has already been completed.
|
28745
|
+
# For example, consider a situation where you make an initial request and the
|
28746
|
+
# request times out. If you make the request again with the same request ID, the
|
28747
|
+
# server can check if original operation with the same request ID was received,
|
28748
|
+
# and if so, will ignore the second request. This prevents clients from
|
28749
|
+
# accidentally creating duplicate commitments.
|
28750
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28751
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28752
|
+
# @param [String] fields
|
28753
|
+
# Selector specifying which fields to include in a partial response.
|
28754
|
+
# @param [String] quota_user
|
28755
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28756
|
+
# characters.
|
28757
|
+
# @param [String] user_ip
|
28758
|
+
# Deprecated. Please use quotaUser instead.
|
28759
|
+
# @param [Google::Apis::RequestOptions] options
|
28760
|
+
# Request-specific options
|
28761
|
+
#
|
28762
|
+
# @yield [result, err] Result & error if block supplied
|
28763
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28764
|
+
# @yieldparam err [StandardError] error object if request failed
|
28765
|
+
#
|
28766
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28767
|
+
#
|
28768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28771
|
+
def remove_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28772
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
28773
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28774
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28775
|
+
command.params['project'] = project unless project.nil?
|
28776
|
+
command.params['region'] = region unless region.nil?
|
28777
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28778
|
+
command.query['name'] = name unless name.nil?
|
28779
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28780
|
+
command.query['fields'] = fields unless fields.nil?
|
28781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28782
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28783
|
+
execute_or_queue_command(command, &block)
|
28784
|
+
end
|
28785
|
+
|
28786
|
+
# Deletes a rule of the specified priority.
|
28787
|
+
# @param [String] project
|
28788
|
+
# Project ID for this request.
|
28789
|
+
# @param [String] region
|
28790
|
+
# Name of the region scoping this request.
|
28791
|
+
# @param [String] firewall_policy
|
28792
|
+
# Name of the firewall policy to update.
|
28793
|
+
# @param [Fixnum] priority
|
28794
|
+
# The priority of the rule to remove from the firewall policy.
|
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.
|
28799
|
+
# For example, consider a situation where you make an initial request and the
|
28800
|
+
# request times out. If you make the request again with the same request ID, the
|
28801
|
+
# server can check if original operation with the same request ID was received,
|
28802
|
+
# and if so, will ignore the second request. This prevents clients from
|
28803
|
+
# accidentally creating duplicate commitments.
|
28804
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28805
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28806
|
+
# @param [String] fields
|
28807
|
+
# Selector specifying which fields to include in a partial response.
|
28808
|
+
# @param [String] quota_user
|
28809
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28810
|
+
# characters.
|
28811
|
+
# @param [String] user_ip
|
28812
|
+
# Deprecated. Please use quotaUser instead.
|
28813
|
+
# @param [Google::Apis::RequestOptions] options
|
28814
|
+
# Request-specific options
|
28815
|
+
#
|
28816
|
+
# @yield [result, err] Result & error if block supplied
|
28817
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28818
|
+
# @yieldparam err [StandardError] error object if request failed
|
28819
|
+
#
|
28820
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28821
|
+
#
|
28822
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28823
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28824
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28825
|
+
def remove_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28826
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
|
28827
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28828
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28829
|
+
command.params['project'] = project unless project.nil?
|
28830
|
+
command.params['region'] = region unless region.nil?
|
28831
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28832
|
+
command.query['priority'] = priority unless priority.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
|
+
# Sets the access control policy on the specified resource. Replaces any
|
28841
|
+
# existing policy.
|
28842
|
+
# @param [String] project
|
28843
|
+
# Project ID for this request.
|
28844
|
+
# @param [String] region
|
28845
|
+
# The name of the region for this request.
|
28846
|
+
# @param [String] resource
|
28847
|
+
# Name or id of the resource for this request.
|
28848
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
28849
|
+
# @param [String] fields
|
28850
|
+
# Selector specifying which fields to include in a partial response.
|
28851
|
+
# @param [String] quota_user
|
28852
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28853
|
+
# characters.
|
28854
|
+
# @param [String] user_ip
|
28855
|
+
# Deprecated. Please use quotaUser instead.
|
28856
|
+
# @param [Google::Apis::RequestOptions] options
|
28857
|
+
# Request-specific options
|
28858
|
+
#
|
28859
|
+
# @yield [result, err] Result & error if block supplied
|
28860
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
28861
|
+
# @yieldparam err [StandardError] error object if request failed
|
28862
|
+
#
|
28863
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
28864
|
+
#
|
28865
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28866
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28867
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28868
|
+
def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28869
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
|
28870
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
28871
|
+
command.request_object = region_set_policy_request_object
|
28872
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
28873
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
28874
|
+
command.params['project'] = project unless project.nil?
|
28875
|
+
command.params['region'] = region unless region.nil?
|
28876
|
+
command.params['resource'] = resource unless resource.nil?
|
28877
|
+
command.query['fields'] = fields unless fields.nil?
|
28878
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28879
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28880
|
+
execute_or_queue_command(command, &block)
|
28881
|
+
end
|
28882
|
+
|
28883
|
+
# Returns permissions that a caller has on the specified resource.
|
28884
|
+
# @param [String] project
|
28885
|
+
# Project ID for this request.
|
28886
|
+
# @param [String] region
|
28887
|
+
# The name of the region for this request.
|
28888
|
+
# @param [String] resource
|
28889
|
+
# Name or id of the resource for this request.
|
28890
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
28891
|
+
# @param [String] fields
|
28892
|
+
# Selector specifying which fields to include in a partial response.
|
28893
|
+
# @param [String] quota_user
|
28894
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28895
|
+
# characters.
|
28896
|
+
# @param [String] user_ip
|
28897
|
+
# Deprecated. Please use quotaUser instead.
|
28898
|
+
# @param [Google::Apis::RequestOptions] options
|
28899
|
+
# Request-specific options
|
28900
|
+
#
|
28901
|
+
# @yield [result, err] Result & error if block supplied
|
28902
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
28903
|
+
# @yieldparam err [StandardError] error object if request failed
|
28904
|
+
#
|
28905
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
28906
|
+
#
|
28907
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28908
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28909
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28910
|
+
def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28911
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
|
28912
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
28913
|
+
command.request_object = test_permissions_request_object
|
28914
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
28915
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
28916
|
+
command.params['project'] = project unless project.nil?
|
28917
|
+
command.params['region'] = region unless region.nil?
|
28918
|
+
command.params['resource'] = resource unless resource.nil?
|
28919
|
+
command.query['fields'] = fields unless fields.nil?
|
28920
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28921
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28922
|
+
execute_or_queue_command(command, &block)
|
28923
|
+
end
|
28924
|
+
|
27470
28925
|
# Retrieves the list of all NotificationEndpoint resources, regional and global,
|
27471
28926
|
# available to the specified project.
|
27472
28927
|
# @param [String] project
|