google-apis-compute_v1 0.133.0 → 0.134.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.
@@ -56,7 +56,7 @@ module Google
56
56
  end
57
57
 
58
58
  # Retrieves an aggregated list of accelerator types.
59
- # To prevent failure, Google recommends that you set the
59
+ # To prevent failure, it is recommended that you set the
60
60
  # `returnPartialSuccess` parameter to `true`.
61
61
  # @param [String] project
62
62
  # Project ID for this request.
@@ -342,7 +342,7 @@ module Google
342
342
  end
343
343
 
344
344
  # Retrieves an aggregated list of addresses.
345
- # To prevent failure, Google recommends that you set the
345
+ # To prevent failure, it is recommended that you set the
346
346
  # `returnPartialSuccess` parameter to `true`.
347
347
  # @param [String] project
348
348
  # Project ID for this request.
@@ -886,7 +886,7 @@ module Google
886
886
  end
887
887
 
888
888
  # Retrieves an aggregated list of autoscalers.
889
- # To prevent failure, Google recommends that you set the
889
+ # To prevent failure, it is recommended that you set the
890
890
  # `returnPartialSuccess` parameter to `true`.
891
891
  # @param [String] project
892
892
  # Project ID for this request.
@@ -2084,7 +2084,7 @@ module Google
2084
2084
 
2085
2085
  # Retrieves the list of all BackendService resources, regional and global,
2086
2086
  # available to the specified project.
2087
- # To prevent failure, Google recommends that you set the
2087
+ # To prevent failure, it is recommended that you set the
2088
2088
  # `returnPartialSuccess` parameter to `true`.
2089
2089
  # @param [String] project
2090
2090
  # Name of the project scoping this request.
@@ -3362,7 +3362,7 @@ module Google
3362
3362
  end
3363
3363
 
3364
3364
  # Retrieves an aggregated list of disk types.
3365
- # To prevent failure, Google recommends that you set the
3365
+ # To prevent failure, it is recommended that you set the
3366
3366
  # `returnPartialSuccess` parameter to `true`.
3367
3367
  # @param [String] project
3368
3368
  # Project ID for this request.
@@ -3705,7 +3705,7 @@ module Google
3705
3705
  end
3706
3706
 
3707
3707
  # Retrieves an aggregated list of persistent disks.
3708
- # To prevent failure, Google recommends that you set the
3708
+ # To prevent failure, it is recommended that you set the
3709
3709
  # `returnPartialSuccess` parameter to `true`.
3710
3710
  # @param [String] project
3711
3711
  # Project ID for this request.
@@ -6299,6 +6299,45 @@ module Google
6299
6299
  execute_or_queue_command(command, &block)
6300
6300
  end
6301
6301
 
6302
+ # Returns permissions that a caller has on the specified resource.
6303
+ # @param [String] project
6304
+ # Project ID for this request.
6305
+ # @param [String] resource
6306
+ # Name or id of the resource for this request.
6307
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
6308
+ # @param [String] fields
6309
+ # Selector specifying which fields to include in a partial response.
6310
+ # @param [String] quota_user
6311
+ # Available to use for quota purposes for server-side applications. Can be any
6312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6313
+ # @param [String] user_ip
6314
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6315
+ # @param [Google::Apis::RequestOptions] options
6316
+ # Request-specific options
6317
+ #
6318
+ # @yield [result, err] Result & error if block supplied
6319
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
6320
+ # @yieldparam err [StandardError] error object if request failed
6321
+ #
6322
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
6323
+ #
6324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6327
+ def test_firewall_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6328
+ command = make_simple_command(:post, 'projects/{project}/global/firewalls/{resource}/testIamPermissions', options)
6329
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
6330
+ command.request_object = test_permissions_request_object
6331
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
6332
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
6333
+ command.params['project'] = project unless project.nil?
6334
+ command.params['resource'] = resource unless resource.nil?
6335
+ command.query['fields'] = fields unless fields.nil?
6336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6337
+ command.query['userIp'] = user_ip unless user_ip.nil?
6338
+ execute_or_queue_command(command, &block)
6339
+ end
6340
+
6302
6341
  # Updates the specified firewall rule with the data included in the
6303
6342
  # request.
6304
6343
  # Note that all fields will be updated if using PUT, even fields that are not
@@ -6355,7 +6394,7 @@ module Google
6355
6394
  end
6356
6395
 
6357
6396
  # Retrieves an aggregated list of forwarding rules.
6358
- # To prevent failure, Google recommends that you set the
6397
+ # To prevent failure, it is recommended that you set the
6359
6398
  # `returnPartialSuccess` parameter to `true`.
6360
6399
  # @param [String] project
6361
6400
  # Project ID for this request.
@@ -6918,7 +6957,7 @@ module Google
6918
6957
  end
6919
6958
 
6920
6959
  # Retrieves an aggregated list of future reservations.
6921
- # To prevent failure, recommendation is that you set the
6960
+ # To prevent failure, it is recommended that you set the
6922
6961
  # `returnPartialSuccess` parameter to `true`.
6923
6962
  # @param [String] project
6924
6963
  # Project ID for this request.
@@ -23689,7 +23728,7 @@ module Google
23689
23728
  # Retrieves an aggregated list of network firewall policies, listing network
23690
23729
  # firewall policies from all applicable scopes (global and regional) and
23691
23730
  # grouping the results per scope.
23692
- # To prevent failure, Google recommends that you set the
23731
+ # To prevent failure, it is recommended that you set the
23693
23732
  # `returnPartialSuccess` parameter to `true`.
23694
23733
  # @param [String] project
23695
23734
  # Project ID for this request.
@@ -29419,11 +29458,13 @@ module Google
29419
29458
  execute_or_queue_command(command, &block)
29420
29459
  end
29421
29460
 
29461
+ # Moves a persistent disk from one zone to another.
29462
+ # *Note*: The moveDisk API will be deprecated on September 29, 2026.
29422
29463
  # Starting September 29, 2025, you can't use the moveDisk API on new
29423
29464
  # projects. To move a disk to a different region or zone, follow the steps in
29424
29465
  # [Change the location of a
29425
- # disk](https://`$universe.dns_names.final_documentation_domain`/compute/docs/
29426
- # disks/migrate-to-hyperdisk#migrate-to-hd).
29466
+ # disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-
29467
+ # to-hd).
29427
29468
  # Projects that already use the moveDisk API can continue usage until
29428
29469
  # September 29, 2026.
29429
29470
  # Starting November 1, 2025, API responses will include a warning message in
@@ -31799,7 +31840,7 @@ module Google
31799
31840
  end
31800
31841
 
31801
31842
  # Retrieves an aggregated list of commitments by region.
31802
- # To prevent failure, Google recommends that you set the
31843
+ # To prevent failure, it is recommended that you set the
31803
31844
  # `returnPartialSuccess` parameter to `true`.
31804
31845
  # @param [String] project
31805
31846
  # Project ID for this request.
@@ -41755,6 +41796,52 @@ module Google
41755
41796
  execute_or_queue_command(command, &block)
41756
41797
  end
41757
41798
 
41799
+ # Gets the access control policy for a resource. May be empty if no such
41800
+ # policy or resource exists.
41801
+ # @param [String] project
41802
+ # Project ID for this request.
41803
+ # @param [String] zone
41804
+ # The name of the zone for this request.
41805
+ # @param [String] parent_resource
41806
+ # Name or id of parent resource of the resource for this request.
41807
+ # @param [String] resource
41808
+ # Name or id of the resource for this request.
41809
+ # @param [Fixnum] options_requested_policy_version
41810
+ # Requested IAM Policy version.
41811
+ # @param [String] fields
41812
+ # Selector specifying which fields to include in a partial response.
41813
+ # @param [String] quota_user
41814
+ # Available to use for quota purposes for server-side applications. Can be any
41815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41816
+ # @param [String] user_ip
41817
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41818
+ # @param [Google::Apis::RequestOptions] options
41819
+ # Request-specific options
41820
+ #
41821
+ # @yield [result, err] Result & error if block supplied
41822
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
41823
+ # @yieldparam err [StandardError] error object if request failed
41824
+ #
41825
+ # @return [Google::Apis::ComputeV1::Policy]
41826
+ #
41827
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41828
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41829
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41830
+ def get_reservation_block_iam_policy(project, zone, parent_resource, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41831
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy', options)
41832
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
41833
+ command.response_class = Google::Apis::ComputeV1::Policy
41834
+ command.params['project'] = project unless project.nil?
41835
+ command.params['zone'] = zone unless zone.nil?
41836
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
41837
+ command.params['resource'] = resource unless resource.nil?
41838
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
41839
+ command.query['fields'] = fields unless fields.nil?
41840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41841
+ command.query['userIp'] = user_ip unless user_ip.nil?
41842
+ execute_or_queue_command(command, &block)
41843
+ end
41844
+
41758
41845
  # Retrieves a list of reservation blocks under a single reservation.
41759
41846
  # @param [String] project
41760
41847
  # Project ID for this request.
@@ -41936,6 +42023,97 @@ module Google
41936
42023
  execute_or_queue_command(command, &block)
41937
42024
  end
41938
42025
 
42026
+ # Sets the access control policy on the specified resource.
42027
+ # Replaces any existing policy.
42028
+ # @param [String] project
42029
+ # Project ID for this request.
42030
+ # @param [String] zone
42031
+ # The name of the zone for this request.
42032
+ # @param [String] parent_resource
42033
+ # Name or id of parent resource of the resource for this request.
42034
+ # @param [String] resource
42035
+ # Name or id of the resource for this request.
42036
+ # @param [Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest] zone_set_nested_policy_request_object
42037
+ # @param [String] fields
42038
+ # Selector specifying which fields to include in a partial response.
42039
+ # @param [String] quota_user
42040
+ # Available to use for quota purposes for server-side applications. Can be any
42041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42042
+ # @param [String] user_ip
42043
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42044
+ # @param [Google::Apis::RequestOptions] options
42045
+ # Request-specific options
42046
+ #
42047
+ # @yield [result, err] Result & error if block supplied
42048
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
42049
+ # @yieldparam err [StandardError] error object if request failed
42050
+ #
42051
+ # @return [Google::Apis::ComputeV1::Policy]
42052
+ #
42053
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42054
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42055
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42056
+ def set_reservation_block_iam_policy(project, zone, parent_resource, resource, zone_set_nested_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42057
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy', options)
42058
+ command.request_representation = Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest::Representation
42059
+ command.request_object = zone_set_nested_policy_request_object
42060
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
42061
+ command.response_class = Google::Apis::ComputeV1::Policy
42062
+ command.params['project'] = project unless project.nil?
42063
+ command.params['zone'] = zone unless zone.nil?
42064
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42065
+ command.params['resource'] = resource unless resource.nil?
42066
+ command.query['fields'] = fields unless fields.nil?
42067
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42068
+ command.query['userIp'] = user_ip unless user_ip.nil?
42069
+ execute_or_queue_command(command, &block)
42070
+ end
42071
+
42072
+ # Returns permissions that a caller has on the specified resource.
42073
+ # @param [String] project
42074
+ # Project ID for this request.
42075
+ # @param [String] zone
42076
+ # The name of the zone for this request.
42077
+ # @param [String] parent_resource
42078
+ # Name or id of parent resource of the resource for this request.
42079
+ # @param [String] resource
42080
+ # Name or id of the resource for this request.
42081
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
42082
+ # @param [String] fields
42083
+ # Selector specifying which fields to include in a partial response.
42084
+ # @param [String] quota_user
42085
+ # Available to use for quota purposes for server-side applications. Can be any
42086
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42087
+ # @param [String] user_ip
42088
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42089
+ # @param [Google::Apis::RequestOptions] options
42090
+ # Request-specific options
42091
+ #
42092
+ # @yield [result, err] Result & error if block supplied
42093
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
42094
+ # @yieldparam err [StandardError] error object if request failed
42095
+ #
42096
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
42097
+ #
42098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42101
+ def test_reservation_block_iam_permissions(project, zone, parent_resource, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42102
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions', options)
42103
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
42104
+ command.request_object = test_permissions_request_object
42105
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
42106
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
42107
+ command.params['project'] = project unless project.nil?
42108
+ command.params['zone'] = zone unless zone.nil?
42109
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42110
+ command.params['resource'] = resource unless resource.nil?
42111
+ command.query['fields'] = fields unless fields.nil?
42112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42113
+ command.query['userIp'] = user_ip unless user_ip.nil?
42114
+ execute_or_queue_command(command, &block)
42115
+ end
42116
+
41939
42117
  # Retrieves information about the specified reservation subBlock.
41940
42118
  # @param [String] project
41941
42119
  # Project ID for this request.
@@ -41947,6 +42125,8 @@ module Google
41947
42125
  # @param [String] reservation_sub_block
41948
42126
  # The name of the reservation subBlock.
41949
42127
  # Name should conform to RFC1035 or be a resource ID.
42128
+ # @param [String] view
42129
+ # View of the subBlock.
41950
42130
  # @param [String] fields
41951
42131
  # Selector specifying which fields to include in a partial response.
41952
42132
  # @param [String] quota_user
@@ -41966,7 +42146,7 @@ module Google
41966
42146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41967
42147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41968
42148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41969
- def get_reservation_sub_block(project, zone, parent_name, reservation_sub_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42149
+ def get_reservation_sub_block(project, zone, parent_name, reservation_sub_block, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41970
42150
  command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}', options)
41971
42151
  command.response_representation = Google::Apis::ComputeV1::ReservationSubBlocksGetResponse::Representation
41972
42152
  command.response_class = Google::Apis::ComputeV1::ReservationSubBlocksGetResponse
@@ -41974,6 +42154,53 @@ module Google
41974
42154
  command.params['zone'] = zone unless zone.nil?
41975
42155
  command.params['parentName'] = parent_name unless parent_name.nil?
41976
42156
  command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
42157
+ command.query['view'] = view unless view.nil?
42158
+ command.query['fields'] = fields unless fields.nil?
42159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42160
+ command.query['userIp'] = user_ip unless user_ip.nil?
42161
+ execute_or_queue_command(command, &block)
42162
+ end
42163
+
42164
+ # Gets the access control policy for a resource. May be empty if no such
42165
+ # policy or resource exists.
42166
+ # @param [String] project
42167
+ # Project ID for this request.
42168
+ # @param [String] zone
42169
+ # The name of the zone for this request.
42170
+ # @param [String] parent_resource
42171
+ # Name or id of parent resource of the resource for this request.
42172
+ # @param [String] resource
42173
+ # Name or id of the resource for this request.
42174
+ # @param [Fixnum] options_requested_policy_version
42175
+ # Requested IAM Policy version.
42176
+ # @param [String] fields
42177
+ # Selector specifying which fields to include in a partial response.
42178
+ # @param [String] quota_user
42179
+ # Available to use for quota purposes for server-side applications. Can be any
42180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42181
+ # @param [String] user_ip
42182
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42183
+ # @param [Google::Apis::RequestOptions] options
42184
+ # Request-specific options
42185
+ #
42186
+ # @yield [result, err] Result & error if block supplied
42187
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
42188
+ # @yieldparam err [StandardError] error object if request failed
42189
+ #
42190
+ # @return [Google::Apis::ComputeV1::Policy]
42191
+ #
42192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42195
+ def get_reservation_sub_block_iam_policy(project, zone, parent_resource, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42196
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/getIamPolicy', options)
42197
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
42198
+ command.response_class = Google::Apis::ComputeV1::Policy
42199
+ command.params['project'] = project unless project.nil?
42200
+ command.params['zone'] = zone unless zone.nil?
42201
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42202
+ command.params['resource'] = resource unless resource.nil?
42203
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
41977
42204
  command.query['fields'] = fields unless fields.nil?
41978
42205
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41979
42206
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -42218,8 +42445,99 @@ module Google
42218
42445
  execute_or_queue_command(command, &block)
42219
42446
  end
42220
42447
 
42448
+ # Sets the access control policy on the specified resource.
42449
+ # Replaces any existing policy.
42450
+ # @param [String] project
42451
+ # Project ID for this request.
42452
+ # @param [String] zone
42453
+ # The name of the zone for this request.
42454
+ # @param [String] parent_resource
42455
+ # Name or id of parent resource of the resource for this request.
42456
+ # @param [String] resource
42457
+ # Name or id of the resource for this request.
42458
+ # @param [Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest] zone_set_nested_policy_request_object
42459
+ # @param [String] fields
42460
+ # Selector specifying which fields to include in a partial response.
42461
+ # @param [String] quota_user
42462
+ # Available to use for quota purposes for server-side applications. Can be any
42463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42464
+ # @param [String] user_ip
42465
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42466
+ # @param [Google::Apis::RequestOptions] options
42467
+ # Request-specific options
42468
+ #
42469
+ # @yield [result, err] Result & error if block supplied
42470
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
42471
+ # @yieldparam err [StandardError] error object if request failed
42472
+ #
42473
+ # @return [Google::Apis::ComputeV1::Policy]
42474
+ #
42475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42478
+ def set_reservation_sub_block_iam_policy(project, zone, parent_resource, resource, zone_set_nested_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42479
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy', options)
42480
+ command.request_representation = Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest::Representation
42481
+ command.request_object = zone_set_nested_policy_request_object
42482
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
42483
+ command.response_class = Google::Apis::ComputeV1::Policy
42484
+ command.params['project'] = project unless project.nil?
42485
+ command.params['zone'] = zone unless zone.nil?
42486
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42487
+ command.params['resource'] = resource unless resource.nil?
42488
+ command.query['fields'] = fields unless fields.nil?
42489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42490
+ command.query['userIp'] = user_ip unless user_ip.nil?
42491
+ execute_or_queue_command(command, &block)
42492
+ end
42493
+
42494
+ # Returns permissions that a caller has on the specified resource.
42495
+ # @param [String] project
42496
+ # Project ID for this request.
42497
+ # @param [String] zone
42498
+ # The name of the zone for this request.
42499
+ # @param [String] parent_resource
42500
+ # Name or id of parent resource of the resource for this request.
42501
+ # @param [String] resource
42502
+ # Name or id of the resource for this request.
42503
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
42504
+ # @param [String] fields
42505
+ # Selector specifying which fields to include in a partial response.
42506
+ # @param [String] quota_user
42507
+ # Available to use for quota purposes for server-side applications. Can be any
42508
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42509
+ # @param [String] user_ip
42510
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42511
+ # @param [Google::Apis::RequestOptions] options
42512
+ # Request-specific options
42513
+ #
42514
+ # @yield [result, err] Result & error if block supplied
42515
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
42516
+ # @yieldparam err [StandardError] error object if request failed
42517
+ #
42518
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
42519
+ #
42520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42523
+ def test_reservation_sub_block_iam_permissions(project, zone, parent_resource, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42524
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions', options)
42525
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
42526
+ command.request_object = test_permissions_request_object
42527
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
42528
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
42529
+ command.params['project'] = project unless project.nil?
42530
+ command.params['zone'] = zone unless zone.nil?
42531
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42532
+ command.params['resource'] = resource unless resource.nil?
42533
+ command.query['fields'] = fields unless fields.nil?
42534
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42535
+ command.query['userIp'] = user_ip unless user_ip.nil?
42536
+ execute_or_queue_command(command, &block)
42537
+ end
42538
+
42221
42539
  # Retrieves an aggregated list of reservations.
42222
- # To prevent failure, Google recommends that you set the
42540
+ # To prevent failure, it is recommended that you set the
42223
42541
  # `returnPartialSuccess` parameter to `true`.
42224
42542
  # @param [String] project
42225
42543
  # Project ID for this request.
@@ -48829,6 +49147,12 @@ module Google
48829
49147
  # @param [Fixnum] service_project_number
48830
49148
  # The Shared VPC service project id or service project number for which
48831
49149
  # aggregated list request is invoked for subnetworks list-usable api.
49150
+ # @param [Array<String>, String] views
49151
+ # Defines the extra views returned back in the subnetwork resource.
49152
+ # Supported values:
49153
+ #
49154
+ # - WITH_UTILIZATION: Utilization data is included in the
49155
+ # response.
48832
49156
  # @param [String] fields
48833
49157
  # Selector specifying which fields to include in a partial response.
48834
49158
  # @param [String] quota_user
@@ -48848,7 +49172,7 @@ module Google
48848
49172
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48849
49173
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48850
49174
  # @raise [Google::Apis::AuthorizationError] Authorization is required
48851
- def aggregated_subnetwork_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49175
+ def aggregated_subnetwork_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, views: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48852
49176
  command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options)
48853
49177
  command.response_representation = Google::Apis::ComputeV1::SubnetworkAggregatedList::Representation
48854
49178
  command.response_class = Google::Apis::ComputeV1::SubnetworkAggregatedList
@@ -48860,6 +49184,7 @@ module Google
48860
49184
  command.query['pageToken'] = page_token unless page_token.nil?
48861
49185
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
48862
49186
  command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
49187
+ command.query['views'] = views unless views.nil?
48863
49188
  command.query['fields'] = fields unless fields.nil?
48864
49189
  command.query['quotaUser'] = quota_user unless quota_user.nil?
48865
49190
  command.query['userIp'] = user_ip unless user_ip.nil?
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.133.0
4
+ version: 0.134.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.133.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.134.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: