google-apis-compute_alpha 0.124.0 → 0.125.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/compute_alpha/classes.rb +1264 -18
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +483 -0
- data/lib/google/apis/compute_alpha/service.rb +792 -176
- metadata +2 -2
|
@@ -56,7 +56,7 @@ module Google
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# Retrieves an aggregated list of accelerator types.
|
|
59
|
-
# To prevent failure,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
10877
|
-
command = make_simple_command(:
|
|
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,
|
|
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.
|
|
@@ -33221,11 +33325,13 @@ module Google
|
|
|
33221
33325
|
execute_or_queue_command(command, &block)
|
|
33222
33326
|
end
|
|
33223
33327
|
|
|
33328
|
+
# Moves a persistent disk from one zone to another.
|
|
33329
|
+
# *Note*: The moveDisk API will be deprecated on September 29, 2026.
|
|
33224
33330
|
# Starting September 29, 2025, you can't use the moveDisk API on new
|
|
33225
33331
|
# projects. To move a disk to a different region or zone, follow the steps in
|
|
33226
33332
|
# [Change the location of a
|
|
33227
|
-
# disk](https
|
|
33228
|
-
#
|
|
33333
|
+
# disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-
|
|
33334
|
+
# to-hd).
|
|
33229
33335
|
# Projects that already use the moveDisk API can continue usage until
|
|
33230
33336
|
# September 29, 2026.
|
|
33231
33337
|
# Starting November 1, 2025, API responses will include a warning message in
|
|
@@ -36825,7 +36931,7 @@ module Google
|
|
|
36825
36931
|
end
|
|
36826
36932
|
|
|
36827
36933
|
# Retrieves an aggregated list of commitments by region.
|
|
36828
|
-
# To prevent failure,
|
|
36934
|
+
# To prevent failure, it is recommended that you set the
|
|
36829
36935
|
# `returnPartialSuccess` parameter to `true`.
|
|
36830
36936
|
# @param [String] project
|
|
36831
36937
|
# Project ID for this request.
|
|
@@ -37429,7 +37535,7 @@ module Google
|
|
|
37429
37535
|
|
|
37430
37536
|
# Retrieves the list of all CompositeHealthCheck resources (all
|
|
37431
37537
|
# regional) available to the specified project.
|
|
37432
|
-
# To prevent failure,
|
|
37538
|
+
# To prevent failure, it is recommended that you set the
|
|
37433
37539
|
# `returnPartialSuccess` parameter to `true`.
|
|
37434
37540
|
# @param [String] project
|
|
37435
37541
|
# Name of the project scoping this request.
|
|
@@ -39275,7 +39381,7 @@ module Google
|
|
|
39275
39381
|
|
|
39276
39382
|
# Retrieves the list of all HealthAggregationPolicy resources,
|
|
39277
39383
|
# regional and global, available to the specified project.
|
|
39278
|
-
# To prevent failure,
|
|
39384
|
+
# To prevent failure, it is recommended that you set the
|
|
39279
39385
|
# `returnPartialSuccess` parameter to `true`.
|
|
39280
39386
|
# @param [String] project
|
|
39281
39387
|
# Name of the project scoping this request.
|
|
@@ -39767,7 +39873,7 @@ module Google
|
|
|
39767
39873
|
|
|
39768
39874
|
# Retrieves the list of all HealthCheckService resources,
|
|
39769
39875
|
# regional and global, available to the specified project.
|
|
39770
|
-
# To prevent failure,
|
|
39876
|
+
# To prevent failure, it is recommended that you set the
|
|
39771
39877
|
# `returnPartialSuccess` parameter to `true`.
|
|
39772
39878
|
# @param [String] project
|
|
39773
39879
|
# Name of the project scoping this request.
|
|
@@ -52883,7 +52989,7 @@ module Google
|
|
|
52883
52989
|
end
|
|
52884
52990
|
|
|
52885
52991
|
# Retrieves an aggregated list of reservations.
|
|
52886
|
-
# To prevent failure,
|
|
52992
|
+
# To prevent failure, it is recommended that you set the
|
|
52887
52993
|
# `returnPartialSuccess` parameter to `true`.
|
|
52888
52994
|
# @param [String] project
|
|
52889
52995
|
# Project ID for this request.
|
|
@@ -53741,13 +53847,459 @@ module Google
|
|
|
53741
53847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53742
53848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53743
53849
|
# @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)
|
|
53850
|
+
def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
53851
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
|
|
53852
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
53853
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
53854
|
+
command.params['project'] = project unless project.nil?
|
|
53855
|
+
command.params['region'] = region unless region.nil?
|
|
53856
|
+
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
53857
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
53858
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53859
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53860
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53861
|
+
execute_or_queue_command(command, &block)
|
|
53862
|
+
end
|
|
53863
|
+
|
|
53864
|
+
# Retrieves all information of the specified resource policy.
|
|
53865
|
+
# @param [String] project
|
|
53866
|
+
# Project ID for this request.
|
|
53867
|
+
# @param [String] region
|
|
53868
|
+
# Name of the region for this request.
|
|
53869
|
+
# @param [String] resource_policy
|
|
53870
|
+
# Name of the resource policy to retrieve.
|
|
53871
|
+
# @param [String] fields
|
|
53872
|
+
# Selector specifying which fields to include in a partial response.
|
|
53873
|
+
# @param [String] quota_user
|
|
53874
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
53875
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
53876
|
+
# @param [String] user_ip
|
|
53877
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
53878
|
+
# @param [Google::Apis::RequestOptions] options
|
|
53879
|
+
# Request-specific options
|
|
53880
|
+
#
|
|
53881
|
+
# @yield [result, err] Result & error if block supplied
|
|
53882
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ResourcePolicy] parsed result object
|
|
53883
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
53884
|
+
#
|
|
53885
|
+
# @return [Google::Apis::ComputeAlpha::ResourcePolicy]
|
|
53886
|
+
#
|
|
53887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53890
|
+
def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
53891
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
|
|
53892
|
+
command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
|
|
53893
|
+
command.response_class = Google::Apis::ComputeAlpha::ResourcePolicy
|
|
53894
|
+
command.params['project'] = project unless project.nil?
|
|
53895
|
+
command.params['region'] = region unless region.nil?
|
|
53896
|
+
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
53897
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53898
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53899
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53900
|
+
execute_or_queue_command(command, &block)
|
|
53901
|
+
end
|
|
53902
|
+
|
|
53903
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
53904
|
+
# policy or resource exists.
|
|
53905
|
+
# @param [String] project
|
|
53906
|
+
# Project ID for this request.
|
|
53907
|
+
# @param [String] region
|
|
53908
|
+
# The name of the region for this request.
|
|
53909
|
+
# @param [String] resource
|
|
53910
|
+
# Name or id of the resource for this request.
|
|
53911
|
+
# @param [Fixnum] options_requested_policy_version
|
|
53912
|
+
# Requested IAM Policy version.
|
|
53913
|
+
# @param [String] fields
|
|
53914
|
+
# Selector specifying which fields to include in a partial response.
|
|
53915
|
+
# @param [String] quota_user
|
|
53916
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
53917
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
53918
|
+
# @param [String] user_ip
|
|
53919
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
53920
|
+
# @param [Google::Apis::RequestOptions] options
|
|
53921
|
+
# Request-specific options
|
|
53922
|
+
#
|
|
53923
|
+
# @yield [result, err] Result & error if block supplied
|
|
53924
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
|
53925
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
53926
|
+
#
|
|
53927
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
|
53928
|
+
#
|
|
53929
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53930
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53931
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53932
|
+
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)
|
|
53933
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options)
|
|
53934
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
|
53935
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
|
53936
|
+
command.params['project'] = project unless project.nil?
|
|
53937
|
+
command.params['region'] = region unless region.nil?
|
|
53938
|
+
command.params['resource'] = resource unless resource.nil?
|
|
53939
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
53940
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53941
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53942
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53943
|
+
execute_or_queue_command(command, &block)
|
|
53944
|
+
end
|
|
53945
|
+
|
|
53946
|
+
# Creates a new resource policy.
|
|
53947
|
+
# @param [String] project
|
|
53948
|
+
# Project ID for this request.
|
|
53949
|
+
# @param [String] region
|
|
53950
|
+
# Name of the region for this request.
|
|
53951
|
+
# @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
|
|
53952
|
+
# @param [String] request_id
|
|
53953
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
53954
|
+
# that if you must retry your request, the server will know to ignore the
|
|
53955
|
+
# request if it has already been completed.
|
|
53956
|
+
# For example, consider a situation where you make an initial request and
|
|
53957
|
+
# the request times out. If you make the request again with the same
|
|
53958
|
+
# request ID, the server can check if original operation with the same
|
|
53959
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
53960
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
53961
|
+
# The request ID must be
|
|
53962
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
53963
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
53964
|
+
# @param [String] fields
|
|
53965
|
+
# Selector specifying which fields to include in a partial response.
|
|
53966
|
+
# @param [String] quota_user
|
|
53967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
53968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
53969
|
+
# @param [String] user_ip
|
|
53970
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
53971
|
+
# @param [Google::Apis::RequestOptions] options
|
|
53972
|
+
# Request-specific options
|
|
53973
|
+
#
|
|
53974
|
+
# @yield [result, err] Result & error if block supplied
|
|
53975
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
53976
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
53977
|
+
#
|
|
53978
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
53979
|
+
#
|
|
53980
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53981
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53982
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53983
|
+
def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
53984
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies', options)
|
|
53985
|
+
command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
|
|
53986
|
+
command.request_object = resource_policy_object
|
|
53987
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
53988
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
53989
|
+
command.params['project'] = project unless project.nil?
|
|
53990
|
+
command.params['region'] = region unless region.nil?
|
|
53991
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
53992
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53993
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53994
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53995
|
+
execute_or_queue_command(command, &block)
|
|
53996
|
+
end
|
|
53997
|
+
|
|
53998
|
+
# A list all the resource policies that have been configured for the
|
|
53999
|
+
# specified project in specified region.
|
|
54000
|
+
# @param [String] project
|
|
54001
|
+
# Project ID for this request.
|
|
54002
|
+
# @param [String] region
|
|
54003
|
+
# Name of the region for this request.
|
|
54004
|
+
# @param [String] filter
|
|
54005
|
+
# A filter expression that filters resources listed in the response. Most
|
|
54006
|
+
# Compute resources support two types of filter expressions:
|
|
54007
|
+
# expressions that support regular expressions and expressions that follow
|
|
54008
|
+
# API improvement proposal AIP-160.
|
|
54009
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
54010
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
54011
|
+
# operator, and the value that you want to use for filtering. The value
|
|
54012
|
+
# must be a string, a number, or a boolean. The operator
|
|
54013
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
54014
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
54015
|
+
# exclude instances named `example-instance` by specifying
|
|
54016
|
+
# `name != example-instance`.
|
|
54017
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
54018
|
+
# For example, to find all objects with `owner` label use:
|
|
54019
|
+
# ```
|
|
54020
|
+
# labels.owner:*
|
|
54021
|
+
# ```
|
|
54022
|
+
# You can also filter nested fields. For example, you could specify
|
|
54023
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
54024
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
54025
|
+
# on nested fields to filter based onresource labels.
|
|
54026
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
54027
|
+
# parentheses. For example:
|
|
54028
|
+
# ```
|
|
54029
|
+
# (scheduling.automaticRestart = true)
|
|
54030
|
+
# (cpuPlatform = "Intel Skylake")
|
|
54031
|
+
# ```
|
|
54032
|
+
# By default, each expression is an `AND` expression. However, you
|
|
54033
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
54034
|
+
# For example:
|
|
54035
|
+
# ```
|
|
54036
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
54037
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
54038
|
+
# (scheduling.automaticRestart = true)
|
|
54039
|
+
# ```
|
|
54040
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
54041
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
54042
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
54043
|
+
# `fieldname eq unquoted literal`
|
|
54044
|
+
# `fieldname eq 'single quoted literal'`
|
|
54045
|
+
# `fieldname eq "double quoted literal"`
|
|
54046
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
54047
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
54048
|
+
# library syntax.
|
|
54049
|
+
# The literal value must match the entire field.
|
|
54050
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
54051
|
+
# you would use `name ne .*instance`.
|
|
54052
|
+
# You cannot combine constraints on multiple fields using regular
|
|
54053
|
+
# expressions.
|
|
54054
|
+
# @param [Fixnum] max_results
|
|
54055
|
+
# The maximum number of results per page that should be returned.
|
|
54056
|
+
# If the number of available results is larger than `maxResults`,
|
|
54057
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
54058
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
54059
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
54060
|
+
# @param [String] order_by
|
|
54061
|
+
# Sorts list results by a certain order. By default, results
|
|
54062
|
+
# are returned in alphanumerical order based on the resource name.
|
|
54063
|
+
# You can also sort results in descending order based on the creation
|
|
54064
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
54065
|
+
# results based on the `creationTimestamp` field in
|
|
54066
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
54067
|
+
# resources like operations so that the newest operation is returned first.
|
|
54068
|
+
# Currently, only sorting by `name` or
|
|
54069
|
+
# `creationTimestamp desc` is supported.
|
|
54070
|
+
# @param [String] page_token
|
|
54071
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
54072
|
+
# `nextPageToken` returned by a previous list request to get
|
|
54073
|
+
# the next page of results.
|
|
54074
|
+
# @param [Boolean] return_partial_success
|
|
54075
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
54076
|
+
# of failure. The default value is false.
|
|
54077
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
54078
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
54079
|
+
# with an error code.
|
|
54080
|
+
# @param [String] fields
|
|
54081
|
+
# Selector specifying which fields to include in a partial response.
|
|
54082
|
+
# @param [String] quota_user
|
|
54083
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54084
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
54085
|
+
# @param [String] user_ip
|
|
54086
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
54087
|
+
# @param [Google::Apis::RequestOptions] options
|
|
54088
|
+
# Request-specific options
|
|
54089
|
+
#
|
|
54090
|
+
# @yield [result, err] Result & error if block supplied
|
|
54091
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ResourcePolicyList] parsed result object
|
|
54092
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
54093
|
+
#
|
|
54094
|
+
# @return [Google::Apis::ComputeAlpha::ResourcePolicyList]
|
|
54095
|
+
#
|
|
54096
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54097
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54098
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54099
|
+
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)
|
|
54100
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies', options)
|
|
54101
|
+
command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicyList::Representation
|
|
54102
|
+
command.response_class = Google::Apis::ComputeAlpha::ResourcePolicyList
|
|
54103
|
+
command.params['project'] = project unless project.nil?
|
|
54104
|
+
command.params['region'] = region unless region.nil?
|
|
54105
|
+
command.query['filter'] = filter unless filter.nil?
|
|
54106
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
54107
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
54108
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
54109
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
54110
|
+
command.query['fields'] = fields unless fields.nil?
|
|
54111
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54112
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54113
|
+
execute_or_queue_command(command, &block)
|
|
54114
|
+
end
|
|
54115
|
+
|
|
54116
|
+
# Modify the specified resource policy.
|
|
54117
|
+
# @param [String] project
|
|
54118
|
+
# Project ID for this request.
|
|
54119
|
+
# @param [String] region
|
|
54120
|
+
# Name of the region for this request.
|
|
54121
|
+
# @param [String] resource_policy
|
|
54122
|
+
# Id of the resource policy to patch.
|
|
54123
|
+
# @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
|
|
54124
|
+
# @param [Array<String>, String] paths
|
|
54125
|
+
# @param [String] request_id
|
|
54126
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
54127
|
+
# that if you must retry your request, the server will know to ignore the
|
|
54128
|
+
# request if it has already been completed.
|
|
54129
|
+
# For example, consider a situation where you make an initial request and
|
|
54130
|
+
# the request times out. If you make the request again with the same
|
|
54131
|
+
# request ID, the server can check if original operation with the same
|
|
54132
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
54133
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
54134
|
+
# The request ID must be
|
|
54135
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
54136
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
54137
|
+
# @param [String] update_mask
|
|
54138
|
+
# update_mask indicates fields to be updated as part of this request.
|
|
54139
|
+
# @param [String] fields
|
|
54140
|
+
# Selector specifying which fields to include in a partial response.
|
|
54141
|
+
# @param [String] quota_user
|
|
54142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
54144
|
+
# @param [String] user_ip
|
|
54145
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
54146
|
+
# @param [Google::Apis::RequestOptions] options
|
|
54147
|
+
# Request-specific options
|
|
54148
|
+
#
|
|
54149
|
+
# @yield [result, err] Result & error if block supplied
|
|
54150
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
54151
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
54152
|
+
#
|
|
54153
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
54154
|
+
#
|
|
54155
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54156
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54157
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54158
|
+
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)
|
|
54159
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
|
|
54160
|
+
command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
|
|
54161
|
+
command.request_object = resource_policy_object
|
|
54162
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
54163
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
54164
|
+
command.params['project'] = project unless project.nil?
|
|
54165
|
+
command.params['region'] = region unless region.nil?
|
|
54166
|
+
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
54167
|
+
command.query['paths'] = paths unless paths.nil?
|
|
54168
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
54169
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
54170
|
+
command.query['fields'] = fields unless fields.nil?
|
|
54171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54172
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54173
|
+
execute_or_queue_command(command, &block)
|
|
54174
|
+
end
|
|
54175
|
+
|
|
54176
|
+
# Sets the access control policy on the specified resource.
|
|
54177
|
+
# Replaces any existing policy.
|
|
54178
|
+
# @param [String] project
|
|
54179
|
+
# Project ID for this request.
|
|
54180
|
+
# @param [String] region
|
|
54181
|
+
# The name of the region for this request.
|
|
54182
|
+
# @param [String] resource
|
|
54183
|
+
# Name or id of the resource for this request.
|
|
54184
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
|
54185
|
+
# @param [String] fields
|
|
54186
|
+
# Selector specifying which fields to include in a partial response.
|
|
54187
|
+
# @param [String] quota_user
|
|
54188
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54189
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
54190
|
+
# @param [String] user_ip
|
|
54191
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
54192
|
+
# @param [Google::Apis::RequestOptions] options
|
|
54193
|
+
# Request-specific options
|
|
54194
|
+
#
|
|
54195
|
+
# @yield [result, err] Result & error if block supplied
|
|
54196
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
|
54197
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
54198
|
+
#
|
|
54199
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
|
54200
|
+
#
|
|
54201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54204
|
+
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)
|
|
54205
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options)
|
|
54206
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
|
54207
|
+
command.request_object = region_set_policy_request_object
|
|
54208
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
|
54209
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
|
54210
|
+
command.params['project'] = project unless project.nil?
|
|
54211
|
+
command.params['region'] = region unless region.nil?
|
|
54212
|
+
command.params['resource'] = resource unless resource.nil?
|
|
54213
|
+
command.query['fields'] = fields unless fields.nil?
|
|
54214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54215
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54216
|
+
execute_or_queue_command(command, &block)
|
|
54217
|
+
end
|
|
54218
|
+
|
|
54219
|
+
# Returns permissions that a caller has on the specified resource.
|
|
54220
|
+
# @param [String] project
|
|
54221
|
+
# Project ID for this request.
|
|
54222
|
+
# @param [String] region
|
|
54223
|
+
# The name of the region for this request.
|
|
54224
|
+
# @param [String] resource
|
|
54225
|
+
# Name or id of the resource for this request.
|
|
54226
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
|
54227
|
+
# @param [String] fields
|
|
54228
|
+
# Selector specifying which fields to include in a partial response.
|
|
54229
|
+
# @param [String] quota_user
|
|
54230
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54231
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
54232
|
+
# @param [String] user_ip
|
|
54233
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
54234
|
+
# @param [Google::Apis::RequestOptions] options
|
|
54235
|
+
# Request-specific options
|
|
54236
|
+
#
|
|
54237
|
+
# @yield [result, err] Result & error if block supplied
|
|
54238
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
|
54239
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
54240
|
+
#
|
|
54241
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
|
54242
|
+
#
|
|
54243
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54244
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54245
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54246
|
+
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)
|
|
54247
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options)
|
|
54248
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
|
54249
|
+
command.request_object = test_permissions_request_object
|
|
54250
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
|
54251
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
|
54252
|
+
command.params['project'] = project unless project.nil?
|
|
54253
|
+
command.params['region'] = region unless region.nil?
|
|
54254
|
+
command.params['resource'] = resource unless resource.nil?
|
|
54255
|
+
command.query['fields'] = fields unless fields.nil?
|
|
54256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54257
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54258
|
+
execute_or_queue_command(command, &block)
|
|
54259
|
+
end
|
|
54260
|
+
|
|
54261
|
+
# Deletes a RolloutPlan.
|
|
54262
|
+
# @param [String] project
|
|
54263
|
+
# Project ID for this request.
|
|
54264
|
+
# @param [String] rollout_plan
|
|
54265
|
+
# Name of the RolloutPlan resource to delete.
|
|
54266
|
+
# @param [String] request_id
|
|
54267
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
54268
|
+
# that if you must retry your request, the server will know to ignore the
|
|
54269
|
+
# request if it has already been completed.
|
|
54270
|
+
# For example, consider a situation where you make an initial request and
|
|
54271
|
+
# the request times out. If you make the request again with the same
|
|
54272
|
+
# request ID, the server can check if original operation with the same
|
|
54273
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
54274
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
54275
|
+
# The request ID must be
|
|
54276
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
54277
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
54278
|
+
# @param [String] fields
|
|
54279
|
+
# Selector specifying which fields to include in a partial response.
|
|
54280
|
+
# @param [String] quota_user
|
|
54281
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54282
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
54283
|
+
# @param [String] user_ip
|
|
54284
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
54285
|
+
# @param [Google::Apis::RequestOptions] options
|
|
54286
|
+
# Request-specific options
|
|
54287
|
+
#
|
|
54288
|
+
# @yield [result, err] Result & error if block supplied
|
|
54289
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
54290
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
54291
|
+
#
|
|
54292
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
54293
|
+
#
|
|
54294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54297
|
+
def delete_rollout_plan(project, rollout_plan, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
54298
|
+
command = make_simple_command(:delete, 'projects/{project}/global/rolloutPlans/{rolloutPlan}', options)
|
|
53746
54299
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
53747
54300
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
53748
54301
|
command.params['project'] = project unless project.nil?
|
|
53749
|
-
command.params['
|
|
53750
|
-
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
54302
|
+
command.params['rolloutPlan'] = rollout_plan unless rollout_plan.nil?
|
|
53751
54303
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
53752
54304
|
command.query['fields'] = fields unless fields.nil?
|
|
53753
54305
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -53755,55 +54307,11 @@ module Google
|
|
|
53755
54307
|
execute_or_queue_command(command, &block)
|
|
53756
54308
|
end
|
|
53757
54309
|
|
|
53758
|
-
#
|
|
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.
|
|
54310
|
+
# Gets details of a single project-scoped RolloutPlan.
|
|
53799
54311
|
# @param [String] project
|
|
53800
54312
|
# Project ID for this request.
|
|
53801
|
-
# @param [String]
|
|
53802
|
-
#
|
|
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.
|
|
54313
|
+
# @param [String] rollout_plan
|
|
54314
|
+
# Name of the persistent rollout plan to return.
|
|
53807
54315
|
# @param [String] fields
|
|
53808
54316
|
# Selector specifying which fields to include in a partial response.
|
|
53809
54317
|
# @param [String] quota_user
|
|
@@ -53815,34 +54323,30 @@ module Google
|
|
|
53815
54323
|
# Request-specific options
|
|
53816
54324
|
#
|
|
53817
54325
|
# @yield [result, err] Result & error if block supplied
|
|
53818
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
54326
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RolloutPlan] parsed result object
|
|
53819
54327
|
# @yieldparam err [StandardError] error object if request failed
|
|
53820
54328
|
#
|
|
53821
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
54329
|
+
# @return [Google::Apis::ComputeAlpha::RolloutPlan]
|
|
53822
54330
|
#
|
|
53823
54331
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53824
54332
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53825
54333
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53826
|
-
def
|
|
53827
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
53828
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
53829
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
54334
|
+
def get_rollout_plan(project, rollout_plan, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
54335
|
+
command = make_simple_command(:get, 'projects/{project}/global/rolloutPlans/{rolloutPlan}', options)
|
|
54336
|
+
command.response_representation = Google::Apis::ComputeAlpha::RolloutPlan::Representation
|
|
54337
|
+
command.response_class = Google::Apis::ComputeAlpha::RolloutPlan
|
|
53830
54338
|
command.params['project'] = project unless project.nil?
|
|
53831
|
-
command.params['
|
|
53832
|
-
command.params['resource'] = resource unless resource.nil?
|
|
53833
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
54339
|
+
command.params['rolloutPlan'] = rollout_plan unless rollout_plan.nil?
|
|
53834
54340
|
command.query['fields'] = fields unless fields.nil?
|
|
53835
54341
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53836
54342
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53837
54343
|
execute_or_queue_command(command, &block)
|
|
53838
54344
|
end
|
|
53839
54345
|
|
|
53840
|
-
# Creates a new
|
|
54346
|
+
# Creates a new RolloutPlan in a given project and location.
|
|
53841
54347
|
# @param [String] project
|
|
53842
54348
|
# Project ID for this request.
|
|
53843
|
-
# @param [
|
|
53844
|
-
# Name of the region for this request.
|
|
53845
|
-
# @param [Google::Apis::ComputeAlpha::ResourcePolicy] resource_policy_object
|
|
54349
|
+
# @param [Google::Apis::ComputeAlpha::RolloutPlan] rollout_plan_object
|
|
53846
54350
|
# @param [String] request_id
|
|
53847
54351
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
53848
54352
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -53874,14 +54378,13 @@ module Google
|
|
|
53874
54378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53875
54379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53876
54380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53877
|
-
def
|
|
53878
|
-
command = make_simple_command(:post, 'projects/{project}/
|
|
53879
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
|
53880
|
-
command.request_object =
|
|
54381
|
+
def insert_rollout_plan(project, rollout_plan_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
54382
|
+
command = make_simple_command(:post, 'projects/{project}/global/rolloutPlans', options)
|
|
54383
|
+
command.request_representation = Google::Apis::ComputeAlpha::RolloutPlan::Representation
|
|
54384
|
+
command.request_object = rollout_plan_object
|
|
53881
54385
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
53882
54386
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
53883
54387
|
command.params['project'] = project unless project.nil?
|
|
53884
|
-
command.params['region'] = region unless region.nil?
|
|
53885
54388
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
53886
54389
|
command.query['fields'] = fields unless fields.nil?
|
|
53887
54390
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -53889,12 +54392,9 @@ module Google
|
|
|
53889
54392
|
execute_or_queue_command(command, &block)
|
|
53890
54393
|
end
|
|
53891
54394
|
|
|
53892
|
-
#
|
|
53893
|
-
# specified project in specified region.
|
|
54395
|
+
# Lists RolloutPlans in a given project and location.
|
|
53894
54396
|
# @param [String] project
|
|
53895
54397
|
# Project ID for this request.
|
|
53896
|
-
# @param [String] region
|
|
53897
|
-
# Name of the region for this request.
|
|
53898
54398
|
# @param [String] filter
|
|
53899
54399
|
# A filter expression that filters resources listed in the response. Most
|
|
53900
54400
|
# Compute resources support two types of filter expressions:
|
|
@@ -53982,20 +54482,19 @@ module Google
|
|
|
53982
54482
|
# Request-specific options
|
|
53983
54483
|
#
|
|
53984
54484
|
# @yield [result, err] Result & error if block supplied
|
|
53985
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
54485
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RolloutPlansListResponse] parsed result object
|
|
53986
54486
|
# @yieldparam err [StandardError] error object if request failed
|
|
53987
54487
|
#
|
|
53988
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
54488
|
+
# @return [Google::Apis::ComputeAlpha::RolloutPlansListResponse]
|
|
53989
54489
|
#
|
|
53990
54490
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53991
54491
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53992
54492
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53993
|
-
def
|
|
53994
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
53995
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
53996
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
54493
|
+
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)
|
|
54494
|
+
command = make_simple_command(:get, 'projects/{project}/global/rolloutPlans', options)
|
|
54495
|
+
command.response_representation = Google::Apis::ComputeAlpha::RolloutPlansListResponse::Representation
|
|
54496
|
+
command.response_class = Google::Apis::ComputeAlpha::RolloutPlansListResponse
|
|
53997
54497
|
command.params['project'] = project unless project.nil?
|
|
53998
|
-
command.params['region'] = region unless region.nil?
|
|
53999
54498
|
command.query['filter'] = filter unless filter.nil?
|
|
54000
54499
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
54001
54500
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -54007,15 +54506,11 @@ module Google
|
|
|
54007
54506
|
execute_or_queue_command(command, &block)
|
|
54008
54507
|
end
|
|
54009
54508
|
|
|
54010
|
-
#
|
|
54509
|
+
# Cancels a Rollout.
|
|
54011
54510
|
# @param [String] project
|
|
54012
54511
|
# Project ID for this request.
|
|
54013
|
-
# @param [String]
|
|
54014
|
-
# Name of the
|
|
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
|
|
54512
|
+
# @param [String] rollout
|
|
54513
|
+
# Name of the Rollout resource to cancel.
|
|
54019
54514
|
# @param [String] request_id
|
|
54020
54515
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
54021
54516
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -54028,8 +54523,12 @@ module Google
|
|
|
54028
54523
|
# The request ID must be
|
|
54029
54524
|
# a valid UUID with the exception that zero UUID is not supported
|
|
54030
54525
|
# (00000000-0000-0000-0000-000000000000).
|
|
54031
|
-
# @param [
|
|
54032
|
-
#
|
|
54526
|
+
# @param [Boolean] rollback
|
|
54527
|
+
# Optional. If true, then the ongoing rollout must be rolled back. Else, just
|
|
54528
|
+
# cancel
|
|
54529
|
+
# the rollout without taking any further actions. Note that products must
|
|
54530
|
+
# support at least one of these options, however, it does not need to support
|
|
54531
|
+
# both.
|
|
54033
54532
|
# @param [String] fields
|
|
54034
54533
|
# Selector specifying which fields to include in a partial response.
|
|
54035
54534
|
# @param [String] quota_user
|
|
@@ -54049,33 +54548,37 @@ module Google
|
|
|
54049
54548
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54050
54549
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54051
54550
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54052
|
-
def
|
|
54053
|
-
command = make_simple_command(:patch, 'projects/{project}/
|
|
54054
|
-
command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation
|
|
54055
|
-
command.request_object = resource_policy_object
|
|
54551
|
+
def cancel_rollout(project, rollout, request_id: nil, rollback: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
54552
|
+
command = make_simple_command(:patch, 'projects/{project}/global/rollouts/{rollout}', options)
|
|
54056
54553
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
54057
54554
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
54058
54555
|
command.params['project'] = project unless project.nil?
|
|
54059
|
-
command.params['
|
|
54060
|
-
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
|
54061
|
-
command.query['paths'] = paths unless paths.nil?
|
|
54556
|
+
command.params['rollout'] = rollout unless rollout.nil?
|
|
54062
54557
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
54063
|
-
command.query['
|
|
54558
|
+
command.query['rollback'] = rollback unless rollback.nil?
|
|
54064
54559
|
command.query['fields'] = fields unless fields.nil?
|
|
54065
54560
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54066
54561
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54067
54562
|
execute_or_queue_command(command, &block)
|
|
54068
54563
|
end
|
|
54069
54564
|
|
|
54070
|
-
#
|
|
54071
|
-
# Replaces any existing policy.
|
|
54565
|
+
# Deletes a Rollout.
|
|
54072
54566
|
# @param [String] project
|
|
54073
54567
|
# Project ID for this request.
|
|
54074
|
-
# @param [String]
|
|
54075
|
-
#
|
|
54076
|
-
# @param [String]
|
|
54077
|
-
#
|
|
54078
|
-
#
|
|
54568
|
+
# @param [String] rollout
|
|
54569
|
+
# Name of the Rollout resource to delete.
|
|
54570
|
+
# @param [String] request_id
|
|
54571
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
54572
|
+
# that if you must retry your request, the server will know to ignore the
|
|
54573
|
+
# request if it has already been completed.
|
|
54574
|
+
# For example, consider a situation where you make an initial request and
|
|
54575
|
+
# the request times out. If you make the request again with the same
|
|
54576
|
+
# request ID, the server can check if original operation with the same
|
|
54577
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
54578
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
54579
|
+
# The request ID must be
|
|
54580
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
54581
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
54079
54582
|
# @param [String] fields
|
|
54080
54583
|
# Selector specifying which fields to include in a partial response.
|
|
54081
54584
|
# @param [String] quota_user
|
|
@@ -54087,37 +54590,32 @@ module Google
|
|
|
54087
54590
|
# Request-specific options
|
|
54088
54591
|
#
|
|
54089
54592
|
# @yield [result, err] Result & error if block supplied
|
|
54090
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
54593
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
54091
54594
|
# @yieldparam err [StandardError] error object if request failed
|
|
54092
54595
|
#
|
|
54093
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
54596
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
54094
54597
|
#
|
|
54095
54598
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54096
54599
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54097
54600
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54098
|
-
def
|
|
54099
|
-
command = make_simple_command(:
|
|
54100
|
-
command.
|
|
54101
|
-
command.
|
|
54102
|
-
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
|
54103
|
-
command.response_class = Google::Apis::ComputeAlpha::Policy
|
|
54601
|
+
def delete_rollout(project, rollout, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
54602
|
+
command = make_simple_command(:delete, 'projects/{project}/global/rollouts/{rollout}', options)
|
|
54603
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
54604
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
54104
54605
|
command.params['project'] = project unless project.nil?
|
|
54105
|
-
command.params['
|
|
54106
|
-
command.
|
|
54606
|
+
command.params['rollout'] = rollout unless rollout.nil?
|
|
54607
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
54107
54608
|
command.query['fields'] = fields unless fields.nil?
|
|
54108
54609
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54109
54610
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54110
54611
|
execute_or_queue_command(command, &block)
|
|
54111
54612
|
end
|
|
54112
54613
|
|
|
54113
|
-
#
|
|
54614
|
+
# Gets details of a single project-scoped Rollout.
|
|
54114
54615
|
# @param [String] project
|
|
54115
54616
|
# Project ID for this request.
|
|
54116
|
-
# @param [String]
|
|
54117
|
-
#
|
|
54118
|
-
# @param [String] resource
|
|
54119
|
-
# Name or id of the resource for this request.
|
|
54120
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
|
54617
|
+
# @param [String] rollout
|
|
54618
|
+
# Name of the persistent rollout to return.
|
|
54121
54619
|
# @param [String] fields
|
|
54122
54620
|
# Selector specifying which fields to include in a partial response.
|
|
54123
54621
|
# @param [String] quota_user
|
|
@@ -54129,23 +54627,134 @@ module Google
|
|
|
54129
54627
|
# Request-specific options
|
|
54130
54628
|
#
|
|
54131
54629
|
# @yield [result, err] Result & error if block supplied
|
|
54132
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
54630
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Rollout] parsed result object
|
|
54133
54631
|
# @yieldparam err [StandardError] error object if request failed
|
|
54134
54632
|
#
|
|
54135
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
54633
|
+
# @return [Google::Apis::ComputeAlpha::Rollout]
|
|
54136
54634
|
#
|
|
54137
54635
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54138
54636
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54139
54637
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54140
|
-
def
|
|
54141
|
-
command = make_simple_command(:
|
|
54142
|
-
command.
|
|
54143
|
-
command.
|
|
54144
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
|
54145
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
|
54638
|
+
def get_rollout(project, rollout, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
54639
|
+
command = make_simple_command(:get, 'projects/{project}/global/rollouts/{rollout}', options)
|
|
54640
|
+
command.response_representation = Google::Apis::ComputeAlpha::Rollout::Representation
|
|
54641
|
+
command.response_class = Google::Apis::ComputeAlpha::Rollout
|
|
54146
54642
|
command.params['project'] = project unless project.nil?
|
|
54147
|
-
command.params['
|
|
54148
|
-
command.
|
|
54643
|
+
command.params['rollout'] = rollout unless rollout.nil?
|
|
54644
|
+
command.query['fields'] = fields unless fields.nil?
|
|
54645
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54646
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
54647
|
+
execute_or_queue_command(command, &block)
|
|
54648
|
+
end
|
|
54649
|
+
|
|
54650
|
+
# Lists Rollouts in a given project and location.
|
|
54651
|
+
# @param [String] project
|
|
54652
|
+
# Project ID for this request.
|
|
54653
|
+
# @param [String] filter
|
|
54654
|
+
# A filter expression that filters resources listed in the response. Most
|
|
54655
|
+
# Compute resources support two types of filter expressions:
|
|
54656
|
+
# expressions that support regular expressions and expressions that follow
|
|
54657
|
+
# API improvement proposal AIP-160.
|
|
54658
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
54659
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
54660
|
+
# operator, and the value that you want to use for filtering. The value
|
|
54661
|
+
# must be a string, a number, or a boolean. The operator
|
|
54662
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
54663
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
54664
|
+
# exclude instances named `example-instance` by specifying
|
|
54665
|
+
# `name != example-instance`.
|
|
54666
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
54667
|
+
# For example, to find all objects with `owner` label use:
|
|
54668
|
+
# ```
|
|
54669
|
+
# labels.owner:*
|
|
54670
|
+
# ```
|
|
54671
|
+
# You can also filter nested fields. For example, you could specify
|
|
54672
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
54673
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
54674
|
+
# on nested fields to filter based onresource labels.
|
|
54675
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
54676
|
+
# parentheses. For example:
|
|
54677
|
+
# ```
|
|
54678
|
+
# (scheduling.automaticRestart = true)
|
|
54679
|
+
# (cpuPlatform = "Intel Skylake")
|
|
54680
|
+
# ```
|
|
54681
|
+
# By default, each expression is an `AND` expression. However, you
|
|
54682
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
54683
|
+
# For example:
|
|
54684
|
+
# ```
|
|
54685
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
54686
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
54687
|
+
# (scheduling.automaticRestart = true)
|
|
54688
|
+
# ```
|
|
54689
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
54690
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
54691
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
54692
|
+
# `fieldname eq unquoted literal`
|
|
54693
|
+
# `fieldname eq 'single quoted literal'`
|
|
54694
|
+
# `fieldname eq "double quoted literal"`
|
|
54695
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
54696
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
54697
|
+
# library syntax.
|
|
54698
|
+
# The literal value must match the entire field.
|
|
54699
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
54700
|
+
# you would use `name ne .*instance`.
|
|
54701
|
+
# You cannot combine constraints on multiple fields using regular
|
|
54702
|
+
# expressions.
|
|
54703
|
+
# @param [Fixnum] max_results
|
|
54704
|
+
# The maximum number of results per page that should be returned.
|
|
54705
|
+
# If the number of available results is larger than `maxResults`,
|
|
54706
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
54707
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
54708
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
54709
|
+
# @param [String] order_by
|
|
54710
|
+
# Sorts list results by a certain order. By default, results
|
|
54711
|
+
# are returned in alphanumerical order based on the resource name.
|
|
54712
|
+
# You can also sort results in descending order based on the creation
|
|
54713
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
54714
|
+
# results based on the `creationTimestamp` field in
|
|
54715
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
54716
|
+
# resources like operations so that the newest operation is returned first.
|
|
54717
|
+
# Currently, only sorting by `name` or
|
|
54718
|
+
# `creationTimestamp desc` is supported.
|
|
54719
|
+
# @param [String] page_token
|
|
54720
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
54721
|
+
# `nextPageToken` returned by a previous list request to get
|
|
54722
|
+
# the next page of results.
|
|
54723
|
+
# @param [Boolean] return_partial_success
|
|
54724
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
54725
|
+
# of failure. The default value is false.
|
|
54726
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
54727
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
54728
|
+
# with an error code.
|
|
54729
|
+
# @param [String] fields
|
|
54730
|
+
# Selector specifying which fields to include in a partial response.
|
|
54731
|
+
# @param [String] quota_user
|
|
54732
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54733
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
54734
|
+
# @param [String] user_ip
|
|
54735
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
54736
|
+
# @param [Google::Apis::RequestOptions] options
|
|
54737
|
+
# Request-specific options
|
|
54738
|
+
#
|
|
54739
|
+
# @yield [result, err] Result & error if block supplied
|
|
54740
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RolloutsListResponse] parsed result object
|
|
54741
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
54742
|
+
#
|
|
54743
|
+
# @return [Google::Apis::ComputeAlpha::RolloutsListResponse]
|
|
54744
|
+
#
|
|
54745
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
54746
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
54747
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
54748
|
+
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)
|
|
54749
|
+
command = make_simple_command(:get, 'projects/{project}/global/rollouts', options)
|
|
54750
|
+
command.response_representation = Google::Apis::ComputeAlpha::RolloutsListResponse::Representation
|
|
54751
|
+
command.response_class = Google::Apis::ComputeAlpha::RolloutsListResponse
|
|
54752
|
+
command.params['project'] = project unless project.nil?
|
|
54753
|
+
command.query['filter'] = filter unless filter.nil?
|
|
54754
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
54755
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
54756
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
54757
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
54149
54758
|
command.query['fields'] = fields unless fields.nil?
|
|
54150
54759
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
54151
54760
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -60631,6 +61240,12 @@ module Google
|
|
|
60631
61240
|
# @param [Fixnum] service_project_number
|
|
60632
61241
|
# The Shared VPC service project id or service project number for which
|
|
60633
61242
|
# aggregated list request is invoked for subnetworks list-usable api.
|
|
61243
|
+
# @param [Array<String>, String] views
|
|
61244
|
+
# Defines the extra views returned back in the subnetwork resource.
|
|
61245
|
+
# Supported values:
|
|
61246
|
+
#
|
|
61247
|
+
# - WITH_UTILIZATION: Utilization data is included in the
|
|
61248
|
+
# response.
|
|
60634
61249
|
# @param [String] fields
|
|
60635
61250
|
# Selector specifying which fields to include in a partial response.
|
|
60636
61251
|
# @param [String] quota_user
|
|
@@ -60650,7 +61265,7 @@ module Google
|
|
|
60650
61265
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
60651
61266
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
60652
61267
|
# @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)
|
|
61268
|
+
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
61269
|
command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options)
|
|
60655
61270
|
command.response_representation = Google::Apis::ComputeAlpha::SubnetworkAggregatedList::Representation
|
|
60656
61271
|
command.response_class = Google::Apis::ComputeAlpha::SubnetworkAggregatedList
|
|
@@ -60662,6 +61277,7 @@ module Google
|
|
|
60662
61277
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
60663
61278
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
60664
61279
|
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
61280
|
+
command.query['views'] = views unless views.nil?
|
|
60665
61281
|
command.query['fields'] = fields unless fields.nil?
|
|
60666
61282
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
60667
61283
|
command.query['userIp'] = user_ip unless user_ip.nil?
|