google-apis-compute_alpha 0.50.0 → 0.52.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 +10 -0
- data/lib/google/apis/compute_alpha/classes.rb +952 -210
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +263 -18
- data/lib/google/apis/compute_alpha/service.rb +211 -6
- metadata +5 -5
@@ -2995,6 +2995,56 @@ module Google
|
|
2995
2995
|
execute_or_queue_command(command, &block)
|
2996
2996
|
end
|
2997
2997
|
|
2998
|
+
# Bulk create a set of disks.
|
2999
|
+
# @param [String] project
|
3000
|
+
# Project ID for this request.
|
3001
|
+
# @param [String] zone
|
3002
|
+
# The name of the zone for this request.
|
3003
|
+
# @param [Google::Apis::ComputeAlpha::BulkInsertDiskResource] bulk_insert_disk_resource_object
|
3004
|
+
# @param [String] request_id
|
3005
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3006
|
+
# that if you must retry your request, the server will know to ignore the
|
3007
|
+
# request if it has already been completed. For example, consider a situation
|
3008
|
+
# where you make an initial request and the request times out. If you make the
|
3009
|
+
# request again with the same request ID, the server can check if original
|
3010
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3011
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3012
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3013
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3014
|
+
# @param [String] fields
|
3015
|
+
# Selector specifying which fields to include in a partial response.
|
3016
|
+
# @param [String] quota_user
|
3017
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3018
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3019
|
+
# @param [String] user_ip
|
3020
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3021
|
+
# @param [Google::Apis::RequestOptions] options
|
3022
|
+
# Request-specific options
|
3023
|
+
#
|
3024
|
+
# @yield [result, err] Result & error if block supplied
|
3025
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3026
|
+
# @yieldparam err [StandardError] error object if request failed
|
3027
|
+
#
|
3028
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3029
|
+
#
|
3030
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3031
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3032
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3033
|
+
def bulk_disk_insert(project, zone, bulk_insert_disk_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3034
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/bulkInsert', options)
|
3035
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertDiskResource::Representation
|
3036
|
+
command.request_object = bulk_insert_disk_resource_object
|
3037
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3038
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3039
|
+
command.params['project'] = project unless project.nil?
|
3040
|
+
command.params['zone'] = zone unless zone.nil?
|
3041
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3042
|
+
command.query['fields'] = fields unless fields.nil?
|
3043
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3044
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3045
|
+
execute_or_queue_command(command, &block)
|
3046
|
+
end
|
3047
|
+
|
2998
3048
|
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
2999
3049
|
# creation, consider using snapshots.insert instead, as that method supports
|
3000
3050
|
# more features, such as creating snapshots in a project different from the
|
@@ -27537,6 +27587,56 @@ module Google
|
|
27537
27587
|
execute_or_queue_command(command, &block)
|
27538
27588
|
end
|
27539
27589
|
|
27590
|
+
# Bulk create a set of disks.
|
27591
|
+
# @param [String] project
|
27592
|
+
# Project ID for this request.
|
27593
|
+
# @param [String] region
|
27594
|
+
# The name of the region for this request.
|
27595
|
+
# @param [Google::Apis::ComputeAlpha::BulkInsertDiskResource] bulk_insert_disk_resource_object
|
27596
|
+
# @param [String] request_id
|
27597
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27598
|
+
# that if you must retry your request, the server will know to ignore the
|
27599
|
+
# request if it has already been completed. For example, consider a situation
|
27600
|
+
# where you make an initial request and the request times out. If you make the
|
27601
|
+
# request again with the same request ID, the server can check if original
|
27602
|
+
# operation with the same request ID was received, and if so, will ignore the
|
27603
|
+
# second request. This prevents clients from accidentally creating duplicate
|
27604
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
27605
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
27606
|
+
# @param [String] fields
|
27607
|
+
# Selector specifying which fields to include in a partial response.
|
27608
|
+
# @param [String] quota_user
|
27609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
27610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
27611
|
+
# @param [String] user_ip
|
27612
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
27613
|
+
# @param [Google::Apis::RequestOptions] options
|
27614
|
+
# Request-specific options
|
27615
|
+
#
|
27616
|
+
# @yield [result, err] Result & error if block supplied
|
27617
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27618
|
+
# @yieldparam err [StandardError] error object if request failed
|
27619
|
+
#
|
27620
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27621
|
+
#
|
27622
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27623
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27624
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27625
|
+
def bulk_region_disk_insert(project, region, bulk_insert_disk_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27626
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/bulkInsert', options)
|
27627
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertDiskResource::Representation
|
27628
|
+
command.request_object = bulk_insert_disk_resource_object
|
27629
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27630
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27631
|
+
command.params['project'] = project unless project.nil?
|
27632
|
+
command.params['region'] = region unless region.nil?
|
27633
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27634
|
+
command.query['fields'] = fields unless fields.nil?
|
27635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27636
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27637
|
+
execute_or_queue_command(command, &block)
|
27638
|
+
end
|
27639
|
+
|
27540
27640
|
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
27541
27641
|
# creation, consider using snapshots.insert instead, as that method supports
|
27542
27642
|
# more features, such as creating snapshots in a project different from the
|
@@ -33942,7 +34042,10 @@ module Google
|
|
33942
34042
|
execute_or_queue_command(command, &block)
|
33943
34043
|
end
|
33944
34044
|
|
33945
|
-
# Patches the specified policy with the data included in the request.
|
34045
|
+
# Patches the specified policy with the data included in the request. To clear
|
34046
|
+
# fields in the rule, leave the fields empty and specify them in the updateMask.
|
34047
|
+
# This cannot be used to be update the rules in the policy. Please use the per
|
34048
|
+
# rule methods like addRule, patchRule, and removeRule instead.
|
33946
34049
|
# @param [String] project
|
33947
34050
|
# Project ID for this request.
|
33948
34051
|
# @param [String] region
|
@@ -34000,7 +34103,8 @@ module Google
|
|
34000
34103
|
execute_or_queue_command(command, &block)
|
34001
34104
|
end
|
34002
34105
|
|
34003
|
-
# Patches a rule at the specified priority.
|
34106
|
+
# Patches a rule at the specified priority. To clear fields in the rule, leave
|
34107
|
+
# the fields empty and specify them in the updateMask.
|
34004
34108
|
# @param [String] project
|
34005
34109
|
# Project ID for this request.
|
34006
34110
|
# @param [String] region
|
@@ -34010,6 +34114,8 @@ module Google
|
|
34010
34114
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
34011
34115
|
# @param [Fixnum] priority
|
34012
34116
|
# The priority of the rule to patch.
|
34117
|
+
# @param [String] update_mask
|
34118
|
+
# Indicates fields to be cleared as part of this request.
|
34013
34119
|
# @param [Boolean] validate_only
|
34014
34120
|
# If true, the request will not be committed.
|
34015
34121
|
# @param [String] fields
|
@@ -34031,7 +34137,7 @@ module Google
|
|
34031
34137
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34032
34138
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34033
34139
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34034
|
-
def patch_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34140
|
+
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)
|
34035
34141
|
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
|
34036
34142
|
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
34037
34143
|
command.request_object = security_policy_rule_object
|
@@ -34041,6 +34147,7 @@ module Google
|
|
34041
34147
|
command.params['region'] = region unless region.nil?
|
34042
34148
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
34043
34149
|
command.query['priority'] = priority unless priority.nil?
|
34150
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
34044
34151
|
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
34045
34152
|
command.query['fields'] = fields unless fields.nil?
|
34046
34153
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -38839,9 +38946,10 @@ module Google
|
|
38839
38946
|
execute_or_queue_command(command, &block)
|
38840
38947
|
end
|
38841
38948
|
|
38842
|
-
# Patches the specified policy with the data included in the request.
|
38843
|
-
#
|
38844
|
-
#
|
38949
|
+
# Patches the specified policy with the data included in the request. To clear
|
38950
|
+
# fields in the rule, leave the fields empty and specify them in the updateMask.
|
38951
|
+
# This cannot be used to be update the rules in the policy. Please use the per
|
38952
|
+
# rule methods like addRule, patchRule, and removeRule instead.
|
38845
38953
|
# @param [String] project
|
38846
38954
|
# Project ID for this request.
|
38847
38955
|
# @param [String] security_policy
|
@@ -44534,6 +44642,103 @@ module Google
|
|
44534
44642
|
execute_or_queue_command(command, &block)
|
44535
44643
|
end
|
44536
44644
|
|
44645
|
+
# Retrieves the list of all TargetTcpProxy resources, regional and global,
|
44646
|
+
# available to the specified project.
|
44647
|
+
# @param [String] project
|
44648
|
+
# Name of the project scoping this request.
|
44649
|
+
# @param [String] filter
|
44650
|
+
# A filter expression that filters resources listed in the response. Most
|
44651
|
+
# Compute resources support two types of filter expressions: expressions that
|
44652
|
+
# support regular expressions and expressions that follow API improvement
|
44653
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
44654
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
44655
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
44656
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
44657
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
44658
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
44659
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
44660
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
44661
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
44662
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
44663
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
44664
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
44665
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
44666
|
+
# provide each separate expression within parentheses. For example: ``` (
|
44667
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
44668
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
44669
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
44670
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
44671
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
44672
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
44673
|
+
# expression with or without quotes or against multiple parenthesized
|
44674
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
44675
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
44676
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
44677
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
44678
|
+
# match the entire field. For example, to filter for instances that do not end
|
44679
|
+
# with name "instance", you would use `name ne .*instance`.
|
44680
|
+
# @param [Boolean] include_all_scopes
|
44681
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
44682
|
+
# global) should be included in the response. For new resource types added after
|
44683
|
+
# this field, the flag has no effect as new resource types will always include
|
44684
|
+
# every visible scope for each scope type in response. For resource types which
|
44685
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
44686
|
+
# types where the resource type is expected to be found will be included.
|
44687
|
+
# @param [Fixnum] max_results
|
44688
|
+
# The maximum number of results per page that should be returned. If the number
|
44689
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
44690
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
44691
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
44692
|
+
# @param [String] order_by
|
44693
|
+
# Sorts list results by a certain order. By default, results are returned in
|
44694
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
44695
|
+
# descending order based on the creation timestamp using `orderBy="
|
44696
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
44697
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
44698
|
+
# resources like operations so that the newest operation is returned first.
|
44699
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
44700
|
+
# @param [String] page_token
|
44701
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
44702
|
+
# by a previous list request to get the next page of results.
|
44703
|
+
# @param [Boolean] return_partial_success
|
44704
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
44705
|
+
# failure. The default value is false.
|
44706
|
+
# @param [String] fields
|
44707
|
+
# Selector specifying which fields to include in a partial response.
|
44708
|
+
# @param [String] quota_user
|
44709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44711
|
+
# @param [String] user_ip
|
44712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44713
|
+
# @param [Google::Apis::RequestOptions] options
|
44714
|
+
# Request-specific options
|
44715
|
+
#
|
44716
|
+
# @yield [result, err] Result & error if block supplied
|
44717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxyAggregatedList] parsed result object
|
44718
|
+
# @yieldparam err [StandardError] error object if request failed
|
44719
|
+
#
|
44720
|
+
# @return [Google::Apis::ComputeAlpha::TargetTcpProxyAggregatedList]
|
44721
|
+
#
|
44722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44725
|
+
def aggregated_target_tcp_proxy_list(project, filter: nil, include_all_scopes: 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)
|
44726
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/targetTcpProxies', options)
|
44727
|
+
command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxyAggregatedList::Representation
|
44728
|
+
command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxyAggregatedList
|
44729
|
+
command.params['project'] = project unless project.nil?
|
44730
|
+
command.query['filter'] = filter unless filter.nil?
|
44731
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
44732
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
44733
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
44734
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
44735
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
44736
|
+
command.query['fields'] = fields unless fields.nil?
|
44737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44738
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44739
|
+
execute_or_queue_command(command, &block)
|
44740
|
+
end
|
44741
|
+
|
44537
44742
|
# Deletes the specified TargetTcpProxy resource.
|
44538
44743
|
# @param [String] project
|
44539
44744
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.52.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|