google-apis-compute_alpha 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +881 -245
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +277 -21
- data/lib/google/apis/compute_alpha/service.rb +1822 -297
- 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
|
@@ -12093,6 +12375,9 @@ module Google
|
|
12093
12375
|
# accidentally creating duplicate commitments.
|
12094
12376
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
12095
12377
|
# supported (00000000-0000-0000-0000-000000000000).
|
12378
|
+
# @param [Array<String>, String] secure_tags
|
12379
|
+
# Secure tags to apply to this instance. These can be later modified by the
|
12380
|
+
# update method. Maximum number of secure tags allowed is 300.
|
12096
12381
|
# @param [String] source_instance_template
|
12097
12382
|
# Specifies instance template to create the instance.
|
12098
12383
|
# This field is optional. It can be a full or partial URL. For example, the
|
@@ -12128,7 +12413,7 @@ module Google
|
|
12128
12413
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12129
12414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12130
12415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12131
|
-
def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12416
|
+
def insert_instance(project, zone, instance_object = nil, request_id: nil, secure_tags: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12132
12417
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances', options)
|
12133
12418
|
command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
|
12134
12419
|
command.request_object = instance_object
|
@@ -12137,6 +12422,7 @@ module Google
|
|
12137
12422
|
command.params['project'] = project unless project.nil?
|
12138
12423
|
command.params['zone'] = zone unless zone.nil?
|
12139
12424
|
command.query['requestId'] = request_id unless request_id.nil?
|
12425
|
+
command.query['secureTags'] = secure_tags unless secure_tags.nil?
|
12140
12426
|
command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil?
|
12141
12427
|
command.query['sourceMachineImage'] = source_machine_image unless source_machine_image.nil?
|
12142
12428
|
command.query['fields'] = fields unless fields.nil?
|
@@ -12468,6 +12754,44 @@ module Google
|
|
12468
12754
|
execute_or_queue_command(command, &block)
|
12469
12755
|
end
|
12470
12756
|
|
12757
|
+
# TODO(b/180520210): Add IAM permission for this API. Sends diagnostic interrupt
|
12758
|
+
# to the instance.
|
12759
|
+
# @param [String] project
|
12760
|
+
# Project ID for this request.
|
12761
|
+
# @param [String] zone
|
12762
|
+
# The name of the zone for this request.
|
12763
|
+
# @param [String] instance
|
12764
|
+
# Name of the instance scoping this request.
|
12765
|
+
# @param [String] fields
|
12766
|
+
# Selector specifying which fields to include in a partial response.
|
12767
|
+
# @param [String] quota_user
|
12768
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
12769
|
+
# characters.
|
12770
|
+
# @param [String] user_ip
|
12771
|
+
# Deprecated. Please use quotaUser instead.
|
12772
|
+
# @param [Google::Apis::RequestOptions] options
|
12773
|
+
# Request-specific options
|
12774
|
+
#
|
12775
|
+
# @yield [result, err] Result & error if block supplied
|
12776
|
+
# @yieldparam result [NilClass] No result returned for this method
|
12777
|
+
# @yieldparam err [StandardError] error object if request failed
|
12778
|
+
#
|
12779
|
+
# @return [void]
|
12780
|
+
#
|
12781
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12782
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12783
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12784
|
+
def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12785
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
|
12786
|
+
command.params['project'] = project unless project.nil?
|
12787
|
+
command.params['zone'] = zone unless zone.nil?
|
12788
|
+
command.params['instance'] = instance unless instance.nil?
|
12789
|
+
command.query['fields'] = fields unless fields.nil?
|
12790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12791
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12792
|
+
execute_or_queue_command(command, &block)
|
12793
|
+
end
|
12794
|
+
|
12471
12795
|
# Sets deletion protection on the instance.
|
12472
12796
|
# @param [String] project
|
12473
12797
|
# Project ID for this request.
|
@@ -13547,6 +13871,10 @@ module Google
|
|
13547
13871
|
# @param [String] instance
|
13548
13872
|
# Name of the instance resource to update.
|
13549
13873
|
# @param [Google::Apis::ComputeAlpha::Instance] instance_object
|
13874
|
+
# @param [Boolean] clear_secure_tag
|
13875
|
+
# Whether to clear secure tags from the instance.
|
13876
|
+
# This property is mutually exclusive with the secure_tag property; you can only
|
13877
|
+
# specify one or the other, but not both.
|
13550
13878
|
# @param [String] minimal_action
|
13551
13879
|
# Specifies the action to take when updating an instance even if the updated
|
13552
13880
|
# properties do not require it. If not specified, then Compute Engine acts based
|
@@ -13567,6 +13895,9 @@ module Google
|
|
13567
13895
|
# accidentally creating duplicate commitments.
|
13568
13896
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13569
13897
|
# supported (00000000-0000-0000-0000-000000000000).
|
13898
|
+
# @param [Array<String>, String] secure_tags
|
13899
|
+
# Secure tags to apply to this instance. Maximum number of secure tags allowed
|
13900
|
+
# is 300.
|
13570
13901
|
# @param [String] fields
|
13571
13902
|
# Selector specifying which fields to include in a partial response.
|
13572
13903
|
# @param [String] quota_user
|
@@ -13586,7 +13917,7 @@ module Google
|
|
13586
13917
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13587
13918
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13588
13919
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13589
|
-
def update_instance(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13920
|
+
def update_instance(project, zone, instance, instance_object = nil, clear_secure_tag: nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, secure_tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13590
13921
|
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options)
|
13591
13922
|
command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
|
13592
13923
|
command.request_object = instance_object
|
@@ -13595,9 +13926,11 @@ module Google
|
|
13595
13926
|
command.params['project'] = project unless project.nil?
|
13596
13927
|
command.params['zone'] = zone unless zone.nil?
|
13597
13928
|
command.params['instance'] = instance unless instance.nil?
|
13929
|
+
command.query['clearSecureTag'] = clear_secure_tag unless clear_secure_tag.nil?
|
13598
13930
|
command.query['minimalAction'] = minimal_action unless minimal_action.nil?
|
13599
13931
|
command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
|
13600
13932
|
command.query['requestId'] = request_id unless request_id.nil?
|
13933
|
+
command.query['secureTags'] = secure_tags unless secure_tags.nil?
|
13601
13934
|
command.query['fields'] = fields unless fields.nil?
|
13602
13935
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13603
13936
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -16700,6 +17033,17 @@ module Google
|
|
16700
17033
|
# @param [String] firewall_policy
|
16701
17034
|
# Name of the firewall policy to update.
|
16702
17035
|
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
17036
|
+
# @param [String] request_id
|
17037
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17038
|
+
# that if you must retry your request, the server will know to ignore the
|
17039
|
+
# request if it has already been completed.
|
17040
|
+
# For example, consider a situation where you make an initial request and the
|
17041
|
+
# request times out. If you make the request again with the same request ID, the
|
17042
|
+
# server can check if original operation with the same request ID was received,
|
17043
|
+
# and if so, will ignore the second request. This prevents clients from
|
17044
|
+
# accidentally creating duplicate commitments.
|
17045
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17046
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
16703
17047
|
# @param [String] fields
|
16704
17048
|
# Selector specifying which fields to include in a partial response.
|
16705
17049
|
# @param [String] quota_user
|
@@ -16719,7 +17063,7 @@ module Google
|
|
16719
17063
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16720
17064
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16721
17065
|
# @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)
|
17066
|
+
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
17067
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
|
16724
17068
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
16725
17069
|
command.request_object = firewall_policy_rule_object
|
@@ -16727,6 +17071,7 @@ module Google
|
|
16727
17071
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
16728
17072
|
command.params['project'] = project unless project.nil?
|
16729
17073
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17074
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16730
17075
|
command.query['fields'] = fields unless fields.nil?
|
16731
17076
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16732
17077
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -17169,6 +17514,17 @@ module Google
|
|
17169
17514
|
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
17170
17515
|
# @param [Fixnum] priority
|
17171
17516
|
# The priority of the rule to patch.
|
17517
|
+
# @param [String] request_id
|
17518
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17519
|
+
# that if you must retry your request, the server will know to ignore the
|
17520
|
+
# request if it has already been completed.
|
17521
|
+
# For example, consider a situation where you make an initial request and the
|
17522
|
+
# request times out. If you make the request again with the same request ID, the
|
17523
|
+
# server can check if original operation with the same request ID was received,
|
17524
|
+
# and if so, will ignore the second request. This prevents clients from
|
17525
|
+
# accidentally creating duplicate commitments.
|
17526
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17527
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17172
17528
|
# @param [String] fields
|
17173
17529
|
# Selector specifying which fields to include in a partial response.
|
17174
17530
|
# @param [String] quota_user
|
@@ -17188,7 +17544,7 @@ module Google
|
|
17188
17544
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17189
17545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17190
17546
|
# @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)
|
17547
|
+
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
17548
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options)
|
17193
17549
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
17194
17550
|
command.request_object = firewall_policy_rule_object
|
@@ -17197,6 +17553,7 @@ module Google
|
|
17197
17553
|
command.params['project'] = project unless project.nil?
|
17198
17554
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17199
17555
|
command.query['priority'] = priority unless priority.nil?
|
17556
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17200
17557
|
command.query['fields'] = fields unless fields.nil?
|
17201
17558
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17202
17559
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -17261,6 +17618,17 @@ module Google
|
|
17261
17618
|
# Name of the firewall policy to update.
|
17262
17619
|
# @param [Fixnum] priority
|
17263
17620
|
# The priority of the rule to remove from the firewall policy.
|
17621
|
+
# @param [String] request_id
|
17622
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17623
|
+
# that if you must retry your request, the server will know to ignore the
|
17624
|
+
# request if it has already been completed.
|
17625
|
+
# For example, consider a situation where you make an initial request and the
|
17626
|
+
# request times out. If you make the request again with the same request ID, the
|
17627
|
+
# server can check if original operation with the same request ID was received,
|
17628
|
+
# and if so, will ignore the second request. This prevents clients from
|
17629
|
+
# accidentally creating duplicate commitments.
|
17630
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17631
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17264
17632
|
# @param [String] fields
|
17265
17633
|
# Selector specifying which fields to include in a partial response.
|
17266
17634
|
# @param [String] quota_user
|
@@ -17280,13 +17648,14 @@ module Google
|
|
17280
17648
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17281
17649
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17282
17650
|
# @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)
|
17651
|
+
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
17652
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options)
|
17285
17653
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17286
17654
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17287
17655
|
command.params['project'] = project unless project.nil?
|
17288
17656
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17289
17657
|
command.query['priority'] = priority unless priority.nil?
|
17658
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17290
17659
|
command.query['fields'] = fields unless fields.nil?
|
17291
17660
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17292
17661
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -25908,12 +26277,12 @@ module Google
|
|
25908
26277
|
execute_or_queue_command(command, &block)
|
25909
26278
|
end
|
25910
26279
|
|
25911
|
-
# Flags the specified instances in the managed instance group to be
|
25912
|
-
# recreated.
|
25913
|
-
#
|
25914
|
-
# the
|
25915
|
-
#
|
25916
|
-
#
|
26280
|
+
# Flags the specified VM instances in the managed instance group to be
|
26281
|
+
# immediately recreated. Each instance is recreated using the group's current
|
26282
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
26283
|
+
# the instances have not yet been recreated. You must separately verify the
|
26284
|
+
# status of each instance by checking its currentAction field; for more
|
26285
|
+
# information, see Checking the status of managed instances.
|
25917
26286
|
# If the group is part of a backend service that has enabled connection draining,
|
25918
26287
|
# it can take up to 60 seconds after the connection draining duration has
|
25919
26288
|
# elapsed before the VM instance is removed or deleted.
|
@@ -26101,6 +26470,71 @@ module Google
|
|
26101
26470
|
execute_or_queue_command(command, &block)
|
26102
26471
|
end
|
26103
26472
|
|
26473
|
+
# Flags the specified instances in the managed instance group to be resumed.
|
26474
|
+
# This method increases the targetSize and decreases the targetSuspendedSize of
|
26475
|
+
# the managed instance group by the number of instances that you resume. The
|
26476
|
+
# resumeInstances operation is marked DONE if the resumeInstances request is
|
26477
|
+
# successful. The underlying actions take additional time. You must separately
|
26478
|
+
# verify the status of the RESUMING action with the listmanagedinstances method.
|
26479
|
+
# In this request, you can only specify instances that are suspended. For
|
26480
|
+
# example, if an instance was previously suspended using the suspendInstances
|
26481
|
+
# method, it can be resumed using the resumeInstances method.
|
26482
|
+
# If a health check is attached to the managed instance group, the specified
|
26483
|
+
# instances will be verified as healthy after they are resumed.
|
26484
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26485
|
+
# @param [String] project
|
26486
|
+
# Project ID for this request.
|
26487
|
+
# @param [String] region
|
26488
|
+
# Name of the region scoping this request.
|
26489
|
+
# @param [String] instance_group_manager
|
26490
|
+
# Name of the managed instance group.
|
26491
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
|
26492
|
+
# @param [String] request_id
|
26493
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26494
|
+
# that if you must retry your request, the server will know to ignore the
|
26495
|
+
# request if it has already been completed.
|
26496
|
+
# For example, consider a situation where you make an initial request and the
|
26497
|
+
# request times out. If you make the request again with the same request ID, the
|
26498
|
+
# server can check if original operation with the same request ID was received,
|
26499
|
+
# and if so, will ignore the second request. This prevents clients from
|
26500
|
+
# accidentally creating duplicate commitments.
|
26501
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26502
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26503
|
+
# @param [String] fields
|
26504
|
+
# Selector specifying which fields to include in a partial response.
|
26505
|
+
# @param [String] quota_user
|
26506
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26507
|
+
# characters.
|
26508
|
+
# @param [String] user_ip
|
26509
|
+
# Deprecated. Please use quotaUser instead.
|
26510
|
+
# @param [Google::Apis::RequestOptions] options
|
26511
|
+
# Request-specific options
|
26512
|
+
#
|
26513
|
+
# @yield [result, err] Result & error if block supplied
|
26514
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26515
|
+
# @yieldparam err [StandardError] error object if request failed
|
26516
|
+
#
|
26517
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26518
|
+
#
|
26519
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26520
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26521
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26522
|
+
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)
|
26523
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
|
26524
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest::Representation
|
26525
|
+
command.request_object = region_instance_group_managers_resume_instances_request_object
|
26526
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26527
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26528
|
+
command.params['project'] = project unless project.nil?
|
26529
|
+
command.params['region'] = region unless region.nil?
|
26530
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26531
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26532
|
+
command.query['fields'] = fields unless fields.nil?
|
26533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26534
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26535
|
+
execute_or_queue_command(command, &block)
|
26536
|
+
end
|
26537
|
+
|
26104
26538
|
# Modifies the autohealing policy for the instances in this managed instance
|
26105
26539
|
# group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
|
26106
26540
|
# patch instead.
|
@@ -26267,6 +26701,222 @@ module Google
|
|
26267
26701
|
execute_or_queue_command(command, &block)
|
26268
26702
|
end
|
26269
26703
|
|
26704
|
+
# Flags the specified instances in the managed instance group to be started.
|
26705
|
+
# This method increases the targetSize and decreases the targetStoppedSize of
|
26706
|
+
# the managed instance group by the number of instances that you start. The
|
26707
|
+
# startInstances operation is marked DONE if the startInstances request is
|
26708
|
+
# successful. The underlying actions take additional time. You must separately
|
26709
|
+
# verify the status of the STARTING action with the listmanagedinstances method.
|
26710
|
+
# In this request, you can only specify instances that are stopped. For example,
|
26711
|
+
# if an instance was previously stopped using the stopInstances method, it can
|
26712
|
+
# be started using the startInstances method.
|
26713
|
+
# If a health check is attached to the managed instance group, the specified
|
26714
|
+
# instances will be verified as healthy after they are started.
|
26715
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26716
|
+
# @param [String] project
|
26717
|
+
# Project ID for this request.
|
26718
|
+
# @param [String] region
|
26719
|
+
# Name of the region scoping this request.
|
26720
|
+
# @param [String] instance_group_manager
|
26721
|
+
# Name of the managed instance group.
|
26722
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
|
26723
|
+
# @param [String] request_id
|
26724
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26725
|
+
# that if you must retry your request, the server will know to ignore the
|
26726
|
+
# request if it has already been completed.
|
26727
|
+
# For example, consider a situation where you make an initial request and the
|
26728
|
+
# request times out. If you make the request again with the same request ID, the
|
26729
|
+
# server can check if original operation with the same request ID was received,
|
26730
|
+
# and if so, will ignore the second request. This prevents clients from
|
26731
|
+
# accidentally creating duplicate commitments.
|
26732
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26733
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26734
|
+
# @param [String] fields
|
26735
|
+
# Selector specifying which fields to include in a partial response.
|
26736
|
+
# @param [String] quota_user
|
26737
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26738
|
+
# characters.
|
26739
|
+
# @param [String] user_ip
|
26740
|
+
# Deprecated. Please use quotaUser instead.
|
26741
|
+
# @param [Google::Apis::RequestOptions] options
|
26742
|
+
# Request-specific options
|
26743
|
+
#
|
26744
|
+
# @yield [result, err] Result & error if block supplied
|
26745
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26746
|
+
# @yieldparam err [StandardError] error object if request failed
|
26747
|
+
#
|
26748
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26749
|
+
#
|
26750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26753
|
+
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)
|
26754
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
|
26755
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest::Representation
|
26756
|
+
command.request_object = region_instance_group_managers_start_instances_request_object
|
26757
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26758
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26759
|
+
command.params['project'] = project unless project.nil?
|
26760
|
+
command.params['region'] = region unless region.nil?
|
26761
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26762
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26763
|
+
command.query['fields'] = fields unless fields.nil?
|
26764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26765
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26766
|
+
execute_or_queue_command(command, &block)
|
26767
|
+
end
|
26768
|
+
|
26769
|
+
# Flags the specified instances in the managed instance group to be immediately
|
26770
|
+
# stopped. You can only specify instances that are running in this request. This
|
26771
|
+
# method reduces the targetSize and increases the targetStoppedSize of the
|
26772
|
+
# managed instance group by the number of instances that you stop. The
|
26773
|
+
# stopInstances operation is marked DONE if the stopInstances request is
|
26774
|
+
# successful. The underlying actions take additional time. You must separately
|
26775
|
+
# verify the status of the STOPPING action with the listmanagedinstances method.
|
26776
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
26777
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
26778
|
+
# stopped, to give user programs time to perform necessary tasks. To initialize
|
26779
|
+
# an instance, the Instance Group Manager sets the metadata key google-compute-
|
26780
|
+
# initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
|
26781
|
+
# for the user program to signal it is ready. This is done by setting the guest
|
26782
|
+
# attribute path google-compute/initialization-state to value INITIALIZED. If
|
26783
|
+
# the instance does not signal successful initialization (does not set the guest
|
26784
|
+
# attribute to INITIALIZED) before timeout, the initialization is considered
|
26785
|
+
# failed and the instance is not stopped.
|
26786
|
+
# If the group is part of a backend service that has enabled connection draining,
|
26787
|
+
# it can take up to 60 seconds after the connection draining duration has
|
26788
|
+
# elapsed before the VM instance is suspended.
|
26789
|
+
# Stopped instances can be started using the startInstances method.
|
26790
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26791
|
+
# @param [String] project
|
26792
|
+
# Project ID for this request.
|
26793
|
+
# @param [String] region
|
26794
|
+
# Name of the region scoping this request.
|
26795
|
+
# @param [String] instance_group_manager
|
26796
|
+
# The name of the managed instance group.
|
26797
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
|
26798
|
+
# @param [String] request_id
|
26799
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26800
|
+
# that if you must retry your request, the server will know to ignore the
|
26801
|
+
# request if it has already been completed.
|
26802
|
+
# For example, consider a situation where you make an initial request and the
|
26803
|
+
# request times out. If you make the request again with the same request ID, the
|
26804
|
+
# server can check if original operation with the same request ID was received,
|
26805
|
+
# and if so, will ignore the second request. This prevents clients from
|
26806
|
+
# accidentally creating duplicate commitments.
|
26807
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26808
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26809
|
+
# @param [String] fields
|
26810
|
+
# Selector specifying which fields to include in a partial response.
|
26811
|
+
# @param [String] quota_user
|
26812
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26813
|
+
# characters.
|
26814
|
+
# @param [String] user_ip
|
26815
|
+
# Deprecated. Please use quotaUser instead.
|
26816
|
+
# @param [Google::Apis::RequestOptions] options
|
26817
|
+
# Request-specific options
|
26818
|
+
#
|
26819
|
+
# @yield [result, err] Result & error if block supplied
|
26820
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26821
|
+
# @yieldparam err [StandardError] error object if request failed
|
26822
|
+
#
|
26823
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26824
|
+
#
|
26825
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26826
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26827
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26828
|
+
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)
|
26829
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
|
26830
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest::Representation
|
26831
|
+
command.request_object = region_instance_group_managers_stop_instances_request_object
|
26832
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26833
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26834
|
+
command.params['project'] = project unless project.nil?
|
26835
|
+
command.params['region'] = region unless region.nil?
|
26836
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26837
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26838
|
+
command.query['fields'] = fields unless fields.nil?
|
26839
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26840
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26841
|
+
execute_or_queue_command(command, &block)
|
26842
|
+
end
|
26843
|
+
|
26844
|
+
# Flags the specified instances in the managed instance group to be immediately
|
26845
|
+
# suspended. You can only specify instances that are running in this request.
|
26846
|
+
# This method reduces the targetSize and increases the targetSuspendedSize of
|
26847
|
+
# the managed instance group by the number of instances that you suspend. The
|
26848
|
+
# suspendInstances operation is marked DONE if the suspendInstances request is
|
26849
|
+
# successful. The underlying actions take additional time. You must separately
|
26850
|
+
# verify the status of the SUSPENDING action with the listmanagedinstances
|
26851
|
+
# method.
|
26852
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
26853
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
26854
|
+
# suspended, to give user programs time to perform necessary tasks. To
|
26855
|
+
# initialize an instance, the Instance Group Manager sets the metadata key
|
26856
|
+
# google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
|
26857
|
+
# instance, and waits for the user program to signal it is ready. This is done
|
26858
|
+
# by setting the guest attribute path google-compute/initialization-state to
|
26859
|
+
# value INITIALIZED. If the instance does not signal successful initialization (
|
26860
|
+
# does not set the guest attribute to INITIALIZED) before timeout, the
|
26861
|
+
# initialization is considered failed and the instance is not suspended.
|
26862
|
+
# If the group is part of a backend service that has enabled connection draining,
|
26863
|
+
# it can take up to 60 seconds after the connection draining duration has
|
26864
|
+
# elapsed before the VM instance is suspended.
|
26865
|
+
# Suspended instances can be resumed using the resumeInstances method.
|
26866
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
26867
|
+
# @param [String] project
|
26868
|
+
# Project ID for this request.
|
26869
|
+
# @param [String] region
|
26870
|
+
# Name of the region scoping this request.
|
26871
|
+
# @param [String] instance_group_manager
|
26872
|
+
# Name of the managed instance group.
|
26873
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
|
26874
|
+
# @param [String] request_id
|
26875
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26876
|
+
# that if you must retry your request, the server will know to ignore the
|
26877
|
+
# request if it has already been completed.
|
26878
|
+
# For example, consider a situation where you make an initial request and the
|
26879
|
+
# request times out. If you make the request again with the same request ID, the
|
26880
|
+
# server can check if original operation with the same request ID was received,
|
26881
|
+
# and if so, will ignore the second request. This prevents clients from
|
26882
|
+
# accidentally creating duplicate commitments.
|
26883
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26884
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26885
|
+
# @param [String] fields
|
26886
|
+
# Selector specifying which fields to include in a partial response.
|
26887
|
+
# @param [String] quota_user
|
26888
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26889
|
+
# characters.
|
26890
|
+
# @param [String] user_ip
|
26891
|
+
# Deprecated. Please use quotaUser instead.
|
26892
|
+
# @param [Google::Apis::RequestOptions] options
|
26893
|
+
# Request-specific options
|
26894
|
+
#
|
26895
|
+
# @yield [result, err] Result & error if block supplied
|
26896
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26897
|
+
# @yieldparam err [StandardError] error object if request failed
|
26898
|
+
#
|
26899
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26900
|
+
#
|
26901
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26902
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26903
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26904
|
+
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)
|
26905
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
|
26906
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
|
26907
|
+
command.request_object = region_instance_group_managers_suspend_instances_request_object
|
26908
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26909
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26910
|
+
command.params['project'] = project unless project.nil?
|
26911
|
+
command.params['region'] = region unless region.nil?
|
26912
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26913
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26914
|
+
command.query['fields'] = fields unless fields.nil?
|
26915
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26916
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26917
|
+
execute_or_queue_command(command, &block)
|
26918
|
+
end
|
26919
|
+
|
26270
26920
|
# Returns permissions that a caller has on the specified resource.
|
26271
26921
|
# @param [String] project
|
26272
26922
|
# Project ID for this request.
|
@@ -26600,23 +27250,862 @@ module Google
|
|
26600
27250
|
# Request-specific options
|
26601
27251
|
#
|
26602
27252
|
# @yield [result, err] Result & error if block supplied
|
26603
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances] parsed result object
|
27253
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances] parsed result object
|
27254
|
+
# @yieldparam err [StandardError] error object if request failed
|
27255
|
+
#
|
27256
|
+
# @return [Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances]
|
27257
|
+
#
|
27258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27261
|
+
def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, 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)
|
27262
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options)
|
27263
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstancesRequest::Representation
|
27264
|
+
command.request_object = region_instance_groups_list_instances_request_object
|
27265
|
+
command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances::Representation
|
27266
|
+
command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances
|
27267
|
+
command.params['project'] = project unless project.nil?
|
27268
|
+
command.params['region'] = region unless region.nil?
|
27269
|
+
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
27270
|
+
command.query['filter'] = filter unless filter.nil?
|
27271
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
27272
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
27273
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
27274
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
27275
|
+
command.query['fields'] = fields unless fields.nil?
|
27276
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27277
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27278
|
+
execute_or_queue_command(command, &block)
|
27279
|
+
end
|
27280
|
+
|
27281
|
+
# Sets the named ports for the specified regional instance group.
|
27282
|
+
# @param [String] project
|
27283
|
+
# Project ID for this request.
|
27284
|
+
# @param [String] region
|
27285
|
+
# Name of the region scoping this request.
|
27286
|
+
# @param [String] instance_group
|
27287
|
+
# The name of the regional instance group where the named ports are updated.
|
27288
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupsSetNamedPortsRequest] region_instance_groups_set_named_ports_request_object
|
27289
|
+
# @param [String] request_id
|
27290
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27291
|
+
# that if you must retry your request, the server will know to ignore the
|
27292
|
+
# request if it has already been completed.
|
27293
|
+
# For example, consider a situation where you make an initial request and the
|
27294
|
+
# request times out. If you make the request again with the same request ID, the
|
27295
|
+
# server can check if original operation with the same request ID was received,
|
27296
|
+
# and if so, will ignore the second request. This prevents clients from
|
27297
|
+
# accidentally creating duplicate commitments.
|
27298
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27299
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27300
|
+
# @param [String] fields
|
27301
|
+
# Selector specifying which fields to include in a partial response.
|
27302
|
+
# @param [String] quota_user
|
27303
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27304
|
+
# characters.
|
27305
|
+
# @param [String] user_ip
|
27306
|
+
# Deprecated. Please use quotaUser instead.
|
27307
|
+
# @param [Google::Apis::RequestOptions] options
|
27308
|
+
# Request-specific options
|
27309
|
+
#
|
27310
|
+
# @yield [result, err] Result & error if block supplied
|
27311
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27312
|
+
# @yieldparam err [StandardError] error object if request failed
|
27313
|
+
#
|
27314
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27315
|
+
#
|
27316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27319
|
+
def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27320
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
|
27321
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsSetNamedPortsRequest::Representation
|
27322
|
+
command.request_object = region_instance_groups_set_named_ports_request_object
|
27323
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27324
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27325
|
+
command.params['project'] = project unless project.nil?
|
27326
|
+
command.params['region'] = region unless region.nil?
|
27327
|
+
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
27328
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27329
|
+
command.query['fields'] = fields unless fields.nil?
|
27330
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27331
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27332
|
+
execute_or_queue_command(command, &block)
|
27333
|
+
end
|
27334
|
+
|
27335
|
+
# Returns permissions that a caller has on the specified resource.
|
27336
|
+
# @param [String] project
|
27337
|
+
# Project ID for this request.
|
27338
|
+
# @param [String] region
|
27339
|
+
# The name of the region for this request.
|
27340
|
+
# @param [String] resource
|
27341
|
+
# Name or id of the resource for this request.
|
27342
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
27343
|
+
# @param [String] fields
|
27344
|
+
# Selector specifying which fields to include in a partial response.
|
27345
|
+
# @param [String] quota_user
|
27346
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27347
|
+
# characters.
|
27348
|
+
# @param [String] user_ip
|
27349
|
+
# Deprecated. Please use quotaUser instead.
|
27350
|
+
# @param [Google::Apis::RequestOptions] options
|
27351
|
+
# Request-specific options
|
27352
|
+
#
|
27353
|
+
# @yield [result, err] Result & error if block supplied
|
27354
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
27355
|
+
# @yieldparam err [StandardError] error object if request failed
|
27356
|
+
#
|
27357
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
27358
|
+
#
|
27359
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27360
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27361
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27362
|
+
def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27363
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options)
|
27364
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
27365
|
+
command.request_object = test_permissions_request_object
|
27366
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
27367
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
27368
|
+
command.params['project'] = project unless project.nil?
|
27369
|
+
command.params['region'] = region unless region.nil?
|
27370
|
+
command.params['resource'] = resource unless resource.nil?
|
27371
|
+
command.query['fields'] = fields unless fields.nil?
|
27372
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27373
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27374
|
+
execute_or_queue_command(command, &block)
|
27375
|
+
end
|
27376
|
+
|
27377
|
+
# Creates multiple instances in a given region. Count specifies the number of
|
27378
|
+
# instances to create.
|
27379
|
+
# @param [String] project
|
27380
|
+
# Project ID for this request.
|
27381
|
+
# @param [String] region
|
27382
|
+
# The name of the region for this request.
|
27383
|
+
# @param [Google::Apis::ComputeAlpha::BulkInsertInstanceResource] bulk_insert_instance_resource_object
|
27384
|
+
# @param [String] request_id
|
27385
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27386
|
+
# that if you must retry your request, the server will know to ignore the
|
27387
|
+
# request if it has already been completed.
|
27388
|
+
# For example, consider a situation where you make an initial request and the
|
27389
|
+
# request times out. If you make the request again with the same request ID, the
|
27390
|
+
# server can check if original operation with the same request ID was received,
|
27391
|
+
# and if so, will ignore the second request. This prevents clients from
|
27392
|
+
# accidentally creating duplicate commitments.
|
27393
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27394
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27395
|
+
# @param [String] fields
|
27396
|
+
# Selector specifying which fields to include in a partial response.
|
27397
|
+
# @param [String] quota_user
|
27398
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27399
|
+
# characters.
|
27400
|
+
# @param [String] user_ip
|
27401
|
+
# Deprecated. Please use quotaUser instead.
|
27402
|
+
# @param [Google::Apis::RequestOptions] options
|
27403
|
+
# Request-specific options
|
27404
|
+
#
|
27405
|
+
# @yield [result, err] Result & error if block supplied
|
27406
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27407
|
+
# @yieldparam err [StandardError] error object if request failed
|
27408
|
+
#
|
27409
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27410
|
+
#
|
27411
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27412
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27413
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27414
|
+
def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27415
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
|
27416
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation
|
27417
|
+
command.request_object = bulk_insert_instance_resource_object
|
27418
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27419
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27420
|
+
command.params['project'] = project unless project.nil?
|
27421
|
+
command.params['region'] = region unless region.nil?
|
27422
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27423
|
+
command.query['fields'] = fields unless fields.nil?
|
27424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27425
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27426
|
+
execute_or_queue_command(command, &block)
|
27427
|
+
end
|
27428
|
+
|
27429
|
+
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
|
27430
|
+
# single instantSnapshot might not necessarily delete all the data on that
|
27431
|
+
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
27432
|
+
# deletion is needed for subsequent instantSnapshots, the data will be moved to
|
27433
|
+
# the next corresponding instantSnapshot.
|
27434
|
+
# For more information, see Deleting instantSnapshots.
|
27435
|
+
# @param [String] project
|
27436
|
+
# Project ID for this request.
|
27437
|
+
# @param [String] region
|
27438
|
+
# The name of the region for this request.
|
27439
|
+
# @param [String] instant_snapshot
|
27440
|
+
# Name of the InstantSnapshot resource to delete.
|
27441
|
+
# @param [String] request_id
|
27442
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27443
|
+
# that if you must retry your request, the server will know to ignore the
|
27444
|
+
# request if it has already been completed.
|
27445
|
+
# For example, consider a situation where you make an initial request and the
|
27446
|
+
# request times out. If you make the request again with the same request ID, the
|
27447
|
+
# server can check if original operation with the same request ID was received,
|
27448
|
+
# and if so, will ignore the second request. This prevents clients from
|
27449
|
+
# accidentally creating duplicate commitments.
|
27450
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27451
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27452
|
+
# @param [String] fields
|
27453
|
+
# Selector specifying which fields to include in a partial response.
|
27454
|
+
# @param [String] quota_user
|
27455
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27456
|
+
# characters.
|
27457
|
+
# @param [String] user_ip
|
27458
|
+
# Deprecated. Please use quotaUser instead.
|
27459
|
+
# @param [Google::Apis::RequestOptions] options
|
27460
|
+
# Request-specific options
|
27461
|
+
#
|
27462
|
+
# @yield [result, err] Result & error if block supplied
|
27463
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27464
|
+
# @yieldparam err [StandardError] error object if request failed
|
27465
|
+
#
|
27466
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27467
|
+
#
|
27468
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27469
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27470
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27471
|
+
def delete_region_instant_snapshot(project, region, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27472
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
|
27473
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27474
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27475
|
+
command.params['project'] = project unless project.nil?
|
27476
|
+
command.params['region'] = region unless region.nil?
|
27477
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
27478
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27479
|
+
command.query['fields'] = fields unless fields.nil?
|
27480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27481
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27482
|
+
execute_or_queue_command(command, &block)
|
27483
|
+
end
|
27484
|
+
|
27485
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
27486
|
+
# in the user specified format.
|
27487
|
+
# @param [String] project
|
27488
|
+
# Project ID for this request.
|
27489
|
+
# @param [String] region
|
27490
|
+
# The name of the zone for this request.
|
27491
|
+
# @param [String] instant_snapshot
|
27492
|
+
# Name of the instant snapshot to export.
|
27493
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstantSnapshotsExportRequest] region_instant_snapshots_export_request_object
|
27494
|
+
# @param [String] request_id
|
27495
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27496
|
+
# that if you must retry your request, the server will know to ignore the
|
27497
|
+
# request if it has already been completed.
|
27498
|
+
# For example, consider a situation where you make an initial request and the
|
27499
|
+
# request times out. If you make the request again with the same request ID, the
|
27500
|
+
# server can check if original operation with the same request ID was received,
|
27501
|
+
# and if so, will ignore the second request. This prevents clients from
|
27502
|
+
# accidentally creating duplicate commitments.
|
27503
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27504
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27505
|
+
# @param [String] fields
|
27506
|
+
# Selector specifying which fields to include in a partial response.
|
27507
|
+
# @param [String] quota_user
|
27508
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27509
|
+
# characters.
|
27510
|
+
# @param [String] user_ip
|
27511
|
+
# Deprecated. Please use quotaUser instead.
|
27512
|
+
# @param [Google::Apis::RequestOptions] options
|
27513
|
+
# Request-specific options
|
27514
|
+
#
|
27515
|
+
# @yield [result, err] Result & error if block supplied
|
27516
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27517
|
+
# @yieldparam err [StandardError] error object if request failed
|
27518
|
+
#
|
27519
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27520
|
+
#
|
27521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27524
|
+
def export_region_instant_snapshot(project, region, instant_snapshot, region_instant_snapshots_export_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27525
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export', options)
|
27526
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstantSnapshotsExportRequest::Representation
|
27527
|
+
command.request_object = region_instant_snapshots_export_request_object
|
27528
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27529
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27530
|
+
command.params['project'] = project unless project.nil?
|
27531
|
+
command.params['region'] = region unless region.nil?
|
27532
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
27533
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27534
|
+
command.query['fields'] = fields unless fields.nil?
|
27535
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27536
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27537
|
+
execute_or_queue_command(command, &block)
|
27538
|
+
end
|
27539
|
+
|
27540
|
+
# Returns the specified InstantSnapshot resource in the specified region.
|
27541
|
+
# @param [String] project
|
27542
|
+
# Project ID for this request.
|
27543
|
+
# @param [String] region
|
27544
|
+
# The name of the region for this request.
|
27545
|
+
# @param [String] instant_snapshot
|
27546
|
+
# Name of the InstantSnapshot resource to return.
|
27547
|
+
# @param [String] fields
|
27548
|
+
# Selector specifying which fields to include in a partial response.
|
27549
|
+
# @param [String] quota_user
|
27550
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27551
|
+
# characters.
|
27552
|
+
# @param [String] user_ip
|
27553
|
+
# Deprecated. Please use quotaUser instead.
|
27554
|
+
# @param [Google::Apis::RequestOptions] options
|
27555
|
+
# Request-specific options
|
27556
|
+
#
|
27557
|
+
# @yield [result, err] Result & error if block supplied
|
27558
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshot] parsed result object
|
27559
|
+
# @yieldparam err [StandardError] error object if request failed
|
27560
|
+
#
|
27561
|
+
# @return [Google::Apis::ComputeAlpha::InstantSnapshot]
|
27562
|
+
#
|
27563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27566
|
+
def get_region_instant_snapshot(project, region, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27567
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
|
27568
|
+
command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
|
27569
|
+
command.response_class = Google::Apis::ComputeAlpha::InstantSnapshot
|
27570
|
+
command.params['project'] = project unless project.nil?
|
27571
|
+
command.params['region'] = region unless region.nil?
|
27572
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
27573
|
+
command.query['fields'] = fields unless fields.nil?
|
27574
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27575
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27576
|
+
execute_or_queue_command(command, &block)
|
27577
|
+
end
|
27578
|
+
|
27579
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
27580
|
+
# or resource exists.
|
27581
|
+
# @param [String] project
|
27582
|
+
# Project ID for this request.
|
27583
|
+
# @param [String] region
|
27584
|
+
# The name of the region for this request.
|
27585
|
+
# @param [String] resource
|
27586
|
+
# Name or id of the resource for this request.
|
27587
|
+
# @param [Fixnum] options_requested_policy_version
|
27588
|
+
# Requested IAM Policy version.
|
27589
|
+
# @param [String] fields
|
27590
|
+
# Selector specifying which fields to include in a partial response.
|
27591
|
+
# @param [String] quota_user
|
27592
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27593
|
+
# characters.
|
27594
|
+
# @param [String] user_ip
|
27595
|
+
# Deprecated. Please use quotaUser instead.
|
27596
|
+
# @param [Google::Apis::RequestOptions] options
|
27597
|
+
# Request-specific options
|
27598
|
+
#
|
27599
|
+
# @yield [result, err] Result & error if block supplied
|
27600
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
27601
|
+
# @yieldparam err [StandardError] error object if request failed
|
27602
|
+
#
|
27603
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
27604
|
+
#
|
27605
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27606
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27607
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27608
|
+
def get_region_instant_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27609
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy', options)
|
27610
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
27611
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
27612
|
+
command.params['project'] = project unless project.nil?
|
27613
|
+
command.params['region'] = region unless region.nil?
|
27614
|
+
command.params['resource'] = resource unless resource.nil?
|
27615
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
27616
|
+
command.query['fields'] = fields unless fields.nil?
|
27617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27618
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27619
|
+
execute_or_queue_command(command, &block)
|
27620
|
+
end
|
27621
|
+
|
27622
|
+
# Creates an instant snapshot in the specified region.
|
27623
|
+
# @param [String] project
|
27624
|
+
# Project ID for this request.
|
27625
|
+
# @param [String] region
|
27626
|
+
# Name of the region for this request.
|
27627
|
+
# @param [Google::Apis::ComputeAlpha::InstantSnapshot] instant_snapshot_object
|
27628
|
+
# @param [String] request_id
|
27629
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27630
|
+
# that if you must retry your request, the server will know to ignore the
|
27631
|
+
# request if it has already been completed.
|
27632
|
+
# For example, consider a situation where you make an initial request and the
|
27633
|
+
# request times out. If you make the request again with the same request ID, the
|
27634
|
+
# server can check if original operation with the same request ID was received,
|
27635
|
+
# and if so, will ignore the second request. This prevents clients from
|
27636
|
+
# accidentally creating duplicate commitments.
|
27637
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27638
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27639
|
+
# @param [String] fields
|
27640
|
+
# Selector specifying which fields to include in a partial response.
|
27641
|
+
# @param [String] quota_user
|
27642
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27643
|
+
# characters.
|
27644
|
+
# @param [String] user_ip
|
27645
|
+
# Deprecated. Please use quotaUser instead.
|
27646
|
+
# @param [Google::Apis::RequestOptions] options
|
27647
|
+
# Request-specific options
|
27648
|
+
#
|
27649
|
+
# @yield [result, err] Result & error if block supplied
|
27650
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27651
|
+
# @yieldparam err [StandardError] error object if request failed
|
27652
|
+
#
|
27653
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27654
|
+
#
|
27655
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27656
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27657
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27658
|
+
def insert_region_instant_snapshot(project, region, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27659
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots', options)
|
27660
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
|
27661
|
+
command.request_object = instant_snapshot_object
|
27662
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27663
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27664
|
+
command.params['project'] = project unless project.nil?
|
27665
|
+
command.params['region'] = region unless region.nil?
|
27666
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27667
|
+
command.query['fields'] = fields unless fields.nil?
|
27668
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27669
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27670
|
+
execute_or_queue_command(command, &block)
|
27671
|
+
end
|
27672
|
+
|
27673
|
+
# Retrieves the list of InstantSnapshot resources contained within the specified
|
27674
|
+
# region.
|
27675
|
+
# @param [String] project
|
27676
|
+
# Project ID for this request.
|
27677
|
+
# @param [String] region
|
27678
|
+
# The name of the region for this request.
|
27679
|
+
# @param [String] filter
|
27680
|
+
# A filter expression that filters resources listed in the response. The
|
27681
|
+
# expression must specify the field name, a comparison operator, and the value
|
27682
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
27683
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
27684
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
27685
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
27686
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
27687
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
27688
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
27689
|
+
# on resource labels.
|
27690
|
+
# To filter on multiple expressions, provide each separate expression within
|
27691
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
27692
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
27693
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
27694
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
27695
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
27696
|
+
# @param [Fixnum] max_results
|
27697
|
+
# The maximum number of results per page that should be returned. If the number
|
27698
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
27699
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
27700
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
27701
|
+
# @param [String] order_by
|
27702
|
+
# Sorts list results by a certain order. By default, results are returned in
|
27703
|
+
# alphanumerical order based on the resource name.
|
27704
|
+
# You can also sort results in descending order based on the creation timestamp
|
27705
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
27706
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
27707
|
+
# Use this to sort resources like operations so that the newest operation is
|
27708
|
+
# returned first.
|
27709
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
27710
|
+
# @param [String] page_token
|
27711
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
27712
|
+
# by a previous list request to get the next page of results.
|
27713
|
+
# @param [Boolean] return_partial_success
|
27714
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
27715
|
+
# failure. The default value is false.
|
27716
|
+
# @param [String] fields
|
27717
|
+
# Selector specifying which fields to include in a partial response.
|
27718
|
+
# @param [String] quota_user
|
27719
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27720
|
+
# characters.
|
27721
|
+
# @param [String] user_ip
|
27722
|
+
# Deprecated. Please use quotaUser instead.
|
27723
|
+
# @param [Google::Apis::RequestOptions] options
|
27724
|
+
# Request-specific options
|
27725
|
+
#
|
27726
|
+
# @yield [result, err] Result & error if block supplied
|
27727
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotList] parsed result object
|
27728
|
+
# @yieldparam err [StandardError] error object if request failed
|
27729
|
+
#
|
27730
|
+
# @return [Google::Apis::ComputeAlpha::InstantSnapshotList]
|
27731
|
+
#
|
27732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27735
|
+
def list_region_instant_snapshots(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)
|
27736
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots', options)
|
27737
|
+
command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotList::Representation
|
27738
|
+
command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotList
|
27739
|
+
command.params['project'] = project unless project.nil?
|
27740
|
+
command.params['region'] = region unless region.nil?
|
27741
|
+
command.query['filter'] = filter unless filter.nil?
|
27742
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
27743
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
27744
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
27745
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
27746
|
+
command.query['fields'] = fields unless fields.nil?
|
27747
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27748
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27749
|
+
execute_or_queue_command(command, &block)
|
27750
|
+
end
|
27751
|
+
|
27752
|
+
# Sets the access control policy on the specified resource. Replaces any
|
27753
|
+
# existing policy.
|
27754
|
+
# @param [String] project
|
27755
|
+
# Project ID for this request.
|
27756
|
+
# @param [String] region
|
27757
|
+
# The name of the region for this request.
|
27758
|
+
# @param [String] resource
|
27759
|
+
# Name or id of the resource for this request.
|
27760
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
27761
|
+
# @param [String] fields
|
27762
|
+
# Selector specifying which fields to include in a partial response.
|
27763
|
+
# @param [String] quota_user
|
27764
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27765
|
+
# characters.
|
27766
|
+
# @param [String] user_ip
|
27767
|
+
# Deprecated. Please use quotaUser instead.
|
27768
|
+
# @param [Google::Apis::RequestOptions] options
|
27769
|
+
# Request-specific options
|
27770
|
+
#
|
27771
|
+
# @yield [result, err] Result & error if block supplied
|
27772
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
27773
|
+
# @yieldparam err [StandardError] error object if request failed
|
27774
|
+
#
|
27775
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
27776
|
+
#
|
27777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27780
|
+
def set_region_instant_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27781
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy', options)
|
27782
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
27783
|
+
command.request_object = region_set_policy_request_object
|
27784
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
27785
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
27786
|
+
command.params['project'] = project unless project.nil?
|
27787
|
+
command.params['region'] = region unless region.nil?
|
27788
|
+
command.params['resource'] = resource unless resource.nil?
|
27789
|
+
command.query['fields'] = fields unless fields.nil?
|
27790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27791
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27792
|
+
execute_or_queue_command(command, &block)
|
27793
|
+
end
|
27794
|
+
|
27795
|
+
# Sets the labels on a instantSnapshot in the given region. To learn more about
|
27796
|
+
# labels, read the Labeling Resources documentation.
|
27797
|
+
# @param [String] project
|
27798
|
+
# Project ID for this request.
|
27799
|
+
# @param [String] region
|
27800
|
+
# The region for this request.
|
27801
|
+
# @param [String] resource
|
27802
|
+
# Name or id of the resource for this request.
|
27803
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
|
27804
|
+
# @param [String] request_id
|
27805
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27806
|
+
# that if you must retry your request, the server will know to ignore the
|
27807
|
+
# request if it has already been completed.
|
27808
|
+
# For example, consider a situation where you make an initial request and the
|
27809
|
+
# request times out. If you make the request again with the same request ID, the
|
27810
|
+
# server can check if original operation with the same request ID was received,
|
27811
|
+
# and if so, will ignore the second request. This prevents clients from
|
27812
|
+
# accidentally creating duplicate commitments.
|
27813
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27814
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27815
|
+
# @param [String] fields
|
27816
|
+
# Selector specifying which fields to include in a partial response.
|
27817
|
+
# @param [String] quota_user
|
27818
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27819
|
+
# characters.
|
27820
|
+
# @param [String] user_ip
|
27821
|
+
# Deprecated. Please use quotaUser instead.
|
27822
|
+
# @param [Google::Apis::RequestOptions] options
|
27823
|
+
# Request-specific options
|
27824
|
+
#
|
27825
|
+
# @yield [result, err] Result & error if block supplied
|
27826
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27827
|
+
# @yieldparam err [StandardError] error object if request failed
|
27828
|
+
#
|
27829
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27830
|
+
#
|
27831
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27832
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27833
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27834
|
+
def set_region_instant_snapshot_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27835
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels', options)
|
27836
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
|
27837
|
+
command.request_object = region_set_labels_request_object
|
27838
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27839
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27840
|
+
command.params['project'] = project unless project.nil?
|
27841
|
+
command.params['region'] = region unless region.nil?
|
27842
|
+
command.params['resource'] = resource unless resource.nil?
|
27843
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27844
|
+
command.query['fields'] = fields unless fields.nil?
|
27845
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27846
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27847
|
+
execute_or_queue_command(command, &block)
|
27848
|
+
end
|
27849
|
+
|
27850
|
+
# Returns permissions that a caller has on the specified resource.
|
27851
|
+
# @param [String] project
|
27852
|
+
# Project ID for this request.
|
27853
|
+
# @param [String] region
|
27854
|
+
# The name of the region for this request.
|
27855
|
+
# @param [String] resource
|
27856
|
+
# Name or id of the resource for this request.
|
27857
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
27858
|
+
# @param [String] fields
|
27859
|
+
# Selector specifying which fields to include in a partial response.
|
27860
|
+
# @param [String] quota_user
|
27861
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27862
|
+
# characters.
|
27863
|
+
# @param [String] user_ip
|
27864
|
+
# Deprecated. Please use quotaUser instead.
|
27865
|
+
# @param [Google::Apis::RequestOptions] options
|
27866
|
+
# Request-specific options
|
27867
|
+
#
|
27868
|
+
# @yield [result, err] Result & error if block supplied
|
27869
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
27870
|
+
# @yieldparam err [StandardError] error object if request failed
|
27871
|
+
#
|
27872
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
27873
|
+
#
|
27874
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27875
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27876
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27877
|
+
def test_region_instant_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27878
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions', options)
|
27879
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
27880
|
+
command.request_object = test_permissions_request_object
|
27881
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
27882
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
27883
|
+
command.params['project'] = project unless project.nil?
|
27884
|
+
command.params['region'] = region unless region.nil?
|
27885
|
+
command.params['resource'] = resource unless resource.nil?
|
27886
|
+
command.query['fields'] = fields unless fields.nil?
|
27887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27888
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27889
|
+
execute_or_queue_command(command, &block)
|
27890
|
+
end
|
27891
|
+
|
27892
|
+
# Deletes the specified network endpoint group. Note that the NEG cannot be
|
27893
|
+
# deleted if it is configured as a backend of a backend service.
|
27894
|
+
# @param [String] project
|
27895
|
+
# Project ID for this request.
|
27896
|
+
# @param [String] region
|
27897
|
+
# The name of the region where the network endpoint group is located. It should
|
27898
|
+
# comply with RFC1035.
|
27899
|
+
# @param [String] network_endpoint_group
|
27900
|
+
# The name of the network endpoint group to delete. It should comply with
|
27901
|
+
# RFC1035.
|
27902
|
+
# @param [String] request_id
|
27903
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27904
|
+
# that if you must retry your request, the server will know to ignore the
|
27905
|
+
# request if it has already been completed.
|
27906
|
+
# For example, consider a situation where you make an initial request and the
|
27907
|
+
# request times out. If you make the request again with the same request ID, the
|
27908
|
+
# server can check if original operation with the same request ID was received,
|
27909
|
+
# and if so, will ignore the second request. This prevents clients from
|
27910
|
+
# accidentally creating duplicate commitments.
|
27911
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27912
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27913
|
+
# @param [String] fields
|
27914
|
+
# Selector specifying which fields to include in a partial response.
|
27915
|
+
# @param [String] quota_user
|
27916
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27917
|
+
# characters.
|
27918
|
+
# @param [String] user_ip
|
27919
|
+
# Deprecated. Please use quotaUser instead.
|
27920
|
+
# @param [Google::Apis::RequestOptions] options
|
27921
|
+
# Request-specific options
|
27922
|
+
#
|
27923
|
+
# @yield [result, err] Result & error if block supplied
|
27924
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27925
|
+
# @yieldparam err [StandardError] error object if request failed
|
27926
|
+
#
|
27927
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27928
|
+
#
|
27929
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27930
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27931
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27932
|
+
def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27933
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
|
27934
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27935
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27936
|
+
command.params['project'] = project unless project.nil?
|
27937
|
+
command.params['region'] = region unless region.nil?
|
27938
|
+
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
27939
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27940
|
+
command.query['fields'] = fields unless fields.nil?
|
27941
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27942
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27943
|
+
execute_or_queue_command(command, &block)
|
27944
|
+
end
|
27945
|
+
|
27946
|
+
# Returns the specified network endpoint group. Gets a list of available network
|
27947
|
+
# endpoint groups by making a list() request.
|
27948
|
+
# @param [String] project
|
27949
|
+
# Project ID for this request.
|
27950
|
+
# @param [String] region
|
27951
|
+
# The name of the region where the network endpoint group is located. It should
|
27952
|
+
# comply with RFC1035.
|
27953
|
+
# @param [String] network_endpoint_group
|
27954
|
+
# The name of the network endpoint group. It should comply with RFC1035.
|
27955
|
+
# @param [String] fields
|
27956
|
+
# Selector specifying which fields to include in a partial response.
|
27957
|
+
# @param [String] quota_user
|
27958
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27959
|
+
# characters.
|
27960
|
+
# @param [String] user_ip
|
27961
|
+
# Deprecated. Please use quotaUser instead.
|
27962
|
+
# @param [Google::Apis::RequestOptions] options
|
27963
|
+
# Request-specific options
|
27964
|
+
#
|
27965
|
+
# @yield [result, err] Result & error if block supplied
|
27966
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
|
27967
|
+
# @yieldparam err [StandardError] error object if request failed
|
27968
|
+
#
|
27969
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
|
27970
|
+
#
|
27971
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27972
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27973
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27974
|
+
def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27975
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
|
27976
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
|
27977
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
|
27978
|
+
command.params['project'] = project unless project.nil?
|
27979
|
+
command.params['region'] = region unless region.nil?
|
27980
|
+
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
27981
|
+
command.query['fields'] = fields unless fields.nil?
|
27982
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27983
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27984
|
+
execute_or_queue_command(command, &block)
|
27985
|
+
end
|
27986
|
+
|
27987
|
+
# Creates a network endpoint group in the specified project using the parameters
|
27988
|
+
# that are included in the request.
|
27989
|
+
# @param [String] project
|
27990
|
+
# Project ID for this request.
|
27991
|
+
# @param [String] region
|
27992
|
+
# The name of the region where you want to create the network endpoint group. It
|
27993
|
+
# should comply with RFC1035.
|
27994
|
+
# @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
|
27995
|
+
# @param [String] request_id
|
27996
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27997
|
+
# that if you must retry your request, the server will know to ignore the
|
27998
|
+
# request if it has already been completed.
|
27999
|
+
# For example, consider a situation where you make an initial request and the
|
28000
|
+
# request times out. If you make the request again with the same request ID, the
|
28001
|
+
# server can check if original operation with the same request ID was received,
|
28002
|
+
# and if so, will ignore the second request. This prevents clients from
|
28003
|
+
# accidentally creating duplicate commitments.
|
28004
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28005
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28006
|
+
# @param [String] fields
|
28007
|
+
# Selector specifying which fields to include in a partial response.
|
28008
|
+
# @param [String] quota_user
|
28009
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28010
|
+
# characters.
|
28011
|
+
# @param [String] user_ip
|
28012
|
+
# Deprecated. Please use quotaUser instead.
|
28013
|
+
# @param [Google::Apis::RequestOptions] options
|
28014
|
+
# Request-specific options
|
28015
|
+
#
|
28016
|
+
# @yield [result, err] Result & error if block supplied
|
28017
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28018
|
+
# @yieldparam err [StandardError] error object if request failed
|
28019
|
+
#
|
28020
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28021
|
+
#
|
28022
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28023
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28024
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28025
|
+
def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28026
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
|
28027
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
|
28028
|
+
command.request_object = network_endpoint_group_object
|
28029
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28030
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28031
|
+
command.params['project'] = project unless project.nil?
|
28032
|
+
command.params['region'] = region unless region.nil?
|
28033
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28034
|
+
command.query['fields'] = fields unless fields.nil?
|
28035
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28036
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28037
|
+
execute_or_queue_command(command, &block)
|
28038
|
+
end
|
28039
|
+
|
28040
|
+
# Retrieves the list of regional network endpoint groups available to the
|
28041
|
+
# specified project in the given region.
|
28042
|
+
# @param [String] project
|
28043
|
+
# Project ID for this request.
|
28044
|
+
# @param [String] region
|
28045
|
+
# The name of the region where the network endpoint group is located. It should
|
28046
|
+
# comply with RFC1035.
|
28047
|
+
# @param [String] filter
|
28048
|
+
# A filter expression that filters resources listed in the response. The
|
28049
|
+
# expression must specify the field name, a comparison operator, and the value
|
28050
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
28051
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
28052
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
28053
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
28054
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
28055
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
28056
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
28057
|
+
# on resource labels.
|
28058
|
+
# To filter on multiple expressions, provide each separate expression within
|
28059
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
28060
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
28061
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
28062
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
28063
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
28064
|
+
# @param [Fixnum] max_results
|
28065
|
+
# The maximum number of results per page that should be returned. If the number
|
28066
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28067
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
28068
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28069
|
+
# @param [String] order_by
|
28070
|
+
# Sorts list results by a certain order. By default, results are returned in
|
28071
|
+
# alphanumerical order based on the resource name.
|
28072
|
+
# You can also sort results in descending order based on the creation timestamp
|
28073
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
28074
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
28075
|
+
# Use this to sort resources like operations so that the newest operation is
|
28076
|
+
# returned first.
|
28077
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28078
|
+
# @param [String] page_token
|
28079
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28080
|
+
# by a previous list request to get the next page of results.
|
28081
|
+
# @param [Boolean] return_partial_success
|
28082
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
28083
|
+
# failure. The default value is false.
|
28084
|
+
# @param [String] fields
|
28085
|
+
# Selector specifying which fields to include in a partial response.
|
28086
|
+
# @param [String] quota_user
|
28087
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28088
|
+
# characters.
|
28089
|
+
# @param [String] user_ip
|
28090
|
+
# Deprecated. Please use quotaUser instead.
|
28091
|
+
# @param [Google::Apis::RequestOptions] options
|
28092
|
+
# Request-specific options
|
28093
|
+
#
|
28094
|
+
# @yield [result, err] Result & error if block supplied
|
28095
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
|
26604
28096
|
# @yieldparam err [StandardError] error object if request failed
|
26605
28097
|
#
|
26606
|
-
# @return [Google::Apis::ComputeAlpha::
|
28098
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
|
26607
28099
|
#
|
26608
28100
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26609
28101
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26610
28102
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26611
|
-
def
|
26612
|
-
command = make_simple_command(:
|
26613
|
-
command.
|
26614
|
-
command.
|
26615
|
-
command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances::Representation
|
26616
|
-
command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances
|
28103
|
+
def list_region_network_endpoint_groups(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)
|
28104
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
|
28105
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
|
28106
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
|
26617
28107
|
command.params['project'] = project unless project.nil?
|
26618
28108
|
command.params['region'] = region unless region.nil?
|
26619
|
-
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
26620
28109
|
command.query['filter'] = filter unless filter.nil?
|
26621
28110
|
command.query['maxResults'] = max_results unless max_results.nil?
|
26622
28111
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -26628,14 +28117,18 @@ module Google
|
|
26628
28117
|
execute_or_queue_command(command, &block)
|
26629
28118
|
end
|
26630
28119
|
|
26631
|
-
#
|
28120
|
+
# Inserts an association for the specified network firewall policy.
|
26632
28121
|
# @param [String] project
|
26633
28122
|
# Project ID for this request.
|
26634
28123
|
# @param [String] region
|
26635
28124
|
# Name of the region scoping this request.
|
26636
|
-
# @param [String]
|
26637
|
-
#
|
26638
|
-
# @param [Google::Apis::ComputeAlpha::
|
28125
|
+
# @param [String] firewall_policy
|
28126
|
+
# Name of the firewall policy to update.
|
28127
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
|
28128
|
+
# @param [Boolean] replace_existing_association
|
28129
|
+
# Indicates whether or not to replace it if an association already exists. This
|
28130
|
+
# is false by default, in which case an error will be returned if an association
|
28131
|
+
# already exists.
|
26639
28132
|
# @param [String] request_id
|
26640
28133
|
# An optional request ID to identify requests. Specify a unique request ID so
|
26641
28134
|
# that if you must retry your request, the server will know to ignore the
|
@@ -26666,15 +28159,16 @@ module Google
|
|
26666
28159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26667
28160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26668
28161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26669
|
-
def
|
26670
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
26671
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
26672
|
-
command.request_object =
|
28162
|
+
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)
|
28163
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
|
28164
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
28165
|
+
command.request_object = firewall_policy_association_object
|
26673
28166
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26674
28167
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26675
28168
|
command.params['project'] = project unless project.nil?
|
26676
28169
|
command.params['region'] = region unless region.nil?
|
26677
|
-
command.params['
|
28170
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28171
|
+
command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
|
26678
28172
|
command.query['requestId'] = request_id unless request_id.nil?
|
26679
28173
|
command.query['fields'] = fields unless fields.nil?
|
26680
28174
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -26682,14 +28176,25 @@ module Google
|
|
26682
28176
|
execute_or_queue_command(command, &block)
|
26683
28177
|
end
|
26684
28178
|
|
26685
|
-
#
|
28179
|
+
# Inserts a rule into a network firewall policy.
|
26686
28180
|
# @param [String] project
|
26687
28181
|
# Project ID for this request.
|
26688
28182
|
# @param [String] region
|
26689
|
-
#
|
26690
|
-
# @param [String]
|
26691
|
-
# Name
|
26692
|
-
# @param [Google::Apis::ComputeAlpha::
|
28183
|
+
# Name of the region scoping this request.
|
28184
|
+
# @param [String] firewall_policy
|
28185
|
+
# Name of the firewall policy to update.
|
28186
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
28187
|
+
# @param [String] request_id
|
28188
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28189
|
+
# that if you must retry your request, the server will know to ignore the
|
28190
|
+
# request if it has already been completed.
|
28191
|
+
# For example, consider a situation where you make an initial request and the
|
28192
|
+
# request times out. If you make the request again with the same request ID, the
|
28193
|
+
# server can check if original operation with the same request ID was received,
|
28194
|
+
# and if so, will ignore the second request. This prevents clients from
|
28195
|
+
# accidentally creating duplicate commitments.
|
28196
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28197
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26693
28198
|
# @param [String] fields
|
26694
28199
|
# Selector specifying which fields to include in a partial response.
|
26695
28200
|
# @param [String] quota_user
|
@@ -26701,36 +28206,37 @@ module Google
|
|
26701
28206
|
# Request-specific options
|
26702
28207
|
#
|
26703
28208
|
# @yield [result, err] Result & error if block supplied
|
26704
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28209
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26705
28210
|
# @yieldparam err [StandardError] error object if request failed
|
26706
28211
|
#
|
26707
|
-
# @return [Google::Apis::ComputeAlpha::
|
28212
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26708
28213
|
#
|
26709
28214
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26710
28215
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26711
28216
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26712
|
-
def
|
26713
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
26714
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
26715
|
-
command.request_object =
|
26716
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
26717
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
28217
|
+
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)
|
28218
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
|
28219
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28220
|
+
command.request_object = firewall_policy_rule_object
|
28221
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28222
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26718
28223
|
command.params['project'] = project unless project.nil?
|
26719
28224
|
command.params['region'] = region unless region.nil?
|
26720
|
-
command.params['
|
28225
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28226
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26721
28227
|
command.query['fields'] = fields unless fields.nil?
|
26722
28228
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26723
28229
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
26724
28230
|
execute_or_queue_command(command, &block)
|
26725
28231
|
end
|
26726
28232
|
|
26727
|
-
#
|
26728
|
-
# instances to create.
|
28233
|
+
# Copies rules to the specified network firewall policy.
|
26729
28234
|
# @param [String] project
|
26730
28235
|
# Project ID for this request.
|
26731
28236
|
# @param [String] region
|
26732
|
-
#
|
26733
|
-
# @param [
|
28237
|
+
# Name of the region scoping this request.
|
28238
|
+
# @param [String] firewall_policy
|
28239
|
+
# Name of the firewall policy to update.
|
26734
28240
|
# @param [String] request_id
|
26735
28241
|
# An optional request ID to identify requests. Specify a unique request ID so
|
26736
28242
|
# that if you must retry your request, the server will know to ignore the
|
@@ -26742,6 +28248,8 @@ module Google
|
|
26742
28248
|
# accidentally creating duplicate commitments.
|
26743
28249
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26744
28250
|
# supported (00000000-0000-0000-0000-000000000000).
|
28251
|
+
# @param [String] source_firewall_policy
|
28252
|
+
# The firewall policy from which to copy rules.
|
26745
28253
|
# @param [String] fields
|
26746
28254
|
# Selector specifying which fields to include in a partial response.
|
26747
28255
|
# @param [String] quota_user
|
@@ -26761,33 +28269,28 @@ module Google
|
|
26761
28269
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26762
28270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26763
28271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26764
|
-
def
|
26765
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
26766
|
-
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation
|
26767
|
-
command.request_object = bulk_insert_instance_resource_object
|
28272
|
+
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)
|
28273
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules', options)
|
26768
28274
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26769
28275
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26770
28276
|
command.params['project'] = project unless project.nil?
|
26771
28277
|
command.params['region'] = region unless region.nil?
|
28278
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
26772
28279
|
command.query['requestId'] = request_id unless request_id.nil?
|
28280
|
+
command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
|
26773
28281
|
command.query['fields'] = fields unless fields.nil?
|
26774
28282
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26775
28283
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
26776
28284
|
execute_or_queue_command(command, &block)
|
26777
28285
|
end
|
26778
28286
|
|
26779
|
-
# Deletes the specified
|
26780
|
-
# single instantSnapshot might not necessarily delete all the data on that
|
26781
|
-
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
26782
|
-
# deletion is needed for subsequent instantSnapshots, the data will be moved to
|
26783
|
-
# the next corresponding instantSnapshot.
|
26784
|
-
# For more information, see Deleting instantSnapshots.
|
28287
|
+
# Deletes the specified network firewall policy.
|
26785
28288
|
# @param [String] project
|
26786
28289
|
# Project ID for this request.
|
26787
28290
|
# @param [String] region
|
26788
|
-
#
|
26789
|
-
# @param [String]
|
26790
|
-
# Name of the
|
28291
|
+
# Name of the region scoping this request.
|
28292
|
+
# @param [String] firewall_policy
|
28293
|
+
# Name of the firewall policy to delete.
|
26791
28294
|
# @param [String] request_id
|
26792
28295
|
# An optional request ID to identify requests. Specify a unique request ID so
|
26793
28296
|
# that if you must retry your request, the server will know to ignore the
|
@@ -26818,13 +28321,13 @@ module Google
|
|
26818
28321
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26819
28322
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26820
28323
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26821
|
-
def
|
26822
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/
|
28324
|
+
def delete_region_network_firewall_policy(project, region, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28325
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
26823
28326
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26824
28327
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26825
28328
|
command.params['project'] = project unless project.nil?
|
26826
28329
|
command.params['region'] = region unless region.nil?
|
26827
|
-
command.params['
|
28330
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
26828
28331
|
command.query['requestId'] = request_id unless request_id.nil?
|
26829
28332
|
command.query['fields'] = fields unless fields.nil?
|
26830
28333
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -26832,26 +28335,13 @@ module Google
|
|
26832
28335
|
execute_or_queue_command(command, &block)
|
26833
28336
|
end
|
26834
28337
|
|
26835
|
-
#
|
26836
|
-
# in the user specified format.
|
28338
|
+
# Returns the specified network firewall policy.
|
26837
28339
|
# @param [String] project
|
26838
28340
|
# Project ID for this request.
|
26839
28341
|
# @param [String] region
|
26840
|
-
#
|
26841
|
-
# @param [String]
|
26842
|
-
# Name of the
|
26843
|
-
# @param [Google::Apis::ComputeAlpha::RegionInstantSnapshotsExportRequest] region_instant_snapshots_export_request_object
|
26844
|
-
# @param [String] request_id
|
26845
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
26846
|
-
# that if you must retry your request, the server will know to ignore the
|
26847
|
-
# request if it has already been completed.
|
26848
|
-
# For example, consider a situation where you make an initial request and the
|
26849
|
-
# request times out. If you make the request again with the same request ID, the
|
26850
|
-
# server can check if original operation with the same request ID was received,
|
26851
|
-
# and if so, will ignore the second request. This prevents clients from
|
26852
|
-
# accidentally creating duplicate commitments.
|
26853
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26854
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
28342
|
+
# Name of the region scoping this request.
|
28343
|
+
# @param [String] firewall_policy
|
28344
|
+
# Name of the firewall policy to get.
|
26855
28345
|
# @param [String] fields
|
26856
28346
|
# Selector specifying which fields to include in a partial response.
|
26857
28347
|
# @param [String] quota_user
|
@@ -26863,37 +28353,36 @@ module Google
|
|
26863
28353
|
# Request-specific options
|
26864
28354
|
#
|
26865
28355
|
# @yield [result, err] Result & error if block supplied
|
26866
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28356
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
|
26867
28357
|
# @yieldparam err [StandardError] error object if request failed
|
26868
28358
|
#
|
26869
|
-
# @return [Google::Apis::ComputeAlpha::
|
28359
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicy]
|
26870
28360
|
#
|
26871
28361
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26872
28362
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26873
28363
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26874
|
-
def
|
26875
|
-
command = make_simple_command(:
|
26876
|
-
command.
|
26877
|
-
command.
|
26878
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26879
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28364
|
+
def get_region_network_firewall_policy(project, region, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28365
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
28366
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
28367
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
|
26880
28368
|
command.params['project'] = project unless project.nil?
|
26881
28369
|
command.params['region'] = region unless region.nil?
|
26882
|
-
command.params['
|
26883
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
28370
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
26884
28371
|
command.query['fields'] = fields unless fields.nil?
|
26885
28372
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26886
28373
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
26887
28374
|
execute_or_queue_command(command, &block)
|
26888
28375
|
end
|
26889
28376
|
|
26890
|
-
#
|
28377
|
+
# Gets an association with the specified name.
|
26891
28378
|
# @param [String] project
|
26892
28379
|
# Project ID for this request.
|
26893
28380
|
# @param [String] region
|
26894
|
-
#
|
26895
|
-
# @param [String]
|
26896
|
-
# Name of the
|
28381
|
+
# Name of the region scoping this request.
|
28382
|
+
# @param [String] firewall_policy
|
28383
|
+
# Name of the firewall policy to which the queried association belongs.
|
28384
|
+
# @param [String] name
|
28385
|
+
# The name of the association to get from the firewall policy.
|
26897
28386
|
# @param [String] fields
|
26898
28387
|
# Selector specifying which fields to include in a partial response.
|
26899
28388
|
# @param [String] quota_user
|
@@ -26905,21 +28394,22 @@ module Google
|
|
26905
28394
|
# Request-specific options
|
26906
28395
|
#
|
26907
28396
|
# @yield [result, err] Result & error if block supplied
|
26908
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28397
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
|
26909
28398
|
# @yieldparam err [StandardError] error object if request failed
|
26910
28399
|
#
|
26911
|
-
# @return [Google::Apis::ComputeAlpha::
|
28400
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
|
26912
28401
|
#
|
26913
28402
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26914
28403
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26915
28404
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26916
|
-
def
|
26917
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
26918
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
26919
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
28405
|
+
def get_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28406
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation', options)
|
28407
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
28408
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
|
26920
28409
|
command.params['project'] = project unless project.nil?
|
26921
28410
|
command.params['region'] = region unless region.nil?
|
26922
|
-
command.params['
|
28411
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28412
|
+
command.query['name'] = name unless name.nil?
|
26923
28413
|
command.query['fields'] = fields unless fields.nil?
|
26924
28414
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26925
28415
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -26955,8 +28445,8 @@ module Google
|
|
26955
28445
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26956
28446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26957
28447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26958
|
-
def
|
26959
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
28448
|
+
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)
|
28449
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy', options)
|
26960
28450
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
26961
28451
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
26962
28452
|
command.params['project'] = project unless project.nil?
|
@@ -26969,12 +28459,54 @@ module Google
|
|
26969
28459
|
execute_or_queue_command(command, &block)
|
26970
28460
|
end
|
26971
28461
|
|
26972
|
-
#
|
28462
|
+
# Gets a rule of the specified priority.
|
26973
28463
|
# @param [String] project
|
26974
28464
|
# Project ID for this request.
|
26975
28465
|
# @param [String] region
|
26976
|
-
# Name of the region
|
26977
|
-
# @param [
|
28466
|
+
# Name of the region scoping this request.
|
28467
|
+
# @param [String] firewall_policy
|
28468
|
+
# Name of the firewall policy to which the queried rule belongs.
|
28469
|
+
# @param [Fixnum] priority
|
28470
|
+
# The priority of the rule to get from the firewall policy.
|
28471
|
+
# @param [String] fields
|
28472
|
+
# Selector specifying which fields to include in a partial response.
|
28473
|
+
# @param [String] quota_user
|
28474
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28475
|
+
# characters.
|
28476
|
+
# @param [String] user_ip
|
28477
|
+
# Deprecated. Please use quotaUser instead.
|
28478
|
+
# @param [Google::Apis::RequestOptions] options
|
28479
|
+
# Request-specific options
|
28480
|
+
#
|
28481
|
+
# @yield [result, err] Result & error if block supplied
|
28482
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
|
28483
|
+
# @yieldparam err [StandardError] error object if request failed
|
28484
|
+
#
|
28485
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
|
28486
|
+
#
|
28487
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28488
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28489
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28490
|
+
def get_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28491
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule', options)
|
28492
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28493
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
|
28494
|
+
command.params['project'] = project unless project.nil?
|
28495
|
+
command.params['region'] = region unless region.nil?
|
28496
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28497
|
+
command.query['priority'] = priority unless priority.nil?
|
28498
|
+
command.query['fields'] = fields unless fields.nil?
|
28499
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28500
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28501
|
+
execute_or_queue_command(command, &block)
|
28502
|
+
end
|
28503
|
+
|
28504
|
+
# Creates a new network firewall policy in the specified project and region.
|
28505
|
+
# @param [String] project
|
28506
|
+
# Project ID for this request.
|
28507
|
+
# @param [String] region
|
28508
|
+
# Name of the region scoping this request.
|
28509
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
26978
28510
|
# @param [String] request_id
|
26979
28511
|
# An optional request ID to identify requests. Specify a unique request ID so
|
26980
28512
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27005,10 +28537,10 @@ module Google
|
|
27005
28537
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27006
28538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27007
28539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27008
|
-
def
|
27009
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
27010
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
27011
|
-
command.request_object =
|
28540
|
+
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)
|
28541
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
28542
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
28543
|
+
command.request_object = firewall_policy_object
|
27012
28544
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27013
28545
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27014
28546
|
command.params['project'] = project unless project.nil?
|
@@ -27020,12 +28552,12 @@ module Google
|
|
27020
28552
|
execute_or_queue_command(command, &block)
|
27021
28553
|
end
|
27022
28554
|
|
27023
|
-
#
|
27024
|
-
# region.
|
28555
|
+
# Lists all the network firewall policies that have been configured for the
|
28556
|
+
# specified project in the given region.
|
27025
28557
|
# @param [String] project
|
27026
28558
|
# Project ID for this request.
|
27027
28559
|
# @param [String] region
|
27028
|
-
#
|
28560
|
+
# Name of the region scoping this request.
|
27029
28561
|
# @param [String] filter
|
27030
28562
|
# A filter expression that filters resources listed in the response. The
|
27031
28563
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -27074,18 +28606,18 @@ module Google
|
|
27074
28606
|
# Request-specific options
|
27075
28607
|
#
|
27076
28608
|
# @yield [result, err] Result & error if block supplied
|
27077
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28609
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
|
27078
28610
|
# @yieldparam err [StandardError] error object if request failed
|
27079
28611
|
#
|
27080
|
-
# @return [Google::Apis::ComputeAlpha::
|
28612
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
|
27081
28613
|
#
|
27082
28614
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27083
28615
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27084
28616
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27085
|
-
def
|
27086
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
27087
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27088
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
28617
|
+
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)
|
28618
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
28619
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
|
28620
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
|
27089
28621
|
command.params['project'] = project unless project.nil?
|
27090
28622
|
command.params['region'] = region unless region.nil?
|
27091
28623
|
command.query['filter'] = filter unless filter.nil?
|
@@ -27099,15 +28631,25 @@ module Google
|
|
27099
28631
|
execute_or_queue_command(command, &block)
|
27100
28632
|
end
|
27101
28633
|
|
27102
|
-
#
|
27103
|
-
# existing policy.
|
28634
|
+
# Patches the specified network firewall policy.
|
27104
28635
|
# @param [String] project
|
27105
28636
|
# Project ID for this request.
|
27106
28637
|
# @param [String] region
|
27107
|
-
#
|
27108
|
-
# @param [String]
|
27109
|
-
# Name
|
27110
|
-
# @param [Google::Apis::ComputeAlpha::
|
28638
|
+
# Name of the region scoping this request.
|
28639
|
+
# @param [String] firewall_policy
|
28640
|
+
# Name of the firewall policy to update.
|
28641
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
28642
|
+
# @param [String] request_id
|
28643
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28644
|
+
# that if you must retry your request, the server will know to ignore the
|
28645
|
+
# request if it has already been completed.
|
28646
|
+
# For example, consider a situation where you make an initial request and the
|
28647
|
+
# request times out. If you make the request again with the same request ID, the
|
28648
|
+
# server can check if original operation with the same request ID was received,
|
28649
|
+
# and if so, will ignore the second request. This prevents clients from
|
28650
|
+
# accidentally creating duplicate commitments.
|
28651
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28652
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27111
28653
|
# @param [String] fields
|
27112
28654
|
# Selector specifying which fields to include in a partial response.
|
27113
28655
|
# @param [String] quota_user
|
@@ -27119,38 +28661,40 @@ module Google
|
|
27119
28661
|
# Request-specific options
|
27120
28662
|
#
|
27121
28663
|
# @yield [result, err] Result & error if block supplied
|
27122
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28664
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27123
28665
|
# @yieldparam err [StandardError] error object if request failed
|
27124
28666
|
#
|
27125
|
-
# @return [Google::Apis::ComputeAlpha::
|
28667
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27126
28668
|
#
|
27127
28669
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27128
28670
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27129
28671
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27130
|
-
def
|
27131
|
-
command = make_simple_command(:
|
27132
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
27133
|
-
command.request_object =
|
27134
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27135
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
28672
|
+
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)
|
28673
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
28674
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
28675
|
+
command.request_object = firewall_policy_object
|
28676
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28677
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27136
28678
|
command.params['project'] = project unless project.nil?
|
27137
28679
|
command.params['region'] = region unless region.nil?
|
27138
|
-
command.params['
|
28680
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28681
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27139
28682
|
command.query['fields'] = fields unless fields.nil?
|
27140
28683
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27141
28684
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27142
28685
|
execute_or_queue_command(command, &block)
|
27143
28686
|
end
|
27144
28687
|
|
27145
|
-
#
|
27146
|
-
# labels, read the Labeling Resources documentation.
|
28688
|
+
# Patches a rule of the specified priority.
|
27147
28689
|
# @param [String] project
|
27148
28690
|
# Project ID for this request.
|
27149
28691
|
# @param [String] region
|
27150
|
-
#
|
27151
|
-
# @param [String]
|
27152
|
-
# Name
|
27153
|
-
# @param [Google::Apis::ComputeAlpha::
|
28692
|
+
# Name of the region scoping this request.
|
28693
|
+
# @param [String] firewall_policy
|
28694
|
+
# Name of the firewall policy to update.
|
28695
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
28696
|
+
# @param [Fixnum] priority
|
28697
|
+
# The priority of the rule to patch.
|
27154
28698
|
# @param [String] request_id
|
27155
28699
|
# An optional request ID to identify requests. Specify a unique request ID so
|
27156
28700
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27181,15 +28725,16 @@ module Google
|
|
27181
28725
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27182
28726
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27183
28727
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27184
|
-
def
|
27185
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
27186
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
27187
|
-
command.request_object =
|
28728
|
+
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)
|
28729
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
|
28730
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28731
|
+
command.request_object = firewall_policy_rule_object
|
27188
28732
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27189
28733
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27190
28734
|
command.params['project'] = project unless project.nil?
|
27191
28735
|
command.params['region'] = region unless region.nil?
|
27192
|
-
command.params['
|
28736
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28737
|
+
command.query['priority'] = priority unless priority.nil?
|
27193
28738
|
command.query['requestId'] = request_id unless request_id.nil?
|
27194
28739
|
command.query['fields'] = fields unless fields.nil?
|
27195
28740
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -27197,58 +28742,15 @@ module Google
|
|
27197
28742
|
execute_or_queue_command(command, &block)
|
27198
28743
|
end
|
27199
28744
|
|
27200
|
-
#
|
28745
|
+
# Removes an association for the specified network firewall policy.
|
27201
28746
|
# @param [String] project
|
27202
28747
|
# Project ID for this request.
|
27203
28748
|
# @param [String] region
|
27204
|
-
#
|
27205
|
-
# @param [String]
|
27206
|
-
# Name
|
27207
|
-
# @param [
|
27208
|
-
#
|
27209
|
-
# Selector specifying which fields to include in a partial response.
|
27210
|
-
# @param [String] quota_user
|
27211
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27212
|
-
# characters.
|
27213
|
-
# @param [String] user_ip
|
27214
|
-
# Deprecated. Please use quotaUser instead.
|
27215
|
-
# @param [Google::Apis::RequestOptions] options
|
27216
|
-
# Request-specific options
|
27217
|
-
#
|
27218
|
-
# @yield [result, err] Result & error if block supplied
|
27219
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
27220
|
-
# @yieldparam err [StandardError] error object if request failed
|
27221
|
-
#
|
27222
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
27223
|
-
#
|
27224
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27225
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27226
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27227
|
-
def test_region_instant_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27228
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions', options)
|
27229
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
27230
|
-
command.request_object = test_permissions_request_object
|
27231
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
27232
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
27233
|
-
command.params['project'] = project unless project.nil?
|
27234
|
-
command.params['region'] = region unless region.nil?
|
27235
|
-
command.params['resource'] = resource unless resource.nil?
|
27236
|
-
command.query['fields'] = fields unless fields.nil?
|
27237
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27238
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
27239
|
-
execute_or_queue_command(command, &block)
|
27240
|
-
end
|
27241
|
-
|
27242
|
-
# Deletes the specified network endpoint group. Note that the NEG cannot be
|
27243
|
-
# deleted if it is configured as a backend of a backend service.
|
27244
|
-
# @param [String] project
|
27245
|
-
# Project ID for this request.
|
27246
|
-
# @param [String] region
|
27247
|
-
# The name of the region where the network endpoint group is located. It should
|
27248
|
-
# comply with RFC1035.
|
27249
|
-
# @param [String] network_endpoint_group
|
27250
|
-
# The name of the network endpoint group to delete. It should comply with
|
27251
|
-
# RFC1035.
|
28749
|
+
# Name of the region scoping this request.
|
28750
|
+
# @param [String] firewall_policy
|
28751
|
+
# Name of the firewall policy to update.
|
28752
|
+
# @param [String] name
|
28753
|
+
# Name for the association that will be removed.
|
27252
28754
|
# @param [String] request_id
|
27253
28755
|
# An optional request ID to identify requests. Specify a unique request ID so
|
27254
28756
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27279,13 +28781,14 @@ module Google
|
|
27279
28781
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27280
28782
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27281
28783
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27282
|
-
def
|
27283
|
-
command = make_simple_command(:
|
28784
|
+
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)
|
28785
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
27284
28786
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27285
28787
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27286
28788
|
command.params['project'] = project unless project.nil?
|
27287
28789
|
command.params['region'] = region unless region.nil?
|
27288
|
-
command.params['
|
28790
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28791
|
+
command.query['name'] = name unless name.nil?
|
27289
28792
|
command.query['requestId'] = request_id unless request_id.nil?
|
27290
28793
|
command.query['fields'] = fields unless fields.nil?
|
27291
28794
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -27293,15 +28796,26 @@ module Google
|
|
27293
28796
|
execute_or_queue_command(command, &block)
|
27294
28797
|
end
|
27295
28798
|
|
27296
|
-
#
|
27297
|
-
# endpoint groups by making a list() request.
|
28799
|
+
# Deletes a rule of the specified priority.
|
27298
28800
|
# @param [String] project
|
27299
28801
|
# Project ID for this request.
|
27300
28802
|
# @param [String] region
|
27301
|
-
#
|
27302
|
-
#
|
27303
|
-
#
|
27304
|
-
#
|
28803
|
+
# Name of the region scoping this request.
|
28804
|
+
# @param [String] firewall_policy
|
28805
|
+
# Name of the firewall policy to update.
|
28806
|
+
# @param [Fixnum] priority
|
28807
|
+
# The priority of the rule to remove from the firewall policy.
|
28808
|
+
# @param [String] request_id
|
28809
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28810
|
+
# that if you must retry your request, the server will know to ignore the
|
28811
|
+
# request if it has already been completed.
|
28812
|
+
# For example, consider a situation where you make an initial request and the
|
28813
|
+
# request times out. If you make the request again with the same request ID, the
|
28814
|
+
# server can check if original operation with the same request ID was received,
|
28815
|
+
# and if so, will ignore the second request. This prevents clients from
|
28816
|
+
# accidentally creating duplicate commitments.
|
28817
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28818
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27305
28819
|
# @param [String] fields
|
27306
28820
|
# Selector specifying which fields to include in a partial response.
|
27307
28821
|
# @param [String] quota_user
|
@@ -27313,46 +28827,38 @@ module Google
|
|
27313
28827
|
# Request-specific options
|
27314
28828
|
#
|
27315
28829
|
# @yield [result, err] Result & error if block supplied
|
27316
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28830
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27317
28831
|
# @yieldparam err [StandardError] error object if request failed
|
27318
28832
|
#
|
27319
|
-
# @return [Google::Apis::ComputeAlpha::
|
28833
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27320
28834
|
#
|
27321
28835
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27322
28836
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27323
28837
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27324
|
-
def
|
27325
|
-
command = make_simple_command(:
|
27326
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27327
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
28838
|
+
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)
|
28839
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
|
28840
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28841
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27328
28842
|
command.params['project'] = project unless project.nil?
|
27329
28843
|
command.params['region'] = region unless region.nil?
|
27330
|
-
command.params['
|
28844
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28845
|
+
command.query['priority'] = priority unless priority.nil?
|
28846
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27331
28847
|
command.query['fields'] = fields unless fields.nil?
|
27332
28848
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27333
28849
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27334
28850
|
execute_or_queue_command(command, &block)
|
27335
28851
|
end
|
27336
28852
|
|
27337
|
-
#
|
27338
|
-
#
|
28853
|
+
# Sets the access control policy on the specified resource. Replaces any
|
28854
|
+
# existing policy.
|
27339
28855
|
# @param [String] project
|
27340
28856
|
# Project ID for this request.
|
27341
28857
|
# @param [String] region
|
27342
|
-
# The name of the region
|
27343
|
-
#
|
27344
|
-
#
|
27345
|
-
# @param [
|
27346
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
27347
|
-
# that if you must retry your request, the server will know to ignore the
|
27348
|
-
# request if it has already been completed.
|
27349
|
-
# For example, consider a situation where you make an initial request and the
|
27350
|
-
# request times out. If you make the request again with the same request ID, the
|
27351
|
-
# server can check if original operation with the same request ID was received,
|
27352
|
-
# and if so, will ignore the second request. This prevents clients from
|
27353
|
-
# accidentally creating duplicate commitments.
|
27354
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27355
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
28858
|
+
# The name of the region for this request.
|
28859
|
+
# @param [String] resource
|
28860
|
+
# Name or id of the resource for this request.
|
28861
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
27356
28862
|
# @param [String] fields
|
27357
28863
|
# Selector specifying which fields to include in a partial response.
|
27358
28864
|
# @param [String] quota_user
|
@@ -27364,73 +28870,37 @@ module Google
|
|
27364
28870
|
# Request-specific options
|
27365
28871
|
#
|
27366
28872
|
# @yield [result, err] Result & error if block supplied
|
27367
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28873
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
27368
28874
|
# @yieldparam err [StandardError] error object if request failed
|
27369
28875
|
#
|
27370
|
-
# @return [Google::Apis::ComputeAlpha::
|
28876
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
27371
28877
|
#
|
27372
28878
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27373
28879
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27374
28880
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27375
|
-
def
|
27376
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
27377
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
27378
|
-
command.request_object =
|
27379
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27380
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
28881
|
+
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)
|
28882
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
|
28883
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
28884
|
+
command.request_object = region_set_policy_request_object
|
28885
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
28886
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
27381
28887
|
command.params['project'] = project unless project.nil?
|
27382
28888
|
command.params['region'] = region unless region.nil?
|
27383
|
-
command.
|
28889
|
+
command.params['resource'] = resource unless resource.nil?
|
27384
28890
|
command.query['fields'] = fields unless fields.nil?
|
27385
28891
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27386
28892
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27387
28893
|
execute_or_queue_command(command, &block)
|
27388
28894
|
end
|
27389
28895
|
|
27390
|
-
#
|
27391
|
-
# specified project in the given region.
|
28896
|
+
# Returns permissions that a caller has on the specified resource.
|
27392
28897
|
# @param [String] project
|
27393
28898
|
# Project ID for this request.
|
27394
28899
|
# @param [String] region
|
27395
|
-
# The name of the region
|
27396
|
-
#
|
27397
|
-
#
|
27398
|
-
#
|
27399
|
-
# expression must specify the field name, a comparison operator, and the value
|
27400
|
-
# that you want to use for filtering. The value must be a string, a number, or a
|
27401
|
-
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
27402
|
-
# For example, if you are filtering Compute Engine instances, you can exclude
|
27403
|
-
# instances named `example-instance` by specifying `name != example-instance`.
|
27404
|
-
# You can also filter nested fields. For example, you could specify `scheduling.
|
27405
|
-
# automaticRestart = false` to include instances only if they are not scheduled
|
27406
|
-
# for automatic restarts. You can use filtering on nested fields to filter based
|
27407
|
-
# on resource labels.
|
27408
|
-
# To filter on multiple expressions, provide each separate expression within
|
27409
|
-
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
27410
|
-
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
27411
|
-
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
27412
|
-
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
27413
|
-
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
27414
|
-
# @param [Fixnum] max_results
|
27415
|
-
# The maximum number of results per page that should be returned. If the number
|
27416
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
27417
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
27418
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
27419
|
-
# @param [String] order_by
|
27420
|
-
# Sorts list results by a certain order. By default, results are returned in
|
27421
|
-
# alphanumerical order based on the resource name.
|
27422
|
-
# You can also sort results in descending order based on the creation timestamp
|
27423
|
-
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
27424
|
-
# creationTimestamp` field in reverse chronological order (newest result first).
|
27425
|
-
# Use this to sort resources like operations so that the newest operation is
|
27426
|
-
# returned first.
|
27427
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
27428
|
-
# @param [String] page_token
|
27429
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
27430
|
-
# by a previous list request to get the next page of results.
|
27431
|
-
# @param [Boolean] return_partial_success
|
27432
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
27433
|
-
# failure. The default value is false.
|
28900
|
+
# The name of the region for this request.
|
28901
|
+
# @param [String] resource
|
28902
|
+
# Name or id of the resource for this request.
|
28903
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
27434
28904
|
# @param [String] fields
|
27435
28905
|
# Selector specifying which fields to include in a partial response.
|
27436
28906
|
# @param [String] quota_user
|
@@ -27442,25 +28912,23 @@ module Google
|
|
27442
28912
|
# Request-specific options
|
27443
28913
|
#
|
27444
28914
|
# @yield [result, err] Result & error if block supplied
|
27445
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28915
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
27446
28916
|
# @yieldparam err [StandardError] error object if request failed
|
27447
28917
|
#
|
27448
|
-
# @return [Google::Apis::ComputeAlpha::
|
28918
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
27449
28919
|
#
|
27450
28920
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27451
28921
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27452
28922
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27453
|
-
def
|
27454
|
-
command = make_simple_command(:
|
27455
|
-
command.
|
27456
|
-
command.
|
28923
|
+
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)
|
28924
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
|
28925
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
28926
|
+
command.request_object = test_permissions_request_object
|
28927
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
28928
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
27457
28929
|
command.params['project'] = project unless project.nil?
|
27458
28930
|
command.params['region'] = region unless region.nil?
|
27459
|
-
command.
|
27460
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
27461
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
27462
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
27463
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28931
|
+
command.params['resource'] = resource unless resource.nil?
|
27464
28932
|
command.query['fields'] = fields unless fields.nil?
|
27465
28933
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27466
28934
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -32236,6 +33704,63 @@ module Google
|
|
32236
33704
|
execute_or_queue_command(command, &block)
|
32237
33705
|
end
|
32238
33706
|
|
33707
|
+
# Patches the specified ServiceAttachment resource with the data included in the
|
33708
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
33709
|
+
# and processing rules.
|
33710
|
+
# @param [String] project
|
33711
|
+
# Project ID for this request.
|
33712
|
+
# @param [String] region
|
33713
|
+
# The region scoping this request and should conform to RFC1035.
|
33714
|
+
# @param [String] service_attachment
|
33715
|
+
# The resource id of the ServiceAttachment to patch. It should conform to
|
33716
|
+
# RFC1035 resource name or be a string form on an unsigned long number.
|
33717
|
+
# @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
|
33718
|
+
# @param [String] request_id
|
33719
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33720
|
+
# that if you must retry your request, the server will know to ignore the
|
33721
|
+
# request if it has already been completed.
|
33722
|
+
# For example, consider a situation where you make an initial request and the
|
33723
|
+
# request times out. If you make the request again with the same request ID, the
|
33724
|
+
# server can check if original operation with the same request ID was received,
|
33725
|
+
# and if so, will ignore the second request. This prevents clients from
|
33726
|
+
# accidentally creating duplicate commitments.
|
33727
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
33728
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
33729
|
+
# @param [String] fields
|
33730
|
+
# Selector specifying which fields to include in a partial response.
|
33731
|
+
# @param [String] quota_user
|
33732
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33733
|
+
# characters.
|
33734
|
+
# @param [String] user_ip
|
33735
|
+
# Deprecated. Please use quotaUser instead.
|
33736
|
+
# @param [Google::Apis::RequestOptions] options
|
33737
|
+
# Request-specific options
|
33738
|
+
#
|
33739
|
+
# @yield [result, err] Result & error if block supplied
|
33740
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33741
|
+
# @yieldparam err [StandardError] error object if request failed
|
33742
|
+
#
|
33743
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33744
|
+
#
|
33745
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33746
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33747
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33748
|
+
def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33749
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
33750
|
+
command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
33751
|
+
command.request_object = service_attachment_object
|
33752
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33753
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33754
|
+
command.params['project'] = project unless project.nil?
|
33755
|
+
command.params['region'] = region unless region.nil?
|
33756
|
+
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
33757
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33758
|
+
command.query['fields'] = fields unless fields.nil?
|
33759
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33760
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33761
|
+
execute_or_queue_command(command, &block)
|
33762
|
+
end
|
33763
|
+
|
32239
33764
|
# Sets the access control policy on the specified resource. Replaces any
|
32240
33765
|
# existing policy.
|
32241
33766
|
# @param [String] project
|
@@ -39578,7 +41103,7 @@ module Google
|
|
39578
41103
|
execute_or_queue_command(command, &block)
|
39579
41104
|
end
|
39580
41105
|
|
39581
|
-
# Export the changed blocks between two instant snapshots to a customer
|
41106
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
39582
41107
|
# in the user specified format.
|
39583
41108
|
# @param [String] project
|
39584
41109
|
# Project ID for this request.
|