google-apis-compute_alpha 0.139.0 → 0.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_alpha/classes.rb +1519 -88
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +499 -0
- data/lib/google/apis/compute_alpha/service.rb +1175 -156
- metadata +2 -2
|
@@ -55,6 +55,277 @@ module Google
|
|
|
55
55
|
@batch_path = 'batch/compute/alpha'
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
# Deletes the specified AcceleratorPodController resource.
|
|
59
|
+
# @param [String] project
|
|
60
|
+
# @param [String] zone
|
|
61
|
+
# @param [String] resource_id
|
|
62
|
+
# @param [String] request_id
|
|
63
|
+
# @param [String] fields
|
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
|
65
|
+
# @param [String] quota_user
|
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
68
|
+
# @param [String] user_ip
|
|
69
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
70
|
+
# @param [Google::Apis::RequestOptions] options
|
|
71
|
+
# Request-specific options
|
|
72
|
+
#
|
|
73
|
+
# @yield [result, err] Result & error if block supplied
|
|
74
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
76
|
+
#
|
|
77
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
78
|
+
#
|
|
79
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
80
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
81
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
82
|
+
def delete_accelerator_pod_controller(project, zone, resource_id, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
83
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}', options)
|
|
84
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
85
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
86
|
+
command.params['project'] = project unless project.nil?
|
|
87
|
+
command.params['zone'] = zone unless zone.nil?
|
|
88
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
89
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
90
|
+
command.query['fields'] = fields unless fields.nil?
|
|
91
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
92
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
93
|
+
execute_or_queue_command(command, &block)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Gets the specified AcceleratorPodController resource.
|
|
97
|
+
# @param [String] project
|
|
98
|
+
# @param [String] zone
|
|
99
|
+
# @param [String] resource_id
|
|
100
|
+
# @param [String] fields
|
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
|
102
|
+
# @param [String] quota_user
|
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
105
|
+
# @param [String] user_ip
|
|
106
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
107
|
+
# @param [Google::Apis::RequestOptions] options
|
|
108
|
+
# Request-specific options
|
|
109
|
+
#
|
|
110
|
+
# @yield [result, err] Result & error if block supplied
|
|
111
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::AcceleratorPodController] parsed result object
|
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
113
|
+
#
|
|
114
|
+
# @return [Google::Apis::ComputeAlpha::AcceleratorPodController]
|
|
115
|
+
#
|
|
116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
119
|
+
def get_accelerator_pod_controller(project, zone, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
120
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}', options)
|
|
121
|
+
command.response_representation = Google::Apis::ComputeAlpha::AcceleratorPodController::Representation
|
|
122
|
+
command.response_class = Google::Apis::ComputeAlpha::AcceleratorPodController
|
|
123
|
+
command.params['project'] = project unless project.nil?
|
|
124
|
+
command.params['zone'] = zone unless zone.nil?
|
|
125
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
126
|
+
command.query['fields'] = fields unless fields.nil?
|
|
127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
128
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
129
|
+
execute_or_queue_command(command, &block)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Inserts a new AcceleratorPodController resource.
|
|
133
|
+
# @param [String] project
|
|
134
|
+
# @param [String] zone
|
|
135
|
+
# @param [Google::Apis::ComputeAlpha::AcceleratorPodController] accelerator_pod_controller_object
|
|
136
|
+
# @param [String] request_id
|
|
137
|
+
# @param [String] fields
|
|
138
|
+
# Selector specifying which fields to include in a partial response.
|
|
139
|
+
# @param [String] quota_user
|
|
140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
142
|
+
# @param [String] user_ip
|
|
143
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
|
145
|
+
# Request-specific options
|
|
146
|
+
#
|
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
|
148
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
150
|
+
#
|
|
151
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
152
|
+
#
|
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
156
|
+
def insert_accelerator_pod_controller(project, zone, accelerator_pod_controller_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
157
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/acceleratorPodControllers', options)
|
|
158
|
+
command.request_representation = Google::Apis::ComputeAlpha::AcceleratorPodController::Representation
|
|
159
|
+
command.request_object = accelerator_pod_controller_object
|
|
160
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
161
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
162
|
+
command.params['project'] = project unless project.nil?
|
|
163
|
+
command.params['zone'] = zone unless zone.nil?
|
|
164
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
167
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
168
|
+
execute_or_queue_command(command, &block)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Lists the AcceleratorPodController resources in the specified zone.
|
|
172
|
+
# @param [String] project
|
|
173
|
+
# @param [String] zone
|
|
174
|
+
# @param [String] filter
|
|
175
|
+
# A filter expression that filters resources listed in the response. Most
|
|
176
|
+
# Compute resources support two types of filter expressions:
|
|
177
|
+
# expressions that support regular expressions and expressions that follow
|
|
178
|
+
# API improvement proposal AIP-160.
|
|
179
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
180
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
181
|
+
# operator, and the value that you want to use for filtering. The value
|
|
182
|
+
# must be a string, a number, or a boolean. The operator
|
|
183
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
184
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
185
|
+
# exclude instances named `example-instance` by specifying
|
|
186
|
+
# `name != example-instance`.
|
|
187
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
188
|
+
# For example, to find all objects with `owner` label use:
|
|
189
|
+
# ```
|
|
190
|
+
# labels.owner:*
|
|
191
|
+
# ```
|
|
192
|
+
# You can also filter nested fields. For example, you could specify
|
|
193
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
194
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
195
|
+
# on nested fields to filter based onresource labels.
|
|
196
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
197
|
+
# parentheses. For example:
|
|
198
|
+
# ```
|
|
199
|
+
# (scheduling.automaticRestart = true)
|
|
200
|
+
# (cpuPlatform = "Intel Skylake")
|
|
201
|
+
# ```
|
|
202
|
+
# By default, each expression is an `AND` expression. However, you
|
|
203
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
204
|
+
# For example:
|
|
205
|
+
# ```
|
|
206
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
207
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
208
|
+
# (scheduling.automaticRestart = true)
|
|
209
|
+
# ```
|
|
210
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
211
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
212
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
213
|
+
# `fieldname eq unquoted literal`
|
|
214
|
+
# `fieldname eq 'single quoted literal'`
|
|
215
|
+
# `fieldname eq "double quoted literal"`
|
|
216
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
217
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
218
|
+
# library syntax.
|
|
219
|
+
# The literal value must match the entire field.
|
|
220
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
221
|
+
# you would use `name ne .*instance`.
|
|
222
|
+
# You cannot combine constraints on multiple fields using regular
|
|
223
|
+
# expressions.
|
|
224
|
+
# @param [Fixnum] max_results
|
|
225
|
+
# The maximum number of results per page that should be returned.
|
|
226
|
+
# If the number of available results is larger than `maxResults`,
|
|
227
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
228
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
229
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
230
|
+
# @param [String] order_by
|
|
231
|
+
# Sorts list results by a certain order. By default, results
|
|
232
|
+
# are returned in alphanumerical order based on the resource name.
|
|
233
|
+
# You can also sort results in descending order based on the creation
|
|
234
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
235
|
+
# results based on the `creationTimestamp` field in
|
|
236
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
237
|
+
# resources like operations so that the newest operation is returned first.
|
|
238
|
+
# Currently, only sorting by `name` or
|
|
239
|
+
# `creationTimestamp desc` is supported.
|
|
240
|
+
# @param [String] page_token
|
|
241
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
242
|
+
# `nextPageToken` returned by a previous list request to get
|
|
243
|
+
# the next page of results.
|
|
244
|
+
# @param [Boolean] return_partial_success
|
|
245
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
246
|
+
# of failure. The default value is false.
|
|
247
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
248
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
249
|
+
# with an error code.
|
|
250
|
+
# @param [String] fields
|
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
|
252
|
+
# @param [String] quota_user
|
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
255
|
+
# @param [String] user_ip
|
|
256
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
257
|
+
# @param [Google::Apis::RequestOptions] options
|
|
258
|
+
# Request-specific options
|
|
259
|
+
#
|
|
260
|
+
# @yield [result, err] Result & error if block supplied
|
|
261
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::AcceleratorPodControllersListResponse] parsed result object
|
|
262
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
263
|
+
#
|
|
264
|
+
# @return [Google::Apis::ComputeAlpha::AcceleratorPodControllersListResponse]
|
|
265
|
+
#
|
|
266
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
267
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
268
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
269
|
+
def list_accelerator_pod_controllers(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)
|
|
270
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorPodControllers', options)
|
|
271
|
+
command.response_representation = Google::Apis::ComputeAlpha::AcceleratorPodControllersListResponse::Representation
|
|
272
|
+
command.response_class = Google::Apis::ComputeAlpha::AcceleratorPodControllersListResponse
|
|
273
|
+
command.params['project'] = project unless project.nil?
|
|
274
|
+
command.params['zone'] = zone unless zone.nil?
|
|
275
|
+
command.query['filter'] = filter unless filter.nil?
|
|
276
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
277
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
278
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
279
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
280
|
+
command.query['fields'] = fields unless fields.nil?
|
|
281
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
282
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
283
|
+
execute_or_queue_command(command, &block)
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Patches the specified AcceleratorPodController resource.
|
|
287
|
+
# @param [String] project
|
|
288
|
+
# @param [String] zone
|
|
289
|
+
# @param [String] resource_id
|
|
290
|
+
# @param [Google::Apis::ComputeAlpha::AcceleratorPodController] accelerator_pod_controller_object
|
|
291
|
+
# @param [String] request_id
|
|
292
|
+
# @param [String] update_mask
|
|
293
|
+
# @param [String] fields
|
|
294
|
+
# Selector specifying which fields to include in a partial response.
|
|
295
|
+
# @param [String] quota_user
|
|
296
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
297
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
298
|
+
# @param [String] user_ip
|
|
299
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
300
|
+
# @param [Google::Apis::RequestOptions] options
|
|
301
|
+
# Request-specific options
|
|
302
|
+
#
|
|
303
|
+
# @yield [result, err] Result & error if block supplied
|
|
304
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
305
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
306
|
+
#
|
|
307
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
308
|
+
#
|
|
309
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
310
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
311
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
312
|
+
def patch_accelerator_pod_controller(project, zone, resource_id, accelerator_pod_controller_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
313
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}', options)
|
|
314
|
+
command.request_representation = Google::Apis::ComputeAlpha::AcceleratorPodController::Representation
|
|
315
|
+
command.request_object = accelerator_pod_controller_object
|
|
316
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
317
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
318
|
+
command.params['project'] = project unless project.nil?
|
|
319
|
+
command.params['zone'] = zone unless zone.nil?
|
|
320
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
321
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
322
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
323
|
+
command.query['fields'] = fields unless fields.nil?
|
|
324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
325
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
326
|
+
execute_or_queue_command(command, &block)
|
|
327
|
+
end
|
|
328
|
+
|
|
58
329
|
# Retrieves an aggregated list of accelerator types.
|
|
59
330
|
# To prevent failure, it is recommended that you set the
|
|
60
331
|
# `returnPartialSuccess` parameter to `true`.
|
|
@@ -3044,7 +3315,10 @@ module Google
|
|
|
3044
3315
|
execute_or_queue_command(command, &block)
|
|
3045
3316
|
end
|
|
3046
3317
|
|
|
3047
|
-
# Retrieves a list of all usable backend services
|
|
3318
|
+
# Retrieves a list of all usable backend services for Application Load
|
|
3319
|
+
# Balancers and Proxy Network Load Balancers in the specified project.
|
|
3320
|
+
# Backend services for external and internal passthrough Network Load
|
|
3321
|
+
# Balancers are not included in the response.
|
|
3048
3322
|
# @param [String] project
|
|
3049
3323
|
# Project ID for this request.
|
|
3050
3324
|
# @param [String] filter
|
|
@@ -3771,6 +4045,373 @@ module Google
|
|
|
3771
4045
|
execute_or_queue_command(command, &block)
|
|
3772
4046
|
end
|
|
3773
4047
|
|
|
4048
|
+
# Deletes the specified DhcpOptionsConfig in the given location
|
|
4049
|
+
# @param [String] project
|
|
4050
|
+
# Project ID for this request.
|
|
4051
|
+
# @param [String] region
|
|
4052
|
+
# Name of the region of this request.
|
|
4053
|
+
# @param [String] dhcp_options_config
|
|
4054
|
+
# Name of the DhcpOptionsConfig resource to delete.
|
|
4055
|
+
# @param [String] request_id
|
|
4056
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
4057
|
+
# that if you must retry your request, the server will know to ignore the
|
|
4058
|
+
# request if it has already been completed.
|
|
4059
|
+
# For example, consider a situation where you make an initial request and
|
|
4060
|
+
# the request times out. If you make the request again with the same
|
|
4061
|
+
# request ID, the server can check if original operation with the same
|
|
4062
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
4063
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
4064
|
+
# The request ID must be
|
|
4065
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
4066
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
4067
|
+
# end_interface: MixerMutationRequestBuilder
|
|
4068
|
+
# @param [String] fields
|
|
4069
|
+
# Selector specifying which fields to include in a partial response.
|
|
4070
|
+
# @param [String] quota_user
|
|
4071
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4072
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4073
|
+
# @param [String] user_ip
|
|
4074
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4075
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4076
|
+
# Request-specific options
|
|
4077
|
+
#
|
|
4078
|
+
# @yield [result, err] Result & error if block supplied
|
|
4079
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
4080
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4081
|
+
#
|
|
4082
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
4083
|
+
#
|
|
4084
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4085
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4086
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4087
|
+
def delete_dhcp_options_config(project, region, dhcp_options_config, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4088
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
|
|
4089
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
4090
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
4091
|
+
command.params['project'] = project unless project.nil?
|
|
4092
|
+
command.params['region'] = region unless region.nil?
|
|
4093
|
+
command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
|
|
4094
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
4095
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4097
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4098
|
+
execute_or_queue_command(command, &block)
|
|
4099
|
+
end
|
|
4100
|
+
|
|
4101
|
+
# Returns the specified DhcpOptionsConfig resource in the given location.
|
|
4102
|
+
# @param [String] project
|
|
4103
|
+
# Project ID for this request.
|
|
4104
|
+
# @param [String] region
|
|
4105
|
+
# Name of the region of this request.
|
|
4106
|
+
# @param [String] dhcp_options_config
|
|
4107
|
+
# Name of the DhcpOptionsConfig resource to return.
|
|
4108
|
+
# @param [String] fields
|
|
4109
|
+
# Selector specifying which fields to include in a partial response.
|
|
4110
|
+
# @param [String] quota_user
|
|
4111
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4112
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4113
|
+
# @param [String] user_ip
|
|
4114
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4115
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4116
|
+
# Request-specific options
|
|
4117
|
+
#
|
|
4118
|
+
# @yield [result, err] Result & error if block supplied
|
|
4119
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DhcpOptionsConfig] parsed result object
|
|
4120
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4121
|
+
#
|
|
4122
|
+
# @return [Google::Apis::ComputeAlpha::DhcpOptionsConfig]
|
|
4123
|
+
#
|
|
4124
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4125
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4126
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4127
|
+
def get_dhcp_options_config(project, region, dhcp_options_config, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4128
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
|
|
4129
|
+
command.response_representation = Google::Apis::ComputeAlpha::DhcpOptionsConfig::Representation
|
|
4130
|
+
command.response_class = Google::Apis::ComputeAlpha::DhcpOptionsConfig
|
|
4131
|
+
command.params['project'] = project unless project.nil?
|
|
4132
|
+
command.params['region'] = region unless region.nil?
|
|
4133
|
+
command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
|
|
4134
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4135
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4136
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4137
|
+
execute_or_queue_command(command, &block)
|
|
4138
|
+
end
|
|
4139
|
+
|
|
4140
|
+
# Creates a DhcpOptionsConfig in the specified project in the given location
|
|
4141
|
+
# using the parameters that are included in the request.
|
|
4142
|
+
# @param [String] project
|
|
4143
|
+
# Project ID for this request.
|
|
4144
|
+
# @param [String] region
|
|
4145
|
+
# Name of the region of this request.
|
|
4146
|
+
# @param [Google::Apis::ComputeAlpha::DhcpOptionsConfig] dhcp_options_config_object
|
|
4147
|
+
# @param [String] request_id
|
|
4148
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
4149
|
+
# that if you must retry your request, the server will know to ignore the
|
|
4150
|
+
# request if it has already been completed.
|
|
4151
|
+
# For example, consider a situation where you make an initial request and
|
|
4152
|
+
# the request times out. If you make the request again with the same
|
|
4153
|
+
# request ID, the server can check if original operation with the same
|
|
4154
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
4155
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
4156
|
+
# The request ID must be
|
|
4157
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
4158
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
4159
|
+
# end_interface: MixerMutationRequestBuilder
|
|
4160
|
+
# @param [String] fields
|
|
4161
|
+
# Selector specifying which fields to include in a partial response.
|
|
4162
|
+
# @param [String] quota_user
|
|
4163
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4164
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4165
|
+
# @param [String] user_ip
|
|
4166
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4167
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4168
|
+
# Request-specific options
|
|
4169
|
+
#
|
|
4170
|
+
# @yield [result, err] Result & error if block supplied
|
|
4171
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
4172
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4173
|
+
#
|
|
4174
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
4175
|
+
#
|
|
4176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4179
|
+
def insert_dhcp_options_config(project, region, dhcp_options_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4180
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/dhcpOptionsConfigs', options)
|
|
4181
|
+
command.request_representation = Google::Apis::ComputeAlpha::DhcpOptionsConfig::Representation
|
|
4182
|
+
command.request_object = dhcp_options_config_object
|
|
4183
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
4184
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
4185
|
+
command.params['project'] = project unless project.nil?
|
|
4186
|
+
command.params['region'] = region unless region.nil?
|
|
4187
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
4188
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4190
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4191
|
+
execute_or_queue_command(command, &block)
|
|
4192
|
+
end
|
|
4193
|
+
|
|
4194
|
+
# Lists the DhcpOptionsConfigs for a project in the given location.
|
|
4195
|
+
# @param [String] project
|
|
4196
|
+
# Project ID for this request.
|
|
4197
|
+
# @param [String] region
|
|
4198
|
+
# Name of the region of this request.
|
|
4199
|
+
# @param [String] filter
|
|
4200
|
+
# A filter expression that filters resources listed in the response. Most
|
|
4201
|
+
# Compute resources support two types of filter expressions:
|
|
4202
|
+
# expressions that support regular expressions and expressions that follow
|
|
4203
|
+
# API improvement proposal AIP-160.
|
|
4204
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
4205
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
4206
|
+
# operator, and the value that you want to use for filtering. The value
|
|
4207
|
+
# must be a string, a number, or a boolean. The operator
|
|
4208
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
4209
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
4210
|
+
# exclude instances named `example-instance` by specifying
|
|
4211
|
+
# `name != example-instance`.
|
|
4212
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
4213
|
+
# For example, to find all objects with `owner` label use:
|
|
4214
|
+
# ```
|
|
4215
|
+
# labels.owner:*
|
|
4216
|
+
# ```
|
|
4217
|
+
# You can also filter nested fields. For example, you could specify
|
|
4218
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
4219
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
4220
|
+
# on nested fields to filter based onresource labels.
|
|
4221
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
4222
|
+
# parentheses. For example:
|
|
4223
|
+
# ```
|
|
4224
|
+
# (scheduling.automaticRestart = true)
|
|
4225
|
+
# (cpuPlatform = "Intel Skylake")
|
|
4226
|
+
# ```
|
|
4227
|
+
# By default, each expression is an `AND` expression. However, you
|
|
4228
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
4229
|
+
# For example:
|
|
4230
|
+
# ```
|
|
4231
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
4232
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
4233
|
+
# (scheduling.automaticRestart = true)
|
|
4234
|
+
# ```
|
|
4235
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
4236
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
4237
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
4238
|
+
# `fieldname eq unquoted literal`
|
|
4239
|
+
# `fieldname eq 'single quoted literal'`
|
|
4240
|
+
# `fieldname eq "double quoted literal"`
|
|
4241
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
4242
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
4243
|
+
# library syntax.
|
|
4244
|
+
# The literal value must match the entire field.
|
|
4245
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
4246
|
+
# you would use `name ne .*instance`.
|
|
4247
|
+
# You cannot combine constraints on multiple fields using regular
|
|
4248
|
+
# expressions.
|
|
4249
|
+
# @param [Fixnum] max_results
|
|
4250
|
+
# The maximum number of results per page that should be returned.
|
|
4251
|
+
# If the number of available results is larger than `maxResults`,
|
|
4252
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
4253
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
4254
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
4255
|
+
# @param [String] order_by
|
|
4256
|
+
# Sorts list results by a certain order. By default, results
|
|
4257
|
+
# are returned in alphanumerical order based on the resource name.
|
|
4258
|
+
# You can also sort results in descending order based on the creation
|
|
4259
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
4260
|
+
# results based on the `creationTimestamp` field in
|
|
4261
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
4262
|
+
# resources like operations so that the newest operation is returned first.
|
|
4263
|
+
# Currently, only sorting by `name` or
|
|
4264
|
+
# `creationTimestamp desc` is supported.
|
|
4265
|
+
# @param [String] page_token
|
|
4266
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
4267
|
+
# `nextPageToken` returned by a previous list request to get
|
|
4268
|
+
# the next page of results.
|
|
4269
|
+
# @param [Boolean] return_partial_success
|
|
4270
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
4271
|
+
# of failure. The default value is false.
|
|
4272
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
4273
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
4274
|
+
# with an error code.
|
|
4275
|
+
# @param [String] fields
|
|
4276
|
+
# Selector specifying which fields to include in a partial response.
|
|
4277
|
+
# @param [String] quota_user
|
|
4278
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4279
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4280
|
+
# @param [String] user_ip
|
|
4281
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4282
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4283
|
+
# Request-specific options
|
|
4284
|
+
#
|
|
4285
|
+
# @yield [result, err] Result & error if block supplied
|
|
4286
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DhcpOptionsConfigList] parsed result object
|
|
4287
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4288
|
+
#
|
|
4289
|
+
# @return [Google::Apis::ComputeAlpha::DhcpOptionsConfigList]
|
|
4290
|
+
#
|
|
4291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4294
|
+
def list_dhcp_options_configs(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)
|
|
4295
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/dhcpOptionsConfigs', options)
|
|
4296
|
+
command.response_representation = Google::Apis::ComputeAlpha::DhcpOptionsConfigList::Representation
|
|
4297
|
+
command.response_class = Google::Apis::ComputeAlpha::DhcpOptionsConfigList
|
|
4298
|
+
command.params['project'] = project unless project.nil?
|
|
4299
|
+
command.params['region'] = region unless region.nil?
|
|
4300
|
+
command.query['filter'] = filter unless filter.nil?
|
|
4301
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
4302
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
4303
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
4304
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
4305
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4306
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4307
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4308
|
+
execute_or_queue_command(command, &block)
|
|
4309
|
+
end
|
|
4310
|
+
|
|
4311
|
+
# Patches the specified DhcpOptionsConfig resource with the data included in
|
|
4312
|
+
# the request. This method supports PATCH
|
|
4313
|
+
# semantics and usesJSON merge
|
|
4314
|
+
# patch format and processing rules.
|
|
4315
|
+
# @param [String] project
|
|
4316
|
+
# Project ID for this request.
|
|
4317
|
+
# @param [String] region
|
|
4318
|
+
# Name of the region for this request.
|
|
4319
|
+
# @param [String] dhcp_options_config
|
|
4320
|
+
# Name of the DhcpOptionsConfig resource to patch.
|
|
4321
|
+
# @param [Google::Apis::ComputeAlpha::DhcpOptionsConfig] dhcp_options_config_object
|
|
4322
|
+
# @param [String] request_id
|
|
4323
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
4324
|
+
# that if you must retry your request, the server will know to ignore the
|
|
4325
|
+
# request if it has already been completed.
|
|
4326
|
+
# For example, consider a situation where you make an initial request and
|
|
4327
|
+
# the request times out. If you make the request again with the same
|
|
4328
|
+
# request ID, the server can check if original operation with the same
|
|
4329
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
4330
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
4331
|
+
# The request ID must be
|
|
4332
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
4333
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
4334
|
+
# end_interface: MixerMutationRequestBuilder
|
|
4335
|
+
# @param [String] update_mask
|
|
4336
|
+
# update_mask indicates fields to be updated as part of this request.
|
|
4337
|
+
# @param [String] fields
|
|
4338
|
+
# Selector specifying which fields to include in a partial response.
|
|
4339
|
+
# @param [String] quota_user
|
|
4340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4342
|
+
# @param [String] user_ip
|
|
4343
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4344
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4345
|
+
# Request-specific options
|
|
4346
|
+
#
|
|
4347
|
+
# @yield [result, err] Result & error if block supplied
|
|
4348
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
4349
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4350
|
+
#
|
|
4351
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
4352
|
+
#
|
|
4353
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4354
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4355
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4356
|
+
def patch_dhcp_options_config(project, region, dhcp_options_config, dhcp_options_config_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4357
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}', options)
|
|
4358
|
+
command.request_representation = Google::Apis::ComputeAlpha::DhcpOptionsConfig::Representation
|
|
4359
|
+
command.request_object = dhcp_options_config_object
|
|
4360
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
4361
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
4362
|
+
command.params['project'] = project unless project.nil?
|
|
4363
|
+
command.params['region'] = region unless region.nil?
|
|
4364
|
+
command.params['dhcpOptionsConfig'] = dhcp_options_config unless dhcp_options_config.nil?
|
|
4365
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
4366
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
4367
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4368
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4369
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4370
|
+
execute_or_queue_command(command, &block)
|
|
4371
|
+
end
|
|
4372
|
+
|
|
4373
|
+
# Returns permissions that a caller has on the specified resource.
|
|
4374
|
+
# @param [String] project
|
|
4375
|
+
# Project ID for this request.
|
|
4376
|
+
# @param [String] region
|
|
4377
|
+
# The name of the region for this request.
|
|
4378
|
+
# @param [String] resource
|
|
4379
|
+
# Name or id of the resource for this request.
|
|
4380
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
|
4381
|
+
# @param [String] fields
|
|
4382
|
+
# Selector specifying which fields to include in a partial response.
|
|
4383
|
+
# @param [String] quota_user
|
|
4384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4386
|
+
# @param [String] user_ip
|
|
4387
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
4388
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4389
|
+
# Request-specific options
|
|
4390
|
+
#
|
|
4391
|
+
# @yield [result, err] Result & error if block supplied
|
|
4392
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
|
4393
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4394
|
+
#
|
|
4395
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
|
4396
|
+
#
|
|
4397
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4398
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4399
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4400
|
+
def test_dhcp_options_config_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4401
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/dhcpOptionsConfigs/{resource}/testIamPermissions', options)
|
|
4402
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
|
4403
|
+
command.request_object = test_permissions_request_object
|
|
4404
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
|
4405
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
|
4406
|
+
command.params['project'] = project unless project.nil?
|
|
4407
|
+
command.params['region'] = region unless region.nil?
|
|
4408
|
+
command.params['resource'] = resource unless resource.nil?
|
|
4409
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4411
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4412
|
+
execute_or_queue_command(command, &block)
|
|
4413
|
+
end
|
|
4414
|
+
|
|
3774
4415
|
# Get Zonal Disk Settings.
|
|
3775
4416
|
# @param [String] project
|
|
3776
4417
|
# Project ID for this request.
|
|
@@ -25995,6 +26636,58 @@ module Google
|
|
|
25995
26636
|
execute_or_queue_command(command, &block)
|
|
25996
26637
|
end
|
|
25997
26638
|
|
|
26639
|
+
# Sets name of an interconnect.
|
|
26640
|
+
# @param [String] project
|
|
26641
|
+
# Project ID for this request.
|
|
26642
|
+
# @param [String] interconnect
|
|
26643
|
+
# Name of the interconnect to update.
|
|
26644
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectsSetNameRequest] interconnects_set_name_request_object
|
|
26645
|
+
# @param [String] request_id
|
|
26646
|
+
# An optional request ID to identify requests. Specify a unique request ID
|
|
26647
|
+
# so that if you must retry your request, the server will know to ignore
|
|
26648
|
+
# the request if it has already been completed.
|
|
26649
|
+
# For example, consider a situation where you make an initial request and
|
|
26650
|
+
# the request times out. If you make the request again with the same
|
|
26651
|
+
# request ID, the server can check if original operation with the same
|
|
26652
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
26653
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
26654
|
+
# The request ID must be
|
|
26655
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
26656
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
26657
|
+
# @param [String] fields
|
|
26658
|
+
# Selector specifying which fields to include in a partial response.
|
|
26659
|
+
# @param [String] quota_user
|
|
26660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26662
|
+
# @param [String] user_ip
|
|
26663
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
26664
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26665
|
+
# Request-specific options
|
|
26666
|
+
#
|
|
26667
|
+
# @yield [result, err] Result & error if block supplied
|
|
26668
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
26669
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26670
|
+
#
|
|
26671
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
26672
|
+
#
|
|
26673
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26674
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26675
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26676
|
+
def set_interconnect_name(project, interconnect, interconnects_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
26677
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects/{interconnect}/setName', options)
|
|
26678
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectsSetNameRequest::Representation
|
|
26679
|
+
command.request_object = interconnects_set_name_request_object
|
|
26680
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
26681
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
26682
|
+
command.params['project'] = project unless project.nil?
|
|
26683
|
+
command.params['interconnect'] = interconnect unless interconnect.nil?
|
|
26684
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
26685
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26687
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
26688
|
+
execute_or_queue_command(command, &block)
|
|
26689
|
+
end
|
|
26690
|
+
|
|
25998
26691
|
# Returns permissions that a caller has on the specified resource.
|
|
25999
26692
|
# @param [String] project
|
|
26000
26693
|
# Project ID for this request.
|
|
@@ -27356,6 +28049,156 @@ module Google
|
|
|
27356
28049
|
execute_or_queue_command(command, &block)
|
|
27357
28050
|
end
|
|
27358
28051
|
|
|
28052
|
+
# Gets the details for the specified managed ruleset name.
|
|
28053
|
+
# @param [String] project
|
|
28054
|
+
# Project ID for this request.
|
|
28055
|
+
# @param [String] managed_ruleset
|
|
28056
|
+
# Name of the managed ruleset to return.
|
|
28057
|
+
# @param [String] fields
|
|
28058
|
+
# Selector specifying which fields to include in a partial response.
|
|
28059
|
+
# @param [String] quota_user
|
|
28060
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
28061
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
28062
|
+
# @param [String] user_ip
|
|
28063
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
28064
|
+
# @param [Google::Apis::RequestOptions] options
|
|
28065
|
+
# Request-specific options
|
|
28066
|
+
#
|
|
28067
|
+
# @yield [result, err] Result & error if block supplied
|
|
28068
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ManagedRuleset] parsed result object
|
|
28069
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
28070
|
+
#
|
|
28071
|
+
# @return [Google::Apis::ComputeAlpha::ManagedRuleset]
|
|
28072
|
+
#
|
|
28073
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
28074
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
28075
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
28076
|
+
def get_managed_ruleset(project, managed_ruleset, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
28077
|
+
command = make_simple_command(:get, 'projects/{project}/global/managedRulesets/{managedRuleset}', options)
|
|
28078
|
+
command.response_representation = Google::Apis::ComputeAlpha::ManagedRuleset::Representation
|
|
28079
|
+
command.response_class = Google::Apis::ComputeAlpha::ManagedRuleset
|
|
28080
|
+
command.params['project'] = project unless project.nil?
|
|
28081
|
+
command.params['managedRuleset'] = managed_ruleset unless managed_ruleset.nil?
|
|
28082
|
+
command.query['fields'] = fields unless fields.nil?
|
|
28083
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
28084
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
28085
|
+
execute_or_queue_command(command, &block)
|
|
28086
|
+
end
|
|
28087
|
+
|
|
28088
|
+
# Retrieves the list of all the managed rulesets available.
|
|
28089
|
+
# @param [String] project
|
|
28090
|
+
# Project ID for this request.
|
|
28091
|
+
# @param [String] filter
|
|
28092
|
+
# A filter expression that filters resources listed in the response. Most
|
|
28093
|
+
# Compute resources support two types of filter expressions:
|
|
28094
|
+
# expressions that support regular expressions and expressions that follow
|
|
28095
|
+
# API improvement proposal AIP-160.
|
|
28096
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
28097
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
28098
|
+
# operator, and the value that you want to use for filtering. The value
|
|
28099
|
+
# must be a string, a number, or a boolean. The operator
|
|
28100
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
28101
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
28102
|
+
# exclude instances named `example-instance` by specifying
|
|
28103
|
+
# `name != example-instance`.
|
|
28104
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
28105
|
+
# For example, to find all objects with `owner` label use:
|
|
28106
|
+
# ```
|
|
28107
|
+
# labels.owner:*
|
|
28108
|
+
# ```
|
|
28109
|
+
# You can also filter nested fields. For example, you could specify
|
|
28110
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
28111
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
28112
|
+
# on nested fields to filter based onresource labels.
|
|
28113
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
28114
|
+
# parentheses. For example:
|
|
28115
|
+
# ```
|
|
28116
|
+
# (scheduling.automaticRestart = true)
|
|
28117
|
+
# (cpuPlatform = "Intel Skylake")
|
|
28118
|
+
# ```
|
|
28119
|
+
# By default, each expression is an `AND` expression. However, you
|
|
28120
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
28121
|
+
# For example:
|
|
28122
|
+
# ```
|
|
28123
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
28124
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
28125
|
+
# (scheduling.automaticRestart = true)
|
|
28126
|
+
# ```
|
|
28127
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
28128
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
28129
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
28130
|
+
# `fieldname eq unquoted literal`
|
|
28131
|
+
# `fieldname eq 'single quoted literal'`
|
|
28132
|
+
# `fieldname eq "double quoted literal"`
|
|
28133
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
28134
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
28135
|
+
# library syntax.
|
|
28136
|
+
# The literal value must match the entire field.
|
|
28137
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
28138
|
+
# you would use `name ne .*instance`.
|
|
28139
|
+
# You cannot combine constraints on multiple fields using regular
|
|
28140
|
+
# expressions.
|
|
28141
|
+
# @param [Fixnum] max_results
|
|
28142
|
+
# The maximum number of results per page that should be returned.
|
|
28143
|
+
# If the number of available results is larger than `maxResults`,
|
|
28144
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
28145
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
28146
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
28147
|
+
# @param [String] order_by
|
|
28148
|
+
# Sorts list results by a certain order. By default, results
|
|
28149
|
+
# are returned in alphanumerical order based on the resource name.
|
|
28150
|
+
# You can also sort results in descending order based on the creation
|
|
28151
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
28152
|
+
# results based on the `creationTimestamp` field in
|
|
28153
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
28154
|
+
# resources like operations so that the newest operation is returned first.
|
|
28155
|
+
# Currently, only sorting by `name` or
|
|
28156
|
+
# `creationTimestamp desc` is supported.
|
|
28157
|
+
# @param [String] page_token
|
|
28158
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
28159
|
+
# `nextPageToken` returned by a previous list request to get
|
|
28160
|
+
# the next page of results.
|
|
28161
|
+
# @param [Boolean] return_partial_success
|
|
28162
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
28163
|
+
# of failure. The default value is false.
|
|
28164
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
28165
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
28166
|
+
# with an error code.
|
|
28167
|
+
# @param [String] fields
|
|
28168
|
+
# Selector specifying which fields to include in a partial response.
|
|
28169
|
+
# @param [String] quota_user
|
|
28170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
28171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
28172
|
+
# @param [String] user_ip
|
|
28173
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
28174
|
+
# @param [Google::Apis::RequestOptions] options
|
|
28175
|
+
# Request-specific options
|
|
28176
|
+
#
|
|
28177
|
+
# @yield [result, err] Result & error if block supplied
|
|
28178
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ManagedRulesetList] parsed result object
|
|
28179
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
28180
|
+
#
|
|
28181
|
+
# @return [Google::Apis::ComputeAlpha::ManagedRulesetList]
|
|
28182
|
+
#
|
|
28183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
28184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
28185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
28186
|
+
def list_managed_rulesets(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)
|
|
28187
|
+
command = make_simple_command(:get, 'projects/{project}/global/managedRulesets', options)
|
|
28188
|
+
command.response_representation = Google::Apis::ComputeAlpha::ManagedRulesetList::Representation
|
|
28189
|
+
command.response_class = Google::Apis::ComputeAlpha::ManagedRulesetList
|
|
28190
|
+
command.params['project'] = project unless project.nil?
|
|
28191
|
+
command.query['filter'] = filter unless filter.nil?
|
|
28192
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
28193
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
28194
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
28195
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
28196
|
+
command.query['fields'] = fields unless fields.nil?
|
|
28197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
28198
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
28199
|
+
execute_or_queue_command(command, &block)
|
|
28200
|
+
end
|
|
28201
|
+
|
|
27359
28202
|
# Retrieves the list of all NetworkAttachment resources,
|
|
27360
28203
|
# regional and global, available to the specified project.
|
|
27361
28204
|
# To prevent failure, Google recommends that you set the
|
|
@@ -40385,8 +41228,10 @@ module Google
|
|
|
40385
41228
|
execute_or_queue_command(command, &block)
|
|
40386
41229
|
end
|
|
40387
41230
|
|
|
40388
|
-
# Retrieves a list of all usable backend services
|
|
40389
|
-
# the
|
|
41231
|
+
# Retrieves a list of all usable backend services for Application Load
|
|
41232
|
+
# Balancers and Proxy Network Load Balancers in the specified project in the
|
|
41233
|
+
# given region. Backend services for external and internal passthrough
|
|
41234
|
+
# Network Load Balancers are not included in the response.
|
|
40390
41235
|
# @param [String] project
|
|
40391
41236
|
# Project ID for this request.
|
|
40392
41237
|
# @param [String] region
|
|
@@ -56529,20 +57374,201 @@ module Google
|
|
|
56529
57374
|
# Request-specific options
|
|
56530
57375
|
#
|
|
56531
57376
|
# @yield [result, err] Result & error if block supplied
|
|
56532
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::ZoneList] parsed result object
|
|
57377
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ZoneList] parsed result object
|
|
57378
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
57379
|
+
#
|
|
57380
|
+
# @return [Google::Apis::ComputeAlpha::ZoneList]
|
|
57381
|
+
#
|
|
57382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
57383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
57384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
57385
|
+
def list_region_zones(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)
|
|
57386
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/zones', options)
|
|
57387
|
+
command.response_representation = Google::Apis::ComputeAlpha::ZoneList::Representation
|
|
57388
|
+
command.response_class = Google::Apis::ComputeAlpha::ZoneList
|
|
57389
|
+
command.params['project'] = project unless project.nil?
|
|
57390
|
+
command.params['region'] = region unless region.nil?
|
|
57391
|
+
command.query['filter'] = filter unless filter.nil?
|
|
57392
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
57393
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
57394
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
57395
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
57396
|
+
command.query['fields'] = fields unless fields.nil?
|
|
57397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
57398
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
57399
|
+
execute_or_queue_command(command, &block)
|
|
57400
|
+
end
|
|
57401
|
+
|
|
57402
|
+
# Returns the specified Region resource.
|
|
57403
|
+
# To decrease latency for this method, you can optionally omit any unneeded
|
|
57404
|
+
# information from the response by using a field mask. This practice is
|
|
57405
|
+
# especially recommended for unused quota information (the `quotas` field).
|
|
57406
|
+
# To exclude one or more fields, set your request's `fields` query parameter
|
|
57407
|
+
# to only include the fields you need. For example, to only include the `id`
|
|
57408
|
+
# and `selfLink` fields, add the query parameter `?fields=id,selfLink` to
|
|
57409
|
+
# your request.
|
|
57410
|
+
# This method fails if the quota information is unavailable for the region
|
|
57411
|
+
# and if the organization policy constraint
|
|
57412
|
+
# compute.requireBasicQuotaInResponse is enforced. This
|
|
57413
|
+
# constraint, when enforced, disables the fail-open behaviour when quota
|
|
57414
|
+
# information (the `items.quotas` field) is unavailable for the region.
|
|
57415
|
+
# It is recommended to use the default setting
|
|
57416
|
+
# for the constraint unless your application requires the fail-closed
|
|
57417
|
+
# behaviour for this method.
|
|
57418
|
+
# @param [String] project
|
|
57419
|
+
# Project ID for this request.
|
|
57420
|
+
# @param [String] region
|
|
57421
|
+
# Name of the region resource to return.
|
|
57422
|
+
# @param [String] fields
|
|
57423
|
+
# Selector specifying which fields to include in a partial response.
|
|
57424
|
+
# @param [String] quota_user
|
|
57425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
57426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
57427
|
+
# @param [String] user_ip
|
|
57428
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
57429
|
+
# @param [Google::Apis::RequestOptions] options
|
|
57430
|
+
# Request-specific options
|
|
57431
|
+
#
|
|
57432
|
+
# @yield [result, err] Result & error if block supplied
|
|
57433
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Region] parsed result object
|
|
57434
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
57435
|
+
#
|
|
57436
|
+
# @return [Google::Apis::ComputeAlpha::Region]
|
|
57437
|
+
#
|
|
57438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
57439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
57440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
57441
|
+
def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
57442
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}', options)
|
|
57443
|
+
command.response_representation = Google::Apis::ComputeAlpha::Region::Representation
|
|
57444
|
+
command.response_class = Google::Apis::ComputeAlpha::Region
|
|
57445
|
+
command.params['project'] = project unless project.nil?
|
|
57446
|
+
command.params['region'] = region unless region.nil?
|
|
57447
|
+
command.query['fields'] = fields unless fields.nil?
|
|
57448
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
57449
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
57450
|
+
execute_or_queue_command(command, &block)
|
|
57451
|
+
end
|
|
57452
|
+
|
|
57453
|
+
# Retrieves the list of region resources available to the specified project.
|
|
57454
|
+
# To decrease latency for this method, you can optionally omit any unneeded
|
|
57455
|
+
# information from the response by using a field mask. This practice is
|
|
57456
|
+
# especially recommended for unused quota information
|
|
57457
|
+
# (the `items.quotas` field).
|
|
57458
|
+
# To exclude one or more fields, set your request's `fields` query parameter
|
|
57459
|
+
# to only include the fields you need. For example, to only include the `id`
|
|
57460
|
+
# and `selfLink` fields, add the query parameter `?fields=id,selfLink` to
|
|
57461
|
+
# your request.
|
|
57462
|
+
# This method fails if the quota information is unavailable for the region
|
|
57463
|
+
# and if the organization policy constraint
|
|
57464
|
+
# compute.requireBasicQuotaInResponse is enforced. This
|
|
57465
|
+
# constraint, when enforced, disables the fail-open behaviour when quota
|
|
57466
|
+
# information (the `items.quotas` field) is unavailable for the region.
|
|
57467
|
+
# It is recommended to use the default setting
|
|
57468
|
+
# for the constraint unless your application requires the fail-closed
|
|
57469
|
+
# behaviour for this method.
|
|
57470
|
+
# @param [String] project
|
|
57471
|
+
# Project ID for this request.
|
|
57472
|
+
# @param [String] filter
|
|
57473
|
+
# A filter expression that filters resources listed in the response. Most
|
|
57474
|
+
# Compute resources support two types of filter expressions:
|
|
57475
|
+
# expressions that support regular expressions and expressions that follow
|
|
57476
|
+
# API improvement proposal AIP-160.
|
|
57477
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
57478
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
57479
|
+
# operator, and the value that you want to use for filtering. The value
|
|
57480
|
+
# must be a string, a number, or a boolean. The operator
|
|
57481
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
57482
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
57483
|
+
# exclude instances named `example-instance` by specifying
|
|
57484
|
+
# `name != example-instance`.
|
|
57485
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
57486
|
+
# For example, to find all objects with `owner` label use:
|
|
57487
|
+
# ```
|
|
57488
|
+
# labels.owner:*
|
|
57489
|
+
# ```
|
|
57490
|
+
# You can also filter nested fields. For example, you could specify
|
|
57491
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
57492
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
57493
|
+
# on nested fields to filter based onresource labels.
|
|
57494
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
57495
|
+
# parentheses. For example:
|
|
57496
|
+
# ```
|
|
57497
|
+
# (scheduling.automaticRestart = true)
|
|
57498
|
+
# (cpuPlatform = "Intel Skylake")
|
|
57499
|
+
# ```
|
|
57500
|
+
# By default, each expression is an `AND` expression. However, you
|
|
57501
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
57502
|
+
# For example:
|
|
57503
|
+
# ```
|
|
57504
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
57505
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
57506
|
+
# (scheduling.automaticRestart = true)
|
|
57507
|
+
# ```
|
|
57508
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
57509
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
57510
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
57511
|
+
# `fieldname eq unquoted literal`
|
|
57512
|
+
# `fieldname eq 'single quoted literal'`
|
|
57513
|
+
# `fieldname eq "double quoted literal"`
|
|
57514
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
57515
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
57516
|
+
# library syntax.
|
|
57517
|
+
# The literal value must match the entire field.
|
|
57518
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
57519
|
+
# you would use `name ne .*instance`.
|
|
57520
|
+
# You cannot combine constraints on multiple fields using regular
|
|
57521
|
+
# expressions.
|
|
57522
|
+
# @param [Fixnum] max_results
|
|
57523
|
+
# The maximum number of results per page that should be returned.
|
|
57524
|
+
# If the number of available results is larger than `maxResults`,
|
|
57525
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
57526
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
57527
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
57528
|
+
# @param [String] order_by
|
|
57529
|
+
# Sorts list results by a certain order. By default, results
|
|
57530
|
+
# are returned in alphanumerical order based on the resource name.
|
|
57531
|
+
# You can also sort results in descending order based on the creation
|
|
57532
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
57533
|
+
# results based on the `creationTimestamp` field in
|
|
57534
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
57535
|
+
# resources like operations so that the newest operation is returned first.
|
|
57536
|
+
# Currently, only sorting by `name` or
|
|
57537
|
+
# `creationTimestamp desc` is supported.
|
|
57538
|
+
# @param [String] page_token
|
|
57539
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
57540
|
+
# `nextPageToken` returned by a previous list request to get
|
|
57541
|
+
# the next page of results.
|
|
57542
|
+
# @param [Boolean] return_partial_success
|
|
57543
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
57544
|
+
# of failure. The default value is false.
|
|
57545
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
57546
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
57547
|
+
# with an error code.
|
|
57548
|
+
# @param [String] fields
|
|
57549
|
+
# Selector specifying which fields to include in a partial response.
|
|
57550
|
+
# @param [String] quota_user
|
|
57551
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
57552
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
57553
|
+
# @param [String] user_ip
|
|
57554
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
57555
|
+
# @param [Google::Apis::RequestOptions] options
|
|
57556
|
+
# Request-specific options
|
|
57557
|
+
#
|
|
57558
|
+
# @yield [result, err] Result & error if block supplied
|
|
57559
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionList] parsed result object
|
|
56533
57560
|
# @yieldparam err [StandardError] error object if request failed
|
|
56534
57561
|
#
|
|
56535
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
57562
|
+
# @return [Google::Apis::ComputeAlpha::RegionList]
|
|
56536
57563
|
#
|
|
56537
57564
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56538
57565
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56539
57566
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56540
|
-
def
|
|
56541
|
-
command = make_simple_command(:get, 'projects/{project}/regions
|
|
56542
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
56543
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
57567
|
+
def list_regions(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)
|
|
57568
|
+
command = make_simple_command(:get, 'projects/{project}/regions', options)
|
|
57569
|
+
command.response_representation = Google::Apis::ComputeAlpha::RegionList::Representation
|
|
57570
|
+
command.response_class = Google::Apis::ComputeAlpha::RegionList
|
|
56544
57571
|
command.params['project'] = project unless project.nil?
|
|
56545
|
-
command.params['region'] = region unless region.nil?
|
|
56546
57572
|
command.query['filter'] = filter unless filter.nil?
|
|
56547
57573
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
56548
57574
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -56554,26 +57580,11 @@ module Google
|
|
|
56554
57580
|
execute_or_queue_command(command, &block)
|
|
56555
57581
|
end
|
|
56556
57582
|
|
|
56557
|
-
# Returns the specified
|
|
56558
|
-
# To decrease latency for this method, you can optionally omit any unneeded
|
|
56559
|
-
# information from the response by using a field mask. This practice is
|
|
56560
|
-
# especially recommended for unused quota information (the `quotas` field).
|
|
56561
|
-
# To exclude one or more fields, set your request's `fields` query parameter
|
|
56562
|
-
# to only include the fields you need. For example, to only include the `id`
|
|
56563
|
-
# and `selfLink` fields, add the query parameter `?fields=id,selfLink` to
|
|
56564
|
-
# your request.
|
|
56565
|
-
# This method fails if the quota information is unavailable for the region
|
|
56566
|
-
# and if the organization policy constraint
|
|
56567
|
-
# compute.requireBasicQuotaInResponse is enforced. This
|
|
56568
|
-
# constraint, when enforced, disables the fail-open behaviour when quota
|
|
56569
|
-
# information (the `items.quotas` field) is unavailable for the region.
|
|
56570
|
-
# It is recommended to use the default setting
|
|
56571
|
-
# for the constraint unless your application requires the fail-closed
|
|
56572
|
-
# behaviour for this method.
|
|
57583
|
+
# Returns the specified ReliabilityRisk resource.
|
|
56573
57584
|
# @param [String] project
|
|
56574
57585
|
# Project ID for this request.
|
|
56575
|
-
# @param [String]
|
|
56576
|
-
# Name of the
|
|
57586
|
+
# @param [String] reliability_risk
|
|
57587
|
+
# Name of the ReliabilityRisk resource to return.
|
|
56577
57588
|
# @param [String] fields
|
|
56578
57589
|
# Selector specifying which fields to include in a partial response.
|
|
56579
57590
|
# @param [String] quota_user
|
|
@@ -56585,43 +57596,27 @@ module Google
|
|
|
56585
57596
|
# Request-specific options
|
|
56586
57597
|
#
|
|
56587
57598
|
# @yield [result, err] Result & error if block supplied
|
|
56588
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
57599
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReliabilityRisk] parsed result object
|
|
56589
57600
|
# @yieldparam err [StandardError] error object if request failed
|
|
56590
57601
|
#
|
|
56591
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
57602
|
+
# @return [Google::Apis::ComputeAlpha::ReliabilityRisk]
|
|
56592
57603
|
#
|
|
56593
57604
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56594
57605
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56595
57606
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56596
|
-
def
|
|
56597
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
56598
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
56599
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
57607
|
+
def get_reliability_risk(project, reliability_risk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
57608
|
+
command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks/{reliabilityRisk}', options)
|
|
57609
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReliabilityRisk::Representation
|
|
57610
|
+
command.response_class = Google::Apis::ComputeAlpha::ReliabilityRisk
|
|
56600
57611
|
command.params['project'] = project unless project.nil?
|
|
56601
|
-
command.params['
|
|
57612
|
+
command.params['reliabilityRisk'] = reliability_risk unless reliability_risk.nil?
|
|
56602
57613
|
command.query['fields'] = fields unless fields.nil?
|
|
56603
57614
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
56604
57615
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
56605
57616
|
execute_or_queue_command(command, &block)
|
|
56606
57617
|
end
|
|
56607
57618
|
|
|
56608
|
-
# Retrieves the list of
|
|
56609
|
-
# To decrease latency for this method, you can optionally omit any unneeded
|
|
56610
|
-
# information from the response by using a field mask. This practice is
|
|
56611
|
-
# especially recommended for unused quota information
|
|
56612
|
-
# (the `items.quotas` field).
|
|
56613
|
-
# To exclude one or more fields, set your request's `fields` query parameter
|
|
56614
|
-
# to only include the fields you need. For example, to only include the `id`
|
|
56615
|
-
# and `selfLink` fields, add the query parameter `?fields=id,selfLink` to
|
|
56616
|
-
# your request.
|
|
56617
|
-
# This method fails if the quota information is unavailable for the region
|
|
56618
|
-
# and if the organization policy constraint
|
|
56619
|
-
# compute.requireBasicQuotaInResponse is enforced. This
|
|
56620
|
-
# constraint, when enforced, disables the fail-open behaviour when quota
|
|
56621
|
-
# information (the `items.quotas` field) is unavailable for the region.
|
|
56622
|
-
# It is recommended to use the default setting
|
|
56623
|
-
# for the constraint unless your application requires the fail-closed
|
|
56624
|
-
# behaviour for this method.
|
|
57619
|
+
# Retrieves the list of reliabilityRisks available in the specified project.
|
|
56625
57620
|
# @param [String] project
|
|
56626
57621
|
# Project ID for this request.
|
|
56627
57622
|
# @param [String] filter
|
|
@@ -56711,18 +57706,18 @@ module Google
|
|
|
56711
57706
|
# Request-specific options
|
|
56712
57707
|
#
|
|
56713
57708
|
# @yield [result, err] Result & error if block supplied
|
|
56714
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
57709
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReliabilityRisksListResponse] parsed result object
|
|
56715
57710
|
# @yieldparam err [StandardError] error object if request failed
|
|
56716
57711
|
#
|
|
56717
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
57712
|
+
# @return [Google::Apis::ComputeAlpha::ReliabilityRisksListResponse]
|
|
56718
57713
|
#
|
|
56719
57714
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56720
57715
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56721
57716
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56722
|
-
def
|
|
56723
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
56724
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
56725
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
57717
|
+
def list_reliability_risks(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)
|
|
57718
|
+
command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks', options)
|
|
57719
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReliabilityRisksListResponse::Representation
|
|
57720
|
+
command.response_class = Google::Apis::ComputeAlpha::ReliabilityRisksListResponse
|
|
56726
57721
|
command.params['project'] = project unless project.nil?
|
|
56727
57722
|
command.query['filter'] = filter unless filter.nil?
|
|
56728
57723
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -56735,11 +57730,19 @@ module Google
|
|
|
56735
57730
|
execute_or_queue_command(command, &block)
|
|
56736
57731
|
end
|
|
56737
57732
|
|
|
56738
|
-
#
|
|
57733
|
+
# Retrieves information about the specified reservation block.
|
|
56739
57734
|
# @param [String] project
|
|
56740
57735
|
# Project ID for this request.
|
|
56741
|
-
# @param [String]
|
|
56742
|
-
# Name of the
|
|
57736
|
+
# @param [String] zone
|
|
57737
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
57738
|
+
# @param [String] reservation
|
|
57739
|
+
# The name of the reservation.
|
|
57740
|
+
# Name should conform to RFC1035 or be a resource ID.
|
|
57741
|
+
# @param [String] reservation_block
|
|
57742
|
+
# The name of the reservation block.
|
|
57743
|
+
# Name should conform to RFC1035 or be a resource ID.
|
|
57744
|
+
# @param [String] view
|
|
57745
|
+
# View of the Block.
|
|
56743
57746
|
# @param [String] fields
|
|
56744
57747
|
# Selector specifying which fields to include in a partial response.
|
|
56745
57748
|
# @param [String] quota_user
|
|
@@ -56751,29 +57754,37 @@ module Google
|
|
|
56751
57754
|
# Request-specific options
|
|
56752
57755
|
#
|
|
56753
57756
|
# @yield [result, err] Result & error if block supplied
|
|
56754
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
57757
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationBlocksGetResponse] parsed result object
|
|
56755
57758
|
# @yieldparam err [StandardError] error object if request failed
|
|
56756
57759
|
#
|
|
56757
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
57760
|
+
# @return [Google::Apis::ComputeAlpha::ReservationBlocksGetResponse]
|
|
56758
57761
|
#
|
|
56759
57762
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56760
57763
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56761
57764
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56762
|
-
def
|
|
56763
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
56764
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
56765
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
57765
|
+
def get_reservation_block(project, zone, reservation, reservation_block, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
57766
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}', options)
|
|
57767
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationBlocksGetResponse::Representation
|
|
57768
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationBlocksGetResponse
|
|
56766
57769
|
command.params['project'] = project unless project.nil?
|
|
56767
|
-
command.params['
|
|
57770
|
+
command.params['zone'] = zone unless zone.nil?
|
|
57771
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
|
57772
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
|
57773
|
+
command.query['view'] = view unless view.nil?
|
|
56768
57774
|
command.query['fields'] = fields unless fields.nil?
|
|
56769
57775
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
56770
57776
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
56771
57777
|
execute_or_queue_command(command, &block)
|
|
56772
57778
|
end
|
|
56773
57779
|
|
|
56774
|
-
# Retrieves
|
|
57780
|
+
# Retrieves a list of reservation blocks under a single reservation.
|
|
56775
57781
|
# @param [String] project
|
|
56776
57782
|
# Project ID for this request.
|
|
57783
|
+
# @param [String] zone
|
|
57784
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
57785
|
+
# @param [String] reservation
|
|
57786
|
+
# The name of the reservation.
|
|
57787
|
+
# Name should conform to RFC1035 or be a resource ID.
|
|
56777
57788
|
# @param [String] filter
|
|
56778
57789
|
# A filter expression that filters resources listed in the response. Most
|
|
56779
57790
|
# Compute resources support two types of filter expressions:
|
|
@@ -56861,19 +57872,21 @@ module Google
|
|
|
56861
57872
|
# Request-specific options
|
|
56862
57873
|
#
|
|
56863
57874
|
# @yield [result, err] Result & error if block supplied
|
|
56864
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
57875
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationBlocksListResponse] parsed result object
|
|
56865
57876
|
# @yieldparam err [StandardError] error object if request failed
|
|
56866
57877
|
#
|
|
56867
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
57878
|
+
# @return [Google::Apis::ComputeAlpha::ReservationBlocksListResponse]
|
|
56868
57879
|
#
|
|
56869
57880
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56870
57881
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56871
57882
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56872
|
-
def
|
|
56873
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
56874
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
56875
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
57883
|
+
def list_reservation_blocks(project, zone, reservation, 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)
|
|
57884
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks', options)
|
|
57885
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationBlocksListResponse::Representation
|
|
57886
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationBlocksListResponse
|
|
56876
57887
|
command.params['project'] = project unless project.nil?
|
|
57888
|
+
command.params['zone'] = zone unless zone.nil?
|
|
57889
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
|
56877
57890
|
command.query['filter'] = filter unless filter.nil?
|
|
56878
57891
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
56879
57892
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -56885,7 +57898,7 @@ module Google
|
|
|
56885
57898
|
execute_or_queue_command(command, &block)
|
|
56886
57899
|
end
|
|
56887
57900
|
|
|
56888
|
-
#
|
|
57901
|
+
# Allows customers to perform maintenance on a reservation block
|
|
56889
57902
|
# @param [String] project
|
|
56890
57903
|
# Project ID for this request.
|
|
56891
57904
|
# @param [String] zone
|
|
@@ -56896,8 +57909,19 @@ module Google
|
|
|
56896
57909
|
# @param [String] reservation_block
|
|
56897
57910
|
# The name of the reservation block.
|
|
56898
57911
|
# Name should conform to RFC1035 or be a resource ID.
|
|
56899
|
-
# @param [
|
|
56900
|
-
#
|
|
57912
|
+
# @param [Google::Apis::ComputeAlpha::ReservationsBlocksPerformMaintenanceRequest] reservations_blocks_perform_maintenance_request_object
|
|
57913
|
+
# @param [String] request_id
|
|
57914
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
57915
|
+
# that if you must retry your request, the server will know to ignore the
|
|
57916
|
+
# request if it has already been completed.
|
|
57917
|
+
# For example, consider a situation where you make an initial request and
|
|
57918
|
+
# the request times out. If you make the request again with the same
|
|
57919
|
+
# request ID, the server can check if original operation with the same
|
|
57920
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
57921
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
57922
|
+
# The request ID must be
|
|
57923
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
57924
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
56901
57925
|
# @param [String] fields
|
|
56902
57926
|
# Selector specifying which fields to include in a partial response.
|
|
56903
57927
|
# @param [String] quota_user
|
|
@@ -56909,37 +57933,38 @@ module Google
|
|
|
56909
57933
|
# Request-specific options
|
|
56910
57934
|
#
|
|
56911
57935
|
# @yield [result, err] Result & error if block supplied
|
|
56912
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
57936
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
56913
57937
|
# @yieldparam err [StandardError] error object if request failed
|
|
56914
57938
|
#
|
|
56915
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
57939
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
56916
57940
|
#
|
|
56917
57941
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
56918
57942
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
56919
57943
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
56920
|
-
def
|
|
56921
|
-
command = make_simple_command(:
|
|
56922
|
-
command.
|
|
56923
|
-
command.
|
|
57944
|
+
def perform_reservation_block_maintenance(project, zone, reservation, reservation_block, reservations_blocks_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
57945
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance', options)
|
|
57946
|
+
command.request_representation = Google::Apis::ComputeAlpha::ReservationsBlocksPerformMaintenanceRequest::Representation
|
|
57947
|
+
command.request_object = reservations_blocks_perform_maintenance_request_object
|
|
57948
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
57949
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
56924
57950
|
command.params['project'] = project unless project.nil?
|
|
56925
57951
|
command.params['zone'] = zone unless zone.nil?
|
|
56926
57952
|
command.params['reservation'] = reservation unless reservation.nil?
|
|
56927
57953
|
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
|
56928
|
-
command.query['
|
|
57954
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
56929
57955
|
command.query['fields'] = fields unless fields.nil?
|
|
56930
57956
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
56931
57957
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
56932
57958
|
execute_or_queue_command(command, &block)
|
|
56933
57959
|
end
|
|
56934
57960
|
|
|
56935
|
-
#
|
|
57961
|
+
# Lists the instances consuming capacity from a specific reservation.
|
|
56936
57962
|
# @param [String] project
|
|
56937
|
-
# Project ID for this request.
|
|
57963
|
+
# Required. Project ID for this request.
|
|
56938
57964
|
# @param [String] zone
|
|
56939
|
-
#
|
|
57965
|
+
# Required. Zone name for this request.
|
|
56940
57966
|
# @param [String] reservation
|
|
56941
|
-
# The name of the reservation.
|
|
56942
|
-
# Name should conform to RFC1035 or be a resource ID.
|
|
57967
|
+
# Required. The name of the reservation to list consumed instances for.
|
|
56943
57968
|
# @param [String] filter
|
|
56944
57969
|
# A filter expression that filters resources listed in the response. Most
|
|
56945
57970
|
# Compute resources support two types of filter expressions:
|
|
@@ -57027,18 +58052,18 @@ module Google
|
|
|
57027
58052
|
# Request-specific options
|
|
57028
58053
|
#
|
|
57029
58054
|
# @yield [result, err] Result & error if block supplied
|
|
57030
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
58055
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationConsumedInstancesListResponse] parsed result object
|
|
57031
58056
|
# @yieldparam err [StandardError] error object if request failed
|
|
57032
58057
|
#
|
|
57033
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
58058
|
+
# @return [Google::Apis::ComputeAlpha::ReservationConsumedInstancesListResponse]
|
|
57034
58059
|
#
|
|
57035
58060
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
57036
58061
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
57037
58062
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
57038
|
-
def
|
|
57039
|
-
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/
|
|
57040
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
57041
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
58063
|
+
def list_reservation_consumed_instances(project, zone, reservation, 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)
|
|
58064
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+reservation}/reservationConsumedInstances', options)
|
|
58065
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationConsumedInstancesListResponse::Representation
|
|
58066
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationConsumedInstancesListResponse
|
|
57042
58067
|
command.params['project'] = project unless project.nil?
|
|
57043
58068
|
command.params['zone'] = zone unless zone.nil?
|
|
57044
58069
|
command.params['reservation'] = reservation unless reservation.nil?
|
|
@@ -57053,66 +58078,6 @@ module Google
|
|
|
57053
58078
|
execute_or_queue_command(command, &block)
|
|
57054
58079
|
end
|
|
57055
58080
|
|
|
57056
|
-
# Allows customers to perform maintenance on a reservation block
|
|
57057
|
-
# @param [String] project
|
|
57058
|
-
# Project ID for this request.
|
|
57059
|
-
# @param [String] zone
|
|
57060
|
-
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
57061
|
-
# @param [String] reservation
|
|
57062
|
-
# The name of the reservation.
|
|
57063
|
-
# Name should conform to RFC1035 or be a resource ID.
|
|
57064
|
-
# @param [String] reservation_block
|
|
57065
|
-
# The name of the reservation block.
|
|
57066
|
-
# Name should conform to RFC1035 or be a resource ID.
|
|
57067
|
-
# @param [Google::Apis::ComputeAlpha::ReservationsBlocksPerformMaintenanceRequest] reservations_blocks_perform_maintenance_request_object
|
|
57068
|
-
# @param [String] request_id
|
|
57069
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
57070
|
-
# that if you must retry your request, the server will know to ignore the
|
|
57071
|
-
# request if it has already been completed.
|
|
57072
|
-
# For example, consider a situation where you make an initial request and
|
|
57073
|
-
# the request times out. If you make the request again with the same
|
|
57074
|
-
# request ID, the server can check if original operation with the same
|
|
57075
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
57076
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
57077
|
-
# The request ID must be
|
|
57078
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
57079
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
57080
|
-
# @param [String] fields
|
|
57081
|
-
# Selector specifying which fields to include in a partial response.
|
|
57082
|
-
# @param [String] quota_user
|
|
57083
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
57084
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
57085
|
-
# @param [String] user_ip
|
|
57086
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
57087
|
-
# @param [Google::Apis::RequestOptions] options
|
|
57088
|
-
# Request-specific options
|
|
57089
|
-
#
|
|
57090
|
-
# @yield [result, err] Result & error if block supplied
|
|
57091
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
57092
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
57093
|
-
#
|
|
57094
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
57095
|
-
#
|
|
57096
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
57097
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
57098
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
57099
|
-
def perform_reservation_block_maintenance(project, zone, reservation, reservation_block, reservations_blocks_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
57100
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance', options)
|
|
57101
|
-
command.request_representation = Google::Apis::ComputeAlpha::ReservationsBlocksPerformMaintenanceRequest::Representation
|
|
57102
|
-
command.request_object = reservations_blocks_perform_maintenance_request_object
|
|
57103
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
57104
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
57105
|
-
command.params['project'] = project unless project.nil?
|
|
57106
|
-
command.params['zone'] = zone unless zone.nil?
|
|
57107
|
-
command.params['reservation'] = reservation unless reservation.nil?
|
|
57108
|
-
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
|
57109
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
57110
|
-
command.query['fields'] = fields unless fields.nil?
|
|
57111
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
57112
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
57113
|
-
execute_or_queue_command(command, &block)
|
|
57114
|
-
end
|
|
57115
|
-
|
|
57116
58081
|
# Retrieves information about the specified reservation slot.
|
|
57117
58082
|
# @param [String] project
|
|
57118
58083
|
# The project ID for this request.
|
|
@@ -57734,6 +58699,60 @@ module Google
|
|
|
57734
58699
|
execute_or_queue_command(command, &block)
|
|
57735
58700
|
end
|
|
57736
58701
|
|
|
58702
|
+
# Updates a reservation subBlock.
|
|
58703
|
+
# @param [String] project
|
|
58704
|
+
# The project ID for this request.
|
|
58705
|
+
# @param [String] zone
|
|
58706
|
+
# The name of the zone for this request.
|
|
58707
|
+
# @param [String] parent_name
|
|
58708
|
+
# The name of the parent reservation and parent block. In the format of
|
|
58709
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`
|
|
58710
|
+
# @param [String] reservation_sub_block
|
|
58711
|
+
# The name of the subBlock resource.
|
|
58712
|
+
# @param [Google::Apis::ComputeAlpha::ReservationSubBlock] reservation_sub_block_object
|
|
58713
|
+
# @param [String] request_id
|
|
58714
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
58715
|
+
# that if you must retry your request, the server will know to ignore the
|
|
58716
|
+
# request if it has already been completed.
|
|
58717
|
+
# @param [String] update_mask
|
|
58718
|
+
# The fields to be updated as part of this request.
|
|
58719
|
+
# @param [String] fields
|
|
58720
|
+
# Selector specifying which fields to include in a partial response.
|
|
58721
|
+
# @param [String] quota_user
|
|
58722
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
58723
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
58724
|
+
# @param [String] user_ip
|
|
58725
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
58726
|
+
# @param [Google::Apis::RequestOptions] options
|
|
58727
|
+
# Request-specific options
|
|
58728
|
+
#
|
|
58729
|
+
# @yield [result, err] Result & error if block supplied
|
|
58730
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
58731
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
58732
|
+
#
|
|
58733
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
58734
|
+
#
|
|
58735
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
58736
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
58737
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
58738
|
+
def update_reservation_sub_block(project, zone, parent_name, reservation_sub_block, reservation_sub_block_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
58739
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}', options)
|
|
58740
|
+
command.request_representation = Google::Apis::ComputeAlpha::ReservationSubBlock::Representation
|
|
58741
|
+
command.request_object = reservation_sub_block_object
|
|
58742
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
58743
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
58744
|
+
command.params['project'] = project unless project.nil?
|
|
58745
|
+
command.params['zone'] = zone unless zone.nil?
|
|
58746
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
58747
|
+
command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.nil?
|
|
58748
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
58749
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
58750
|
+
command.query['fields'] = fields unless fields.nil?
|
|
58751
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
58752
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
58753
|
+
execute_or_queue_command(command, &block)
|
|
58754
|
+
end
|
|
58755
|
+
|
|
57737
58756
|
# Retrieves an aggregated list of reservations.
|
|
57738
58757
|
# To prevent failure, it is recommended that you set the
|
|
57739
58758
|
# `returnPartialSuccess` parameter to `true`.
|