google-apis-compute_alpha 0.124.0 → 0.126.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.
@@ -969,7 +969,7 @@ module Google
969
969
  end
970
970
 
971
971
  # Retrieves an aggregated list of autoscalers.
972
- # To prevent failure, Google recommends that you set the
972
+ # To prevent failure, it is recommended that you set the
973
973
  # `returnPartialSuccess` parameter to `true`.
974
974
  # @param [String] project
975
975
  # Project ID for this request.
@@ -2453,7 +2453,7 @@ module Google
2453
2453
 
2454
2454
  # Retrieves the list of all BackendService resources, regional and global,
2455
2455
  # available to the specified project.
2456
- # To prevent failure, Google recommends that you set the
2456
+ # To prevent failure, it is recommended that you set the
2457
2457
  # `returnPartialSuccess` parameter to `true`.
2458
2458
  # @param [String] project
2459
2459
  # Name of the project scoping this request.
@@ -3824,7 +3824,7 @@ module Google
3824
3824
  end
3825
3825
 
3826
3826
  # Retrieves an aggregated list of disk types.
3827
- # To prevent failure, Google recommends that you set the
3827
+ # To prevent failure, it is recommended that you set the
3828
3828
  # `returnPartialSuccess` parameter to `true`.
3829
3829
  # @param [String] project
3830
3830
  # Project ID for this request.
@@ -4167,7 +4167,7 @@ module Google
4167
4167
  end
4168
4168
 
4169
4169
  # Retrieves an aggregated list of persistent disks.
4170
- # To prevent failure, Google recommends that you set the
4170
+ # To prevent failure, it is recommended that you set the
4171
4171
  # `returnPartialSuccess` parameter to `true`.
4172
4172
  # @param [String] project
4173
4173
  # Project ID for this request.
@@ -7230,7 +7230,7 @@ module Google
7230
7230
  end
7231
7231
 
7232
7232
  # Retrieves an aggregated list of forwarding rules.
7233
- # To prevent failure, Google recommends that you set the
7233
+ # To prevent failure, it is recommended that you set the
7234
7234
  # `returnPartialSuccess` parameter to `true`.
7235
7235
  # @param [String] project
7236
7236
  # Project ID for this request.
@@ -7835,7 +7835,7 @@ module Google
7835
7835
  end
7836
7836
 
7837
7837
  # Retrieves an aggregated list of future reservations.
7838
- # To prevent failure, recommendation is that you set the
7838
+ # To prevent failure, it is recommended that you set the
7839
7839
  # `returnPartialSuccess` parameter to `true`.
7840
7840
  # @param [String] project
7841
7841
  # Project ID for this request.
@@ -10819,6 +10819,7 @@ module Google
10819
10819
  # Project ID for this request.
10820
10820
  # @param [String] global_vm_extension_policy
10821
10821
  # Name of the global VM extension policy to purge scoped resources for.
10822
+ # @param [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
10822
10823
  # @param [String] request_id
10823
10824
  # An optional request ID to identify requests. Specify a unique request ID so
10824
10825
  # that if you must retry your request, the server will know to ignore the
@@ -10831,29 +10832,6 @@ module Google
10831
10832
  # The request ID must be
10832
10833
  # a valid UUID with the exception that zero UUID is not supported
10833
10834
  # (00000000-0000-0000-0000-000000000000).
10834
- # @param [String] rollout_input_conflict_behavior
10835
- # Optional. [Optional] Specifies the behavior of the Rollout if a conflict is
10836
- # detected in a project during a Rollout. It can be one of the following
10837
- # values:
10838
- # 1) empty : don't overwrite the local value if conflict happens. This is
10839
- # the default behavior.
10840
- # 2) "overwrite" : Overwrite the local value with the rollout value.
10841
- # The concept of "conflict" applies to:
10842
- # 1) Insert action. If the zonal policy already exists when Insert
10843
- # happens, it's a conflict.
10844
- # 2) Update action. If the zonal policy was updated out of band by a
10845
- # zonal API, it's a conflict.
10846
- # @param [String] rollout_input_name
10847
- # Optional. The name of the rollout plan.
10848
- # Ex.
10849
- # projects//locations/global/rolloutPlans/.
10850
- # @param [String] rollout_input_predefined_rollout_plan
10851
- # Optional. Predefined rollout plan.
10852
- # @param [String] rollout_input_retry_uuid
10853
- # Optional. The UUID of the retry action. Only set it if this is a retry
10854
- # for an existing resource. This is for the user re-populate the resource
10855
- # without changes. An error will be returned if the retry_uuid is set but
10856
- # the resource get modified.
10857
10835
  # @param [String] fields
10858
10836
  # Selector specifying which fields to include in a partial response.
10859
10837
  # @param [String] quota_user
@@ -10873,17 +10851,15 @@ module Google
10873
10851
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10874
10852
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10875
10853
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10876
- def delete_global_vm_extension_policy(project, global_vm_extension_policy, request_id: nil, rollout_input_conflict_behavior: nil, rollout_input_name: nil, rollout_input_predefined_rollout_plan: nil, rollout_input_retry_uuid: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10877
- command = make_simple_command(:patch, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
10854
+ def delete_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10855
+ command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
10856
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
10857
+ command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
10878
10858
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
10879
10859
  command.response_class = Google::Apis::ComputeAlpha::Operation
10880
10860
  command.params['project'] = project unless project.nil?
10881
10861
  command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
10882
10862
  command.query['requestId'] = request_id unless request_id.nil?
10883
- command.query['rolloutInput.conflictBehavior'] = rollout_input_conflict_behavior unless rollout_input_conflict_behavior.nil?
10884
- command.query['rolloutInput.name'] = rollout_input_name unless rollout_input_name.nil?
10885
- command.query['rolloutInput.predefinedRolloutPlan'] = rollout_input_predefined_rollout_plan unless rollout_input_predefined_rollout_plan.nil?
10886
- command.query['rolloutInput.retryUuid'] = rollout_input_retry_uuid unless rollout_input_retry_uuid.nil?
10887
10863
  command.query['fields'] = fields unless fields.nil?
10888
10864
  command.query['quotaUser'] = quota_user unless quota_user.nil?
10889
10865
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -11141,6 +11117,134 @@ module Google
11141
11117
  execute_or_queue_command(command, &block)
11142
11118
  end
11143
11119
 
11120
+ # Retrieves an aggregated list of all of the HaControllers in the specified
11121
+ # project across all regions.
11122
+ # @param [String] project
11123
+ # Project ID for this request.
11124
+ # @param [String] filter
11125
+ # A filter expression that filters resources listed in the response. Most
11126
+ # Compute resources support two types of filter expressions:
11127
+ # expressions that support regular expressions and expressions that follow
11128
+ # API improvement proposal AIP-160.
11129
+ # These two types of filter expressions cannot be mixed in one request.
11130
+ # If you want to use AIP-160, your expression must specify the field name, an
11131
+ # operator, and the value that you want to use for filtering. The value
11132
+ # must be a string, a number, or a boolean. The operator
11133
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
11134
+ # For example, if you are filtering Compute Engine instances, you can
11135
+ # exclude instances named `example-instance` by specifying
11136
+ # `name != example-instance`.
11137
+ # The `:*` comparison can be used to test whether a key has been defined.
11138
+ # For example, to find all objects with `owner` label use:
11139
+ # ```
11140
+ # labels.owner:*
11141
+ # ```
11142
+ # You can also filter nested fields. For example, you could specify
11143
+ # `scheduling.automaticRestart = false` to include instances only
11144
+ # if they are not scheduled for automatic restarts. You can use filtering
11145
+ # on nested fields to filter based onresource labels.
11146
+ # To filter on multiple expressions, provide each separate expression within
11147
+ # parentheses. For example:
11148
+ # ```
11149
+ # (scheduling.automaticRestart = true)
11150
+ # (cpuPlatform = "Intel Skylake")
11151
+ # ```
11152
+ # By default, each expression is an `AND` expression. However, you
11153
+ # can include `AND` and `OR` expressions explicitly.
11154
+ # For example:
11155
+ # ```
11156
+ # (cpuPlatform = "Intel Skylake") OR
11157
+ # (cpuPlatform = "Intel Broadwell") AND
11158
+ # (scheduling.automaticRestart = true)
11159
+ # ```
11160
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
11161
+ # (not equal) operator against a single un-parenthesized expression with or
11162
+ # without quotes or against multiple parenthesized expressions. Examples:
11163
+ # `fieldname eq unquoted literal`
11164
+ # `fieldname eq 'single quoted literal'`
11165
+ # `fieldname eq "double quoted literal"`
11166
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
11167
+ # The literal value is interpreted as a regular expression using GoogleRE2
11168
+ # library syntax.
11169
+ # The literal value must match the entire field.
11170
+ # For example, to filter for instances that do not end with name "instance",
11171
+ # you would use `name ne .*instance`.
11172
+ # You cannot combine constraints on multiple fields using regular
11173
+ # expressions.
11174
+ # @param [Boolean] include_all_scopes
11175
+ # Indicates whether every visible scope for each scope type (zone, region,
11176
+ # global) should be included in the response. For new resource types added
11177
+ # after this field, the flag has no effect as new resource types will always
11178
+ # include every visible scope for each scope type in response. For resource
11179
+ # types which predate this field, if this flag is omitted or false, only
11180
+ # scopes of the scope types where the resource type is expected to be found
11181
+ # will be included.
11182
+ # @param [Fixnum] max_results
11183
+ # The maximum number of results per page that should be returned.
11184
+ # If the number of available results is larger than `maxResults`,
11185
+ # Compute Engine returns a `nextPageToken` that can be used to get
11186
+ # the next page of results in subsequent list requests. Acceptable values are
11187
+ # `0` to `500`, inclusive. (Default: `500`)
11188
+ # @param [String] order_by
11189
+ # Sorts list results by a certain order. By default, results
11190
+ # are returned in alphanumerical order based on the resource name.
11191
+ # You can also sort results in descending order based on the creation
11192
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
11193
+ # results based on the `creationTimestamp` field in
11194
+ # reverse chronological order (newest result first). Use this to sort
11195
+ # resources like operations so that the newest operation is returned first.
11196
+ # Currently, only sorting by `name` or
11197
+ # `creationTimestamp desc` is supported.
11198
+ # @param [String] page_token
11199
+ # Specifies a page token to use. Set `pageToken` to the
11200
+ # `nextPageToken` returned by a previous list request to get
11201
+ # the next page of results.
11202
+ # @param [Boolean] return_partial_success
11203
+ # Opt-in for partial success behavior which provides partial results in case
11204
+ # of failure. The default value is false.
11205
+ # For example, when partial success behavior is enabled, aggregatedList for a
11206
+ # single zone scope either returns all resources in the zone or no resources,
11207
+ # with an error code.
11208
+ # @param [Fixnum] service_project_number
11209
+ # The Shared VPC service project id or service project number for which
11210
+ # aggregated list request is invoked for subnetworks list-usable api.
11211
+ # @param [String] fields
11212
+ # Selector specifying which fields to include in a partial response.
11213
+ # @param [String] quota_user
11214
+ # Available to use for quota purposes for server-side applications. Can be any
11215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11216
+ # @param [String] user_ip
11217
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11218
+ # @param [Google::Apis::RequestOptions] options
11219
+ # Request-specific options
11220
+ #
11221
+ # @yield [result, err] Result & error if block supplied
11222
+ # @yieldparam result [Google::Apis::ComputeAlpha::HaControllersAggregatedList] parsed result object
11223
+ # @yieldparam err [StandardError] error object if request failed
11224
+ #
11225
+ # @return [Google::Apis::ComputeAlpha::HaControllersAggregatedList]
11226
+ #
11227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11230
+ def aggregated_ha_controller_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)
11231
+ command = make_simple_command(:get, 'projects/{project}/aggregated/haControllers', options)
11232
+ command.response_representation = Google::Apis::ComputeAlpha::HaControllersAggregatedList::Representation
11233
+ command.response_class = Google::Apis::ComputeAlpha::HaControllersAggregatedList
11234
+ command.params['project'] = project unless project.nil?
11235
+ command.query['filter'] = filter unless filter.nil?
11236
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
11237
+ command.query['maxResults'] = max_results unless max_results.nil?
11238
+ command.query['orderBy'] = order_by unless order_by.nil?
11239
+ command.query['pageToken'] = page_token unless page_token.nil?
11240
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
11241
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
11242
+ command.query['fields'] = fields unless fields.nil?
11243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11244
+ command.query['userIp'] = user_ip unless user_ip.nil?
11245
+ execute_or_queue_command(command, &block)
11246
+ end
11247
+
11144
11248
  # Deletes an HaController in the specified project.
11145
11249
  # @param [String] project
11146
11250
  # Project ID for this request.
@@ -27087,7 +27191,7 @@ module Google
27087
27191
  # Retrieves an aggregated list of network firewall policies, listing network
27088
27192
  # firewall policies from all applicable scopes (global and regional) and
27089
27193
  # grouping the results per scope.
27090
- # To prevent failure, Google recommends that you set the
27194
+ # To prevent failure, it is recommended that you set the
27091
27195
  # `returnPartialSuccess` parameter to `true`.
27092
27196
  # @param [String] project
27093
27197
  # Project ID for this request.
@@ -31130,8 +31234,10 @@ module Google
31130
31234
  # This has billing implications. Projects in the hierarchy with effective
31131
31235
  # hierarchical security policies will be automatically enrolled into Cloud
31132
31236
  # Armor Enterprise if not already enrolled.
31133
- # Use of this API to modify firewall policies is deprecated. Use
31134
- # firewallPolicies.addAssociation instead if possible.
31237
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31238
+ # versions of this API were used to modify firewall policies. This usage is
31239
+ # now disabled for most organizations. Use firewallPolicies.addAssociation
31240
+ # instead.
31135
31241
  # @param [String] security_policy
31136
31242
  # Name of the security policy to update.
31137
31243
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
@@ -31186,6 +31292,9 @@ module Google
31186
31292
  end
31187
31293
 
31188
31294
  # Inserts a rule into a security policy.
31295
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31296
+ # versions of this API were used to modify firewall policies. This usage is
31297
+ # now disabled for most organizations. Use firewallPolicies.addRule instead.
31189
31298
  # @param [String] security_policy
31190
31299
  # Name of the security policy to update.
31191
31300
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
@@ -31235,8 +31344,10 @@ module Google
31235
31344
  end
31236
31345
 
31237
31346
  # Copies rules to the specified security policy.
31238
- # Use of this API to modify firewall policies is deprecated. Use
31239
- # firewallPolicies.copyRules instead.
31347
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31348
+ # versions of this API were used to modify firewall policies. This usage is
31349
+ # now disabled for most organizations. Use firewallPolicies.cloneRules
31350
+ # instead.
31240
31351
  # @param [String] security_policy
31241
31352
  # Name of the security policy to update.
31242
31353
  # @param [String] request_id
@@ -31286,8 +31397,9 @@ module Google
31286
31397
  end
31287
31398
 
31288
31399
  # Deletes the specified policy.
31289
- # Use of this API to remove firewall policies is deprecated. Use
31290
- # firewallPolicies.delete instead.
31400
+ # Use this API to remove Cloud Armor policies. Previously, alpha and beta
31401
+ # versions of this API were used to remove firewall policies. This usage is
31402
+ # now disabled for most organizations. Use firewallPolicies.delete instead.
31291
31403
  # @param [String] security_policy
31292
31404
  # Name of the security policy to delete.
31293
31405
  # @param [String] request_id
@@ -31334,8 +31446,9 @@ module Google
31334
31446
  end
31335
31447
 
31336
31448
  # List all of the ordered rules present in a single specified policy.
31337
- # Use of this API to read firewall policies is deprecated. Use
31338
- # firewallPolicies.get instead.
31449
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31450
+ # versions of this API were used to read firewall policies. This usage is now
31451
+ # disabled for most organizations. Use firewallPolicies.get instead.
31339
31452
  # @param [String] security_policy
31340
31453
  # Name of the security policy to get.
31341
31454
  # @param [String] fields
@@ -31369,8 +31482,10 @@ module Google
31369
31482
  end
31370
31483
 
31371
31484
  # Gets an association with the specified name.
31372
- # Use of this API to read firewall policies is deprecated. Use
31373
- # firewallPolicies.getAssociation instead if possible.
31485
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31486
+ # versions of this API were used to read firewall policies. This usage is
31487
+ # now disabled for most organizations. Use firewallPolicies.getAssociation
31488
+ # instead.
31374
31489
  # @param [String] security_policy
31375
31490
  # Name of the security policy to which the queried rule belongs.
31376
31491
  # @param [String] name
@@ -31407,8 +31522,9 @@ module Google
31407
31522
  end
31408
31523
 
31409
31524
  # Gets a rule at the specified priority.
31410
- # Use of this API to read firewall policies is deprecated. Use
31411
- # firewallPolicies.getRule instead.
31525
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31526
+ # versions of this API were used to read firewall policies. This usage is now
31527
+ # disabled for most organizations. Use firewallPolicies.getRule instead.
31412
31528
  # @param [String] security_policy
31413
31529
  # Name of the security policy to which the queried rule belongs.
31414
31530
  # @param [Fixnum] priority
@@ -31446,8 +31562,9 @@ module Google
31446
31562
 
31447
31563
  # Creates a new policy in the specified organization using the data included
31448
31564
  # in the request.
31449
- # Use of this API to insert firewall policies is deprecated. Use
31450
- # firewallPolicies.insert instead.
31565
+ # Use this API to add Cloud Armor policies. Previously, alpha and beta
31566
+ # versions of this API were used to add firewall policies. This usage is now
31567
+ # disabled for most organizations. Use firewallPolicies.insert instead.
31451
31568
  # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
31452
31569
  # @param [String] parent_id
31453
31570
  # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]"
@@ -31500,8 +31617,9 @@ module Google
31500
31617
 
31501
31618
  # List all the policies that have been configured for the specified
31502
31619
  # organization.
31503
- # Use of this API to read firewall policies is deprecated. Use
31504
- # firewallPolicies.list instead.
31620
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31621
+ # versions of this API were used to read firewall policies. This usage is now
31622
+ # disabled for most organizations. Use firewallPolicies.list instead.
31505
31623
  # @param [String] filter
31506
31624
  # A filter expression that filters resources listed in the response. Most
31507
31625
  # Compute resources support two types of filter expressions:
@@ -31616,8 +31734,10 @@ module Google
31616
31734
  end
31617
31735
 
31618
31736
  # Lists associations of a specified target, i.e., organization or folder.
31619
- # Use of this API to read firewall policies is deprecated. Use
31620
- # firewallPolicies.listAssociations instead if possible.
31737
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31738
+ # versions of this API were used to read firewall policies. This usage is
31739
+ # now disabled for most organizations. Use firewallPolicies.listAssociations
31740
+ # instead.
31621
31741
  # @param [String] target_resource
31622
31742
  # The target resource to list associations. It is an organization, or a
31623
31743
  # folder.
@@ -31767,8 +31887,9 @@ module Google
31767
31887
  end
31768
31888
 
31769
31889
  # Moves the specified security policy.
31770
- # Use of this API to modify firewall policies is deprecated. Use
31771
- # firewallPolicies.move instead.
31890
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31891
+ # versions of this API were used to modify firewall policies. This usage is
31892
+ # now disabled for most organizations. Use firewallPolicies.move instead.
31772
31893
  # @param [String] security_policy
31773
31894
  # Name of the security policy to update.
31774
31895
  # @param [String] parent_id
@@ -31818,8 +31939,9 @@ module Google
31818
31939
  end
31819
31940
 
31820
31941
  # Patches the specified policy with the data included in the request.
31821
- # Use of this API to modify firewall policies is deprecated. Use
31822
- # firewallPolicies.patch instead.
31942
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31943
+ # versions of this API were used to modify firewall policies. This usage is
31944
+ # now disabled for most organizations. Use firewallPolicies.patch instead.
31823
31945
  # @param [String] security_policy
31824
31946
  # Name of the security policy to update.
31825
31947
  # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
@@ -31872,8 +31994,10 @@ module Google
31872
31994
  end
31873
31995
 
31874
31996
  # Patches a rule at the specified priority.
31875
- # Use of this API to modify firewall policies is deprecated. Use
31876
- # firewallPolicies.patchRule instead.
31997
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31998
+ # versions of this API were used to modify firewall policies. This usage is
31999
+ # now disabled for most organizations. Use firewallPolicies.patchRule
32000
+ # instead.
31877
32001
  # @param [String] security_policy
31878
32002
  # Name of the security policy to update.
31879
32003
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
@@ -31929,8 +32053,10 @@ module Google
31929
32053
  end
31930
32054
 
31931
32055
  # Removes an association for the specified security policy.
31932
- # Use of this API to modify firewall policies is deprecated. Use
31933
- # firewallPolicies.removeAssociation instead if possible.
32056
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
32057
+ # versions of this API were used to modify firewall policies. This usage is
32058
+ # now disabled for most organizations. Use firewallPolicies.removeAssociation
32059
+ # instead.
31934
32060
  # @param [String] security_policy
31935
32061
  # Name of the security policy to update.
31936
32062
  # @param [String] name
@@ -31980,6 +32106,10 @@ module Google
31980
32106
  end
31981
32107
 
31982
32108
  # Deletes a rule at the specified priority.
32109
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
32110
+ # versions of this API were used to modify firewall policies. This usage is
32111
+ # now disabled for most organizations. Use firewallPolicies.removeRule
32112
+ # instead.
31983
32113
  # @param [String] security_policy
31984
32114
  # Name of the security policy to update.
31985
32115
  # @param [Fixnum] priority
@@ -33221,11 +33351,13 @@ module Google
33221
33351
  execute_or_queue_command(command, &block)
33222
33352
  end
33223
33353
 
33354
+ # Moves a persistent disk from one zone to another.
33355
+ # *Note*: The moveDisk API will be deprecated on September 29, 2026.
33224
33356
  # Starting September 29, 2025, you can't use the moveDisk API on new
33225
33357
  # projects. To move a disk to a different region or zone, follow the steps in
33226
33358
  # [Change the location of a
33227
- # disk](https://`$universe.dns_names.final_documentation_domain`/compute/docs/
33228
- # disks/migrate-to-hyperdisk#migrate-to-hd).
33359
+ # disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-
33360
+ # to-hd).
33229
33361
  # Projects that already use the moveDisk API can continue usage until
33230
33362
  # September 29, 2026.
33231
33363
  # Starting November 1, 2025, API responses will include a warning message in
@@ -36825,7 +36957,7 @@ module Google
36825
36957
  end
36826
36958
 
36827
36959
  # Retrieves an aggregated list of commitments by region.
36828
- # To prevent failure, Google recommends that you set the
36960
+ # To prevent failure, it is recommended that you set the
36829
36961
  # `returnPartialSuccess` parameter to `true`.
36830
36962
  # @param [String] project
36831
36963
  # Project ID for this request.
@@ -37429,7 +37561,7 @@ module Google
37429
37561
 
37430
37562
  # Retrieves the list of all CompositeHealthCheck resources (all
37431
37563
  # regional) available to the specified project.
37432
- # To prevent failure, Google recommends that you set the
37564
+ # To prevent failure, it is recommended that you set the
37433
37565
  # `returnPartialSuccess` parameter to `true`.
37434
37566
  # @param [String] project
37435
37567
  # Name of the project scoping this request.
@@ -39275,7 +39407,7 @@ module Google
39275
39407
 
39276
39408
  # Retrieves the list of all HealthAggregationPolicy resources,
39277
39409
  # regional and global, available to the specified project.
39278
- # To prevent failure, Google recommends that you set the
39410
+ # To prevent failure, it is recommended that you set the
39279
39411
  # `returnPartialSuccess` parameter to `true`.
39280
39412
  # @param [String] project
39281
39413
  # Name of the project scoping this request.
@@ -39767,7 +39899,7 @@ module Google
39767
39899
 
39768
39900
  # Retrieves the list of all HealthCheckService resources,
39769
39901
  # regional and global, available to the specified project.
39770
- # To prevent failure, Google recommends that you set the
39902
+ # To prevent failure, it is recommended that you set the
39771
39903
  # `returnPartialSuccess` parameter to `true`.
39772
39904
  # @param [String] project
39773
39905
  # Name of the project scoping this request.
@@ -48357,58 +48489,14 @@ module Google
48357
48489
  execute_or_queue_command(command, &block)
48358
48490
  end
48359
48491
 
48360
- # Inserts a rule into a security policy.
48361
- # @param [String] project
48362
- # Project ID for this request.
48363
- # @param [String] region
48364
- # Name of the region scoping this request.
48365
- # @param [String] security_policy
48366
- # Name of the security policy to update.
48367
- # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
48368
- # @param [Boolean] validate_only
48369
- # If true, the request will not be committed.
48370
- # @param [String] fields
48371
- # Selector specifying which fields to include in a partial response.
48372
- # @param [String] quota_user
48373
- # Available to use for quota purposes for server-side applications. Can be any
48374
- # arbitrary string assigned to a user, but should not exceed 40 characters.
48375
- # @param [String] user_ip
48376
- # Legacy name for parameter that has been superseded by `quotaUser`.
48377
- # @param [Google::Apis::RequestOptions] options
48378
- # Request-specific options
48379
- #
48380
- # @yield [result, err] Result & error if block supplied
48381
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48382
- # @yieldparam err [StandardError] error object if request failed
48383
- #
48384
- # @return [Google::Apis::ComputeAlpha::Operation]
48385
- #
48386
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48387
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48388
- # @raise [Google::Apis::AuthorizationError] Authorization is required
48389
- def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48390
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
48391
- command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
48392
- command.request_object = security_policy_rule_object
48393
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48394
- command.response_class = Google::Apis::ComputeAlpha::Operation
48395
- command.params['project'] = project unless project.nil?
48396
- command.params['region'] = region unless region.nil?
48397
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
48398
- command.query['validateOnly'] = validate_only unless validate_only.nil?
48399
- command.query['fields'] = fields unless fields.nil?
48400
- command.query['quotaUser'] = quota_user unless quota_user.nil?
48401
- command.query['userIp'] = user_ip unless user_ip.nil?
48402
- execute_or_queue_command(command, &block)
48403
- end
48404
-
48405
- # Deletes the specified policy.
48492
+ # Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
48493
+ # will delete the underlying PD snapshot and is irreversible.
48406
48494
  # @param [String] project
48407
48495
  # Project ID for this request.
48408
48496
  # @param [String] region
48409
- # Name of the region scoping this request.
48410
- # @param [String] security_policy
48411
- # Name of the security policy to delete.
48497
+ # Name of the region for this request.
48498
+ # @param [String] recoverable_snapshot
48499
+ # Name of the recoverable Snapshot resource to delete.
48412
48500
  # @param [String] request_id
48413
48501
  # An optional request ID to identify requests. Specify a unique request ID so
48414
48502
  # that if you must retry your request, the server will know to ignore the
@@ -48440,13 +48528,13 @@ module Google
48440
48528
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48441
48529
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48442
48530
  # @raise [Google::Apis::AuthorizationError] Authorization is required
48443
- def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48444
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
48531
+ def delete_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48532
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options)
48445
48533
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48446
48534
  command.response_class = Google::Apis::ComputeAlpha::Operation
48447
48535
  command.params['project'] = project unless project.nil?
48448
48536
  command.params['region'] = region unless region.nil?
48449
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
48537
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
48450
48538
  command.query['requestId'] = request_id unless request_id.nil?
48451
48539
  command.query['fields'] = fields unless fields.nil?
48452
48540
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -48454,54 +48542,13 @@ module Google
48454
48542
  execute_or_queue_command(command, &block)
48455
48543
  end
48456
48544
 
48457
- # List all of the ordered rules present in a single specified policy.
48458
- # @param [String] project
48459
- # Project ID for this request.
48460
- # @param [String] region
48461
- # Name of the region scoping this request.
48462
- # @param [String] security_policy
48463
- # Name of the security policy to get.
48464
- # @param [String] fields
48465
- # Selector specifying which fields to include in a partial response.
48466
- # @param [String] quota_user
48467
- # Available to use for quota purposes for server-side applications. Can be any
48468
- # arbitrary string assigned to a user, but should not exceed 40 characters.
48469
- # @param [String] user_ip
48470
- # Legacy name for parameter that has been superseded by `quotaUser`.
48471
- # @param [Google::Apis::RequestOptions] options
48472
- # Request-specific options
48473
- #
48474
- # @yield [result, err] Result & error if block supplied
48475
- # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
48476
- # @yieldparam err [StandardError] error object if request failed
48477
- #
48478
- # @return [Google::Apis::ComputeAlpha::SecurityPolicy]
48479
- #
48480
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48481
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48482
- # @raise [Google::Apis::AuthorizationError] Authorization is required
48483
- def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48484
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
48485
- command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
48486
- command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
48487
- command.params['project'] = project unless project.nil?
48488
- command.params['region'] = region unless region.nil?
48489
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
48490
- command.query['fields'] = fields unless fields.nil?
48491
- command.query['quotaUser'] = quota_user unless quota_user.nil?
48492
- command.query['userIp'] = user_ip unless user_ip.nil?
48493
- execute_or_queue_command(command, &block)
48494
- end
48495
-
48496
- # Gets a rule at the specified priority.
48545
+ # Returns the specified RecoverableSnapshot resource.
48497
48546
  # @param [String] project
48498
48547
  # Project ID for this request.
48499
48548
  # @param [String] region
48500
- # Name of the region scoping this request.
48501
- # @param [String] security_policy
48502
- # Name of the security policy to which the queried rule belongs.
48503
- # @param [Fixnum] priority
48504
- # The priority of the rule to get from the security policy.
48549
+ # Name of the region for this request.
48550
+ # @param [String] recoverable_snapshot
48551
+ # Name of the Snapshot resource to return.
48505
48552
  # @param [String] fields
48506
48553
  # Selector specifying which fields to include in a partial response.
48507
48554
  # @param [String] quota_user
@@ -48513,49 +48560,37 @@ module Google
48513
48560
  # Request-specific options
48514
48561
  #
48515
48562
  # @yield [result, err] Result & error if block supplied
48516
- # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
48563
+ # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshot] parsed result object
48517
48564
  # @yieldparam err [StandardError] error object if request failed
48518
48565
  #
48519
- # @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
48566
+ # @return [Google::Apis::ComputeAlpha::RecoverableSnapshot]
48520
48567
  #
48521
48568
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48522
48569
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48523
48570
  # @raise [Google::Apis::AuthorizationError] Authorization is required
48524
- def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48525
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
48526
- command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
48527
- command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
48571
+ def get_region_recoverable_snapshot(project, region, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48572
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options)
48573
+ command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshot::Representation
48574
+ command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshot
48528
48575
  command.params['project'] = project unless project.nil?
48529
48576
  command.params['region'] = region unless region.nil?
48530
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
48531
- command.query['priority'] = priority unless priority.nil?
48577
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
48532
48578
  command.query['fields'] = fields unless fields.nil?
48533
48579
  command.query['quotaUser'] = quota_user unless quota_user.nil?
48534
48580
  command.query['userIp'] = user_ip unless user_ip.nil?
48535
48581
  execute_or_queue_command(command, &block)
48536
48582
  end
48537
48583
 
48538
- # Creates a new policy in the specified project using the data included in
48539
- # the request.
48584
+ # Gets the access control policy for a resource. May be empty if no such
48585
+ # policy or resource exists.
48540
48586
  # @param [String] project
48541
48587
  # Project ID for this request.
48542
48588
  # @param [String] region
48543
- # Name of the region scoping this request.
48544
- # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
48545
- # @param [String] request_id
48546
- # An optional request ID to identify requests. Specify a unique request ID so
48547
- # that if you must retry your request, the server will know to ignore the
48548
- # request if it has already been completed.
48549
- # For example, consider a situation where you make an initial request and
48550
- # the request times out. If you make the request again with the same
48551
- # request ID, the server can check if original operation with the same
48552
- # request ID was received, and if so, will ignore the second request. This
48553
- # prevents clients from accidentally creating duplicate commitments.
48554
- # The request ID must be
48555
- # a valid UUID with the exception that zero UUID is not supported
48556
- # (00000000-0000-0000-0000-000000000000).
48557
- # @param [Boolean] validate_only
48558
- # If true, the request will not be committed.
48589
+ # The name of the region for this request.
48590
+ # @param [String] resource
48591
+ # Name or id of the resource for this request.
48592
+ # @param [Fixnum] options_requested_policy_version
48593
+ # Requested IAM Policy version.
48559
48594
  # @param [String] fields
48560
48595
  # Selector specifying which fields to include in a partial response.
48561
48596
  # @param [String] quota_user
@@ -48567,36 +48602,532 @@ module Google
48567
48602
  # Request-specific options
48568
48603
  #
48569
48604
  # @yield [result, err] Result & error if block supplied
48570
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48605
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
48571
48606
  # @yieldparam err [StandardError] error object if request failed
48572
48607
  #
48573
- # @return [Google::Apis::ComputeAlpha::Operation]
48608
+ # @return [Google::Apis::ComputeAlpha::Policy]
48574
48609
  #
48575
48610
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48576
48611
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48577
48612
  # @raise [Google::Apis::AuthorizationError] Authorization is required
48578
- def insert_region_security_policy(project, region, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48579
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
48580
- command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
48581
- command.request_object = security_policy_object
48582
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48583
- command.response_class = Google::Apis::ComputeAlpha::Operation
48613
+ def get_region_recoverable_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48614
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/getIamPolicy', options)
48615
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
48616
+ command.response_class = Google::Apis::ComputeAlpha::Policy
48584
48617
  command.params['project'] = project unless project.nil?
48585
48618
  command.params['region'] = region unless region.nil?
48586
- command.query['requestId'] = request_id unless request_id.nil?
48587
- command.query['validateOnly'] = validate_only unless validate_only.nil?
48619
+ command.params['resource'] = resource unless resource.nil?
48620
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
48588
48621
  command.query['fields'] = fields unless fields.nil?
48589
48622
  command.query['quotaUser'] = quota_user unless quota_user.nil?
48590
48623
  command.query['userIp'] = user_ip unless user_ip.nil?
48591
48624
  execute_or_queue_command(command, &block)
48592
48625
  end
48593
48626
 
48594
- # List all the policies that have been configured for the specified project
48595
- # and region.
48627
+ # Retrieves the list of RecoverableSnapshot resources contained within
48628
+ # the specified region.
48596
48629
  # @param [String] project
48597
48630
  # Project ID for this request.
48598
48631
  # @param [String] region
48599
- # Name of the region scoping this request.
48632
+ # Name of the region for this request.
48633
+ # @param [String] filter
48634
+ # A filter expression that filters resources listed in the response. Most
48635
+ # Compute resources support two types of filter expressions:
48636
+ # expressions that support regular expressions and expressions that follow
48637
+ # API improvement proposal AIP-160.
48638
+ # These two types of filter expressions cannot be mixed in one request.
48639
+ # If you want to use AIP-160, your expression must specify the field name, an
48640
+ # operator, and the value that you want to use for filtering. The value
48641
+ # must be a string, a number, or a boolean. The operator
48642
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
48643
+ # For example, if you are filtering Compute Engine instances, you can
48644
+ # exclude instances named `example-instance` by specifying
48645
+ # `name != example-instance`.
48646
+ # The `:*` comparison can be used to test whether a key has been defined.
48647
+ # For example, to find all objects with `owner` label use:
48648
+ # ```
48649
+ # labels.owner:*
48650
+ # ```
48651
+ # You can also filter nested fields. For example, you could specify
48652
+ # `scheduling.automaticRestart = false` to include instances only
48653
+ # if they are not scheduled for automatic restarts. You can use filtering
48654
+ # on nested fields to filter based onresource labels.
48655
+ # To filter on multiple expressions, provide each separate expression within
48656
+ # parentheses. For example:
48657
+ # ```
48658
+ # (scheduling.automaticRestart = true)
48659
+ # (cpuPlatform = "Intel Skylake")
48660
+ # ```
48661
+ # By default, each expression is an `AND` expression. However, you
48662
+ # can include `AND` and `OR` expressions explicitly.
48663
+ # For example:
48664
+ # ```
48665
+ # (cpuPlatform = "Intel Skylake") OR
48666
+ # (cpuPlatform = "Intel Broadwell") AND
48667
+ # (scheduling.automaticRestart = true)
48668
+ # ```
48669
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
48670
+ # (not equal) operator against a single un-parenthesized expression with or
48671
+ # without quotes or against multiple parenthesized expressions. Examples:
48672
+ # `fieldname eq unquoted literal`
48673
+ # `fieldname eq 'single quoted literal'`
48674
+ # `fieldname eq "double quoted literal"`
48675
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
48676
+ # The literal value is interpreted as a regular expression using GoogleRE2
48677
+ # library syntax.
48678
+ # The literal value must match the entire field.
48679
+ # For example, to filter for instances that do not end with name "instance",
48680
+ # you would use `name ne .*instance`.
48681
+ # You cannot combine constraints on multiple fields using regular
48682
+ # expressions.
48683
+ # @param [Fixnum] max_results
48684
+ # The maximum number of results per page that should be returned.
48685
+ # If the number of available results is larger than `maxResults`,
48686
+ # Compute Engine returns a `nextPageToken` that can be used to get
48687
+ # the next page of results in subsequent list requests. Acceptable values are
48688
+ # `0` to `500`, inclusive. (Default: `500`)
48689
+ # @param [String] order_by
48690
+ # Sorts list results by a certain order. By default, results
48691
+ # are returned in alphanumerical order based on the resource name.
48692
+ # You can also sort results in descending order based on the creation
48693
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
48694
+ # results based on the `creationTimestamp` field in
48695
+ # reverse chronological order (newest result first). Use this to sort
48696
+ # resources like operations so that the newest operation is returned first.
48697
+ # Currently, only sorting by `name` or
48698
+ # `creationTimestamp desc` is supported.
48699
+ # @param [String] page_token
48700
+ # Specifies a page token to use. Set `pageToken` to the
48701
+ # `nextPageToken` returned by a previous list request to get
48702
+ # the next page of results.
48703
+ # @param [Boolean] return_partial_success
48704
+ # Opt-in for partial success behavior which provides partial results in case
48705
+ # of failure. The default value is false.
48706
+ # For example, when partial success behavior is enabled, aggregatedList for a
48707
+ # single zone scope either returns all resources in the zone or no resources,
48708
+ # with an error code.
48709
+ # @param [String] fields
48710
+ # Selector specifying which fields to include in a partial response.
48711
+ # @param [String] quota_user
48712
+ # Available to use for quota purposes for server-side applications. Can be any
48713
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48714
+ # @param [String] user_ip
48715
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48716
+ # @param [Google::Apis::RequestOptions] options
48717
+ # Request-specific options
48718
+ #
48719
+ # @yield [result, err] Result & error if block supplied
48720
+ # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotList] parsed result object
48721
+ # @yieldparam err [StandardError] error object if request failed
48722
+ #
48723
+ # @return [Google::Apis::ComputeAlpha::RecoverableSnapshotList]
48724
+ #
48725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48728
+ def list_region_recoverable_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48729
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots', options)
48730
+ command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshotList::Representation
48731
+ command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshotList
48732
+ command.params['project'] = project unless project.nil?
48733
+ command.params['region'] = region unless region.nil?
48734
+ command.query['filter'] = filter unless filter.nil?
48735
+ command.query['maxResults'] = max_results unless max_results.nil?
48736
+ command.query['orderBy'] = order_by unless order_by.nil?
48737
+ command.query['pageToken'] = page_token unless page_token.nil?
48738
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
48739
+ command.query['fields'] = fields unless fields.nil?
48740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48741
+ command.query['userIp'] = user_ip unless user_ip.nil?
48742
+ execute_or_queue_command(command, &block)
48743
+ end
48744
+
48745
+ # Recovers the specified RecoverableSnapshot.
48746
+ # @param [String] project
48747
+ # Project Id of the request
48748
+ # @param [String] region
48749
+ # Name of the region for this request.
48750
+ # @param [String] recoverable_snapshot
48751
+ # Name of the recoverable resource to recover
48752
+ # @param [String] request_id
48753
+ # An optional request ID to identify requests. Specify a unique request ID so
48754
+ # that if you must retry your request, the server will know to ignore the
48755
+ # request if it has already been completed.
48756
+ # For example, consider a situation where you make an initial request and
48757
+ # the request times out. If you make the request again with the same
48758
+ # request ID, the server can check if original operation with the same
48759
+ # request ID was received, and if so, will ignore the second request. This
48760
+ # prevents clients from accidentally creating duplicate commitments.
48761
+ # The request ID must be
48762
+ # a valid UUID with the exception that zero UUID is not supported
48763
+ # (00000000-0000-0000-0000-000000000000).
48764
+ # @param [String] snapshot_name
48765
+ # Optional. Name of the snapshot after the recovery
48766
+ # The name will be 1-63 characters long, and comply withRFC1035.
48767
+ # Specifically, the name will be 1-63 characters long and match the regular
48768
+ # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
48769
+ # character will be a lowercase letter, and all following characters can be
48770
+ # a dash, lowercase letter, or digit, except the last character, which cannot
48771
+ # be a dash.
48772
+ # @param [String] fields
48773
+ # Selector specifying which fields to include in a partial response.
48774
+ # @param [String] quota_user
48775
+ # Available to use for quota purposes for server-side applications. Can be any
48776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48777
+ # @param [String] user_ip
48778
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48779
+ # @param [Google::Apis::RequestOptions] options
48780
+ # Request-specific options
48781
+ #
48782
+ # @yield [result, err] Result & error if block supplied
48783
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48784
+ # @yieldparam err [StandardError] error object if request failed
48785
+ #
48786
+ # @return [Google::Apis::ComputeAlpha::Operation]
48787
+ #
48788
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48789
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48790
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48791
+ def recover_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48792
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}/recover', options)
48793
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48794
+ command.response_class = Google::Apis::ComputeAlpha::Operation
48795
+ command.params['project'] = project unless project.nil?
48796
+ command.params['region'] = region unless region.nil?
48797
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
48798
+ command.query['requestId'] = request_id unless request_id.nil?
48799
+ command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
48800
+ command.query['fields'] = fields unless fields.nil?
48801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48802
+ command.query['userIp'] = user_ip unless user_ip.nil?
48803
+ execute_or_queue_command(command, &block)
48804
+ end
48805
+
48806
+ # Sets the access control policy on the specified resource.
48807
+ # Replaces any existing policy.
48808
+ # @param [String] project
48809
+ # Project ID for this request.
48810
+ # @param [String] region
48811
+ # The name of the region for this request.
48812
+ # @param [String] resource
48813
+ # Name or id of the resource for this request.
48814
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
48815
+ # @param [String] fields
48816
+ # Selector specifying which fields to include in a partial response.
48817
+ # @param [String] quota_user
48818
+ # Available to use for quota purposes for server-side applications. Can be any
48819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48820
+ # @param [String] user_ip
48821
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48822
+ # @param [Google::Apis::RequestOptions] options
48823
+ # Request-specific options
48824
+ #
48825
+ # @yield [result, err] Result & error if block supplied
48826
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
48827
+ # @yieldparam err [StandardError] error object if request failed
48828
+ #
48829
+ # @return [Google::Apis::ComputeAlpha::Policy]
48830
+ #
48831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48834
+ def set_region_recoverable_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48835
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/setIamPolicy', options)
48836
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
48837
+ command.request_object = region_set_policy_request_object
48838
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
48839
+ command.response_class = Google::Apis::ComputeAlpha::Policy
48840
+ command.params['project'] = project unless project.nil?
48841
+ command.params['region'] = region unless region.nil?
48842
+ command.params['resource'] = resource unless resource.nil?
48843
+ command.query['fields'] = fields unless fields.nil?
48844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48845
+ command.query['userIp'] = user_ip unless user_ip.nil?
48846
+ execute_or_queue_command(command, &block)
48847
+ end
48848
+
48849
+ # Returns permissions that a caller has on the specified resource.
48850
+ # @param [String] project
48851
+ # Project ID for this request.
48852
+ # @param [String] region
48853
+ # The name of the region for this request.
48854
+ # @param [String] resource
48855
+ # Name or id of the resource for this request.
48856
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
48857
+ # @param [String] fields
48858
+ # Selector specifying which fields to include in a partial response.
48859
+ # @param [String] quota_user
48860
+ # Available to use for quota purposes for server-side applications. Can be any
48861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48862
+ # @param [String] user_ip
48863
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48864
+ # @param [Google::Apis::RequestOptions] options
48865
+ # Request-specific options
48866
+ #
48867
+ # @yield [result, err] Result & error if block supplied
48868
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
48869
+ # @yieldparam err [StandardError] error object if request failed
48870
+ #
48871
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
48872
+ #
48873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48876
+ def test_region_recoverable_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48877
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/testIamPermissions', options)
48878
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
48879
+ command.request_object = test_permissions_request_object
48880
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
48881
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
48882
+ command.params['project'] = project unless project.nil?
48883
+ command.params['region'] = region unless region.nil?
48884
+ command.params['resource'] = resource unless resource.nil?
48885
+ command.query['fields'] = fields unless fields.nil?
48886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48887
+ command.query['userIp'] = user_ip unless user_ip.nil?
48888
+ execute_or_queue_command(command, &block)
48889
+ end
48890
+
48891
+ # Inserts a rule into a security policy.
48892
+ # @param [String] project
48893
+ # Project ID for this request.
48894
+ # @param [String] region
48895
+ # Name of the region scoping this request.
48896
+ # @param [String] security_policy
48897
+ # Name of the security policy to update.
48898
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
48899
+ # @param [Boolean] validate_only
48900
+ # If true, the request will not be committed.
48901
+ # @param [String] fields
48902
+ # Selector specifying which fields to include in a partial response.
48903
+ # @param [String] quota_user
48904
+ # Available to use for quota purposes for server-side applications. Can be any
48905
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48906
+ # @param [String] user_ip
48907
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48908
+ # @param [Google::Apis::RequestOptions] options
48909
+ # Request-specific options
48910
+ #
48911
+ # @yield [result, err] Result & error if block supplied
48912
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48913
+ # @yieldparam err [StandardError] error object if request failed
48914
+ #
48915
+ # @return [Google::Apis::ComputeAlpha::Operation]
48916
+ #
48917
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48918
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48919
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48920
+ def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48921
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
48922
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
48923
+ command.request_object = security_policy_rule_object
48924
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48925
+ command.response_class = Google::Apis::ComputeAlpha::Operation
48926
+ command.params['project'] = project unless project.nil?
48927
+ command.params['region'] = region unless region.nil?
48928
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
48929
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
48930
+ command.query['fields'] = fields unless fields.nil?
48931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48932
+ command.query['userIp'] = user_ip unless user_ip.nil?
48933
+ execute_or_queue_command(command, &block)
48934
+ end
48935
+
48936
+ # Deletes the specified policy.
48937
+ # @param [String] project
48938
+ # Project ID for this request.
48939
+ # @param [String] region
48940
+ # Name of the region scoping this request.
48941
+ # @param [String] security_policy
48942
+ # Name of the security policy to delete.
48943
+ # @param [String] request_id
48944
+ # An optional request ID to identify requests. Specify a unique request ID so
48945
+ # that if you must retry your request, the server will know to ignore the
48946
+ # request if it has already been completed.
48947
+ # For example, consider a situation where you make an initial request and
48948
+ # the request times out. If you make the request again with the same
48949
+ # request ID, the server can check if original operation with the same
48950
+ # request ID was received, and if so, will ignore the second request. This
48951
+ # prevents clients from accidentally creating duplicate commitments.
48952
+ # The request ID must be
48953
+ # a valid UUID with the exception that zero UUID is not supported
48954
+ # (00000000-0000-0000-0000-000000000000).
48955
+ # @param [String] fields
48956
+ # Selector specifying which fields to include in a partial response.
48957
+ # @param [String] quota_user
48958
+ # Available to use for quota purposes for server-side applications. Can be any
48959
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48960
+ # @param [String] user_ip
48961
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48962
+ # @param [Google::Apis::RequestOptions] options
48963
+ # Request-specific options
48964
+ #
48965
+ # @yield [result, err] Result & error if block supplied
48966
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48967
+ # @yieldparam err [StandardError] error object if request failed
48968
+ #
48969
+ # @return [Google::Apis::ComputeAlpha::Operation]
48970
+ #
48971
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48972
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48973
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48974
+ def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48975
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
48976
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48977
+ command.response_class = Google::Apis::ComputeAlpha::Operation
48978
+ command.params['project'] = project unless project.nil?
48979
+ command.params['region'] = region unless region.nil?
48980
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
48981
+ command.query['requestId'] = request_id unless request_id.nil?
48982
+ command.query['fields'] = fields unless fields.nil?
48983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48984
+ command.query['userIp'] = user_ip unless user_ip.nil?
48985
+ execute_or_queue_command(command, &block)
48986
+ end
48987
+
48988
+ # List all of the ordered rules present in a single specified policy.
48989
+ # @param [String] project
48990
+ # Project ID for this request.
48991
+ # @param [String] region
48992
+ # Name of the region scoping this request.
48993
+ # @param [String] security_policy
48994
+ # Name of the security policy to get.
48995
+ # @param [String] fields
48996
+ # Selector specifying which fields to include in a partial response.
48997
+ # @param [String] quota_user
48998
+ # Available to use for quota purposes for server-side applications. Can be any
48999
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49000
+ # @param [String] user_ip
49001
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49002
+ # @param [Google::Apis::RequestOptions] options
49003
+ # Request-specific options
49004
+ #
49005
+ # @yield [result, err] Result & error if block supplied
49006
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
49007
+ # @yieldparam err [StandardError] error object if request failed
49008
+ #
49009
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicy]
49010
+ #
49011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49014
+ def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49015
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
49016
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
49017
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
49018
+ command.params['project'] = project unless project.nil?
49019
+ command.params['region'] = region unless region.nil?
49020
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
49021
+ command.query['fields'] = fields unless fields.nil?
49022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49023
+ command.query['userIp'] = user_ip unless user_ip.nil?
49024
+ execute_or_queue_command(command, &block)
49025
+ end
49026
+
49027
+ # Gets a rule at the specified priority.
49028
+ # @param [String] project
49029
+ # Project ID for this request.
49030
+ # @param [String] region
49031
+ # Name of the region scoping this request.
49032
+ # @param [String] security_policy
49033
+ # Name of the security policy to which the queried rule belongs.
49034
+ # @param [Fixnum] priority
49035
+ # The priority of the rule to get from the security policy.
49036
+ # @param [String] fields
49037
+ # Selector specifying which fields to include in a partial response.
49038
+ # @param [String] quota_user
49039
+ # Available to use for quota purposes for server-side applications. Can be any
49040
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49041
+ # @param [String] user_ip
49042
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49043
+ # @param [Google::Apis::RequestOptions] options
49044
+ # Request-specific options
49045
+ #
49046
+ # @yield [result, err] Result & error if block supplied
49047
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
49048
+ # @yieldparam err [StandardError] error object if request failed
49049
+ #
49050
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
49051
+ #
49052
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49053
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49054
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49055
+ def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49056
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
49057
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
49058
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
49059
+ command.params['project'] = project unless project.nil?
49060
+ command.params['region'] = region unless region.nil?
49061
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
49062
+ command.query['priority'] = priority unless priority.nil?
49063
+ command.query['fields'] = fields unless fields.nil?
49064
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49065
+ command.query['userIp'] = user_ip unless user_ip.nil?
49066
+ execute_or_queue_command(command, &block)
49067
+ end
49068
+
49069
+ # Creates a new policy in the specified project using the data included in
49070
+ # the request.
49071
+ # @param [String] project
49072
+ # Project ID for this request.
49073
+ # @param [String] region
49074
+ # Name of the region scoping this request.
49075
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
49076
+ # @param [String] request_id
49077
+ # An optional request ID to identify requests. Specify a unique request ID so
49078
+ # that if you must retry your request, the server will know to ignore the
49079
+ # request if it has already been completed.
49080
+ # For example, consider a situation where you make an initial request and
49081
+ # the request times out. If you make the request again with the same
49082
+ # request ID, the server can check if original operation with the same
49083
+ # request ID was received, and if so, will ignore the second request. This
49084
+ # prevents clients from accidentally creating duplicate commitments.
49085
+ # The request ID must be
49086
+ # a valid UUID with the exception that zero UUID is not supported
49087
+ # (00000000-0000-0000-0000-000000000000).
49088
+ # @param [Boolean] validate_only
49089
+ # If true, the request will not be committed.
49090
+ # @param [String] fields
49091
+ # Selector specifying which fields to include in a partial response.
49092
+ # @param [String] quota_user
49093
+ # Available to use for quota purposes for server-side applications. Can be any
49094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49095
+ # @param [String] user_ip
49096
+ # Legacy name for parameter that has been superseded by `quotaUser`.
49097
+ # @param [Google::Apis::RequestOptions] options
49098
+ # Request-specific options
49099
+ #
49100
+ # @yield [result, err] Result & error if block supplied
49101
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
49102
+ # @yieldparam err [StandardError] error object if request failed
49103
+ #
49104
+ # @return [Google::Apis::ComputeAlpha::Operation]
49105
+ #
49106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
49107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
49108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
49109
+ def insert_region_security_policy(project, region, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
49110
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
49111
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
49112
+ command.request_object = security_policy_object
49113
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
49114
+ command.response_class = Google::Apis::ComputeAlpha::Operation
49115
+ command.params['project'] = project unless project.nil?
49116
+ command.params['region'] = region unless region.nil?
49117
+ command.query['requestId'] = request_id unless request_id.nil?
49118
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
49119
+ command.query['fields'] = fields unless fields.nil?
49120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
49121
+ command.query['userIp'] = user_ip unless user_ip.nil?
49122
+ execute_or_queue_command(command, &block)
49123
+ end
49124
+
49125
+ # List all the policies that have been configured for the specified project
49126
+ # and region.
49127
+ # @param [String] project
49128
+ # Project ID for this request.
49129
+ # @param [String] region
49130
+ # Name of the region scoping this request.
48600
49131
  # @param [String] filter
48601
49132
  # A filter expression that filters resources listed in the response. Most
48602
49133
  # Compute resources support two types of filter expressions:
@@ -52883,7 +53414,7 @@ module Google
52883
53414
  end
52884
53415
 
52885
53416
  # Retrieves an aggregated list of reservations.
52886
- # To prevent failure, Google recommends that you set the
53417
+ # To prevent failure, it is recommended that you set the
52887
53418
  # `returnPartialSuccess` parameter to `true`.
52888
53419
  # @param [String] project
52889
53420
  # Project ID for this request.
@@ -53741,13 +54272,459 @@ module Google
53741
54272
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53742
54273
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53743
54274
  # @raise [Google::Apis::AuthorizationError] Authorization is required
53744
- def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53745
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
54275
+ def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54276
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
54277
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
54278
+ command.response_class = Google::Apis::ComputeAlpha::Operation
54279
+ command.params['project'] = project unless project.nil?
54280
+ command.params['region'] = region unless region.nil?
54281
+ command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
54282
+ command.query['requestId'] = request_id unless request_id.nil?
54283
+ command.query['fields'] = fields unless fields.nil?
54284
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54285
+ command.query['userIp'] = user_ip unless user_ip.nil?
54286
+ execute_or_queue_command(command, &block)
54287
+ end
54288
+
54289
+ # Retrieves all information of the specified resource policy.
54290
+ # @param [String] project
54291
+ # Project ID for this request.
54292
+ # @param [String] region
54293
+ # Name of the region for this request.
54294
+ # @param [String] resource_policy
54295
+ # Name of the resource policy to retrieve.
54296
+ # @param [String] fields
54297
+ # Selector specifying which fields to include in a partial response.
54298
+ # @param [String] quota_user
54299
+ # Available to use for quota purposes for server-side applications. Can be any
54300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54301
+ # @param [String] user_ip
54302
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54303
+ # @param [Google::Apis::RequestOptions] options
54304
+ # Request-specific options
54305
+ #
54306
+ # @yield [result, err] Result & error if block supplied
54307
+ # @yieldparam result [Google::Apis::ComputeAlpha::ResourcePolicy] parsed result object
54308
+ # @yieldparam err [StandardError] error object if request failed
54309
+ #
54310
+ # @return [Google::Apis::ComputeAlpha::ResourcePolicy]
54311
+ #
54312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54315
+ def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54316
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
54317
+ command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
54318
+ command.response_class = Google::Apis::ComputeAlpha::ResourcePolicy
54319
+ command.params['project'] = project unless project.nil?
54320
+ command.params['region'] = region unless region.nil?
54321
+ command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
54322
+ command.query['fields'] = fields unless fields.nil?
54323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54324
+ command.query['userIp'] = user_ip unless user_ip.nil?
54325
+ execute_or_queue_command(command, &block)
54326
+ end
54327
+
54328
+ # Gets the access control policy for a resource. May be empty if no such
54329
+ # policy or resource exists.
54330
+ # @param [String] project
54331
+ # Project ID for this request.
54332
+ # @param [String] region
54333
+ # The name of the region for this request.
54334
+ # @param [String] resource
54335
+ # Name or id of the resource for this request.
54336
+ # @param [Fixnum] options_requested_policy_version
54337
+ # Requested IAM Policy version.
54338
+ # @param [String] fields
54339
+ # Selector specifying which fields to include in a partial response.
54340
+ # @param [String] quota_user
54341
+ # Available to use for quota purposes for server-side applications. Can be any
54342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54343
+ # @param [String] user_ip
54344
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54345
+ # @param [Google::Apis::RequestOptions] options
54346
+ # Request-specific options
54347
+ #
54348
+ # @yield [result, err] Result & error if block supplied
54349
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
54350
+ # @yieldparam err [StandardError] error object if request failed
54351
+ #
54352
+ # @return [Google::Apis::ComputeAlpha::Policy]
54353
+ #
54354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54357
+ def get_resource_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54358
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options)
54359
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
54360
+ command.response_class = Google::Apis::ComputeAlpha::Policy
54361
+ command.params['project'] = project unless project.nil?
54362
+ command.params['region'] = region unless region.nil?
54363
+ command.params['resource'] = resource unless resource.nil?
54364
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
54365
+ command.query['fields'] = fields unless fields.nil?
54366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54367
+ command.query['userIp'] = user_ip unless user_ip.nil?
54368
+ execute_or_queue_command(command, &block)
54369
+ end
54370
+
54371
+ # Creates a new resource policy.
54372
+ # @param [String] project
54373
+ # Project ID for this request.
54374
+ # @param [String] region
54375
+ # Name of the region for this request.
54376
+ # @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
54377
+ # @param [String] request_id
54378
+ # An optional request ID to identify requests. Specify a unique request ID so
54379
+ # that if you must retry your request, the server will know to ignore the
54380
+ # request if it has already been completed.
54381
+ # For example, consider a situation where you make an initial request and
54382
+ # the request times out. If you make the request again with the same
54383
+ # request ID, the server can check if original operation with the same
54384
+ # request ID was received, and if so, will ignore the second request. This
54385
+ # prevents clients from accidentally creating duplicate commitments.
54386
+ # The request ID must be
54387
+ # a valid UUID with the exception that zero UUID is not supported
54388
+ # (00000000-0000-0000-0000-000000000000).
54389
+ # @param [String] fields
54390
+ # Selector specifying which fields to include in a partial response.
54391
+ # @param [String] quota_user
54392
+ # Available to use for quota purposes for server-side applications. Can be any
54393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54394
+ # @param [String] user_ip
54395
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54396
+ # @param [Google::Apis::RequestOptions] options
54397
+ # Request-specific options
54398
+ #
54399
+ # @yield [result, err] Result & error if block supplied
54400
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
54401
+ # @yieldparam err [StandardError] error object if request failed
54402
+ #
54403
+ # @return [Google::Apis::ComputeAlpha::Operation]
54404
+ #
54405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54408
+ def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54409
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies', options)
54410
+ command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
54411
+ command.request_object = resource_policy_object
54412
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
54413
+ command.response_class = Google::Apis::ComputeAlpha::Operation
54414
+ command.params['project'] = project unless project.nil?
54415
+ command.params['region'] = region unless region.nil?
54416
+ command.query['requestId'] = request_id unless request_id.nil?
54417
+ command.query['fields'] = fields unless fields.nil?
54418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54419
+ command.query['userIp'] = user_ip unless user_ip.nil?
54420
+ execute_or_queue_command(command, &block)
54421
+ end
54422
+
54423
+ # A list all the resource policies that have been configured for the
54424
+ # specified project in specified region.
54425
+ # @param [String] project
54426
+ # Project ID for this request.
54427
+ # @param [String] region
54428
+ # Name of the region for this request.
54429
+ # @param [String] filter
54430
+ # A filter expression that filters resources listed in the response. Most
54431
+ # Compute resources support two types of filter expressions:
54432
+ # expressions that support regular expressions and expressions that follow
54433
+ # API improvement proposal AIP-160.
54434
+ # These two types of filter expressions cannot be mixed in one request.
54435
+ # If you want to use AIP-160, your expression must specify the field name, an
54436
+ # operator, and the value that you want to use for filtering. The value
54437
+ # must be a string, a number, or a boolean. The operator
54438
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
54439
+ # For example, if you are filtering Compute Engine instances, you can
54440
+ # exclude instances named `example-instance` by specifying
54441
+ # `name != example-instance`.
54442
+ # The `:*` comparison can be used to test whether a key has been defined.
54443
+ # For example, to find all objects with `owner` label use:
54444
+ # ```
54445
+ # labels.owner:*
54446
+ # ```
54447
+ # You can also filter nested fields. For example, you could specify
54448
+ # `scheduling.automaticRestart = false` to include instances only
54449
+ # if they are not scheduled for automatic restarts. You can use filtering
54450
+ # on nested fields to filter based onresource labels.
54451
+ # To filter on multiple expressions, provide each separate expression within
54452
+ # parentheses. For example:
54453
+ # ```
54454
+ # (scheduling.automaticRestart = true)
54455
+ # (cpuPlatform = "Intel Skylake")
54456
+ # ```
54457
+ # By default, each expression is an `AND` expression. However, you
54458
+ # can include `AND` and `OR` expressions explicitly.
54459
+ # For example:
54460
+ # ```
54461
+ # (cpuPlatform = "Intel Skylake") OR
54462
+ # (cpuPlatform = "Intel Broadwell") AND
54463
+ # (scheduling.automaticRestart = true)
54464
+ # ```
54465
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
54466
+ # (not equal) operator against a single un-parenthesized expression with or
54467
+ # without quotes or against multiple parenthesized expressions. Examples:
54468
+ # `fieldname eq unquoted literal`
54469
+ # `fieldname eq 'single quoted literal'`
54470
+ # `fieldname eq "double quoted literal"`
54471
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
54472
+ # The literal value is interpreted as a regular expression using GoogleRE2
54473
+ # library syntax.
54474
+ # The literal value must match the entire field.
54475
+ # For example, to filter for instances that do not end with name "instance",
54476
+ # you would use `name ne .*instance`.
54477
+ # You cannot combine constraints on multiple fields using regular
54478
+ # expressions.
54479
+ # @param [Fixnum] max_results
54480
+ # The maximum number of results per page that should be returned.
54481
+ # If the number of available results is larger than `maxResults`,
54482
+ # Compute Engine returns a `nextPageToken` that can be used to get
54483
+ # the next page of results in subsequent list requests. Acceptable values are
54484
+ # `0` to `500`, inclusive. (Default: `500`)
54485
+ # @param [String] order_by
54486
+ # Sorts list results by a certain order. By default, results
54487
+ # are returned in alphanumerical order based on the resource name.
54488
+ # You can also sort results in descending order based on the creation
54489
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
54490
+ # results based on the `creationTimestamp` field in
54491
+ # reverse chronological order (newest result first). Use this to sort
54492
+ # resources like operations so that the newest operation is returned first.
54493
+ # Currently, only sorting by `name` or
54494
+ # `creationTimestamp desc` is supported.
54495
+ # @param [String] page_token
54496
+ # Specifies a page token to use. Set `pageToken` to the
54497
+ # `nextPageToken` returned by a previous list request to get
54498
+ # the next page of results.
54499
+ # @param [Boolean] return_partial_success
54500
+ # Opt-in for partial success behavior which provides partial results in case
54501
+ # of failure. The default value is false.
54502
+ # For example, when partial success behavior is enabled, aggregatedList for a
54503
+ # single zone scope either returns all resources in the zone or no resources,
54504
+ # with an error code.
54505
+ # @param [String] fields
54506
+ # Selector specifying which fields to include in a partial response.
54507
+ # @param [String] quota_user
54508
+ # Available to use for quota purposes for server-side applications. Can be any
54509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54510
+ # @param [String] user_ip
54511
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54512
+ # @param [Google::Apis::RequestOptions] options
54513
+ # Request-specific options
54514
+ #
54515
+ # @yield [result, err] Result & error if block supplied
54516
+ # @yieldparam result [Google::Apis::ComputeAlpha::ResourcePolicyList] parsed result object
54517
+ # @yieldparam err [StandardError] error object if request failed
54518
+ #
54519
+ # @return [Google::Apis::ComputeAlpha::ResourcePolicyList]
54520
+ #
54521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54524
+ def list_resource_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54525
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies', options)
54526
+ command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicyList::Representation
54527
+ command.response_class = Google::Apis::ComputeAlpha::ResourcePolicyList
54528
+ command.params['project'] = project unless project.nil?
54529
+ command.params['region'] = region unless region.nil?
54530
+ command.query['filter'] = filter unless filter.nil?
54531
+ command.query['maxResults'] = max_results unless max_results.nil?
54532
+ command.query['orderBy'] = order_by unless order_by.nil?
54533
+ command.query['pageToken'] = page_token unless page_token.nil?
54534
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
54535
+ command.query['fields'] = fields unless fields.nil?
54536
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54537
+ command.query['userIp'] = user_ip unless user_ip.nil?
54538
+ execute_or_queue_command(command, &block)
54539
+ end
54540
+
54541
+ # Modify the specified resource policy.
54542
+ # @param [String] project
54543
+ # Project ID for this request.
54544
+ # @param [String] region
54545
+ # Name of the region for this request.
54546
+ # @param [String] resource_policy
54547
+ # Id of the resource policy to patch.
54548
+ # @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
54549
+ # @param [Array<String>, String] paths
54550
+ # @param [String] request_id
54551
+ # An optional request ID to identify requests. Specify a unique request ID so
54552
+ # that if you must retry your request, the server will know to ignore the
54553
+ # request if it has already been completed.
54554
+ # For example, consider a situation where you make an initial request and
54555
+ # the request times out. If you make the request again with the same
54556
+ # request ID, the server can check if original operation with the same
54557
+ # request ID was received, and if so, will ignore the second request. This
54558
+ # prevents clients from accidentally creating duplicate commitments.
54559
+ # The request ID must be
54560
+ # a valid UUID with the exception that zero UUID is not supported
54561
+ # (00000000-0000-0000-0000-000000000000).
54562
+ # @param [String] update_mask
54563
+ # update_mask indicates fields to be updated as part of this request.
54564
+ # @param [String] fields
54565
+ # Selector specifying which fields to include in a partial response.
54566
+ # @param [String] quota_user
54567
+ # Available to use for quota purposes for server-side applications. Can be any
54568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54569
+ # @param [String] user_ip
54570
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54571
+ # @param [Google::Apis::RequestOptions] options
54572
+ # Request-specific options
54573
+ #
54574
+ # @yield [result, err] Result & error if block supplied
54575
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
54576
+ # @yieldparam err [StandardError] error object if request failed
54577
+ #
54578
+ # @return [Google::Apis::ComputeAlpha::Operation]
54579
+ #
54580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54583
+ def patch_resource_policy(project, region, resource_policy, resource_policy_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54584
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
54585
+ command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
54586
+ command.request_object = resource_policy_object
54587
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
54588
+ command.response_class = Google::Apis::ComputeAlpha::Operation
54589
+ command.params['project'] = project unless project.nil?
54590
+ command.params['region'] = region unless region.nil?
54591
+ command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
54592
+ command.query['paths'] = paths unless paths.nil?
54593
+ command.query['requestId'] = request_id unless request_id.nil?
54594
+ command.query['updateMask'] = update_mask unless update_mask.nil?
54595
+ command.query['fields'] = fields unless fields.nil?
54596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54597
+ command.query['userIp'] = user_ip unless user_ip.nil?
54598
+ execute_or_queue_command(command, &block)
54599
+ end
54600
+
54601
+ # Sets the access control policy on the specified resource.
54602
+ # Replaces any existing policy.
54603
+ # @param [String] project
54604
+ # Project ID for this request.
54605
+ # @param [String] region
54606
+ # The name of the region for this request.
54607
+ # @param [String] resource
54608
+ # Name or id of the resource for this request.
54609
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
54610
+ # @param [String] fields
54611
+ # Selector specifying which fields to include in a partial response.
54612
+ # @param [String] quota_user
54613
+ # Available to use for quota purposes for server-side applications. Can be any
54614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54615
+ # @param [String] user_ip
54616
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54617
+ # @param [Google::Apis::RequestOptions] options
54618
+ # Request-specific options
54619
+ #
54620
+ # @yield [result, err] Result & error if block supplied
54621
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
54622
+ # @yieldparam err [StandardError] error object if request failed
54623
+ #
54624
+ # @return [Google::Apis::ComputeAlpha::Policy]
54625
+ #
54626
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54627
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54628
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54629
+ def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54630
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options)
54631
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
54632
+ command.request_object = region_set_policy_request_object
54633
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
54634
+ command.response_class = Google::Apis::ComputeAlpha::Policy
54635
+ command.params['project'] = project unless project.nil?
54636
+ command.params['region'] = region unless region.nil?
54637
+ command.params['resource'] = resource unless resource.nil?
54638
+ command.query['fields'] = fields unless fields.nil?
54639
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54640
+ command.query['userIp'] = user_ip unless user_ip.nil?
54641
+ execute_or_queue_command(command, &block)
54642
+ end
54643
+
54644
+ # Returns permissions that a caller has on the specified resource.
54645
+ # @param [String] project
54646
+ # Project ID for this request.
54647
+ # @param [String] region
54648
+ # The name of the region for this request.
54649
+ # @param [String] resource
54650
+ # Name or id of the resource for this request.
54651
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
54652
+ # @param [String] fields
54653
+ # Selector specifying which fields to include in a partial response.
54654
+ # @param [String] quota_user
54655
+ # Available to use for quota purposes for server-side applications. Can be any
54656
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54657
+ # @param [String] user_ip
54658
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54659
+ # @param [Google::Apis::RequestOptions] options
54660
+ # Request-specific options
54661
+ #
54662
+ # @yield [result, err] Result & error if block supplied
54663
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
54664
+ # @yieldparam err [StandardError] error object if request failed
54665
+ #
54666
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
54667
+ #
54668
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54669
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54670
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54671
+ def test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54672
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options)
54673
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
54674
+ command.request_object = test_permissions_request_object
54675
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
54676
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
54677
+ command.params['project'] = project unless project.nil?
54678
+ command.params['region'] = region unless region.nil?
54679
+ command.params['resource'] = resource unless resource.nil?
54680
+ command.query['fields'] = fields unless fields.nil?
54681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
54682
+ command.query['userIp'] = user_ip unless user_ip.nil?
54683
+ execute_or_queue_command(command, &block)
54684
+ end
54685
+
54686
+ # Deletes a RolloutPlan.
54687
+ # @param [String] project
54688
+ # Project ID for this request.
54689
+ # @param [String] rollout_plan
54690
+ # Name of the RolloutPlan resource to delete.
54691
+ # @param [String] request_id
54692
+ # An optional request ID to identify requests. Specify a unique request ID so
54693
+ # that if you must retry your request, the server will know to ignore the
54694
+ # request if it has already been completed.
54695
+ # For example, consider a situation where you make an initial request and
54696
+ # the request times out. If you make the request again with the same
54697
+ # request ID, the server can check if original operation with the same
54698
+ # request ID was received, and if so, will ignore the second request. This
54699
+ # prevents clients from accidentally creating duplicate commitments.
54700
+ # The request ID must be
54701
+ # a valid UUID with the exception that zero UUID is not supported
54702
+ # (00000000-0000-0000-0000-000000000000).
54703
+ # @param [String] fields
54704
+ # Selector specifying which fields to include in a partial response.
54705
+ # @param [String] quota_user
54706
+ # Available to use for quota purposes for server-side applications. Can be any
54707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54708
+ # @param [String] user_ip
54709
+ # Legacy name for parameter that has been superseded by `quotaUser`.
54710
+ # @param [Google::Apis::RequestOptions] options
54711
+ # Request-specific options
54712
+ #
54713
+ # @yield [result, err] Result & error if block supplied
54714
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
54715
+ # @yieldparam err [StandardError] error object if request failed
54716
+ #
54717
+ # @return [Google::Apis::ComputeAlpha::Operation]
54718
+ #
54719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
54722
+ def delete_rollout_plan(project, rollout_plan, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54723
+ command = make_simple_command(:delete, 'projects/{project}/global/rolloutPlans/{rolloutPlan}', options)
53746
54724
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
53747
54725
  command.response_class = Google::Apis::ComputeAlpha::Operation
53748
54726
  command.params['project'] = project unless project.nil?
53749
- command.params['region'] = region unless region.nil?
53750
- command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
54727
+ command.params['rolloutPlan'] = rollout_plan unless rollout_plan.nil?
53751
54728
  command.query['requestId'] = request_id unless request_id.nil?
53752
54729
  command.query['fields'] = fields unless fields.nil?
53753
54730
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -53755,55 +54732,11 @@ module Google
53755
54732
  execute_or_queue_command(command, &block)
53756
54733
  end
53757
54734
 
53758
- # Retrieves all information of the specified resource policy.
53759
- # @param [String] project
53760
- # Project ID for this request.
53761
- # @param [String] region
53762
- # Name of the region for this request.
53763
- # @param [String] resource_policy
53764
- # Name of the resource policy to retrieve.
53765
- # @param [String] fields
53766
- # Selector specifying which fields to include in a partial response.
53767
- # @param [String] quota_user
53768
- # Available to use for quota purposes for server-side applications. Can be any
53769
- # arbitrary string assigned to a user, but should not exceed 40 characters.
53770
- # @param [String] user_ip
53771
- # Legacy name for parameter that has been superseded by `quotaUser`.
53772
- # @param [Google::Apis::RequestOptions] options
53773
- # Request-specific options
53774
- #
53775
- # @yield [result, err] Result & error if block supplied
53776
- # @yieldparam result [Google::Apis::ComputeAlpha::ResourcePolicy] parsed result object
53777
- # @yieldparam err [StandardError] error object if request failed
53778
- #
53779
- # @return [Google::Apis::ComputeAlpha::ResourcePolicy]
53780
- #
53781
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53782
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53783
- # @raise [Google::Apis::AuthorizationError] Authorization is required
53784
- def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53785
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
53786
- command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
53787
- command.response_class = Google::Apis::ComputeAlpha::ResourcePolicy
53788
- command.params['project'] = project unless project.nil?
53789
- command.params['region'] = region unless region.nil?
53790
- command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
53791
- command.query['fields'] = fields unless fields.nil?
53792
- command.query['quotaUser'] = quota_user unless quota_user.nil?
53793
- command.query['userIp'] = user_ip unless user_ip.nil?
53794
- execute_or_queue_command(command, &block)
53795
- end
53796
-
53797
- # Gets the access control policy for a resource. May be empty if no such
53798
- # policy or resource exists.
54735
+ # Gets details of a single project-scoped RolloutPlan.
53799
54736
  # @param [String] project
53800
54737
  # Project ID for this request.
53801
- # @param [String] region
53802
- # The name of the region for this request.
53803
- # @param [String] resource
53804
- # Name or id of the resource for this request.
53805
- # @param [Fixnum] options_requested_policy_version
53806
- # Requested IAM Policy version.
54738
+ # @param [String] rollout_plan
54739
+ # Name of the persistent rollout plan to return.
53807
54740
  # @param [String] fields
53808
54741
  # Selector specifying which fields to include in a partial response.
53809
54742
  # @param [String] quota_user
@@ -53815,34 +54748,30 @@ module Google
53815
54748
  # Request-specific options
53816
54749
  #
53817
54750
  # @yield [result, err] Result & error if block supplied
53818
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
54751
+ # @yieldparam result [Google::Apis::ComputeAlpha::RolloutPlan] parsed result object
53819
54752
  # @yieldparam err [StandardError] error object if request failed
53820
54753
  #
53821
- # @return [Google::Apis::ComputeAlpha::Policy]
54754
+ # @return [Google::Apis::ComputeAlpha::RolloutPlan]
53822
54755
  #
53823
54756
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53824
54757
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53825
54758
  # @raise [Google::Apis::AuthorizationError] Authorization is required
53826
- def get_resource_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53827
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options)
53828
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
53829
- command.response_class = Google::Apis::ComputeAlpha::Policy
54759
+ def get_rollout_plan(project, rollout_plan, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54760
+ command = make_simple_command(:get, 'projects/{project}/global/rolloutPlans/{rolloutPlan}', options)
54761
+ command.response_representation = Google::Apis::ComputeAlpha::RolloutPlan::Representation
54762
+ command.response_class = Google::Apis::ComputeAlpha::RolloutPlan
53830
54763
  command.params['project'] = project unless project.nil?
53831
- command.params['region'] = region unless region.nil?
53832
- command.params['resource'] = resource unless resource.nil?
53833
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
54764
+ command.params['rolloutPlan'] = rollout_plan unless rollout_plan.nil?
53834
54765
  command.query['fields'] = fields unless fields.nil?
53835
54766
  command.query['quotaUser'] = quota_user unless quota_user.nil?
53836
54767
  command.query['userIp'] = user_ip unless user_ip.nil?
53837
54768
  execute_or_queue_command(command, &block)
53838
54769
  end
53839
54770
 
53840
- # Creates a new resource policy.
54771
+ # Creates a new RolloutPlan in a given project and location.
53841
54772
  # @param [String] project
53842
54773
  # Project ID for this request.
53843
- # @param [String] region
53844
- # Name of the region for this request.
53845
- # @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
54774
+ # @param [Google::Apis::ComputeAlpha::RolloutPlan] rollout_plan_object
53846
54775
  # @param [String] request_id
53847
54776
  # An optional request ID to identify requests. Specify a unique request ID so
53848
54777
  # that if you must retry your request, the server will know to ignore the
@@ -53874,14 +54803,13 @@ module Google
53874
54803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53875
54804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53876
54805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
53877
- def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53878
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies', options)
53879
- command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
53880
- command.request_object = resource_policy_object
54806
+ def insert_rollout_plan(project, rollout_plan_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54807
+ command = make_simple_command(:post, 'projects/{project}/global/rolloutPlans', options)
54808
+ command.request_representation = Google::Apis::ComputeAlpha::RolloutPlan::Representation
54809
+ command.request_object = rollout_plan_object
53881
54810
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
53882
54811
  command.response_class = Google::Apis::ComputeAlpha::Operation
53883
54812
  command.params['project'] = project unless project.nil?
53884
- command.params['region'] = region unless region.nil?
53885
54813
  command.query['requestId'] = request_id unless request_id.nil?
53886
54814
  command.query['fields'] = fields unless fields.nil?
53887
54815
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -53889,12 +54817,9 @@ module Google
53889
54817
  execute_or_queue_command(command, &block)
53890
54818
  end
53891
54819
 
53892
- # A list all the resource policies that have been configured for the
53893
- # specified project in specified region.
54820
+ # Lists RolloutPlans in a given project and location.
53894
54821
  # @param [String] project
53895
54822
  # Project ID for this request.
53896
- # @param [String] region
53897
- # Name of the region for this request.
53898
54823
  # @param [String] filter
53899
54824
  # A filter expression that filters resources listed in the response. Most
53900
54825
  # Compute resources support two types of filter expressions:
@@ -53982,20 +54907,19 @@ module Google
53982
54907
  # Request-specific options
53983
54908
  #
53984
54909
  # @yield [result, err] Result & error if block supplied
53985
- # @yieldparam result [Google::Apis::ComputeAlpha::ResourcePolicyList] parsed result object
54910
+ # @yieldparam result [Google::Apis::ComputeAlpha::RolloutPlansListResponse] parsed result object
53986
54911
  # @yieldparam err [StandardError] error object if request failed
53987
54912
  #
53988
- # @return [Google::Apis::ComputeAlpha::ResourcePolicyList]
54913
+ # @return [Google::Apis::ComputeAlpha::RolloutPlansListResponse]
53989
54914
  #
53990
54915
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53991
54916
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53992
54917
  # @raise [Google::Apis::AuthorizationError] Authorization is required
53993
- def list_resource_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53994
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies', options)
53995
- command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicyList::Representation
53996
- command.response_class = Google::Apis::ComputeAlpha::ResourcePolicyList
54918
+ def list_rollout_plans(project, 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)
54919
+ command = make_simple_command(:get, 'projects/{project}/global/rolloutPlans', options)
54920
+ command.response_representation = Google::Apis::ComputeAlpha::RolloutPlansListResponse::Representation
54921
+ command.response_class = Google::Apis::ComputeAlpha::RolloutPlansListResponse
53997
54922
  command.params['project'] = project unless project.nil?
53998
- command.params['region'] = region unless region.nil?
53999
54923
  command.query['filter'] = filter unless filter.nil?
54000
54924
  command.query['maxResults'] = max_results unless max_results.nil?
54001
54925
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -54007,15 +54931,11 @@ module Google
54007
54931
  execute_or_queue_command(command, &block)
54008
54932
  end
54009
54933
 
54010
- # Modify the specified resource policy.
54934
+ # Cancels a Rollout.
54011
54935
  # @param [String] project
54012
54936
  # Project ID for this request.
54013
- # @param [String] region
54014
- # Name of the region for this request.
54015
- # @param [String] resource_policy
54016
- # Id of the resource policy to patch.
54017
- # @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
54018
- # @param [Array<String>, String] paths
54937
+ # @param [String] rollout
54938
+ # Name of the Rollout resource to cancel.
54019
54939
  # @param [String] request_id
54020
54940
  # An optional request ID to identify requests. Specify a unique request ID so
54021
54941
  # that if you must retry your request, the server will know to ignore the
@@ -54028,8 +54948,12 @@ module Google
54028
54948
  # The request ID must be
54029
54949
  # a valid UUID with the exception that zero UUID is not supported
54030
54950
  # (00000000-0000-0000-0000-000000000000).
54031
- # @param [String] update_mask
54032
- # update_mask indicates fields to be updated as part of this request.
54951
+ # @param [Boolean] rollback
54952
+ # Optional. If true, then the ongoing rollout must be rolled back. Else, just
54953
+ # cancel
54954
+ # the rollout without taking any further actions. Note that products must
54955
+ # support at least one of these options, however, it does not need to support
54956
+ # both.
54033
54957
  # @param [String] fields
54034
54958
  # Selector specifying which fields to include in a partial response.
54035
54959
  # @param [String] quota_user
@@ -54049,33 +54973,37 @@ module Google
54049
54973
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54050
54974
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54051
54975
  # @raise [Google::Apis::AuthorizationError] Authorization is required
54052
- def patch_resource_policy(project, region, resource_policy, resource_policy_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54053
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
54054
- command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
54055
- command.request_object = resource_policy_object
54976
+ def cancel_rollout(project, rollout, request_id: nil, rollback: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54977
+ command = make_simple_command(:patch, 'projects/{project}/global/rollouts/{rollout}', options)
54056
54978
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
54057
54979
  command.response_class = Google::Apis::ComputeAlpha::Operation
54058
54980
  command.params['project'] = project unless project.nil?
54059
- command.params['region'] = region unless region.nil?
54060
- command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
54061
- command.query['paths'] = paths unless paths.nil?
54981
+ command.params['rollout'] = rollout unless rollout.nil?
54062
54982
  command.query['requestId'] = request_id unless request_id.nil?
54063
- command.query['updateMask'] = update_mask unless update_mask.nil?
54983
+ command.query['rollback'] = rollback unless rollback.nil?
54064
54984
  command.query['fields'] = fields unless fields.nil?
54065
54985
  command.query['quotaUser'] = quota_user unless quota_user.nil?
54066
54986
  command.query['userIp'] = user_ip unless user_ip.nil?
54067
54987
  execute_or_queue_command(command, &block)
54068
54988
  end
54069
54989
 
54070
- # Sets the access control policy on the specified resource.
54071
- # Replaces any existing policy.
54990
+ # Deletes a Rollout.
54072
54991
  # @param [String] project
54073
54992
  # Project ID for this request.
54074
- # @param [String] region
54075
- # The name of the region for this request.
54076
- # @param [String] resource
54077
- # Name or id of the resource for this request.
54078
- # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
54993
+ # @param [String] rollout
54994
+ # Name of the Rollout resource to delete.
54995
+ # @param [String] request_id
54996
+ # An optional request ID to identify requests. Specify a unique request ID so
54997
+ # that if you must retry your request, the server will know to ignore the
54998
+ # request if it has already been completed.
54999
+ # For example, consider a situation where you make an initial request and
55000
+ # the request times out. If you make the request again with the same
55001
+ # request ID, the server can check if original operation with the same
55002
+ # request ID was received, and if so, will ignore the second request. This
55003
+ # prevents clients from accidentally creating duplicate commitments.
55004
+ # The request ID must be
55005
+ # a valid UUID with the exception that zero UUID is not supported
55006
+ # (00000000-0000-0000-0000-000000000000).
54079
55007
  # @param [String] fields
54080
55008
  # Selector specifying which fields to include in a partial response.
54081
55009
  # @param [String] quota_user
@@ -54087,37 +55015,32 @@ module Google
54087
55015
  # Request-specific options
54088
55016
  #
54089
55017
  # @yield [result, err] Result & error if block supplied
54090
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
55018
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
54091
55019
  # @yieldparam err [StandardError] error object if request failed
54092
55020
  #
54093
- # @return [Google::Apis::ComputeAlpha::Policy]
55021
+ # @return [Google::Apis::ComputeAlpha::Operation]
54094
55022
  #
54095
55023
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54096
55024
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54097
55025
  # @raise [Google::Apis::AuthorizationError] Authorization is required
54098
- def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54099
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options)
54100
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
54101
- command.request_object = region_set_policy_request_object
54102
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
54103
- command.response_class = Google::Apis::ComputeAlpha::Policy
55026
+ def delete_rollout(project, rollout, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
55027
+ command = make_simple_command(:delete, 'projects/{project}/global/rollouts/{rollout}', options)
55028
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
55029
+ command.response_class = Google::Apis::ComputeAlpha::Operation
54104
55030
  command.params['project'] = project unless project.nil?
54105
- command.params['region'] = region unless region.nil?
54106
- command.params['resource'] = resource unless resource.nil?
55031
+ command.params['rollout'] = rollout unless rollout.nil?
55032
+ command.query['requestId'] = request_id unless request_id.nil?
54107
55033
  command.query['fields'] = fields unless fields.nil?
54108
55034
  command.query['quotaUser'] = quota_user unless quota_user.nil?
54109
55035
  command.query['userIp'] = user_ip unless user_ip.nil?
54110
55036
  execute_or_queue_command(command, &block)
54111
55037
  end
54112
55038
 
54113
- # Returns permissions that a caller has on the specified resource.
55039
+ # Gets details of a single project-scoped Rollout.
54114
55040
  # @param [String] project
54115
55041
  # Project ID for this request.
54116
- # @param [String] region
54117
- # The name of the region for this request.
54118
- # @param [String] resource
54119
- # Name or id of the resource for this request.
54120
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
55042
+ # @param [String] rollout
55043
+ # Name of the persistent rollout to return.
54121
55044
  # @param [String] fields
54122
55045
  # Selector specifying which fields to include in a partial response.
54123
55046
  # @param [String] quota_user
@@ -54129,23 +55052,134 @@ module Google
54129
55052
  # Request-specific options
54130
55053
  #
54131
55054
  # @yield [result, err] Result & error if block supplied
54132
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
55055
+ # @yieldparam result [Google::Apis::ComputeAlpha::Rollout] parsed result object
54133
55056
  # @yieldparam err [StandardError] error object if request failed
54134
55057
  #
54135
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
55058
+ # @return [Google::Apis::ComputeAlpha::Rollout]
54136
55059
  #
54137
55060
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
54138
55061
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
54139
55062
  # @raise [Google::Apis::AuthorizationError] Authorization is required
54140
- def test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
54141
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options)
54142
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
54143
- command.request_object = test_permissions_request_object
54144
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
54145
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
55063
+ def get_rollout(project, rollout, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
55064
+ command = make_simple_command(:get, 'projects/{project}/global/rollouts/{rollout}', options)
55065
+ command.response_representation = Google::Apis::ComputeAlpha::Rollout::Representation
55066
+ command.response_class = Google::Apis::ComputeAlpha::Rollout
54146
55067
  command.params['project'] = project unless project.nil?
54147
- command.params['region'] = region unless region.nil?
54148
- command.params['resource'] = resource unless resource.nil?
55068
+ command.params['rollout'] = rollout unless rollout.nil?
55069
+ command.query['fields'] = fields unless fields.nil?
55070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
55071
+ command.query['userIp'] = user_ip unless user_ip.nil?
55072
+ execute_or_queue_command(command, &block)
55073
+ end
55074
+
55075
+ # Lists Rollouts in a given project and location.
55076
+ # @param [String] project
55077
+ # Project ID for this request.
55078
+ # @param [String] filter
55079
+ # A filter expression that filters resources listed in the response. Most
55080
+ # Compute resources support two types of filter expressions:
55081
+ # expressions that support regular expressions and expressions that follow
55082
+ # API improvement proposal AIP-160.
55083
+ # These two types of filter expressions cannot be mixed in one request.
55084
+ # If you want to use AIP-160, your expression must specify the field name, an
55085
+ # operator, and the value that you want to use for filtering. The value
55086
+ # must be a string, a number, or a boolean. The operator
55087
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
55088
+ # For example, if you are filtering Compute Engine instances, you can
55089
+ # exclude instances named `example-instance` by specifying
55090
+ # `name != example-instance`.
55091
+ # The `:*` comparison can be used to test whether a key has been defined.
55092
+ # For example, to find all objects with `owner` label use:
55093
+ # ```
55094
+ # labels.owner:*
55095
+ # ```
55096
+ # You can also filter nested fields. For example, you could specify
55097
+ # `scheduling.automaticRestart = false` to include instances only
55098
+ # if they are not scheduled for automatic restarts. You can use filtering
55099
+ # on nested fields to filter based onresource labels.
55100
+ # To filter on multiple expressions, provide each separate expression within
55101
+ # parentheses. For example:
55102
+ # ```
55103
+ # (scheduling.automaticRestart = true)
55104
+ # (cpuPlatform = "Intel Skylake")
55105
+ # ```
55106
+ # By default, each expression is an `AND` expression. However, you
55107
+ # can include `AND` and `OR` expressions explicitly.
55108
+ # For example:
55109
+ # ```
55110
+ # (cpuPlatform = "Intel Skylake") OR
55111
+ # (cpuPlatform = "Intel Broadwell") AND
55112
+ # (scheduling.automaticRestart = true)
55113
+ # ```
55114
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
55115
+ # (not equal) operator against a single un-parenthesized expression with or
55116
+ # without quotes or against multiple parenthesized expressions. Examples:
55117
+ # `fieldname eq unquoted literal`
55118
+ # `fieldname eq 'single quoted literal'`
55119
+ # `fieldname eq "double quoted literal"`
55120
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
55121
+ # The literal value is interpreted as a regular expression using GoogleRE2
55122
+ # library syntax.
55123
+ # The literal value must match the entire field.
55124
+ # For example, to filter for instances that do not end with name "instance",
55125
+ # you would use `name ne .*instance`.
55126
+ # You cannot combine constraints on multiple fields using regular
55127
+ # expressions.
55128
+ # @param [Fixnum] max_results
55129
+ # The maximum number of results per page that should be returned.
55130
+ # If the number of available results is larger than `maxResults`,
55131
+ # Compute Engine returns a `nextPageToken` that can be used to get
55132
+ # the next page of results in subsequent list requests. Acceptable values are
55133
+ # `0` to `500`, inclusive. (Default: `500`)
55134
+ # @param [String] order_by
55135
+ # Sorts list results by a certain order. By default, results
55136
+ # are returned in alphanumerical order based on the resource name.
55137
+ # You can also sort results in descending order based on the creation
55138
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
55139
+ # results based on the `creationTimestamp` field in
55140
+ # reverse chronological order (newest result first). Use this to sort
55141
+ # resources like operations so that the newest operation is returned first.
55142
+ # Currently, only sorting by `name` or
55143
+ # `creationTimestamp desc` is supported.
55144
+ # @param [String] page_token
55145
+ # Specifies a page token to use. Set `pageToken` to the
55146
+ # `nextPageToken` returned by a previous list request to get
55147
+ # the next page of results.
55148
+ # @param [Boolean] return_partial_success
55149
+ # Opt-in for partial success behavior which provides partial results in case
55150
+ # of failure. The default value is false.
55151
+ # For example, when partial success behavior is enabled, aggregatedList for a
55152
+ # single zone scope either returns all resources in the zone or no resources,
55153
+ # with an error code.
55154
+ # @param [String] fields
55155
+ # Selector specifying which fields to include in a partial response.
55156
+ # @param [String] quota_user
55157
+ # Available to use for quota purposes for server-side applications. Can be any
55158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
55159
+ # @param [String] user_ip
55160
+ # Legacy name for parameter that has been superseded by `quotaUser`.
55161
+ # @param [Google::Apis::RequestOptions] options
55162
+ # Request-specific options
55163
+ #
55164
+ # @yield [result, err] Result & error if block supplied
55165
+ # @yieldparam result [Google::Apis::ComputeAlpha::RolloutsListResponse] parsed result object
55166
+ # @yieldparam err [StandardError] error object if request failed
55167
+ #
55168
+ # @return [Google::Apis::ComputeAlpha::RolloutsListResponse]
55169
+ #
55170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
55171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
55172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
55173
+ def list_rollouts(project, 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)
55174
+ command = make_simple_command(:get, 'projects/{project}/global/rollouts', options)
55175
+ command.response_representation = Google::Apis::ComputeAlpha::RolloutsListResponse::Representation
55176
+ command.response_class = Google::Apis::ComputeAlpha::RolloutsListResponse
55177
+ command.params['project'] = project unless project.nil?
55178
+ command.query['filter'] = filter unless filter.nil?
55179
+ command.query['maxResults'] = max_results unless max_results.nil?
55180
+ command.query['orderBy'] = order_by unless order_by.nil?
55181
+ command.query['pageToken'] = page_token unless page_token.nil?
55182
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
54149
55183
  command.query['fields'] = fields unless fields.nil?
54150
55184
  command.query['quotaUser'] = quota_user unless quota_user.nil?
54151
55185
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -60631,6 +61665,12 @@ module Google
60631
61665
  # @param [Fixnum] service_project_number
60632
61666
  # The Shared VPC service project id or service project number for which
60633
61667
  # aggregated list request is invoked for subnetworks list-usable api.
61668
+ # @param [Array<String>, String] views
61669
+ # Defines the extra views returned back in the subnetwork resource.
61670
+ # Supported values:
61671
+ #
61672
+ # - WITH_UTILIZATION: Utilization data is included in the
61673
+ # response.
60634
61674
  # @param [String] fields
60635
61675
  # Selector specifying which fields to include in a partial response.
60636
61676
  # @param [String] quota_user
@@ -60650,7 +61690,7 @@ module Google
60650
61690
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
60651
61691
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
60652
61692
  # @raise [Google::Apis::AuthorizationError] Authorization is required
60653
- 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)
61693
+ 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)
60654
61694
  command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options)
60655
61695
  command.response_representation = Google::Apis::ComputeAlpha::SubnetworkAggregatedList::Representation
60656
61696
  command.response_class = Google::Apis::ComputeAlpha::SubnetworkAggregatedList
@@ -60662,6 +61702,7 @@ module Google
60662
61702
  command.query['pageToken'] = page_token unless page_token.nil?
60663
61703
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
60664
61704
  command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
61705
+ command.query['views'] = views unless views.nil?
60665
61706
  command.query['fields'] = fields unless fields.nil?
60666
61707
  command.query['quotaUser'] = quota_user unless quota_user.nil?
60667
61708
  command.query['userIp'] = user_ip unless user_ip.nil?