google-apis-compute_v1 0.129.0 → 0.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -738,6 +738,48 @@ module Google
|
|
738
738
|
execute_or_queue_command(command, &block)
|
739
739
|
end
|
740
740
|
|
741
|
+
# Returns permissions that a caller has on the specified resource.
|
742
|
+
# @param [String] project
|
743
|
+
# Project ID for this request.
|
744
|
+
# @param [String] region
|
745
|
+
# The name of the region for this request.
|
746
|
+
# @param [String] resource
|
747
|
+
# Name or id of the resource for this request.
|
748
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
749
|
+
# @param [String] fields
|
750
|
+
# Selector specifying which fields to include in a partial response.
|
751
|
+
# @param [String] quota_user
|
752
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
753
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
754
|
+
# @param [String] user_ip
|
755
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
756
|
+
# @param [Google::Apis::RequestOptions] options
|
757
|
+
# Request-specific options
|
758
|
+
#
|
759
|
+
# @yield [result, err] Result & error if block supplied
|
760
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
761
|
+
# @yieldparam err [StandardError] error object if request failed
|
762
|
+
#
|
763
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
764
|
+
#
|
765
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
766
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
767
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
768
|
+
def test_address_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
769
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions', options)
|
770
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
771
|
+
command.request_object = test_permissions_request_object
|
772
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
773
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
774
|
+
command.params['project'] = project unless project.nil?
|
775
|
+
command.params['region'] = region unless region.nil?
|
776
|
+
command.params['resource'] = resource unless resource.nil?
|
777
|
+
command.query['fields'] = fields unless fields.nil?
|
778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
779
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
780
|
+
execute_or_queue_command(command, &block)
|
781
|
+
end
|
782
|
+
|
741
783
|
# Retrieves an aggregated list of autoscalers. To prevent failure, Google
|
742
784
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
743
785
|
# @param [String] project
|
@@ -6241,6 +6283,45 @@ module Google
|
|
6241
6283
|
execute_or_queue_command(command, &block)
|
6242
6284
|
end
|
6243
6285
|
|
6286
|
+
# Returns permissions that a caller has on the specified resource.
|
6287
|
+
# @param [String] project
|
6288
|
+
# Project ID for this request.
|
6289
|
+
# @param [String] resource
|
6290
|
+
# Name or id of the resource for this request.
|
6291
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
6292
|
+
# @param [String] fields
|
6293
|
+
# Selector specifying which fields to include in a partial response.
|
6294
|
+
# @param [String] quota_user
|
6295
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6296
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6297
|
+
# @param [String] user_ip
|
6298
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
6299
|
+
# @param [Google::Apis::RequestOptions] options
|
6300
|
+
# Request-specific options
|
6301
|
+
#
|
6302
|
+
# @yield [result, err] Result & error if block supplied
|
6303
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
6304
|
+
# @yieldparam err [StandardError] error object if request failed
|
6305
|
+
#
|
6306
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
6307
|
+
#
|
6308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6311
|
+
def test_global_address_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6312
|
+
command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/testIamPermissions', options)
|
6313
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
6314
|
+
command.request_object = test_permissions_request_object
|
6315
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
6316
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
6317
|
+
command.params['project'] = project unless project.nil?
|
6318
|
+
command.params['resource'] = resource unless resource.nil?
|
6319
|
+
command.query['fields'] = fields unless fields.nil?
|
6320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6321
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6322
|
+
execute_or_queue_command(command, &block)
|
6323
|
+
end
|
6324
|
+
|
6244
6325
|
# Deletes the specified GlobalForwardingRule resource.
|
6245
6326
|
# @param [String] project
|
6246
6327
|
# Project ID for this request.
|
@@ -11966,6 +12047,48 @@ module Google
|
|
11966
12047
|
execute_or_queue_command(command, &block)
|
11967
12048
|
end
|
11968
12049
|
|
12050
|
+
# Returns permissions that a caller has on the specified resource.
|
12051
|
+
# @param [String] project
|
12052
|
+
# Project ID for this request.
|
12053
|
+
# @param [String] zone
|
12054
|
+
# The name of the zone for this request.
|
12055
|
+
# @param [String] resource
|
12056
|
+
# Name or id of the resource for this request.
|
12057
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
12058
|
+
# @param [String] fields
|
12059
|
+
# Selector specifying which fields to include in a partial response.
|
12060
|
+
# @param [String] quota_user
|
12061
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12062
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12063
|
+
# @param [String] user_ip
|
12064
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
12065
|
+
# @param [Google::Apis::RequestOptions] options
|
12066
|
+
# Request-specific options
|
12067
|
+
#
|
12068
|
+
# @yield [result, err] Result & error if block supplied
|
12069
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
12070
|
+
# @yieldparam err [StandardError] error object if request failed
|
12071
|
+
#
|
12072
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
12073
|
+
#
|
12074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12077
|
+
def test_instance_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12078
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions', options)
|
12079
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
12080
|
+
command.request_object = test_permissions_request_object
|
12081
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
12082
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
12083
|
+
command.params['project'] = project unless project.nil?
|
12084
|
+
command.params['zone'] = zone unless zone.nil?
|
12085
|
+
command.params['resource'] = resource unless resource.nil?
|
12086
|
+
command.query['fields'] = fields unless fields.nil?
|
12087
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12088
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12089
|
+
execute_or_queue_command(command, &block)
|
12090
|
+
end
|
12091
|
+
|
11969
12092
|
# Get Instance settings.
|
11970
12093
|
# @param [String] project
|
11971
12094
|
# Project ID for this request.
|
@@ -12562,6 +12685,60 @@ module Google
|
|
12562
12685
|
execute_or_queue_command(command, &block)
|
12563
12686
|
end
|
12564
12687
|
|
12688
|
+
# Adds one dynamic network interface to an active instance.
|
12689
|
+
# @param [String] project
|
12690
|
+
# Project ID for this request.
|
12691
|
+
# @param [String] zone
|
12692
|
+
# The name of the zone for this request.
|
12693
|
+
# @param [String] instance
|
12694
|
+
# The instance name for this request stored as resource_id. Name should conform
|
12695
|
+
# to RFC1035 or be an unsigned long integer.
|
12696
|
+
# @param [Google::Apis::ComputeV1::NetworkInterface] network_interface_object
|
12697
|
+
# @param [String] request_id
|
12698
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
12699
|
+
# that if you must retry your request, the server will know to ignore the
|
12700
|
+
# request if it has already been completed. For example, consider a situation
|
12701
|
+
# where you make an initial request and the request times out. If you make the
|
12702
|
+
# request again with the same request ID, the server can check if original
|
12703
|
+
# operation with the same request ID was received, and if so, will ignore the
|
12704
|
+
# second request. This prevents clients from accidentally creating duplicate
|
12705
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
12706
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
12707
|
+
# @param [String] fields
|
12708
|
+
# Selector specifying which fields to include in a partial response.
|
12709
|
+
# @param [String] quota_user
|
12710
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12711
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12712
|
+
# @param [String] user_ip
|
12713
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
12714
|
+
# @param [Google::Apis::RequestOptions] options
|
12715
|
+
# Request-specific options
|
12716
|
+
#
|
12717
|
+
# @yield [result, err] Result & error if block supplied
|
12718
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
12719
|
+
# @yieldparam err [StandardError] error object if request failed
|
12720
|
+
#
|
12721
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
12722
|
+
#
|
12723
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12724
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12725
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12726
|
+
def add_instance_network_interface(project, zone, instance, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12727
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface', options)
|
12728
|
+
command.request_representation = Google::Apis::ComputeV1::NetworkInterface::Representation
|
12729
|
+
command.request_object = network_interface_object
|
12730
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
12731
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
12732
|
+
command.params['project'] = project unless project.nil?
|
12733
|
+
command.params['zone'] = zone unless zone.nil?
|
12734
|
+
command.params['instance'] = instance unless instance.nil?
|
12735
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
12736
|
+
command.query['fields'] = fields unless fields.nil?
|
12737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12738
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
12739
|
+
execute_or_queue_command(command, &block)
|
12740
|
+
end
|
12741
|
+
|
12565
12742
|
# Adds existing resource policies to an instance. You can only add one policy
|
12566
12743
|
# right now which will be applied to this instance for scheduling live
|
12567
12744
|
# migrations.
|
@@ -12943,6 +13120,63 @@ module Google
|
|
12943
13120
|
execute_or_queue_command(command, &block)
|
12944
13121
|
end
|
12945
13122
|
|
13123
|
+
# Deletes one dynamic network interface from an active instance.
|
13124
|
+
# InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to
|
13125
|
+
# delete, using project+zone+resource_id fields; - dynamic network interface to
|
13126
|
+
# be deleted, using network_interface_name field;
|
13127
|
+
# @param [String] project
|
13128
|
+
# Project ID for this request.
|
13129
|
+
# @param [String] zone
|
13130
|
+
# The name of the zone for this request.
|
13131
|
+
# @param [String] instance
|
13132
|
+
# The instance name for this request stored as resource_id. Name should conform
|
13133
|
+
# to RFC1035 or be an unsigned long integer.
|
13134
|
+
# @param [String] network_interface_name
|
13135
|
+
# The name of the dynamic network interface to be deleted from the instance.
|
13136
|
+
# @param [String] request_id
|
13137
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13138
|
+
# that if you must retry your request, the server will know to ignore the
|
13139
|
+
# request if it has already been completed. For example, consider a situation
|
13140
|
+
# where you make an initial request and the request times out. If you make the
|
13141
|
+
# request again with the same request ID, the server can check if original
|
13142
|
+
# operation with the same request ID was received, and if so, will ignore the
|
13143
|
+
# second request. This prevents clients from accidentally creating duplicate
|
13144
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
13145
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
13146
|
+
# @param [String] fields
|
13147
|
+
# Selector specifying which fields to include in a partial response.
|
13148
|
+
# @param [String] quota_user
|
13149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13151
|
+
# @param [String] user_ip
|
13152
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
13153
|
+
# @param [Google::Apis::RequestOptions] options
|
13154
|
+
# Request-specific options
|
13155
|
+
#
|
13156
|
+
# @yield [result, err] Result & error if block supplied
|
13157
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
13158
|
+
# @yieldparam err [StandardError] error object if request failed
|
13159
|
+
#
|
13160
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
13161
|
+
#
|
13162
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13163
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13164
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13165
|
+
def delete_instance_network_interface(project, zone, instance, network_interface_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13166
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface', options)
|
13167
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
13168
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
13169
|
+
command.params['project'] = project unless project.nil?
|
13170
|
+
command.params['zone'] = zone unless zone.nil?
|
13171
|
+
command.params['instance'] = instance unless instance.nil?
|
13172
|
+
command.query['networkInterfaceName'] = network_interface_name unless network_interface_name.nil?
|
13173
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13174
|
+
command.query['fields'] = fields unless fields.nil?
|
13175
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13176
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13177
|
+
execute_or_queue_command(command, &block)
|
13178
|
+
end
|
13179
|
+
|
12946
13180
|
# Detaches a disk from an instance.
|
12947
13181
|
# @param [String] project
|
12948
13182
|
# Project ID for this request.
|
@@ -24658,7 +24892,14 @@ module Google
|
|
24658
24892
|
execute_or_queue_command(command, &block)
|
24659
24893
|
end
|
24660
24894
|
|
24661
|
-
#
|
24895
|
+
# Starting September 29, 2025, you can't use the moveDisk API on new projects.
|
24896
|
+
# To move a disk to a different region or zone, follow the steps in [Change the
|
24897
|
+
# location of a disk](https://`$universe.dns_names.final_documentation_domain`/
|
24898
|
+
# compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already
|
24899
|
+
# use the moveDisk API can continue usage until September 29, 2026. Starting
|
24900
|
+
# November 1, 2025, API responses will include a warning message in the response
|
24901
|
+
# body about the upcoming deprecation. You can skip the message to continue
|
24902
|
+
# using the service without interruption.
|
24662
24903
|
# @param [String] project
|
24663
24904
|
# Project ID for this request.
|
24664
24905
|
# @param [Google::Apis::ComputeV1::MoveDiskRequest] move_disk_request_object
|
@@ -30616,6 +30857,48 @@ module Google
|
|
30616
30857
|
execute_or_queue_command(command, &block)
|
30617
30858
|
end
|
30618
30859
|
|
30860
|
+
# Returns permissions that a caller has on the specified resource.
|
30861
|
+
# @param [String] project
|
30862
|
+
# Project ID for this request.
|
30863
|
+
# @param [String] region
|
30864
|
+
# The name of the region for this request.
|
30865
|
+
# @param [String] resource
|
30866
|
+
# Name or id of the resource for this request.
|
30867
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
30868
|
+
# @param [String] fields
|
30869
|
+
# Selector specifying which fields to include in a partial response.
|
30870
|
+
# @param [String] quota_user
|
30871
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30872
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30873
|
+
# @param [String] user_ip
|
30874
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30875
|
+
# @param [Google::Apis::RequestOptions] options
|
30876
|
+
# Request-specific options
|
30877
|
+
#
|
30878
|
+
# @yield [result, err] Result & error if block supplied
|
30879
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
30880
|
+
# @yieldparam err [StandardError] error object if request failed
|
30881
|
+
#
|
30882
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
30883
|
+
#
|
30884
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30885
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30886
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30887
|
+
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)
|
30888
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options)
|
30889
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
30890
|
+
command.request_object = test_permissions_request_object
|
30891
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
30892
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
30893
|
+
command.params['project'] = project unless project.nil?
|
30894
|
+
command.params['region'] = region unless region.nil?
|
30895
|
+
command.params['resource'] = resource unless resource.nil?
|
30896
|
+
command.query['fields'] = fields unless fields.nil?
|
30897
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30898
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30899
|
+
execute_or_queue_command(command, &block)
|
30900
|
+
end
|
30901
|
+
|
30619
30902
|
# Deletes the specified instance template. Deleting an instance template is
|
30620
30903
|
# permanent and cannot be undone.
|
30621
30904
|
# @param [String] project
|
@@ -39492,6 +39775,8 @@ module Google
|
|
39492
39775
|
# Name of the region of this request.
|
39493
39776
|
# @param [String] service_attachment
|
39494
39777
|
# Name of the ServiceAttachment resource to return.
|
39778
|
+
# @param [Boolean] show_nat_ips
|
39779
|
+
# Indicates whether NAT IPs should be included in the response.
|
39495
39780
|
# @param [String] fields
|
39496
39781
|
# Selector specifying which fields to include in a partial response.
|
39497
39782
|
# @param [String] quota_user
|
@@ -39511,13 +39796,14 @@ module Google
|
|
39511
39796
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
39512
39797
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
39513
39798
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
39514
|
-
def get_service_attachment(project, region, service_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
39799
|
+
def get_service_attachment(project, region, service_attachment, show_nat_ips: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
39515
39800
|
command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
39516
39801
|
command.response_representation = Google::Apis::ComputeV1::ServiceAttachment::Representation
|
39517
39802
|
command.response_class = Google::Apis::ComputeV1::ServiceAttachment
|
39518
39803
|
command.params['project'] = project unless project.nil?
|
39519
39804
|
command.params['region'] = region unless region.nil?
|
39520
39805
|
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
39806
|
+
command.query['showNatIps'] = show_nat_ips unless show_nat_ips.nil?
|
39521
39807
|
command.query['fields'] = fields unless fields.nil?
|
39522
39808
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
39523
39809
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -42200,6 +42486,9 @@ module Google
|
|
42200
42486
|
# Name of the region scoping this request.
|
42201
42487
|
# @param [String] subnetwork
|
42202
42488
|
# Name of the Subnetwork resource to return.
|
42489
|
+
# @param [Array<String>, String] views
|
42490
|
+
# Defines the extra views returned back in the subnetwork resource. Supported
|
42491
|
+
# values: - WITH_UTILIZATION: Utilization data is included in the response.
|
42203
42492
|
# @param [String] fields
|
42204
42493
|
# Selector specifying which fields to include in a partial response.
|
42205
42494
|
# @param [String] quota_user
|
@@ -42219,13 +42508,14 @@ module Google
|
|
42219
42508
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42220
42509
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42221
42510
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42222
|
-
def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42511
|
+
def get_subnetwork(project, region, subnetwork, views: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42223
42512
|
command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options)
|
42224
42513
|
command.response_representation = Google::Apis::ComputeV1::Subnetwork::Representation
|
42225
42514
|
command.response_class = Google::Apis::ComputeV1::Subnetwork
|
42226
42515
|
command.params['project'] = project unless project.nil?
|
42227
42516
|
command.params['region'] = region unless region.nil?
|
42228
42517
|
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
42518
|
+
command.query['views'] = views unless views.nil?
|
42229
42519
|
command.query['fields'] = fields unless fields.nil?
|
42230
42520
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42231
42521
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -42384,6 +42674,9 @@ module Google
|
|
42384
42674
|
# failure. The default value is false. For example, when partial success
|
42385
42675
|
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
42386
42676
|
# resources in the zone or no resources, with an error code.
|
42677
|
+
# @param [Array<String>, String] views
|
42678
|
+
# Defines the extra views returned back in the subnetwork resource. Supported
|
42679
|
+
# values: - WITH_UTILIZATION: Utilization data is included in the response.
|
42387
42680
|
# @param [String] fields
|
42388
42681
|
# Selector specifying which fields to include in a partial response.
|
42389
42682
|
# @param [String] quota_user
|
@@ -42403,7 +42696,7 @@ module Google
|
|
42403
42696
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42404
42697
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42405
42698
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42406
|
-
def list_subnetworks(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)
|
42699
|
+
def list_subnetworks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, views: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42407
42700
|
command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks', options)
|
42408
42701
|
command.response_representation = Google::Apis::ComputeV1::SubnetworkList::Representation
|
42409
42702
|
command.response_class = Google::Apis::ComputeV1::SubnetworkList
|
@@ -42414,6 +42707,7 @@ module Google
|
|
42414
42707
|
command.query['orderBy'] = order_by unless order_by.nil?
|
42415
42708
|
command.query['pageToken'] = page_token unless page_token.nil?
|
42416
42709
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
42710
|
+
command.query['views'] = views unless views.nil?
|
42417
42711
|
command.query['fields'] = fields unless fields.nil?
|
42418
42712
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42419
42713
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -44454,6 +44748,48 @@ module Google
|
|
44454
44748
|
execute_or_queue_command(command, &block)
|
44455
44749
|
end
|
44456
44750
|
|
44751
|
+
# Returns permissions that a caller has on the specified resource.
|
44752
|
+
# @param [String] project
|
44753
|
+
# Project ID for this request.
|
44754
|
+
# @param [String] zone
|
44755
|
+
# The name of the zone for this request.
|
44756
|
+
# @param [String] resource
|
44757
|
+
# Name or id of the resource for this request.
|
44758
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
44759
|
+
# @param [String] fields
|
44760
|
+
# Selector specifying which fields to include in a partial response.
|
44761
|
+
# @param [String] quota_user
|
44762
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44763
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44764
|
+
# @param [String] user_ip
|
44765
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44766
|
+
# @param [Google::Apis::RequestOptions] options
|
44767
|
+
# Request-specific options
|
44768
|
+
#
|
44769
|
+
# @yield [result, err] Result & error if block supplied
|
44770
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
44771
|
+
# @yieldparam err [StandardError] error object if request failed
|
44772
|
+
#
|
44773
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
44774
|
+
#
|
44775
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44776
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44777
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44778
|
+
def test_target_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
44779
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions', options)
|
44780
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
44781
|
+
command.request_object = test_permissions_request_object
|
44782
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
44783
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
44784
|
+
command.params['project'] = project unless project.nil?
|
44785
|
+
command.params['zone'] = zone unless zone.nil?
|
44786
|
+
command.params['resource'] = resource unless resource.nil?
|
44787
|
+
command.query['fields'] = fields unless fields.nil?
|
44788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44789
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44790
|
+
execute_or_queue_command(command, &block)
|
44791
|
+
end
|
44792
|
+
|
44457
44793
|
# Adds health check URLs to a target pool.
|
44458
44794
|
# @param [String] project
|
44459
44795
|
# Project ID for this request.
|
@@ -45158,6 +45494,48 @@ module Google
|
|
45158
45494
|
execute_or_queue_command(command, &block)
|
45159
45495
|
end
|
45160
45496
|
|
45497
|
+
# Returns permissions that a caller has on the specified resource.
|
45498
|
+
# @param [String] project
|
45499
|
+
# Project ID for this request.
|
45500
|
+
# @param [String] region
|
45501
|
+
# The name of the region for this request.
|
45502
|
+
# @param [String] resource
|
45503
|
+
# Name or id of the resource for this request.
|
45504
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
45505
|
+
# @param [String] fields
|
45506
|
+
# Selector specifying which fields to include in a partial response.
|
45507
|
+
# @param [String] quota_user
|
45508
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
45509
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45510
|
+
# @param [String] user_ip
|
45511
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
45512
|
+
# @param [Google::Apis::RequestOptions] options
|
45513
|
+
# Request-specific options
|
45514
|
+
#
|
45515
|
+
# @yield [result, err] Result & error if block supplied
|
45516
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
45517
|
+
# @yieldparam err [StandardError] error object if request failed
|
45518
|
+
#
|
45519
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
45520
|
+
#
|
45521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
45522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
45523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
45524
|
+
def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
45525
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options)
|
45526
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
45527
|
+
command.request_object = test_permissions_request_object
|
45528
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
45529
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
45530
|
+
command.params['project'] = project unless project.nil?
|
45531
|
+
command.params['region'] = region unless region.nil?
|
45532
|
+
command.params['resource'] = resource unless resource.nil?
|
45533
|
+
command.query['fields'] = fields unless fields.nil?
|
45534
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
45535
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
45536
|
+
execute_or_queue_command(command, &block)
|
45537
|
+
end
|
45538
|
+
|
45161
45539
|
# Deletes the specified TargetSslProxy resource.
|
45162
45540
|
# @param [String] project
|
45163
45541
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.131.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.131.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|