google-apis-compute_v1 0.133.0 → 0.135.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.
@@ -27334,8 +27373,10 @@ module Google
27334
27373
  # This has billing implications. Projects in the hierarchy with effective
27335
27374
  # hierarchical security policies will be automatically enrolled into Cloud
27336
27375
  # Armor Enterprise if not already enrolled.
27337
- # Use of this API to modify firewall policies is deprecated. Use
27338
- # firewallPolicies.addAssociation instead if possible.
27376
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
27377
+ # versions of this API were used to modify firewall policies. This usage is
27378
+ # now disabled for most organizations. Use firewallPolicies.addAssociation
27379
+ # instead.
27339
27380
  # @param [String] security_policy
27340
27381
  # Name of the security policy to update.
27341
27382
  # @param [Google::Apis::ComputeV1::SecurityPolicyAssociation] security_policy_association_object
@@ -27390,6 +27431,9 @@ module Google
27390
27431
  end
27391
27432
 
27392
27433
  # Inserts a rule into a security policy.
27434
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
27435
+ # versions of this API were used to modify firewall policies. This usage is
27436
+ # now disabled for most organizations. Use firewallPolicies.addRule instead.
27393
27437
  # @param [String] security_policy
27394
27438
  # Name of the security policy to update.
27395
27439
  # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
@@ -27439,8 +27483,10 @@ module Google
27439
27483
  end
27440
27484
 
27441
27485
  # Copies rules to the specified security policy.
27442
- # Use of this API to modify firewall policies is deprecated. Use
27443
- # firewallPolicies.copyRules instead.
27486
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
27487
+ # versions of this API were used to modify firewall policies. This usage is
27488
+ # now disabled for most organizations. Use firewallPolicies.cloneRules
27489
+ # instead.
27444
27490
  # @param [String] security_policy
27445
27491
  # Name of the security policy to update.
27446
27492
  # @param [String] request_id
@@ -27490,8 +27536,9 @@ module Google
27490
27536
  end
27491
27537
 
27492
27538
  # Deletes the specified policy.
27493
- # Use of this API to remove firewall policies is deprecated. Use
27494
- # firewallPolicies.delete instead.
27539
+ # Use this API to remove Cloud Armor policies. Previously, alpha and beta
27540
+ # versions of this API were used to remove firewall policies. This usage is
27541
+ # now disabled for most organizations. Use firewallPolicies.delete instead.
27495
27542
  # @param [String] security_policy
27496
27543
  # Name of the security policy to delete.
27497
27544
  # @param [String] request_id
@@ -27538,8 +27585,9 @@ module Google
27538
27585
  end
27539
27586
 
27540
27587
  # List all of the ordered rules present in a single specified policy.
27541
- # Use of this API to read firewall policies is deprecated. Use
27542
- # firewallPolicies.get instead.
27588
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
27589
+ # versions of this API were used to read firewall policies. This usage is now
27590
+ # disabled for most organizations. Use firewallPolicies.get instead.
27543
27591
  # @param [String] security_policy
27544
27592
  # Name of the security policy to get.
27545
27593
  # @param [String] fields
@@ -27573,8 +27621,10 @@ module Google
27573
27621
  end
27574
27622
 
27575
27623
  # Gets an association with the specified name.
27576
- # Use of this API to read firewall policies is deprecated. Use
27577
- # firewallPolicies.getAssociation instead if possible.
27624
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
27625
+ # versions of this API were used to read firewall policies. This usage is
27626
+ # now disabled for most organizations. Use firewallPolicies.getAssociation
27627
+ # instead.
27578
27628
  # @param [String] security_policy
27579
27629
  # Name of the security policy to which the queried rule belongs.
27580
27630
  # @param [String] name
@@ -27611,8 +27661,9 @@ module Google
27611
27661
  end
27612
27662
 
27613
27663
  # Gets a rule at the specified priority.
27614
- # Use of this API to read firewall policies is deprecated. Use
27615
- # firewallPolicies.getRule instead.
27664
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
27665
+ # versions of this API were used to read firewall policies. This usage is now
27666
+ # disabled for most organizations. Use firewallPolicies.getRule instead.
27616
27667
  # @param [String] security_policy
27617
27668
  # Name of the security policy to which the queried rule belongs.
27618
27669
  # @param [Fixnum] priority
@@ -27650,8 +27701,9 @@ module Google
27650
27701
 
27651
27702
  # Creates a new policy in the specified organization using the data included
27652
27703
  # in the request.
27653
- # Use of this API to insert firewall policies is deprecated. Use
27654
- # firewallPolicies.insert instead.
27704
+ # Use this API to add Cloud Armor policies. Previously, alpha and beta
27705
+ # versions of this API were used to add firewall policies. This usage is now
27706
+ # disabled for most organizations. Use firewallPolicies.insert instead.
27655
27707
  # @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
27656
27708
  # @param [String] parent_id
27657
27709
  # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]"
@@ -27704,8 +27756,9 @@ module Google
27704
27756
 
27705
27757
  # List all the policies that have been configured for the specified
27706
27758
  # organization.
27707
- # Use of this API to read firewall policies is deprecated. Use
27708
- # firewallPolicies.list instead.
27759
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
27760
+ # versions of this API were used to read firewall policies. This usage is now
27761
+ # disabled for most organizations. Use firewallPolicies.list instead.
27709
27762
  # @param [String] filter
27710
27763
  # A filter expression that filters resources listed in the response. Most
27711
27764
  # Compute resources support two types of filter expressions:
@@ -27820,8 +27873,10 @@ module Google
27820
27873
  end
27821
27874
 
27822
27875
  # Lists associations of a specified target, i.e., organization or folder.
27823
- # Use of this API to read firewall policies is deprecated. Use
27824
- # firewallPolicies.listAssociations instead if possible.
27876
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
27877
+ # versions of this API were used to read firewall policies. This usage is
27878
+ # now disabled for most organizations. Use firewallPolicies.listAssociations
27879
+ # instead.
27825
27880
  # @param [String] target_resource
27826
27881
  # The target resource to list associations. It is an organization, or a
27827
27882
  # folder.
@@ -27971,8 +28026,9 @@ module Google
27971
28026
  end
27972
28027
 
27973
28028
  # Moves the specified security policy.
27974
- # Use of this API to modify firewall policies is deprecated. Use
27975
- # firewallPolicies.move instead.
28029
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
28030
+ # versions of this API were used to modify firewall policies. This usage is
28031
+ # now disabled for most organizations. Use firewallPolicies.move instead.
27976
28032
  # @param [String] security_policy
27977
28033
  # Name of the security policy to update.
27978
28034
  # @param [String] parent_id
@@ -28022,8 +28078,9 @@ module Google
28022
28078
  end
28023
28079
 
28024
28080
  # Patches the specified policy with the data included in the request.
28025
- # Use of this API to modify firewall policies is deprecated. Use
28026
- # firewallPolicies.patch instead.
28081
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
28082
+ # versions of this API were used to modify firewall policies. This usage is
28083
+ # now disabled for most organizations. Use firewallPolicies.patch instead.
28027
28084
  # @param [String] security_policy
28028
28085
  # Name of the security policy to update.
28029
28086
  # @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object
@@ -28073,8 +28130,10 @@ module Google
28073
28130
  end
28074
28131
 
28075
28132
  # Patches a rule at the specified priority.
28076
- # Use of this API to modify firewall policies is deprecated. Use
28077
- # firewallPolicies.patchRule instead.
28133
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
28134
+ # versions of this API were used to modify firewall policies. This usage is
28135
+ # now disabled for most organizations. Use firewallPolicies.patchRule
28136
+ # instead.
28078
28137
  # @param [String] security_policy
28079
28138
  # Name of the security policy to update.
28080
28139
  # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
@@ -28127,8 +28186,10 @@ module Google
28127
28186
  end
28128
28187
 
28129
28188
  # Removes an association for the specified security policy.
28130
- # Use of this API to modify firewall policies is deprecated. Use
28131
- # firewallPolicies.removeAssociation instead if possible.
28189
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
28190
+ # versions of this API were used to modify firewall policies. This usage is
28191
+ # now disabled for most organizations. Use firewallPolicies.removeAssociation
28192
+ # instead.
28132
28193
  # @param [String] security_policy
28133
28194
  # Name of the security policy to update.
28134
28195
  # @param [String] name
@@ -28178,6 +28239,10 @@ module Google
28178
28239
  end
28179
28240
 
28180
28241
  # Deletes a rule at the specified priority.
28242
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
28243
+ # versions of this API were used to modify firewall policies. This usage is
28244
+ # now disabled for most organizations. Use firewallPolicies.removeRule
28245
+ # instead.
28181
28246
  # @param [String] security_policy
28182
28247
  # Name of the security policy to update.
28183
28248
  # @param [Fixnum] priority
@@ -29419,11 +29484,13 @@ module Google
29419
29484
  execute_or_queue_command(command, &block)
29420
29485
  end
29421
29486
 
29487
+ # Moves a persistent disk from one zone to another.
29488
+ # *Note*: The moveDisk API will be deprecated on September 29, 2026.
29422
29489
  # Starting September 29, 2025, you can't use the moveDisk API on new
29423
29490
  # projects. To move a disk to a different region or zone, follow the steps in
29424
29491
  # [Change the location of a
29425
- # disk](https://`$universe.dns_names.final_documentation_domain`/compute/docs/
29426
- # disks/migrate-to-hyperdisk#migrate-to-hd).
29492
+ # disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-
29493
+ # to-hd).
29427
29494
  # Projects that already use the moveDisk API can continue usage until
29428
29495
  # September 29, 2026.
29429
29496
  # Starting November 1, 2025, API responses will include a warning message in
@@ -31799,7 +31866,7 @@ module Google
31799
31866
  end
31800
31867
 
31801
31868
  # Retrieves an aggregated list of commitments by region.
31802
- # To prevent failure, Google recommends that you set the
31869
+ # To prevent failure, it is recommended that you set the
31803
31870
  # `returnPartialSuccess` parameter to `true`.
31804
31871
  # @param [String] project
31805
31872
  # Project ID for this request.
@@ -41755,6 +41822,52 @@ module Google
41755
41822
  execute_or_queue_command(command, &block)
41756
41823
  end
41757
41824
 
41825
+ # Gets the access control policy for a resource. May be empty if no such
41826
+ # policy or resource exists.
41827
+ # @param [String] project
41828
+ # Project ID for this request.
41829
+ # @param [String] zone
41830
+ # The name of the zone for this request.
41831
+ # @param [String] parent_resource
41832
+ # Name or id of parent resource of the resource for this request.
41833
+ # @param [String] resource
41834
+ # Name or id of the resource for this request.
41835
+ # @param [Fixnum] options_requested_policy_version
41836
+ # Requested IAM Policy version.
41837
+ # @param [String] fields
41838
+ # Selector specifying which fields to include in a partial response.
41839
+ # @param [String] quota_user
41840
+ # Available to use for quota purposes for server-side applications. Can be any
41841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41842
+ # @param [String] user_ip
41843
+ # Legacy name for parameter that has been superseded by `quotaUser`.
41844
+ # @param [Google::Apis::RequestOptions] options
41845
+ # Request-specific options
41846
+ #
41847
+ # @yield [result, err] Result & error if block supplied
41848
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
41849
+ # @yieldparam err [StandardError] error object if request failed
41850
+ #
41851
+ # @return [Google::Apis::ComputeV1::Policy]
41852
+ #
41853
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41854
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41855
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41856
+ 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)
41857
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy', options)
41858
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
41859
+ command.response_class = Google::Apis::ComputeV1::Policy
41860
+ command.params['project'] = project unless project.nil?
41861
+ command.params['zone'] = zone unless zone.nil?
41862
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
41863
+ command.params['resource'] = resource unless resource.nil?
41864
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
41865
+ command.query['fields'] = fields unless fields.nil?
41866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41867
+ command.query['userIp'] = user_ip unless user_ip.nil?
41868
+ execute_or_queue_command(command, &block)
41869
+ end
41870
+
41758
41871
  # Retrieves a list of reservation blocks under a single reservation.
41759
41872
  # @param [String] project
41760
41873
  # Project ID for this request.
@@ -41936,6 +42049,97 @@ module Google
41936
42049
  execute_or_queue_command(command, &block)
41937
42050
  end
41938
42051
 
42052
+ # Sets the access control policy on the specified resource.
42053
+ # Replaces any existing policy.
42054
+ # @param [String] project
42055
+ # Project ID for this request.
42056
+ # @param [String] zone
42057
+ # The name of the zone for this request.
42058
+ # @param [String] parent_resource
42059
+ # Name or id of parent resource of the resource for this request.
42060
+ # @param [String] resource
42061
+ # Name or id of the resource for this request.
42062
+ # @param [Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest] zone_set_nested_policy_request_object
42063
+ # @param [String] fields
42064
+ # Selector specifying which fields to include in a partial response.
42065
+ # @param [String] quota_user
42066
+ # Available to use for quota purposes for server-side applications. Can be any
42067
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42068
+ # @param [String] user_ip
42069
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42070
+ # @param [Google::Apis::RequestOptions] options
42071
+ # Request-specific options
42072
+ #
42073
+ # @yield [result, err] Result & error if block supplied
42074
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
42075
+ # @yieldparam err [StandardError] error object if request failed
42076
+ #
42077
+ # @return [Google::Apis::ComputeV1::Policy]
42078
+ #
42079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42082
+ 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)
42083
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy', options)
42084
+ command.request_representation = Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest::Representation
42085
+ command.request_object = zone_set_nested_policy_request_object
42086
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
42087
+ command.response_class = Google::Apis::ComputeV1::Policy
42088
+ command.params['project'] = project unless project.nil?
42089
+ command.params['zone'] = zone unless zone.nil?
42090
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42091
+ command.params['resource'] = resource unless resource.nil?
42092
+ command.query['fields'] = fields unless fields.nil?
42093
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42094
+ command.query['userIp'] = user_ip unless user_ip.nil?
42095
+ execute_or_queue_command(command, &block)
42096
+ end
42097
+
42098
+ # Returns permissions that a caller has on the specified resource.
42099
+ # @param [String] project
42100
+ # Project ID for this request.
42101
+ # @param [String] zone
42102
+ # The name of the zone for this request.
42103
+ # @param [String] parent_resource
42104
+ # Name or id of parent resource of the resource for this request.
42105
+ # @param [String] resource
42106
+ # Name or id of the resource for this request.
42107
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
42108
+ # @param [String] fields
42109
+ # Selector specifying which fields to include in a partial response.
42110
+ # @param [String] quota_user
42111
+ # Available to use for quota purposes for server-side applications. Can be any
42112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42113
+ # @param [String] user_ip
42114
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42115
+ # @param [Google::Apis::RequestOptions] options
42116
+ # Request-specific options
42117
+ #
42118
+ # @yield [result, err] Result & error if block supplied
42119
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
42120
+ # @yieldparam err [StandardError] error object if request failed
42121
+ #
42122
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
42123
+ #
42124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42127
+ 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)
42128
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions', options)
42129
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
42130
+ command.request_object = test_permissions_request_object
42131
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
42132
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
42133
+ command.params['project'] = project unless project.nil?
42134
+ command.params['zone'] = zone unless zone.nil?
42135
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42136
+ command.params['resource'] = resource unless resource.nil?
42137
+ command.query['fields'] = fields unless fields.nil?
42138
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42139
+ command.query['userIp'] = user_ip unless user_ip.nil?
42140
+ execute_or_queue_command(command, &block)
42141
+ end
42142
+
41939
42143
  # Retrieves information about the specified reservation subBlock.
41940
42144
  # @param [String] project
41941
42145
  # Project ID for this request.
@@ -41947,6 +42151,8 @@ module Google
41947
42151
  # @param [String] reservation_sub_block
41948
42152
  # The name of the reservation subBlock.
41949
42153
  # Name should conform to RFC1035 or be a resource ID.
42154
+ # @param [String] view
42155
+ # View of the subBlock.
41950
42156
  # @param [String] fields
41951
42157
  # Selector specifying which fields to include in a partial response.
41952
42158
  # @param [String] quota_user
@@ -41966,7 +42172,7 @@ module Google
41966
42172
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41967
42173
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41968
42174
  # @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)
42175
+ 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
42176
  command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}', options)
41971
42177
  command.response_representation = Google::Apis::ComputeV1::ReservationSubBlocksGetResponse::Representation
41972
42178
  command.response_class = Google::Apis::ComputeV1::ReservationSubBlocksGetResponse
@@ -41974,6 +42180,53 @@ module Google
41974
42180
  command.params['zone'] = zone unless zone.nil?
41975
42181
  command.params['parentName'] = parent_name unless parent_name.nil?
41976
42182
  command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
42183
+ command.query['view'] = view unless view.nil?
42184
+ command.query['fields'] = fields unless fields.nil?
42185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42186
+ command.query['userIp'] = user_ip unless user_ip.nil?
42187
+ execute_or_queue_command(command, &block)
42188
+ end
42189
+
42190
+ # Gets the access control policy for a resource. May be empty if no such
42191
+ # policy or resource exists.
42192
+ # @param [String] project
42193
+ # Project ID for this request.
42194
+ # @param [String] zone
42195
+ # The name of the zone for this request.
42196
+ # @param [String] parent_resource
42197
+ # Name or id of parent resource of the resource for this request.
42198
+ # @param [String] resource
42199
+ # Name or id of the resource for this request.
42200
+ # @param [Fixnum] options_requested_policy_version
42201
+ # Requested IAM Policy version.
42202
+ # @param [String] fields
42203
+ # Selector specifying which fields to include in a partial response.
42204
+ # @param [String] quota_user
42205
+ # Available to use for quota purposes for server-side applications. Can be any
42206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42207
+ # @param [String] user_ip
42208
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42209
+ # @param [Google::Apis::RequestOptions] options
42210
+ # Request-specific options
42211
+ #
42212
+ # @yield [result, err] Result & error if block supplied
42213
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
42214
+ # @yieldparam err [StandardError] error object if request failed
42215
+ #
42216
+ # @return [Google::Apis::ComputeV1::Policy]
42217
+ #
42218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42221
+ 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)
42222
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/getIamPolicy', options)
42223
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
42224
+ command.response_class = Google::Apis::ComputeV1::Policy
42225
+ command.params['project'] = project unless project.nil?
42226
+ command.params['zone'] = zone unless zone.nil?
42227
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42228
+ command.params['resource'] = resource unless resource.nil?
42229
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
41977
42230
  command.query['fields'] = fields unless fields.nil?
41978
42231
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41979
42232
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -42218,8 +42471,99 @@ module Google
42218
42471
  execute_or_queue_command(command, &block)
42219
42472
  end
42220
42473
 
42474
+ # Sets the access control policy on the specified resource.
42475
+ # Replaces any existing policy.
42476
+ # @param [String] project
42477
+ # Project ID for this request.
42478
+ # @param [String] zone
42479
+ # The name of the zone for this request.
42480
+ # @param [String] parent_resource
42481
+ # Name or id of parent resource of the resource for this request.
42482
+ # @param [String] resource
42483
+ # Name or id of the resource for this request.
42484
+ # @param [Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest] zone_set_nested_policy_request_object
42485
+ # @param [String] fields
42486
+ # Selector specifying which fields to include in a partial response.
42487
+ # @param [String] quota_user
42488
+ # Available to use for quota purposes for server-side applications. Can be any
42489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42490
+ # @param [String] user_ip
42491
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42492
+ # @param [Google::Apis::RequestOptions] options
42493
+ # Request-specific options
42494
+ #
42495
+ # @yield [result, err] Result & error if block supplied
42496
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
42497
+ # @yieldparam err [StandardError] error object if request failed
42498
+ #
42499
+ # @return [Google::Apis::ComputeV1::Policy]
42500
+ #
42501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42504
+ 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)
42505
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy', options)
42506
+ command.request_representation = Google::Apis::ComputeV1::ZoneSetNestedPolicyRequest::Representation
42507
+ command.request_object = zone_set_nested_policy_request_object
42508
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
42509
+ command.response_class = Google::Apis::ComputeV1::Policy
42510
+ command.params['project'] = project unless project.nil?
42511
+ command.params['zone'] = zone unless zone.nil?
42512
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42513
+ command.params['resource'] = resource unless resource.nil?
42514
+ command.query['fields'] = fields unless fields.nil?
42515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42516
+ command.query['userIp'] = user_ip unless user_ip.nil?
42517
+ execute_or_queue_command(command, &block)
42518
+ end
42519
+
42520
+ # Returns permissions that a caller has on the specified resource.
42521
+ # @param [String] project
42522
+ # Project ID for this request.
42523
+ # @param [String] zone
42524
+ # The name of the zone for this request.
42525
+ # @param [String] parent_resource
42526
+ # Name or id of parent resource of the resource for this request.
42527
+ # @param [String] resource
42528
+ # Name or id of the resource for this request.
42529
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
42530
+ # @param [String] fields
42531
+ # Selector specifying which fields to include in a partial response.
42532
+ # @param [String] quota_user
42533
+ # Available to use for quota purposes for server-side applications. Can be any
42534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42535
+ # @param [String] user_ip
42536
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42537
+ # @param [Google::Apis::RequestOptions] options
42538
+ # Request-specific options
42539
+ #
42540
+ # @yield [result, err] Result & error if block supplied
42541
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
42542
+ # @yieldparam err [StandardError] error object if request failed
42543
+ #
42544
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
42545
+ #
42546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42549
+ 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)
42550
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions', options)
42551
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
42552
+ command.request_object = test_permissions_request_object
42553
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
42554
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
42555
+ command.params['project'] = project unless project.nil?
42556
+ command.params['zone'] = zone unless zone.nil?
42557
+ command.params['parentResource'] = parent_resource unless parent_resource.nil?
42558
+ command.params['resource'] = resource unless resource.nil?
42559
+ command.query['fields'] = fields unless fields.nil?
42560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42561
+ command.query['userIp'] = user_ip unless user_ip.nil?
42562
+ execute_or_queue_command(command, &block)
42563
+ end
42564
+
42221
42565
  # Retrieves an aggregated list of reservations.
42222
- # To prevent failure, Google recommends that you set the
42566
+ # To prevent failure, it is recommended that you set the
42223
42567
  # `returnPartialSuccess` parameter to `true`.
42224
42568
  # @param [String] project
42225
42569
  # Project ID for this request.
@@ -48829,6 +49173,12 @@ module Google
48829
49173
  # @param [Fixnum] service_project_number
48830
49174
  # The Shared VPC service project id or service project number for which
48831
49175
  # aggregated list request is invoked for subnetworks list-usable api.
49176
+ # @param [Array<String>, String] views
49177
+ # Defines the extra views returned back in the subnetwork resource.
49178
+ # Supported values:
49179
+ #
49180
+ # - WITH_UTILIZATION: Utilization data is included in the
49181
+ # response.
48832
49182
  # @param [String] fields
48833
49183
  # Selector specifying which fields to include in a partial response.
48834
49184
  # @param [String] quota_user
@@ -48848,7 +49198,7 @@ module Google
48848
49198
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48849
49199
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48850
49200
  # @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)
49201
+ 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
49202
  command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options)
48853
49203
  command.response_representation = Google::Apis::ComputeV1::SubnetworkAggregatedList::Representation
48854
49204
  command.response_class = Google::Apis::ComputeV1::SubnetworkAggregatedList
@@ -48860,6 +49210,7 @@ module Google
48860
49210
  command.query['pageToken'] = page_token unless page_token.nil?
48861
49211
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
48862
49212
  command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
49213
+ command.query['views'] = views unless views.nil?
48863
49214
  command.query['fields'] = fields unless fields.nil?
48864
49215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
48865
49216
  command.query['userIp'] = user_ip unless user_ip.nil?