google-apis-deploymentmanager_alpha 0.1.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 +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-deploymentmanager_alpha.rb +15 -0
- data/lib/google/apis/deploymentmanager_alpha.rb +47 -0
- data/lib/google/apis/deploymentmanager_alpha/classes.rb +2602 -0
- data/lib/google/apis/deploymentmanager_alpha/gem_version.rb +28 -0
- data/lib/google/apis/deploymentmanager_alpha/representations.rb +1068 -0
- data/lib/google/apis/deploymentmanager_alpha/service.rb +1524 -0
- metadata +76 -0
@@ -0,0 +1,1524 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module DeploymentmanagerAlpha
|
23
|
+
# Cloud Deployment Manager V2 API
|
24
|
+
#
|
25
|
+
# The Google Cloud Deployment Manager v2 API provides services for configuring,
|
26
|
+
# deploying, and viewing Google Cloud services and APIs via templates which
|
27
|
+
# specify deployments of Cloud resources.
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
# require 'google/apis/deploymentmanager_alpha'
|
31
|
+
#
|
32
|
+
# Deploymentmanager = Google::Apis::DeploymentmanagerAlpha # Alias the module
|
33
|
+
# service = Deploymentmanager::DeploymentManagerService.new
|
34
|
+
#
|
35
|
+
# @see https://cloud.google.com/deployment-manager
|
36
|
+
class DeploymentManagerService < Google::Apis::Core::BaseService
|
37
|
+
# @return [String]
|
38
|
+
# API key. Your API key identifies your project and provides you with API access,
|
39
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
40
|
+
attr_accessor :key
|
41
|
+
|
42
|
+
# @return [String]
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45
|
+
attr_accessor :quota_user
|
46
|
+
|
47
|
+
def initialize
|
48
|
+
super('https://deploymentmanager.googleapis.com/', '',
|
49
|
+
client_name: 'google-apis-deploymentmanager_alpha',
|
50
|
+
client_version: Google::Apis::DeploymentmanagerAlpha::GEM_VERSION)
|
51
|
+
@batch_path = 'batch'
|
52
|
+
end
|
53
|
+
|
54
|
+
# Deletes a composite type.
|
55
|
+
# @param [String] project
|
56
|
+
# The project ID for this request.
|
57
|
+
# @param [String] composite_type
|
58
|
+
# The name of the type for this request.
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def delete_composite_type(project, composite_type, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:delete, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options)
|
78
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
79
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
80
|
+
command.params['project'] = project unless project.nil?
|
81
|
+
command.params['compositeType'] = composite_type unless composite_type.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Gets information about a specific composite type.
|
88
|
+
# @param [String] project
|
89
|
+
# The project ID for this request.
|
90
|
+
# @param [String] composite_type
|
91
|
+
# The name of the composite type for this request.
|
92
|
+
# @param [String] fields
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
94
|
+
# @param [String] quota_user
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
97
|
+
# @param [Google::Apis::RequestOptions] options
|
98
|
+
# Request-specific options
|
99
|
+
#
|
100
|
+
# @yield [result, err] Result & error if block supplied
|
101
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::CompositeType] parsed result object
|
102
|
+
# @yieldparam err [StandardError] error object if request failed
|
103
|
+
#
|
104
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::CompositeType]
|
105
|
+
#
|
106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
+
def get_composite_type(project, composite_type, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options)
|
111
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
|
112
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeType
|
113
|
+
command.params['project'] = project unless project.nil?
|
114
|
+
command.params['compositeType'] = composite_type unless composite_type.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Creates a composite type.
|
121
|
+
# @param [String] project
|
122
|
+
# The project ID for this request.
|
123
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::CompositeType] composite_type_object
|
124
|
+
# @param [String] fields
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
126
|
+
# @param [String] quota_user
|
127
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
128
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
129
|
+
# @param [Google::Apis::RequestOptions] options
|
130
|
+
# Request-specific options
|
131
|
+
#
|
132
|
+
# @yield [result, err] Result & error if block supplied
|
133
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
134
|
+
# @yieldparam err [StandardError] error object if request failed
|
135
|
+
#
|
136
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
137
|
+
#
|
138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
+
def insert_composite_type(project, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
142
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes', options)
|
143
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
|
144
|
+
command.request_object = composite_type_object
|
145
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
146
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
147
|
+
command.params['project'] = project unless project.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Lists all composite types for Deployment Manager.
|
154
|
+
# @param [String] project
|
155
|
+
# The project ID for this request.
|
156
|
+
# @param [String] filter
|
157
|
+
# A filter expression that filters resources listed in the response. The
|
158
|
+
# expression must specify the field name, a comparison operator, and the value
|
159
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
160
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
161
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
162
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
163
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
164
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
165
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
166
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
167
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
168
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
169
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
170
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
171
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
172
|
+
# @param [Fixnum] max_results
|
173
|
+
# The maximum number of results per page that should be returned. If the number
|
174
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
175
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
176
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
177
|
+
# @param [String] order_by
|
178
|
+
# Sorts list results by a certain order. By default, results are returned in
|
179
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
180
|
+
# descending order based on the creation timestamp using `orderBy="
|
181
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
182
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
183
|
+
# resources like operations so that the newest operation is returned first.
|
184
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
185
|
+
# @param [String] page_token
|
186
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
187
|
+
# by a previous list request to get the next page of results.
|
188
|
+
# @param [String] fields
|
189
|
+
# Selector specifying which fields to include in a partial response.
|
190
|
+
# @param [String] quota_user
|
191
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
192
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
193
|
+
# @param [Google::Apis::RequestOptions] options
|
194
|
+
# Request-specific options
|
195
|
+
#
|
196
|
+
# @yield [result, err] Result & error if block supplied
|
197
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse] parsed result object
|
198
|
+
# @yieldparam err [StandardError] error object if request failed
|
199
|
+
#
|
200
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse]
|
201
|
+
#
|
202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
205
|
+
def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
206
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes', options)
|
207
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse::Representation
|
208
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse
|
209
|
+
command.params['project'] = project unless project.nil?
|
210
|
+
command.query['filter'] = filter unless filter.nil?
|
211
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
212
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
213
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
214
|
+
command.query['fields'] = fields unless fields.nil?
|
215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
|
+
execute_or_queue_command(command, &block)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Patches a composite type.
|
220
|
+
# @param [String] project
|
221
|
+
# The project ID for this request.
|
222
|
+
# @param [String] composite_type
|
223
|
+
# The name of the composite type for this request.
|
224
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::CompositeType] composite_type_object
|
225
|
+
# @param [String] fields
|
226
|
+
# Selector specifying which fields to include in a partial response.
|
227
|
+
# @param [String] quota_user
|
228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
230
|
+
# @param [Google::Apis::RequestOptions] options
|
231
|
+
# Request-specific options
|
232
|
+
#
|
233
|
+
# @yield [result, err] Result & error if block supplied
|
234
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
235
|
+
# @yieldparam err [StandardError] error object if request failed
|
236
|
+
#
|
237
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
238
|
+
#
|
239
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
240
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
241
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
242
|
+
def patch_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
243
|
+
command = make_simple_command(:patch, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options)
|
244
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
|
245
|
+
command.request_object = composite_type_object
|
246
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
247
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
248
|
+
command.params['project'] = project unless project.nil?
|
249
|
+
command.params['compositeType'] = composite_type unless composite_type.nil?
|
250
|
+
command.query['fields'] = fields unless fields.nil?
|
251
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
|
+
execute_or_queue_command(command, &block)
|
253
|
+
end
|
254
|
+
|
255
|
+
# Updates a composite type.
|
256
|
+
# @param [String] project
|
257
|
+
# The project ID for this request.
|
258
|
+
# @param [String] composite_type
|
259
|
+
# The name of the composite type for this request.
|
260
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::CompositeType] composite_type_object
|
261
|
+
# @param [String] fields
|
262
|
+
# Selector specifying which fields to include in a partial response.
|
263
|
+
# @param [String] quota_user
|
264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
266
|
+
# @param [Google::Apis::RequestOptions] options
|
267
|
+
# Request-specific options
|
268
|
+
#
|
269
|
+
# @yield [result, err] Result & error if block supplied
|
270
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
272
|
+
#
|
273
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
274
|
+
#
|
275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
278
|
+
def update_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
279
|
+
command = make_simple_command(:put, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options)
|
280
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
|
281
|
+
command.request_object = composite_type_object
|
282
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
283
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
284
|
+
command.params['project'] = project unless project.nil?
|
285
|
+
command.params['compositeType'] = composite_type unless composite_type.nil?
|
286
|
+
command.query['fields'] = fields unless fields.nil?
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
288
|
+
execute_or_queue_command(command, &block)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Cancels and removes the preview currently associated with the deployment.
|
292
|
+
# @param [String] project
|
293
|
+
# The project ID for this request.
|
294
|
+
# @param [String] deployment
|
295
|
+
# The name of the deployment for this request.
|
296
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest] deployments_cancel_preview_request_object
|
297
|
+
# @param [String] fields
|
298
|
+
# Selector specifying which fields to include in a partial response.
|
299
|
+
# @param [String] quota_user
|
300
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
301
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
302
|
+
# @param [Google::Apis::RequestOptions] options
|
303
|
+
# Request-specific options
|
304
|
+
#
|
305
|
+
# @yield [result, err] Result & error if block supplied
|
306
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
307
|
+
# @yieldparam err [StandardError] error object if request failed
|
308
|
+
#
|
309
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
310
|
+
#
|
311
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
312
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
313
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
314
|
+
def cancel_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
315
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview', options)
|
316
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest::Representation
|
317
|
+
command.request_object = deployments_cancel_preview_request_object
|
318
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
319
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
320
|
+
command.params['project'] = project unless project.nil?
|
321
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
322
|
+
command.query['fields'] = fields unless fields.nil?
|
323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
324
|
+
execute_or_queue_command(command, &block)
|
325
|
+
end
|
326
|
+
|
327
|
+
# Deletes a deployment and all of the resources in the deployment.
|
328
|
+
# @param [String] project
|
329
|
+
# The project ID for this request.
|
330
|
+
# @param [String] deployment
|
331
|
+
# The name of the deployment for this request.
|
332
|
+
# @param [String] delete_policy
|
333
|
+
# Sets the policy to use for deleting resources.
|
334
|
+
# @param [String] fields
|
335
|
+
# Selector specifying which fields to include in a partial response.
|
336
|
+
# @param [String] quota_user
|
337
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
338
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
339
|
+
# @param [Google::Apis::RequestOptions] options
|
340
|
+
# Request-specific options
|
341
|
+
#
|
342
|
+
# @yield [result, err] Result & error if block supplied
|
343
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
344
|
+
# @yieldparam err [StandardError] error object if request failed
|
345
|
+
#
|
346
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
347
|
+
#
|
348
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
349
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
350
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
351
|
+
def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
|
352
|
+
command = make_simple_command(:delete, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options)
|
353
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
354
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
355
|
+
command.params['project'] = project unless project.nil?
|
356
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
357
|
+
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
358
|
+
command.query['fields'] = fields unless fields.nil?
|
359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
360
|
+
execute_or_queue_command(command, &block)
|
361
|
+
end
|
362
|
+
|
363
|
+
# Gets information about a specific deployment.
|
364
|
+
# @param [String] project
|
365
|
+
# The project ID for this request.
|
366
|
+
# @param [String] deployment
|
367
|
+
# The name of the deployment for this request.
|
368
|
+
# @param [String] fields
|
369
|
+
# Selector specifying which fields to include in a partial response.
|
370
|
+
# @param [String] quota_user
|
371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
373
|
+
# @param [Google::Apis::RequestOptions] options
|
374
|
+
# Request-specific options
|
375
|
+
#
|
376
|
+
# @yield [result, err] Result & error if block supplied
|
377
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Deployment] parsed result object
|
378
|
+
# @yieldparam err [StandardError] error object if request failed
|
379
|
+
#
|
380
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Deployment]
|
381
|
+
#
|
382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
385
|
+
def get_deployment(project, deployment, fields: nil, quota_user: nil, options: nil, &block)
|
386
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options)
|
387
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
|
388
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Deployment
|
389
|
+
command.params['project'] = project unless project.nil?
|
390
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
391
|
+
command.query['fields'] = fields unless fields.nil?
|
392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
393
|
+
execute_or_queue_command(command, &block)
|
394
|
+
end
|
395
|
+
|
396
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
397
|
+
# or resource exists.
|
398
|
+
# @param [String] project
|
399
|
+
# Project ID for this request.
|
400
|
+
# @param [String] resource
|
401
|
+
# Name or id of the resource for this request.
|
402
|
+
# @param [Fixnum] options_requested_policy_version
|
403
|
+
# Requested IAM Policy version.
|
404
|
+
# @param [String] fields
|
405
|
+
# Selector specifying which fields to include in a partial response.
|
406
|
+
# @param [String] quota_user
|
407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
409
|
+
# @param [Google::Apis::RequestOptions] options
|
410
|
+
# Request-specific options
|
411
|
+
#
|
412
|
+
# @yield [result, err] Result & error if block supplied
|
413
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Policy] parsed result object
|
414
|
+
# @yieldparam err [StandardError] error object if request failed
|
415
|
+
#
|
416
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Policy]
|
417
|
+
#
|
418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
421
|
+
def get_deployment_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
422
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy', options)
|
423
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation
|
424
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy
|
425
|
+
command.params['project'] = project unless project.nil?
|
426
|
+
command.params['resource'] = resource unless resource.nil?
|
427
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
428
|
+
command.query['fields'] = fields unless fields.nil?
|
429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
430
|
+
execute_or_queue_command(command, &block)
|
431
|
+
end
|
432
|
+
|
433
|
+
# Creates a deployment and all of the resources described by the deployment
|
434
|
+
# manifest.
|
435
|
+
# @param [String] project
|
436
|
+
# The project ID for this request.
|
437
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::Deployment] deployment_object
|
438
|
+
# @param [String] create_policy
|
439
|
+
# Sets the policy to use for creating new resources.
|
440
|
+
# @param [Boolean] preview
|
441
|
+
# If set to true, creates a deployment and creates "shell" resources but does
|
442
|
+
# not actually instantiate these resources. This allows you to preview what your
|
443
|
+
# deployment looks like. After previewing a deployment, you can deploy your
|
444
|
+
# resources by making a request with the `update()` method or you can use the `
|
445
|
+
# cancelPreview()` method to cancel the preview altogether. Note that the
|
446
|
+
# deployment will still exist after you cancel the preview and you must
|
447
|
+
# separately delete this deployment if you want to remove it.
|
448
|
+
# @param [String] fields
|
449
|
+
# Selector specifying which fields to include in a partial response.
|
450
|
+
# @param [String] quota_user
|
451
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
452
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
453
|
+
# @param [Google::Apis::RequestOptions] options
|
454
|
+
# Request-specific options
|
455
|
+
#
|
456
|
+
# @yield [result, err] Result & error if block supplied
|
457
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
458
|
+
# @yieldparam err [StandardError] error object if request failed
|
459
|
+
#
|
460
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
461
|
+
#
|
462
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
463
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
464
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
465
|
+
def insert_deployment(project, deployment_object = nil, create_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block)
|
466
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments', options)
|
467
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
|
468
|
+
command.request_object = deployment_object
|
469
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
470
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
471
|
+
command.params['project'] = project unless project.nil?
|
472
|
+
command.query['createPolicy'] = create_policy unless create_policy.nil?
|
473
|
+
command.query['preview'] = preview unless preview.nil?
|
474
|
+
command.query['fields'] = fields unless fields.nil?
|
475
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
476
|
+
execute_or_queue_command(command, &block)
|
477
|
+
end
|
478
|
+
|
479
|
+
# Lists all deployments for a given project.
|
480
|
+
# @param [String] project
|
481
|
+
# The project ID for this request.
|
482
|
+
# @param [String] filter
|
483
|
+
# A filter expression that filters resources listed in the response. The
|
484
|
+
# expression must specify the field name, a comparison operator, and the value
|
485
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
486
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
487
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
488
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
489
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
490
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
491
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
492
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
493
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
494
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
495
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
496
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
497
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
498
|
+
# @param [Fixnum] max_results
|
499
|
+
# The maximum number of results per page that should be returned. If the number
|
500
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
501
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
502
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
503
|
+
# @param [String] order_by
|
504
|
+
# Sorts list results by a certain order. By default, results are returned in
|
505
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
506
|
+
# descending order based on the creation timestamp using `orderBy="
|
507
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
508
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
509
|
+
# resources like operations so that the newest operation is returned first.
|
510
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
511
|
+
# @param [String] page_token
|
512
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
513
|
+
# by a previous list request to get the next page of results.
|
514
|
+
# @param [String] fields
|
515
|
+
# Selector specifying which fields to include in a partial response.
|
516
|
+
# @param [String] quota_user
|
517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
519
|
+
# @param [Google::Apis::RequestOptions] options
|
520
|
+
# Request-specific options
|
521
|
+
#
|
522
|
+
# @yield [result, err] Result & error if block supplied
|
523
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse] parsed result object
|
524
|
+
# @yieldparam err [StandardError] error object if request failed
|
525
|
+
#
|
526
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse]
|
527
|
+
#
|
528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
531
|
+
def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
532
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments', options)
|
533
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse::Representation
|
534
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse
|
535
|
+
command.params['project'] = project unless project.nil?
|
536
|
+
command.query['filter'] = filter unless filter.nil?
|
537
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
538
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
539
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
540
|
+
command.query['fields'] = fields unless fields.nil?
|
541
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
542
|
+
execute_or_queue_command(command, &block)
|
543
|
+
end
|
544
|
+
|
545
|
+
# Patches a deployment and all of the resources described by the deployment
|
546
|
+
# manifest.
|
547
|
+
# @param [String] project
|
548
|
+
# The project ID for this request.
|
549
|
+
# @param [String] deployment
|
550
|
+
# The name of the deployment for this request.
|
551
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::Deployment] deployment_object
|
552
|
+
# @param [String] create_policy
|
553
|
+
# Sets the policy to use for creating new resources.
|
554
|
+
# @param [String] delete_policy
|
555
|
+
# Sets the policy to use for deleting resources.
|
556
|
+
# @param [Boolean] preview
|
557
|
+
# If set to true, updates the deployment and creates and updates the "shell"
|
558
|
+
# resources but does not actually alter or instantiate these resources. This
|
559
|
+
# allows you to preview what your deployment will look like. You can use this
|
560
|
+
# intent to preview how an update would affect your deployment. You must provide
|
561
|
+
# a `target.config` with a configuration if this is set to true. After
|
562
|
+
# previewing a deployment, you can deploy your resources by making a request
|
563
|
+
# with the `update()` or you can `cancelPreview()` to remove the preview
|
564
|
+
# altogether. Note that the deployment will still exist after you cancel the
|
565
|
+
# preview and you must separately delete this deployment if you want to remove
|
566
|
+
# it.
|
567
|
+
# @param [String] fields
|
568
|
+
# Selector specifying which fields to include in a partial response.
|
569
|
+
# @param [String] quota_user
|
570
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
571
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
572
|
+
# @param [Google::Apis::RequestOptions] options
|
573
|
+
# Request-specific options
|
574
|
+
#
|
575
|
+
# @yield [result, err] Result & error if block supplied
|
576
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
577
|
+
# @yieldparam err [StandardError] error object if request failed
|
578
|
+
#
|
579
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
580
|
+
#
|
581
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
582
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
583
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
584
|
+
def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block)
|
585
|
+
command = make_simple_command(:patch, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options)
|
586
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
|
587
|
+
command.request_object = deployment_object
|
588
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
589
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
590
|
+
command.params['project'] = project unless project.nil?
|
591
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
592
|
+
command.query['createPolicy'] = create_policy unless create_policy.nil?
|
593
|
+
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
594
|
+
command.query['preview'] = preview unless preview.nil?
|
595
|
+
command.query['fields'] = fields unless fields.nil?
|
596
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
597
|
+
execute_or_queue_command(command, &block)
|
598
|
+
end
|
599
|
+
|
600
|
+
# Sets the access control policy on the specified resource. Replaces any
|
601
|
+
# existing policy.
|
602
|
+
# @param [String] project
|
603
|
+
# Project ID for this request.
|
604
|
+
# @param [String] resource
|
605
|
+
# Name or id of the resource for this request.
|
606
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
607
|
+
# @param [String] fields
|
608
|
+
# Selector specifying which fields to include in a partial response.
|
609
|
+
# @param [String] quota_user
|
610
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
611
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
612
|
+
# @param [Google::Apis::RequestOptions] options
|
613
|
+
# Request-specific options
|
614
|
+
#
|
615
|
+
# @yield [result, err] Result & error if block supplied
|
616
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Policy] parsed result object
|
617
|
+
# @yieldparam err [StandardError] error object if request failed
|
618
|
+
#
|
619
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Policy]
|
620
|
+
#
|
621
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
622
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
623
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
624
|
+
def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
625
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy', options)
|
626
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::GlobalSetPolicyRequest::Representation
|
627
|
+
command.request_object = global_set_policy_request_object
|
628
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation
|
629
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy
|
630
|
+
command.params['project'] = project unless project.nil?
|
631
|
+
command.params['resource'] = resource unless resource.nil?
|
632
|
+
command.query['fields'] = fields unless fields.nil?
|
633
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
634
|
+
execute_or_queue_command(command, &block)
|
635
|
+
end
|
636
|
+
|
637
|
+
# Stops an ongoing operation. This does not roll back any work that has already
|
638
|
+
# been completed, but prevents any new work from being started.
|
639
|
+
# @param [String] project
|
640
|
+
# The project ID for this request.
|
641
|
+
# @param [String] deployment
|
642
|
+
# The name of the deployment for this request.
|
643
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::DeploymentsStopRequest] deployments_stop_request_object
|
644
|
+
# @param [String] fields
|
645
|
+
# Selector specifying which fields to include in a partial response.
|
646
|
+
# @param [String] quota_user
|
647
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
648
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
649
|
+
# @param [Google::Apis::RequestOptions] options
|
650
|
+
# Request-specific options
|
651
|
+
#
|
652
|
+
# @yield [result, err] Result & error if block supplied
|
653
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
657
|
+
#
|
658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop', options)
|
663
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsStopRequest::Representation
|
664
|
+
command.request_object = deployments_stop_request_object
|
665
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
666
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
667
|
+
command.params['project'] = project unless project.nil?
|
668
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
669
|
+
command.query['fields'] = fields unless fields.nil?
|
670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
671
|
+
execute_or_queue_command(command, &block)
|
672
|
+
end
|
673
|
+
|
674
|
+
# Returns permissions that a caller has on the specified resource.
|
675
|
+
# @param [String] project
|
676
|
+
# Project ID for this request.
|
677
|
+
# @param [String] resource
|
678
|
+
# Name or id of the resource for this request.
|
679
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::TestPermissionsRequest] test_permissions_request_object
|
680
|
+
# @param [String] fields
|
681
|
+
# Selector specifying which fields to include in a partial response.
|
682
|
+
# @param [String] quota_user
|
683
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
684
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
685
|
+
# @param [Google::Apis::RequestOptions] options
|
686
|
+
# Request-specific options
|
687
|
+
#
|
688
|
+
# @yield [result, err] Result & error if block supplied
|
689
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse] parsed result object
|
690
|
+
# @yieldparam err [StandardError] error object if request failed
|
691
|
+
#
|
692
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse]
|
693
|
+
#
|
694
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
695
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
696
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
697
|
+
def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
698
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions', options)
|
699
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::TestPermissionsRequest::Representation
|
700
|
+
command.request_object = test_permissions_request_object
|
701
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse::Representation
|
702
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse
|
703
|
+
command.params['project'] = project unless project.nil?
|
704
|
+
command.params['resource'] = resource unless resource.nil?
|
705
|
+
command.query['fields'] = fields unless fields.nil?
|
706
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
707
|
+
execute_or_queue_command(command, &block)
|
708
|
+
end
|
709
|
+
|
710
|
+
# Updates a deployment and all of the resources described by the deployment
|
711
|
+
# manifest.
|
712
|
+
# @param [String] project
|
713
|
+
# The project ID for this request.
|
714
|
+
# @param [String] deployment
|
715
|
+
# The name of the deployment for this request.
|
716
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::Deployment] deployment_object
|
717
|
+
# @param [String] create_policy
|
718
|
+
# Sets the policy to use for creating new resources.
|
719
|
+
# @param [String] delete_policy
|
720
|
+
# Sets the policy to use for deleting resources.
|
721
|
+
# @param [Boolean] preview
|
722
|
+
# If set to true, updates the deployment and creates and updates the "shell"
|
723
|
+
# resources but does not actually alter or instantiate these resources. This
|
724
|
+
# allows you to preview what your deployment will look like. You can use this
|
725
|
+
# intent to preview how an update would affect your deployment. You must provide
|
726
|
+
# a `target.config` with a configuration if this is set to true. After
|
727
|
+
# previewing a deployment, you can deploy your resources by making a request
|
728
|
+
# with the `update()` or you can `cancelPreview()` to remove the preview
|
729
|
+
# altogether. Note that the deployment will still exist after you cancel the
|
730
|
+
# preview and you must separately delete this deployment if you want to remove
|
731
|
+
# it.
|
732
|
+
# @param [String] fields
|
733
|
+
# Selector specifying which fields to include in a partial response.
|
734
|
+
# @param [String] quota_user
|
735
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
736
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
737
|
+
# @param [Google::Apis::RequestOptions] options
|
738
|
+
# Request-specific options
|
739
|
+
#
|
740
|
+
# @yield [result, err] Result & error if block supplied
|
741
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
742
|
+
# @yieldparam err [StandardError] error object if request failed
|
743
|
+
#
|
744
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
745
|
+
#
|
746
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
747
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
748
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
749
|
+
def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block)
|
750
|
+
command = make_simple_command(:put, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options)
|
751
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
|
752
|
+
command.request_object = deployment_object
|
753
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
754
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
755
|
+
command.params['project'] = project unless project.nil?
|
756
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
757
|
+
command.query['createPolicy'] = create_policy unless create_policy.nil?
|
758
|
+
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
759
|
+
command.query['preview'] = preview unless preview.nil?
|
760
|
+
command.query['fields'] = fields unless fields.nil?
|
761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
762
|
+
execute_or_queue_command(command, &block)
|
763
|
+
end
|
764
|
+
|
765
|
+
# Gets information about a specific manifest.
|
766
|
+
# @param [String] project
|
767
|
+
# The project ID for this request.
|
768
|
+
# @param [String] deployment
|
769
|
+
# The name of the deployment for this request.
|
770
|
+
# @param [String] manifest
|
771
|
+
# The name of the manifest for this request.
|
772
|
+
# @param [String] fields
|
773
|
+
# Selector specifying which fields to include in a partial response.
|
774
|
+
# @param [String] quota_user
|
775
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
776
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
777
|
+
# @param [Google::Apis::RequestOptions] options
|
778
|
+
# Request-specific options
|
779
|
+
#
|
780
|
+
# @yield [result, err] Result & error if block supplied
|
781
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Manifest] parsed result object
|
782
|
+
# @yieldparam err [StandardError] error object if request failed
|
783
|
+
#
|
784
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Manifest]
|
785
|
+
#
|
786
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
787
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
788
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
789
|
+
def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, options: nil, &block)
|
790
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}', options)
|
791
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Manifest::Representation
|
792
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Manifest
|
793
|
+
command.params['project'] = project unless project.nil?
|
794
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
795
|
+
command.params['manifest'] = manifest unless manifest.nil?
|
796
|
+
command.query['fields'] = fields unless fields.nil?
|
797
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
798
|
+
execute_or_queue_command(command, &block)
|
799
|
+
end
|
800
|
+
|
801
|
+
# Lists all manifests for a given deployment.
|
802
|
+
# @param [String] project
|
803
|
+
# The project ID for this request.
|
804
|
+
# @param [String] deployment
|
805
|
+
# The name of the deployment for this request.
|
806
|
+
# @param [String] filter
|
807
|
+
# A filter expression that filters resources listed in the response. The
|
808
|
+
# expression must specify the field name, a comparison operator, and the value
|
809
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
810
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
811
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
812
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
813
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
814
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
815
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
816
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
817
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
818
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
819
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
820
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
821
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
822
|
+
# @param [Fixnum] max_results
|
823
|
+
# The maximum number of results per page that should be returned. If the number
|
824
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
825
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
826
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
827
|
+
# @param [String] order_by
|
828
|
+
# Sorts list results by a certain order. By default, results are returned in
|
829
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
830
|
+
# descending order based on the creation timestamp using `orderBy="
|
831
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
832
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
833
|
+
# resources like operations so that the newest operation is returned first.
|
834
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
835
|
+
# @param [String] page_token
|
836
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
837
|
+
# by a previous list request to get the next page of results.
|
838
|
+
# @param [String] fields
|
839
|
+
# Selector specifying which fields to include in a partial response.
|
840
|
+
# @param [String] quota_user
|
841
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
842
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
843
|
+
# @param [Google::Apis::RequestOptions] options
|
844
|
+
# Request-specific options
|
845
|
+
#
|
846
|
+
# @yield [result, err] Result & error if block supplied
|
847
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse] parsed result object
|
848
|
+
# @yieldparam err [StandardError] error object if request failed
|
849
|
+
#
|
850
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse]
|
851
|
+
#
|
852
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
853
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
854
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
855
|
+
def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
856
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests', options)
|
857
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse::Representation
|
858
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse
|
859
|
+
command.params['project'] = project unless project.nil?
|
860
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
861
|
+
command.query['filter'] = filter unless filter.nil?
|
862
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
863
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
864
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
865
|
+
command.query['fields'] = fields unless fields.nil?
|
866
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
867
|
+
execute_or_queue_command(command, &block)
|
868
|
+
end
|
869
|
+
|
870
|
+
# Gets information about a specific operation.
|
871
|
+
# @param [String] project
|
872
|
+
# The project ID for this request.
|
873
|
+
# @param [String] operation
|
874
|
+
# The name of the operation for this request.
|
875
|
+
# @param [String] fields
|
876
|
+
# Selector specifying which fields to include in a partial response.
|
877
|
+
# @param [String] quota_user
|
878
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
879
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
880
|
+
# @param [Google::Apis::RequestOptions] options
|
881
|
+
# Request-specific options
|
882
|
+
#
|
883
|
+
# @yield [result, err] Result & error if block supplied
|
884
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
885
|
+
# @yieldparam err [StandardError] error object if request failed
|
886
|
+
#
|
887
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
888
|
+
#
|
889
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
890
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
891
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
892
|
+
def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
|
893
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/operations/{operation}', options)
|
894
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
895
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
896
|
+
command.params['project'] = project unless project.nil?
|
897
|
+
command.params['operation'] = operation unless operation.nil?
|
898
|
+
command.query['fields'] = fields unless fields.nil?
|
899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
900
|
+
execute_or_queue_command(command, &block)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Lists all operations for a project.
|
904
|
+
# @param [String] project
|
905
|
+
# The project ID for this request.
|
906
|
+
# @param [String] filter
|
907
|
+
# A filter expression that filters resources listed in the response. The
|
908
|
+
# expression must specify the field name, a comparison operator, and the value
|
909
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
910
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
911
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
912
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
913
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
914
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
915
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
916
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
917
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
918
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
919
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
920
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
921
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
922
|
+
# @param [Fixnum] max_results
|
923
|
+
# The maximum number of results per page that should be returned. If the number
|
924
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
925
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
926
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
927
|
+
# @param [String] order_by
|
928
|
+
# Sorts list results by a certain order. By default, results are returned in
|
929
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
930
|
+
# descending order based on the creation timestamp using `orderBy="
|
931
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
932
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
933
|
+
# resources like operations so that the newest operation is returned first.
|
934
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
935
|
+
# @param [String] page_token
|
936
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
937
|
+
# by a previous list request to get the next page of results.
|
938
|
+
# @param [String] fields
|
939
|
+
# Selector specifying which fields to include in a partial response.
|
940
|
+
# @param [String] quota_user
|
941
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
942
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
943
|
+
# @param [Google::Apis::RequestOptions] options
|
944
|
+
# Request-specific options
|
945
|
+
#
|
946
|
+
# @yield [result, err] Result & error if block supplied
|
947
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::OperationsListResponse] parsed result object
|
948
|
+
# @yieldparam err [StandardError] error object if request failed
|
949
|
+
#
|
950
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::OperationsListResponse]
|
951
|
+
#
|
952
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
953
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
954
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
955
|
+
def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
956
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/operations', options)
|
957
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse::Representation
|
958
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse
|
959
|
+
command.params['project'] = project unless project.nil?
|
960
|
+
command.query['filter'] = filter unless filter.nil?
|
961
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
962
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
963
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
964
|
+
command.query['fields'] = fields unless fields.nil?
|
965
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
966
|
+
execute_or_queue_command(command, &block)
|
967
|
+
end
|
968
|
+
|
969
|
+
# Gets information about a single resource.
|
970
|
+
# @param [String] project
|
971
|
+
# The project ID for this request.
|
972
|
+
# @param [String] deployment
|
973
|
+
# The name of the deployment for this request.
|
974
|
+
# @param [String] resource
|
975
|
+
# The name of the resource for this request.
|
976
|
+
# @param [String] fields
|
977
|
+
# Selector specifying which fields to include in a partial response.
|
978
|
+
# @param [String] quota_user
|
979
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
980
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
981
|
+
# @param [Google::Apis::RequestOptions] options
|
982
|
+
# Request-specific options
|
983
|
+
#
|
984
|
+
# @yield [result, err] Result & error if block supplied
|
985
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Resource] parsed result object
|
986
|
+
# @yieldparam err [StandardError] error object if request failed
|
987
|
+
#
|
988
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Resource]
|
989
|
+
#
|
990
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
991
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
992
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
993
|
+
def get_resource(project, deployment, resource, fields: nil, quota_user: nil, options: nil, &block)
|
994
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}', options)
|
995
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Resource::Representation
|
996
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Resource
|
997
|
+
command.params['project'] = project unless project.nil?
|
998
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
999
|
+
command.params['resource'] = resource unless resource.nil?
|
1000
|
+
command.query['fields'] = fields unless fields.nil?
|
1001
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1002
|
+
execute_or_queue_command(command, &block)
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
# Lists all resources in a given deployment.
|
1006
|
+
# @param [String] project
|
1007
|
+
# The project ID for this request.
|
1008
|
+
# @param [String] deployment
|
1009
|
+
# The name of the deployment for this request.
|
1010
|
+
# @param [String] filter
|
1011
|
+
# A filter expression that filters resources listed in the response. The
|
1012
|
+
# expression must specify the field name, a comparison operator, and the value
|
1013
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
1014
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
1015
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
1016
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
1017
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
1018
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
1019
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
1020
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
1021
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
1022
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
1023
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
1024
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
1025
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1026
|
+
# @param [Fixnum] max_results
|
1027
|
+
# The maximum number of results per page that should be returned. If the number
|
1028
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1029
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1030
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1031
|
+
# @param [String] order_by
|
1032
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1033
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1034
|
+
# descending order based on the creation timestamp using `orderBy="
|
1035
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1036
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1037
|
+
# resources like operations so that the newest operation is returned first.
|
1038
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1039
|
+
# @param [String] page_token
|
1040
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1041
|
+
# by a previous list request to get the next page of results.
|
1042
|
+
# @param [String] fields
|
1043
|
+
# Selector specifying which fields to include in a partial response.
|
1044
|
+
# @param [String] quota_user
|
1045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1047
|
+
# @param [Google::Apis::RequestOptions] options
|
1048
|
+
# Request-specific options
|
1049
|
+
#
|
1050
|
+
# @yield [result, err] Result & error if block supplied
|
1051
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse] parsed result object
|
1052
|
+
# @yieldparam err [StandardError] error object if request failed
|
1053
|
+
#
|
1054
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse]
|
1055
|
+
#
|
1056
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1057
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1058
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1059
|
+
def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1060
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources', options)
|
1061
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse::Representation
|
1062
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse
|
1063
|
+
command.params['project'] = project unless project.nil?
|
1064
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
1065
|
+
command.query['filter'] = filter unless filter.nil?
|
1066
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1067
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1068
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1069
|
+
command.query['fields'] = fields unless fields.nil?
|
1070
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1071
|
+
execute_or_queue_command(command, &block)
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
# Deletes a type provider.
|
1075
|
+
# @param [String] project
|
1076
|
+
# The project ID for this request.
|
1077
|
+
# @param [String] type_provider
|
1078
|
+
# The name of the type provider for this request.
|
1079
|
+
# @param [String] fields
|
1080
|
+
# Selector specifying which fields to include in a partial response.
|
1081
|
+
# @param [String] quota_user
|
1082
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1083
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1084
|
+
# @param [Google::Apis::RequestOptions] options
|
1085
|
+
# Request-specific options
|
1086
|
+
#
|
1087
|
+
# @yield [result, err] Result & error if block supplied
|
1088
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
1089
|
+
# @yieldparam err [StandardError] error object if request failed
|
1090
|
+
#
|
1091
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
1092
|
+
#
|
1093
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1094
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1095
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1096
|
+
def delete_type_provider(project, type_provider, fields: nil, quota_user: nil, options: nil, &block)
|
1097
|
+
command = make_simple_command(:delete, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options)
|
1098
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
1099
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
1100
|
+
command.params['project'] = project unless project.nil?
|
1101
|
+
command.params['typeProvider'] = type_provider unless type_provider.nil?
|
1102
|
+
command.query['fields'] = fields unless fields.nil?
|
1103
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1104
|
+
execute_or_queue_command(command, &block)
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
# Gets information about a specific type provider.
|
1108
|
+
# @param [String] project
|
1109
|
+
# The project ID for this request.
|
1110
|
+
# @param [String] type_provider
|
1111
|
+
# The name of the type provider for this request.
|
1112
|
+
# @param [String] fields
|
1113
|
+
# Selector specifying which fields to include in a partial response.
|
1114
|
+
# @param [String] quota_user
|
1115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1117
|
+
# @param [Google::Apis::RequestOptions] options
|
1118
|
+
# Request-specific options
|
1119
|
+
#
|
1120
|
+
# @yield [result, err] Result & error if block supplied
|
1121
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeProvider] parsed result object
|
1122
|
+
# @yieldparam err [StandardError] error object if request failed
|
1123
|
+
#
|
1124
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::TypeProvider]
|
1125
|
+
#
|
1126
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1127
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1128
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1129
|
+
def get_type_provider(project, type_provider, fields: nil, quota_user: nil, options: nil, &block)
|
1130
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options)
|
1131
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
|
1132
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvider
|
1133
|
+
command.params['project'] = project unless project.nil?
|
1134
|
+
command.params['typeProvider'] = type_provider unless type_provider.nil?
|
1135
|
+
command.query['fields'] = fields unless fields.nil?
|
1136
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1137
|
+
execute_or_queue_command(command, &block)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Gets a type info for a type provided by a TypeProvider.
|
1141
|
+
# @param [String] project
|
1142
|
+
# The project ID for this request.
|
1143
|
+
# @param [String] type_provider
|
1144
|
+
# The name of the type provider for this request.
|
1145
|
+
# @param [String] type
|
1146
|
+
# The name of the type provider type for this request.
|
1147
|
+
# @param [String] fields
|
1148
|
+
# Selector specifying which fields to include in a partial response.
|
1149
|
+
# @param [String] quota_user
|
1150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1152
|
+
# @param [Google::Apis::RequestOptions] options
|
1153
|
+
# Request-specific options
|
1154
|
+
#
|
1155
|
+
# @yield [result, err] Result & error if block supplied
|
1156
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeInfo] parsed result object
|
1157
|
+
# @yieldparam err [StandardError] error object if request failed
|
1158
|
+
#
|
1159
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::TypeInfo]
|
1160
|
+
#
|
1161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1164
|
+
def get_type_provider_type(project, type_provider, type, fields: nil, quota_user: nil, options: nil, &block)
|
1165
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}', options)
|
1166
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeInfo::Representation
|
1167
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeInfo
|
1168
|
+
command.params['project'] = project unless project.nil?
|
1169
|
+
command.params['typeProvider'] = type_provider unless type_provider.nil?
|
1170
|
+
command.params['type'] = type unless type.nil?
|
1171
|
+
command.query['fields'] = fields unless fields.nil?
|
1172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1173
|
+
execute_or_queue_command(command, &block)
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
# Creates a type provider.
|
1177
|
+
# @param [String] project
|
1178
|
+
# The project ID for this request.
|
1179
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::TypeProvider] type_provider_object
|
1180
|
+
# @param [String] fields
|
1181
|
+
# Selector specifying which fields to include in a partial response.
|
1182
|
+
# @param [String] quota_user
|
1183
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1184
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1185
|
+
# @param [Google::Apis::RequestOptions] options
|
1186
|
+
# Request-specific options
|
1187
|
+
#
|
1188
|
+
# @yield [result, err] Result & error if block supplied
|
1189
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
1190
|
+
# @yieldparam err [StandardError] error object if request failed
|
1191
|
+
#
|
1192
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
1193
|
+
#
|
1194
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1195
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1196
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1197
|
+
def insert_type_provider(project, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1198
|
+
command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/typeProviders', options)
|
1199
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
|
1200
|
+
command.request_object = type_provider_object
|
1201
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
1202
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
1203
|
+
command.params['project'] = project unless project.nil?
|
1204
|
+
command.query['fields'] = fields unless fields.nil?
|
1205
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1206
|
+
execute_or_queue_command(command, &block)
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# Lists all resource type providers for Deployment Manager.
|
1210
|
+
# @param [String] project
|
1211
|
+
# The project ID for this request.
|
1212
|
+
# @param [String] filter
|
1213
|
+
# A filter expression that filters resources listed in the response. The
|
1214
|
+
# expression must specify the field name, a comparison operator, and the value
|
1215
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
1216
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
1217
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
1218
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
1219
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
1220
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
1221
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
1222
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
1223
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
1224
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
1225
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
1226
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
1227
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1228
|
+
# @param [Fixnum] max_results
|
1229
|
+
# The maximum number of results per page that should be returned. If the number
|
1230
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1231
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1232
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1233
|
+
# @param [String] order_by
|
1234
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1235
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1236
|
+
# descending order based on the creation timestamp using `orderBy="
|
1237
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1238
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1239
|
+
# resources like operations so that the newest operation is returned first.
|
1240
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1241
|
+
# @param [String] page_token
|
1242
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1243
|
+
# by a previous list request to get the next page of results.
|
1244
|
+
# @param [String] fields
|
1245
|
+
# Selector specifying which fields to include in a partial response.
|
1246
|
+
# @param [String] quota_user
|
1247
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1248
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1249
|
+
# @param [Google::Apis::RequestOptions] options
|
1250
|
+
# Request-specific options
|
1251
|
+
#
|
1252
|
+
# @yield [result, err] Result & error if block supplied
|
1253
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse] parsed result object
|
1254
|
+
# @yieldparam err [StandardError] error object if request failed
|
1255
|
+
#
|
1256
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse]
|
1257
|
+
#
|
1258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1261
|
+
def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1262
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders', options)
|
1263
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse::Representation
|
1264
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse
|
1265
|
+
command.params['project'] = project unless project.nil?
|
1266
|
+
command.query['filter'] = filter unless filter.nil?
|
1267
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1268
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1269
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1270
|
+
command.query['fields'] = fields unless fields.nil?
|
1271
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1272
|
+
execute_or_queue_command(command, &block)
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
# Lists all the type info for a TypeProvider.
|
1276
|
+
# @param [String] project
|
1277
|
+
# The project ID for this request.
|
1278
|
+
# @param [String] type_provider
|
1279
|
+
# The name of the type provider for this request.
|
1280
|
+
# @param [String] filter
|
1281
|
+
# A filter expression that filters resources listed in the response. The
|
1282
|
+
# expression must specify the field name, a comparison operator, and the value
|
1283
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
1284
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
1285
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
1286
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
1287
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
1288
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
1289
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
1290
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
1291
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
1292
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
1293
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
1294
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
1295
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1296
|
+
# @param [Fixnum] max_results
|
1297
|
+
# The maximum number of results per page that should be returned. If the number
|
1298
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1299
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1300
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1301
|
+
# @param [String] order_by
|
1302
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1303
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1304
|
+
# descending order based on the creation timestamp using `orderBy="
|
1305
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1306
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1307
|
+
# resources like operations so that the newest operation is returned first.
|
1308
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1309
|
+
# @param [String] page_token
|
1310
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1311
|
+
# by a previous list request to get the next page of results.
|
1312
|
+
# @param [String] fields
|
1313
|
+
# Selector specifying which fields to include in a partial response.
|
1314
|
+
# @param [String] quota_user
|
1315
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1316
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1317
|
+
# @param [Google::Apis::RequestOptions] options
|
1318
|
+
# Request-specific options
|
1319
|
+
#
|
1320
|
+
# @yield [result, err] Result & error if block supplied
|
1321
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse] parsed result object
|
1322
|
+
# @yieldparam err [StandardError] error object if request failed
|
1323
|
+
#
|
1324
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse]
|
1325
|
+
#
|
1326
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1327
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1328
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1329
|
+
def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1330
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types', options)
|
1331
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse::Representation
|
1332
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse
|
1333
|
+
command.params['project'] = project unless project.nil?
|
1334
|
+
command.params['typeProvider'] = type_provider unless type_provider.nil?
|
1335
|
+
command.query['filter'] = filter unless filter.nil?
|
1336
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1337
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1338
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1339
|
+
command.query['fields'] = fields unless fields.nil?
|
1340
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1341
|
+
execute_or_queue_command(command, &block)
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
# Patches a type provider.
|
1345
|
+
# @param [String] project
|
1346
|
+
# The project ID for this request.
|
1347
|
+
# @param [String] type_provider
|
1348
|
+
# The name of the type provider for this request.
|
1349
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::TypeProvider] type_provider_object
|
1350
|
+
# @param [String] fields
|
1351
|
+
# Selector specifying which fields to include in a partial response.
|
1352
|
+
# @param [String] quota_user
|
1353
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1354
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1355
|
+
# @param [Google::Apis::RequestOptions] options
|
1356
|
+
# Request-specific options
|
1357
|
+
#
|
1358
|
+
# @yield [result, err] Result & error if block supplied
|
1359
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
1360
|
+
# @yieldparam err [StandardError] error object if request failed
|
1361
|
+
#
|
1362
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
1363
|
+
#
|
1364
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1365
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1366
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1367
|
+
def patch_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1368
|
+
command = make_simple_command(:patch, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options)
|
1369
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
|
1370
|
+
command.request_object = type_provider_object
|
1371
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
1372
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
1373
|
+
command.params['project'] = project unless project.nil?
|
1374
|
+
command.params['typeProvider'] = type_provider unless type_provider.nil?
|
1375
|
+
command.query['fields'] = fields unless fields.nil?
|
1376
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1377
|
+
execute_or_queue_command(command, &block)
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
# Updates a type provider.
|
1381
|
+
# @param [String] project
|
1382
|
+
# The project ID for this request.
|
1383
|
+
# @param [String] type_provider
|
1384
|
+
# The name of the type provider for this request.
|
1385
|
+
# @param [Google::Apis::DeploymentmanagerAlpha::TypeProvider] type_provider_object
|
1386
|
+
# @param [String] fields
|
1387
|
+
# Selector specifying which fields to include in a partial response.
|
1388
|
+
# @param [String] quota_user
|
1389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1391
|
+
# @param [Google::Apis::RequestOptions] options
|
1392
|
+
# Request-specific options
|
1393
|
+
#
|
1394
|
+
# @yield [result, err] Result & error if block supplied
|
1395
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
|
1396
|
+
# @yieldparam err [StandardError] error object if request failed
|
1397
|
+
#
|
1398
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
1399
|
+
#
|
1400
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1401
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1402
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1403
|
+
def update_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1404
|
+
command = make_simple_command(:put, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options)
|
1405
|
+
command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
|
1406
|
+
command.request_object = type_provider_object
|
1407
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
1408
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
|
1409
|
+
command.params['project'] = project unless project.nil?
|
1410
|
+
command.params['typeProvider'] = type_provider unless type_provider.nil?
|
1411
|
+
command.query['fields'] = fields unless fields.nil?
|
1412
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1413
|
+
execute_or_queue_command(command, &block)
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# Gets information about a specific type.
|
1417
|
+
# @param [String] project
|
1418
|
+
# The project ID for this request.
|
1419
|
+
# @param [String] type
|
1420
|
+
# The name of the type for this request.
|
1421
|
+
# @param [String] fields
|
1422
|
+
# Selector specifying which fields to include in a partial response.
|
1423
|
+
# @param [String] quota_user
|
1424
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1425
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1426
|
+
# @param [Google::Apis::RequestOptions] options
|
1427
|
+
# Request-specific options
|
1428
|
+
#
|
1429
|
+
# @yield [result, err] Result & error if block supplied
|
1430
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Type] parsed result object
|
1431
|
+
# @yieldparam err [StandardError] error object if request failed
|
1432
|
+
#
|
1433
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::Type]
|
1434
|
+
#
|
1435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1438
|
+
def get_type(project, type, fields: nil, quota_user: nil, options: nil, &block)
|
1439
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/types/{type}', options)
|
1440
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation
|
1441
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::Type
|
1442
|
+
command.params['project'] = project unless project.nil?
|
1443
|
+
command.params['type'] = type unless type.nil?
|
1444
|
+
command.query['fields'] = fields unless fields.nil?
|
1445
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1446
|
+
execute_or_queue_command(command, &block)
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# Lists all resource types for Deployment Manager.
|
1450
|
+
# @param [String] project
|
1451
|
+
# The project ID for this request.
|
1452
|
+
# @param [String] filter
|
1453
|
+
# A filter expression that filters resources listed in the response. The
|
1454
|
+
# expression must specify the field name, a comparison operator, and the value
|
1455
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
1456
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
1457
|
+
# example, if you are filtering Compute Engine instances, you can exclude
|
1458
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
1459
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
1460
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
1461
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
1462
|
+
# on resource labels. To filter on multiple expressions, provide each separate
|
1463
|
+
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
1464
|
+
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
1465
|
+
# AND` expression. However, you can include `AND` and `OR` expressions
|
1466
|
+
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
1467
|
+
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
1468
|
+
# @param [Fixnum] max_results
|
1469
|
+
# The maximum number of results per page that should be returned. If the number
|
1470
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1471
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1472
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1473
|
+
# @param [String] order_by
|
1474
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1475
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1476
|
+
# descending order based on the creation timestamp using `orderBy="
|
1477
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1478
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1479
|
+
# resources like operations so that the newest operation is returned first.
|
1480
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1481
|
+
# @param [String] page_token
|
1482
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1483
|
+
# by a previous list request to get the next page of results.
|
1484
|
+
# @param [String] fields
|
1485
|
+
# Selector specifying which fields to include in a partial response.
|
1486
|
+
# @param [String] quota_user
|
1487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1489
|
+
# @param [Google::Apis::RequestOptions] options
|
1490
|
+
# Request-specific options
|
1491
|
+
#
|
1492
|
+
# @yield [result, err] Result & error if block supplied
|
1493
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypesListResponse] parsed result object
|
1494
|
+
# @yieldparam err [StandardError] error object if request failed
|
1495
|
+
#
|
1496
|
+
# @return [Google::Apis::DeploymentmanagerAlpha::TypesListResponse]
|
1497
|
+
#
|
1498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1501
|
+
def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1502
|
+
command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/types', options)
|
1503
|
+
command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypesListResponse::Representation
|
1504
|
+
command.response_class = Google::Apis::DeploymentmanagerAlpha::TypesListResponse
|
1505
|
+
command.params['project'] = project unless project.nil?
|
1506
|
+
command.query['filter'] = filter unless filter.nil?
|
1507
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1508
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1509
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1510
|
+
command.query['fields'] = fields unless fields.nil?
|
1511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1512
|
+
execute_or_queue_command(command, &block)
|
1513
|
+
end
|
1514
|
+
|
1515
|
+
protected
|
1516
|
+
|
1517
|
+
def apply_command_defaults(command)
|
1518
|
+
command.query['key'] = key unless key.nil?
|
1519
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1520
|
+
end
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
end
|