google-apis-compute_beta 0.110.0 → 0.111.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_beta/classes.rb +478 -0
- data/lib/google/apis/compute_beta/gem_version.rb +2 -2
- data/lib/google/apis/compute_beta/representations.rb +224 -0
- data/lib/google/apis/compute_beta/service.rb +1130 -247
- metadata +3 -3
@@ -1675,6 +1675,97 @@ module Google
|
|
1675
1675
|
execute_or_queue_command(command, &block)
|
1676
1676
|
end
|
1677
1677
|
|
1678
|
+
# Retrieves a list of all usable backend buckets in the specified project.
|
1679
|
+
# @param [String] project
|
1680
|
+
# Project ID for this request.
|
1681
|
+
# @param [String] filter
|
1682
|
+
# A filter expression that filters resources listed in the response. Most
|
1683
|
+
# Compute resources support two types of filter expressions: expressions that
|
1684
|
+
# support regular expressions and expressions that follow API improvement
|
1685
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
1686
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
1687
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
1688
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
1689
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
1690
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
1691
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
1692
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
1693
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
1694
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
1695
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
1696
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
1697
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
1698
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
1699
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
1700
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
1701
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
1702
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
1703
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
1704
|
+
# un-parenthesized expression with or without quotes or against multiple
|
1705
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
1706
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
1707
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
1708
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
1709
|
+
# literal value must match the entire field. For example, to filter for
|
1710
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
1711
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
1712
|
+
# expressions.
|
1713
|
+
# @param [Fixnum] max_results
|
1714
|
+
# The maximum number of results per page that should be returned. If the number
|
1715
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1716
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1717
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1718
|
+
# @param [String] order_by
|
1719
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1720
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1721
|
+
# descending order based on the creation timestamp using `orderBy="
|
1722
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1723
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1724
|
+
# resources like operations so that the newest operation is returned first.
|
1725
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1726
|
+
# @param [String] page_token
|
1727
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1728
|
+
# by a previous list request to get the next page of results.
|
1729
|
+
# @param [Boolean] return_partial_success
|
1730
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
1731
|
+
# failure. The default value is false. For example, when partial success
|
1732
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
1733
|
+
# resources in the zone or no resources, with an error code.
|
1734
|
+
# @param [String] fields
|
1735
|
+
# Selector specifying which fields to include in a partial response.
|
1736
|
+
# @param [String] quota_user
|
1737
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1738
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1739
|
+
# @param [String] user_ip
|
1740
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1741
|
+
# @param [Google::Apis::RequestOptions] options
|
1742
|
+
# Request-specific options
|
1743
|
+
#
|
1744
|
+
# @yield [result, err] Result & error if block supplied
|
1745
|
+
# @yieldparam result [Google::Apis::ComputeBeta::BackendBucketListUsable] parsed result object
|
1746
|
+
# @yieldparam err [StandardError] error object if request failed
|
1747
|
+
#
|
1748
|
+
# @return [Google::Apis::ComputeBeta::BackendBucketListUsable]
|
1749
|
+
#
|
1750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1753
|
+
def list_backend_bucket_usable(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)
|
1754
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/listUsable', options)
|
1755
|
+
command.response_representation = Google::Apis::ComputeBeta::BackendBucketListUsable::Representation
|
1756
|
+
command.response_class = Google::Apis::ComputeBeta::BackendBucketListUsable
|
1757
|
+
command.params['project'] = project unless project.nil?
|
1758
|
+
command.query['filter'] = filter unless filter.nil?
|
1759
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1760
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1761
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1762
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
1763
|
+
command.query['fields'] = fields unless fields.nil?
|
1764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1765
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1766
|
+
execute_or_queue_command(command, &block)
|
1767
|
+
end
|
1768
|
+
|
1678
1769
|
# Updates the specified BackendBucket resource with the data included in the
|
1679
1770
|
# request. This method supports PATCH semantics and uses the JSON merge patch
|
1680
1771
|
# format and processing rules.
|
@@ -3118,73 +3209,11 @@ module Google
|
|
3118
3209
|
execute_or_queue_command(command, &block)
|
3119
3210
|
end
|
3120
3211
|
|
3121
|
-
#
|
3122
|
-
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
3212
|
+
# Get Zonal Disk Settings.
|
3123
3213
|
# @param [String] project
|
3124
3214
|
# Project ID for this request.
|
3125
|
-
# @param [String]
|
3126
|
-
#
|
3127
|
-
# Compute resources support two types of filter expressions: expressions that
|
3128
|
-
# support regular expressions and expressions that follow API improvement
|
3129
|
-
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
3130
|
-
# request. If you want to use AIP-160, your expression must specify the field
|
3131
|
-
# name, an operator, and the value that you want to use for filtering. The value
|
3132
|
-
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
3133
|
-
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
3134
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
3135
|
-
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
3136
|
-
# whether a key has been defined. For example, to find all objects with `owner`
|
3137
|
-
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
3138
|
-
# example, you could specify `scheduling.automaticRestart = false` to include
|
3139
|
-
# instances only if they are not scheduled for automatic restarts. You can use
|
3140
|
-
# filtering on nested fields to filter based on resource labels. To filter on
|
3141
|
-
# multiple expressions, provide each separate expression within parentheses. For
|
3142
|
-
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
3143
|
-
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
3144
|
-
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
3145
|
-
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
3146
|
-
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
3147
|
-
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
3148
|
-
# un-parenthesized expression with or without quotes or against multiple
|
3149
|
-
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
3150
|
-
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
3151
|
-
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
3152
|
-
# interpreted as a regular expression using Google RE2 library syntax. The
|
3153
|
-
# literal value must match the entire field. For example, to filter for
|
3154
|
-
# instances that do not end with name "instance", you would use `name ne .*
|
3155
|
-
# instance`. You cannot combine constraints on multiple fields using regular
|
3156
|
-
# expressions.
|
3157
|
-
# @param [Boolean] include_all_scopes
|
3158
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
3159
|
-
# global) should be included in the response. For new resource types added after
|
3160
|
-
# this field, the flag has no effect as new resource types will always include
|
3161
|
-
# every visible scope for each scope type in response. For resource types which
|
3162
|
-
# predate this field, if this flag is omitted or false, only scopes of the scope
|
3163
|
-
# types where the resource type is expected to be found will be included.
|
3164
|
-
# @param [Fixnum] max_results
|
3165
|
-
# The maximum number of results per page that should be returned. If the number
|
3166
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
3167
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
3168
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
3169
|
-
# @param [String] order_by
|
3170
|
-
# Sorts list results by a certain order. By default, results are returned in
|
3171
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
3172
|
-
# descending order based on the creation timestamp using `orderBy="
|
3173
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
3174
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
3175
|
-
# resources like operations so that the newest operation is returned first.
|
3176
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
3177
|
-
# @param [String] page_token
|
3178
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
3179
|
-
# by a previous list request to get the next page of results.
|
3180
|
-
# @param [Boolean] return_partial_success
|
3181
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
3182
|
-
# failure. The default value is false. For example, when partial success
|
3183
|
-
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
3184
|
-
# resources in the zone or no resources, with an error code.
|
3185
|
-
# @param [Fixnum] service_project_number
|
3186
|
-
# The Shared VPC service project id or service project number for which
|
3187
|
-
# aggregated list request is invoked for subnetworks list-usable api.
|
3215
|
+
# @param [String] zone
|
3216
|
+
# Name of the zone for this request.
|
3188
3217
|
# @param [String] fields
|
3189
3218
|
# Selector specifying which fields to include in a partial response.
|
3190
3219
|
# @param [String] quota_user
|
@@ -3196,39 +3225,44 @@ module Google
|
|
3196
3225
|
# Request-specific options
|
3197
3226
|
#
|
3198
3227
|
# @yield [result, err] Result & error if block supplied
|
3199
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
3228
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskSettings] parsed result object
|
3200
3229
|
# @yieldparam err [StandardError] error object if request failed
|
3201
3230
|
#
|
3202
|
-
# @return [Google::Apis::ComputeBeta::
|
3231
|
+
# @return [Google::Apis::ComputeBeta::DiskSettings]
|
3203
3232
|
#
|
3204
3233
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3205
3234
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3206
3235
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3207
|
-
def
|
3208
|
-
command = make_simple_command(:get, 'projects/{project}/
|
3209
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
3210
|
-
command.response_class = Google::Apis::ComputeBeta::
|
3236
|
+
def get_disk_setting(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3237
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskSettings', options)
|
3238
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
3239
|
+
command.response_class = Google::Apis::ComputeBeta::DiskSettings
|
3211
3240
|
command.params['project'] = project unless project.nil?
|
3212
|
-
command.
|
3213
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
3214
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
3215
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
3216
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
3217
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
3218
|
-
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
3241
|
+
command.params['zone'] = zone unless zone.nil?
|
3219
3242
|
command.query['fields'] = fields unless fields.nil?
|
3220
3243
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3221
3244
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
3222
3245
|
execute_or_queue_command(command, &block)
|
3223
3246
|
end
|
3224
3247
|
|
3225
|
-
#
|
3248
|
+
# Patch Zonal Disk Settings
|
3226
3249
|
# @param [String] project
|
3227
3250
|
# Project ID for this request.
|
3228
3251
|
# @param [String] zone
|
3229
3252
|
# The name of the zone for this request.
|
3230
|
-
# @param [
|
3231
|
-
#
|
3253
|
+
# @param [Google::Apis::ComputeBeta::DiskSettings] disk_settings_object
|
3254
|
+
# @param [String] request_id
|
3255
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3256
|
+
# that if you must retry your request, the server will know to ignore the
|
3257
|
+
# request if it has already been completed. For example, consider a situation
|
3258
|
+
# where you make an initial request and the request times out. If you make the
|
3259
|
+
# request again with the same request ID, the server can check if original
|
3260
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3261
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3262
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3263
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3264
|
+
# @param [String] update_mask
|
3265
|
+
# update_mask indicates fields to be updated as part of this request.
|
3232
3266
|
# @param [String] fields
|
3233
3267
|
# Selector specifying which fields to include in a partial response.
|
3234
3268
|
# @param [String] quota_user
|
@@ -3240,32 +3274,34 @@ module Google
|
|
3240
3274
|
# Request-specific options
|
3241
3275
|
#
|
3242
3276
|
# @yield [result, err] Result & error if block supplied
|
3243
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
3277
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
3244
3278
|
# @yieldparam err [StandardError] error object if request failed
|
3245
3279
|
#
|
3246
|
-
# @return [Google::Apis::ComputeBeta::
|
3280
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
3247
3281
|
#
|
3248
3282
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3249
3283
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3250
3284
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3251
|
-
def
|
3252
|
-
command = make_simple_command(:
|
3253
|
-
command.
|
3254
|
-
command.
|
3285
|
+
def patch_disk_setting(project, zone, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3286
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/diskSettings', options)
|
3287
|
+
command.request_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
3288
|
+
command.request_object = disk_settings_object
|
3289
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
3290
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
3255
3291
|
command.params['project'] = project unless project.nil?
|
3256
3292
|
command.params['zone'] = zone unless zone.nil?
|
3257
|
-
command.
|
3293
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3294
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3258
3295
|
command.query['fields'] = fields unless fields.nil?
|
3259
3296
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3260
3297
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
3261
3298
|
execute_or_queue_command(command, &block)
|
3262
3299
|
end
|
3263
3300
|
|
3264
|
-
# Retrieves
|
3301
|
+
# Retrieves an aggregated list of disk types. To prevent failure, Google
|
3302
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
3265
3303
|
# @param [String] project
|
3266
3304
|
# Project ID for this request.
|
3267
|
-
# @param [String] zone
|
3268
|
-
# The name of the zone for this request.
|
3269
3305
|
# @param [String] filter
|
3270
3306
|
# A filter expression that filters resources listed in the response. Most
|
3271
3307
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -3298,6 +3334,13 @@ module Google
|
|
3298
3334
|
# instances that do not end with name "instance", you would use `name ne .*
|
3299
3335
|
# instance`. You cannot combine constraints on multiple fields using regular
|
3300
3336
|
# expressions.
|
3337
|
+
# @param [Boolean] include_all_scopes
|
3338
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
3339
|
+
# global) should be included in the response. For new resource types added after
|
3340
|
+
# this field, the flag has no effect as new resource types will always include
|
3341
|
+
# every visible scope for each scope type in response. For resource types which
|
3342
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
3343
|
+
# types where the resource type is expected to be found will be included.
|
3301
3344
|
# @param [Fixnum] max_results
|
3302
3345
|
# The maximum number of results per page that should be returned. If the number
|
3303
3346
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
@@ -3319,6 +3362,9 @@ module Google
|
|
3319
3362
|
# failure. The default value is false. For example, when partial success
|
3320
3363
|
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
3321
3364
|
# resources in the zone or no resources, with an error code.
|
3365
|
+
# @param [Fixnum] service_project_number
|
3366
|
+
# The Shared VPC service project id or service project number for which
|
3367
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
3322
3368
|
# @param [String] fields
|
3323
3369
|
# Selector specifying which fields to include in a partial response.
|
3324
3370
|
# @param [String] quota_user
|
@@ -3330,50 +3376,39 @@ module Google
|
|
3330
3376
|
# Request-specific options
|
3331
3377
|
#
|
3332
3378
|
# @yield [result, err] Result & error if block supplied
|
3333
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
3379
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskTypeAggregatedList] parsed result object
|
3334
3380
|
# @yieldparam err [StandardError] error object if request failed
|
3335
3381
|
#
|
3336
|
-
# @return [Google::Apis::ComputeBeta::
|
3382
|
+
# @return [Google::Apis::ComputeBeta::DiskTypeAggregatedList]
|
3337
3383
|
#
|
3338
3384
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3339
3385
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3340
3386
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3341
|
-
def
|
3342
|
-
command = make_simple_command(:get, 'projects/{project}/
|
3343
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
3344
|
-
command.response_class = Google::Apis::ComputeBeta::
|
3387
|
+
def list_aggregated_disk_types(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)
|
3388
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/diskTypes', options)
|
3389
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskTypeAggregatedList::Representation
|
3390
|
+
command.response_class = Google::Apis::ComputeBeta::DiskTypeAggregatedList
|
3345
3391
|
command.params['project'] = project unless project.nil?
|
3346
|
-
command.params['zone'] = zone unless zone.nil?
|
3347
3392
|
command.query['filter'] = filter unless filter.nil?
|
3393
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
3348
3394
|
command.query['maxResults'] = max_results unless max_results.nil?
|
3349
3395
|
command.query['orderBy'] = order_by unless order_by.nil?
|
3350
3396
|
command.query['pageToken'] = page_token unless page_token.nil?
|
3351
3397
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
3398
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
3352
3399
|
command.query['fields'] = fields unless fields.nil?
|
3353
3400
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3354
3401
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
3355
3402
|
execute_or_queue_command(command, &block)
|
3356
3403
|
end
|
3357
3404
|
|
3358
|
-
#
|
3359
|
-
# will be applied to this disk for scheduling snapshot creation.
|
3405
|
+
# Returns the specified disk type.
|
3360
3406
|
# @param [String] project
|
3361
3407
|
# Project ID for this request.
|
3362
3408
|
# @param [String] zone
|
3363
3409
|
# The name of the zone for this request.
|
3364
|
-
# @param [String]
|
3365
|
-
#
|
3366
|
-
# @param [Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object
|
3367
|
-
# @param [String] request_id
|
3368
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
3369
|
-
# that if you must retry your request, the server will know to ignore the
|
3370
|
-
# request if it has already been completed. For example, consider a situation
|
3371
|
-
# where you make an initial request and the request times out. If you make the
|
3372
|
-
# request again with the same request ID, the server can check if original
|
3373
|
-
# operation with the same request ID was received, and if so, will ignore the
|
3374
|
-
# second request. This prevents clients from accidentally creating duplicate
|
3375
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
3376
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3410
|
+
# @param [String] disk_type
|
3411
|
+
# Name of the disk type to return.
|
3377
3412
|
# @param [String] fields
|
3378
3413
|
# Selector specifying which fields to include in a partial response.
|
3379
3414
|
# @param [String] quota_user
|
@@ -3385,32 +3420,177 @@ module Google
|
|
3385
3420
|
# Request-specific options
|
3386
3421
|
#
|
3387
3422
|
# @yield [result, err] Result & error if block supplied
|
3388
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
3423
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskType] parsed result object
|
3389
3424
|
# @yieldparam err [StandardError] error object if request failed
|
3390
3425
|
#
|
3391
|
-
# @return [Google::Apis::ComputeBeta::
|
3426
|
+
# @return [Google::Apis::ComputeBeta::DiskType]
|
3392
3427
|
#
|
3393
3428
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3394
3429
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3395
3430
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3396
|
-
def
|
3397
|
-
command = make_simple_command(:
|
3398
|
-
command.
|
3399
|
-
command.
|
3400
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
3401
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
3431
|
+
def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3432
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes/{diskType}', options)
|
3433
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskType::Representation
|
3434
|
+
command.response_class = Google::Apis::ComputeBeta::DiskType
|
3402
3435
|
command.params['project'] = project unless project.nil?
|
3403
3436
|
command.params['zone'] = zone unless zone.nil?
|
3404
|
-
command.params['
|
3405
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
3437
|
+
command.params['diskType'] = disk_type unless disk_type.nil?
|
3406
3438
|
command.query['fields'] = fields unless fields.nil?
|
3407
3439
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3408
3440
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
3409
3441
|
execute_or_queue_command(command, &block)
|
3410
3442
|
end
|
3411
3443
|
|
3412
|
-
# Retrieves
|
3413
|
-
#
|
3444
|
+
# Retrieves a list of disk types available to the specified project.
|
3445
|
+
# @param [String] project
|
3446
|
+
# Project ID for this request.
|
3447
|
+
# @param [String] zone
|
3448
|
+
# The name of the zone for this request.
|
3449
|
+
# @param [String] filter
|
3450
|
+
# A filter expression that filters resources listed in the response. Most
|
3451
|
+
# Compute resources support two types of filter expressions: expressions that
|
3452
|
+
# support regular expressions and expressions that follow API improvement
|
3453
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
3454
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
3455
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
3456
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
3457
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
3458
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
3459
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
3460
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
3461
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
3462
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
3463
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
3464
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
3465
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
3466
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
3467
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
3468
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
3469
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
3470
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
3471
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
3472
|
+
# un-parenthesized expression with or without quotes or against multiple
|
3473
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
3474
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
3475
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
3476
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
3477
|
+
# literal value must match the entire field. For example, to filter for
|
3478
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
3479
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
3480
|
+
# expressions.
|
3481
|
+
# @param [Fixnum] max_results
|
3482
|
+
# The maximum number of results per page that should be returned. If the number
|
3483
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
3484
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
3485
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
3486
|
+
# @param [String] order_by
|
3487
|
+
# Sorts list results by a certain order. By default, results are returned in
|
3488
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
3489
|
+
# descending order based on the creation timestamp using `orderBy="
|
3490
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
3491
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
3492
|
+
# resources like operations so that the newest operation is returned first.
|
3493
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
3494
|
+
# @param [String] page_token
|
3495
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
3496
|
+
# by a previous list request to get the next page of results.
|
3497
|
+
# @param [Boolean] return_partial_success
|
3498
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
3499
|
+
# failure. The default value is false. For example, when partial success
|
3500
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
3501
|
+
# resources in the zone or no resources, with an error code.
|
3502
|
+
# @param [String] fields
|
3503
|
+
# Selector specifying which fields to include in a partial response.
|
3504
|
+
# @param [String] quota_user
|
3505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3507
|
+
# @param [String] user_ip
|
3508
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3509
|
+
# @param [Google::Apis::RequestOptions] options
|
3510
|
+
# Request-specific options
|
3511
|
+
#
|
3512
|
+
# @yield [result, err] Result & error if block supplied
|
3513
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskTypeList] parsed result object
|
3514
|
+
# @yieldparam err [StandardError] error object if request failed
|
3515
|
+
#
|
3516
|
+
# @return [Google::Apis::ComputeBeta::DiskTypeList]
|
3517
|
+
#
|
3518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3521
|
+
def list_disk_types(project, zone, 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)
|
3522
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes', options)
|
3523
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskTypeList::Representation
|
3524
|
+
command.response_class = Google::Apis::ComputeBeta::DiskTypeList
|
3525
|
+
command.params['project'] = project unless project.nil?
|
3526
|
+
command.params['zone'] = zone unless zone.nil?
|
3527
|
+
command.query['filter'] = filter unless filter.nil?
|
3528
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
3529
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3530
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3531
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
3532
|
+
command.query['fields'] = fields unless fields.nil?
|
3533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3534
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3535
|
+
execute_or_queue_command(command, &block)
|
3536
|
+
end
|
3537
|
+
|
3538
|
+
# Adds existing resource policies to a disk. You can only add one policy which
|
3539
|
+
# will be applied to this disk for scheduling snapshot creation.
|
3540
|
+
# @param [String] project
|
3541
|
+
# Project ID for this request.
|
3542
|
+
# @param [String] zone
|
3543
|
+
# The name of the zone for this request.
|
3544
|
+
# @param [String] disk
|
3545
|
+
# The disk name for this request.
|
3546
|
+
# @param [Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object
|
3547
|
+
# @param [String] request_id
|
3548
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3549
|
+
# that if you must retry your request, the server will know to ignore the
|
3550
|
+
# request if it has already been completed. For example, consider a situation
|
3551
|
+
# where you make an initial request and the request times out. If you make the
|
3552
|
+
# request again with the same request ID, the server can check if original
|
3553
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3554
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3555
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3556
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3557
|
+
# @param [String] fields
|
3558
|
+
# Selector specifying which fields to include in a partial response.
|
3559
|
+
# @param [String] quota_user
|
3560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3562
|
+
# @param [String] user_ip
|
3563
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3564
|
+
# @param [Google::Apis::RequestOptions] options
|
3565
|
+
# Request-specific options
|
3566
|
+
#
|
3567
|
+
# @yield [result, err] Result & error if block supplied
|
3568
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
3569
|
+
# @yieldparam err [StandardError] error object if request failed
|
3570
|
+
#
|
3571
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
3572
|
+
#
|
3573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3576
|
+
def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3577
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options)
|
3578
|
+
command.request_representation = Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest::Representation
|
3579
|
+
command.request_object = disks_add_resource_policies_request_object
|
3580
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
3581
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
3582
|
+
command.params['project'] = project unless project.nil?
|
3583
|
+
command.params['zone'] = zone unless zone.nil?
|
3584
|
+
command.params['disk'] = disk unless disk.nil?
|
3585
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3586
|
+
command.query['fields'] = fields unless fields.nil?
|
3587
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3588
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3589
|
+
execute_or_queue_command(command, &block)
|
3590
|
+
end
|
3591
|
+
|
3592
|
+
# Retrieves an aggregated list of persistent disks. To prevent failure, Google
|
3593
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
3414
3594
|
# @param [String] project
|
3415
3595
|
# Project ID for this request.
|
3416
3596
|
# @param [String] filter
|
@@ -29180,6 +29360,95 @@ module Google
|
|
29180
29360
|
execute_or_queue_command(command, &block)
|
29181
29361
|
end
|
29182
29362
|
|
29363
|
+
# Get Regional Disk Settings.
|
29364
|
+
# @param [String] project
|
29365
|
+
# Project ID for this request.
|
29366
|
+
# @param [String] region
|
29367
|
+
# Name of the region for this request.
|
29368
|
+
# @param [String] fields
|
29369
|
+
# Selector specifying which fields to include in a partial response.
|
29370
|
+
# @param [String] quota_user
|
29371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29373
|
+
# @param [String] user_ip
|
29374
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29375
|
+
# @param [Google::Apis::RequestOptions] options
|
29376
|
+
# Request-specific options
|
29377
|
+
#
|
29378
|
+
# @yield [result, err] Result & error if block supplied
|
29379
|
+
# @yieldparam result [Google::Apis::ComputeBeta::DiskSettings] parsed result object
|
29380
|
+
# @yieldparam err [StandardError] error object if request failed
|
29381
|
+
#
|
29382
|
+
# @return [Google::Apis::ComputeBeta::DiskSettings]
|
29383
|
+
#
|
29384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29387
|
+
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29388
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
29389
|
+
command.response_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
29390
|
+
command.response_class = Google::Apis::ComputeBeta::DiskSettings
|
29391
|
+
command.params['project'] = project unless project.nil?
|
29392
|
+
command.params['region'] = region unless region.nil?
|
29393
|
+
command.query['fields'] = fields unless fields.nil?
|
29394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29395
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29396
|
+
execute_or_queue_command(command, &block)
|
29397
|
+
end
|
29398
|
+
|
29399
|
+
# Patch Regional Disk Settings
|
29400
|
+
# @param [String] project
|
29401
|
+
# Project ID for this request.
|
29402
|
+
# @param [String] region
|
29403
|
+
# Name of the region for this request.
|
29404
|
+
# @param [Google::Apis::ComputeBeta::DiskSettings] disk_settings_object
|
29405
|
+
# @param [String] request_id
|
29406
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29407
|
+
# that if you must retry your request, the server will know to ignore the
|
29408
|
+
# request if it has already been completed. For example, consider a situation
|
29409
|
+
# where you make an initial request and the request times out. If you make the
|
29410
|
+
# request again with the same request ID, the server can check if original
|
29411
|
+
# operation with the same request ID was received, and if so, will ignore the
|
29412
|
+
# second request. This prevents clients from accidentally creating duplicate
|
29413
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
29414
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
29415
|
+
# @param [String] update_mask
|
29416
|
+
# update_mask indicates fields to be updated as part of this request.
|
29417
|
+
# @param [String] fields
|
29418
|
+
# Selector specifying which fields to include in a partial response.
|
29419
|
+
# @param [String] quota_user
|
29420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29422
|
+
# @param [String] user_ip
|
29423
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29424
|
+
# @param [Google::Apis::RequestOptions] options
|
29425
|
+
# Request-specific options
|
29426
|
+
#
|
29427
|
+
# @yield [result, err] Result & error if block supplied
|
29428
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
29429
|
+
# @yieldparam err [StandardError] error object if request failed
|
29430
|
+
#
|
29431
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
29432
|
+
#
|
29433
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29434
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29435
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29436
|
+
def patch_region_disk_setting(project, region, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29437
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
29438
|
+
command.request_representation = Google::Apis::ComputeBeta::DiskSettings::Representation
|
29439
|
+
command.request_object = disk_settings_object
|
29440
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29441
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
29442
|
+
command.params['project'] = project unless project.nil?
|
29443
|
+
command.params['region'] = region unless region.nil?
|
29444
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29445
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
29446
|
+
command.query['fields'] = fields unless fields.nil?
|
29447
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29448
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29449
|
+
execute_or_queue_command(command, &block)
|
29450
|
+
end
|
29451
|
+
|
29183
29452
|
# Returns the specified regional disk type.
|
29184
29453
|
# @param [String] project
|
29185
29454
|
# Project ID for this request.
|
@@ -36346,18 +36615,595 @@ module Google
|
|
36346
36615
|
# Request-specific options
|
36347
36616
|
#
|
36348
36617
|
# @yield [result, err] Result & error if block supplied
|
36349
|
-
# @yieldparam result [Google::Apis::ComputeBeta::SecurityPolicyList] parsed result object
|
36618
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SecurityPolicyList] parsed result object
|
36619
|
+
# @yieldparam err [StandardError] error object if request failed
|
36620
|
+
#
|
36621
|
+
# @return [Google::Apis::ComputeBeta::SecurityPolicyList]
|
36622
|
+
#
|
36623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36626
|
+
def list_region_security_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)
|
36627
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
|
36628
|
+
command.response_representation = Google::Apis::ComputeBeta::SecurityPolicyList::Representation
|
36629
|
+
command.response_class = Google::Apis::ComputeBeta::SecurityPolicyList
|
36630
|
+
command.params['project'] = project unless project.nil?
|
36631
|
+
command.params['region'] = region unless region.nil?
|
36632
|
+
command.query['filter'] = filter unless filter.nil?
|
36633
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
36634
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
36635
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
36636
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
36637
|
+
command.query['fields'] = fields unless fields.nil?
|
36638
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36639
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36640
|
+
execute_or_queue_command(command, &block)
|
36641
|
+
end
|
36642
|
+
|
36643
|
+
# Patches the specified policy with the data included in the request. To clear
|
36644
|
+
# fields in the policy, leave the fields empty and specify them in the
|
36645
|
+
# updateMask. This cannot be used to be update the rules in the policy. Please
|
36646
|
+
# use the per rule methods like addRule, patchRule, and removeRule instead.
|
36647
|
+
# @param [String] project
|
36648
|
+
# Project ID for this request.
|
36649
|
+
# @param [String] region
|
36650
|
+
# Name of the region scoping this request.
|
36651
|
+
# @param [String] security_policy
|
36652
|
+
# Name of the security policy to update.
|
36653
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
|
36654
|
+
# @param [String] request_id
|
36655
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36656
|
+
# that if you must retry your request, the server will know to ignore the
|
36657
|
+
# request if it has already been completed. For example, consider a situation
|
36658
|
+
# where you make an initial request and the request times out. If you make the
|
36659
|
+
# request again with the same request ID, the server can check if original
|
36660
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36661
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36662
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36663
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36664
|
+
# @param [String] update_mask
|
36665
|
+
# Indicates fields to be cleared as part of this request.
|
36666
|
+
# @param [String] fields
|
36667
|
+
# Selector specifying which fields to include in a partial response.
|
36668
|
+
# @param [String] quota_user
|
36669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36671
|
+
# @param [String] user_ip
|
36672
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36673
|
+
# @param [Google::Apis::RequestOptions] options
|
36674
|
+
# Request-specific options
|
36675
|
+
#
|
36676
|
+
# @yield [result, err] Result & error if block supplied
|
36677
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36678
|
+
# @yieldparam err [StandardError] error object if request failed
|
36679
|
+
#
|
36680
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36681
|
+
#
|
36682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36685
|
+
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36686
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
36687
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
|
36688
|
+
command.request_object = security_policy_object
|
36689
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36690
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36691
|
+
command.params['project'] = project unless project.nil?
|
36692
|
+
command.params['region'] = region unless region.nil?
|
36693
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
36694
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36695
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
36696
|
+
command.query['fields'] = fields unless fields.nil?
|
36697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36698
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36699
|
+
execute_or_queue_command(command, &block)
|
36700
|
+
end
|
36701
|
+
|
36702
|
+
# Patches a rule at the specified priority. To clear fields in the rule, leave
|
36703
|
+
# the fields empty and specify them in the updateMask.
|
36704
|
+
# @param [String] project
|
36705
|
+
# Project ID for this request.
|
36706
|
+
# @param [String] region
|
36707
|
+
# Name of the region scoping this request.
|
36708
|
+
# @param [String] security_policy
|
36709
|
+
# Name of the security policy to update.
|
36710
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
|
36711
|
+
# @param [Fixnum] priority
|
36712
|
+
# The priority of the rule to patch.
|
36713
|
+
# @param [String] update_mask
|
36714
|
+
# Indicates fields to be cleared as part of this request.
|
36715
|
+
# @param [Boolean] validate_only
|
36716
|
+
# If true, the request will not be committed.
|
36717
|
+
# @param [String] fields
|
36718
|
+
# Selector specifying which fields to include in a partial response.
|
36719
|
+
# @param [String] quota_user
|
36720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36722
|
+
# @param [String] user_ip
|
36723
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36724
|
+
# @param [Google::Apis::RequestOptions] options
|
36725
|
+
# Request-specific options
|
36726
|
+
#
|
36727
|
+
# @yield [result, err] Result & error if block supplied
|
36728
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36729
|
+
# @yieldparam err [StandardError] error object if request failed
|
36730
|
+
#
|
36731
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36732
|
+
#
|
36733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36736
|
+
def patch_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, priority: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36737
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
|
36738
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
|
36739
|
+
command.request_object = security_policy_rule_object
|
36740
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36741
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36742
|
+
command.params['project'] = project unless project.nil?
|
36743
|
+
command.params['region'] = region unless region.nil?
|
36744
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
36745
|
+
command.query['priority'] = priority unless priority.nil?
|
36746
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
36747
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
36748
|
+
command.query['fields'] = fields unless fields.nil?
|
36749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36750
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36751
|
+
execute_or_queue_command(command, &block)
|
36752
|
+
end
|
36753
|
+
|
36754
|
+
# Deletes a rule at the specified priority.
|
36755
|
+
# @param [String] project
|
36756
|
+
# Project ID for this request.
|
36757
|
+
# @param [String] region
|
36758
|
+
# Name of the region scoping this request.
|
36759
|
+
# @param [String] security_policy
|
36760
|
+
# Name of the security policy to update.
|
36761
|
+
# @param [Fixnum] priority
|
36762
|
+
# The priority of the rule to remove from the security policy.
|
36763
|
+
# @param [String] fields
|
36764
|
+
# Selector specifying which fields to include in a partial response.
|
36765
|
+
# @param [String] quota_user
|
36766
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36767
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36768
|
+
# @param [String] user_ip
|
36769
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36770
|
+
# @param [Google::Apis::RequestOptions] options
|
36771
|
+
# Request-specific options
|
36772
|
+
#
|
36773
|
+
# @yield [result, err] Result & error if block supplied
|
36774
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36775
|
+
# @yieldparam err [StandardError] error object if request failed
|
36776
|
+
#
|
36777
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36778
|
+
#
|
36779
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36780
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36781
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36782
|
+
def remove_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36783
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule', options)
|
36784
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36785
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36786
|
+
command.params['project'] = project unless project.nil?
|
36787
|
+
command.params['region'] = region unless region.nil?
|
36788
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
36789
|
+
command.query['priority'] = priority unless priority.nil?
|
36790
|
+
command.query['fields'] = fields unless fields.nil?
|
36791
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36792
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36793
|
+
execute_or_queue_command(command, &block)
|
36794
|
+
end
|
36795
|
+
|
36796
|
+
# Sets the labels on a security policy. To learn more about labels, read the
|
36797
|
+
# Labeling Resources documentation.
|
36798
|
+
# @param [String] project
|
36799
|
+
# Project ID for this request.
|
36800
|
+
# @param [String] region
|
36801
|
+
# The region for this request.
|
36802
|
+
# @param [String] resource
|
36803
|
+
# Name or id of the resource for this request.
|
36804
|
+
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
36805
|
+
# @param [String] request_id
|
36806
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36807
|
+
# that if you must retry your request, the server will know to ignore the
|
36808
|
+
# request if it has already been completed. For example, consider a situation
|
36809
|
+
# where you make an initial request and the request times out. If you make the
|
36810
|
+
# request again with the same request ID, the server can check if original
|
36811
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36812
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36813
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36814
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36815
|
+
# @param [String] fields
|
36816
|
+
# Selector specifying which fields to include in a partial response.
|
36817
|
+
# @param [String] quota_user
|
36818
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36819
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36820
|
+
# @param [String] user_ip
|
36821
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36822
|
+
# @param [Google::Apis::RequestOptions] options
|
36823
|
+
# Request-specific options
|
36824
|
+
#
|
36825
|
+
# @yield [result, err] Result & error if block supplied
|
36826
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36827
|
+
# @yieldparam err [StandardError] error object if request failed
|
36828
|
+
#
|
36829
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36830
|
+
#
|
36831
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36832
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36833
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36834
|
+
def set_region_security_policy_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36835
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
|
36836
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
36837
|
+
command.request_object = region_set_labels_request_object
|
36838
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36839
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36840
|
+
command.params['project'] = project unless project.nil?
|
36841
|
+
command.params['region'] = region unless region.nil?
|
36842
|
+
command.params['resource'] = resource unless resource.nil?
|
36843
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36844
|
+
command.query['fields'] = fields unless fields.nil?
|
36845
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36846
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36847
|
+
execute_or_queue_command(command, &block)
|
36848
|
+
end
|
36849
|
+
|
36850
|
+
# Get region snapshot settings.
|
36851
|
+
# @param [String] project
|
36852
|
+
# Project ID for this request.
|
36853
|
+
# @param [String] region
|
36854
|
+
# Name of the region for this request.
|
36855
|
+
# @param [String] fields
|
36856
|
+
# Selector specifying which fields to include in a partial response.
|
36857
|
+
# @param [String] quota_user
|
36858
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36859
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36860
|
+
# @param [String] user_ip
|
36861
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36862
|
+
# @param [Google::Apis::RequestOptions] options
|
36863
|
+
# Request-specific options
|
36864
|
+
#
|
36865
|
+
# @yield [result, err] Result & error if block supplied
|
36866
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotSettings] parsed result object
|
36867
|
+
# @yieldparam err [StandardError] error object if request failed
|
36868
|
+
#
|
36869
|
+
# @return [Google::Apis::ComputeBeta::SnapshotSettings]
|
36870
|
+
#
|
36871
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36872
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36873
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36874
|
+
def get_region_snapshot_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36875
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshotSettings', options)
|
36876
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotSettings::Representation
|
36877
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotSettings
|
36878
|
+
command.params['project'] = project unless project.nil?
|
36879
|
+
command.params['region'] = region unless region.nil?
|
36880
|
+
command.query['fields'] = fields unless fields.nil?
|
36881
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36882
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36883
|
+
execute_or_queue_command(command, &block)
|
36884
|
+
end
|
36885
|
+
|
36886
|
+
# Patch region snapshot settings.
|
36887
|
+
# @param [String] project
|
36888
|
+
# Project ID for this request.
|
36889
|
+
# @param [String] region
|
36890
|
+
# Name of the region for this request.
|
36891
|
+
# @param [Google::Apis::ComputeBeta::SnapshotSettings] snapshot_settings_object
|
36892
|
+
# @param [String] request_id
|
36893
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36894
|
+
# that if you must retry your request, the server will know to ignore the
|
36895
|
+
# request if it has already been completed. For example, consider a situation
|
36896
|
+
# where you make an initial request and the request times out. If you make the
|
36897
|
+
# request again with the same request ID, the server can check if original
|
36898
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36899
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36900
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36901
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36902
|
+
# @param [String] update_mask
|
36903
|
+
# update_mask indicates fields to be updated as part of this request.
|
36904
|
+
# @param [String] fields
|
36905
|
+
# Selector specifying which fields to include in a partial response.
|
36906
|
+
# @param [String] quota_user
|
36907
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36908
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36909
|
+
# @param [String] user_ip
|
36910
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36911
|
+
# @param [Google::Apis::RequestOptions] options
|
36912
|
+
# Request-specific options
|
36913
|
+
#
|
36914
|
+
# @yield [result, err] Result & error if block supplied
|
36915
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36916
|
+
# @yieldparam err [StandardError] error object if request failed
|
36917
|
+
#
|
36918
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36919
|
+
#
|
36920
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36921
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36922
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36923
|
+
def patch_region_snapshot_setting(project, region, snapshot_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36924
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/snapshotSettings', options)
|
36925
|
+
command.request_representation = Google::Apis::ComputeBeta::SnapshotSettings::Representation
|
36926
|
+
command.request_object = snapshot_settings_object
|
36927
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36928
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36929
|
+
command.params['project'] = project unless project.nil?
|
36930
|
+
command.params['region'] = region unless region.nil?
|
36931
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36932
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
36933
|
+
command.query['fields'] = fields unless fields.nil?
|
36934
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36935
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36936
|
+
execute_or_queue_command(command, &block)
|
36937
|
+
end
|
36938
|
+
|
36939
|
+
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
36940
|
+
# snapshot might not necessarily delete all the data on that snapshot. If any
|
36941
|
+
# data on the snapshot that is marked for deletion is needed for subsequent
|
36942
|
+
# snapshots, the data will be moved to the next corresponding snapshot. For more
|
36943
|
+
# information, see Deleting snapshots.
|
36944
|
+
# @param [String] project
|
36945
|
+
# Project ID for this request.
|
36946
|
+
# @param [String] region
|
36947
|
+
# The name of the region for this request.
|
36948
|
+
# @param [String] snapshot
|
36949
|
+
# Name of the snapshot resource to delete.
|
36950
|
+
# @param [String] request_id
|
36951
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36952
|
+
# that if you must retry your request, the server will know to ignore the
|
36953
|
+
# request if it has already been completed. For example, consider a situation
|
36954
|
+
# where you make an initial request and the request times out. If you make the
|
36955
|
+
# request again with the same request ID, the server can check if original
|
36956
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36957
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36958
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36959
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36960
|
+
# @param [String] fields
|
36961
|
+
# Selector specifying which fields to include in a partial response.
|
36962
|
+
# @param [String] quota_user
|
36963
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36964
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36965
|
+
# @param [String] user_ip
|
36966
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36967
|
+
# @param [Google::Apis::RequestOptions] options
|
36968
|
+
# Request-specific options
|
36969
|
+
#
|
36970
|
+
# @yield [result, err] Result & error if block supplied
|
36971
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36972
|
+
# @yieldparam err [StandardError] error object if request failed
|
36973
|
+
#
|
36974
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
36975
|
+
#
|
36976
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36977
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36978
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36979
|
+
def delete_region_snapshot(project, region, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36980
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/snapshots/{snapshot}', options)
|
36981
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36982
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
36983
|
+
command.params['project'] = project unless project.nil?
|
36984
|
+
command.params['region'] = region unless region.nil?
|
36985
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
36986
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36987
|
+
command.query['fields'] = fields unless fields.nil?
|
36988
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36989
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36990
|
+
execute_or_queue_command(command, &block)
|
36991
|
+
end
|
36992
|
+
|
36993
|
+
# Returns the specified Snapshot resource.
|
36994
|
+
# @param [String] project
|
36995
|
+
# Project ID for this request.
|
36996
|
+
# @param [String] region
|
36997
|
+
# Name of the region for this request.
|
36998
|
+
# @param [String] snapshot
|
36999
|
+
# Name of the Snapshot resource to return.
|
37000
|
+
# @param [String] fields
|
37001
|
+
# Selector specifying which fields to include in a partial response.
|
37002
|
+
# @param [String] quota_user
|
37003
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37004
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37005
|
+
# @param [String] user_ip
|
37006
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37007
|
+
# @param [Google::Apis::RequestOptions] options
|
37008
|
+
# Request-specific options
|
37009
|
+
#
|
37010
|
+
# @yield [result, err] Result & error if block supplied
|
37011
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Snapshot] parsed result object
|
37012
|
+
# @yieldparam err [StandardError] error object if request failed
|
37013
|
+
#
|
37014
|
+
# @return [Google::Apis::ComputeBeta::Snapshot]
|
37015
|
+
#
|
37016
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37017
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37018
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37019
|
+
def get_region_snapshot(project, region, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37020
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshots/{snapshot}', options)
|
37021
|
+
command.response_representation = Google::Apis::ComputeBeta::Snapshot::Representation
|
37022
|
+
command.response_class = Google::Apis::ComputeBeta::Snapshot
|
37023
|
+
command.params['project'] = project unless project.nil?
|
37024
|
+
command.params['region'] = region unless region.nil?
|
37025
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
37026
|
+
command.query['fields'] = fields unless fields.nil?
|
37027
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37028
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37029
|
+
execute_or_queue_command(command, &block)
|
37030
|
+
end
|
37031
|
+
|
37032
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
37033
|
+
# or resource exists.
|
37034
|
+
# @param [String] project
|
37035
|
+
# Project ID for this request.
|
37036
|
+
# @param [String] region
|
37037
|
+
# The name of the region for this request.
|
37038
|
+
# @param [String] resource
|
37039
|
+
# Name or id of the resource for this request.
|
37040
|
+
# @param [Fixnum] options_requested_policy_version
|
37041
|
+
# Requested IAM Policy version.
|
37042
|
+
# @param [String] fields
|
37043
|
+
# Selector specifying which fields to include in a partial response.
|
37044
|
+
# @param [String] quota_user
|
37045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37047
|
+
# @param [String] user_ip
|
37048
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37049
|
+
# @param [Google::Apis::RequestOptions] options
|
37050
|
+
# Request-specific options
|
37051
|
+
#
|
37052
|
+
# @yield [result, err] Result & error if block supplied
|
37053
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
37054
|
+
# @yieldparam err [StandardError] error object if request failed
|
37055
|
+
#
|
37056
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
37057
|
+
#
|
37058
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37059
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37060
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37061
|
+
def get_region_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37062
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy', options)
|
37063
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
37064
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
37065
|
+
command.params['project'] = project unless project.nil?
|
37066
|
+
command.params['region'] = region unless region.nil?
|
37067
|
+
command.params['resource'] = resource unless resource.nil?
|
37068
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
37069
|
+
command.query['fields'] = fields unless fields.nil?
|
37070
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37071
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37072
|
+
execute_or_queue_command(command, &block)
|
37073
|
+
end
|
37074
|
+
|
37075
|
+
# Creates a snapshot in the specified region using the data included in the
|
37076
|
+
# request.
|
37077
|
+
# @param [String] project
|
37078
|
+
# Project ID for this request.
|
37079
|
+
# @param [String] region
|
37080
|
+
# Name of the region for this request.
|
37081
|
+
# @param [Google::Apis::ComputeBeta::Snapshot] snapshot_object
|
37082
|
+
# @param [String] request_id
|
37083
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37084
|
+
# that if you must retry your request, the server will know to ignore the
|
37085
|
+
# request if it has already been completed. For example, consider a situation
|
37086
|
+
# where you make an initial request and the request times out. If you make the
|
37087
|
+
# request again with the same request ID, the server can check if original
|
37088
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37089
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37090
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37091
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37092
|
+
# @param [String] fields
|
37093
|
+
# Selector specifying which fields to include in a partial response.
|
37094
|
+
# @param [String] quota_user
|
37095
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37096
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37097
|
+
# @param [String] user_ip
|
37098
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37099
|
+
# @param [Google::Apis::RequestOptions] options
|
37100
|
+
# Request-specific options
|
37101
|
+
#
|
37102
|
+
# @yield [result, err] Result & error if block supplied
|
37103
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
37104
|
+
# @yieldparam err [StandardError] error object if request failed
|
37105
|
+
#
|
37106
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
37107
|
+
#
|
37108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37111
|
+
def insert_region_snapshot(project, region, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37112
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots', options)
|
37113
|
+
command.request_representation = Google::Apis::ComputeBeta::Snapshot::Representation
|
37114
|
+
command.request_object = snapshot_object
|
37115
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
37116
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
37117
|
+
command.params['project'] = project unless project.nil?
|
37118
|
+
command.params['region'] = region unless region.nil?
|
37119
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37120
|
+
command.query['fields'] = fields unless fields.nil?
|
37121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37122
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37123
|
+
execute_or_queue_command(command, &block)
|
37124
|
+
end
|
37125
|
+
|
37126
|
+
# Retrieves the list of Snapshot resources contained within the specified region.
|
37127
|
+
# @param [String] project
|
37128
|
+
# Project ID for this request.
|
37129
|
+
# @param [String] region
|
37130
|
+
# Name of the region for this request.
|
37131
|
+
# @param [String] filter
|
37132
|
+
# A filter expression that filters resources listed in the response. Most
|
37133
|
+
# Compute resources support two types of filter expressions: expressions that
|
37134
|
+
# support regular expressions and expressions that follow API improvement
|
37135
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
37136
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
37137
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
37138
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
37139
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
37140
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
37141
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
37142
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
37143
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
37144
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
37145
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
37146
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
37147
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
37148
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
37149
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
37150
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
37151
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
37152
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
37153
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
37154
|
+
# un-parenthesized expression with or without quotes or against multiple
|
37155
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
37156
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
37157
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
37158
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
37159
|
+
# literal value must match the entire field. For example, to filter for
|
37160
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
37161
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
37162
|
+
# expressions.
|
37163
|
+
# @param [Fixnum] max_results
|
37164
|
+
# The maximum number of results per page that should be returned. If the number
|
37165
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
37166
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
37167
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
37168
|
+
# @param [String] order_by
|
37169
|
+
# Sorts list results by a certain order. By default, results are returned in
|
37170
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
37171
|
+
# descending order based on the creation timestamp using `orderBy="
|
37172
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
37173
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
37174
|
+
# resources like operations so that the newest operation is returned first.
|
37175
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
37176
|
+
# @param [String] page_token
|
37177
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
37178
|
+
# by a previous list request to get the next page of results.
|
37179
|
+
# @param [Boolean] return_partial_success
|
37180
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
37181
|
+
# failure. The default value is false. For example, when partial success
|
37182
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
37183
|
+
# resources in the zone or no resources, with an error code.
|
37184
|
+
# @param [String] fields
|
37185
|
+
# Selector specifying which fields to include in a partial response.
|
37186
|
+
# @param [String] quota_user
|
37187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37189
|
+
# @param [String] user_ip
|
37190
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37191
|
+
# @param [Google::Apis::RequestOptions] options
|
37192
|
+
# Request-specific options
|
37193
|
+
#
|
37194
|
+
# @yield [result, err] Result & error if block supplied
|
37195
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotList] parsed result object
|
36350
37196
|
# @yieldparam err [StandardError] error object if request failed
|
36351
37197
|
#
|
36352
|
-
# @return [Google::Apis::ComputeBeta::
|
37198
|
+
# @return [Google::Apis::ComputeBeta::SnapshotList]
|
36353
37199
|
#
|
36354
37200
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36355
37201
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36356
37202
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36357
|
-
def
|
36358
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
36359
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
36360
|
-
command.response_class = Google::Apis::ComputeBeta::
|
37203
|
+
def list_region_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)
|
37204
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/snapshots', options)
|
37205
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotList::Representation
|
37206
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotList
|
36361
37207
|
command.params['project'] = project unless project.nil?
|
36362
37208
|
command.params['region'] = region unless region.nil?
|
36363
37209
|
command.query['filter'] = filter unless filter.nil?
|
@@ -36371,80 +37217,15 @@ module Google
|
|
36371
37217
|
execute_or_queue_command(command, &block)
|
36372
37218
|
end
|
36373
37219
|
|
36374
|
-
#
|
36375
|
-
#
|
36376
|
-
# updateMask. This cannot be used to be update the rules in the policy. Please
|
36377
|
-
# use the per rule methods like addRule, patchRule, and removeRule instead.
|
36378
|
-
# @param [String] project
|
36379
|
-
# Project ID for this request.
|
36380
|
-
# @param [String] region
|
36381
|
-
# Name of the region scoping this request.
|
36382
|
-
# @param [String] security_policy
|
36383
|
-
# Name of the security policy to update.
|
36384
|
-
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
|
36385
|
-
# @param [String] request_id
|
36386
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
36387
|
-
# that if you must retry your request, the server will know to ignore the
|
36388
|
-
# request if it has already been completed. For example, consider a situation
|
36389
|
-
# where you make an initial request and the request times out. If you make the
|
36390
|
-
# request again with the same request ID, the server can check if original
|
36391
|
-
# operation with the same request ID was received, and if so, will ignore the
|
36392
|
-
# second request. This prevents clients from accidentally creating duplicate
|
36393
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
36394
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36395
|
-
# @param [String] update_mask
|
36396
|
-
# Indicates fields to be cleared as part of this request.
|
36397
|
-
# @param [String] fields
|
36398
|
-
# Selector specifying which fields to include in a partial response.
|
36399
|
-
# @param [String] quota_user
|
36400
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
36401
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36402
|
-
# @param [String] user_ip
|
36403
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36404
|
-
# @param [Google::Apis::RequestOptions] options
|
36405
|
-
# Request-specific options
|
36406
|
-
#
|
36407
|
-
# @yield [result, err] Result & error if block supplied
|
36408
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
36409
|
-
# @yieldparam err [StandardError] error object if request failed
|
36410
|
-
#
|
36411
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
36412
|
-
#
|
36413
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36414
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36415
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36416
|
-
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36417
|
-
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
36418
|
-
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
|
36419
|
-
command.request_object = security_policy_object
|
36420
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36421
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
36422
|
-
command.params['project'] = project unless project.nil?
|
36423
|
-
command.params['region'] = region unless region.nil?
|
36424
|
-
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
36425
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
36426
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
36427
|
-
command.query['fields'] = fields unless fields.nil?
|
36428
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36429
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
36430
|
-
execute_or_queue_command(command, &block)
|
36431
|
-
end
|
36432
|
-
|
36433
|
-
# Patches a rule at the specified priority. To clear fields in the rule, leave
|
36434
|
-
# the fields empty and specify them in the updateMask.
|
37220
|
+
# Sets the access control policy on the specified resource. Replaces any
|
37221
|
+
# existing policy.
|
36435
37222
|
# @param [String] project
|
36436
37223
|
# Project ID for this request.
|
36437
37224
|
# @param [String] region
|
36438
|
-
#
|
36439
|
-
# @param [String]
|
36440
|
-
# Name of the
|
36441
|
-
# @param [Google::Apis::ComputeBeta::
|
36442
|
-
# @param [Fixnum] priority
|
36443
|
-
# The priority of the rule to patch.
|
36444
|
-
# @param [String] update_mask
|
36445
|
-
# Indicates fields to be cleared as part of this request.
|
36446
|
-
# @param [Boolean] validate_only
|
36447
|
-
# If true, the request will not be committed.
|
37225
|
+
# The name of the region for this request.
|
37226
|
+
# @param [String] resource
|
37227
|
+
# Name or id of the resource for this request.
|
37228
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
36448
37229
|
# @param [String] fields
|
36449
37230
|
# Selector specifying which fields to include in a partial response.
|
36450
37231
|
# @param [String] quota_user
|
@@ -36456,41 +37237,48 @@ module Google
|
|
36456
37237
|
# Request-specific options
|
36457
37238
|
#
|
36458
37239
|
# @yield [result, err] Result & error if block supplied
|
36459
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
37240
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
36460
37241
|
# @yieldparam err [StandardError] error object if request failed
|
36461
37242
|
#
|
36462
|
-
# @return [Google::Apis::ComputeBeta::
|
37243
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
36463
37244
|
#
|
36464
37245
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36465
37246
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36466
37247
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36467
|
-
def
|
36468
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
36469
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
36470
|
-
command.request_object =
|
36471
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
36472
|
-
command.response_class = Google::Apis::ComputeBeta::
|
37248
|
+
def set_region_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37249
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy', options)
|
37250
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
37251
|
+
command.request_object = region_set_policy_request_object
|
37252
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
37253
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
36473
37254
|
command.params['project'] = project unless project.nil?
|
36474
37255
|
command.params['region'] = region unless region.nil?
|
36475
|
-
command.params['
|
36476
|
-
command.query['priority'] = priority unless priority.nil?
|
36477
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
36478
|
-
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
37256
|
+
command.params['resource'] = resource unless resource.nil?
|
36479
37257
|
command.query['fields'] = fields unless fields.nil?
|
36480
37258
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36481
37259
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
36482
37260
|
execute_or_queue_command(command, &block)
|
36483
37261
|
end
|
36484
37262
|
|
36485
|
-
#
|
37263
|
+
# Sets the labels on a regional snapshot. To learn more about labels, read the
|
37264
|
+
# Labeling Resources documentation.
|
36486
37265
|
# @param [String] project
|
36487
37266
|
# Project ID for this request.
|
36488
37267
|
# @param [String] region
|
36489
|
-
#
|
36490
|
-
# @param [String]
|
36491
|
-
# Name of the
|
36492
|
-
# @param [
|
36493
|
-
#
|
37268
|
+
# The region for this request.
|
37269
|
+
# @param [String] resource
|
37270
|
+
# Name or id of the resource for this request.
|
37271
|
+
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
37272
|
+
# @param [String] request_id
|
37273
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37274
|
+
# that if you must retry your request, the server will know to ignore the
|
37275
|
+
# request if it has already been completed. For example, consider a situation
|
37276
|
+
# where you make an initial request and the request times out. If you make the
|
37277
|
+
# request again with the same request ID, the server can check if original
|
37278
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37279
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37280
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37281
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36494
37282
|
# @param [String] fields
|
36495
37283
|
# Selector specifying which fields to include in a partial response.
|
36496
37284
|
# @param [String] quota_user
|
@@ -36510,39 +37298,30 @@ module Google
|
|
36510
37298
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36511
37299
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36512
37300
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36513
|
-
def
|
36514
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
37301
|
+
def set_region_snapshot_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37302
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{resource}/setLabels', options)
|
37303
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
37304
|
+
command.request_object = region_set_labels_request_object
|
36515
37305
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
36516
37306
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
36517
37307
|
command.params['project'] = project unless project.nil?
|
36518
37308
|
command.params['region'] = region unless region.nil?
|
36519
|
-
command.params['
|
36520
|
-
command.query['
|
37309
|
+
command.params['resource'] = resource unless resource.nil?
|
37310
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36521
37311
|
command.query['fields'] = fields unless fields.nil?
|
36522
37312
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36523
37313
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
36524
37314
|
execute_or_queue_command(command, &block)
|
36525
37315
|
end
|
36526
37316
|
|
36527
|
-
#
|
36528
|
-
# Labeling Resources documentation.
|
37317
|
+
# Returns permissions that a caller has on the specified resource.
|
36529
37318
|
# @param [String] project
|
36530
37319
|
# Project ID for this request.
|
36531
37320
|
# @param [String] region
|
36532
|
-
# The region for this request.
|
37321
|
+
# The name of the region for this request.
|
36533
37322
|
# @param [String] resource
|
36534
37323
|
# Name or id of the resource for this request.
|
36535
|
-
# @param [Google::Apis::ComputeBeta::
|
36536
|
-
# @param [String] request_id
|
36537
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
36538
|
-
# that if you must retry your request, the server will know to ignore the
|
36539
|
-
# request if it has already been completed. For example, consider a situation
|
36540
|
-
# where you make an initial request and the request times out. If you make the
|
36541
|
-
# request again with the same request ID, the server can check if original
|
36542
|
-
# operation with the same request ID was received, and if so, will ignore the
|
36543
|
-
# second request. This prevents clients from accidentally creating duplicate
|
36544
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
36545
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37324
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
36546
37325
|
# @param [String] fields
|
36547
37326
|
# Selector specifying which fields to include in a partial response.
|
36548
37327
|
# @param [String] quota_user
|
@@ -36554,24 +37333,23 @@ module Google
|
|
36554
37333
|
# Request-specific options
|
36555
37334
|
#
|
36556
37335
|
# @yield [result, err] Result & error if block supplied
|
36557
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
37336
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
36558
37337
|
# @yieldparam err [StandardError] error object if request failed
|
36559
37338
|
#
|
36560
|
-
# @return [Google::Apis::ComputeBeta::
|
37339
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
36561
37340
|
#
|
36562
37341
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36563
37342
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36564
37343
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36565
|
-
def
|
36566
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
36567
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
36568
|
-
command.request_object =
|
36569
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
36570
|
-
command.response_class = Google::Apis::ComputeBeta::
|
37344
|
+
def test_region_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37345
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions', options)
|
37346
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
37347
|
+
command.request_object = test_permissions_request_object
|
37348
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
37349
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
36571
37350
|
command.params['project'] = project unless project.nil?
|
36572
37351
|
command.params['region'] = region unless region.nil?
|
36573
37352
|
command.params['resource'] = resource unless resource.nil?
|
36574
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
36575
37353
|
command.query['fields'] = fields unless fields.nil?
|
36576
37354
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36577
37355
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -43102,6 +43880,111 @@ module Google
|
|
43102
43880
|
execute_or_queue_command(command, &block)
|
43103
43881
|
end
|
43104
43882
|
|
43883
|
+
# Retrieves an aggregated list of all of the snapshots in your project across
|
43884
|
+
# all regions and global scope. To prevent failure, Google recommends that you
|
43885
|
+
# set the `returnPartialSuccess` parameter to `true`.
|
43886
|
+
# @param [String] project
|
43887
|
+
# Project ID for this request.
|
43888
|
+
# @param [String] filter
|
43889
|
+
# A filter expression that filters resources listed in the response. Most
|
43890
|
+
# Compute resources support two types of filter expressions: expressions that
|
43891
|
+
# support regular expressions and expressions that follow API improvement
|
43892
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
43893
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
43894
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
43895
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
43896
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
43897
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
43898
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
43899
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
43900
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
43901
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
43902
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
43903
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
43904
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
43905
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
43906
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
43907
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
43908
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
43909
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
43910
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
43911
|
+
# un-parenthesized expression with or without quotes or against multiple
|
43912
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
43913
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
43914
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
43915
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
43916
|
+
# literal value must match the entire field. For example, to filter for
|
43917
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
43918
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
43919
|
+
# expressions.
|
43920
|
+
# @param [Boolean] include_all_scopes
|
43921
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
43922
|
+
# global) should be included in the response. For new resource types added after
|
43923
|
+
# this field, the flag has no effect as new resource types will always include
|
43924
|
+
# every visible scope for each scope type in response. For resource types which
|
43925
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
43926
|
+
# types where the resource type is expected to be found will be included.
|
43927
|
+
# @param [Fixnum] max_results
|
43928
|
+
# The maximum number of results per page that should be returned. If the number
|
43929
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
43930
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
43931
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
43932
|
+
# @param [String] order_by
|
43933
|
+
# Sorts list results by a certain order. By default, results are returned in
|
43934
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
43935
|
+
# descending order based on the creation timestamp using `orderBy="
|
43936
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
43937
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
43938
|
+
# resources like operations so that the newest operation is returned first.
|
43939
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
43940
|
+
# @param [String] page_token
|
43941
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
43942
|
+
# by a previous list request to get the next page of results.
|
43943
|
+
# @param [Boolean] return_partial_success
|
43944
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
43945
|
+
# failure. The default value is false. For example, when partial success
|
43946
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
43947
|
+
# resources in the zone or no resources, with an error code.
|
43948
|
+
# @param [Fixnum] service_project_number
|
43949
|
+
# The Shared VPC service project id or service project number for which
|
43950
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
43951
|
+
# @param [String] fields
|
43952
|
+
# Selector specifying which fields to include in a partial response.
|
43953
|
+
# @param [String] quota_user
|
43954
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43955
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43956
|
+
# @param [String] user_ip
|
43957
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
43958
|
+
# @param [Google::Apis::RequestOptions] options
|
43959
|
+
# Request-specific options
|
43960
|
+
#
|
43961
|
+
# @yield [result, err] Result & error if block supplied
|
43962
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SnapshotAggregatedList] parsed result object
|
43963
|
+
# @yieldparam err [StandardError] error object if request failed
|
43964
|
+
#
|
43965
|
+
# @return [Google::Apis::ComputeBeta::SnapshotAggregatedList]
|
43966
|
+
#
|
43967
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
43968
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
43969
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
43970
|
+
def aggregated_snapshot_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)
|
43971
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/snapshots', options)
|
43972
|
+
command.response_representation = Google::Apis::ComputeBeta::SnapshotAggregatedList::Representation
|
43973
|
+
command.response_class = Google::Apis::ComputeBeta::SnapshotAggregatedList
|
43974
|
+
command.params['project'] = project unless project.nil?
|
43975
|
+
command.query['filter'] = filter unless filter.nil?
|
43976
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
43977
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
43978
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
43979
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
43980
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
43981
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
43982
|
+
command.query['fields'] = fields unless fields.nil?
|
43983
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
43984
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
43985
|
+
execute_or_queue_command(command, &block)
|
43986
|
+
end
|
43987
|
+
|
43105
43988
|
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
43106
43989
|
# snapshot might not necessarily delete all the data on that snapshot. If any
|
43107
43990
|
# data on the snapshot that is marked for deletion is needed for subsequent
|