google-apis-compute_beta 0.67.0 → 0.69.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_beta/classes.rb +896 -167
- data/lib/google/apis/compute_beta/gem_version.rb +2 -2
- data/lib/google/apis/compute_beta/representations.rb +274 -0
- data/lib/google/apis/compute_beta/service.rb +2045 -1005
- metadata +3 -3
@@ -14868,7 +14868,7 @@ module Google
|
|
14868
14868
|
execute_or_queue_command(command, &block)
|
14869
14869
|
end
|
14870
14870
|
|
14871
|
-
# Retrieves an aggregated list of
|
14871
|
+
# Retrieves an aggregated list of instantSnapshots.
|
14872
14872
|
# @param [String] project
|
14873
14873
|
# Project ID for this request.
|
14874
14874
|
# @param [String] filter
|
@@ -14939,18 +14939,18 @@ module Google
|
|
14939
14939
|
# Request-specific options
|
14940
14940
|
#
|
14941
14941
|
# @yield [result, err] Result & error if block supplied
|
14942
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
14942
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstantSnapshotAggregatedList] parsed result object
|
14943
14943
|
# @yieldparam err [StandardError] error object if request failed
|
14944
14944
|
#
|
14945
|
-
# @return [Google::Apis::ComputeBeta::
|
14945
|
+
# @return [Google::Apis::ComputeBeta::InstantSnapshotAggregatedList]
|
14946
14946
|
#
|
14947
14947
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14948
14948
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14949
14949
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14950
|
-
def
|
14951
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/
|
14952
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
14953
|
-
command.response_class = Google::Apis::ComputeBeta::
|
14950
|
+
def aggregated_instant_snapshot_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)
|
14951
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/instantSnapshots', options)
|
14952
|
+
command.response_representation = Google::Apis::ComputeBeta::InstantSnapshotAggregatedList::Representation
|
14953
|
+
command.response_class = Google::Apis::ComputeBeta::InstantSnapshotAggregatedList
|
14954
14954
|
command.params['project'] = project unless project.nil?
|
14955
14955
|
command.query['filter'] = filter unless filter.nil?
|
14956
14956
|
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
@@ -14964,13 +14964,18 @@ module Google
|
|
14964
14964
|
execute_or_queue_command(command, &block)
|
14965
14965
|
end
|
14966
14966
|
|
14967
|
-
# Deletes the specified
|
14967
|
+
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
|
14968
|
+
# single instantSnapshot might not necessarily delete all the data on that
|
14969
|
+
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
14970
|
+
# deletion is needed for subsequent instantSnapshots, the data will be moved to
|
14971
|
+
# the next corresponding instantSnapshot. For more information, see Deleting
|
14972
|
+
# instantSnapshots.
|
14968
14973
|
# @param [String] project
|
14969
14974
|
# Project ID for this request.
|
14970
|
-
# @param [String]
|
14971
|
-
#
|
14972
|
-
# @param [String]
|
14973
|
-
# Name of the
|
14975
|
+
# @param [String] zone
|
14976
|
+
# The name of the zone for this request.
|
14977
|
+
# @param [String] instant_snapshot
|
14978
|
+
# Name of the InstantSnapshot resource to delete.
|
14974
14979
|
# @param [String] request_id
|
14975
14980
|
# An optional request ID to identify requests. Specify a unique request ID so
|
14976
14981
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15000,13 +15005,13 @@ module Google
|
|
15000
15005
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15001
15006
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15002
15007
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15003
|
-
def
|
15004
|
-
command = make_simple_command(:delete, 'projects/{project}/
|
15008
|
+
def delete_instant_snapshot(project, zone, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15009
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}', options)
|
15005
15010
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15006
15011
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15007
15012
|
command.params['project'] = project unless project.nil?
|
15008
|
-
command.params['
|
15009
|
-
command.params['
|
15013
|
+
command.params['zone'] = zone unless zone.nil?
|
15014
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
15010
15015
|
command.query['requestId'] = request_id unless request_id.nil?
|
15011
15016
|
command.query['fields'] = fields unless fields.nil?
|
15012
15017
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -15014,13 +15019,25 @@ module Google
|
|
15014
15019
|
execute_or_queue_command(command, &block)
|
15015
15020
|
end
|
15016
15021
|
|
15017
|
-
#
|
15022
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
15023
|
+
# in the user specified format.
|
15018
15024
|
# @param [String] project
|
15019
15025
|
# Project ID for this request.
|
15020
|
-
# @param [String]
|
15021
|
-
#
|
15022
|
-
# @param [String]
|
15023
|
-
# Name of the
|
15026
|
+
# @param [String] zone
|
15027
|
+
# The name of the zone for this request.
|
15028
|
+
# @param [String] instant_snapshot
|
15029
|
+
# Name of the instant snapshot to export.
|
15030
|
+
# @param [Google::Apis::ComputeBeta::InstantSnapshotsExportRequest] instant_snapshots_export_request_object
|
15031
|
+
# @param [String] request_id
|
15032
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
15033
|
+
# that if you must retry your request, the server will know to ignore the
|
15034
|
+
# request if it has already been completed. For example, consider a situation
|
15035
|
+
# where you make an initial request and the request times out. If you make the
|
15036
|
+
# request again with the same request ID, the server can check if original
|
15037
|
+
# operation with the same request ID was received, and if so, will ignore the
|
15038
|
+
# second request. This prevents clients from accidentally creating duplicate
|
15039
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
15040
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15024
15041
|
# @param [String] fields
|
15025
15042
|
# Selector specifying which fields to include in a partial response.
|
15026
15043
|
# @param [String] quota_user
|
@@ -15032,34 +15049,118 @@ module Google
|
|
15032
15049
|
# Request-specific options
|
15033
15050
|
#
|
15034
15051
|
# @yield [result, err] Result & error if block supplied
|
15035
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15052
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15036
15053
|
# @yieldparam err [StandardError] error object if request failed
|
15037
15054
|
#
|
15038
|
-
# @return [Google::Apis::ComputeBeta::
|
15055
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
15039
15056
|
#
|
15040
15057
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15041
15058
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15042
15059
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15043
|
-
def
|
15044
|
-
command = make_simple_command(:
|
15045
|
-
command.
|
15046
|
-
command.
|
15060
|
+
def export_instant_snapshot(project, zone, instant_snapshot, instant_snapshots_export_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15061
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export', options)
|
15062
|
+
command.request_representation = Google::Apis::ComputeBeta::InstantSnapshotsExportRequest::Representation
|
15063
|
+
command.request_object = instant_snapshots_export_request_object
|
15064
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15065
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
15047
15066
|
command.params['project'] = project unless project.nil?
|
15048
|
-
command.params['
|
15049
|
-
command.params['
|
15067
|
+
command.params['zone'] = zone unless zone.nil?
|
15068
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
15069
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
15050
15070
|
command.query['fields'] = fields unless fields.nil?
|
15051
15071
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15052
15072
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15053
15073
|
execute_or_queue_command(command, &block)
|
15054
15074
|
end
|
15055
15075
|
|
15056
|
-
#
|
15057
|
-
# included in the request.
|
15076
|
+
# Returns the specified InstantSnapshot resource in the specified zone.
|
15058
15077
|
# @param [String] project
|
15059
15078
|
# Project ID for this request.
|
15060
|
-
# @param [String]
|
15061
|
-
#
|
15062
|
-
# @param [
|
15079
|
+
# @param [String] zone
|
15080
|
+
# The name of the zone for this request.
|
15081
|
+
# @param [String] instant_snapshot
|
15082
|
+
# Name of the InstantSnapshot resource to return.
|
15083
|
+
# @param [String] fields
|
15084
|
+
# Selector specifying which fields to include in a partial response.
|
15085
|
+
# @param [String] quota_user
|
15086
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15087
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15088
|
+
# @param [String] user_ip
|
15089
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15090
|
+
# @param [Google::Apis::RequestOptions] options
|
15091
|
+
# Request-specific options
|
15092
|
+
#
|
15093
|
+
# @yield [result, err] Result & error if block supplied
|
15094
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstantSnapshot] parsed result object
|
15095
|
+
# @yieldparam err [StandardError] error object if request failed
|
15096
|
+
#
|
15097
|
+
# @return [Google::Apis::ComputeBeta::InstantSnapshot]
|
15098
|
+
#
|
15099
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15100
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15101
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15102
|
+
def get_instant_snapshot(project, zone, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15103
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}', options)
|
15104
|
+
command.response_representation = Google::Apis::ComputeBeta::InstantSnapshot::Representation
|
15105
|
+
command.response_class = Google::Apis::ComputeBeta::InstantSnapshot
|
15106
|
+
command.params['project'] = project unless project.nil?
|
15107
|
+
command.params['zone'] = zone unless zone.nil?
|
15108
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
15109
|
+
command.query['fields'] = fields unless fields.nil?
|
15110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15111
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15112
|
+
execute_or_queue_command(command, &block)
|
15113
|
+
end
|
15114
|
+
|
15115
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
15116
|
+
# or resource exists.
|
15117
|
+
# @param [String] project
|
15118
|
+
# Project ID for this request.
|
15119
|
+
# @param [String] zone
|
15120
|
+
# The name of the zone for this request.
|
15121
|
+
# @param [String] resource
|
15122
|
+
# Name or id of the resource for this request.
|
15123
|
+
# @param [Fixnum] options_requested_policy_version
|
15124
|
+
# Requested IAM Policy version.
|
15125
|
+
# @param [String] fields
|
15126
|
+
# Selector specifying which fields to include in a partial response.
|
15127
|
+
# @param [String] quota_user
|
15128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15130
|
+
# @param [String] user_ip
|
15131
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15132
|
+
# @param [Google::Apis::RequestOptions] options
|
15133
|
+
# Request-specific options
|
15134
|
+
#
|
15135
|
+
# @yield [result, err] Result & error if block supplied
|
15136
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
15137
|
+
# @yieldparam err [StandardError] error object if request failed
|
15138
|
+
#
|
15139
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
15140
|
+
#
|
15141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15144
|
+
def get_instant_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15145
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy', options)
|
15146
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
15147
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
15148
|
+
command.params['project'] = project unless project.nil?
|
15149
|
+
command.params['zone'] = zone unless zone.nil?
|
15150
|
+
command.params['resource'] = resource unless resource.nil?
|
15151
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
15152
|
+
command.query['fields'] = fields unless fields.nil?
|
15153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15154
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15155
|
+
execute_or_queue_command(command, &block)
|
15156
|
+
end
|
15157
|
+
|
15158
|
+
# Creates an instant snapshot in the specified zone.
|
15159
|
+
# @param [String] project
|
15160
|
+
# Project ID for this request.
|
15161
|
+
# @param [String] zone
|
15162
|
+
# Name of the zone for this request.
|
15163
|
+
# @param [Google::Apis::ComputeBeta::InstantSnapshot] instant_snapshot_object
|
15063
15164
|
# @param [String] request_id
|
15064
15165
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15065
15166
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15070,8 +15171,6 @@ module Google
|
|
15070
15171
|
# second request. This prevents clients from accidentally creating duplicate
|
15071
15172
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
15072
15173
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15073
|
-
# @param [Boolean] validate_only
|
15074
|
-
# If true, the request will not be committed.
|
15075
15174
|
# @param [String] fields
|
15076
15175
|
# Selector specifying which fields to include in a partial response.
|
15077
15176
|
# @param [String] quota_user
|
@@ -15091,28 +15190,27 @@ module Google
|
|
15091
15190
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15092
15191
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15093
15192
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15094
|
-
def
|
15095
|
-
command = make_simple_command(:post, 'projects/{project}/
|
15096
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15097
|
-
command.request_object =
|
15193
|
+
def insert_instant_snapshot(project, zone, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15194
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots', options)
|
15195
|
+
command.request_representation = Google::Apis::ComputeBeta::InstantSnapshot::Representation
|
15196
|
+
command.request_object = instant_snapshot_object
|
15098
15197
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15099
15198
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15100
15199
|
command.params['project'] = project unless project.nil?
|
15101
|
-
command.params['
|
15200
|
+
command.params['zone'] = zone unless zone.nil?
|
15102
15201
|
command.query['requestId'] = request_id unless request_id.nil?
|
15103
|
-
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
15104
15202
|
command.query['fields'] = fields unless fields.nil?
|
15105
15203
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15106
15204
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15107
15205
|
execute_or_queue_command(command, &block)
|
15108
15206
|
end
|
15109
15207
|
|
15110
|
-
# Retrieves the list of
|
15111
|
-
#
|
15208
|
+
# Retrieves the list of InstantSnapshot resources contained within the specified
|
15209
|
+
# zone.
|
15112
15210
|
# @param [String] project
|
15113
15211
|
# Project ID for this request.
|
15114
|
-
# @param [String]
|
15115
|
-
#
|
15212
|
+
# @param [String] zone
|
15213
|
+
# The name of the zone for this request.
|
15116
15214
|
# @param [String] filter
|
15117
15215
|
# A filter expression that filters resources listed in the response. Most
|
15118
15216
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -15174,20 +15272,20 @@ module Google
|
|
15174
15272
|
# Request-specific options
|
15175
15273
|
#
|
15176
15274
|
# @yield [result, err] Result & error if block supplied
|
15177
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15275
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstantSnapshotList] parsed result object
|
15178
15276
|
# @yieldparam err [StandardError] error object if request failed
|
15179
15277
|
#
|
15180
|
-
# @return [Google::Apis::ComputeBeta::
|
15278
|
+
# @return [Google::Apis::ComputeBeta::InstantSnapshotList]
|
15181
15279
|
#
|
15182
15280
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15183
15281
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15184
15282
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15185
|
-
def
|
15186
|
-
command = make_simple_command(:get, 'projects/{project}/
|
15187
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15188
|
-
command.response_class = Google::Apis::ComputeBeta::
|
15283
|
+
def list_instant_snapshots(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)
|
15284
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots', options)
|
15285
|
+
command.response_representation = Google::Apis::ComputeBeta::InstantSnapshotList::Representation
|
15286
|
+
command.response_class = Google::Apis::ComputeBeta::InstantSnapshotList
|
15189
15287
|
command.params['project'] = project unless project.nil?
|
15190
|
-
command.params['
|
15288
|
+
command.params['zone'] = zone unless zone.nil?
|
15191
15289
|
command.query['filter'] = filter unless filter.nil?
|
15192
15290
|
command.query['maxResults'] = max_results unless max_results.nil?
|
15193
15291
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -15199,26 +15297,15 @@ module Google
|
|
15199
15297
|
execute_or_queue_command(command, &block)
|
15200
15298
|
end
|
15201
15299
|
|
15202
|
-
#
|
15203
|
-
#
|
15204
|
-
# format and processing rules.
|
15300
|
+
# Sets the access control policy on the specified resource. Replaces any
|
15301
|
+
# existing policy.
|
15205
15302
|
# @param [String] project
|
15206
15303
|
# Project ID for this request.
|
15207
|
-
# @param [String]
|
15208
|
-
#
|
15209
|
-
# @param [String]
|
15210
|
-
# Name of the
|
15211
|
-
# @param [Google::Apis::ComputeBeta::
|
15212
|
-
# @param [String] request_id
|
15213
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15214
|
-
# that if you must retry your request, the server will know to ignore the
|
15215
|
-
# request if it has already been completed. For example, consider a situation
|
15216
|
-
# where you make an initial request and the request times out. If you make the
|
15217
|
-
# request again with the same request ID, the server can check if original
|
15218
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15219
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15220
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15221
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15304
|
+
# @param [String] zone
|
15305
|
+
# The name of the zone for this request.
|
15306
|
+
# @param [String] resource
|
15307
|
+
# Name or id of the resource for this request.
|
15308
|
+
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
|
15222
15309
|
# @param [String] fields
|
15223
15310
|
# Selector specifying which fields to include in a partial response.
|
15224
15311
|
# @param [String] quota_user
|
@@ -15230,39 +15317,38 @@ module Google
|
|
15230
15317
|
# Request-specific options
|
15231
15318
|
#
|
15232
15319
|
# @yield [result, err] Result & error if block supplied
|
15233
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15320
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
15234
15321
|
# @yieldparam err [StandardError] error object if request failed
|
15235
15322
|
#
|
15236
|
-
# @return [Google::Apis::ComputeBeta::
|
15323
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
15237
15324
|
#
|
15238
15325
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15239
15326
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15240
15327
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15241
|
-
def
|
15242
|
-
command = make_simple_command(:
|
15243
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15244
|
-
command.request_object =
|
15245
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15246
|
-
command.response_class = Google::Apis::ComputeBeta::
|
15328
|
+
def set_instant_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15329
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy', options)
|
15330
|
+
command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
|
15331
|
+
command.request_object = zone_set_policy_request_object
|
15332
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
15333
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
15247
15334
|
command.params['project'] = project unless project.nil?
|
15248
|
-
command.params['
|
15249
|
-
command.params['
|
15250
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
15335
|
+
command.params['zone'] = zone unless zone.nil?
|
15336
|
+
command.params['resource'] = resource unless resource.nil?
|
15251
15337
|
command.query['fields'] = fields unless fields.nil?
|
15252
15338
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15253
15339
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15254
15340
|
execute_or_queue_command(command, &block)
|
15255
15341
|
end
|
15256
15342
|
|
15257
|
-
# Sets the labels on
|
15258
|
-
# the Labeling Resources documentation.
|
15343
|
+
# Sets the labels on a instantSnapshot in the given zone. To learn more about
|
15344
|
+
# labels, read the Labeling Resources documentation.
|
15259
15345
|
# @param [String] project
|
15260
15346
|
# Project ID for this request.
|
15261
|
-
# @param [String]
|
15262
|
-
# The
|
15347
|
+
# @param [String] zone
|
15348
|
+
# The name of the zone for this request.
|
15263
15349
|
# @param [String] resource
|
15264
15350
|
# Name or id of the resource for this request.
|
15265
|
-
# @param [Google::Apis::ComputeBeta::
|
15351
|
+
# @param [Google::Apis::ComputeBeta::ZoneSetLabelsRequest] zone_set_labels_request_object
|
15266
15352
|
# @param [String] request_id
|
15267
15353
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15268
15354
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15292,14 +15378,14 @@ module Google
|
|
15292
15378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15293
15379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15294
15380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15295
|
-
def
|
15296
|
-
command = make_simple_command(:post, 'projects/{project}/
|
15297
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
15298
|
-
command.request_object =
|
15381
|
+
def set_instant_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15382
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels', options)
|
15383
|
+
command.request_representation = Google::Apis::ComputeBeta::ZoneSetLabelsRequest::Representation
|
15384
|
+
command.request_object = zone_set_labels_request_object
|
15299
15385
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15300
15386
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15301
15387
|
command.params['project'] = project unless project.nil?
|
15302
|
-
command.params['
|
15388
|
+
command.params['zone'] = zone unless zone.nil?
|
15303
15389
|
command.params['resource'] = resource unless resource.nil?
|
15304
15390
|
command.query['requestId'] = request_id unless request_id.nil?
|
15305
15391
|
command.query['fields'] = fields unless fields.nil?
|
@@ -15311,8 +15397,8 @@ module Google
|
|
15311
15397
|
# Returns permissions that a caller has on the specified resource.
|
15312
15398
|
# @param [String] project
|
15313
15399
|
# Project ID for this request.
|
15314
|
-
# @param [String]
|
15315
|
-
# The name of the
|
15400
|
+
# @param [String] zone
|
15401
|
+
# The name of the zone for this request.
|
15316
15402
|
# @param [String] resource
|
15317
15403
|
# Name or id of the resource for this request.
|
15318
15404
|
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
@@ -15335,14 +15421,14 @@ module Google
|
|
15335
15421
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15336
15422
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15337
15423
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15338
|
-
def
|
15339
|
-
command = make_simple_command(:post, 'projects/{project}/
|
15424
|
+
def test_instant_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15425
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions', options)
|
15340
15426
|
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
15341
15427
|
command.request_object = test_permissions_request_object
|
15342
15428
|
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
15343
15429
|
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
15344
15430
|
command.params['project'] = project unless project.nil?
|
15345
|
-
command.params['
|
15431
|
+
command.params['zone'] = zone unless zone.nil?
|
15346
15432
|
command.params['resource'] = resource unless resource.nil?
|
15347
15433
|
command.query['fields'] = fields unless fields.nil?
|
15348
15434
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -15350,45 +15436,7 @@ module Google
|
|
15350
15436
|
execute_or_queue_command(command, &block)
|
15351
15437
|
end
|
15352
15438
|
|
15353
|
-
#
|
15354
|
-
# available interconnect locations by making a list() request.
|
15355
|
-
# @param [String] project
|
15356
|
-
# Project ID for this request.
|
15357
|
-
# @param [String] interconnect_location
|
15358
|
-
# Name of the interconnect location to return.
|
15359
|
-
# @param [String] fields
|
15360
|
-
# Selector specifying which fields to include in a partial response.
|
15361
|
-
# @param [String] quota_user
|
15362
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
15363
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15364
|
-
# @param [String] user_ip
|
15365
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15366
|
-
# @param [Google::Apis::RequestOptions] options
|
15367
|
-
# Request-specific options
|
15368
|
-
#
|
15369
|
-
# @yield [result, err] Result & error if block supplied
|
15370
|
-
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectLocation] parsed result object
|
15371
|
-
# @yieldparam err [StandardError] error object if request failed
|
15372
|
-
#
|
15373
|
-
# @return [Google::Apis::ComputeBeta::InterconnectLocation]
|
15374
|
-
#
|
15375
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15376
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15377
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15378
|
-
def get_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15379
|
-
command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations/{interconnectLocation}', options)
|
15380
|
-
command.response_representation = Google::Apis::ComputeBeta::InterconnectLocation::Representation
|
15381
|
-
command.response_class = Google::Apis::ComputeBeta::InterconnectLocation
|
15382
|
-
command.params['project'] = project unless project.nil?
|
15383
|
-
command.params['interconnectLocation'] = interconnect_location unless interconnect_location.nil?
|
15384
|
-
command.query['fields'] = fields unless fields.nil?
|
15385
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15386
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
15387
|
-
execute_or_queue_command(command, &block)
|
15388
|
-
end
|
15389
|
-
|
15390
|
-
# Retrieves the list of interconnect locations available to the specified
|
15391
|
-
# project.
|
15439
|
+
# Retrieves an aggregated list of interconnect attachments.
|
15392
15440
|
# @param [String] project
|
15393
15441
|
# Project ID for this request.
|
15394
15442
|
# @param [String] filter
|
@@ -15422,6 +15470,13 @@ module Google
|
|
15422
15470
|
# regular expression using Google RE2 library syntax. The literal value must
|
15423
15471
|
# match the entire field. For example, to filter for instances that do not end
|
15424
15472
|
# with name "instance", you would use `name ne .*instance`.
|
15473
|
+
# @param [Boolean] include_all_scopes
|
15474
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
15475
|
+
# global) should be included in the response. For new resource types added after
|
15476
|
+
# this field, the flag has no effect as new resource types will always include
|
15477
|
+
# every visible scope for each scope type in response. For resource types which
|
15478
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
15479
|
+
# types where the resource type is expected to be found will be included.
|
15425
15480
|
# @param [Fixnum] max_results
|
15426
15481
|
# The maximum number of results per page that should be returned. If the number
|
15427
15482
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
@@ -15452,20 +15507,21 @@ module Google
|
|
15452
15507
|
# Request-specific options
|
15453
15508
|
#
|
15454
15509
|
# @yield [result, err] Result & error if block supplied
|
15455
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15510
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList] parsed result object
|
15456
15511
|
# @yieldparam err [StandardError] error object if request failed
|
15457
15512
|
#
|
15458
|
-
# @return [Google::Apis::ComputeBeta::
|
15513
|
+
# @return [Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList]
|
15459
15514
|
#
|
15460
15515
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15461
15516
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15462
15517
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15463
|
-
def
|
15464
|
-
command = make_simple_command(:get, 'projects/{project}/
|
15465
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15466
|
-
command.response_class = Google::Apis::ComputeBeta::
|
15518
|
+
def aggregated_interconnect_attachment_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)
|
15519
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/interconnectAttachments', options)
|
15520
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList::Representation
|
15521
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList
|
15467
15522
|
command.params['project'] = project unless project.nil?
|
15468
15523
|
command.query['filter'] = filter unless filter.nil?
|
15524
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
15469
15525
|
command.query['maxResults'] = max_results unless max_results.nil?
|
15470
15526
|
command.query['orderBy'] = order_by unless order_by.nil?
|
15471
15527
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -15476,12 +15532,23 @@ module Google
|
|
15476
15532
|
execute_or_queue_command(command, &block)
|
15477
15533
|
end
|
15478
15534
|
|
15479
|
-
#
|
15480
|
-
# list of available interconnect remote locations by making a list() request.
|
15535
|
+
# Deletes the specified interconnect attachment.
|
15481
15536
|
# @param [String] project
|
15482
15537
|
# Project ID for this request.
|
15483
|
-
# @param [String]
|
15484
|
-
# Name of the
|
15538
|
+
# @param [String] region
|
15539
|
+
# Name of the region for this request.
|
15540
|
+
# @param [String] interconnect_attachment
|
15541
|
+
# Name of the interconnect attachment to delete.
|
15542
|
+
# @param [String] request_id
|
15543
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
15544
|
+
# that if you must retry your request, the server will know to ignore the
|
15545
|
+
# request if it has already been completed. For example, consider a situation
|
15546
|
+
# where you make an initial request and the request times out. If you make the
|
15547
|
+
# request again with the same request ID, the server can check if original
|
15548
|
+
# operation with the same request ID was received, and if so, will ignore the
|
15549
|
+
# second request. This prevents clients from accidentally creating duplicate
|
15550
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
15551
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15485
15552
|
# @param [String] fields
|
15486
15553
|
# Selector specifying which fields to include in a partial response.
|
15487
15554
|
# @param [String] quota_user
|
@@ -15493,30 +15560,127 @@ module Google
|
|
15493
15560
|
# Request-specific options
|
15494
15561
|
#
|
15495
15562
|
# @yield [result, err] Result & error if block supplied
|
15496
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15563
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15497
15564
|
# @yieldparam err [StandardError] error object if request failed
|
15498
15565
|
#
|
15499
|
-
# @return [Google::Apis::ComputeBeta::
|
15566
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
15500
15567
|
#
|
15501
15568
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15502
15569
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15503
15570
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15504
|
-
def
|
15505
|
-
command = make_simple_command(:
|
15506
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15507
|
-
command.response_class = Google::Apis::ComputeBeta::
|
15571
|
+
def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15572
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
|
15573
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15574
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
15508
15575
|
command.params['project'] = project unless project.nil?
|
15509
|
-
command.params['
|
15576
|
+
command.params['region'] = region unless region.nil?
|
15577
|
+
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
|
15578
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
15510
15579
|
command.query['fields'] = fields unless fields.nil?
|
15511
15580
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15512
15581
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15513
15582
|
execute_or_queue_command(command, &block)
|
15514
15583
|
end
|
15515
15584
|
|
15516
|
-
#
|
15517
|
-
# project
|
15585
|
+
# Returns the specified interconnect attachment.
|
15586
|
+
# @param [String] project
|
15587
|
+
# Project ID for this request.
|
15588
|
+
# @param [String] region
|
15589
|
+
# Name of the region for this request.
|
15590
|
+
# @param [String] interconnect_attachment
|
15591
|
+
# Name of the interconnect attachment to return.
|
15592
|
+
# @param [String] fields
|
15593
|
+
# Selector specifying which fields to include in a partial response.
|
15594
|
+
# @param [String] quota_user
|
15595
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15596
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15597
|
+
# @param [String] user_ip
|
15598
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15599
|
+
# @param [Google::Apis::RequestOptions] options
|
15600
|
+
# Request-specific options
|
15601
|
+
#
|
15602
|
+
# @yield [result, err] Result & error if block supplied
|
15603
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachment] parsed result object
|
15604
|
+
# @yieldparam err [StandardError] error object if request failed
|
15605
|
+
#
|
15606
|
+
# @return [Google::Apis::ComputeBeta::InterconnectAttachment]
|
15607
|
+
#
|
15608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15611
|
+
def get_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15612
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
|
15613
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
|
15614
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectAttachment
|
15615
|
+
command.params['project'] = project unless project.nil?
|
15616
|
+
command.params['region'] = region unless region.nil?
|
15617
|
+
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
|
15618
|
+
command.query['fields'] = fields unless fields.nil?
|
15619
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15620
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15621
|
+
execute_or_queue_command(command, &block)
|
15622
|
+
end
|
15623
|
+
|
15624
|
+
# Creates an InterconnectAttachment in the specified project using the data
|
15625
|
+
# included in the request.
|
15626
|
+
# @param [String] project
|
15627
|
+
# Project ID for this request.
|
15628
|
+
# @param [String] region
|
15629
|
+
# Name of the region for this request.
|
15630
|
+
# @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
|
15631
|
+
# @param [String] request_id
|
15632
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
15633
|
+
# that if you must retry your request, the server will know to ignore the
|
15634
|
+
# request if it has already been completed. For example, consider a situation
|
15635
|
+
# where you make an initial request and the request times out. If you make the
|
15636
|
+
# request again with the same request ID, the server can check if original
|
15637
|
+
# operation with the same request ID was received, and if so, will ignore the
|
15638
|
+
# second request. This prevents clients from accidentally creating duplicate
|
15639
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
15640
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15641
|
+
# @param [Boolean] validate_only
|
15642
|
+
# If true, the request will not be committed.
|
15643
|
+
# @param [String] fields
|
15644
|
+
# Selector specifying which fields to include in a partial response.
|
15645
|
+
# @param [String] quota_user
|
15646
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
15647
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
15648
|
+
# @param [String] user_ip
|
15649
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
15650
|
+
# @param [Google::Apis::RequestOptions] options
|
15651
|
+
# Request-specific options
|
15652
|
+
#
|
15653
|
+
# @yield [result, err] Result & error if block supplied
|
15654
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15655
|
+
# @yieldparam err [StandardError] error object if request failed
|
15656
|
+
#
|
15657
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
15658
|
+
#
|
15659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15662
|
+
def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15663
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments', options)
|
15664
|
+
command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
|
15665
|
+
command.request_object = interconnect_attachment_object
|
15666
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15667
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
15668
|
+
command.params['project'] = project unless project.nil?
|
15669
|
+
command.params['region'] = region unless region.nil?
|
15670
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
15671
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
15672
|
+
command.query['fields'] = fields unless fields.nil?
|
15673
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15674
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15675
|
+
execute_or_queue_command(command, &block)
|
15676
|
+
end
|
15677
|
+
|
15678
|
+
# Retrieves the list of interconnect attachments contained within the specified
|
15679
|
+
# region.
|
15518
15680
|
# @param [String] project
|
15519
15681
|
# Project ID for this request.
|
15682
|
+
# @param [String] region
|
15683
|
+
# Name of the region for this request.
|
15520
15684
|
# @param [String] filter
|
15521
15685
|
# A filter expression that filters resources listed in the response. Most
|
15522
15686
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -15578,19 +15742,20 @@ module Google
|
|
15578
15742
|
# Request-specific options
|
15579
15743
|
#
|
15580
15744
|
# @yield [result, err] Result & error if block supplied
|
15581
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15745
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectAttachmentList] parsed result object
|
15582
15746
|
# @yieldparam err [StandardError] error object if request failed
|
15583
15747
|
#
|
15584
|
-
# @return [Google::Apis::ComputeBeta::
|
15748
|
+
# @return [Google::Apis::ComputeBeta::InterconnectAttachmentList]
|
15585
15749
|
#
|
15586
15750
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15587
15751
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15588
15752
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15589
|
-
def
|
15590
|
-
command = make_simple_command(:get, 'projects/{project}/
|
15591
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15592
|
-
command.response_class = Google::Apis::ComputeBeta::
|
15753
|
+
def list_interconnect_attachments(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)
|
15754
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments', options)
|
15755
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentList::Representation
|
15756
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentList
|
15593
15757
|
command.params['project'] = project unless project.nil?
|
15758
|
+
command.params['region'] = region unless region.nil?
|
15594
15759
|
command.query['filter'] = filter unless filter.nil?
|
15595
15760
|
command.query['maxResults'] = max_results unless max_results.nil?
|
15596
15761
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -15602,11 +15767,16 @@ module Google
|
|
15602
15767
|
execute_or_queue_command(command, &block)
|
15603
15768
|
end
|
15604
15769
|
|
15605
|
-
#
|
15770
|
+
# Updates the specified interconnect attachment with the data included in the
|
15771
|
+
# request. This method supports PATCH semantics and uses the JSON merge patch
|
15772
|
+
# format and processing rules.
|
15606
15773
|
# @param [String] project
|
15607
15774
|
# Project ID for this request.
|
15608
|
-
# @param [String]
|
15609
|
-
# Name of the
|
15775
|
+
# @param [String] region
|
15776
|
+
# Name of the region scoping this request.
|
15777
|
+
# @param [String] interconnect_attachment
|
15778
|
+
# Name of the interconnect attachment to patch.
|
15779
|
+
# @param [Google::Apis::ComputeBeta::InterconnectAttachment] interconnect_attachment_object
|
15610
15780
|
# @param [String] request_id
|
15611
15781
|
# An optional request ID to identify requests. Specify a unique request ID so
|
15612
15782
|
# that if you must retry your request, the server will know to ignore the
|
@@ -15636,12 +15806,15 @@ module Google
|
|
15636
15806
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15637
15807
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15638
15808
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15639
|
-
def
|
15640
|
-
command = make_simple_command(:
|
15809
|
+
def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15810
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
|
15811
|
+
command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation
|
15812
|
+
command.request_object = interconnect_attachment_object
|
15641
15813
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15642
15814
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
15643
15815
|
command.params['project'] = project unless project.nil?
|
15644
|
-
command.params['
|
15816
|
+
command.params['region'] = region unless region.nil?
|
15817
|
+
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
|
15645
15818
|
command.query['requestId'] = request_id unless request_id.nil?
|
15646
15819
|
command.query['fields'] = fields unless fields.nil?
|
15647
15820
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -15649,12 +15822,25 @@ module Google
|
|
15649
15822
|
execute_or_queue_command(command, &block)
|
15650
15823
|
end
|
15651
15824
|
|
15652
|
-
#
|
15653
|
-
#
|
15825
|
+
# Sets the labels on an InterconnectAttachment. To learn more about labels, read
|
15826
|
+
# the Labeling Resources documentation.
|
15654
15827
|
# @param [String] project
|
15655
15828
|
# Project ID for this request.
|
15656
|
-
# @param [String]
|
15657
|
-
#
|
15829
|
+
# @param [String] region
|
15830
|
+
# The region for this request.
|
15831
|
+
# @param [String] resource
|
15832
|
+
# Name or id of the resource for this request.
|
15833
|
+
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
15834
|
+
# @param [String] request_id
|
15835
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
15836
|
+
# that if you must retry your request, the server will know to ignore the
|
15837
|
+
# request if it has already been completed. For example, consider a situation
|
15838
|
+
# where you make an initial request and the request times out. If you make the
|
15839
|
+
# request again with the same request ID, the server can check if original
|
15840
|
+
# operation with the same request ID was received, and if so, will ignore the
|
15841
|
+
# second request. This prevents clients from accidentally creating duplicate
|
15842
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
15843
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15658
15844
|
# @param [String] fields
|
15659
15845
|
# Selector specifying which fields to include in a partial response.
|
15660
15846
|
# @param [String] quota_user
|
@@ -15666,31 +15852,38 @@ module Google
|
|
15666
15852
|
# Request-specific options
|
15667
15853
|
#
|
15668
15854
|
# @yield [result, err] Result & error if block supplied
|
15669
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15855
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15670
15856
|
# @yieldparam err [StandardError] error object if request failed
|
15671
15857
|
#
|
15672
|
-
# @return [Google::Apis::ComputeBeta::
|
15858
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
15673
15859
|
#
|
15674
15860
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15675
15861
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15676
15862
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15677
|
-
def
|
15678
|
-
command = make_simple_command(:
|
15679
|
-
command.
|
15680
|
-
command.
|
15863
|
+
def set_interconnect_attachment_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15864
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
|
15865
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
15866
|
+
command.request_object = region_set_labels_request_object
|
15867
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15868
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
15681
15869
|
command.params['project'] = project unless project.nil?
|
15682
|
-
command.params['
|
15870
|
+
command.params['region'] = region unless region.nil?
|
15871
|
+
command.params['resource'] = resource unless resource.nil?
|
15872
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
15683
15873
|
command.query['fields'] = fields unless fields.nil?
|
15684
15874
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15685
15875
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15686
15876
|
execute_or_queue_command(command, &block)
|
15687
15877
|
end
|
15688
15878
|
|
15689
|
-
# Returns
|
15879
|
+
# Returns permissions that a caller has on the specified resource.
|
15690
15880
|
# @param [String] project
|
15691
15881
|
# Project ID for this request.
|
15692
|
-
# @param [String]
|
15693
|
-
#
|
15882
|
+
# @param [String] region
|
15883
|
+
# The name of the region for this request.
|
15884
|
+
# @param [String] resource
|
15885
|
+
# Name or id of the resource for this request.
|
15886
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
15694
15887
|
# @param [String] fields
|
15695
15888
|
# Selector specifying which fields to include in a partial response.
|
15696
15889
|
# @param [String] quota_user
|
@@ -15702,41 +15895,35 @@ module Google
|
|
15702
15895
|
# Request-specific options
|
15703
15896
|
#
|
15704
15897
|
# @yield [result, err] Result & error if block supplied
|
15705
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15898
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
15706
15899
|
# @yieldparam err [StandardError] error object if request failed
|
15707
15900
|
#
|
15708
|
-
# @return [Google::Apis::ComputeBeta::
|
15901
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
15709
15902
|
#
|
15710
15903
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15711
15904
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15712
15905
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15713
|
-
def
|
15714
|
-
command = make_simple_command(:
|
15715
|
-
command.
|
15716
|
-
command.
|
15906
|
+
def test_interconnect_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15907
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions', options)
|
15908
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
15909
|
+
command.request_object = test_permissions_request_object
|
15910
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
15911
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
15717
15912
|
command.params['project'] = project unless project.nil?
|
15718
|
-
command.params['
|
15913
|
+
command.params['region'] = region unless region.nil?
|
15914
|
+
command.params['resource'] = resource unless resource.nil?
|
15719
15915
|
command.query['fields'] = fields unless fields.nil?
|
15720
15916
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15721
15917
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15722
15918
|
execute_or_queue_command(command, &block)
|
15723
15919
|
end
|
15724
15920
|
|
15725
|
-
#
|
15726
|
-
#
|
15921
|
+
# Returns the details for the specified interconnect location. Gets a list of
|
15922
|
+
# available interconnect locations by making a list() request.
|
15727
15923
|
# @param [String] project
|
15728
15924
|
# Project ID for this request.
|
15729
|
-
# @param [
|
15730
|
-
#
|
15731
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15732
|
-
# that if you must retry your request, the server will know to ignore the
|
15733
|
-
# request if it has already been completed. For example, consider a situation
|
15734
|
-
# where you make an initial request and the request times out. If you make the
|
15735
|
-
# request again with the same request ID, the server can check if original
|
15736
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15737
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15738
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15739
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15925
|
+
# @param [String] interconnect_location
|
15926
|
+
# Name of the interconnect location to return.
|
15740
15927
|
# @param [String] fields
|
15741
15928
|
# Selector specifying which fields to include in a partial response.
|
15742
15929
|
# @param [String] quota_user
|
@@ -15748,29 +15935,28 @@ module Google
|
|
15748
15935
|
# Request-specific options
|
15749
15936
|
#
|
15750
15937
|
# @yield [result, err] Result & error if block supplied
|
15751
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
15938
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectLocation] parsed result object
|
15752
15939
|
# @yieldparam err [StandardError] error object if request failed
|
15753
15940
|
#
|
15754
|
-
# @return [Google::Apis::ComputeBeta::
|
15941
|
+
# @return [Google::Apis::ComputeBeta::InterconnectLocation]
|
15755
15942
|
#
|
15756
15943
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15757
15944
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15758
15945
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15759
|
-
def
|
15760
|
-
command = make_simple_command(:
|
15761
|
-
command.
|
15762
|
-
command.
|
15763
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15764
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
15946
|
+
def get_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15947
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations/{interconnectLocation}', options)
|
15948
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectLocation::Representation
|
15949
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectLocation
|
15765
15950
|
command.params['project'] = project unless project.nil?
|
15766
|
-
command.
|
15951
|
+
command.params['interconnectLocation'] = interconnect_location unless interconnect_location.nil?
|
15767
15952
|
command.query['fields'] = fields unless fields.nil?
|
15768
15953
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15769
15954
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15770
15955
|
execute_or_queue_command(command, &block)
|
15771
15956
|
end
|
15772
15957
|
|
15773
|
-
# Retrieves the list of
|
15958
|
+
# Retrieves the list of interconnect locations available to the specified
|
15959
|
+
# project.
|
15774
15960
|
# @param [String] project
|
15775
15961
|
# Project ID for this request.
|
15776
15962
|
# @param [String] filter
|
@@ -15834,18 +16020,18 @@ module Google
|
|
15834
16020
|
# Request-specific options
|
15835
16021
|
#
|
15836
16022
|
# @yield [result, err] Result & error if block supplied
|
15837
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16023
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectLocationList] parsed result object
|
15838
16024
|
# @yieldparam err [StandardError] error object if request failed
|
15839
16025
|
#
|
15840
|
-
# @return [Google::Apis::ComputeBeta::
|
16026
|
+
# @return [Google::Apis::ComputeBeta::InterconnectLocationList]
|
15841
16027
|
#
|
15842
16028
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15843
16029
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15844
16030
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15845
|
-
def
|
15846
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
15847
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
15848
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16031
|
+
def list_interconnect_locations(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)
|
16032
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations', options)
|
16033
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectLocationList::Representation
|
16034
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectLocationList
|
15849
16035
|
command.params['project'] = project unless project.nil?
|
15850
16036
|
command.query['filter'] = filter unless filter.nil?
|
15851
16037
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -15858,24 +16044,12 @@ module Google
|
|
15858
16044
|
execute_or_queue_command(command, &block)
|
15859
16045
|
end
|
15860
16046
|
|
15861
|
-
#
|
15862
|
-
#
|
15863
|
-
# processing rules.
|
16047
|
+
# Returns the details for the specified interconnect remote location. Gets a
|
16048
|
+
# list of available interconnect remote locations by making a list() request.
|
15864
16049
|
# @param [String] project
|
15865
16050
|
# Project ID for this request.
|
15866
|
-
# @param [String]
|
15867
|
-
# Name of the interconnect to
|
15868
|
-
# @param [Google::Apis::ComputeBeta::Interconnect] interconnect_object
|
15869
|
-
# @param [String] request_id
|
15870
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
15871
|
-
# that if you must retry your request, the server will know to ignore the
|
15872
|
-
# request if it has already been completed. For example, consider a situation
|
15873
|
-
# where you make an initial request and the request times out. If you make the
|
15874
|
-
# request again with the same request ID, the server can check if original
|
15875
|
-
# operation with the same request ID was received, and if so, will ignore the
|
15876
|
-
# second request. This prevents clients from accidentally creating duplicate
|
15877
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
15878
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16051
|
+
# @param [String] interconnect_remote_location
|
16052
|
+
# Name of the interconnect remote location to return.
|
15879
16053
|
# @param [String] fields
|
15880
16054
|
# Selector specifying which fields to include in a partial response.
|
15881
16055
|
# @param [String] quota_user
|
@@ -15887,36 +16061,80 @@ module Google
|
|
15887
16061
|
# Request-specific options
|
15888
16062
|
#
|
15889
16063
|
# @yield [result, err] Result & error if block supplied
|
15890
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16064
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectRemoteLocation] parsed result object
|
15891
16065
|
# @yieldparam err [StandardError] error object if request failed
|
15892
16066
|
#
|
15893
|
-
# @return [Google::Apis::ComputeBeta::
|
16067
|
+
# @return [Google::Apis::ComputeBeta::InterconnectRemoteLocation]
|
15894
16068
|
#
|
15895
16069
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15896
16070
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15897
16071
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15898
|
-
def
|
15899
|
-
command = make_simple_command(:
|
15900
|
-
command.
|
15901
|
-
command.
|
15902
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15903
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
16072
|
+
def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16073
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
|
16074
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectRemoteLocation::Representation
|
16075
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectRemoteLocation
|
15904
16076
|
command.params['project'] = project unless project.nil?
|
15905
|
-
command.params['
|
15906
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
16077
|
+
command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
|
15907
16078
|
command.query['fields'] = fields unless fields.nil?
|
15908
16079
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15909
16080
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15910
16081
|
execute_or_queue_command(command, &block)
|
15911
16082
|
end
|
15912
16083
|
|
15913
|
-
#
|
15914
|
-
#
|
16084
|
+
# Retrieves the list of interconnect remote locations available to the specified
|
16085
|
+
# project.
|
15915
16086
|
# @param [String] project
|
15916
16087
|
# Project ID for this request.
|
15917
|
-
# @param [String]
|
15918
|
-
#
|
15919
|
-
#
|
16088
|
+
# @param [String] filter
|
16089
|
+
# A filter expression that filters resources listed in the response. Most
|
16090
|
+
# Compute resources support two types of filter expressions: expressions that
|
16091
|
+
# support regular expressions and expressions that follow API improvement
|
16092
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
16093
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
16094
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
16095
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
16096
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
16097
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
16098
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
16099
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
16100
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
16101
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
16102
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
16103
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
16104
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
16105
|
+
# provide each separate expression within parentheses. For example: ``` (
|
16106
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
16107
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
16108
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
16109
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
16110
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
16111
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
16112
|
+
# expression with or without quotes or against multiple parenthesized
|
16113
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
16114
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
16115
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
16116
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
16117
|
+
# match the entire field. For example, to filter for instances that do not end
|
16118
|
+
# with name "instance", you would use `name ne .*instance`.
|
16119
|
+
# @param [Fixnum] max_results
|
16120
|
+
# The maximum number of results per page that should be returned. If the number
|
16121
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
16122
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
16123
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
16124
|
+
# @param [String] order_by
|
16125
|
+
# Sorts list results by a certain order. By default, results are returned in
|
16126
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
16127
|
+
# descending order based on the creation timestamp using `orderBy="
|
16128
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
16129
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
16130
|
+
# resources like operations so that the newest operation is returned first.
|
16131
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
16132
|
+
# @param [String] page_token
|
16133
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
16134
|
+
# by a previous list request to get the next page of results.
|
16135
|
+
# @param [Boolean] return_partial_success
|
16136
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
16137
|
+
# failure. The default value is false.
|
15920
16138
|
# @param [String] fields
|
15921
16139
|
# Selector specifying which fields to include in a partial response.
|
15922
16140
|
# @param [String] quota_user
|
@@ -15928,34 +16146,45 @@ module Google
|
|
15928
16146
|
# Request-specific options
|
15929
16147
|
#
|
15930
16148
|
# @yield [result, err] Result & error if block supplied
|
15931
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16149
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectRemoteLocationList] parsed result object
|
15932
16150
|
# @yieldparam err [StandardError] error object if request failed
|
15933
16151
|
#
|
15934
|
-
# @return [Google::Apis::ComputeBeta::
|
16152
|
+
# @return [Google::Apis::ComputeBeta::InterconnectRemoteLocationList]
|
15935
16153
|
#
|
15936
16154
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15937
16155
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15938
16156
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15939
|
-
def
|
15940
|
-
command = make_simple_command(:
|
15941
|
-
command.
|
15942
|
-
command.
|
15943
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
15944
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
16157
|
+
def list_interconnect_remote_locations(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)
|
16158
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations', options)
|
16159
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectRemoteLocationList::Representation
|
16160
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectRemoteLocationList
|
15945
16161
|
command.params['project'] = project unless project.nil?
|
15946
|
-
command.
|
16162
|
+
command.query['filter'] = filter unless filter.nil?
|
16163
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
16164
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
16165
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
16166
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
15947
16167
|
command.query['fields'] = fields unless fields.nil?
|
15948
16168
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15949
16169
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15950
16170
|
execute_or_queue_command(command, &block)
|
15951
16171
|
end
|
15952
16172
|
|
15953
|
-
#
|
16173
|
+
# Deletes the specified Interconnect.
|
15954
16174
|
# @param [String] project
|
15955
16175
|
# Project ID for this request.
|
15956
|
-
# @param [String]
|
15957
|
-
# Name
|
15958
|
-
# @param [
|
16176
|
+
# @param [String] interconnect
|
16177
|
+
# Name of the interconnect to delete.
|
16178
|
+
# @param [String] request_id
|
16179
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
16180
|
+
# that if you must retry your request, the server will know to ignore the
|
16181
|
+
# request if it has already been completed. For example, consider a situation
|
16182
|
+
# where you make an initial request and the request times out. If you make the
|
16183
|
+
# request again with the same request ID, the server can check if original
|
16184
|
+
# operation with the same request ID was received, and if so, will ignore the
|
16185
|
+
# second request. This prevents clients from accidentally creating duplicate
|
16186
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
16187
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
15959
16188
|
# @param [String] fields
|
15960
16189
|
# Selector specifying which fields to include in a partial response.
|
15961
16190
|
# @param [String] quota_user
|
@@ -15967,36 +16196,33 @@ module Google
|
|
15967
16196
|
# Request-specific options
|
15968
16197
|
#
|
15969
16198
|
# @yield [result, err] Result & error if block supplied
|
15970
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16199
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
15971
16200
|
# @yieldparam err [StandardError] error object if request failed
|
15972
16201
|
#
|
15973
|
-
# @return [Google::Apis::ComputeBeta::
|
16202
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
15974
16203
|
#
|
15975
16204
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15976
16205
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15977
16206
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15978
|
-
def
|
15979
|
-
command = make_simple_command(:
|
15980
|
-
command.
|
15981
|
-
command.
|
15982
|
-
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
15983
|
-
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
16207
|
+
def delete_interconnect(project, interconnect, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16208
|
+
command = make_simple_command(:delete, 'projects/{project}/global/interconnects/{interconnect}', options)
|
16209
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16210
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
15984
16211
|
command.params['project'] = project unless project.nil?
|
15985
|
-
command.params['
|
16212
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
16213
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
15986
16214
|
command.query['fields'] = fields unless fields.nil?
|
15987
16215
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15988
16216
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
15989
16217
|
execute_or_queue_command(command, &block)
|
15990
16218
|
end
|
15991
16219
|
|
15992
|
-
#
|
15993
|
-
#
|
15994
|
-
# resource is intended for use only by third-party partners who are creating
|
15995
|
-
# Cloud Marketplace images.
|
16220
|
+
# Returns the specified Interconnect. Get a list of available Interconnects by
|
16221
|
+
# making a list() request.
|
15996
16222
|
# @param [String] project
|
15997
16223
|
# Project ID for this request.
|
15998
|
-
# @param [String]
|
15999
|
-
#
|
16224
|
+
# @param [String] interconnect
|
16225
|
+
# Name of the interconnect to return.
|
16000
16226
|
# @param [String] fields
|
16001
16227
|
# Selector specifying which fields to include in a partial response.
|
16002
16228
|
# @param [String] quota_user
|
@@ -16008,34 +16234,31 @@ module Google
|
|
16008
16234
|
# Request-specific options
|
16009
16235
|
#
|
16010
16236
|
# @yield [result, err] Result & error if block supplied
|
16011
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16237
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Interconnect] parsed result object
|
16012
16238
|
# @yieldparam err [StandardError] error object if request failed
|
16013
16239
|
#
|
16014
|
-
# @return [Google::Apis::ComputeBeta::
|
16240
|
+
# @return [Google::Apis::ComputeBeta::Interconnect]
|
16015
16241
|
#
|
16016
16242
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16017
16243
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16018
16244
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16019
|
-
def
|
16020
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
16021
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16022
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16245
|
+
def get_interconnect(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16246
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}', options)
|
16247
|
+
command.response_representation = Google::Apis::ComputeBeta::Interconnect::Representation
|
16248
|
+
command.response_class = Google::Apis::ComputeBeta::Interconnect
|
16023
16249
|
command.params['project'] = project unless project.nil?
|
16024
|
-
command.params['
|
16250
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
16025
16251
|
command.query['fields'] = fields unless fields.nil?
|
16026
16252
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16027
16253
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16028
16254
|
execute_or_queue_command(command, &block)
|
16029
16255
|
end
|
16030
16256
|
|
16031
|
-
# Returns
|
16032
|
-
# This resource is intended for use only by third-party partners who are
|
16033
|
-
# creating Cloud Marketplace images.
|
16257
|
+
# Returns the interconnectDiagnostics for the specified Interconnect.
|
16034
16258
|
# @param [String] project
|
16035
16259
|
# Project ID for this request.
|
16036
|
-
# @param [String]
|
16037
|
-
# Name
|
16038
|
-
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
16260
|
+
# @param [String] interconnect
|
16261
|
+
# Name of the interconnect resource to query.
|
16039
16262
|
# @param [String] fields
|
16040
16263
|
# Selector specifying which fields to include in a partial response.
|
16041
16264
|
# @param [String] quota_user
|
@@ -16047,34 +16270,31 @@ module Google
|
|
16047
16270
|
# Request-specific options
|
16048
16271
|
#
|
16049
16272
|
# @yield [result, err] Result & error if block supplied
|
16050
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16273
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectsGetDiagnosticsResponse] parsed result object
|
16051
16274
|
# @yieldparam err [StandardError] error object if request failed
|
16052
16275
|
#
|
16053
|
-
# @return [Google::Apis::ComputeBeta::
|
16276
|
+
# @return [Google::Apis::ComputeBeta::InterconnectsGetDiagnosticsResponse]
|
16054
16277
|
#
|
16055
16278
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16056
16279
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16057
16280
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16058
|
-
def
|
16059
|
-
command = make_simple_command(:
|
16060
|
-
command.
|
16061
|
-
command.
|
16062
|
-
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
16063
|
-
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
16281
|
+
def get_interconnect_diagnostics(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16282
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}/getDiagnostics', options)
|
16283
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectsGetDiagnosticsResponse::Representation
|
16284
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectsGetDiagnosticsResponse
|
16064
16285
|
command.params['project'] = project unless project.nil?
|
16065
|
-
command.params['
|
16286
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
16066
16287
|
command.query['fields'] = fields unless fields.nil?
|
16067
16288
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16068
16289
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16069
16290
|
execute_or_queue_command(command, &block)
|
16070
16291
|
end
|
16071
16292
|
|
16072
|
-
#
|
16073
|
-
#
|
16293
|
+
# Creates an Interconnect in the specified project using the data included in
|
16294
|
+
# the request.
|
16074
16295
|
# @param [String] project
|
16075
16296
|
# Project ID for this request.
|
16076
|
-
# @param [
|
16077
|
-
# Name of the license resource to delete.
|
16297
|
+
# @param [Google::Apis::ComputeBeta::Interconnect] interconnect_object
|
16078
16298
|
# @param [String] request_id
|
16079
16299
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16080
16300
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16104,137 +16324,10 @@ module Google
|
|
16104
16324
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16105
16325
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16106
16326
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16107
|
-
def
|
16108
|
-
command = make_simple_command(:
|
16109
|
-
command.
|
16110
|
-
command.
|
16111
|
-
command.params['project'] = project unless project.nil?
|
16112
|
-
command.params['license'] = license unless license.nil?
|
16113
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
16114
|
-
command.query['fields'] = fields unless fields.nil?
|
16115
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16116
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
16117
|
-
execute_or_queue_command(command, &block)
|
16118
|
-
end
|
16119
|
-
|
16120
|
-
# Returns the specified License resource. *Caution* This resource is intended
|
16121
|
-
# for use only by third-party partners who are creating Cloud Marketplace images.
|
16122
|
-
#
|
16123
|
-
# @param [String] project
|
16124
|
-
# Project ID for this request.
|
16125
|
-
# @param [String] license
|
16126
|
-
# Name of the License resource to return.
|
16127
|
-
# @param [String] fields
|
16128
|
-
# Selector specifying which fields to include in a partial response.
|
16129
|
-
# @param [String] quota_user
|
16130
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16131
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16132
|
-
# @param [String] user_ip
|
16133
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
16134
|
-
# @param [Google::Apis::RequestOptions] options
|
16135
|
-
# Request-specific options
|
16136
|
-
#
|
16137
|
-
# @yield [result, err] Result & error if block supplied
|
16138
|
-
# @yieldparam result [Google::Apis::ComputeBeta::License] parsed result object
|
16139
|
-
# @yieldparam err [StandardError] error object if request failed
|
16140
|
-
#
|
16141
|
-
# @return [Google::Apis::ComputeBeta::License]
|
16142
|
-
#
|
16143
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16144
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16145
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16146
|
-
def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16147
|
-
command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options)
|
16148
|
-
command.response_representation = Google::Apis::ComputeBeta::License::Representation
|
16149
|
-
command.response_class = Google::Apis::ComputeBeta::License
|
16150
|
-
command.params['project'] = project unless project.nil?
|
16151
|
-
command.params['license'] = license unless license.nil?
|
16152
|
-
command.query['fields'] = fields unless fields.nil?
|
16153
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16154
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
16155
|
-
execute_or_queue_command(command, &block)
|
16156
|
-
end
|
16157
|
-
|
16158
|
-
# Gets the access control policy for a resource. May be empty if no such policy
|
16159
|
-
# or resource exists. *Caution* This resource is intended for use only by third-
|
16160
|
-
# party partners who are creating Cloud Marketplace images.
|
16161
|
-
# @param [String] project
|
16162
|
-
# Project ID for this request.
|
16163
|
-
# @param [String] resource
|
16164
|
-
# Name or id of the resource for this request.
|
16165
|
-
# @param [Fixnum] options_requested_policy_version
|
16166
|
-
# Requested IAM Policy version.
|
16167
|
-
# @param [String] fields
|
16168
|
-
# Selector specifying which fields to include in a partial response.
|
16169
|
-
# @param [String] quota_user
|
16170
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16171
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16172
|
-
# @param [String] user_ip
|
16173
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
16174
|
-
# @param [Google::Apis::RequestOptions] options
|
16175
|
-
# Request-specific options
|
16176
|
-
#
|
16177
|
-
# @yield [result, err] Result & error if block supplied
|
16178
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
16179
|
-
# @yieldparam err [StandardError] error object if request failed
|
16180
|
-
#
|
16181
|
-
# @return [Google::Apis::ComputeBeta::Policy]
|
16182
|
-
#
|
16183
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16184
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16185
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16186
|
-
def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16187
|
-
command = make_simple_command(:get, 'projects/{project}/global/licenses/{resource}/getIamPolicy', options)
|
16188
|
-
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
16189
|
-
command.response_class = Google::Apis::ComputeBeta::Policy
|
16190
|
-
command.params['project'] = project unless project.nil?
|
16191
|
-
command.params['resource'] = resource unless resource.nil?
|
16192
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
16193
|
-
command.query['fields'] = fields unless fields.nil?
|
16194
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16195
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
16196
|
-
execute_or_queue_command(command, &block)
|
16197
|
-
end
|
16198
|
-
|
16199
|
-
# Create a License resource in the specified project. *Caution* This resource is
|
16200
|
-
# intended for use only by third-party partners who are creating Cloud
|
16201
|
-
# Marketplace images.
|
16202
|
-
# @param [String] project
|
16203
|
-
# Project ID for this request.
|
16204
|
-
# @param [Google::Apis::ComputeBeta::License] license_object
|
16205
|
-
# @param [String] request_id
|
16206
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
16207
|
-
# that if you must retry your request, the server will know to ignore the
|
16208
|
-
# request if it has already been completed. For example, consider a situation
|
16209
|
-
# where you make an initial request and the request times out. If you make the
|
16210
|
-
# request again with the same request ID, the server can check if original
|
16211
|
-
# operation with the same request ID was received, and if so, will ignore the
|
16212
|
-
# second request. This prevents clients from accidentally creating duplicate
|
16213
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
16214
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16215
|
-
# @param [String] fields
|
16216
|
-
# Selector specifying which fields to include in a partial response.
|
16217
|
-
# @param [String] quota_user
|
16218
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
16219
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16220
|
-
# @param [String] user_ip
|
16221
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
16222
|
-
# @param [Google::Apis::RequestOptions] options
|
16223
|
-
# Request-specific options
|
16224
|
-
#
|
16225
|
-
# @yield [result, err] Result & error if block supplied
|
16226
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
16227
|
-
# @yieldparam err [StandardError] error object if request failed
|
16228
|
-
#
|
16229
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
16230
|
-
#
|
16231
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16232
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16233
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16234
|
-
def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16235
|
-
command = make_simple_command(:post, 'projects/{project}/global/licenses', options)
|
16236
|
-
command.request_representation = Google::Apis::ComputeBeta::License::Representation
|
16237
|
-
command.request_object = license_object
|
16327
|
+
def insert_interconnect(project, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16328
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects', options)
|
16329
|
+
command.request_representation = Google::Apis::ComputeBeta::Interconnect::Representation
|
16330
|
+
command.request_object = interconnect_object
|
16238
16331
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16239
16332
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16240
16333
|
command.params['project'] = project unless project.nil?
|
@@ -16245,13 +16338,7 @@ module Google
|
|
16245
16338
|
execute_or_queue_command(command, &block)
|
16246
16339
|
end
|
16247
16340
|
|
16248
|
-
# Retrieves the list of
|
16249
|
-
# does not get any licenses that belong to other projects, including licenses
|
16250
|
-
# attached to publicly-available images, like Debian 9. If you want to get a
|
16251
|
-
# list of publicly-available licenses, use this method to make a request to the
|
16252
|
-
# respective image project, such as debian-cloud or windows-cloud. *Caution*
|
16253
|
-
# This resource is intended for use only by third-party partners who are
|
16254
|
-
# creating Cloud Marketplace images.
|
16341
|
+
# Retrieves the list of Interconnects available to the specified project.
|
16255
16342
|
# @param [String] project
|
16256
16343
|
# Project ID for this request.
|
16257
16344
|
# @param [String] filter
|
@@ -16315,18 +16402,18 @@ module Google
|
|
16315
16402
|
# Request-specific options
|
16316
16403
|
#
|
16317
16404
|
# @yield [result, err] Result & error if block supplied
|
16318
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16405
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InterconnectList] parsed result object
|
16319
16406
|
# @yieldparam err [StandardError] error object if request failed
|
16320
16407
|
#
|
16321
|
-
# @return [Google::Apis::ComputeBeta::
|
16408
|
+
# @return [Google::Apis::ComputeBeta::InterconnectList]
|
16322
16409
|
#
|
16323
16410
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16324
16411
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16325
16412
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16326
|
-
def
|
16327
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
16328
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16329
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16413
|
+
def list_interconnects(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)
|
16414
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnects', options)
|
16415
|
+
command.response_representation = Google::Apis::ComputeBeta::InterconnectList::Representation
|
16416
|
+
command.response_class = Google::Apis::ComputeBeta::InterconnectList
|
16330
16417
|
command.params['project'] = project unless project.nil?
|
16331
16418
|
command.query['filter'] = filter unless filter.nil?
|
16332
16419
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -16339,14 +16426,65 @@ module Google
|
|
16339
16426
|
execute_or_queue_command(command, &block)
|
16340
16427
|
end
|
16341
16428
|
|
16342
|
-
#
|
16343
|
-
#
|
16344
|
-
#
|
16429
|
+
# Updates the specified Interconnect with the data included in the request. This
|
16430
|
+
# method supports PATCH semantics and uses the JSON merge patch format and
|
16431
|
+
# processing rules.
|
16432
|
+
# @param [String] project
|
16433
|
+
# Project ID for this request.
|
16434
|
+
# @param [String] interconnect
|
16435
|
+
# Name of the interconnect to update.
|
16436
|
+
# @param [Google::Apis::ComputeBeta::Interconnect] interconnect_object
|
16437
|
+
# @param [String] request_id
|
16438
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
16439
|
+
# that if you must retry your request, the server will know to ignore the
|
16440
|
+
# request if it has already been completed. For example, consider a situation
|
16441
|
+
# where you make an initial request and the request times out. If you make the
|
16442
|
+
# request again with the same request ID, the server can check if original
|
16443
|
+
# operation with the same request ID was received, and if so, will ignore the
|
16444
|
+
# second request. This prevents clients from accidentally creating duplicate
|
16445
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
16446
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16447
|
+
# @param [String] fields
|
16448
|
+
# Selector specifying which fields to include in a partial response.
|
16449
|
+
# @param [String] quota_user
|
16450
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16451
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16452
|
+
# @param [String] user_ip
|
16453
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
16454
|
+
# @param [Google::Apis::RequestOptions] options
|
16455
|
+
# Request-specific options
|
16456
|
+
#
|
16457
|
+
# @yield [result, err] Result & error if block supplied
|
16458
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
16459
|
+
# @yieldparam err [StandardError] error object if request failed
|
16460
|
+
#
|
16461
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
16462
|
+
#
|
16463
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16464
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16465
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16466
|
+
def patch_interconnect(project, interconnect, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16467
|
+
command = make_simple_command(:patch, 'projects/{project}/global/interconnects/{interconnect}', options)
|
16468
|
+
command.request_representation = Google::Apis::ComputeBeta::Interconnect::Representation
|
16469
|
+
command.request_object = interconnect_object
|
16470
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16471
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
16472
|
+
command.params['project'] = project unless project.nil?
|
16473
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
16474
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16475
|
+
command.query['fields'] = fields unless fields.nil?
|
16476
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16477
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16478
|
+
execute_or_queue_command(command, &block)
|
16479
|
+
end
|
16480
|
+
|
16481
|
+
# Sets the labels on an Interconnect. To learn more about labels, read the
|
16482
|
+
# Labeling Resources documentation.
|
16345
16483
|
# @param [String] project
|
16346
16484
|
# Project ID for this request.
|
16347
16485
|
# @param [String] resource
|
16348
16486
|
# Name or id of the resource for this request.
|
16349
|
-
# @param [Google::Apis::ComputeBeta::
|
16487
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
|
16350
16488
|
# @param [String] fields
|
16351
16489
|
# Selector specifying which fields to include in a partial response.
|
16352
16490
|
# @param [String] quota_user
|
@@ -16358,20 +16496,20 @@ module Google
|
|
16358
16496
|
# Request-specific options
|
16359
16497
|
#
|
16360
16498
|
# @yield [result, err] Result & error if block supplied
|
16361
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16499
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
16362
16500
|
# @yieldparam err [StandardError] error object if request failed
|
16363
16501
|
#
|
16364
|
-
# @return [Google::Apis::ComputeBeta::
|
16502
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
16365
16503
|
#
|
16366
16504
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16367
16505
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16368
16506
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16369
|
-
def
|
16370
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
16371
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
16372
|
-
command.request_object =
|
16373
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16374
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16507
|
+
def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16508
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setLabels', options)
|
16509
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
|
16510
|
+
command.request_object = global_set_labels_request_object
|
16511
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16512
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
16375
16513
|
command.params['project'] = project unless project.nil?
|
16376
16514
|
command.params['resource'] = resource unless resource.nil?
|
16377
16515
|
command.query['fields'] = fields unless fields.nil?
|
@@ -16380,9 +16518,7 @@ module Google
|
|
16380
16518
|
execute_or_queue_command(command, &block)
|
16381
16519
|
end
|
16382
16520
|
|
16383
|
-
# Returns permissions that a caller has on the specified resource.
|
16384
|
-
# This resource is intended for use only by third-party partners who are
|
16385
|
-
# creating Cloud Marketplace images.
|
16521
|
+
# Returns permissions that a caller has on the specified resource.
|
16386
16522
|
# @param [String] project
|
16387
16523
|
# Project ID for this request.
|
16388
16524
|
# @param [String] resource
|
@@ -16407,8 +16543,8 @@ module Google
|
|
16407
16543
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16408
16544
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16409
16545
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16410
|
-
def
|
16411
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
16546
|
+
def test_interconnect_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16547
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/testIamPermissions', options)
|
16412
16548
|
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
16413
16549
|
command.request_object = test_permissions_request_object
|
16414
16550
|
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
@@ -16421,22 +16557,14 @@ module Google
|
|
16421
16557
|
execute_or_queue_command(command, &block)
|
16422
16558
|
end
|
16423
16559
|
|
16424
|
-
#
|
16425
|
-
#
|
16560
|
+
# Return a specified license code. License codes are mirrored across all
|
16561
|
+
# projects that have permissions to read the License Code. *Caution* This
|
16562
|
+
# resource is intended for use only by third-party partners who are creating
|
16563
|
+
# Cloud Marketplace images.
|
16426
16564
|
# @param [String] project
|
16427
16565
|
# Project ID for this request.
|
16428
|
-
# @param [String]
|
16429
|
-
#
|
16430
|
-
# @param [String] request_id
|
16431
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
16432
|
-
# that if you must retry your request, the server will know to ignore the
|
16433
|
-
# request if it has already been completed. For example, consider a situation
|
16434
|
-
# where you make an initial request and the request times out. If you make the
|
16435
|
-
# request again with the same request ID, the server can check if original
|
16436
|
-
# operation with the same request ID was received, and if so, will ignore the
|
16437
|
-
# second request. This prevents clients from accidentally creating duplicate
|
16438
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
16439
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16566
|
+
# @param [String] license_code
|
16567
|
+
# Number corresponding to the License code resource to return.
|
16440
16568
|
# @param [String] fields
|
16441
16569
|
# Selector specifying which fields to include in a partial response.
|
16442
16570
|
# @param [String] quota_user
|
@@ -16448,20 +16576,108 @@ module Google
|
|
16448
16576
|
# Request-specific options
|
16449
16577
|
#
|
16450
16578
|
# @yield [result, err] Result & error if block supplied
|
16451
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16579
|
+
# @yieldparam result [Google::Apis::ComputeBeta::LicenseCode] parsed result object
|
16452
16580
|
# @yieldparam err [StandardError] error object if request failed
|
16453
16581
|
#
|
16454
|
-
# @return [Google::Apis::ComputeBeta::
|
16582
|
+
# @return [Google::Apis::ComputeBeta::LicenseCode]
|
16455
16583
|
#
|
16456
16584
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16457
16585
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16458
16586
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16459
|
-
def
|
16460
|
-
command = make_simple_command(:
|
16587
|
+
def get_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16588
|
+
command = make_simple_command(:get, 'projects/{project}/global/licenseCodes/{licenseCode}', options)
|
16589
|
+
command.response_representation = Google::Apis::ComputeBeta::LicenseCode::Representation
|
16590
|
+
command.response_class = Google::Apis::ComputeBeta::LicenseCode
|
16591
|
+
command.params['project'] = project unless project.nil?
|
16592
|
+
command.params['licenseCode'] = license_code unless license_code.nil?
|
16593
|
+
command.query['fields'] = fields unless fields.nil?
|
16594
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16595
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16596
|
+
execute_or_queue_command(command, &block)
|
16597
|
+
end
|
16598
|
+
|
16599
|
+
# Returns permissions that a caller has on the specified resource. *Caution*
|
16600
|
+
# This resource is intended for use only by third-party partners who are
|
16601
|
+
# creating Cloud Marketplace images.
|
16602
|
+
# @param [String] project
|
16603
|
+
# Project ID for this request.
|
16604
|
+
# @param [String] resource
|
16605
|
+
# Name or id of the resource for this request.
|
16606
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
16607
|
+
# @param [String] fields
|
16608
|
+
# Selector specifying which fields to include in a partial response.
|
16609
|
+
# @param [String] quota_user
|
16610
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16611
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16612
|
+
# @param [String] user_ip
|
16613
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
16614
|
+
# @param [Google::Apis::RequestOptions] options
|
16615
|
+
# Request-specific options
|
16616
|
+
#
|
16617
|
+
# @yield [result, err] Result & error if block supplied
|
16618
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
16619
|
+
# @yieldparam err [StandardError] error object if request failed
|
16620
|
+
#
|
16621
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
16622
|
+
#
|
16623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16626
|
+
def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16627
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{resource}/testIamPermissions', options)
|
16628
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
16629
|
+
command.request_object = test_permissions_request_object
|
16630
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
16631
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
16632
|
+
command.params['project'] = project unless project.nil?
|
16633
|
+
command.params['resource'] = resource unless resource.nil?
|
16634
|
+
command.query['fields'] = fields unless fields.nil?
|
16635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16636
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16637
|
+
execute_or_queue_command(command, &block)
|
16638
|
+
end
|
16639
|
+
|
16640
|
+
# Deletes the specified license. *Caution* This resource is intended for use
|
16641
|
+
# only by third-party partners who are creating Cloud Marketplace images.
|
16642
|
+
# @param [String] project
|
16643
|
+
# Project ID for this request.
|
16644
|
+
# @param [String] license
|
16645
|
+
# Name of the license resource to delete.
|
16646
|
+
# @param [String] request_id
|
16647
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
16648
|
+
# that if you must retry your request, the server will know to ignore the
|
16649
|
+
# request if it has already been completed. For example, consider a situation
|
16650
|
+
# where you make an initial request and the request times out. If you make the
|
16651
|
+
# request again with the same request ID, the server can check if original
|
16652
|
+
# operation with the same request ID was received, and if so, will ignore the
|
16653
|
+
# second request. This prevents clients from accidentally creating duplicate
|
16654
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
16655
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16656
|
+
# @param [String] fields
|
16657
|
+
# Selector specifying which fields to include in a partial response.
|
16658
|
+
# @param [String] quota_user
|
16659
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16660
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16661
|
+
# @param [String] user_ip
|
16662
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
16663
|
+
# @param [Google::Apis::RequestOptions] options
|
16664
|
+
# Request-specific options
|
16665
|
+
#
|
16666
|
+
# @yield [result, err] Result & error if block supplied
|
16667
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
16668
|
+
# @yieldparam err [StandardError] error object if request failed
|
16669
|
+
#
|
16670
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
16671
|
+
#
|
16672
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16673
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16674
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16675
|
+
def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16676
|
+
command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options)
|
16461
16677
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16462
16678
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16463
16679
|
command.params['project'] = project unless project.nil?
|
16464
|
-
command.params['
|
16680
|
+
command.params['license'] = license unless license.nil?
|
16465
16681
|
command.query['requestId'] = request_id unless request_id.nil?
|
16466
16682
|
command.query['fields'] = fields unless fields.nil?
|
16467
16683
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -16469,11 +16685,13 @@ module Google
|
|
16469
16685
|
execute_or_queue_command(command, &block)
|
16470
16686
|
end
|
16471
16687
|
|
16472
|
-
# Returns the specified
|
16688
|
+
# Returns the specified License resource. *Caution* This resource is intended
|
16689
|
+
# for use only by third-party partners who are creating Cloud Marketplace images.
|
16690
|
+
#
|
16473
16691
|
# @param [String] project
|
16474
16692
|
# Project ID for this request.
|
16475
|
-
# @param [String]
|
16476
|
-
#
|
16693
|
+
# @param [String] license
|
16694
|
+
# Name of the License resource to return.
|
16477
16695
|
# @param [String] fields
|
16478
16696
|
# Selector specifying which fields to include in a partial response.
|
16479
16697
|
# @param [String] quota_user
|
@@ -16485,20 +16703,20 @@ module Google
|
|
16485
16703
|
# Request-specific options
|
16486
16704
|
#
|
16487
16705
|
# @yield [result, err] Result & error if block supplied
|
16488
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16706
|
+
# @yieldparam result [Google::Apis::ComputeBeta::License] parsed result object
|
16489
16707
|
# @yieldparam err [StandardError] error object if request failed
|
16490
16708
|
#
|
16491
|
-
# @return [Google::Apis::ComputeBeta::
|
16709
|
+
# @return [Google::Apis::ComputeBeta::License]
|
16492
16710
|
#
|
16493
16711
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16494
16712
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16495
16713
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16496
|
-
def
|
16497
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
16498
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16499
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16714
|
+
def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16715
|
+
command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options)
|
16716
|
+
command.response_representation = Google::Apis::ComputeBeta::License::Representation
|
16717
|
+
command.response_class = Google::Apis::ComputeBeta::License
|
16500
16718
|
command.params['project'] = project unless project.nil?
|
16501
|
-
command.params['
|
16719
|
+
command.params['license'] = license unless license.nil?
|
16502
16720
|
command.query['fields'] = fields unless fields.nil?
|
16503
16721
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16504
16722
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -16506,7 +16724,8 @@ module Google
|
|
16506
16724
|
end
|
16507
16725
|
|
16508
16726
|
# Gets the access control policy for a resource. May be empty if no such policy
|
16509
|
-
# or resource exists.
|
16727
|
+
# or resource exists. *Caution* This resource is intended for use only by third-
|
16728
|
+
# party partners who are creating Cloud Marketplace images.
|
16510
16729
|
# @param [String] project
|
16511
16730
|
# Project ID for this request.
|
16512
16731
|
# @param [String] resource
|
@@ -16532,8 +16751,8 @@ module Google
|
|
16532
16751
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16533
16752
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16534
16753
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16535
|
-
def
|
16536
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
16754
|
+
def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16755
|
+
command = make_simple_command(:get, 'projects/{project}/global/licenses/{resource}/getIamPolicy', options)
|
16537
16756
|
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
16538
16757
|
command.response_class = Google::Apis::ComputeBeta::Policy
|
16539
16758
|
command.params['project'] = project unless project.nil?
|
@@ -16545,13 +16764,12 @@ module Google
|
|
16545
16764
|
execute_or_queue_command(command, &block)
|
16546
16765
|
end
|
16547
16766
|
|
16548
|
-
#
|
16549
|
-
#
|
16550
|
-
#
|
16551
|
-
# applicable, the same subnetwork as the original instance.
|
16767
|
+
# Create a License resource in the specified project. *Caution* This resource is
|
16768
|
+
# intended for use only by third-party partners who are creating Cloud
|
16769
|
+
# Marketplace images.
|
16552
16770
|
# @param [String] project
|
16553
16771
|
# Project ID for this request.
|
16554
|
-
# @param [Google::Apis::ComputeBeta::
|
16772
|
+
# @param [Google::Apis::ComputeBeta::License] license_object
|
16555
16773
|
# @param [String] request_id
|
16556
16774
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16557
16775
|
# that if you must retry your request, the server will know to ignore the
|
@@ -16562,8 +16780,6 @@ module Google
|
|
16562
16780
|
# second request. This prevents clients from accidentally creating duplicate
|
16563
16781
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
16564
16782
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16565
|
-
# @param [String] source_instance
|
16566
|
-
# Required. Source instance that is used to create the machine image from.
|
16567
16783
|
# @param [String] fields
|
16568
16784
|
# Selector specifying which fields to include in a partial response.
|
16569
16785
|
# @param [String] quota_user
|
@@ -16583,23 +16799,27 @@ module Google
|
|
16583
16799
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16584
16800
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16585
16801
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16586
|
-
def
|
16587
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
16588
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
16589
|
-
command.request_object =
|
16802
|
+
def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16803
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenses', options)
|
16804
|
+
command.request_representation = Google::Apis::ComputeBeta::License::Representation
|
16805
|
+
command.request_object = license_object
|
16590
16806
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
16591
16807
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
16592
16808
|
command.params['project'] = project unless project.nil?
|
16593
16809
|
command.query['requestId'] = request_id unless request_id.nil?
|
16594
|
-
command.query['sourceInstance'] = source_instance unless source_instance.nil?
|
16595
16810
|
command.query['fields'] = fields unless fields.nil?
|
16596
16811
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16597
16812
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16598
16813
|
execute_or_queue_command(command, &block)
|
16599
16814
|
end
|
16600
16815
|
|
16601
|
-
# Retrieves
|
16602
|
-
#
|
16816
|
+
# Retrieves the list of licenses available in the specified project. This method
|
16817
|
+
# does not get any licenses that belong to other projects, including licenses
|
16818
|
+
# attached to publicly-available images, like Debian 9. If you want to get a
|
16819
|
+
# list of publicly-available licenses, use this method to make a request to the
|
16820
|
+
# respective image project, such as debian-cloud or windows-cloud. *Caution*
|
16821
|
+
# This resource is intended for use only by third-party partners who are
|
16822
|
+
# creating Cloud Marketplace images.
|
16603
16823
|
# @param [String] project
|
16604
16824
|
# Project ID for this request.
|
16605
16825
|
# @param [String] filter
|
@@ -16663,18 +16883,18 @@ module Google
|
|
16663
16883
|
# Request-specific options
|
16664
16884
|
#
|
16665
16885
|
# @yield [result, err] Result & error if block supplied
|
16666
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
16886
|
+
# @yieldparam result [Google::Apis::ComputeBeta::LicensesListResponse] parsed result object
|
16667
16887
|
# @yieldparam err [StandardError] error object if request failed
|
16668
16888
|
#
|
16669
|
-
# @return [Google::Apis::ComputeBeta::
|
16889
|
+
# @return [Google::Apis::ComputeBeta::LicensesListResponse]
|
16670
16890
|
#
|
16671
16891
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16672
16892
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16673
16893
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16674
|
-
def
|
16675
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
16676
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16677
|
-
command.response_class = Google::Apis::ComputeBeta::
|
16894
|
+
def list_licenses(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)
|
16895
|
+
command = make_simple_command(:get, 'projects/{project}/global/licenses', options)
|
16896
|
+
command.response_representation = Google::Apis::ComputeBeta::LicensesListResponse::Representation
|
16897
|
+
command.response_class = Google::Apis::ComputeBeta::LicensesListResponse
|
16678
16898
|
command.params['project'] = project unless project.nil?
|
16679
16899
|
command.query['filter'] = filter unless filter.nil?
|
16680
16900
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -16688,7 +16908,8 @@ module Google
|
|
16688
16908
|
end
|
16689
16909
|
|
16690
16910
|
# Sets the access control policy on the specified resource. Replaces any
|
16691
|
-
# existing policy.
|
16911
|
+
# existing policy. *Caution* This resource is intended for use only by third-
|
16912
|
+
# party partners who are creating Cloud Marketplace images.
|
16692
16913
|
# @param [String] project
|
16693
16914
|
# Project ID for this request.
|
16694
16915
|
# @param [String] resource
|
@@ -16713,8 +16934,8 @@ module Google
|
|
16713
16934
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16714
16935
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16715
16936
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16716
|
-
def
|
16717
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
16937
|
+
def set_license_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16938
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/setIamPolicy', options)
|
16718
16939
|
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
16719
16940
|
command.request_object = global_set_policy_request_object
|
16720
16941
|
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
@@ -16727,7 +16948,9 @@ module Google
|
|
16727
16948
|
execute_or_queue_command(command, &block)
|
16728
16949
|
end
|
16729
16950
|
|
16730
|
-
# Returns permissions that a caller has on the specified resource.
|
16951
|
+
# Returns permissions that a caller has on the specified resource. *Caution*
|
16952
|
+
# This resource is intended for use only by third-party partners who are
|
16953
|
+
# creating Cloud Marketplace images.
|
16731
16954
|
# @param [String] project
|
16732
16955
|
# Project ID for this request.
|
16733
16956
|
# @param [String] resource
|
@@ -16752,8 +16975,8 @@ module Google
|
|
16752
16975
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16753
16976
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16754
16977
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16755
|
-
def
|
16756
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
16978
|
+
def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16979
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/testIamPermissions', options)
|
16757
16980
|
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
16758
16981
|
command.request_object = test_permissions_request_object
|
16759
16982
|
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
@@ -16766,66 +16989,22 @@ module Google
|
|
16766
16989
|
execute_or_queue_command(command, &block)
|
16767
16990
|
end
|
16768
16991
|
|
16769
|
-
#
|
16992
|
+
# Deletes the specified machine image. Deleting a machine image is permanent and
|
16993
|
+
# cannot be undone.
|
16770
16994
|
# @param [String] project
|
16771
16995
|
# Project ID for this request.
|
16772
|
-
# @param [String]
|
16773
|
-
#
|
16774
|
-
#
|
16775
|
-
#
|
16776
|
-
#
|
16777
|
-
#
|
16778
|
-
#
|
16779
|
-
#
|
16780
|
-
#
|
16781
|
-
#
|
16782
|
-
#
|
16783
|
-
#
|
16784
|
-
# been defined. For example, to find all objects with `owner` label use: ```
|
16785
|
-
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
16786
|
-
# specify `scheduling.automaticRestart = false` to include instances only if
|
16787
|
-
# they are not scheduled for automatic restarts. You can use filtering on nested
|
16788
|
-
# fields to filter based on resource labels. To filter on multiple expressions,
|
16789
|
-
# provide each separate expression within parentheses. For example: ``` (
|
16790
|
-
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
16791
|
-
# default, each expression is an `AND` expression. However, you can include `AND`
|
16792
|
-
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
16793
|
-
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
16794
|
-
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
16795
|
-
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
16796
|
-
# expression with or without quotes or against multiple parenthesized
|
16797
|
-
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
16798
|
-
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
16799
|
-
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
16800
|
-
# regular expression using Google RE2 library syntax. The literal value must
|
16801
|
-
# match the entire field. For example, to filter for instances that do not end
|
16802
|
-
# with name "instance", you would use `name ne .*instance`.
|
16803
|
-
# @param [Boolean] include_all_scopes
|
16804
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
16805
|
-
# global) should be included in the response. For new resource types added after
|
16806
|
-
# this field, the flag has no effect as new resource types will always include
|
16807
|
-
# every visible scope for each scope type in response. For resource types which
|
16808
|
-
# predate this field, if this flag is omitted or false, only scopes of the scope
|
16809
|
-
# types where the resource type is expected to be found will be included.
|
16810
|
-
# @param [Fixnum] max_results
|
16811
|
-
# The maximum number of results per page that should be returned. If the number
|
16812
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
16813
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
16814
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
16815
|
-
# @param [String] order_by
|
16816
|
-
# Sorts list results by a certain order. By default, results are returned in
|
16817
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
16818
|
-
# descending order based on the creation timestamp using `orderBy="
|
16819
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
16820
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
16821
|
-
# resources like operations so that the newest operation is returned first.
|
16822
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
16823
|
-
# @param [String] page_token
|
16824
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
16825
|
-
# by a previous list request to get the next page of results.
|
16826
|
-
# @param [Boolean] return_partial_success
|
16827
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
16828
|
-
# failure. The default value is false.
|
16996
|
+
# @param [String] machine_image
|
16997
|
+
# The name of the machine image to delete.
|
16998
|
+
# @param [String] request_id
|
16999
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17000
|
+
# that if you must retry your request, the server will know to ignore the
|
17001
|
+
# request if it has already been completed. For example, consider a situation
|
17002
|
+
# where you make an initial request and the request times out. If you make the
|
17003
|
+
# request again with the same request ID, the server can check if original
|
17004
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17005
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17006
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17007
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
16829
17008
|
# @param [String] fields
|
16830
17009
|
# Selector specifying which fields to include in a partial response.
|
16831
17010
|
# @param [String] quota_user
|
@@ -16837,38 +17016,32 @@ module Google
|
|
16837
17016
|
# Request-specific options
|
16838
17017
|
#
|
16839
17018
|
# @yield [result, err] Result & error if block supplied
|
16840
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
17019
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
16841
17020
|
# @yieldparam err [StandardError] error object if request failed
|
16842
17021
|
#
|
16843
|
-
# @return [Google::Apis::ComputeBeta::
|
17022
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
16844
17023
|
#
|
16845
17024
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16846
17025
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16847
17026
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16848
|
-
def
|
16849
|
-
command = make_simple_command(:
|
16850
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16851
|
-
command.response_class = Google::Apis::ComputeBeta::
|
17027
|
+
def delete_machine_image(project, machine_image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17028
|
+
command = make_simple_command(:delete, 'projects/{project}/global/machineImages/{machineImage}', options)
|
17029
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17030
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
16852
17031
|
command.params['project'] = project unless project.nil?
|
16853
|
-
command.
|
16854
|
-
command.query['
|
16855
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
16856
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
16857
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
16858
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17032
|
+
command.params['machineImage'] = machine_image unless machine_image.nil?
|
17033
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16859
17034
|
command.query['fields'] = fields unless fields.nil?
|
16860
17035
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16861
17036
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16862
17037
|
execute_or_queue_command(command, &block)
|
16863
17038
|
end
|
16864
17039
|
|
16865
|
-
# Returns the specified machine
|
17040
|
+
# Returns the specified machine image.
|
16866
17041
|
# @param [String] project
|
16867
17042
|
# Project ID for this request.
|
16868
|
-
# @param [String]
|
16869
|
-
# The name of the
|
16870
|
-
# @param [String] machine_type
|
16871
|
-
# Name of the machine type to return.
|
17043
|
+
# @param [String] machine_image
|
17044
|
+
# The name of the machine image.
|
16872
17045
|
# @param [String] fields
|
16873
17046
|
# Selector specifying which fields to include in a partial response.
|
16874
17047
|
# @param [String] quota_user
|
@@ -16880,32 +17053,123 @@ module Google
|
|
16880
17053
|
# Request-specific options
|
16881
17054
|
#
|
16882
17055
|
# @yield [result, err] Result & error if block supplied
|
16883
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
17056
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MachineImage] parsed result object
|
16884
17057
|
# @yieldparam err [StandardError] error object if request failed
|
16885
17058
|
#
|
16886
|
-
# @return [Google::Apis::ComputeBeta::
|
17059
|
+
# @return [Google::Apis::ComputeBeta::MachineImage]
|
16887
17060
|
#
|
16888
17061
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16889
17062
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16890
17063
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16891
|
-
def
|
16892
|
-
command = make_simple_command(:get, 'projects/{project}/
|
16893
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16894
|
-
command.response_class = Google::Apis::ComputeBeta::
|
17064
|
+
def get_machine_image(project, machine_image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17065
|
+
command = make_simple_command(:get, 'projects/{project}/global/machineImages/{machineImage}', options)
|
17066
|
+
command.response_representation = Google::Apis::ComputeBeta::MachineImage::Representation
|
17067
|
+
command.response_class = Google::Apis::ComputeBeta::MachineImage
|
16895
17068
|
command.params['project'] = project unless project.nil?
|
16896
|
-
command.params['
|
16897
|
-
command.params['machineType'] = machine_type unless machine_type.nil?
|
17069
|
+
command.params['machineImage'] = machine_image unless machine_image.nil?
|
16898
17070
|
command.query['fields'] = fields unless fields.nil?
|
16899
17071
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16900
17072
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16901
17073
|
execute_or_queue_command(command, &block)
|
16902
17074
|
end
|
16903
17075
|
|
16904
|
-
#
|
17076
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
17077
|
+
# or resource exists.
|
17078
|
+
# @param [String] project
|
17079
|
+
# Project ID for this request.
|
17080
|
+
# @param [String] resource
|
17081
|
+
# Name or id of the resource for this request.
|
17082
|
+
# @param [Fixnum] options_requested_policy_version
|
17083
|
+
# Requested IAM Policy version.
|
17084
|
+
# @param [String] fields
|
17085
|
+
# Selector specifying which fields to include in a partial response.
|
17086
|
+
# @param [String] quota_user
|
17087
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17088
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17089
|
+
# @param [String] user_ip
|
17090
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17091
|
+
# @param [Google::Apis::RequestOptions] options
|
17092
|
+
# Request-specific options
|
17093
|
+
#
|
17094
|
+
# @yield [result, err] Result & error if block supplied
|
17095
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
17096
|
+
# @yieldparam err [StandardError] error object if request failed
|
17097
|
+
#
|
17098
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
17099
|
+
#
|
17100
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17101
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17102
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17103
|
+
def get_machine_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17104
|
+
command = make_simple_command(:get, 'projects/{project}/global/machineImages/{resource}/getIamPolicy', options)
|
17105
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
17106
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
17107
|
+
command.params['project'] = project unless project.nil?
|
17108
|
+
command.params['resource'] = resource unless resource.nil?
|
17109
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
17110
|
+
command.query['fields'] = fields unless fields.nil?
|
17111
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17112
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17113
|
+
execute_or_queue_command(command, &block)
|
17114
|
+
end
|
17115
|
+
|
17116
|
+
# Creates a machine image in the specified project using the data that is
|
17117
|
+
# included in the request. If you are creating a new machine image to update an
|
17118
|
+
# existing instance, your new machine image should use the same network or, if
|
17119
|
+
# applicable, the same subnetwork as the original instance.
|
17120
|
+
# @param [String] project
|
17121
|
+
# Project ID for this request.
|
17122
|
+
# @param [Google::Apis::ComputeBeta::MachineImage] machine_image_object
|
17123
|
+
# @param [String] request_id
|
17124
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17125
|
+
# that if you must retry your request, the server will know to ignore the
|
17126
|
+
# request if it has already been completed. For example, consider a situation
|
17127
|
+
# where you make an initial request and the request times out. If you make the
|
17128
|
+
# request again with the same request ID, the server can check if original
|
17129
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17130
|
+
# second request. This prevents clients from accidentally creating duplicate
|
17131
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
17132
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
17133
|
+
# @param [String] source_instance
|
17134
|
+
# Required. Source instance that is used to create the machine image from.
|
17135
|
+
# @param [String] fields
|
17136
|
+
# Selector specifying which fields to include in a partial response.
|
17137
|
+
# @param [String] quota_user
|
17138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17140
|
+
# @param [String] user_ip
|
17141
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17142
|
+
# @param [Google::Apis::RequestOptions] options
|
17143
|
+
# Request-specific options
|
17144
|
+
#
|
17145
|
+
# @yield [result, err] Result & error if block supplied
|
17146
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
17147
|
+
# @yieldparam err [StandardError] error object if request failed
|
17148
|
+
#
|
17149
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
17150
|
+
#
|
17151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17154
|
+
def insert_machine_image(project, machine_image_object = nil, request_id: nil, source_instance: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17155
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages', options)
|
17156
|
+
command.request_representation = Google::Apis::ComputeBeta::MachineImage::Representation
|
17157
|
+
command.request_object = machine_image_object
|
17158
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
17159
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
17160
|
+
command.params['project'] = project unless project.nil?
|
17161
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17162
|
+
command.query['sourceInstance'] = source_instance unless source_instance.nil?
|
17163
|
+
command.query['fields'] = fields unless fields.nil?
|
17164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17165
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17166
|
+
execute_or_queue_command(command, &block)
|
17167
|
+
end
|
17168
|
+
|
17169
|
+
# Retrieves a list of machine images that are contained within the specified
|
17170
|
+
# project.
|
16905
17171
|
# @param [String] project
|
16906
17172
|
# Project ID for this request.
|
16907
|
-
# @param [String] zone
|
16908
|
-
# The name of the zone for this request.
|
16909
17173
|
# @param [String] filter
|
16910
17174
|
# A filter expression that filters resources listed in the response. Most
|
16911
17175
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -16967,20 +17231,19 @@ module Google
|
|
16967
17231
|
# Request-specific options
|
16968
17232
|
#
|
16969
17233
|
# @yield [result, err] Result & error if block supplied
|
16970
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
17234
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MachineImageList] parsed result object
|
16971
17235
|
# @yieldparam err [StandardError] error object if request failed
|
16972
17236
|
#
|
16973
|
-
# @return [Google::Apis::ComputeBeta::
|
17237
|
+
# @return [Google::Apis::ComputeBeta::MachineImageList]
|
16974
17238
|
#
|
16975
17239
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16976
17240
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16977
17241
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16978
|
-
def
|
16979
|
-
command = make_simple_command(:get, 'projects/{project}/
|
16980
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
16981
|
-
command.response_class = Google::Apis::ComputeBeta::
|
17242
|
+
def list_machine_images(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)
|
17243
|
+
command = make_simple_command(:get, 'projects/{project}/global/machineImages', options)
|
17244
|
+
command.response_representation = Google::Apis::ComputeBeta::MachineImageList::Representation
|
17245
|
+
command.response_class = Google::Apis::ComputeBeta::MachineImageList
|
16982
17246
|
command.params['project'] = project unless project.nil?
|
16983
|
-
command.params['zone'] = zone unless zone.nil?
|
16984
17247
|
command.query['filter'] = filter unless filter.nil?
|
16985
17248
|
command.query['maxResults'] = max_results unless max_results.nil?
|
16986
17249
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -16992,8 +17255,86 @@ module Google
|
|
16992
17255
|
execute_or_queue_command(command, &block)
|
16993
17256
|
end
|
16994
17257
|
|
16995
|
-
#
|
16996
|
-
#
|
17258
|
+
# Sets the access control policy on the specified resource. Replaces any
|
17259
|
+
# existing policy.
|
17260
|
+
# @param [String] project
|
17261
|
+
# Project ID for this request.
|
17262
|
+
# @param [String] resource
|
17263
|
+
# Name or id of the resource for this request.
|
17264
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
17265
|
+
# @param [String] fields
|
17266
|
+
# Selector specifying which fields to include in a partial response.
|
17267
|
+
# @param [String] quota_user
|
17268
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17269
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17270
|
+
# @param [String] user_ip
|
17271
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17272
|
+
# @param [Google::Apis::RequestOptions] options
|
17273
|
+
# Request-specific options
|
17274
|
+
#
|
17275
|
+
# @yield [result, err] Result & error if block supplied
|
17276
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
17277
|
+
# @yieldparam err [StandardError] error object if request failed
|
17278
|
+
#
|
17279
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
17280
|
+
#
|
17281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17284
|
+
def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17285
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setIamPolicy', options)
|
17286
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
17287
|
+
command.request_object = global_set_policy_request_object
|
17288
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
17289
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
17290
|
+
command.params['project'] = project unless project.nil?
|
17291
|
+
command.params['resource'] = resource unless resource.nil?
|
17292
|
+
command.query['fields'] = fields unless fields.nil?
|
17293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17294
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17295
|
+
execute_or_queue_command(command, &block)
|
17296
|
+
end
|
17297
|
+
|
17298
|
+
# Returns permissions that a caller has on the specified resource.
|
17299
|
+
# @param [String] project
|
17300
|
+
# Project ID for this request.
|
17301
|
+
# @param [String] resource
|
17302
|
+
# Name or id of the resource for this request.
|
17303
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
17304
|
+
# @param [String] fields
|
17305
|
+
# Selector specifying which fields to include in a partial response.
|
17306
|
+
# @param [String] quota_user
|
17307
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17308
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17309
|
+
# @param [String] user_ip
|
17310
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17311
|
+
# @param [Google::Apis::RequestOptions] options
|
17312
|
+
# Request-specific options
|
17313
|
+
#
|
17314
|
+
# @yield [result, err] Result & error if block supplied
|
17315
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
17316
|
+
# @yieldparam err [StandardError] error object if request failed
|
17317
|
+
#
|
17318
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
17319
|
+
#
|
17320
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17321
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17322
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17323
|
+
def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17324
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/testIamPermissions', options)
|
17325
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
17326
|
+
command.request_object = test_permissions_request_object
|
17327
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
17328
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
17329
|
+
command.params['project'] = project unless project.nil?
|
17330
|
+
command.params['resource'] = resource unless resource.nil?
|
17331
|
+
command.query['fields'] = fields unless fields.nil?
|
17332
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17333
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17334
|
+
execute_or_queue_command(command, &block)
|
17335
|
+
end
|
17336
|
+
|
17337
|
+
# Retrieves an aggregated list of machine types.
|
16997
17338
|
# @param [String] project
|
16998
17339
|
# Project ID for this request.
|
16999
17340
|
# @param [String] filter
|
@@ -17064,18 +17405,18 @@ module Google
|
|
17064
17405
|
# Request-specific options
|
17065
17406
|
#
|
17066
17407
|
# @yield [result, err] Result & error if block supplied
|
17067
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
17408
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MachineTypeAggregatedList] parsed result object
|
17068
17409
|
# @yieldparam err [StandardError] error object if request failed
|
17069
17410
|
#
|
17070
|
-
# @return [Google::Apis::ComputeBeta::
|
17411
|
+
# @return [Google::Apis::ComputeBeta::MachineTypeAggregatedList]
|
17071
17412
|
#
|
17072
17413
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17073
17414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17074
17415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17075
|
-
def
|
17076
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/
|
17077
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
17078
|
-
command.response_class = Google::Apis::ComputeBeta::
|
17416
|
+
def list_aggregated_machine_types(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)
|
17417
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options)
|
17418
|
+
command.response_representation = Google::Apis::ComputeBeta::MachineTypeAggregatedList::Representation
|
17419
|
+
command.response_class = Google::Apis::ComputeBeta::MachineTypeAggregatedList
|
17079
17420
|
command.params['project'] = project unless project.nil?
|
17080
17421
|
command.query['filter'] = filter unless filter.nil?
|
17081
17422
|
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
@@ -17089,20 +17430,247 @@ module Google
|
|
17089
17430
|
execute_or_queue_command(command, &block)
|
17090
17431
|
end
|
17091
17432
|
|
17092
|
-
#
|
17433
|
+
# Returns the specified machine type.
|
17093
17434
|
# @param [String] project
|
17094
17435
|
# Project ID for this request.
|
17095
|
-
# @param [String]
|
17096
|
-
#
|
17097
|
-
# @param [String]
|
17098
|
-
# Name of the
|
17099
|
-
# @param [String]
|
17100
|
-
#
|
17101
|
-
#
|
17102
|
-
#
|
17103
|
-
#
|
17104
|
-
#
|
17105
|
-
#
|
17436
|
+
# @param [String] zone
|
17437
|
+
# The name of the zone for this request.
|
17438
|
+
# @param [String] machine_type
|
17439
|
+
# Name of the machine type to return.
|
17440
|
+
# @param [String] fields
|
17441
|
+
# Selector specifying which fields to include in a partial response.
|
17442
|
+
# @param [String] quota_user
|
17443
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17444
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17445
|
+
# @param [String] user_ip
|
17446
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17447
|
+
# @param [Google::Apis::RequestOptions] options
|
17448
|
+
# Request-specific options
|
17449
|
+
#
|
17450
|
+
# @yield [result, err] Result & error if block supplied
|
17451
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MachineType] parsed result object
|
17452
|
+
# @yieldparam err [StandardError] error object if request failed
|
17453
|
+
#
|
17454
|
+
# @return [Google::Apis::ComputeBeta::MachineType]
|
17455
|
+
#
|
17456
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17457
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17458
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17459
|
+
def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17460
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options)
|
17461
|
+
command.response_representation = Google::Apis::ComputeBeta::MachineType::Representation
|
17462
|
+
command.response_class = Google::Apis::ComputeBeta::MachineType
|
17463
|
+
command.params['project'] = project unless project.nil?
|
17464
|
+
command.params['zone'] = zone unless zone.nil?
|
17465
|
+
command.params['machineType'] = machine_type unless machine_type.nil?
|
17466
|
+
command.query['fields'] = fields unless fields.nil?
|
17467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17468
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17469
|
+
execute_or_queue_command(command, &block)
|
17470
|
+
end
|
17471
|
+
|
17472
|
+
# Retrieves a list of machine types available to the specified project.
|
17473
|
+
# @param [String] project
|
17474
|
+
# Project ID for this request.
|
17475
|
+
# @param [String] zone
|
17476
|
+
# The name of the zone for this request.
|
17477
|
+
# @param [String] filter
|
17478
|
+
# A filter expression that filters resources listed in the response. Most
|
17479
|
+
# Compute resources support two types of filter expressions: expressions that
|
17480
|
+
# support regular expressions and expressions that follow API improvement
|
17481
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
17482
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
17483
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
17484
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
17485
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
17486
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
17487
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
17488
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
17489
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
17490
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
17491
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
17492
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
17493
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
17494
|
+
# provide each separate expression within parentheses. For example: ``` (
|
17495
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
17496
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
17497
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
17498
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
17499
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
17500
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
17501
|
+
# expression with or without quotes or against multiple parenthesized
|
17502
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
17503
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
17504
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
17505
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
17506
|
+
# match the entire field. For example, to filter for instances that do not end
|
17507
|
+
# with name "instance", you would use `name ne .*instance`.
|
17508
|
+
# @param [Fixnum] max_results
|
17509
|
+
# The maximum number of results per page that should be returned. If the number
|
17510
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
17511
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
17512
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
17513
|
+
# @param [String] order_by
|
17514
|
+
# Sorts list results by a certain order. By default, results are returned in
|
17515
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
17516
|
+
# descending order based on the creation timestamp using `orderBy="
|
17517
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
17518
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
17519
|
+
# resources like operations so that the newest operation is returned first.
|
17520
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
17521
|
+
# @param [String] page_token
|
17522
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
17523
|
+
# by a previous list request to get the next page of results.
|
17524
|
+
# @param [Boolean] return_partial_success
|
17525
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
17526
|
+
# failure. The default value is false.
|
17527
|
+
# @param [String] fields
|
17528
|
+
# Selector specifying which fields to include in a partial response.
|
17529
|
+
# @param [String] quota_user
|
17530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17532
|
+
# @param [String] user_ip
|
17533
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17534
|
+
# @param [Google::Apis::RequestOptions] options
|
17535
|
+
# Request-specific options
|
17536
|
+
#
|
17537
|
+
# @yield [result, err] Result & error if block supplied
|
17538
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MachineTypeList] parsed result object
|
17539
|
+
# @yieldparam err [StandardError] error object if request failed
|
17540
|
+
#
|
17541
|
+
# @return [Google::Apis::ComputeBeta::MachineTypeList]
|
17542
|
+
#
|
17543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17546
|
+
def list_machine_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)
|
17547
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes', options)
|
17548
|
+
command.response_representation = Google::Apis::ComputeBeta::MachineTypeList::Representation
|
17549
|
+
command.response_class = Google::Apis::ComputeBeta::MachineTypeList
|
17550
|
+
command.params['project'] = project unless project.nil?
|
17551
|
+
command.params['zone'] = zone unless zone.nil?
|
17552
|
+
command.query['filter'] = filter unless filter.nil?
|
17553
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
17554
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
17555
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17556
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17557
|
+
command.query['fields'] = fields unless fields.nil?
|
17558
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17559
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17560
|
+
execute_or_queue_command(command, &block)
|
17561
|
+
end
|
17562
|
+
|
17563
|
+
# Retrieves the list of all NetworkAttachment resources, regional and global,
|
17564
|
+
# available to the specified project.
|
17565
|
+
# @param [String] project
|
17566
|
+
# Project ID for this request.
|
17567
|
+
# @param [String] filter
|
17568
|
+
# A filter expression that filters resources listed in the response. Most
|
17569
|
+
# Compute resources support two types of filter expressions: expressions that
|
17570
|
+
# support regular expressions and expressions that follow API improvement
|
17571
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
17572
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
17573
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
17574
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
17575
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
17576
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
17577
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
17578
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
17579
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
17580
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
17581
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
17582
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
17583
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
17584
|
+
# provide each separate expression within parentheses. For example: ``` (
|
17585
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
17586
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
17587
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
17588
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
17589
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
17590
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
17591
|
+
# expression with or without quotes or against multiple parenthesized
|
17592
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
17593
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
17594
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
17595
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
17596
|
+
# match the entire field. For example, to filter for instances that do not end
|
17597
|
+
# with name "instance", you would use `name ne .*instance`.
|
17598
|
+
# @param [Boolean] include_all_scopes
|
17599
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
17600
|
+
# global) should be included in the response. For new resource types added after
|
17601
|
+
# this field, the flag has no effect as new resource types will always include
|
17602
|
+
# every visible scope for each scope type in response. For resource types which
|
17603
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
17604
|
+
# types where the resource type is expected to be found will be included.
|
17605
|
+
# @param [Fixnum] max_results
|
17606
|
+
# The maximum number of results per page that should be returned. If the number
|
17607
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
17608
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
17609
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
17610
|
+
# @param [String] order_by
|
17611
|
+
# Sorts list results by a certain order. By default, results are returned in
|
17612
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
17613
|
+
# descending order based on the creation timestamp using `orderBy="
|
17614
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
17615
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
17616
|
+
# resources like operations so that the newest operation is returned first.
|
17617
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
17618
|
+
# @param [String] page_token
|
17619
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
17620
|
+
# by a previous list request to get the next page of results.
|
17621
|
+
# @param [Boolean] return_partial_success
|
17622
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
17623
|
+
# failure. The default value is false.
|
17624
|
+
# @param [String] fields
|
17625
|
+
# Selector specifying which fields to include in a partial response.
|
17626
|
+
# @param [String] quota_user
|
17627
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17628
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17629
|
+
# @param [String] user_ip
|
17630
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17631
|
+
# @param [Google::Apis::RequestOptions] options
|
17632
|
+
# Request-specific options
|
17633
|
+
#
|
17634
|
+
# @yield [result, err] Result & error if block supplied
|
17635
|
+
# @yieldparam result [Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList] parsed result object
|
17636
|
+
# @yieldparam err [StandardError] error object if request failed
|
17637
|
+
#
|
17638
|
+
# @return [Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList]
|
17639
|
+
#
|
17640
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17641
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17642
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17643
|
+
def aggregated_network_attachment_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)
|
17644
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkAttachments', options)
|
17645
|
+
command.response_representation = Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList::Representation
|
17646
|
+
command.response_class = Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList
|
17647
|
+
command.params['project'] = project unless project.nil?
|
17648
|
+
command.query['filter'] = filter unless filter.nil?
|
17649
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
17650
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
17651
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
17652
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17653
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17654
|
+
command.query['fields'] = fields unless fields.nil?
|
17655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17656
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17657
|
+
execute_or_queue_command(command, &block)
|
17658
|
+
end
|
17659
|
+
|
17660
|
+
# Deletes the specified NetworkAttachment in the given scope
|
17661
|
+
# @param [String] project
|
17662
|
+
# Project ID for this request.
|
17663
|
+
# @param [String] region
|
17664
|
+
# Name of the region of this request.
|
17665
|
+
# @param [String] network_attachment
|
17666
|
+
# Name of the NetworkAttachment resource to delete.
|
17667
|
+
# @param [String] request_id
|
17668
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17669
|
+
# that if you must retry your request, the server will know to ignore the
|
17670
|
+
# request if it has already been completed. For example, consider a situation
|
17671
|
+
# where you make an initial request and the request times out. If you make the
|
17672
|
+
# request again with the same request ID, the server can check if original
|
17673
|
+
# operation with the same request ID was received, and if so, will ignore the
|
17106
17674
|
# second request. This prevents clients from accidentally creating duplicate
|
17107
17675
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
17108
17676
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
|
@@ -27746,47 +28314,439 @@ module Google
|
|
27746
28314
|
# Request-specific options
|
27747
28315
|
#
|
27748
28316
|
# @yield [result, err] Result & error if block supplied
|
27749
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28317
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28318
|
+
# @yieldparam err [StandardError] error object if request failed
|
28319
|
+
#
|
28320
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28321
|
+
#
|
28322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28325
|
+
def patch_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_patch_instance_config_req_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28326
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs', options)
|
28327
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerPatchInstanceConfigReq::Representation
|
28328
|
+
command.request_object = region_instance_group_manager_patch_instance_config_req_object
|
28329
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28330
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28331
|
+
command.params['project'] = project unless project.nil?
|
28332
|
+
command.params['region'] = region unless region.nil?
|
28333
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28334
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28335
|
+
command.query['fields'] = fields unless fields.nil?
|
28336
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28337
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28338
|
+
execute_or_queue_command(command, &block)
|
28339
|
+
end
|
28340
|
+
|
28341
|
+
# Flags the specified VM instances in the managed instance group to be
|
28342
|
+
# immediately recreated. Each instance is recreated using the group's current
|
28343
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
28344
|
+
# the instances have not yet been recreated. You must separately verify the
|
28345
|
+
# status of each instance by checking its currentAction field; for more
|
28346
|
+
# information, see Checking the status of managed instances. If the group is
|
28347
|
+
# part of a backend service that has enabled connection draining, it can take up
|
28348
|
+
# to 60 seconds after the connection draining duration has elapsed before the VM
|
28349
|
+
# instance is removed or deleted. You can specify a maximum of 1000 instances
|
28350
|
+
# with this method per request.
|
28351
|
+
# @param [String] project
|
28352
|
+
# Project ID for this request.
|
28353
|
+
# @param [String] region
|
28354
|
+
# Name of the region scoping this request.
|
28355
|
+
# @param [String] instance_group_manager
|
28356
|
+
# Name of the managed instance group.
|
28357
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersRecreateRequest] region_instance_group_managers_recreate_request_object
|
28358
|
+
# @param [String] request_id
|
28359
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28360
|
+
# that if you must retry your request, the server will know to ignore the
|
28361
|
+
# request if it has already been completed. For example, consider a situation
|
28362
|
+
# where you make an initial request and the request times out. If you make the
|
28363
|
+
# request again with the same request ID, the server can check if original
|
28364
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28365
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28366
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28367
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28368
|
+
# @param [String] fields
|
28369
|
+
# Selector specifying which fields to include in a partial response.
|
28370
|
+
# @param [String] quota_user
|
28371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28373
|
+
# @param [String] user_ip
|
28374
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28375
|
+
# @param [Google::Apis::RequestOptions] options
|
28376
|
+
# Request-specific options
|
28377
|
+
#
|
28378
|
+
# @yield [result, err] Result & error if block supplied
|
28379
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28380
|
+
# @yieldparam err [StandardError] error object if request failed
|
28381
|
+
#
|
28382
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28383
|
+
#
|
28384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28387
|
+
def recreate_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_recreate_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28388
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options)
|
28389
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersRecreateRequest::Representation
|
28390
|
+
command.request_object = region_instance_group_managers_recreate_request_object
|
28391
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28392
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28393
|
+
command.params['project'] = project unless project.nil?
|
28394
|
+
command.params['region'] = region unless region.nil?
|
28395
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28396
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28397
|
+
command.query['fields'] = fields unless fields.nil?
|
28398
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28399
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28400
|
+
execute_or_queue_command(command, &block)
|
28401
|
+
end
|
28402
|
+
|
28403
|
+
# Changes the intended size of the managed instance group. If you increase the
|
28404
|
+
# size, the group creates new instances using the current instance template. If
|
28405
|
+
# you decrease the size, the group deletes one or more instances. The resize
|
28406
|
+
# operation is marked DONE if the resize request is successful. The underlying
|
28407
|
+
# actions take additional time. You must separately verify the status of the
|
28408
|
+
# creating or deleting actions with the listmanagedinstances method. If the
|
28409
|
+
# group is part of a backend service that has enabled connection draining, it
|
28410
|
+
# can take up to 60 seconds after the connection draining duration has elapsed
|
28411
|
+
# before the VM instance is removed or deleted.
|
28412
|
+
# @param [String] project
|
28413
|
+
# Project ID for this request.
|
28414
|
+
# @param [String] region
|
28415
|
+
# Name of the region scoping this request.
|
28416
|
+
# @param [String] instance_group_manager
|
28417
|
+
# Name of the managed instance group.
|
28418
|
+
# @param [Fixnum] size
|
28419
|
+
# Number of instances that should exist in this instance group manager.
|
28420
|
+
# @param [String] request_id
|
28421
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28422
|
+
# that if you must retry your request, the server will know to ignore the
|
28423
|
+
# request if it has already been completed. For example, consider a situation
|
28424
|
+
# where you make an initial request and the request times out. If you make the
|
28425
|
+
# request again with the same request ID, the server can check if original
|
28426
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28427
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28428
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28429
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28430
|
+
# @param [String] fields
|
28431
|
+
# Selector specifying which fields to include in a partial response.
|
28432
|
+
# @param [String] quota_user
|
28433
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28434
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28435
|
+
# @param [String] user_ip
|
28436
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28437
|
+
# @param [Google::Apis::RequestOptions] options
|
28438
|
+
# Request-specific options
|
28439
|
+
#
|
28440
|
+
# @yield [result, err] Result & error if block supplied
|
28441
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28442
|
+
# @yieldparam err [StandardError] error object if request failed
|
28443
|
+
#
|
28444
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28445
|
+
#
|
28446
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28447
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28448
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28449
|
+
def resize_region_instance_group_manager(project, region, instance_group_manager, size, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28450
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize', options)
|
28451
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28452
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28453
|
+
command.params['project'] = project unless project.nil?
|
28454
|
+
command.params['region'] = region unless region.nil?
|
28455
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28456
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28457
|
+
command.query['size'] = size unless size.nil?
|
28458
|
+
command.query['fields'] = fields unless fields.nil?
|
28459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28460
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28461
|
+
execute_or_queue_command(command, &block)
|
28462
|
+
end
|
28463
|
+
|
28464
|
+
# Resizes the regional managed instance group with advanced configuration
|
28465
|
+
# options like disabling creation retries. This is an extended version of the
|
28466
|
+
# resize method. If you increase the size, the group creates new instances using
|
28467
|
+
# the current instance template. If you decrease the size, the group deletes one
|
28468
|
+
# or more instances. The resize operation is marked DONE if the resize request
|
28469
|
+
# is successful. The underlying actions take additional time. You must
|
28470
|
+
# separately verify the status of the creating or deleting actions with the get
|
28471
|
+
# or listmanagedinstances method. If the group is part of a backend service that
|
28472
|
+
# has enabled connection draining, it can take up to 60 seconds after the
|
28473
|
+
# connection draining duration has elapsed before the VM instance is removed or
|
28474
|
+
# deleted.
|
28475
|
+
# @param [String] project
|
28476
|
+
# Project ID for this request.
|
28477
|
+
# @param [String] region
|
28478
|
+
# Name of the region scoping this request. It must be a string that meets the
|
28479
|
+
# requirements in RFC1035.
|
28480
|
+
# @param [String] instance_group_manager
|
28481
|
+
# The name of the managed instance group. It must be a string that meets the
|
28482
|
+
# requirements in RFC1035.
|
28483
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersResizeAdvancedRequest] region_instance_group_managers_resize_advanced_request_object
|
28484
|
+
# @param [String] request_id
|
28485
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28486
|
+
# that if you must retry your request, the server will know to ignore the
|
28487
|
+
# request if it has already been completed. For example, consider a situation
|
28488
|
+
# where you make an initial request and the request times out. If you make the
|
28489
|
+
# request again with the same request ID, the server can check if original
|
28490
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28491
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28492
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28493
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28494
|
+
# @param [String] fields
|
28495
|
+
# Selector specifying which fields to include in a partial response.
|
28496
|
+
# @param [String] quota_user
|
28497
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28498
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28499
|
+
# @param [String] user_ip
|
28500
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28501
|
+
# @param [Google::Apis::RequestOptions] options
|
28502
|
+
# Request-specific options
|
28503
|
+
#
|
28504
|
+
# @yield [result, err] Result & error if block supplied
|
28505
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28506
|
+
# @yieldparam err [StandardError] error object if request failed
|
28507
|
+
#
|
28508
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28509
|
+
#
|
28510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28513
|
+
def resize_region_instance_group_manager_advanced(project, region, instance_group_manager, region_instance_group_managers_resize_advanced_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28514
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options)
|
28515
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersResizeAdvancedRequest::Representation
|
28516
|
+
command.request_object = region_instance_group_managers_resize_advanced_request_object
|
28517
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28518
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28519
|
+
command.params['project'] = project unless project.nil?
|
28520
|
+
command.params['region'] = region unless region.nil?
|
28521
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28522
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28523
|
+
command.query['fields'] = fields unless fields.nil?
|
28524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28525
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28526
|
+
execute_or_queue_command(command, &block)
|
28527
|
+
end
|
28528
|
+
|
28529
|
+
# Modifies the autohealing policy for the instances in this managed instance
|
28530
|
+
# group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
|
28531
|
+
# patch instead.
|
28532
|
+
# @param [String] project
|
28533
|
+
# Project ID for this request.
|
28534
|
+
# @param [String] region
|
28535
|
+
# Name of the region scoping this request.
|
28536
|
+
# @param [String] instance_group_manager
|
28537
|
+
# Name of the managed instance group.
|
28538
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetAutoHealingRequest] region_instance_group_managers_set_auto_healing_request_object
|
28539
|
+
# @param [String] request_id
|
28540
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28541
|
+
# that if you must retry your request, the server will know to ignore the
|
28542
|
+
# request if it has already been completed. For example, consider a situation
|
28543
|
+
# where you make an initial request and the request times out. If you make the
|
28544
|
+
# request again with the same request ID, the server can check if original
|
28545
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28546
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28547
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28548
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28549
|
+
# @param [String] fields
|
28550
|
+
# Selector specifying which fields to include in a partial response.
|
28551
|
+
# @param [String] quota_user
|
28552
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28553
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28554
|
+
# @param [String] user_ip
|
28555
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28556
|
+
# @param [Google::Apis::RequestOptions] options
|
28557
|
+
# Request-specific options
|
28558
|
+
#
|
28559
|
+
# @yield [result, err] Result & error if block supplied
|
28560
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28561
|
+
# @yieldparam err [StandardError] error object if request failed
|
28562
|
+
#
|
28563
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28564
|
+
#
|
28565
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28566
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28567
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28568
|
+
def set_region_instance_group_manager_auto_healing_policies(project, region, instance_group_manager, region_instance_group_managers_set_auto_healing_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28569
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options)
|
28570
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetAutoHealingRequest::Representation
|
28571
|
+
command.request_object = region_instance_group_managers_set_auto_healing_request_object
|
28572
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28573
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28574
|
+
command.params['project'] = project unless project.nil?
|
28575
|
+
command.params['region'] = region unless region.nil?
|
28576
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28577
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28578
|
+
command.query['fields'] = fields unless fields.nil?
|
28579
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28580
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28581
|
+
execute_or_queue_command(command, &block)
|
28582
|
+
end
|
28583
|
+
|
28584
|
+
# Sets the instance template to use when creating new instances or recreating
|
28585
|
+
# instances in this group. Existing instances are not affected.
|
28586
|
+
# @param [String] project
|
28587
|
+
# Project ID for this request.
|
28588
|
+
# @param [String] region
|
28589
|
+
# Name of the region scoping this request.
|
28590
|
+
# @param [String] instance_group_manager
|
28591
|
+
# The name of the managed instance group.
|
28592
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTemplateRequest] region_instance_group_managers_set_template_request_object
|
28593
|
+
# @param [String] request_id
|
28594
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28595
|
+
# that if you must retry your request, the server will know to ignore the
|
28596
|
+
# request if it has already been completed. For example, consider a situation
|
28597
|
+
# where you make an initial request and the request times out. If you make the
|
28598
|
+
# request again with the same request ID, the server can check if original
|
28599
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28600
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28601
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28602
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28603
|
+
# @param [String] fields
|
28604
|
+
# Selector specifying which fields to include in a partial response.
|
28605
|
+
# @param [String] quota_user
|
28606
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28607
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28608
|
+
# @param [String] user_ip
|
28609
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28610
|
+
# @param [Google::Apis::RequestOptions] options
|
28611
|
+
# Request-specific options
|
28612
|
+
#
|
28613
|
+
# @yield [result, err] Result & error if block supplied
|
28614
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28615
|
+
# @yieldparam err [StandardError] error object if request failed
|
28616
|
+
#
|
28617
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28618
|
+
#
|
28619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28622
|
+
def set_region_instance_group_manager_instance_template(project, region, instance_group_manager, region_instance_group_managers_set_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28623
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options)
|
28624
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTemplateRequest::Representation
|
28625
|
+
command.request_object = region_instance_group_managers_set_template_request_object
|
28626
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28627
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28628
|
+
command.params['project'] = project unless project.nil?
|
28629
|
+
command.params['region'] = region unless region.nil?
|
28630
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28631
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28632
|
+
command.query['fields'] = fields unless fields.nil?
|
28633
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28634
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28635
|
+
execute_or_queue_command(command, &block)
|
28636
|
+
end
|
28637
|
+
|
28638
|
+
# Modifies the target pools to which all new instances in this group are
|
28639
|
+
# assigned. Existing instances in the group are not affected.
|
28640
|
+
# @param [String] project
|
28641
|
+
# Project ID for this request.
|
28642
|
+
# @param [String] region
|
28643
|
+
# Name of the region scoping this request.
|
28644
|
+
# @param [String] instance_group_manager
|
28645
|
+
# Name of the managed instance group.
|
28646
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest] region_instance_group_managers_set_target_pools_request_object
|
28647
|
+
# @param [String] request_id
|
28648
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28649
|
+
# that if you must retry your request, the server will know to ignore the
|
28650
|
+
# request if it has already been completed. For example, consider a situation
|
28651
|
+
# where you make an initial request and the request times out. If you make the
|
28652
|
+
# request again with the same request ID, the server can check if original
|
28653
|
+
# operation with the same request ID was received, and if so, will ignore the
|
28654
|
+
# second request. This prevents clients from accidentally creating duplicate
|
28655
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
28656
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28657
|
+
# @param [String] fields
|
28658
|
+
# Selector specifying which fields to include in a partial response.
|
28659
|
+
# @param [String] quota_user
|
28660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28662
|
+
# @param [String] user_ip
|
28663
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28664
|
+
# @param [Google::Apis::RequestOptions] options
|
28665
|
+
# Request-specific options
|
28666
|
+
#
|
28667
|
+
# @yield [result, err] Result & error if block supplied
|
28668
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28669
|
+
# @yieldparam err [StandardError] error object if request failed
|
28670
|
+
#
|
28671
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28672
|
+
#
|
28673
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28674
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28675
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28676
|
+
def set_region_instance_group_manager_target_pools(project, region, instance_group_manager, region_instance_group_managers_set_target_pools_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28677
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options)
|
28678
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest::Representation
|
28679
|
+
command.request_object = region_instance_group_managers_set_target_pools_request_object
|
28680
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28681
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28682
|
+
command.params['project'] = project unless project.nil?
|
28683
|
+
command.params['region'] = region unless region.nil?
|
28684
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28685
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28686
|
+
command.query['fields'] = fields unless fields.nil?
|
28687
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28688
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28689
|
+
execute_or_queue_command(command, &block)
|
28690
|
+
end
|
28691
|
+
|
28692
|
+
# Returns permissions that a caller has on the specified resource.
|
28693
|
+
# @param [String] project
|
28694
|
+
# Project ID for this request.
|
28695
|
+
# @param [String] region
|
28696
|
+
# The name of the region for this request.
|
28697
|
+
# @param [String] resource
|
28698
|
+
# Name or id of the resource for this request.
|
28699
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
28700
|
+
# @param [String] fields
|
28701
|
+
# Selector specifying which fields to include in a partial response.
|
28702
|
+
# @param [String] quota_user
|
28703
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
28704
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28705
|
+
# @param [String] user_ip
|
28706
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28707
|
+
# @param [Google::Apis::RequestOptions] options
|
28708
|
+
# Request-specific options
|
28709
|
+
#
|
28710
|
+
# @yield [result, err] Result & error if block supplied
|
28711
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
27750
28712
|
# @yieldparam err [StandardError] error object if request failed
|
27751
28713
|
#
|
27752
|
-
# @return [Google::Apis::ComputeBeta::
|
28714
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
27753
28715
|
#
|
27754
28716
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27755
28717
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27756
28718
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27757
|
-
def
|
27758
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{
|
27759
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
27760
|
-
command.request_object =
|
27761
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
27762
|
-
command.response_class = Google::Apis::ComputeBeta::
|
28719
|
+
def test_region_instance_group_manager_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28720
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions', options)
|
28721
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
28722
|
+
command.request_object = test_permissions_request_object
|
28723
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
28724
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
27763
28725
|
command.params['project'] = project unless project.nil?
|
27764
28726
|
command.params['region'] = region unless region.nil?
|
27765
|
-
command.params['
|
27766
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
28727
|
+
command.params['resource'] = resource unless resource.nil?
|
27767
28728
|
command.query['fields'] = fields unless fields.nil?
|
27768
28729
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27769
28730
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27770
28731
|
execute_or_queue_command(command, &block)
|
27771
28732
|
end
|
27772
28733
|
|
27773
|
-
#
|
27774
|
-
#
|
27775
|
-
#
|
27776
|
-
# the
|
27777
|
-
#
|
27778
|
-
#
|
27779
|
-
#
|
27780
|
-
#
|
27781
|
-
#
|
27782
|
-
# with this method per request.
|
28734
|
+
# Updates a managed instance group using the information that you specify in the
|
28735
|
+
# request. This operation is marked as DONE when the group is updated even if
|
28736
|
+
# the instances in the group have not yet been updated. You must separately
|
28737
|
+
# verify the status of the individual instances with the listmanagedinstances
|
28738
|
+
# method. If you update your group to specify a new template or instance
|
28739
|
+
# configuration, it's possible that your intended specification for each VM in
|
28740
|
+
# the group is different from the current state of that VM. To learn how to
|
28741
|
+
# apply an updated configuration to the VMs in a MIG, see Updating instances in
|
28742
|
+
# a MIG.
|
27783
28743
|
# @param [String] project
|
27784
28744
|
# Project ID for this request.
|
27785
28745
|
# @param [String] region
|
27786
28746
|
# Name of the region scoping this request.
|
27787
28747
|
# @param [String] instance_group_manager
|
27788
|
-
#
|
27789
|
-
# @param [Google::Apis::ComputeBeta::
|
28748
|
+
# The name of the instance group manager.
|
28749
|
+
# @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
|
27790
28750
|
# @param [String] request_id
|
27791
28751
|
# An optional request ID to identify requests. Specify a unique request ID so
|
27792
28752
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27816,10 +28776,10 @@ module Google
|
|
27816
28776
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27817
28777
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27818
28778
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27819
|
-
def
|
27820
|
-
command = make_simple_command(:
|
27821
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
27822
|
-
command.request_object =
|
28779
|
+
def update_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28780
|
+
command = make_simple_command(:put, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
|
28781
|
+
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
|
28782
|
+
command.request_object = instance_group_manager_object
|
27823
28783
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
27824
28784
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
27825
28785
|
command.params['project'] = project unless project.nil?
|
@@ -27832,23 +28792,16 @@ module Google
|
|
27832
28792
|
execute_or_queue_command(command, &block)
|
27833
28793
|
end
|
27834
28794
|
|
27835
|
-
#
|
27836
|
-
#
|
27837
|
-
#
|
27838
|
-
# operation is marked DONE if the resize request is successful. The underlying
|
27839
|
-
# actions take additional time. You must separately verify the status of the
|
27840
|
-
# creating or deleting actions with the listmanagedinstances method. If the
|
27841
|
-
# group is part of a backend service that has enabled connection draining, it
|
27842
|
-
# can take up to 60 seconds after the connection draining duration has elapsed
|
27843
|
-
# before the VM instance is removed or deleted.
|
28795
|
+
# Inserts or updates per-instance configurations for the managed instance group.
|
28796
|
+
# perInstanceConfig.name serves as a key used to distinguish whether to perform
|
28797
|
+
# insert or patch.
|
27844
28798
|
# @param [String] project
|
27845
28799
|
# Project ID for this request.
|
27846
28800
|
# @param [String] region
|
27847
|
-
# Name of the region scoping this request.
|
28801
|
+
# Name of the region scoping this request, should conform to RFC1035.
|
27848
28802
|
# @param [String] instance_group_manager
|
27849
|
-
#
|
27850
|
-
# @param [
|
27851
|
-
# Number of instances that should exist in this instance group manager.
|
28803
|
+
# The name of the managed instance group. It should conform to RFC1035.
|
28804
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagerUpdateInstanceConfigReq] region_instance_group_manager_update_instance_config_req_object
|
27852
28805
|
# @param [String] request_id
|
27853
28806
|
# An optional request ID to identify requests. Specify a unique request ID so
|
27854
28807
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27878,51 +28831,29 @@ module Google
|
|
27878
28831
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27879
28832
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27880
28833
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27881
|
-
def
|
27882
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/
|
28834
|
+
def update_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_update_instance_config_req_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28835
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs', options)
|
28836
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerUpdateInstanceConfigReq::Representation
|
28837
|
+
command.request_object = region_instance_group_manager_update_instance_config_req_object
|
27883
28838
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
27884
28839
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
27885
28840
|
command.params['project'] = project unless project.nil?
|
27886
28841
|
command.params['region'] = region unless region.nil?
|
27887
28842
|
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
27888
28843
|
command.query['requestId'] = request_id unless request_id.nil?
|
27889
|
-
command.query['size'] = size unless size.nil?
|
27890
28844
|
command.query['fields'] = fields unless fields.nil?
|
27891
28845
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27892
28846
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27893
28847
|
execute_or_queue_command(command, &block)
|
27894
28848
|
end
|
27895
28849
|
|
27896
|
-
#
|
27897
|
-
# options like disabling creation retries. This is an extended version of the
|
27898
|
-
# resize method. If you increase the size, the group creates new instances using
|
27899
|
-
# the current instance template. If you decrease the size, the group deletes one
|
27900
|
-
# or more instances. The resize operation is marked DONE if the resize request
|
27901
|
-
# is successful. The underlying actions take additional time. You must
|
27902
|
-
# separately verify the status of the creating or deleting actions with the get
|
27903
|
-
# or listmanagedinstances method. If the group is part of a backend service that
|
27904
|
-
# has enabled connection draining, it can take up to 60 seconds after the
|
27905
|
-
# connection draining duration has elapsed before the VM instance is removed or
|
27906
|
-
# deleted.
|
28850
|
+
# Returns the specified instance group resource.
|
27907
28851
|
# @param [String] project
|
27908
28852
|
# Project ID for this request.
|
27909
28853
|
# @param [String] region
|
27910
|
-
# Name of the region scoping this request.
|
27911
|
-
#
|
27912
|
-
#
|
27913
|
-
# The name of the managed instance group. It must be a string that meets the
|
27914
|
-
# requirements in RFC1035.
|
27915
|
-
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersResizeAdvancedRequest] region_instance_group_managers_resize_advanced_request_object
|
27916
|
-
# @param [String] request_id
|
27917
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
27918
|
-
# that if you must retry your request, the server will know to ignore the
|
27919
|
-
# request if it has already been completed. For example, consider a situation
|
27920
|
-
# where you make an initial request and the request times out. If you make the
|
27921
|
-
# request again with the same request ID, the server can check if original
|
27922
|
-
# operation with the same request ID was received, and if so, will ignore the
|
27923
|
-
# second request. This prevents clients from accidentally creating duplicate
|
27924
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
27925
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28854
|
+
# Name of the region scoping this request.
|
28855
|
+
# @param [String] instance_group
|
28856
|
+
# Name of the instance group resource to return.
|
27926
28857
|
# @param [String] fields
|
27927
28858
|
# Selector specifying which fields to include in a partial response.
|
27928
28859
|
# @param [String] quota_user
|
@@ -27934,50 +28865,83 @@ module Google
|
|
27934
28865
|
# Request-specific options
|
27935
28866
|
#
|
27936
28867
|
# @yield [result, err] Result & error if block supplied
|
27937
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
28868
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstanceGroup] parsed result object
|
27938
28869
|
# @yieldparam err [StandardError] error object if request failed
|
27939
28870
|
#
|
27940
|
-
# @return [Google::Apis::ComputeBeta::
|
28871
|
+
# @return [Google::Apis::ComputeBeta::InstanceGroup]
|
27941
28872
|
#
|
27942
28873
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27943
28874
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27944
28875
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27945
|
-
def
|
27946
|
-
command = make_simple_command(:
|
27947
|
-
command.
|
27948
|
-
command.
|
27949
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
27950
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
28876
|
+
def get_region_instance_group(project, region, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28877
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}', options)
|
28878
|
+
command.response_representation = Google::Apis::ComputeBeta::InstanceGroup::Representation
|
28879
|
+
command.response_class = Google::Apis::ComputeBeta::InstanceGroup
|
27951
28880
|
command.params['project'] = project unless project.nil?
|
27952
28881
|
command.params['region'] = region unless region.nil?
|
27953
|
-
command.params['
|
27954
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
28882
|
+
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
27955
28883
|
command.query['fields'] = fields unless fields.nil?
|
27956
28884
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27957
28885
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27958
28886
|
execute_or_queue_command(command, &block)
|
27959
28887
|
end
|
27960
28888
|
|
27961
|
-
#
|
27962
|
-
#
|
27963
|
-
# patch instead.
|
28889
|
+
# Retrieves the list of instance group resources contained within the specified
|
28890
|
+
# region.
|
27964
28891
|
# @param [String] project
|
27965
28892
|
# Project ID for this request.
|
27966
28893
|
# @param [String] region
|
27967
28894
|
# Name of the region scoping this request.
|
27968
|
-
# @param [String]
|
27969
|
-
#
|
27970
|
-
#
|
27971
|
-
#
|
27972
|
-
#
|
27973
|
-
#
|
27974
|
-
#
|
27975
|
-
#
|
27976
|
-
#
|
27977
|
-
#
|
27978
|
-
#
|
27979
|
-
#
|
27980
|
-
#
|
28895
|
+
# @param [String] filter
|
28896
|
+
# A filter expression that filters resources listed in the response. Most
|
28897
|
+
# Compute resources support two types of filter expressions: expressions that
|
28898
|
+
# support regular expressions and expressions that follow API improvement
|
28899
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
28900
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
28901
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
28902
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
28903
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
28904
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
28905
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
28906
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
28907
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
28908
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
28909
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
28910
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
28911
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
28912
|
+
# provide each separate expression within parentheses. For example: ``` (
|
28913
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
28914
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
28915
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
28916
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
28917
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
28918
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
28919
|
+
# expression with or without quotes or against multiple parenthesized
|
28920
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
28921
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
28922
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
28923
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
28924
|
+
# match the entire field. For example, to filter for instances that do not end
|
28925
|
+
# with name "instance", you would use `name ne .*instance`.
|
28926
|
+
# @param [Fixnum] max_results
|
28927
|
+
# The maximum number of results per page that should be returned. If the number
|
28928
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28929
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
28930
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28931
|
+
# @param [String] order_by
|
28932
|
+
# Sorts list results by a certain order. By default, results are returned in
|
28933
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
28934
|
+
# descending order based on the creation timestamp using `orderBy="
|
28935
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
28936
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
28937
|
+
# resources like operations so that the newest operation is returned first.
|
28938
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28939
|
+
# @param [String] page_token
|
28940
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28941
|
+
# by a previous list request to get the next page of results.
|
28942
|
+
# @param [Boolean] return_partial_success
|
28943
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
28944
|
+
# failure. The default value is false.
|
27981
28945
|
# @param [String] fields
|
27982
28946
|
# Selector specifying which fields to include in a partial response.
|
27983
28947
|
# @param [String] quota_user
|
@@ -27989,49 +28953,92 @@ module Google
|
|
27989
28953
|
# Request-specific options
|
27990
28954
|
#
|
27991
28955
|
# @yield [result, err] Result & error if block supplied
|
27992
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
28956
|
+
# @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupList] parsed result object
|
27993
28957
|
# @yieldparam err [StandardError] error object if request failed
|
27994
28958
|
#
|
27995
|
-
# @return [Google::Apis::ComputeBeta::
|
28959
|
+
# @return [Google::Apis::ComputeBeta::RegionInstanceGroupList]
|
27996
28960
|
#
|
27997
28961
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27998
28962
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27999
28963
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28000
|
-
def
|
28001
|
-
command = make_simple_command(:
|
28002
|
-
command.
|
28003
|
-
command.
|
28004
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28005
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
28964
|
+
def list_region_instance_groups(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)
|
28965
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroups', options)
|
28966
|
+
command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupList::Representation
|
28967
|
+
command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupList
|
28006
28968
|
command.params['project'] = project unless project.nil?
|
28007
28969
|
command.params['region'] = region unless region.nil?
|
28008
|
-
command.
|
28009
|
-
command.query['
|
28970
|
+
command.query['filter'] = filter unless filter.nil?
|
28971
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
28972
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
28973
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
28974
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28010
28975
|
command.query['fields'] = fields unless fields.nil?
|
28011
28976
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28012
28977
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
28013
28978
|
execute_or_queue_command(command, &block)
|
28014
28979
|
end
|
28015
28980
|
|
28016
|
-
#
|
28017
|
-
#
|
28981
|
+
# Lists the instances in the specified instance group and displays information
|
28982
|
+
# about the named ports. Depending on the specified options, this method can
|
28983
|
+
# list all instances or only the instances that are running. The orderBy query
|
28984
|
+
# parameter is not supported.
|
28018
28985
|
# @param [String] project
|
28019
28986
|
# Project ID for this request.
|
28020
28987
|
# @param [String] region
|
28021
28988
|
# Name of the region scoping this request.
|
28022
|
-
# @param [String]
|
28023
|
-
#
|
28024
|
-
# @param [Google::Apis::ComputeBeta::
|
28025
|
-
# @param [String]
|
28026
|
-
#
|
28027
|
-
#
|
28028
|
-
#
|
28029
|
-
#
|
28030
|
-
#
|
28031
|
-
#
|
28032
|
-
#
|
28033
|
-
#
|
28034
|
-
#
|
28989
|
+
# @param [String] instance_group
|
28990
|
+
# Name of the regional instance group for which we want to list the instances.
|
28991
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest] region_instance_groups_list_instances_request_object
|
28992
|
+
# @param [String] filter
|
28993
|
+
# A filter expression that filters resources listed in the response. Most
|
28994
|
+
# Compute resources support two types of filter expressions: expressions that
|
28995
|
+
# support regular expressions and expressions that follow API improvement
|
28996
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
28997
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
28998
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
28999
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
29000
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
29001
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
29002
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
29003
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
29004
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
29005
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
29006
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
29007
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
29008
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
29009
|
+
# provide each separate expression within parentheses. For example: ``` (
|
29010
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
29011
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
29012
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
29013
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
29014
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
29015
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
29016
|
+
# expression with or without quotes or against multiple parenthesized
|
29017
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
29018
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
29019
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
29020
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
29021
|
+
# match the entire field. For example, to filter for instances that do not end
|
29022
|
+
# with name "instance", you would use `name ne .*instance`.
|
29023
|
+
# @param [Fixnum] max_results
|
29024
|
+
# The maximum number of results per page that should be returned. If the number
|
29025
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
29026
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
29027
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
29028
|
+
# @param [String] order_by
|
29029
|
+
# Sorts list results by a certain order. By default, results are returned in
|
29030
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
29031
|
+
# descending order based on the creation timestamp using `orderBy="
|
29032
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
29033
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
29034
|
+
# resources like operations so that the newest operation is returned first.
|
29035
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
29036
|
+
# @param [String] page_token
|
29037
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
29038
|
+
# by a previous list request to get the next page of results.
|
29039
|
+
# @param [Boolean] return_partial_success
|
29040
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
29041
|
+
# failure. The default value is false.
|
28035
29042
|
# @param [String] fields
|
28036
29043
|
# Selector specifying which fields to include in a partial response.
|
28037
29044
|
# @param [String] quota_user
|
@@ -28043,39 +29050,42 @@ module Google
|
|
28043
29050
|
# Request-specific options
|
28044
29051
|
#
|
28045
29052
|
# @yield [result, err] Result & error if block supplied
|
28046
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29053
|
+
# @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances] parsed result object
|
28047
29054
|
# @yieldparam err [StandardError] error object if request failed
|
28048
29055
|
#
|
28049
|
-
# @return [Google::Apis::ComputeBeta::
|
29056
|
+
# @return [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances]
|
28050
29057
|
#
|
28051
29058
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28052
29059
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28053
29060
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28054
|
-
def
|
28055
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
28056
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
28057
|
-
command.request_object =
|
28058
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
28059
|
-
command.response_class = Google::Apis::ComputeBeta::
|
29061
|
+
def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, 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)
|
29062
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options)
|
29063
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest::Representation
|
29064
|
+
command.request_object = region_instance_groups_list_instances_request_object
|
29065
|
+
command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances::Representation
|
29066
|
+
command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances
|
28060
29067
|
command.params['project'] = project unless project.nil?
|
28061
29068
|
command.params['region'] = region unless region.nil?
|
28062
|
-
command.params['
|
28063
|
-
command.query['
|
29069
|
+
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
29070
|
+
command.query['filter'] = filter unless filter.nil?
|
29071
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
29072
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
29073
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
29074
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
28064
29075
|
command.query['fields'] = fields unless fields.nil?
|
28065
29076
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28066
29077
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
28067
29078
|
execute_or_queue_command(command, &block)
|
28068
29079
|
end
|
28069
29080
|
|
28070
|
-
#
|
28071
|
-
# assigned. Existing instances in the group are not affected.
|
29081
|
+
# Sets the named ports for the specified regional instance group.
|
28072
29082
|
# @param [String] project
|
28073
29083
|
# Project ID for this request.
|
28074
29084
|
# @param [String] region
|
28075
29085
|
# Name of the region scoping this request.
|
28076
|
-
# @param [String]
|
28077
|
-
#
|
28078
|
-
# @param [Google::Apis::ComputeBeta::
|
29086
|
+
# @param [String] instance_group
|
29087
|
+
# The name of the regional instance group where the named ports are updated.
|
29088
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest] region_instance_groups_set_named_ports_request_object
|
28079
29089
|
# @param [String] request_id
|
28080
29090
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28081
29091
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28105,15 +29115,15 @@ module Google
|
|
28105
29115
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28106
29116
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28107
29117
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28108
|
-
def
|
28109
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
28110
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
28111
|
-
command.request_object =
|
29118
|
+
def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29119
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
|
29120
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest::Representation
|
29121
|
+
command.request_object = region_instance_groups_set_named_ports_request_object
|
28112
29122
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28113
29123
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
28114
29124
|
command.params['project'] = project unless project.nil?
|
28115
29125
|
command.params['region'] = region unless region.nil?
|
28116
|
-
command.params['
|
29126
|
+
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
28117
29127
|
command.query['requestId'] = request_id unless request_id.nil?
|
28118
29128
|
command.query['fields'] = fields unless fields.nil?
|
28119
29129
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -28148,8 +29158,8 @@ module Google
|
|
28148
29158
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28149
29159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28150
29160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28151
|
-
def
|
28152
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
29161
|
+
def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29162
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options)
|
28153
29163
|
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
28154
29164
|
command.request_object = test_permissions_request_object
|
28155
29165
|
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
@@ -28163,77 +29173,14 @@ module Google
|
|
28163
29173
|
execute_or_queue_command(command, &block)
|
28164
29174
|
end
|
28165
29175
|
|
28166
|
-
#
|
28167
|
-
#
|
28168
|
-
# the instances in the group have not yet been updated. You must separately
|
28169
|
-
# verify the status of the individual instances with the listmanagedinstances
|
28170
|
-
# method. If you update your group to specify a new template or instance
|
28171
|
-
# configuration, it's possible that your intended specification for each VM in
|
28172
|
-
# the group is different from the current state of that VM. To learn how to
|
28173
|
-
# apply an updated configuration to the VMs in a MIG, see Updating instances in
|
28174
|
-
# a MIG.
|
28175
|
-
# @param [String] project
|
28176
|
-
# Project ID for this request.
|
28177
|
-
# @param [String] region
|
28178
|
-
# Name of the region scoping this request.
|
28179
|
-
# @param [String] instance_group_manager
|
28180
|
-
# The name of the instance group manager.
|
28181
|
-
# @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
|
28182
|
-
# @param [String] request_id
|
28183
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
28184
|
-
# that if you must retry your request, the server will know to ignore the
|
28185
|
-
# request if it has already been completed. For example, consider a situation
|
28186
|
-
# where you make an initial request and the request times out. If you make the
|
28187
|
-
# request again with the same request ID, the server can check if original
|
28188
|
-
# operation with the same request ID was received, and if so, will ignore the
|
28189
|
-
# second request. This prevents clients from accidentally creating duplicate
|
28190
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
28191
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28192
|
-
# @param [String] fields
|
28193
|
-
# Selector specifying which fields to include in a partial response.
|
28194
|
-
# @param [String] quota_user
|
28195
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
28196
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
28197
|
-
# @param [String] user_ip
|
28198
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
28199
|
-
# @param [Google::Apis::RequestOptions] options
|
28200
|
-
# Request-specific options
|
28201
|
-
#
|
28202
|
-
# @yield [result, err] Result & error if block supplied
|
28203
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28204
|
-
# @yieldparam err [StandardError] error object if request failed
|
28205
|
-
#
|
28206
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
28207
|
-
#
|
28208
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28209
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28210
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28211
|
-
def update_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28212
|
-
command = make_simple_command(:put, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
|
28213
|
-
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
|
28214
|
-
command.request_object = instance_group_manager_object
|
28215
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28216
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
28217
|
-
command.params['project'] = project unless project.nil?
|
28218
|
-
command.params['region'] = region unless region.nil?
|
28219
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
28220
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
28221
|
-
command.query['fields'] = fields unless fields.nil?
|
28222
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28223
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
28224
|
-
execute_or_queue_command(command, &block)
|
28225
|
-
end
|
28226
|
-
|
28227
|
-
# Inserts or updates per-instance configurations for the managed instance group.
|
28228
|
-
# perInstanceConfig.name serves as a key used to distinguish whether to perform
|
28229
|
-
# insert or patch.
|
29176
|
+
# Deletes the specified instance template. Deleting an instance template is
|
29177
|
+
# permanent and cannot be undone.
|
28230
29178
|
# @param [String] project
|
28231
29179
|
# Project ID for this request.
|
28232
29180
|
# @param [String] region
|
28233
|
-
#
|
28234
|
-
# @param [String]
|
28235
|
-
# The name of the
|
28236
|
-
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagerUpdateInstanceConfigReq] region_instance_group_manager_update_instance_config_req_object
|
29181
|
+
# The name of the region for this request.
|
29182
|
+
# @param [String] instance_template
|
29183
|
+
# The name of the instance template to delete.
|
28237
29184
|
# @param [String] request_id
|
28238
29185
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28239
29186
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28263,15 +29210,13 @@ module Google
|
|
28263
29210
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28264
29211
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28265
29212
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28266
|
-
def
|
28267
|
-
command = make_simple_command(:
|
28268
|
-
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerUpdateInstanceConfigReq::Representation
|
28269
|
-
command.request_object = region_instance_group_manager_update_instance_config_req_object
|
29213
|
+
def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29214
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
|
28270
29215
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28271
29216
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
28272
29217
|
command.params['project'] = project unless project.nil?
|
28273
29218
|
command.params['region'] = region unless region.nil?
|
28274
|
-
command.params['
|
29219
|
+
command.params['instanceTemplate'] = instance_template unless instance_template.nil?
|
28275
29220
|
command.query['requestId'] = request_id unless request_id.nil?
|
28276
29221
|
command.query['fields'] = fields unless fields.nil?
|
28277
29222
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -28279,13 +29224,13 @@ module Google
|
|
28279
29224
|
execute_or_queue_command(command, &block)
|
28280
29225
|
end
|
28281
29226
|
|
28282
|
-
# Returns the specified instance
|
29227
|
+
# Returns the specified instance template.
|
28283
29228
|
# @param [String] project
|
28284
29229
|
# Project ID for this request.
|
28285
29230
|
# @param [String] region
|
28286
|
-
#
|
28287
|
-
# @param [String]
|
28288
|
-
#
|
29231
|
+
# The name of the region for this request.
|
29232
|
+
# @param [String] instance_template
|
29233
|
+
# The name of the instance template.
|
28289
29234
|
# @param [String] fields
|
28290
29235
|
# Selector specifying which fields to include in a partial response.
|
28291
29236
|
# @param [String] quota_user
|
@@ -28297,83 +29242,44 @@ module Google
|
|
28297
29242
|
# Request-specific options
|
28298
29243
|
#
|
28299
29244
|
# @yield [result, err] Result & error if block supplied
|
28300
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29245
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstanceTemplate] parsed result object
|
28301
29246
|
# @yieldparam err [StandardError] error object if request failed
|
28302
29247
|
#
|
28303
|
-
# @return [Google::Apis::ComputeBeta::
|
29248
|
+
# @return [Google::Apis::ComputeBeta::InstanceTemplate]
|
28304
29249
|
#
|
28305
29250
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28306
29251
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28307
29252
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28308
|
-
def
|
28309
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
28310
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
28311
|
-
command.response_class = Google::Apis::ComputeBeta::
|
29253
|
+
def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29254
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
|
29255
|
+
command.response_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation
|
29256
|
+
command.response_class = Google::Apis::ComputeBeta::InstanceTemplate
|
28312
29257
|
command.params['project'] = project unless project.nil?
|
28313
29258
|
command.params['region'] = region unless region.nil?
|
28314
|
-
command.params['
|
29259
|
+
command.params['instanceTemplate'] = instance_template unless instance_template.nil?
|
28315
29260
|
command.query['fields'] = fields unless fields.nil?
|
28316
29261
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28317
29262
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
28318
29263
|
execute_or_queue_command(command, &block)
|
28319
29264
|
end
|
28320
29265
|
|
28321
|
-
#
|
28322
|
-
#
|
29266
|
+
# Creates an instance template in the specified project and region using the
|
29267
|
+
# global instance template whose URL is included in the request.
|
28323
29268
|
# @param [String] project
|
28324
29269
|
# Project ID for this request.
|
28325
29270
|
# @param [String] region
|
28326
|
-
#
|
28327
|
-
# @param [
|
28328
|
-
#
|
28329
|
-
#
|
28330
|
-
#
|
28331
|
-
#
|
28332
|
-
#
|
28333
|
-
#
|
28334
|
-
#
|
28335
|
-
#
|
28336
|
-
#
|
28337
|
-
#
|
28338
|
-
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
28339
|
-
# been defined. For example, to find all objects with `owner` label use: ```
|
28340
|
-
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
28341
|
-
# specify `scheduling.automaticRestart = false` to include instances only if
|
28342
|
-
# they are not scheduled for automatic restarts. You can use filtering on nested
|
28343
|
-
# fields to filter based on resource labels. To filter on multiple expressions,
|
28344
|
-
# provide each separate expression within parentheses. For example: ``` (
|
28345
|
-
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
28346
|
-
# default, each expression is an `AND` expression. However, you can include `AND`
|
28347
|
-
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
28348
|
-
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
28349
|
-
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
28350
|
-
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
28351
|
-
# expression with or without quotes or against multiple parenthesized
|
28352
|
-
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
28353
|
-
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
28354
|
-
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
28355
|
-
# regular expression using Google RE2 library syntax. The literal value must
|
28356
|
-
# match the entire field. For example, to filter for instances that do not end
|
28357
|
-
# with name "instance", you would use `name ne .*instance`.
|
28358
|
-
# @param [Fixnum] max_results
|
28359
|
-
# The maximum number of results per page that should be returned. If the number
|
28360
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
28361
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
28362
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
28363
|
-
# @param [String] order_by
|
28364
|
-
# Sorts list results by a certain order. By default, results are returned in
|
28365
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
28366
|
-
# descending order based on the creation timestamp using `orderBy="
|
28367
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
28368
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
28369
|
-
# resources like operations so that the newest operation is returned first.
|
28370
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
28371
|
-
# @param [String] page_token
|
28372
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
28373
|
-
# by a previous list request to get the next page of results.
|
28374
|
-
# @param [Boolean] return_partial_success
|
28375
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
28376
|
-
# failure. The default value is false.
|
29271
|
+
# The name of the region for this request.
|
29272
|
+
# @param [Google::Apis::ComputeBeta::InstanceTemplate] instance_template_object
|
29273
|
+
# @param [String] request_id
|
29274
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29275
|
+
# that if you must retry your request, the server will know to ignore the
|
29276
|
+
# request if it has already been completed. For example, consider a situation
|
29277
|
+
# where you make an initial request and the request times out. If you make the
|
29278
|
+
# request again with the same request ID, the server can check if original
|
29279
|
+
# operation with the same request ID was received, and if so, will ignore the
|
29280
|
+
# second request. This prevents clients from accidentally creating duplicate
|
29281
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
29282
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28377
29283
|
# @param [String] fields
|
28378
29284
|
# Selector specifying which fields to include in a partial response.
|
28379
29285
|
# @param [String] quota_user
|
@@ -28385,42 +29291,35 @@ module Google
|
|
28385
29291
|
# Request-specific options
|
28386
29292
|
#
|
28387
29293
|
# @yield [result, err] Result & error if block supplied
|
28388
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29294
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28389
29295
|
# @yieldparam err [StandardError] error object if request failed
|
28390
29296
|
#
|
28391
|
-
# @return [Google::Apis::ComputeBeta::
|
29297
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28392
29298
|
#
|
28393
29299
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28394
29300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28395
29301
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28396
|
-
def
|
28397
|
-
command = make_simple_command(:
|
28398
|
-
command.
|
28399
|
-
command.
|
29302
|
+
def insert_region_instance_template(project, region, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29303
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
|
29304
|
+
command.request_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation
|
29305
|
+
command.request_object = instance_template_object
|
29306
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29307
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28400
29308
|
command.params['project'] = project unless project.nil?
|
28401
29309
|
command.params['region'] = region unless region.nil?
|
28402
|
-
command.query['
|
28403
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
28404
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
28405
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
28406
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
29310
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28407
29311
|
command.query['fields'] = fields unless fields.nil?
|
28408
29312
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28409
29313
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
28410
29314
|
execute_or_queue_command(command, &block)
|
28411
29315
|
end
|
28412
29316
|
|
28413
|
-
#
|
28414
|
-
#
|
28415
|
-
# list all instances or only the instances that are running. The orderBy query
|
28416
|
-
# parameter is not supported.
|
29317
|
+
# Retrieves a list of instance templates that are contained within the specified
|
29318
|
+
# project and region.
|
28417
29319
|
# @param [String] project
|
28418
29320
|
# Project ID for this request.
|
28419
29321
|
# @param [String] region
|
28420
|
-
#
|
28421
|
-
# @param [String] instance_group
|
28422
|
-
# Name of the regional instance group for which we want to list the instances.
|
28423
|
-
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest] region_instance_groups_list_instances_request_object
|
29322
|
+
# The name of the regions for this request.
|
28424
29323
|
# @param [String] filter
|
28425
29324
|
# A filter expression that filters resources listed in the response. Most
|
28426
29325
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -28482,23 +29381,20 @@ module Google
|
|
28482
29381
|
# Request-specific options
|
28483
29382
|
#
|
28484
29383
|
# @yield [result, err] Result & error if block supplied
|
28485
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29384
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstanceTemplateList] parsed result object
|
28486
29385
|
# @yieldparam err [StandardError] error object if request failed
|
28487
29386
|
#
|
28488
|
-
# @return [Google::Apis::ComputeBeta::
|
29387
|
+
# @return [Google::Apis::ComputeBeta::InstanceTemplateList]
|
28489
29388
|
#
|
28490
29389
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28491
29390
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28492
29391
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28493
|
-
def
|
28494
|
-
command = make_simple_command(:
|
28495
|
-
command.
|
28496
|
-
command.
|
28497
|
-
command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances::Representation
|
28498
|
-
command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances
|
29392
|
+
def list_region_instance_templates(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)
|
29393
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
|
29394
|
+
command.response_representation = Google::Apis::ComputeBeta::InstanceTemplateList::Representation
|
29395
|
+
command.response_class = Google::Apis::ComputeBeta::InstanceTemplateList
|
28499
29396
|
command.params['project'] = project unless project.nil?
|
28500
29397
|
command.params['region'] = region unless region.nil?
|
28501
|
-
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
28502
29398
|
command.query['filter'] = filter unless filter.nil?
|
28503
29399
|
command.query['maxResults'] = max_results unless max_results.nil?
|
28504
29400
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -28510,14 +29406,13 @@ module Google
|
|
28510
29406
|
execute_or_queue_command(command, &block)
|
28511
29407
|
end
|
28512
29408
|
|
28513
|
-
#
|
29409
|
+
# Creates multiple instances in a given region. Count specifies the number of
|
29410
|
+
# instances to create.
|
28514
29411
|
# @param [String] project
|
28515
29412
|
# Project ID for this request.
|
28516
29413
|
# @param [String] region
|
28517
|
-
#
|
28518
|
-
# @param [
|
28519
|
-
# The name of the regional instance group where the named ports are updated.
|
28520
|
-
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest] region_instance_groups_set_named_ports_request_object
|
29414
|
+
# The name of the region for this request.
|
29415
|
+
# @param [Google::Apis::ComputeBeta::BulkInsertInstanceResource] bulk_insert_instance_resource_object
|
28521
29416
|
# @param [String] request_id
|
28522
29417
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28523
29418
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28547,15 +29442,14 @@ module Google
|
|
28547
29442
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28548
29443
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28549
29444
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28550
|
-
def
|
28551
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
28552
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
28553
|
-
command.request_object =
|
29445
|
+
def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29446
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
|
29447
|
+
command.request_representation = Google::Apis::ComputeBeta::BulkInsertInstanceResource::Representation
|
29448
|
+
command.request_object = bulk_insert_instance_resource_object
|
28554
29449
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28555
29450
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
28556
29451
|
command.params['project'] = project unless project.nil?
|
28557
29452
|
command.params['region'] = region unless region.nil?
|
28558
|
-
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
28559
29453
|
command.query['requestId'] = request_id unless request_id.nil?
|
28560
29454
|
command.query['fields'] = fields unless fields.nil?
|
28561
29455
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -28563,14 +29457,28 @@ module Google
|
|
28563
29457
|
execute_or_queue_command(command, &block)
|
28564
29458
|
end
|
28565
29459
|
|
28566
|
-
#
|
29460
|
+
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
|
29461
|
+
# single instantSnapshot might not necessarily delete all the data on that
|
29462
|
+
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
29463
|
+
# deletion is needed for subsequent instantSnapshots, the data will be moved to
|
29464
|
+
# the next corresponding instantSnapshot. For more information, see Deleting
|
29465
|
+
# instantSnapshots.
|
28567
29466
|
# @param [String] project
|
28568
29467
|
# Project ID for this request.
|
28569
29468
|
# @param [String] region
|
28570
29469
|
# The name of the region for this request.
|
28571
|
-
# @param [String]
|
28572
|
-
# Name
|
28573
|
-
# @param [
|
29470
|
+
# @param [String] instant_snapshot
|
29471
|
+
# Name of the InstantSnapshot resource to delete.
|
29472
|
+
# @param [String] request_id
|
29473
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29474
|
+
# that if you must retry your request, the server will know to ignore the
|
29475
|
+
# request if it has already been completed. For example, consider a situation
|
29476
|
+
# where you make an initial request and the request times out. If you make the
|
29477
|
+
# request again with the same request ID, the server can check if original
|
29478
|
+
# operation with the same request ID was received, and if so, will ignore the
|
29479
|
+
# second request. This prevents clients from accidentally creating duplicate
|
29480
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
29481
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
28574
29482
|
# @param [String] fields
|
28575
29483
|
# Selector specifying which fields to include in a partial response.
|
28576
29484
|
# @param [String] quota_user
|
@@ -28582,37 +29490,37 @@ module Google
|
|
28582
29490
|
# Request-specific options
|
28583
29491
|
#
|
28584
29492
|
# @yield [result, err] Result & error if block supplied
|
28585
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29493
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
28586
29494
|
# @yieldparam err [StandardError] error object if request failed
|
28587
29495
|
#
|
28588
|
-
# @return [Google::Apis::ComputeBeta::
|
29496
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
28589
29497
|
#
|
28590
29498
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28591
29499
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28592
29500
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28593
|
-
def
|
28594
|
-
command = make_simple_command(:
|
28595
|
-
command.
|
28596
|
-
command.
|
28597
|
-
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
28598
|
-
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
29501
|
+
def delete_region_instant_snapshot(project, region, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29502
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
|
29503
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29504
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
28599
29505
|
command.params['project'] = project unless project.nil?
|
28600
29506
|
command.params['region'] = region unless region.nil?
|
28601
|
-
command.params['
|
29507
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
29508
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28602
29509
|
command.query['fields'] = fields unless fields.nil?
|
28603
29510
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28604
29511
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
28605
29512
|
execute_or_queue_command(command, &block)
|
28606
29513
|
end
|
28607
29514
|
|
28608
|
-
#
|
28609
|
-
#
|
29515
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
29516
|
+
# in the user specified format.
|
28610
29517
|
# @param [String] project
|
28611
29518
|
# Project ID for this request.
|
28612
29519
|
# @param [String] region
|
28613
|
-
# The name of the
|
28614
|
-
# @param [String]
|
28615
|
-
#
|
29520
|
+
# The name of the zone for this request.
|
29521
|
+
# @param [String] instant_snapshot
|
29522
|
+
# Name of the instant snapshot to export.
|
29523
|
+
# @param [Google::Apis::ComputeBeta::RegionInstantSnapshotsExportRequest] region_instant_snapshots_export_request_object
|
28616
29524
|
# @param [String] request_id
|
28617
29525
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28618
29526
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28642,13 +29550,15 @@ module Google
|
|
28642
29550
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28643
29551
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28644
29552
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28645
|
-
def
|
28646
|
-
command = make_simple_command(:
|
29553
|
+
def export_region_instant_snapshot(project, region, instant_snapshot, region_instant_snapshots_export_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29554
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export', options)
|
29555
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstantSnapshotsExportRequest::Representation
|
29556
|
+
command.request_object = region_instant_snapshots_export_request_object
|
28647
29557
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28648
29558
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
28649
29559
|
command.params['project'] = project unless project.nil?
|
28650
29560
|
command.params['region'] = region unless region.nil?
|
28651
|
-
command.params['
|
29561
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
28652
29562
|
command.query['requestId'] = request_id unless request_id.nil?
|
28653
29563
|
command.query['fields'] = fields unless fields.nil?
|
28654
29564
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -28656,13 +29566,13 @@ module Google
|
|
28656
29566
|
execute_or_queue_command(command, &block)
|
28657
29567
|
end
|
28658
29568
|
|
28659
|
-
# Returns the specified
|
29569
|
+
# Returns the specified InstantSnapshot resource in the specified region.
|
28660
29570
|
# @param [String] project
|
28661
29571
|
# Project ID for this request.
|
28662
29572
|
# @param [String] region
|
28663
29573
|
# The name of the region for this request.
|
28664
|
-
# @param [String]
|
28665
|
-
#
|
29574
|
+
# @param [String] instant_snapshot
|
29575
|
+
# Name of the InstantSnapshot resource to return.
|
28666
29576
|
# @param [String] fields
|
28667
29577
|
# Selector specifying which fields to include in a partial response.
|
28668
29578
|
# @param [String] quota_user
|
@@ -28674,34 +29584,76 @@ module Google
|
|
28674
29584
|
# Request-specific options
|
28675
29585
|
#
|
28676
29586
|
# @yield [result, err] Result & error if block supplied
|
28677
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29587
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstantSnapshot] parsed result object
|
28678
29588
|
# @yieldparam err [StandardError] error object if request failed
|
28679
29589
|
#
|
28680
|
-
# @return [Google::Apis::ComputeBeta::
|
29590
|
+
# @return [Google::Apis::ComputeBeta::InstantSnapshot]
|
28681
29591
|
#
|
28682
29592
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28683
29593
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28684
29594
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28685
|
-
def
|
28686
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
28687
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
28688
|
-
command.response_class = Google::Apis::ComputeBeta::
|
29595
|
+
def get_region_instant_snapshot(project, region, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29596
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
|
29597
|
+
command.response_representation = Google::Apis::ComputeBeta::InstantSnapshot::Representation
|
29598
|
+
command.response_class = Google::Apis::ComputeBeta::InstantSnapshot
|
28689
29599
|
command.params['project'] = project unless project.nil?
|
28690
29600
|
command.params['region'] = region unless region.nil?
|
28691
|
-
command.params['
|
29601
|
+
command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
|
28692
29602
|
command.query['fields'] = fields unless fields.nil?
|
28693
29603
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28694
29604
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
28695
29605
|
execute_or_queue_command(command, &block)
|
28696
29606
|
end
|
28697
29607
|
|
28698
|
-
#
|
28699
|
-
#
|
29608
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
29609
|
+
# or resource exists.
|
28700
29610
|
# @param [String] project
|
28701
29611
|
# Project ID for this request.
|
28702
29612
|
# @param [String] region
|
28703
29613
|
# The name of the region for this request.
|
28704
|
-
# @param [
|
29614
|
+
# @param [String] resource
|
29615
|
+
# Name or id of the resource for this request.
|
29616
|
+
# @param [Fixnum] options_requested_policy_version
|
29617
|
+
# Requested IAM Policy version.
|
29618
|
+
# @param [String] fields
|
29619
|
+
# Selector specifying which fields to include in a partial response.
|
29620
|
+
# @param [String] quota_user
|
29621
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29622
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29623
|
+
# @param [String] user_ip
|
29624
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29625
|
+
# @param [Google::Apis::RequestOptions] options
|
29626
|
+
# Request-specific options
|
29627
|
+
#
|
29628
|
+
# @yield [result, err] Result & error if block supplied
|
29629
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
29630
|
+
# @yieldparam err [StandardError] error object if request failed
|
29631
|
+
#
|
29632
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
29633
|
+
#
|
29634
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29635
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29636
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29637
|
+
def get_region_instant_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29638
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy', options)
|
29639
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
29640
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
29641
|
+
command.params['project'] = project unless project.nil?
|
29642
|
+
command.params['region'] = region unless region.nil?
|
29643
|
+
command.params['resource'] = resource unless resource.nil?
|
29644
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
29645
|
+
command.query['fields'] = fields unless fields.nil?
|
29646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29647
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29648
|
+
execute_or_queue_command(command, &block)
|
29649
|
+
end
|
29650
|
+
|
29651
|
+
# Creates an instant snapshot in the specified region.
|
29652
|
+
# @param [String] project
|
29653
|
+
# Project ID for this request.
|
29654
|
+
# @param [String] region
|
29655
|
+
# Name of the region for this request.
|
29656
|
+
# @param [Google::Apis::ComputeBeta::InstantSnapshot] instant_snapshot_object
|
28705
29657
|
# @param [String] request_id
|
28706
29658
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28707
29659
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28731,10 +29683,10 @@ module Google
|
|
28731
29683
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28732
29684
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28733
29685
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28734
|
-
def
|
28735
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
28736
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
28737
|
-
command.request_object =
|
29686
|
+
def insert_region_instant_snapshot(project, region, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29687
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots', options)
|
29688
|
+
command.request_representation = Google::Apis::ComputeBeta::InstantSnapshot::Representation
|
29689
|
+
command.request_object = instant_snapshot_object
|
28738
29690
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28739
29691
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
28740
29692
|
command.params['project'] = project unless project.nil?
|
@@ -28746,12 +29698,12 @@ module Google
|
|
28746
29698
|
execute_or_queue_command(command, &block)
|
28747
29699
|
end
|
28748
29700
|
|
28749
|
-
# Retrieves
|
28750
|
-
#
|
29701
|
+
# Retrieves the list of InstantSnapshot resources contained within the specified
|
29702
|
+
# region.
|
28751
29703
|
# @param [String] project
|
28752
29704
|
# Project ID for this request.
|
28753
29705
|
# @param [String] region
|
28754
|
-
# The name of the
|
29706
|
+
# The name of the region for this request.
|
28755
29707
|
# @param [String] filter
|
28756
29708
|
# A filter expression that filters resources listed in the response. Most
|
28757
29709
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -28813,18 +29765,18 @@ module Google
|
|
28813
29765
|
# Request-specific options
|
28814
29766
|
#
|
28815
29767
|
# @yield [result, err] Result & error if block supplied
|
28816
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
29768
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstantSnapshotList] parsed result object
|
28817
29769
|
# @yieldparam err [StandardError] error object if request failed
|
28818
29770
|
#
|
28819
|
-
# @return [Google::Apis::ComputeBeta::
|
29771
|
+
# @return [Google::Apis::ComputeBeta::InstantSnapshotList]
|
28820
29772
|
#
|
28821
29773
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28822
29774
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28823
29775
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28824
|
-
def
|
28825
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
28826
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
28827
|
-
command.response_class = Google::Apis::ComputeBeta::
|
29776
|
+
def list_region_instant_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)
|
29777
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots', options)
|
29778
|
+
command.response_representation = Google::Apis::ComputeBeta::InstantSnapshotList::Representation
|
29779
|
+
command.response_class = Google::Apis::ComputeBeta::InstantSnapshotList
|
28828
29780
|
command.params['project'] = project unless project.nil?
|
28829
29781
|
command.params['region'] = region unless region.nil?
|
28830
29782
|
command.query['filter'] = filter unless filter.nil?
|
@@ -28838,13 +29790,58 @@ module Google
|
|
28838
29790
|
execute_or_queue_command(command, &block)
|
28839
29791
|
end
|
28840
29792
|
|
28841
|
-
#
|
28842
|
-
#
|
29793
|
+
# Sets the access control policy on the specified resource. Replaces any
|
29794
|
+
# existing policy.
|
28843
29795
|
# @param [String] project
|
28844
29796
|
# Project ID for this request.
|
28845
29797
|
# @param [String] region
|
28846
29798
|
# The name of the region for this request.
|
28847
|
-
# @param [
|
29799
|
+
# @param [String] resource
|
29800
|
+
# Name or id of the resource for this request.
|
29801
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
29802
|
+
# @param [String] fields
|
29803
|
+
# Selector specifying which fields to include in a partial response.
|
29804
|
+
# @param [String] quota_user
|
29805
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29806
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29807
|
+
# @param [String] user_ip
|
29808
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29809
|
+
# @param [Google::Apis::RequestOptions] options
|
29810
|
+
# Request-specific options
|
29811
|
+
#
|
29812
|
+
# @yield [result, err] Result & error if block supplied
|
29813
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
29814
|
+
# @yieldparam err [StandardError] error object if request failed
|
29815
|
+
#
|
29816
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
29817
|
+
#
|
29818
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29819
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29820
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29821
|
+
def set_region_instant_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29822
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy', options)
|
29823
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
29824
|
+
command.request_object = region_set_policy_request_object
|
29825
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
29826
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
29827
|
+
command.params['project'] = project unless project.nil?
|
29828
|
+
command.params['region'] = region unless region.nil?
|
29829
|
+
command.params['resource'] = resource unless resource.nil?
|
29830
|
+
command.query['fields'] = fields unless fields.nil?
|
29831
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29832
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29833
|
+
execute_or_queue_command(command, &block)
|
29834
|
+
end
|
29835
|
+
|
29836
|
+
# Sets the labels on a instantSnapshot in the given region. To learn more about
|
29837
|
+
# labels, read the Labeling Resources documentation.
|
29838
|
+
# @param [String] project
|
29839
|
+
# Project ID for this request.
|
29840
|
+
# @param [String] region
|
29841
|
+
# The region for this request.
|
29842
|
+
# @param [String] resource
|
29843
|
+
# Name or id of the resource for this request.
|
29844
|
+
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
28848
29845
|
# @param [String] request_id
|
28849
29846
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28850
29847
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28874,14 +29871,15 @@ module Google
|
|
28874
29871
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28875
29872
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28876
29873
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28877
|
-
def
|
28878
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
28879
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
28880
|
-
command.request_object =
|
29874
|
+
def set_region_instant_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)
|
29875
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels', options)
|
29876
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
29877
|
+
command.request_object = region_set_labels_request_object
|
28881
29878
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
28882
29879
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
28883
29880
|
command.params['project'] = project unless project.nil?
|
28884
29881
|
command.params['region'] = region unless region.nil?
|
29882
|
+
command.params['resource'] = resource unless resource.nil?
|
28885
29883
|
command.query['requestId'] = request_id unless request_id.nil?
|
28886
29884
|
command.query['fields'] = fields unless fields.nil?
|
28887
29885
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -28889,6 +29887,48 @@ module Google
|
|
28889
29887
|
execute_or_queue_command(command, &block)
|
28890
29888
|
end
|
28891
29889
|
|
29890
|
+
# Returns permissions that a caller has on the specified resource.
|
29891
|
+
# @param [String] project
|
29892
|
+
# Project ID for this request.
|
29893
|
+
# @param [String] region
|
29894
|
+
# The name of the region for this request.
|
29895
|
+
# @param [String] resource
|
29896
|
+
# Name or id of the resource for this request.
|
29897
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
29898
|
+
# @param [String] fields
|
29899
|
+
# Selector specifying which fields to include in a partial response.
|
29900
|
+
# @param [String] quota_user
|
29901
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
29902
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
29903
|
+
# @param [String] user_ip
|
29904
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
29905
|
+
# @param [Google::Apis::RequestOptions] options
|
29906
|
+
# Request-specific options
|
29907
|
+
#
|
29908
|
+
# @yield [result, err] Result & error if block supplied
|
29909
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
29910
|
+
# @yieldparam err [StandardError] error object if request failed
|
29911
|
+
#
|
29912
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
29913
|
+
#
|
29914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29917
|
+
def test_region_instant_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29918
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions', options)
|
29919
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
29920
|
+
command.request_object = test_permissions_request_object
|
29921
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
29922
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
29923
|
+
command.params['project'] = project unless project.nil?
|
29924
|
+
command.params['region'] = region unless region.nil?
|
29925
|
+
command.params['resource'] = resource unless resource.nil?
|
29926
|
+
command.query['fields'] = fields unless fields.nil?
|
29927
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29928
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29929
|
+
execute_or_queue_command(command, &block)
|
29930
|
+
end
|
29931
|
+
|
28892
29932
|
# Deletes the specified network endpoint group. Note that the NEG cannot be
|
28893
29933
|
# deleted if it is configured as a backend of a backend service.
|
28894
29934
|
# @param [String] project
|