Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.runtimeconfig.v1beta1; 3 library googleapis_beta.runtimeconfig.v1beta1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client runtimeconfig/v1beta1'; 15 const core.String USER_AGENT = 'dart-api-client runtimeconfig/v1beta1';
16 16
17 /** 17 /// The Runtime Configurator allows you to dynamically configure and expose
18 * The Runtime Configurator allows you to dynamically configure and expose 18 /// variables through Google Cloud Platform. In addition, you can also set
19 * variables through Google Cloud Platform. In addition, you can also set 19 /// Watchers and Waiters that will watch for changes to your data and return
20 * Watchers and Waiters that will watch for changes to your data and return 20 /// based on certain conditions.
21 * based on certain conditions.
22 */
23 class RuntimeconfigApi { 21 class RuntimeconfigApi {
24 /** View and manage your data across Google Cloud Platform services */ 22 /// View and manage your data across Google Cloud Platform services
25 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope =
24 "https://www.googleapis.com/auth/cloud-platform";
26 25
27 /** Manage your Google Cloud Platform services' runtime configuration */ 26 /// Manage your Google Cloud Platform services' runtime configuration
28 static const CloudruntimeconfigScope = "https://www.googleapis.com/auth/cloudr untimeconfig"; 27 static const CloudruntimeconfigScope =
29 28 "https://www.googleapis.com/auth/cloudruntimeconfig";
30 29
31 final commons.ApiRequester _requester; 30 final commons.ApiRequester _requester;
32 31
33 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 32 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
34 33
35 RuntimeconfigApi(http.Client client, {core.String rootUrl: "https://runtimecon fig.googleapis.com/", core.String servicePath: ""}) : 34 RuntimeconfigApi(http.Client client,
36 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 35 {core.String rootUrl: "https://runtimeconfig.googleapis.com/",
36 core.String servicePath: ""})
37 : _requester =
38 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
37 } 39 }
38 40
39
40 class ProjectsResourceApi { 41 class ProjectsResourceApi {
41 final commons.ApiRequester _requester; 42 final commons.ApiRequester _requester;
42 43
43 ProjectsConfigsResourceApi get configs => new ProjectsConfigsResourceApi(_requ ester); 44 ProjectsConfigsResourceApi get configs =>
45 new ProjectsConfigsResourceApi(_requester);
44 46
45 ProjectsResourceApi(commons.ApiRequester client) : 47 ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
46 _requester = client;
47 } 48 }
48 49
49
50 class ProjectsConfigsResourceApi { 50 class ProjectsConfigsResourceApi {
51 final commons.ApiRequester _requester; 51 final commons.ApiRequester _requester;
52 52
53 ProjectsConfigsOperationsResourceApi get operations => new ProjectsConfigsOper ationsResourceApi(_requester); 53 ProjectsConfigsOperationsResourceApi get operations =>
54 ProjectsConfigsVariablesResourceApi get variables => new ProjectsConfigsVariab lesResourceApi(_requester); 54 new ProjectsConfigsOperationsResourceApi(_requester);
55 ProjectsConfigsWaitersResourceApi get waiters => new ProjectsConfigsWaitersRes ourceApi(_requester); 55 ProjectsConfigsVariablesResourceApi get variables =>
56 new ProjectsConfigsVariablesResourceApi(_requester);
57 ProjectsConfigsWaitersResourceApi get waiters =>
58 new ProjectsConfigsWaitersResourceApi(_requester);
56 59
57 ProjectsConfigsResourceApi(commons.ApiRequester client) : 60 ProjectsConfigsResourceApi(commons.ApiRequester client) : _requester = client;
58 _requester = client;
59 61
60 /** 62 /// Creates a new RuntimeConfig resource. The configuration name must be
61 * Creates a new RuntimeConfig resource. The configuration name must be 63 /// unique within project.
62 * unique within project. 64 ///
63 * 65 /// [request] - The metadata request object.
64 * [request] - The metadata request object. 66 ///
65 * 67 /// Request parameters:
66 * Request parameters: 68 ///
67 * 69 /// [parent] - The [project
68 * [parent] - The [project 70 /// ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=615884 8)
69 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848 ) 71 /// for this request, in the format `projects/[PROJECT_ID]`.
70 * for this request, in the format `projects/[PROJECT_ID]`. 72 /// Value must have pattern "^projects/[^/]+$".
71 * Value must have pattern "^projects/[^/]+$". 73 ///
72 * 74 /// [requestId] - An optional but recommended unique `request_id`. If the
73 * [requestId] - An optional but recommended unique `request_id`. If the 75 /// server
74 * server 76 /// receives two `create()` requests with the same
75 * receives two `create()` requests with the same 77 /// `request_id`, then the second request will be ignored and the
76 * `request_id`, then the second request will be ignored and the 78 /// first resource created and stored in the backend is returned.
77 * first resource created and stored in the backend is returned. 79 /// Empty `request_id` fields are ignored.
78 * Empty `request_id` fields are ignored. 80 ///
79 * 81 /// It is responsibility of the client to ensure uniqueness of the
80 * It is responsibility of the client to ensure uniqueness of the 82 /// `request_id` strings.
81 * `request_id` strings. 83 ///
82 * 84 /// `request_id` strings are limited to 64 characters.
83 * `request_id` strings are limited to 64 characters. 85 ///
84 * 86 /// Completes with a [RuntimeConfig].
85 * Completes with a [RuntimeConfig]. 87 ///
86 * 88 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
87 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 89 /// an error.
88 * error. 90 ///
89 * 91 /// If the used [http.Client] completes with an error when making a REST
90 * If the used [http.Client] completes with an error when making a REST call, 92 /// call, this method will complete with the same error.
91 * this method will complete with the same error. 93 async.Future<RuntimeConfig> create(RuntimeConfig request, core.String parent,
92 */ 94 {core.String requestId}) {
93 async.Future<RuntimeConfig> create(RuntimeConfig request, core.String parent, {core.String requestId}) {
94 var _url = null; 95 var _url = null;
95 var _queryParams = new core.Map(); 96 var _queryParams = new core.Map();
96 var _uploadMedia = null; 97 var _uploadMedia = null;
97 var _uploadOptions = null; 98 var _uploadOptions = null;
98 var _downloadOptions = commons.DownloadOptions.Metadata; 99 var _downloadOptions = commons.DownloadOptions.Metadata;
99 var _body = null; 100 var _body = null;
100 101
101 if (request != null) { 102 if (request != null) {
102 _body = convert.JSON.encode((request).toJson()); 103 _body = convert.JSON.encode((request).toJson());
103 } 104 }
104 if (parent == null) { 105 if (parent == null) {
105 throw new core.ArgumentError("Parameter parent is required."); 106 throw new core.ArgumentError("Parameter parent is required.");
106 } 107 }
107 if (requestId != null) { 108 if (requestId != null) {
108 _queryParams["requestId"] = [requestId]; 109 _queryParams["requestId"] = [requestId];
109 } 110 }
110 111
111 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/con figs'; 112 _url = 'v1beta1/' +
113 commons.Escaper.ecapeVariableReserved('$parent') +
114 '/configs';
112 115
113 var _response = _requester.request(_url, 116 var _response = _requester.request(_url, "POST",
114 "POST", 117 body: _body,
115 body: _body, 118 queryParams: _queryParams,
116 queryParams: _queryParams, 119 uploadOptions: _uploadOptions,
117 uploadOptions: _uploadOptions, 120 uploadMedia: _uploadMedia,
118 uploadMedia: _uploadMedia, 121 downloadOptions: _downloadOptions);
119 downloadOptions: _downloadOptions);
120 return _response.then((data) => new RuntimeConfig.fromJson(data)); 122 return _response.then((data) => new RuntimeConfig.fromJson(data));
121 } 123 }
122 124
123 /** 125 /// Deletes a RuntimeConfig resource.
124 * Deletes a RuntimeConfig resource. 126 ///
125 * 127 /// Request parameters:
126 * Request parameters: 128 ///
127 * 129 /// [name] - The RuntimeConfig resource to delete, in the format:
128 * [name] - The RuntimeConfig resource to delete, in the format: 130 ///
129 * 131 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
130 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 132 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
131 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 133 ///
132 * 134 /// Completes with a [Empty].
133 * Completes with a [Empty]. 135 ///
134 * 136 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 137 /// an error.
136 * error. 138 ///
137 * 139 /// If the used [http.Client] completes with an error when making a REST
138 * If the used [http.Client] completes with an error when making a REST call, 140 /// call, this method will complete with the same error.
139 * this method will complete with the same error.
140 */
141 async.Future<Empty> delete(core.String name) { 141 async.Future<Empty> delete(core.String name) {
142 var _url = null; 142 var _url = null;
143 var _queryParams = new core.Map(); 143 var _queryParams = new core.Map();
144 var _uploadMedia = null; 144 var _uploadMedia = null;
145 var _uploadOptions = null; 145 var _uploadOptions = null;
146 var _downloadOptions = commons.DownloadOptions.Metadata; 146 var _downloadOptions = commons.DownloadOptions.Metadata;
147 var _body = null; 147 var _body = null;
148 148
149 if (name == null) { 149 if (name == null) {
150 throw new core.ArgumentError("Parameter name is required."); 150 throw new core.ArgumentError("Parameter name is required.");
151 } 151 }
152 152
153 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 153 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
154 154
155 var _response = _requester.request(_url, 155 var _response = _requester.request(_url, "DELETE",
156 "DELETE", 156 body: _body,
157 body: _body, 157 queryParams: _queryParams,
158 queryParams: _queryParams, 158 uploadOptions: _uploadOptions,
159 uploadOptions: _uploadOptions, 159 uploadMedia: _uploadMedia,
160 uploadMedia: _uploadMedia, 160 downloadOptions: _downloadOptions);
161 downloadOptions: _downloadOptions);
162 return _response.then((data) => new Empty.fromJson(data)); 161 return _response.then((data) => new Empty.fromJson(data));
163 } 162 }
164 163
165 /** 164 /// Gets information about a RuntimeConfig resource.
166 * Gets information about a RuntimeConfig resource. 165 ///
167 * 166 /// Request parameters:
168 * Request parameters: 167 ///
169 * 168 /// [name] - The name of the RuntimeConfig resource to retrieve, in the
170 * [name] - The name of the RuntimeConfig resource to retrieve, in the format: 169 /// format:
171 * 170 ///
172 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 171 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
173 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 172 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
174 * 173 ///
175 * Completes with a [RuntimeConfig]. 174 /// Completes with a [RuntimeConfig].
176 * 175 ///
177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 176 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
178 * error. 177 /// an error.
179 * 178 ///
180 * If the used [http.Client] completes with an error when making a REST call, 179 /// If the used [http.Client] completes with an error when making a REST
181 * this method will complete with the same error. 180 /// call, this method will complete with the same error.
182 */
183 async.Future<RuntimeConfig> get(core.String name) { 181 async.Future<RuntimeConfig> get(core.String name) {
184 var _url = null; 182 var _url = null;
185 var _queryParams = new core.Map(); 183 var _queryParams = new core.Map();
186 var _uploadMedia = null; 184 var _uploadMedia = null;
187 var _uploadOptions = null; 185 var _uploadOptions = null;
188 var _downloadOptions = commons.DownloadOptions.Metadata; 186 var _downloadOptions = commons.DownloadOptions.Metadata;
189 var _body = null; 187 var _body = null;
190 188
191 if (name == null) { 189 if (name == null) {
192 throw new core.ArgumentError("Parameter name is required."); 190 throw new core.ArgumentError("Parameter name is required.");
193 } 191 }
194 192
195 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 193 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
196 194
197 var _response = _requester.request(_url, 195 var _response = _requester.request(_url, "GET",
198 "GET", 196 body: _body,
199 body: _body, 197 queryParams: _queryParams,
200 queryParams: _queryParams, 198 uploadOptions: _uploadOptions,
201 uploadOptions: _uploadOptions, 199 uploadMedia: _uploadMedia,
202 uploadMedia: _uploadMedia, 200 downloadOptions: _downloadOptions);
203 downloadOptions: _downloadOptions);
204 return _response.then((data) => new RuntimeConfig.fromJson(data)); 201 return _response.then((data) => new RuntimeConfig.fromJson(data));
205 } 202 }
206 203
207 /** 204 /// Gets the access control policy for a resource.
208 * Gets the access control policy for a resource. 205 /// Returns an empty policy if the resource exists and does not have a policy
209 * Returns an empty policy if the resource exists and does not have a policy 206 /// set.
210 * set. 207 ///
211 * 208 /// Request parameters:
212 * Request parameters: 209 ///
213 * 210 /// [resource] - REQUIRED: The resource for which the policy is being
214 * [resource] - REQUIRED: The resource for which the policy is being 211 /// requested.
215 * requested. 212 /// See the operation documentation for the appropriate value for this field.
216 * See the operation documentation for the appropriate value for this field. 213 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
217 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 214 ///
218 * 215 /// Completes with a [Policy].
219 * Completes with a [Policy]. 216 ///
220 * 217 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
221 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 218 /// an error.
222 * error. 219 ///
223 * 220 /// If the used [http.Client] completes with an error when making a REST
224 * If the used [http.Client] completes with an error when making a REST call, 221 /// call, this method will complete with the same error.
225 * this method will complete with the same error.
226 */
227 async.Future<Policy> getIamPolicy(core.String resource) { 222 async.Future<Policy> getIamPolicy(core.String resource) {
228 var _url = null; 223 var _url = null;
229 var _queryParams = new core.Map(); 224 var _queryParams = new core.Map();
230 var _uploadMedia = null; 225 var _uploadMedia = null;
231 var _uploadOptions = null; 226 var _uploadOptions = null;
232 var _downloadOptions = commons.DownloadOptions.Metadata; 227 var _downloadOptions = commons.DownloadOptions.Metadata;
233 var _body = null; 228 var _body = null;
234 229
235 if (resource == null) { 230 if (resource == null) {
236 throw new core.ArgumentError("Parameter resource is required."); 231 throw new core.ArgumentError("Parameter resource is required.");
237 } 232 }
238 233
239 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':g etIamPolicy'; 234 _url = 'v1beta1/' +
235 commons.Escaper.ecapeVariableReserved('$resource') +
236 ':getIamPolicy';
240 237
241 var _response = _requester.request(_url, 238 var _response = _requester.request(_url, "GET",
242 "GET", 239 body: _body,
243 body: _body, 240 queryParams: _queryParams,
244 queryParams: _queryParams, 241 uploadOptions: _uploadOptions,
245 uploadOptions: _uploadOptions, 242 uploadMedia: _uploadMedia,
246 uploadMedia: _uploadMedia, 243 downloadOptions: _downloadOptions);
247 downloadOptions: _downloadOptions);
248 return _response.then((data) => new Policy.fromJson(data)); 244 return _response.then((data) => new Policy.fromJson(data));
249 } 245 }
250 246
251 /** 247 /// Lists all the RuntimeConfig resources within project.
252 * Lists all the RuntimeConfig resources within project. 248 ///
253 * 249 /// Request parameters:
254 * Request parameters: 250 ///
255 * 251 /// [parent] - The [project
256 * [parent] - The [project 252 /// ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=615884 8)
257 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848 ) 253 /// for this request, in the format `projects/[PROJECT_ID]`.
258 * for this request, in the format `projects/[PROJECT_ID]`. 254 /// Value must have pattern "^projects/[^/]+$".
259 * Value must have pattern "^projects/[^/]+$". 255 ///
260 * 256 /// [pageSize] - Specifies the number of results to return per page. If there
261 * [pageSize] - Specifies the number of results to return per page. If there 257 /// are fewer
262 * are fewer 258 /// elements than the specified number, returns all elements.
263 * elements than the specified number, returns all elements. 259 ///
264 * 260 /// [pageToken] - Specifies a page token to use. Set `pageToken` to a
265 * [pageToken] - Specifies a page token to use. Set `pageToken` to a 261 /// `nextPageToken`
266 * `nextPageToken` 262 /// returned by a previous list request to get the next page of results.
267 * returned by a previous list request to get the next page of results. 263 ///
268 * 264 /// Completes with a [ListConfigsResponse].
269 * Completes with a [ListConfigsResponse]. 265 ///
270 * 266 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
271 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 267 /// an error.
272 * error. 268 ///
273 * 269 /// If the used [http.Client] completes with an error when making a REST
274 * If the used [http.Client] completes with an error when making a REST call, 270 /// call, this method will complete with the same error.
275 * this method will complete with the same error. 271 async.Future<ListConfigsResponse> list(core.String parent,
276 */ 272 {core.int pageSize, core.String pageToken}) {
277 async.Future<ListConfigsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) {
278 var _url = null; 273 var _url = null;
279 var _queryParams = new core.Map(); 274 var _queryParams = new core.Map();
280 var _uploadMedia = null; 275 var _uploadMedia = null;
281 var _uploadOptions = null; 276 var _uploadOptions = null;
282 var _downloadOptions = commons.DownloadOptions.Metadata; 277 var _downloadOptions = commons.DownloadOptions.Metadata;
283 var _body = null; 278 var _body = null;
284 279
285 if (parent == null) { 280 if (parent == null) {
286 throw new core.ArgumentError("Parameter parent is required."); 281 throw new core.ArgumentError("Parameter parent is required.");
287 } 282 }
288 if (pageSize != null) { 283 if (pageSize != null) {
289 _queryParams["pageSize"] = ["${pageSize}"]; 284 _queryParams["pageSize"] = ["${pageSize}"];
290 } 285 }
291 if (pageToken != null) { 286 if (pageToken != null) {
292 _queryParams["pageToken"] = [pageToken]; 287 _queryParams["pageToken"] = [pageToken];
293 } 288 }
294 289
295 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/con figs'; 290 _url = 'v1beta1/' +
291 commons.Escaper.ecapeVariableReserved('$parent') +
292 '/configs';
296 293
297 var _response = _requester.request(_url, 294 var _response = _requester.request(_url, "GET",
298 "GET", 295 body: _body,
299 body: _body, 296 queryParams: _queryParams,
300 queryParams: _queryParams, 297 uploadOptions: _uploadOptions,
301 uploadOptions: _uploadOptions, 298 uploadMedia: _uploadMedia,
302 uploadMedia: _uploadMedia, 299 downloadOptions: _downloadOptions);
303 downloadOptions: _downloadOptions);
304 return _response.then((data) => new ListConfigsResponse.fromJson(data)); 300 return _response.then((data) => new ListConfigsResponse.fromJson(data));
305 } 301 }
306 302
307 /** 303 /// Sets the access control policy on the specified resource. Replaces any
308 * Sets the access control policy on the specified resource. Replaces any 304 /// existing policy.
309 * existing policy. 305 ///
310 * 306 /// [request] - The metadata request object.
311 * [request] - The metadata request object. 307 ///
312 * 308 /// Request parameters:
313 * Request parameters: 309 ///
314 * 310 /// [resource] - REQUIRED: The resource for which the policy is being
315 * [resource] - REQUIRED: The resource for which the policy is being 311 /// specified.
316 * specified. 312 /// See the operation documentation for the appropriate value for this field.
317 * See the operation documentation for the appropriate value for this field. 313 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
318 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 314 ///
319 * 315 /// Completes with a [Policy].
320 * Completes with a [Policy]. 316 ///
321 * 317 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
322 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 318 /// an error.
323 * error. 319 ///
324 * 320 /// If the used [http.Client] completes with an error when making a REST
325 * If the used [http.Client] completes with an error when making a REST call, 321 /// call, this method will complete with the same error.
326 * this method will complete with the same error. 322 async.Future<Policy> setIamPolicy(
327 */ 323 SetIamPolicyRequest request, core.String resource) {
328 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
329 var _url = null; 324 var _url = null;
330 var _queryParams = new core.Map(); 325 var _queryParams = new core.Map();
331 var _uploadMedia = null; 326 var _uploadMedia = null;
332 var _uploadOptions = null; 327 var _uploadOptions = null;
333 var _downloadOptions = commons.DownloadOptions.Metadata; 328 var _downloadOptions = commons.DownloadOptions.Metadata;
334 var _body = null; 329 var _body = null;
335 330
336 if (request != null) { 331 if (request != null) {
337 _body = convert.JSON.encode((request).toJson()); 332 _body = convert.JSON.encode((request).toJson());
338 } 333 }
339 if (resource == null) { 334 if (resource == null) {
340 throw new core.ArgumentError("Parameter resource is required."); 335 throw new core.ArgumentError("Parameter resource is required.");
341 } 336 }
342 337
343 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':s etIamPolicy'; 338 _url = 'v1beta1/' +
339 commons.Escaper.ecapeVariableReserved('$resource') +
340 ':setIamPolicy';
344 341
345 var _response = _requester.request(_url, 342 var _response = _requester.request(_url, "POST",
346 "POST", 343 body: _body,
347 body: _body, 344 queryParams: _queryParams,
348 queryParams: _queryParams, 345 uploadOptions: _uploadOptions,
349 uploadOptions: _uploadOptions, 346 uploadMedia: _uploadMedia,
350 uploadMedia: _uploadMedia, 347 downloadOptions: _downloadOptions);
351 downloadOptions: _downloadOptions);
352 return _response.then((data) => new Policy.fromJson(data)); 348 return _response.then((data) => new Policy.fromJson(data));
353 } 349 }
354 350
355 /** 351 /// Returns permissions that a caller has on the specified resource.
356 * Returns permissions that a caller has on the specified resource. 352 /// If the resource does not exist, this will return an empty set of
357 * If the resource does not exist, this will return an empty set of 353 /// permissions, not a NOT_FOUND error.
358 * permissions, not a NOT_FOUND error. 354 ///
359 * 355 /// Note: This operation is designed to be used for building permission-aware
360 * Note: This operation is designed to be used for building permission-aware 356 /// UIs and command-line tools, not for authorization checking. This
361 * UIs and command-line tools, not for authorization checking. This operation 357 /// operation
362 * may "fail open" without warning. 358 /// may "fail open" without warning.
363 * 359 ///
364 * [request] - The metadata request object. 360 /// [request] - The metadata request object.
365 * 361 ///
366 * Request parameters: 362 /// Request parameters:
367 * 363 ///
368 * [resource] - REQUIRED: The resource for which the policy detail is being 364 /// [resource] - REQUIRED: The resource for which the policy detail is being
369 * requested. 365 /// requested.
370 * See the operation documentation for the appropriate value for this field. 366 /// See the operation documentation for the appropriate value for this field.
371 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 367 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
372 * 368 ///
373 * Completes with a [TestIamPermissionsResponse]. 369 /// Completes with a [TestIamPermissionsResponse].
374 * 370 ///
375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 371 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
376 * error. 372 /// an error.
377 * 373 ///
378 * If the used [http.Client] completes with an error when making a REST call, 374 /// If the used [http.Client] completes with an error when making a REST
379 * this method will complete with the same error. 375 /// call, this method will complete with the same error.
380 */ 376 async.Future<TestIamPermissionsResponse> testIamPermissions(
381 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 377 TestIamPermissionsRequest request, core.String resource) {
382 var _url = null; 378 var _url = null;
383 var _queryParams = new core.Map(); 379 var _queryParams = new core.Map();
384 var _uploadMedia = null; 380 var _uploadMedia = null;
385 var _uploadOptions = null; 381 var _uploadOptions = null;
386 var _downloadOptions = commons.DownloadOptions.Metadata; 382 var _downloadOptions = commons.DownloadOptions.Metadata;
387 var _body = null; 383 var _body = null;
388 384
389 if (request != null) { 385 if (request != null) {
390 _body = convert.JSON.encode((request).toJson()); 386 _body = convert.JSON.encode((request).toJson());
391 } 387 }
392 if (resource == null) { 388 if (resource == null) {
393 throw new core.ArgumentError("Parameter resource is required."); 389 throw new core.ArgumentError("Parameter resource is required.");
394 } 390 }
395 391
396 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':t estIamPermissions'; 392 _url = 'v1beta1/' +
393 commons.Escaper.ecapeVariableReserved('$resource') +
394 ':testIamPermissions';
397 395
398 var _response = _requester.request(_url, 396 var _response = _requester.request(_url, "POST",
399 "POST", 397 body: _body,
400 body: _body, 398 queryParams: _queryParams,
401 queryParams: _queryParams, 399 uploadOptions: _uploadOptions,
402 uploadOptions: _uploadOptions, 400 uploadMedia: _uploadMedia,
403 uploadMedia: _uploadMedia, 401 downloadOptions: _downloadOptions);
404 downloadOptions: _downloadOptions); 402 return _response
405 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 403 .then((data) => new TestIamPermissionsResponse.fromJson(data));
406 } 404 }
407 405
408 /** 406 /// Updates a RuntimeConfig resource. The configuration must exist
409 * Updates a RuntimeConfig resource. The configuration must exist beforehand. 407 /// beforehand.
410 * 408 ///
411 * [request] - The metadata request object. 409 /// [request] - The metadata request object.
412 * 410 ///
413 * Request parameters: 411 /// Request parameters:
414 * 412 ///
415 * [name] - The name of the RuntimeConfig resource to update, in the format: 413 /// [name] - The name of the RuntimeConfig resource to update, in the format:
416 * 414 ///
417 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 415 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
418 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 416 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
419 * 417 ///
420 * Completes with a [RuntimeConfig]. 418 /// Completes with a [RuntimeConfig].
421 * 419 ///
422 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 420 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
423 * error. 421 /// an error.
424 * 422 ///
425 * If the used [http.Client] completes with an error when making a REST call, 423 /// If the used [http.Client] completes with an error when making a REST
426 * this method will complete with the same error. 424 /// call, this method will complete with the same error.
427 */
428 async.Future<RuntimeConfig> update(RuntimeConfig request, core.String name) { 425 async.Future<RuntimeConfig> update(RuntimeConfig request, core.String name) {
429 var _url = null; 426 var _url = null;
430 var _queryParams = new core.Map(); 427 var _queryParams = new core.Map();
431 var _uploadMedia = null; 428 var _uploadMedia = null;
432 var _uploadOptions = null; 429 var _uploadOptions = null;
433 var _downloadOptions = commons.DownloadOptions.Metadata; 430 var _downloadOptions = commons.DownloadOptions.Metadata;
434 var _body = null; 431 var _body = null;
435 432
436 if (request != null) { 433 if (request != null) {
437 _body = convert.JSON.encode((request).toJson()); 434 _body = convert.JSON.encode((request).toJson());
438 } 435 }
439 if (name == null) { 436 if (name == null) {
440 throw new core.ArgumentError("Parameter name is required."); 437 throw new core.ArgumentError("Parameter name is required.");
441 } 438 }
442 439
443 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 440 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
444 441
445 var _response = _requester.request(_url, 442 var _response = _requester.request(_url, "PUT",
446 "PUT", 443 body: _body,
447 body: _body, 444 queryParams: _queryParams,
448 queryParams: _queryParams, 445 uploadOptions: _uploadOptions,
449 uploadOptions: _uploadOptions, 446 uploadMedia: _uploadMedia,
450 uploadMedia: _uploadMedia, 447 downloadOptions: _downloadOptions);
451 downloadOptions: _downloadOptions);
452 return _response.then((data) => new RuntimeConfig.fromJson(data)); 448 return _response.then((data) => new RuntimeConfig.fromJson(data));
453 } 449 }
454
455 } 450 }
456 451
457
458 class ProjectsConfigsOperationsResourceApi { 452 class ProjectsConfigsOperationsResourceApi {
459 final commons.ApiRequester _requester; 453 final commons.ApiRequester _requester;
460 454
461 ProjectsConfigsOperationsResourceApi(commons.ApiRequester client) : 455 ProjectsConfigsOperationsResourceApi(commons.ApiRequester client)
462 _requester = client; 456 : _requester = client;
463 457
464 /** 458 /// Gets the latest state of a long-running operation. Clients can use this
465 * Gets the latest state of a long-running operation. Clients can use this 459 /// method to poll the operation result at intervals as recommended by the
466 * method to poll the operation result at intervals as recommended by the API 460 /// API
467 * service. 461 /// service.
468 * 462 ///
469 * Request parameters: 463 /// Request parameters:
470 * 464 ///
471 * [name] - The name of the operation resource. 465 /// [name] - The name of the operation resource.
472 * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$". 466 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$".
473 * 467 ///
474 * Completes with a [Operation]. 468 /// Completes with a [Operation].
475 * 469 ///
476 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 470 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
477 * error. 471 /// an error.
478 * 472 ///
479 * If the used [http.Client] completes with an error when making a REST call, 473 /// If the used [http.Client] completes with an error when making a REST
480 * this method will complete with the same error. 474 /// call, this method will complete with the same error.
481 */
482 async.Future<Operation> get(core.String name) { 475 async.Future<Operation> get(core.String name) {
483 var _url = null; 476 var _url = null;
484 var _queryParams = new core.Map(); 477 var _queryParams = new core.Map();
485 var _uploadMedia = null; 478 var _uploadMedia = null;
486 var _uploadOptions = null; 479 var _uploadOptions = null;
487 var _downloadOptions = commons.DownloadOptions.Metadata; 480 var _downloadOptions = commons.DownloadOptions.Metadata;
488 var _body = null; 481 var _body = null;
489 482
490 if (name == null) { 483 if (name == null) {
491 throw new core.ArgumentError("Parameter name is required."); 484 throw new core.ArgumentError("Parameter name is required.");
492 } 485 }
493 486
494 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 487 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
495 488
496 var _response = _requester.request(_url, 489 var _response = _requester.request(_url, "GET",
497 "GET", 490 body: _body,
498 body: _body, 491 queryParams: _queryParams,
499 queryParams: _queryParams, 492 uploadOptions: _uploadOptions,
500 uploadOptions: _uploadOptions, 493 uploadMedia: _uploadMedia,
501 uploadMedia: _uploadMedia, 494 downloadOptions: _downloadOptions);
502 downloadOptions: _downloadOptions);
503 return _response.then((data) => new Operation.fromJson(data)); 495 return _response.then((data) => new Operation.fromJson(data));
504 } 496 }
505 497
506 /** 498 /// Returns permissions that a caller has on the specified resource.
507 * Returns permissions that a caller has on the specified resource. 499 /// If the resource does not exist, this will return an empty set of
508 * If the resource does not exist, this will return an empty set of 500 /// permissions, not a NOT_FOUND error.
509 * permissions, not a NOT_FOUND error. 501 ///
510 * 502 /// Note: This operation is designed to be used for building permission-aware
511 * Note: This operation is designed to be used for building permission-aware 503 /// UIs and command-line tools, not for authorization checking. This
512 * UIs and command-line tools, not for authorization checking. This operation 504 /// operation
513 * may "fail open" without warning. 505 /// may "fail open" without warning.
514 * 506 ///
515 * [request] - The metadata request object. 507 /// [request] - The metadata request object.
516 * 508 ///
517 * Request parameters: 509 /// Request parameters:
518 * 510 ///
519 * [resource] - REQUIRED: The resource for which the policy detail is being 511 /// [resource] - REQUIRED: The resource for which the policy detail is being
520 * requested. 512 /// requested.
521 * See the operation documentation for the appropriate value for this field. 513 /// See the operation documentation for the appropriate value for this field.
522 * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$". 514 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$".
523 * 515 ///
524 * Completes with a [TestIamPermissionsResponse]. 516 /// Completes with a [TestIamPermissionsResponse].
525 * 517 ///
526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 518 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
527 * error. 519 /// an error.
528 * 520 ///
529 * If the used [http.Client] completes with an error when making a REST call, 521 /// If the used [http.Client] completes with an error when making a REST
530 * this method will complete with the same error. 522 /// call, this method will complete with the same error.
531 */ 523 async.Future<TestIamPermissionsResponse> testIamPermissions(
532 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 524 TestIamPermissionsRequest request, core.String resource) {
533 var _url = null; 525 var _url = null;
534 var _queryParams = new core.Map(); 526 var _queryParams = new core.Map();
535 var _uploadMedia = null; 527 var _uploadMedia = null;
536 var _uploadOptions = null; 528 var _uploadOptions = null;
537 var _downloadOptions = commons.DownloadOptions.Metadata; 529 var _downloadOptions = commons.DownloadOptions.Metadata;
538 var _body = null; 530 var _body = null;
539 531
540 if (request != null) { 532 if (request != null) {
541 _body = convert.JSON.encode((request).toJson()); 533 _body = convert.JSON.encode((request).toJson());
542 } 534 }
543 if (resource == null) { 535 if (resource == null) {
544 throw new core.ArgumentError("Parameter resource is required."); 536 throw new core.ArgumentError("Parameter resource is required.");
545 } 537 }
546 538
547 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':t estIamPermissions'; 539 _url = 'v1beta1/' +
540 commons.Escaper.ecapeVariableReserved('$resource') +
541 ':testIamPermissions';
548 542
549 var _response = _requester.request(_url, 543 var _response = _requester.request(_url, "POST",
550 "POST", 544 body: _body,
551 body: _body, 545 queryParams: _queryParams,
552 queryParams: _queryParams, 546 uploadOptions: _uploadOptions,
553 uploadOptions: _uploadOptions, 547 uploadMedia: _uploadMedia,
554 uploadMedia: _uploadMedia, 548 downloadOptions: _downloadOptions);
555 downloadOptions: _downloadOptions); 549 return _response
556 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 550 .then((data) => new TestIamPermissionsResponse.fromJson(data));
557 } 551 }
558
559 } 552 }
560 553
561
562 class ProjectsConfigsVariablesResourceApi { 554 class ProjectsConfigsVariablesResourceApi {
563 final commons.ApiRequester _requester; 555 final commons.ApiRequester _requester;
564 556
565 ProjectsConfigsVariablesResourceApi(commons.ApiRequester client) : 557 ProjectsConfigsVariablesResourceApi(commons.ApiRequester client)
566 _requester = client; 558 : _requester = client;
567 559
568 /** 560 /// Creates a variable within the given configuration. You cannot create
569 * Creates a variable within the given configuration. You cannot create 561 /// a variable with a name that is a prefix of an existing variable name, or
570 * a variable with a name that is a prefix of an existing variable name, or a 562 /// a
571 * name that has an existing variable name as a prefix. 563 /// name that has an existing variable name as a prefix.
572 * 564 ///
573 * To learn more about creating a variable, read the 565 /// To learn more about creating a variable, read the
574 * [Setting and Getting 566 /// [Setting and Getting
575 * Data](/deployment-manager/runtime-configurator/set-and-get-variables) 567 /// Data](/deployment-manager/runtime-configurator/set-and-get-variables)
576 * documentation. 568 /// documentation.
577 * 569 ///
578 * [request] - The metadata request object. 570 /// [request] - The metadata request object.
579 * 571 ///
580 * Request parameters: 572 /// Request parameters:
581 * 573 ///
582 * [parent] - The path to the RutimeConfig resource that this variable should 574 /// [parent] - The path to the RutimeConfig resource that this variable
583 * belong to. 575 /// should belong to.
584 * The configuration must exist beforehand; the path must by in the format: 576 /// The configuration must exist beforehand; the path must be in the format:
585 * 577 ///
586 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 578 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
587 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 579 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
588 * 580 ///
589 * [requestId] - An optional but recommended unique `request_id`. If the 581 /// [requestId] - An optional but recommended unique `request_id`. If the
590 * server 582 /// server
591 * receives two `create()` requests with the same 583 /// receives two `create()` requests with the same
592 * `request_id`, then the second request will be ignored and the 584 /// `request_id`, then the second request will be ignored and the
593 * first resource created and stored in the backend is returned. 585 /// first resource created and stored in the backend is returned.
594 * Empty `request_id` fields are ignored. 586 /// Empty `request_id` fields are ignored.
595 * 587 ///
596 * It is responsibility of the client to ensure uniqueness of the 588 /// It is responsibility of the client to ensure uniqueness of the
597 * `request_id` strings. 589 /// `request_id` strings.
598 * 590 ///
599 * `request_id` strings are limited to 64 characters. 591 /// `request_id` strings are limited to 64 characters.
600 * 592 ///
601 * Completes with a [Variable]. 593 /// Completes with a [Variable].
602 * 594 ///
603 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 595 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
604 * error. 596 /// an error.
605 * 597 ///
606 * If the used [http.Client] completes with an error when making a REST call, 598 /// If the used [http.Client] completes with an error when making a REST
607 * this method will complete with the same error. 599 /// call, this method will complete with the same error.
608 */ 600 async.Future<Variable> create(Variable request, core.String parent,
609 async.Future<Variable> create(Variable request, core.String parent, {core.Stri ng requestId}) { 601 {core.String requestId}) {
610 var _url = null; 602 var _url = null;
611 var _queryParams = new core.Map(); 603 var _queryParams = new core.Map();
612 var _uploadMedia = null; 604 var _uploadMedia = null;
613 var _uploadOptions = null; 605 var _uploadOptions = null;
614 var _downloadOptions = commons.DownloadOptions.Metadata; 606 var _downloadOptions = commons.DownloadOptions.Metadata;
615 var _body = null; 607 var _body = null;
616 608
617 if (request != null) { 609 if (request != null) {
618 _body = convert.JSON.encode((request).toJson()); 610 _body = convert.JSON.encode((request).toJson());
619 } 611 }
620 if (parent == null) { 612 if (parent == null) {
621 throw new core.ArgumentError("Parameter parent is required."); 613 throw new core.ArgumentError("Parameter parent is required.");
622 } 614 }
623 if (requestId != null) { 615 if (requestId != null) {
624 _queryParams["requestId"] = [requestId]; 616 _queryParams["requestId"] = [requestId];
625 } 617 }
626 618
627 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var iables'; 619 _url = 'v1beta1/' +
620 commons.Escaper.ecapeVariableReserved('$parent') +
621 '/variables';
628 622
629 var _response = _requester.request(_url, 623 var _response = _requester.request(_url, "POST",
630 "POST", 624 body: _body,
631 body: _body, 625 queryParams: _queryParams,
632 queryParams: _queryParams, 626 uploadOptions: _uploadOptions,
633 uploadOptions: _uploadOptions, 627 uploadMedia: _uploadMedia,
634 uploadMedia: _uploadMedia, 628 downloadOptions: _downloadOptions);
635 downloadOptions: _downloadOptions);
636 return _response.then((data) => new Variable.fromJson(data)); 629 return _response.then((data) => new Variable.fromJson(data));
637 } 630 }
638 631
639 /** 632 /// Deletes a variable or multiple variables.
640 * Deletes a variable or multiple variables. 633 ///
641 * 634 /// If you specify a variable name, then that variable is deleted. If you
642 * If you specify a variable name, then that variable is deleted. If you 635 /// specify a prefix and `recursive` is true, then all variables with that
643 * specify a prefix and `recursive` is true, then all variables with that 636 /// prefix are deleted. You must set a `recursive` to true if you delete
644 * prefix are deleted. You must set a `recursive` to true if you delete 637 /// variables by prefix.
645 * variables by prefix. 638 ///
646 * 639 /// Request parameters:
647 * Request parameters: 640 ///
648 * 641 /// [name] - The name of the variable to delete, in the format:
649 * [name] - The name of the variable to delete, in the format: 642 ///
650 * 643 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
651 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` 644 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
652 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". 645 ///
653 * 646 /// [recursive] - Set to `true` to recursively delete multiple variables with
654 * [recursive] - Set to `true` to recursively delete multiple variables with 647 /// the same
655 * the same 648 /// prefix.
656 * prefix. 649 ///
657 * 650 /// Completes with a [Empty].
658 * Completes with a [Empty]. 651 ///
659 * 652 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
660 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 653 /// an error.
661 * error. 654 ///
662 * 655 /// If the used [http.Client] completes with an error when making a REST
663 * If the used [http.Client] completes with an error when making a REST call, 656 /// call, this method will complete with the same error.
664 * this method will complete with the same error.
665 */
666 async.Future<Empty> delete(core.String name, {core.bool recursive}) { 657 async.Future<Empty> delete(core.String name, {core.bool recursive}) {
667 var _url = null; 658 var _url = null;
668 var _queryParams = new core.Map(); 659 var _queryParams = new core.Map();
669 var _uploadMedia = null; 660 var _uploadMedia = null;
670 var _uploadOptions = null; 661 var _uploadOptions = null;
671 var _downloadOptions = commons.DownloadOptions.Metadata; 662 var _downloadOptions = commons.DownloadOptions.Metadata;
672 var _body = null; 663 var _body = null;
673 664
674 if (name == null) { 665 if (name == null) {
675 throw new core.ArgumentError("Parameter name is required."); 666 throw new core.ArgumentError("Parameter name is required.");
676 } 667 }
677 if (recursive != null) { 668 if (recursive != null) {
678 _queryParams["recursive"] = ["${recursive}"]; 669 _queryParams["recursive"] = ["${recursive}"];
679 } 670 }
680 671
681 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 672 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
682 673
683 var _response = _requester.request(_url, 674 var _response = _requester.request(_url, "DELETE",
684 "DELETE", 675 body: _body,
685 body: _body, 676 queryParams: _queryParams,
686 queryParams: _queryParams, 677 uploadOptions: _uploadOptions,
687 uploadOptions: _uploadOptions, 678 uploadMedia: _uploadMedia,
688 uploadMedia: _uploadMedia, 679 downloadOptions: _downloadOptions);
689 downloadOptions: _downloadOptions);
690 return _response.then((data) => new Empty.fromJson(data)); 680 return _response.then((data) => new Empty.fromJson(data));
691 } 681 }
692 682
693 /** 683 /// Gets information about a single variable.
694 * Gets information about a single variable. 684 ///
695 * 685 /// Request parameters:
696 * Request parameters: 686 ///
697 * 687 /// [name] - The name of the variable to return, in the format:
698 * [name] - The name of the variable to return, in the format: 688 ///
699 * 689 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]`
700 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` 690 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
701 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". 691 ///
702 * 692 /// Completes with a [Variable].
703 * Completes with a [Variable]. 693 ///
704 * 694 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
705 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 695 /// an error.
706 * error. 696 ///
707 * 697 /// If the used [http.Client] completes with an error when making a REST
708 * If the used [http.Client] completes with an error when making a REST call, 698 /// call, this method will complete with the same error.
709 * this method will complete with the same error.
710 */
711 async.Future<Variable> get(core.String name) { 699 async.Future<Variable> get(core.String name) {
712 var _url = null; 700 var _url = null;
713 var _queryParams = new core.Map(); 701 var _queryParams = new core.Map();
714 var _uploadMedia = null; 702 var _uploadMedia = null;
715 var _uploadOptions = null; 703 var _uploadOptions = null;
716 var _downloadOptions = commons.DownloadOptions.Metadata; 704 var _downloadOptions = commons.DownloadOptions.Metadata;
717 var _body = null; 705 var _body = null;
718 706
719 if (name == null) { 707 if (name == null) {
720 throw new core.ArgumentError("Parameter name is required."); 708 throw new core.ArgumentError("Parameter name is required.");
721 } 709 }
722 710
723 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 711 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
724 712
725 var _response = _requester.request(_url, 713 var _response = _requester.request(_url, "GET",
726 "GET", 714 body: _body,
727 body: _body, 715 queryParams: _queryParams,
728 queryParams: _queryParams, 716 uploadOptions: _uploadOptions,
729 uploadOptions: _uploadOptions, 717 uploadMedia: _uploadMedia,
730 uploadMedia: _uploadMedia, 718 downloadOptions: _downloadOptions);
731 downloadOptions: _downloadOptions);
732 return _response.then((data) => new Variable.fromJson(data)); 719 return _response.then((data) => new Variable.fromJson(data));
733 } 720 }
734 721
735 /** 722 /// Lists variables within given a configuration, matching any provided
736 * Lists variables within given a configuration, matching any provided 723 /// filters.
737 * filters. 724 /// This only lists variable names, not the values, unless `return_values` is
738 * This only lists variable names, not the values, unless `return_values` is 725 /// true, in which case only variables that user has IAM permission to
739 * true, in which case only variables that user has IAM permission to 726 /// GetVariable
740 * GetVariable 727 /// will be returned.
741 * will be returned. 728 ///
742 * 729 /// Request parameters:
743 * Request parameters: 730 ///
744 * 731 /// [parent] - The path to the RuntimeConfig resource for which you want to
745 * [parent] - The path to the RuntimeConfig resource for which you want to 732 /// list variables.
746 * list variables. 733 /// The configuration must exist beforehand; the path must be in the format:
747 * The configuration must exist beforehand; the path must by in the format: 734 ///
748 * 735 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
749 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 736 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
750 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 737 ///
751 * 738 /// [returnValues] - The flag indicates whether the user wants to return
752 * [pageSize] - Specifies the number of results to return per page. If there 739 /// values of variables.
753 * are fewer 740 /// If true, then only those variables that user has IAM GetVariable
754 * elements than the specified number, returns all elements. 741 /// permission
755 * 742 /// will be returned along with their values.
756 * [filter] - Filters variables by matching the specified filter. For example: 743 ///
757 * 744 /// [pageToken] - Specifies a page token to use. Set `pageToken` to a
758 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. 745 /// `nextPageToken`
759 * 746 /// returned by a previous list request to get the next page of results.
760 * [returnValues] - The flag indicates whether the user wants to return values 747 ///
761 * of variables. 748 /// [pageSize] - Specifies the number of results to return per page. If there
762 * If true, then only those variables that user has IAM GetVariable permission 749 /// are fewer
763 * will be returned along with their values. 750 /// elements than the specified number, returns all elements.
764 * 751 ///
765 * [pageToken] - Specifies a page token to use. Set `pageToken` to a 752 /// [filter] - Filters variables by matching the specified filter. For
766 * `nextPageToken` 753 /// example:
767 * returned by a previous list request to get the next page of results. 754 ///
768 * 755 /// `projects/example-project/config/[CONFIG_NAME]/variables/example-variable` .
769 * Completes with a [ListVariablesResponse]. 756 ///
770 * 757 /// Completes with a [ListVariablesResponse].
771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 758 ///
772 * error. 759 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
773 * 760 /// an error.
774 * If the used [http.Client] completes with an error when making a REST call, 761 ///
775 * this method will complete with the same error. 762 /// If the used [http.Client] completes with an error when making a REST
776 */ 763 /// call, this method will complete with the same error.
777 async.Future<ListVariablesResponse> list(core.String parent, {core.int pageSiz e, core.String filter, core.bool returnValues, core.String pageToken}) { 764 async.Future<ListVariablesResponse> list(core.String parent,
765 {core.bool returnValues,
766 core.String pageToken,
767 core.int pageSize,
768 core.String filter}) {
778 var _url = null; 769 var _url = null;
779 var _queryParams = new core.Map(); 770 var _queryParams = new core.Map();
780 var _uploadMedia = null; 771 var _uploadMedia = null;
781 var _uploadOptions = null; 772 var _uploadOptions = null;
782 var _downloadOptions = commons.DownloadOptions.Metadata; 773 var _downloadOptions = commons.DownloadOptions.Metadata;
783 var _body = null; 774 var _body = null;
784 775
785 if (parent == null) { 776 if (parent == null) {
786 throw new core.ArgumentError("Parameter parent is required."); 777 throw new core.ArgumentError("Parameter parent is required.");
787 } 778 }
779 if (returnValues != null) {
780 _queryParams["returnValues"] = ["${returnValues}"];
781 }
782 if (pageToken != null) {
783 _queryParams["pageToken"] = [pageToken];
784 }
788 if (pageSize != null) { 785 if (pageSize != null) {
789 _queryParams["pageSize"] = ["${pageSize}"]; 786 _queryParams["pageSize"] = ["${pageSize}"];
790 } 787 }
791 if (filter != null) { 788 if (filter != null) {
792 _queryParams["filter"] = [filter]; 789 _queryParams["filter"] = [filter];
793 } 790 }
794 if (returnValues != null) {
795 _queryParams["returnValues"] = ["${returnValues}"];
796 }
797 if (pageToken != null) {
798 _queryParams["pageToken"] = [pageToken];
799 }
800 791
801 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var iables'; 792 _url = 'v1beta1/' +
793 commons.Escaper.ecapeVariableReserved('$parent') +
794 '/variables';
802 795
803 var _response = _requester.request(_url, 796 var _response = _requester.request(_url, "GET",
804 "GET", 797 body: _body,
805 body: _body, 798 queryParams: _queryParams,
806 queryParams: _queryParams, 799 uploadOptions: _uploadOptions,
807 uploadOptions: _uploadOptions, 800 uploadMedia: _uploadMedia,
808 uploadMedia: _uploadMedia, 801 downloadOptions: _downloadOptions);
809 downloadOptions: _downloadOptions);
810 return _response.then((data) => new ListVariablesResponse.fromJson(data)); 802 return _response.then((data) => new ListVariablesResponse.fromJson(data));
811 } 803 }
812 804
813 /** 805 /// Returns permissions that a caller has on the specified resource.
814 * Returns permissions that a caller has on the specified resource. 806 /// If the resource does not exist, this will return an empty set of
815 * If the resource does not exist, this will return an empty set of 807 /// permissions, not a NOT_FOUND error.
816 * permissions, not a NOT_FOUND error. 808 ///
817 * 809 /// Note: This operation is designed to be used for building permission-aware
818 * Note: This operation is designed to be used for building permission-aware 810 /// UIs and command-line tools, not for authorization checking. This
819 * UIs and command-line tools, not for authorization checking. This operation 811 /// operation
820 * may "fail open" without warning. 812 /// may "fail open" without warning.
821 * 813 ///
822 * [request] - The metadata request object. 814 /// [request] - The metadata request object.
823 * 815 ///
824 * Request parameters: 816 /// Request parameters:
825 * 817 ///
826 * [resource] - REQUIRED: The resource for which the policy detail is being 818 /// [resource] - REQUIRED: The resource for which the policy detail is being
827 * requested. 819 /// requested.
828 * See the operation documentation for the appropriate value for this field. 820 /// See the operation documentation for the appropriate value for this field.
829 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". 821 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
830 * 822 ///
831 * Completes with a [TestIamPermissionsResponse]. 823 /// Completes with a [TestIamPermissionsResponse].
832 * 824 ///
833 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 825 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
834 * error. 826 /// an error.
835 * 827 ///
836 * If the used [http.Client] completes with an error when making a REST call, 828 /// If the used [http.Client] completes with an error when making a REST
837 * this method will complete with the same error. 829 /// call, this method will complete with the same error.
838 */ 830 async.Future<TestIamPermissionsResponse> testIamPermissions(
839 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 831 TestIamPermissionsRequest request, core.String resource) {
840 var _url = null; 832 var _url = null;
841 var _queryParams = new core.Map(); 833 var _queryParams = new core.Map();
842 var _uploadMedia = null; 834 var _uploadMedia = null;
843 var _uploadOptions = null; 835 var _uploadOptions = null;
844 var _downloadOptions = commons.DownloadOptions.Metadata; 836 var _downloadOptions = commons.DownloadOptions.Metadata;
845 var _body = null; 837 var _body = null;
846 838
847 if (request != null) { 839 if (request != null) {
848 _body = convert.JSON.encode((request).toJson()); 840 _body = convert.JSON.encode((request).toJson());
849 } 841 }
850 if (resource == null) { 842 if (resource == null) {
851 throw new core.ArgumentError("Parameter resource is required."); 843 throw new core.ArgumentError("Parameter resource is required.");
852 } 844 }
853 845
854 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':t estIamPermissions'; 846 _url = 'v1beta1/' +
847 commons.Escaper.ecapeVariableReserved('$resource') +
848 ':testIamPermissions';
855 849
856 var _response = _requester.request(_url, 850 var _response = _requester.request(_url, "POST",
857 "POST", 851 body: _body,
858 body: _body, 852 queryParams: _queryParams,
859 queryParams: _queryParams, 853 uploadOptions: _uploadOptions,
860 uploadOptions: _uploadOptions, 854 uploadMedia: _uploadMedia,
861 uploadMedia: _uploadMedia, 855 downloadOptions: _downloadOptions);
862 downloadOptions: _downloadOptions); 856 return _response
863 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 857 .then((data) => new TestIamPermissionsResponse.fromJson(data));
864 } 858 }
865 859
866 /** 860 /// Updates an existing variable with a new value.
867 * Updates an existing variable with a new value. 861 ///
868 * 862 /// [request] - The metadata request object.
869 * [request] - The metadata request object. 863 ///
870 * 864 /// Request parameters:
871 * Request parameters: 865 ///
872 * 866 /// [name] - The name of the variable to update, in the format:
873 * [name] - The name of the variable to update, in the format: 867 ///
874 * 868 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
875 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` 869 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
876 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". 870 ///
877 * 871 /// Completes with a [Variable].
878 * Completes with a [Variable]. 872 ///
879 * 873 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
880 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 874 /// an error.
881 * error. 875 ///
882 * 876 /// If the used [http.Client] completes with an error when making a REST
883 * If the used [http.Client] completes with an error when making a REST call, 877 /// call, this method will complete with the same error.
884 * this method will complete with the same error.
885 */
886 async.Future<Variable> update(Variable request, core.String name) { 878 async.Future<Variable> update(Variable request, core.String name) {
887 var _url = null; 879 var _url = null;
888 var _queryParams = new core.Map(); 880 var _queryParams = new core.Map();
889 var _uploadMedia = null; 881 var _uploadMedia = null;
890 var _uploadOptions = null; 882 var _uploadOptions = null;
891 var _downloadOptions = commons.DownloadOptions.Metadata; 883 var _downloadOptions = commons.DownloadOptions.Metadata;
892 var _body = null; 884 var _body = null;
893 885
894 if (request != null) { 886 if (request != null) {
895 _body = convert.JSON.encode((request).toJson()); 887 _body = convert.JSON.encode((request).toJson());
896 } 888 }
897 if (name == null) { 889 if (name == null) {
898 throw new core.ArgumentError("Parameter name is required."); 890 throw new core.ArgumentError("Parameter name is required.");
899 } 891 }
900 892
901 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 893 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
902 894
903 var _response = _requester.request(_url, 895 var _response = _requester.request(_url, "PUT",
904 "PUT", 896 body: _body,
905 body: _body, 897 queryParams: _queryParams,
906 queryParams: _queryParams, 898 uploadOptions: _uploadOptions,
907 uploadOptions: _uploadOptions, 899 uploadMedia: _uploadMedia,
908 uploadMedia: _uploadMedia, 900 downloadOptions: _downloadOptions);
909 downloadOptions: _downloadOptions);
910 return _response.then((data) => new Variable.fromJson(data)); 901 return _response.then((data) => new Variable.fromJson(data));
911 } 902 }
912 903
913 /** 904 /// Watches a specific variable and waits for a change in the variable's
914 * Watches a specific variable and waits for a change in the variable's value. 905 /// value.
915 * When there is a change, this method returns the new value or times out. 906 /// When there is a change, this method returns the new value or times out.
916 * 907 ///
917 * If a variable is deleted while being watched, the `variableState` state is 908 /// If a variable is deleted while being watched, the `variableState` state
918 * set to `DELETED` and the method returns the last known variable `value`. 909 /// is
919 * 910 /// set to `DELETED` and the method returns the last known variable `value`.
920 * If you set the deadline for watching to a larger value than internal 911 ///
921 * timeout 912 /// If you set the deadline for watching to a larger value than internal
922 * (60 seconds), the current variable value is returned and the 913 /// timeout
923 * `variableState` 914 /// (60 seconds), the current variable value is returned and the
924 * will be `VARIABLE_STATE_UNSPECIFIED`. 915 /// `variableState`
925 * 916 /// will be `VARIABLE_STATE_UNSPECIFIED`.
926 * To learn more about creating a watcher, read the 917 ///
927 * [Watching a Variable for 918 /// To learn more about creating a watcher, read the
928 * Changes](/deployment-manager/runtime-configurator/watching-a-variable) 919 /// [Watching a Variable for
929 * documentation. 920 /// Changes](/deployment-manager/runtime-configurator/watching-a-variable)
930 * 921 /// documentation.
931 * [request] - The metadata request object. 922 ///
932 * 923 /// [request] - The metadata request object.
933 * Request parameters: 924 ///
934 * 925 /// Request parameters:
935 * [name] - The name of the variable to watch, in the format: 926 ///
936 * 927 /// [name] - The name of the variable to watch, in the format:
937 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 928 ///
938 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". 929 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
939 * 930 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
940 * Completes with a [Variable]. 931 ///
941 * 932 /// Completes with a [Variable].
942 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 933 ///
943 * error. 934 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
944 * 935 /// an error.
945 * If the used [http.Client] completes with an error when making a REST call, 936 ///
946 * this method will complete with the same error. 937 /// If the used [http.Client] completes with an error when making a REST
947 */ 938 /// call, this method will complete with the same error.
948 async.Future<Variable> watch(WatchVariableRequest request, core.String name) { 939 async.Future<Variable> watch(WatchVariableRequest request, core.String name) {
949 var _url = null; 940 var _url = null;
950 var _queryParams = new core.Map(); 941 var _queryParams = new core.Map();
951 var _uploadMedia = null; 942 var _uploadMedia = null;
952 var _uploadOptions = null; 943 var _uploadOptions = null;
953 var _downloadOptions = commons.DownloadOptions.Metadata; 944 var _downloadOptions = commons.DownloadOptions.Metadata;
954 var _body = null; 945 var _body = null;
955 946
956 if (request != null) { 947 if (request != null) {
957 _body = convert.JSON.encode((request).toJson()); 948 _body = convert.JSON.encode((request).toJson());
958 } 949 }
959 if (name == null) { 950 if (name == null) {
960 throw new core.ArgumentError("Parameter name is required."); 951 throw new core.ArgumentError("Parameter name is required.");
961 } 952 }
962 953
963 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':watch '; 954 _url =
955 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':watch';
964 956
965 var _response = _requester.request(_url, 957 var _response = _requester.request(_url, "POST",
966 "POST", 958 body: _body,
967 body: _body, 959 queryParams: _queryParams,
968 queryParams: _queryParams, 960 uploadOptions: _uploadOptions,
969 uploadOptions: _uploadOptions, 961 uploadMedia: _uploadMedia,
970 uploadMedia: _uploadMedia, 962 downloadOptions: _downloadOptions);
971 downloadOptions: _downloadOptions);
972 return _response.then((data) => new Variable.fromJson(data)); 963 return _response.then((data) => new Variable.fromJson(data));
973 } 964 }
974
975 } 965 }
976 966
977
978 class ProjectsConfigsWaitersResourceApi { 967 class ProjectsConfigsWaitersResourceApi {
979 final commons.ApiRequester _requester; 968 final commons.ApiRequester _requester;
980 969
981 ProjectsConfigsWaitersResourceApi(commons.ApiRequester client) : 970 ProjectsConfigsWaitersResourceApi(commons.ApiRequester client)
982 _requester = client; 971 : _requester = client;
983 972
984 /** 973 /// Creates a Waiter resource. This operation returns a long-running
985 * Creates a Waiter resource. This operation returns a long-running Operation 974 /// Operation
986 * resource which can be polled for completion. However, a waiter with the 975 /// resource which can be polled for completion. However, a waiter with the
987 * given name will exist (and can be retrieved) prior to the operation 976 /// given name will exist (and can be retrieved) prior to the operation
988 * completing. If the operation fails, the failed Waiter resource will 977 /// completing. If the operation fails, the failed Waiter resource will
989 * still exist and must be deleted prior to subsequent creation attempts. 978 /// still exist and must be deleted prior to subsequent creation attempts.
990 * 979 ///
991 * [request] - The metadata request object. 980 /// [request] - The metadata request object.
992 * 981 ///
993 * Request parameters: 982 /// Request parameters:
994 * 983 ///
995 * [parent] - The path to the configuration that will own the waiter. 984 /// [parent] - The path to the configuration that will own the waiter.
996 * The configuration must exist beforehand; the path must by in the format: 985 /// The configuration must exist beforehand; the path must be in the format:
997 * 986 ///
998 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. 987 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`.
999 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 988 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
1000 * 989 ///
1001 * [requestId] - An optional but recommended unique `request_id`. If the 990 /// [requestId] - An optional but recommended unique `request_id`. If the
1002 * server 991 /// server
1003 * receives two `create()` requests with the same 992 /// receives two `create()` requests with the same
1004 * `request_id`, then the second request will be ignored and the 993 /// `request_id`, then the second request will be ignored and the
1005 * first resource created and stored in the backend is returned. 994 /// first resource created and stored in the backend is returned.
1006 * Empty `request_id` fields are ignored. 995 /// Empty `request_id` fields are ignored.
1007 * 996 ///
1008 * It is responsibility of the client to ensure uniqueness of the 997 /// It is responsibility of the client to ensure uniqueness of the
1009 * `request_id` strings. 998 /// `request_id` strings.
1010 * 999 ///
1011 * `request_id` strings are limited to 64 characters. 1000 /// `request_id` strings are limited to 64 characters.
1012 * 1001 ///
1013 * Completes with a [Operation]. 1002 /// Completes with a [Operation].
1014 * 1003 ///
1015 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1004 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1016 * error. 1005 /// an error.
1017 * 1006 ///
1018 * If the used [http.Client] completes with an error when making a REST call, 1007 /// If the used [http.Client] completes with an error when making a REST
1019 * this method will complete with the same error. 1008 /// call, this method will complete with the same error.
1020 */ 1009 async.Future<Operation> create(Waiter request, core.String parent,
1021 async.Future<Operation> create(Waiter request, core.String parent, {core.Strin g requestId}) { 1010 {core.String requestId}) {
1022 var _url = null; 1011 var _url = null;
1023 var _queryParams = new core.Map(); 1012 var _queryParams = new core.Map();
1024 var _uploadMedia = null; 1013 var _uploadMedia = null;
1025 var _uploadOptions = null; 1014 var _uploadOptions = null;
1026 var _downloadOptions = commons.DownloadOptions.Metadata; 1015 var _downloadOptions = commons.DownloadOptions.Metadata;
1027 var _body = null; 1016 var _body = null;
1028 1017
1029 if (request != null) { 1018 if (request != null) {
1030 _body = convert.JSON.encode((request).toJson()); 1019 _body = convert.JSON.encode((request).toJson());
1031 } 1020 }
1032 if (parent == null) { 1021 if (parent == null) {
1033 throw new core.ArgumentError("Parameter parent is required."); 1022 throw new core.ArgumentError("Parameter parent is required.");
1034 } 1023 }
1035 if (requestId != null) { 1024 if (requestId != null) {
1036 _queryParams["requestId"] = [requestId]; 1025 _queryParams["requestId"] = [requestId];
1037 } 1026 }
1038 1027
1039 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai ters'; 1028 _url = 'v1beta1/' +
1029 commons.Escaper.ecapeVariableReserved('$parent') +
1030 '/waiters';
1040 1031
1041 var _response = _requester.request(_url, 1032 var _response = _requester.request(_url, "POST",
1042 "POST", 1033 body: _body,
1043 body: _body, 1034 queryParams: _queryParams,
1044 queryParams: _queryParams, 1035 uploadOptions: _uploadOptions,
1045 uploadOptions: _uploadOptions, 1036 uploadMedia: _uploadMedia,
1046 uploadMedia: _uploadMedia, 1037 downloadOptions: _downloadOptions);
1047 downloadOptions: _downloadOptions);
1048 return _response.then((data) => new Operation.fromJson(data)); 1038 return _response.then((data) => new Operation.fromJson(data));
1049 } 1039 }
1050 1040
1051 /** 1041 /// Deletes the waiter with the specified name.
1052 * Deletes the waiter with the specified name. 1042 ///
1053 * 1043 /// Request parameters:
1054 * Request parameters: 1044 ///
1055 * 1045 /// [name] - The Waiter resource to delete, in the format:
1056 * [name] - The Waiter resource to delete, in the format: 1046 ///
1057 * 1047 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
1058 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` 1048 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
1059 * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". 1049 ///
1060 * 1050 /// Completes with a [Empty].
1061 * Completes with a [Empty]. 1051 ///
1062 * 1052 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1063 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1053 /// an error.
1064 * error. 1054 ///
1065 * 1055 /// If the used [http.Client] completes with an error when making a REST
1066 * If the used [http.Client] completes with an error when making a REST call, 1056 /// call, this method will complete with the same error.
1067 * this method will complete with the same error.
1068 */
1069 async.Future<Empty> delete(core.String name) { 1057 async.Future<Empty> delete(core.String name) {
1070 var _url = null; 1058 var _url = null;
1071 var _queryParams = new core.Map(); 1059 var _queryParams = new core.Map();
1072 var _uploadMedia = null; 1060 var _uploadMedia = null;
1073 var _uploadOptions = null; 1061 var _uploadOptions = null;
1074 var _downloadOptions = commons.DownloadOptions.Metadata; 1062 var _downloadOptions = commons.DownloadOptions.Metadata;
1075 var _body = null; 1063 var _body = null;
1076 1064
1077 if (name == null) { 1065 if (name == null) {
1078 throw new core.ArgumentError("Parameter name is required."); 1066 throw new core.ArgumentError("Parameter name is required.");
1079 } 1067 }
1080 1068
1081 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 1069 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
1082 1070
1083 var _response = _requester.request(_url, 1071 var _response = _requester.request(_url, "DELETE",
1084 "DELETE", 1072 body: _body,
1085 body: _body, 1073 queryParams: _queryParams,
1086 queryParams: _queryParams, 1074 uploadOptions: _uploadOptions,
1087 uploadOptions: _uploadOptions, 1075 uploadMedia: _uploadMedia,
1088 uploadMedia: _uploadMedia, 1076 downloadOptions: _downloadOptions);
1089 downloadOptions: _downloadOptions);
1090 return _response.then((data) => new Empty.fromJson(data)); 1077 return _response.then((data) => new Empty.fromJson(data));
1091 } 1078 }
1092 1079
1093 /** 1080 /// Gets information about a single waiter.
1094 * Gets information about a single waiter. 1081 ///
1095 * 1082 /// Request parameters:
1096 * Request parameters: 1083 ///
1097 * 1084 /// [name] - The fully-qualified name of the Waiter resource object to
1098 * [name] - The fully-qualified name of the Waiter resource object to 1085 /// retrieve, in the
1099 * retrieve, in the 1086 /// format:
1100 * format: 1087 ///
1101 * 1088 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
1102 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` 1089 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
1103 * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". 1090 ///
1104 * 1091 /// Completes with a [Waiter].
1105 * Completes with a [Waiter]. 1092 ///
1106 * 1093 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1094 /// an error.
1108 * error. 1095 ///
1109 * 1096 /// If the used [http.Client] completes with an error when making a REST
1110 * If the used [http.Client] completes with an error when making a REST call, 1097 /// call, this method will complete with the same error.
1111 * this method will complete with the same error.
1112 */
1113 async.Future<Waiter> get(core.String name) { 1098 async.Future<Waiter> get(core.String name) {
1114 var _url = null; 1099 var _url = null;
1115 var _queryParams = new core.Map(); 1100 var _queryParams = new core.Map();
1116 var _uploadMedia = null; 1101 var _uploadMedia = null;
1117 var _uploadOptions = null; 1102 var _uploadOptions = null;
1118 var _downloadOptions = commons.DownloadOptions.Metadata; 1103 var _downloadOptions = commons.DownloadOptions.Metadata;
1119 var _body = null; 1104 var _body = null;
1120 1105
1121 if (name == null) { 1106 if (name == null) {
1122 throw new core.ArgumentError("Parameter name is required."); 1107 throw new core.ArgumentError("Parameter name is required.");
1123 } 1108 }
1124 1109
1125 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 1110 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name');
1126 1111
1127 var _response = _requester.request(_url, 1112 var _response = _requester.request(_url, "GET",
1128 "GET", 1113 body: _body,
1129 body: _body, 1114 queryParams: _queryParams,
1130 queryParams: _queryParams, 1115 uploadOptions: _uploadOptions,
1131 uploadOptions: _uploadOptions, 1116 uploadMedia: _uploadMedia,
1132 uploadMedia: _uploadMedia, 1117 downloadOptions: _downloadOptions);
1133 downloadOptions: _downloadOptions);
1134 return _response.then((data) => new Waiter.fromJson(data)); 1118 return _response.then((data) => new Waiter.fromJson(data));
1135 } 1119 }
1136 1120
1137 /** 1121 /// List waiters within the given configuration.
1138 * List waiters within the given configuration. 1122 ///
1139 * 1123 /// Request parameters:
1140 * Request parameters: 1124 ///
1141 * 1125 /// [parent] - The path to the configuration for which you want to get a list
1142 * [parent] - The path to the configuration for which you want to get a list 1126 /// of waiters.
1143 * of waiters. 1127 /// The configuration must exist beforehand; the path must be in the format:
1144 * The configuration must exist beforehand; the path must by in the format: 1128 ///
1145 * 1129 /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
1146 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` 1130 /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
1147 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". 1131 ///
1148 * 1132 /// [pageToken] - Specifies a page token to use. Set `pageToken` to a
1149 * [pageToken] - Specifies a page token to use. Set `pageToken` to a 1133 /// `nextPageToken`
1150 * `nextPageToken` 1134 /// returned by a previous list request to get the next page of results.
1151 * returned by a previous list request to get the next page of results. 1135 ///
1152 * 1136 /// [pageSize] - Specifies the number of results to return per page. If there
1153 * [pageSize] - Specifies the number of results to return per page. If there 1137 /// are fewer
1154 * are fewer 1138 /// elements than the specified number, returns all elements.
1155 * elements than the specified number, returns all elements. 1139 ///
1156 * 1140 /// Completes with a [ListWaitersResponse].
1157 * Completes with a [ListWaitersResponse]. 1141 ///
1158 * 1142 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1143 /// an error.
1160 * error. 1144 ///
1161 * 1145 /// If the used [http.Client] completes with an error when making a REST
1162 * If the used [http.Client] completes with an error when making a REST call, 1146 /// call, this method will complete with the same error.
1163 * this method will complete with the same error. 1147 async.Future<ListWaitersResponse> list(core.String parent,
1164 */ 1148 {core.String pageToken, core.int pageSize}) {
1165 async.Future<ListWaitersResponse> list(core.String parent, {core.String pageTo ken, core.int pageSize}) {
1166 var _url = null; 1149 var _url = null;
1167 var _queryParams = new core.Map(); 1150 var _queryParams = new core.Map();
1168 var _uploadMedia = null; 1151 var _uploadMedia = null;
1169 var _uploadOptions = null; 1152 var _uploadOptions = null;
1170 var _downloadOptions = commons.DownloadOptions.Metadata; 1153 var _downloadOptions = commons.DownloadOptions.Metadata;
1171 var _body = null; 1154 var _body = null;
1172 1155
1173 if (parent == null) { 1156 if (parent == null) {
1174 throw new core.ArgumentError("Parameter parent is required."); 1157 throw new core.ArgumentError("Parameter parent is required.");
1175 } 1158 }
1176 if (pageToken != null) { 1159 if (pageToken != null) {
1177 _queryParams["pageToken"] = [pageToken]; 1160 _queryParams["pageToken"] = [pageToken];
1178 } 1161 }
1179 if (pageSize != null) { 1162 if (pageSize != null) {
1180 _queryParams["pageSize"] = ["${pageSize}"]; 1163 _queryParams["pageSize"] = ["${pageSize}"];
1181 } 1164 }
1182 1165
1183 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai ters'; 1166 _url = 'v1beta1/' +
1167 commons.Escaper.ecapeVariableReserved('$parent') +
1168 '/waiters';
1184 1169
1185 var _response = _requester.request(_url, 1170 var _response = _requester.request(_url, "GET",
1186 "GET", 1171 body: _body,
1187 body: _body, 1172 queryParams: _queryParams,
1188 queryParams: _queryParams, 1173 uploadOptions: _uploadOptions,
1189 uploadOptions: _uploadOptions, 1174 uploadMedia: _uploadMedia,
1190 uploadMedia: _uploadMedia, 1175 downloadOptions: _downloadOptions);
1191 downloadOptions: _downloadOptions);
1192 return _response.then((data) => new ListWaitersResponse.fromJson(data)); 1176 return _response.then((data) => new ListWaitersResponse.fromJson(data));
1193 } 1177 }
1194 1178
1195 /** 1179 /// Returns permissions that a caller has on the specified resource.
1196 * Returns permissions that a caller has on the specified resource. 1180 /// If the resource does not exist, this will return an empty set of
1197 * If the resource does not exist, this will return an empty set of 1181 /// permissions, not a NOT_FOUND error.
1198 * permissions, not a NOT_FOUND error. 1182 ///
1199 * 1183 /// Note: This operation is designed to be used for building permission-aware
1200 * Note: This operation is designed to be used for building permission-aware 1184 /// UIs and command-line tools, not for authorization checking. This
1201 * UIs and command-line tools, not for authorization checking. This operation 1185 /// operation
1202 * may "fail open" without warning. 1186 /// may "fail open" without warning.
1203 * 1187 ///
1204 * [request] - The metadata request object. 1188 /// [request] - The metadata request object.
1205 * 1189 ///
1206 * Request parameters: 1190 /// Request parameters:
1207 * 1191 ///
1208 * [resource] - REQUIRED: The resource for which the policy detail is being 1192 /// [resource] - REQUIRED: The resource for which the policy detail is being
1209 * requested. 1193 /// requested.
1210 * See the operation documentation for the appropriate value for this field. 1194 /// See the operation documentation for the appropriate value for this field.
1211 * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". 1195 /// Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
1212 * 1196 ///
1213 * Completes with a [TestIamPermissionsResponse]. 1197 /// Completes with a [TestIamPermissionsResponse].
1214 * 1198 ///
1215 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1199 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1216 * error. 1200 /// an error.
1217 * 1201 ///
1218 * If the used [http.Client] completes with an error when making a REST call, 1202 /// If the used [http.Client] completes with an error when making a REST
1219 * this method will complete with the same error. 1203 /// call, this method will complete with the same error.
1220 */ 1204 async.Future<TestIamPermissionsResponse> testIamPermissions(
1221 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 1205 TestIamPermissionsRequest request, core.String resource) {
1222 var _url = null; 1206 var _url = null;
1223 var _queryParams = new core.Map(); 1207 var _queryParams = new core.Map();
1224 var _uploadMedia = null; 1208 var _uploadMedia = null;
1225 var _uploadOptions = null; 1209 var _uploadOptions = null;
1226 var _downloadOptions = commons.DownloadOptions.Metadata; 1210 var _downloadOptions = commons.DownloadOptions.Metadata;
1227 var _body = null; 1211 var _body = null;
1228 1212
1229 if (request != null) { 1213 if (request != null) {
1230 _body = convert.JSON.encode((request).toJson()); 1214 _body = convert.JSON.encode((request).toJson());
1231 } 1215 }
1232 if (resource == null) { 1216 if (resource == null) {
1233 throw new core.ArgumentError("Parameter resource is required."); 1217 throw new core.ArgumentError("Parameter resource is required.");
1234 } 1218 }
1235 1219
1236 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':t estIamPermissions'; 1220 _url = 'v1beta1/' +
1221 commons.Escaper.ecapeVariableReserved('$resource') +
1222 ':testIamPermissions';
1237 1223
1238 var _response = _requester.request(_url, 1224 var _response = _requester.request(_url, "POST",
1239 "POST", 1225 body: _body,
1240 body: _body, 1226 queryParams: _queryParams,
1241 queryParams: _queryParams, 1227 uploadOptions: _uploadOptions,
1242 uploadOptions: _uploadOptions, 1228 uploadMedia: _uploadMedia,
1243 uploadMedia: _uploadMedia, 1229 downloadOptions: _downloadOptions);
1244 downloadOptions: _downloadOptions); 1230 return _response
1245 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data )); 1231 .then((data) => new TestIamPermissionsResponse.fromJson(data));
1246 } 1232 }
1247
1248 } 1233 }
1249 1234
1235 /// Associates `members` with a `role`.
1236 class Binding {
1237 /// Specifies the identities requesting access for a Cloud Platform resource.
1238 /// `members` can have the following values:
1239 ///
1240 /// * `allUsers`: A special identifier that represents anyone who is
1241 /// on the internet; with or without a Google account.
1242 ///
1243 /// * `allAuthenticatedUsers`: A special identifier that represents anyone
1244 /// who is authenticated with a Google account or a service account.
1245 ///
1246 /// * `user:{emailid}`: An email address that represents a specific Google
1247 /// account. For example, `alice@gmail.com` or `joe@example.com`.
1248 ///
1249 ///
1250 /// * `serviceAccount:{emailid}`: An email address that represents a service
1251 /// account. For example, `my-other-app@appspot.gserviceaccount.com`.
1252 ///
1253 /// * `group:{emailid}`: An email address that represents a Google group.
1254 /// For example, `admins@example.com`.
1255 ///
1256 ///
1257 /// * `domain:{domain}`: A Google Apps domain name that represents all the
1258 /// users of that domain. For example, `google.com` or `example.com`.
1259 core.List<core.String> members;
1250 1260
1251 1261 /// Role that is assigned to `members`.
1252 /** Associates `members` with a `role`. */ 1262 /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1253 class Binding { 1263 /// Required
1254 /**
1255 * Specifies the identities requesting access for a Cloud Platform resource.
1256 * `members` can have the following values:
1257 *
1258 * * `allUsers`: A special identifier that represents anyone who is
1259 * on the internet; with or without a Google account.
1260 *
1261 * * `allAuthenticatedUsers`: A special identifier that represents anyone
1262 * who is authenticated with a Google account or a service account.
1263 *
1264 * * `user:{emailid}`: An email address that represents a specific Google
1265 * account. For example, `alice@gmail.com` or `joe@example.com`.
1266 *
1267 *
1268 * * `serviceAccount:{emailid}`: An email address that represents a service
1269 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
1270 *
1271 * * `group:{emailid}`: An email address that represents a Google group.
1272 * For example, `admins@example.com`.
1273 *
1274 *
1275 * * `domain:{domain}`: A Google Apps domain name that represents all the
1276 * users of that domain. For example, `google.com` or `example.com`.
1277 */
1278 core.List<core.String> members;
1279 /**
1280 * Role that is assigned to `members`.
1281 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1282 * Required
1283 */
1284 core.String role; 1264 core.String role;
1285 1265
1286 Binding(); 1266 Binding();
1287 1267
1288 Binding.fromJson(core.Map _json) { 1268 Binding.fromJson(core.Map _json) {
1289 if (_json.containsKey("members")) { 1269 if (_json.containsKey("members")) {
1290 members = _json["members"]; 1270 members = _json["members"];
1291 } 1271 }
1292 if (_json.containsKey("role")) { 1272 if (_json.containsKey("role")) {
1293 role = _json["role"]; 1273 role = _json["role"];
1294 } 1274 }
1295 } 1275 }
1296 1276
1297 core.Map<core.String, core.Object> toJson() { 1277 core.Map<core.String, core.Object> toJson() {
1298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1278 final core.Map<core.String, core.Object> _json =
1279 new core.Map<core.String, core.Object>();
1299 if (members != null) { 1280 if (members != null) {
1300 _json["members"] = members; 1281 _json["members"] = members;
1301 } 1282 }
1302 if (role != null) { 1283 if (role != null) {
1303 _json["role"] = role; 1284 _json["role"] = role;
1304 } 1285 }
1305 return _json; 1286 return _json;
1306 } 1287 }
1307 } 1288 }
1308 1289
1309 /** 1290 /// A Cardinality condition for the Waiter resource. A cardinality condition is
1310 * A Cardinality condition for the Waiter resource. A cardinality condition is 1291 /// met when the number of variables under a specified path prefix reaches a
1311 * met when the number of variables under a specified path prefix reaches a 1292 /// predefined number. For example, if you set a Cardinality condition where
1312 * predefined number. For example, if you set a Cardinality condition where 1293 /// the `path` is set to `/foo` and the number of paths is set to 2, the
1313 * the `path` is set to `/foo` and the number of paths is set to 2, the 1294 /// following variables would meet the condition in a RuntimeConfig resource:
1314 * following variables would meet the condition in a RuntimeConfig resource: 1295 ///
1315 * 1296 /// + `/foo/variable1 = "value1"`
1316 * + `/foo/variable1 = "value1"` 1297 /// + `/foo/variable2 = "value2"`
1317 * + `/foo/variable2 = "value2"` 1298 /// + `/bar/variable3 = "value3"`
1318 * + `/bar/variable3 = "value3"` 1299 ///
1319 * 1300 /// It would not would not satisify the same condition with the `number` set to
1320 * It would not would not satisify the same condition with the `number` set to 1301 /// 3, however, because there is only 2 paths that start with `/foo`.
1321 * 3, however, because there is only 2 paths that start with `/foo`. 1302 /// Cardinality conditions are recursive; all subtrees under the specific
1322 * Cardinality conditions are recursive; all subtrees under the specific 1303 /// path prefix are counted.
1323 * path prefix are counted.
1324 */
1325 class Cardinality { 1304 class Cardinality {
1326 /** 1305 /// The number variables under the `path` that must exist to meet this
1327 * The number variables under the `path` that must exist to meet this 1306 /// condition. Defaults to 1 if not specified.
1328 * condition. Defaults to 1 if not specified.
1329 */
1330 core.int number; 1307 core.int number;
1331 /** The root of the variable subtree to monitor. For example, `/foo`. */ 1308
1309 /// The root of the variable subtree to monitor. For example, `/foo`.
1332 core.String path; 1310 core.String path;
1333 1311
1334 Cardinality(); 1312 Cardinality();
1335 1313
1336 Cardinality.fromJson(core.Map _json) { 1314 Cardinality.fromJson(core.Map _json) {
1337 if (_json.containsKey("number")) { 1315 if (_json.containsKey("number")) {
1338 number = _json["number"]; 1316 number = _json["number"];
1339 } 1317 }
1340 if (_json.containsKey("path")) { 1318 if (_json.containsKey("path")) {
1341 path = _json["path"]; 1319 path = _json["path"];
1342 } 1320 }
1343 } 1321 }
1344 1322
1345 core.Map<core.String, core.Object> toJson() { 1323 core.Map<core.String, core.Object> toJson() {
1346 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1324 final core.Map<core.String, core.Object> _json =
1325 new core.Map<core.String, core.Object>();
1347 if (number != null) { 1326 if (number != null) {
1348 _json["number"] = number; 1327 _json["number"] = number;
1349 } 1328 }
1350 if (path != null) { 1329 if (path != null) {
1351 _json["path"] = path; 1330 _json["path"] = path;
1352 } 1331 }
1353 return _json; 1332 return _json;
1354 } 1333 }
1355 } 1334 }
1356 1335
1357 /** 1336 /// A generic empty message that you can re-use to avoid defining duplicated
1358 * A generic empty message that you can re-use to avoid defining duplicated 1337 /// empty messages in your APIs. A typical example is to use it as the request
1359 * empty messages in your APIs. A typical example is to use it as the request 1338 /// or the response type of an API method. For instance:
1360 * or the response type of an API method. For instance: 1339 ///
1361 * 1340 /// service Foo {
1362 * service Foo { 1341 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1363 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 1342 /// }
1364 * } 1343 ///
1365 * 1344 /// The JSON representation for `Empty` is empty JSON object `{}`.
1366 * The JSON representation for `Empty` is empty JSON object `{}`.
1367 */
1368 class Empty { 1345 class Empty {
1369
1370 Empty(); 1346 Empty();
1371 1347
1372 Empty.fromJson(core.Map _json) { 1348 Empty.fromJson(core.Map _json) {}
1373 }
1374 1349
1375 core.Map<core.String, core.Object> toJson() { 1350 core.Map<core.String, core.Object> toJson() {
1376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1351 final core.Map<core.String, core.Object> _json =
1352 new core.Map<core.String, core.Object>();
1377 return _json; 1353 return _json;
1378 } 1354 }
1379 } 1355 }
1380 1356
1381 /** The condition that a Waiter resource is waiting for. */ 1357 /// The condition that a Waiter resource is waiting for.
1382 class EndCondition { 1358 class EndCondition {
1383 /** The cardinality of the `EndCondition`. */ 1359 /// The cardinality of the `EndCondition`.
1384 Cardinality cardinality; 1360 Cardinality cardinality;
1385 1361
1386 EndCondition(); 1362 EndCondition();
1387 1363
1388 EndCondition.fromJson(core.Map _json) { 1364 EndCondition.fromJson(core.Map _json) {
1389 if (_json.containsKey("cardinality")) { 1365 if (_json.containsKey("cardinality")) {
1390 cardinality = new Cardinality.fromJson(_json["cardinality"]); 1366 cardinality = new Cardinality.fromJson(_json["cardinality"]);
1391 } 1367 }
1392 } 1368 }
1393 1369
1394 core.Map<core.String, core.Object> toJson() { 1370 core.Map<core.String, core.Object> toJson() {
1395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1371 final core.Map<core.String, core.Object> _json =
1372 new core.Map<core.String, core.Object>();
1396 if (cardinality != null) { 1373 if (cardinality != null) {
1397 _json["cardinality"] = (cardinality).toJson(); 1374 _json["cardinality"] = (cardinality).toJson();
1398 } 1375 }
1399 return _json; 1376 return _json;
1400 } 1377 }
1401 } 1378 }
1402 1379
1403 /** 1380 /// `ListConfigs()` returns the following response. The order of returned
1404 * `ListConfigs()` returns the following response. The order of returned 1381 /// objects is arbitrary; that is, it is not ordered in any particular way.
1405 * objects is arbitrary; that is, it is not ordered in any particular way.
1406 */
1407 class ListConfigsResponse { 1382 class ListConfigsResponse {
1408 /** 1383 /// A list of the configurations in the project. The order of returned
1409 * A list of the configurations in the project. The order of returned 1384 /// objects is arbitrary; that is, it is not ordered in any particular way.
1410 * objects is arbitrary; that is, it is not ordered in any particular way.
1411 */
1412 core.List<RuntimeConfig> configs; 1385 core.List<RuntimeConfig> configs;
1413 /** 1386
1414 * This token allows you to get the next page of results for list requests. 1387 /// This token allows you to get the next page of results for list requests.
1415 * If the number of results is larger than `pageSize`, use the `nextPageToken` 1388 /// If the number of results is larger than `pageSize`, use the
1416 * as a value for the query parameter `pageToken` in the next list request. 1389 /// `nextPageToken`
1417 * Subsequent list requests will have their own `nextPageToken` to continue 1390 /// as a value for the query parameter `pageToken` in the next list request.
1418 * paging through the results 1391 /// Subsequent list requests will have their own `nextPageToken` to continue
1419 */ 1392 /// paging through the results
1420 core.String nextPageToken; 1393 core.String nextPageToken;
1421 1394
1422 ListConfigsResponse(); 1395 ListConfigsResponse();
1423 1396
1424 ListConfigsResponse.fromJson(core.Map _json) { 1397 ListConfigsResponse.fromJson(core.Map _json) {
1425 if (_json.containsKey("configs")) { 1398 if (_json.containsKey("configs")) {
1426 configs = _json["configs"].map((value) => new RuntimeConfig.fromJson(value )).toList(); 1399 configs = _json["configs"]
1400 .map((value) => new RuntimeConfig.fromJson(value))
1401 .toList();
1427 } 1402 }
1428 if (_json.containsKey("nextPageToken")) { 1403 if (_json.containsKey("nextPageToken")) {
1429 nextPageToken = _json["nextPageToken"]; 1404 nextPageToken = _json["nextPageToken"];
1430 } 1405 }
1431 } 1406 }
1432 1407
1433 core.Map<core.String, core.Object> toJson() { 1408 core.Map<core.String, core.Object> toJson() {
1434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1409 final core.Map<core.String, core.Object> _json =
1410 new core.Map<core.String, core.Object>();
1435 if (configs != null) { 1411 if (configs != null) {
1436 _json["configs"] = configs.map((value) => (value).toJson()).toList(); 1412 _json["configs"] = configs.map((value) => (value).toJson()).toList();
1437 } 1413 }
1438 if (nextPageToken != null) { 1414 if (nextPageToken != null) {
1439 _json["nextPageToken"] = nextPageToken; 1415 _json["nextPageToken"] = nextPageToken;
1440 } 1416 }
1441 return _json; 1417 return _json;
1442 } 1418 }
1443 } 1419 }
1444 1420
1445 /** Response for the `ListVariables()` method. */ 1421 /// Response for the `ListVariables()` method.
1446 class ListVariablesResponse { 1422 class ListVariablesResponse {
1447 /** 1423 /// This token allows you to get the next page of results for list requests.
1448 * This token allows you to get the next page of results for list requests. 1424 /// If the number of results is larger than `pageSize`, use the
1449 * If the number of results is larger than `pageSize`, use the `nextPageToken` 1425 /// `nextPageToken`
1450 * as a value for the query parameter `pageToken` in the next list request. 1426 /// as a value for the query parameter `pageToken` in the next list request.
1451 * Subsequent list requests will have their own `nextPageToken` to continue 1427 /// Subsequent list requests will have their own `nextPageToken` to continue
1452 * paging through the results 1428 /// paging through the results
1453 */
1454 core.String nextPageToken; 1429 core.String nextPageToken;
1455 /** 1430
1456 * A list of variables and their values. The order of returned variable 1431 /// A list of variables and their values. The order of returned variable
1457 * objects is arbitrary. 1432 /// objects is arbitrary.
1458 */
1459 core.List<Variable> variables; 1433 core.List<Variable> variables;
1460 1434
1461 ListVariablesResponse(); 1435 ListVariablesResponse();
1462 1436
1463 ListVariablesResponse.fromJson(core.Map _json) { 1437 ListVariablesResponse.fromJson(core.Map _json) {
1464 if (_json.containsKey("nextPageToken")) { 1438 if (_json.containsKey("nextPageToken")) {
1465 nextPageToken = _json["nextPageToken"]; 1439 nextPageToken = _json["nextPageToken"];
1466 } 1440 }
1467 if (_json.containsKey("variables")) { 1441 if (_json.containsKey("variables")) {
1468 variables = _json["variables"].map((value) => new Variable.fromJson(value) ).toList(); 1442 variables = _json["variables"]
1443 .map((value) => new Variable.fromJson(value))
1444 .toList();
1469 } 1445 }
1470 } 1446 }
1471 1447
1472 core.Map<core.String, core.Object> toJson() { 1448 core.Map<core.String, core.Object> toJson() {
1473 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1449 final core.Map<core.String, core.Object> _json =
1450 new core.Map<core.String, core.Object>();
1474 if (nextPageToken != null) { 1451 if (nextPageToken != null) {
1475 _json["nextPageToken"] = nextPageToken; 1452 _json["nextPageToken"] = nextPageToken;
1476 } 1453 }
1477 if (variables != null) { 1454 if (variables != null) {
1478 _json["variables"] = variables.map((value) => (value).toJson()).toList(); 1455 _json["variables"] = variables.map((value) => (value).toJson()).toList();
1479 } 1456 }
1480 return _json; 1457 return _json;
1481 } 1458 }
1482 } 1459 }
1483 1460
1484 /** 1461 /// Response for the `ListWaiters()` method.
1485 * Response for the `ListWaiters()` method. 1462 /// Order of returned waiter objects is arbitrary.
1486 * Order of returned waiter objects is arbitrary.
1487 */
1488 class ListWaitersResponse { 1463 class ListWaitersResponse {
1489 /** 1464 /// This token allows you to get the next page of results for list requests.
1490 * This token allows you to get the next page of results for list requests. 1465 /// If the number of results is larger than `pageSize`, use the
1491 * If the number of results is larger than `pageSize`, use the `nextPageToken` 1466 /// `nextPageToken`
1492 * as a value for the query parameter `pageToken` in the next list request. 1467 /// as a value for the query parameter `pageToken` in the next list request.
1493 * Subsequent list requests will have their own `nextPageToken` to continue 1468 /// Subsequent list requests will have their own `nextPageToken` to continue
1494 * paging through the results 1469 /// paging through the results
1495 */
1496 core.String nextPageToken; 1470 core.String nextPageToken;
1497 /** Found waiters in the project. */ 1471
1472 /// Found waiters in the project.
1498 core.List<Waiter> waiters; 1473 core.List<Waiter> waiters;
1499 1474
1500 ListWaitersResponse(); 1475 ListWaitersResponse();
1501 1476
1502 ListWaitersResponse.fromJson(core.Map _json) { 1477 ListWaitersResponse.fromJson(core.Map _json) {
1503 if (_json.containsKey("nextPageToken")) { 1478 if (_json.containsKey("nextPageToken")) {
1504 nextPageToken = _json["nextPageToken"]; 1479 nextPageToken = _json["nextPageToken"];
1505 } 1480 }
1506 if (_json.containsKey("waiters")) { 1481 if (_json.containsKey("waiters")) {
1507 waiters = _json["waiters"].map((value) => new Waiter.fromJson(value)).toLi st(); 1482 waiters =
1483 _json["waiters"].map((value) => new Waiter.fromJson(value)).toList();
1508 } 1484 }
1509 } 1485 }
1510 1486
1511 core.Map<core.String, core.Object> toJson() { 1487 core.Map<core.String, core.Object> toJson() {
1512 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1488 final core.Map<core.String, core.Object> _json =
1489 new core.Map<core.String, core.Object>();
1513 if (nextPageToken != null) { 1490 if (nextPageToken != null) {
1514 _json["nextPageToken"] = nextPageToken; 1491 _json["nextPageToken"] = nextPageToken;
1515 } 1492 }
1516 if (waiters != null) { 1493 if (waiters != null) {
1517 _json["waiters"] = waiters.map((value) => (value).toJson()).toList(); 1494 _json["waiters"] = waiters.map((value) => (value).toJson()).toList();
1518 } 1495 }
1519 return _json; 1496 return _json;
1520 } 1497 }
1521 } 1498 }
1522 1499
1523 /** 1500 /// This resource represents a long-running operation that is the result of a
1524 * This resource represents a long-running operation that is the result of a 1501 /// network API call.
1525 * network API call.
1526 */
1527 class Operation { 1502 class Operation {
1528 /** 1503 /// If the value is `false`, it means the operation is still in progress.
1529 * If the value is `false`, it means the operation is still in progress. 1504 /// If `true`, the operation is completed, and either `error` or `response`
1530 * If true, the operation is completed, and either `error` or `response` is 1505 /// is
1531 * available. 1506 /// available.
1532 */
1533 core.bool done; 1507 core.bool done;
1534 /** The error result of the operation in case of failure or cancellation. */ 1508
1509 /// The error result of the operation in case of failure or cancellation.
1535 Status error; 1510 Status error;
1536 /** 1511
1537 * Service-specific metadata associated with the operation. It typically 1512 /// Service-specific metadata associated with the operation. It typically
1538 * contains progress information and common metadata such as create time. 1513 /// contains progress information and common metadata such as create time.
1539 * Some services might not provide such metadata. Any method that returns a 1514 /// Some services might not provide such metadata. Any method that returns a
1540 * long-running operation should document the metadata type, if any. 1515 /// long-running operation should document the metadata type, if any.
1541 * 1516 ///
1542 * The values for Object must be JSON objects. It can consist of `num`, 1517 /// The values for Object must be JSON objects. It can consist of `num`,
1543 * `String`, `bool` and `null` as well as `Map` and `List` values. 1518 /// `String`, `bool` and `null` as well as `Map` and `List` values.
1544 */
1545 core.Map<core.String, core.Object> metadata; 1519 core.Map<core.String, core.Object> metadata;
1546 /** 1520
1547 * The server-assigned name, which is only unique within the same service that 1521 /// The server-assigned name, which is only unique within the same service
1548 * originally returns it. If you use the default HTTP mapping, the 1522 /// that
1549 * `name` should have the format of `operations/some/unique/name`. 1523 /// originally returns it. If you use the default HTTP mapping, the
1550 */ 1524 /// `name` should have the format of `operations/some/unique/name`.
1551 core.String name; 1525 core.String name;
1552 /** 1526
1553 * The normal response of the operation in case of success. If the original 1527 /// The normal response of the operation in case of success. If the original
1554 * method returns no data on success, such as `Delete`, the response is 1528 /// method returns no data on success, such as `Delete`, the response is
1555 * `google.protobuf.Empty`. If the original method is standard 1529 /// `google.protobuf.Empty`. If the original method is standard
1556 * `Get`/`Create`/`Update`, the response should be the resource. For other 1530 /// `Get`/`Create`/`Update`, the response should be the resource. For other
1557 * methods, the response should have the type `XxxResponse`, where `Xxx` 1531 /// methods, the response should have the type `XxxResponse`, where `Xxx`
1558 * is the original method name. For example, if the original method name 1532 /// is the original method name. For example, if the original method name
1559 * is `TakeSnapshot()`, the inferred response type is 1533 /// is `TakeSnapshot()`, the inferred response type is
1560 * `TakeSnapshotResponse`. 1534 /// `TakeSnapshotResponse`.
1561 * 1535 ///
1562 * The values for Object must be JSON objects. It can consist of `num`, 1536 /// The values for Object must be JSON objects. It can consist of `num`,
1563 * `String`, `bool` and `null` as well as `Map` and `List` values. 1537 /// `String`, `bool` and `null` as well as `Map` and `List` values.
1564 */
1565 core.Map<core.String, core.Object> response; 1538 core.Map<core.String, core.Object> response;
1566 1539
1567 Operation(); 1540 Operation();
1568 1541
1569 Operation.fromJson(core.Map _json) { 1542 Operation.fromJson(core.Map _json) {
1570 if (_json.containsKey("done")) { 1543 if (_json.containsKey("done")) {
1571 done = _json["done"]; 1544 done = _json["done"];
1572 } 1545 }
1573 if (_json.containsKey("error")) { 1546 if (_json.containsKey("error")) {
1574 error = new Status.fromJson(_json["error"]); 1547 error = new Status.fromJson(_json["error"]);
1575 } 1548 }
1576 if (_json.containsKey("metadata")) { 1549 if (_json.containsKey("metadata")) {
1577 metadata = _json["metadata"]; 1550 metadata = _json["metadata"];
1578 } 1551 }
1579 if (_json.containsKey("name")) { 1552 if (_json.containsKey("name")) {
1580 name = _json["name"]; 1553 name = _json["name"];
1581 } 1554 }
1582 if (_json.containsKey("response")) { 1555 if (_json.containsKey("response")) {
1583 response = _json["response"]; 1556 response = _json["response"];
1584 } 1557 }
1585 } 1558 }
1586 1559
1587 core.Map<core.String, core.Object> toJson() { 1560 core.Map<core.String, core.Object> toJson() {
1588 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1561 final core.Map<core.String, core.Object> _json =
1562 new core.Map<core.String, core.Object>();
1589 if (done != null) { 1563 if (done != null) {
1590 _json["done"] = done; 1564 _json["done"] = done;
1591 } 1565 }
1592 if (error != null) { 1566 if (error != null) {
1593 _json["error"] = (error).toJson(); 1567 _json["error"] = (error).toJson();
1594 } 1568 }
1595 if (metadata != null) { 1569 if (metadata != null) {
1596 _json["metadata"] = metadata; 1570 _json["metadata"] = metadata;
1597 } 1571 }
1598 if (name != null) { 1572 if (name != null) {
1599 _json["name"] = name; 1573 _json["name"] = name;
1600 } 1574 }
1601 if (response != null) { 1575 if (response != null) {
1602 _json["response"] = response; 1576 _json["response"] = response;
1603 } 1577 }
1604 return _json; 1578 return _json;
1605 } 1579 }
1606 } 1580 }
1607 1581
1608 /** 1582 /// Defines an Identity and Access Management (IAM) policy. It is used to
1609 * Defines an Identity and Access Management (IAM) policy. It is used to 1583 /// specify access control policies for Cloud Platform resources.
1610 * specify access control policies for Cloud Platform resources. 1584 ///
1611 * 1585 ///
1612 * 1586 /// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1613 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of 1587 /// `members` to a `role`, where the members can be user accounts, Google
1614 * `members` to a `role`, where the members can be user accounts, Google groups, 1588 /// groups,
1615 * Google domains, and service accounts. A `role` is a named list of permissions 1589 /// Google domains, and service accounts. A `role` is a named list of
1616 * defined by IAM. 1590 /// permissions
1617 * 1591 /// defined by IAM.
1618 * **Example** 1592 ///
1619 * 1593 /// **Example**
1620 * { 1594 ///
1621 * "bindings": [ 1595 /// {
1622 * { 1596 /// "bindings": [
1623 * "role": "roles/owner", 1597 /// {
1624 * "members": [ 1598 /// "role": "roles/owner",
1625 * "user:mike@example.com", 1599 /// "members": [
1626 * "group:admins@example.com", 1600 /// "user:mike@example.com",
1627 * "domain:google.com", 1601 /// "group:admins@example.com",
1628 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", 1602 /// "domain:google.com",
1629 * ] 1603 /// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1630 * }, 1604 /// ]
1631 * { 1605 /// },
1632 * "role": "roles/viewer", 1606 /// {
1633 * "members": ["user:sean@example.com"] 1607 /// "role": "roles/viewer",
1634 * } 1608 /// "members": ["user:sean@example.com"]
1635 * ] 1609 /// }
1636 * } 1610 /// ]
1637 * 1611 /// }
1638 * For a description of IAM and its features, see the 1612 ///
1639 * [IAM developer's guide](https://cloud.google.com/iam). 1613 /// For a description of IAM and its features, see the
1640 */ 1614 /// [IAM developer's guide](https://cloud.google.com/iam).
1641 class Policy { 1615 class Policy {
1642 /** 1616 /// Associates a list of `members` to a `role`.
1643 * Associates a list of `members` to a `role`. 1617 /// `bindings` with no members will result in an error.
1644 * `bindings` with no members will result in an error.
1645 */
1646 core.List<Binding> bindings; 1618 core.List<Binding> bindings;
1647 /** 1619
1648 * `etag` is used for optimistic concurrency control as a way to help 1620 /// `etag` is used for optimistic concurrency control as a way to help
1649 * prevent simultaneous updates of a policy from overwriting each other. 1621 /// prevent simultaneous updates of a policy from overwriting each other.
1650 * It is strongly suggested that systems make use of the `etag` in the 1622 /// It is strongly suggested that systems make use of the `etag` in the
1651 * read-modify-write cycle to perform policy updates in order to avoid race 1623 /// read-modify-write cycle to perform policy updates in order to avoid race
1652 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 1624 /// conditions: An `etag` is returned in the response to `getIamPolicy`, and
1653 * systems are expected to put that etag in the request to `setIamPolicy` to 1625 /// systems are expected to put that etag in the request to `setIamPolicy` to
1654 * ensure that their change will be applied to the same version of the policy. 1626 /// ensure that their change will be applied to the same version of the
1655 * 1627 /// policy.
1656 * If no `etag` is provided in the call to `setIamPolicy`, then the existing 1628 ///
1657 * policy is overwritten blindly. 1629 /// If no `etag` is provided in the call to `setIamPolicy`, then the existing
1658 */ 1630 /// policy is overwritten blindly.
1659 core.String etag; 1631 core.String etag;
1660 core.List<core.int> get etagAsBytes { 1632 core.List<core.int> get etagAsBytes {
1661 return convert.BASE64.decode(etag); 1633 return convert.BASE64.decode(etag);
1662 } 1634 }
1663 1635
1664 void set etagAsBytes(core.List<core.int> _bytes) { 1636 void set etagAsBytes(core.List<core.int> _bytes) {
1665 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1637 etag =
1638 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1666 } 1639 }
1667 /** Version of the `Policy`. The default version is 0. */ 1640
1641 /// Version of the `Policy`. The default version is 0.
1668 core.int version; 1642 core.int version;
1669 1643
1670 Policy(); 1644 Policy();
1671 1645
1672 Policy.fromJson(core.Map _json) { 1646 Policy.fromJson(core.Map _json) {
1673 if (_json.containsKey("bindings")) { 1647 if (_json.containsKey("bindings")) {
1674 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList(); 1648 bindings = _json["bindings"]
1649 .map((value) => new Binding.fromJson(value))
1650 .toList();
1675 } 1651 }
1676 if (_json.containsKey("etag")) { 1652 if (_json.containsKey("etag")) {
1677 etag = _json["etag"]; 1653 etag = _json["etag"];
1678 } 1654 }
1679 if (_json.containsKey("version")) { 1655 if (_json.containsKey("version")) {
1680 version = _json["version"]; 1656 version = _json["version"];
1681 } 1657 }
1682 } 1658 }
1683 1659
1684 core.Map<core.String, core.Object> toJson() { 1660 core.Map<core.String, core.Object> toJson() {
1685 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1661 final core.Map<core.String, core.Object> _json =
1662 new core.Map<core.String, core.Object>();
1686 if (bindings != null) { 1663 if (bindings != null) {
1687 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 1664 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
1688 } 1665 }
1689 if (etag != null) { 1666 if (etag != null) {
1690 _json["etag"] = etag; 1667 _json["etag"] = etag;
1691 } 1668 }
1692 if (version != null) { 1669 if (version != null) {
1693 _json["version"] = version; 1670 _json["version"] = version;
1694 } 1671 }
1695 return _json; 1672 return _json;
1696 } 1673 }
1697 } 1674 }
1698 1675
1699 /** 1676 /// A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
1700 * A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig 1677 /// service. A RuntimeConfig resource consists of metadata and a hierarchy of
1701 * service. A RuntimeConfig resource consists of metadata and a hierarchy of 1678 /// variables.
1702 * variables.
1703 */
1704 class RuntimeConfig { 1679 class RuntimeConfig {
1705 /** An optional description of the RuntimeConfig object. */ 1680 /// An optional description of the RuntimeConfig object.
1706 core.String description; 1681 core.String description;
1707 /** 1682
1708 * The resource name of a runtime config. The name must have the format: 1683 /// The resource name of a runtime config. The name must have the format:
1709 * 1684 ///
1710 * projects/[PROJECT_ID]/configs/[CONFIG_NAME] 1685 /// projects/[PROJECT_ID]/configs/[CONFIG_NAME]
1711 * 1686 ///
1712 * The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an 1687 /// The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
1713 * arbitrary name that matches RFC 1035 segment specification. The length of 1688 /// arbitrary name that matches RFC 1035 segment specification. The length of
1714 * `[CONFIG_NAME]` must be less than 64 bytes. 1689 /// `[CONFIG_NAME]` must be less than 64 bytes.
1715 * 1690 ///
1716 * You pick the RuntimeConfig resource name, but the server will validate that 1691 /// You pick the RuntimeConfig resource name, but the server will validate
1717 * the name adheres to this format. After you create the resource, you cannot 1692 /// that
1718 * change the resource's name. 1693 /// the name adheres to this format. After you create the resource, you
1719 */ 1694 /// cannot
1695 /// change the resource's name.
1720 core.String name; 1696 core.String name;
1721 1697
1722 RuntimeConfig(); 1698 RuntimeConfig();
1723 1699
1724 RuntimeConfig.fromJson(core.Map _json) { 1700 RuntimeConfig.fromJson(core.Map _json) {
1725 if (_json.containsKey("description")) { 1701 if (_json.containsKey("description")) {
1726 description = _json["description"]; 1702 description = _json["description"];
1727 } 1703 }
1728 if (_json.containsKey("name")) { 1704 if (_json.containsKey("name")) {
1729 name = _json["name"]; 1705 name = _json["name"];
1730 } 1706 }
1731 } 1707 }
1732 1708
1733 core.Map<core.String, core.Object> toJson() { 1709 core.Map<core.String, core.Object> toJson() {
1734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1710 final core.Map<core.String, core.Object> _json =
1711 new core.Map<core.String, core.Object>();
1735 if (description != null) { 1712 if (description != null) {
1736 _json["description"] = description; 1713 _json["description"] = description;
1737 } 1714 }
1738 if (name != null) { 1715 if (name != null) {
1739 _json["name"] = name; 1716 _json["name"] = name;
1740 } 1717 }
1741 return _json; 1718 return _json;
1742 } 1719 }
1743 } 1720 }
1744 1721
1745 /** Request message for `SetIamPolicy` method. */ 1722 /// Request message for `SetIamPolicy` method.
1746 class SetIamPolicyRequest { 1723 class SetIamPolicyRequest {
1747 /** 1724 /// REQUIRED: The complete policy to be applied to the `resource`. The size
1748 * REQUIRED: The complete policy to be applied to the `resource`. The size of 1725 /// of
1749 * the policy is limited to a few 10s of KB. An empty policy is a 1726 /// the policy is limited to a few 10s of KB. An empty policy is a
1750 * valid policy but certain Cloud Platform services (such as Projects) 1727 /// valid policy but certain Cloud Platform services (such as Projects)
1751 * might reject them. 1728 /// might reject them.
1752 */
1753 Policy policy; 1729 Policy policy;
1754 1730
1755 SetIamPolicyRequest(); 1731 SetIamPolicyRequest();
1756 1732
1757 SetIamPolicyRequest.fromJson(core.Map _json) { 1733 SetIamPolicyRequest.fromJson(core.Map _json) {
1758 if (_json.containsKey("policy")) { 1734 if (_json.containsKey("policy")) {
1759 policy = new Policy.fromJson(_json["policy"]); 1735 policy = new Policy.fromJson(_json["policy"]);
1760 } 1736 }
1761 } 1737 }
1762 1738
1763 core.Map<core.String, core.Object> toJson() { 1739 core.Map<core.String, core.Object> toJson() {
1764 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1740 final core.Map<core.String, core.Object> _json =
1741 new core.Map<core.String, core.Object>();
1765 if (policy != null) { 1742 if (policy != null) {
1766 _json["policy"] = (policy).toJson(); 1743 _json["policy"] = (policy).toJson();
1767 } 1744 }
1768 return _json; 1745 return _json;
1769 } 1746 }
1770 } 1747 }
1771 1748
1772 /** 1749 /// The `Status` type defines a logical error model that is suitable for
1773 * The `Status` type defines a logical error model that is suitable for 1750 /// different
1774 * different 1751 /// programming environments, including REST APIs and RPC APIs. It is used by
1775 * programming environments, including REST APIs and RPC APIs. It is used by 1752 /// [gRPC](https://github.com/grpc). The error model is designed to be:
1776 * [gRPC](https://github.com/grpc). The error model is designed to be: 1753 ///
1777 * 1754 /// - Simple to use and understand for most users
1778 * - Simple to use and understand for most users 1755 /// - Flexible enough to meet unexpected needs
1779 * - Flexible enough to meet unexpected needs 1756 ///
1780 * 1757 /// # Overview
1781 * # Overview 1758 ///
1782 * 1759 /// The `Status` message contains three pieces of data: error code, error
1783 * The `Status` message contains three pieces of data: error code, error 1760 /// message,
1784 * message, 1761 /// and error details. The error code should be an enum value of
1785 * and error details. The error code should be an enum value of 1762 /// google.rpc.Code, but it may accept additional error codes if needed. The
1786 * google.rpc.Code, but it may accept additional error codes if needed. The 1763 /// error message should be a developer-facing English message that helps
1787 * error message should be a developer-facing English message that helps 1764 /// developers *understand* and *resolve* the error. If a localized user-facing
1788 * developers *understand* and *resolve* the error. If a localized user-facing 1765 /// error message is needed, put the localized message in the error details or
1789 * error message is needed, put the localized message in the error details or 1766 /// localize it in the client. The optional error details may contain arbitrary
1790 * localize it in the client. The optional error details may contain arbitrary 1767 /// information about the error. There is a predefined set of error detail
1791 * information about the error. There is a predefined set of error detail types 1768 /// types
1792 * in the package `google.rpc` that can be used for common error conditions. 1769 /// in the package `google.rpc` that can be used for common error conditions.
1793 * 1770 ///
1794 * # Language mapping 1771 /// # Language mapping
1795 * 1772 ///
1796 * The `Status` message is the logical representation of the error model, but it 1773 /// The `Status` message is the logical representation of the error model, but
1797 * is not necessarily the actual wire format. When the `Status` message is 1774 /// it
1798 * exposed in different client libraries and different wire protocols, it can be 1775 /// is not necessarily the actual wire format. When the `Status` message is
1799 * mapped differently. For example, it will likely be mapped to some exceptions 1776 /// exposed in different client libraries and different wire protocols, it can
1800 * in Java, but more likely mapped to some error codes in C. 1777 /// be
1801 * 1778 /// mapped differently. For example, it will likely be mapped to some
1802 * # Other uses 1779 /// exceptions
1803 * 1780 /// in Java, but more likely mapped to some error codes in C.
1804 * The error model and the `Status` message can be used in a variety of 1781 ///
1805 * environments, either with or without APIs, to provide a 1782 /// # Other uses
1806 * consistent developer experience across different environments. 1783 ///
1807 * 1784 /// The error model and the `Status` message can be used in a variety of
1808 * Example uses of this error model include: 1785 /// environments, either with or without APIs, to provide a
1809 * 1786 /// consistent developer experience across different environments.
1810 * - Partial errors. If a service needs to return partial errors to the client, 1787 ///
1811 * it may embed the `Status` in the normal response to indicate the partial 1788 /// Example uses of this error model include:
1812 * errors. 1789 ///
1813 * 1790 /// - Partial errors. If a service needs to return partial errors to the
1814 * - Workflow errors. A typical workflow has multiple steps. Each step may 1791 /// client,
1815 * have a `Status` message for error reporting. 1792 /// it may embed the `Status` in the normal response to indicate the partial
1816 * 1793 /// errors.
1817 * - Batch operations. If a client uses batch request and batch response, the 1794 ///
1818 * `Status` message should be used directly inside batch response, one for 1795 /// - Workflow errors. A typical workflow has multiple steps. Each step may
1819 * each error sub-response. 1796 /// have a `Status` message for error reporting.
1820 * 1797 ///
1821 * - Asynchronous operations. If an API call embeds asynchronous operation 1798 /// - Batch operations. If a client uses batch request and batch response, the
1822 * results in its response, the status of those operations should be 1799 /// `Status` message should be used directly inside batch response, one for
1823 * represented directly using the `Status` message. 1800 /// each error sub-response.
1824 * 1801 ///
1825 * - Logging. If some API errors are stored in logs, the message `Status` could 1802 /// - Asynchronous operations. If an API call embeds asynchronous operation
1826 * be used directly after any stripping needed for security/privacy reasons. 1803 /// results in its response, the status of those operations should be
1827 */ 1804 /// represented directly using the `Status` message.
1805 ///
1806 /// - Logging. If some API errors are stored in logs, the message `Status`
1807 /// could
1808 /// be used directly after any stripping needed for security/privacy reasons.
1828 class Status { 1809 class Status {
1829 /** The status code, which should be an enum value of google.rpc.Code. */ 1810 /// The status code, which should be an enum value of google.rpc.Code.
1830 core.int code; 1811 core.int code;
1831 /** 1812
1832 * A list of messages that carry the error details. There is a common set of 1813 /// A list of messages that carry the error details. There is a common set
1833 * message types for APIs to use. 1814 /// of
1834 * 1815 /// message types for APIs to use.
1835 * The values for Object must be JSON objects. It can consist of `num`, 1816 ///
1836 * `String`, `bool` and `null` as well as `Map` and `List` values. 1817 /// The values for Object must be JSON objects. It can consist of `num`,
1837 */ 1818 /// `String`, `bool` and `null` as well as `Map` and `List` values.
1838 core.List<core.Map<core.String, core.Object>> details; 1819 core.List<core.Map<core.String, core.Object>> details;
1839 /** 1820
1840 * A developer-facing error message, which should be in English. Any 1821 /// A developer-facing error message, which should be in English. Any
1841 * user-facing error message should be localized and sent in the 1822 /// user-facing error message should be localized and sent in the
1842 * google.rpc.Status.details field, or localized by the client. 1823 /// google.rpc.Status.details field, or localized by the client.
1843 */
1844 core.String message; 1824 core.String message;
1845 1825
1846 Status(); 1826 Status();
1847 1827
1848 Status.fromJson(core.Map _json) { 1828 Status.fromJson(core.Map _json) {
1849 if (_json.containsKey("code")) { 1829 if (_json.containsKey("code")) {
1850 code = _json["code"]; 1830 code = _json["code"];
1851 } 1831 }
1852 if (_json.containsKey("details")) { 1832 if (_json.containsKey("details")) {
1853 details = _json["details"]; 1833 details = _json["details"];
1854 } 1834 }
1855 if (_json.containsKey("message")) { 1835 if (_json.containsKey("message")) {
1856 message = _json["message"]; 1836 message = _json["message"];
1857 } 1837 }
1858 } 1838 }
1859 1839
1860 core.Map<core.String, core.Object> toJson() { 1840 core.Map<core.String, core.Object> toJson() {
1861 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1841 final core.Map<core.String, core.Object> _json =
1842 new core.Map<core.String, core.Object>();
1862 if (code != null) { 1843 if (code != null) {
1863 _json["code"] = code; 1844 _json["code"] = code;
1864 } 1845 }
1865 if (details != null) { 1846 if (details != null) {
1866 _json["details"] = details; 1847 _json["details"] = details;
1867 } 1848 }
1868 if (message != null) { 1849 if (message != null) {
1869 _json["message"] = message; 1850 _json["message"] = message;
1870 } 1851 }
1871 return _json; 1852 return _json;
1872 } 1853 }
1873 } 1854 }
1874 1855
1875 /** Request message for `TestIamPermissions` method. */ 1856 /// Request message for `TestIamPermissions` method.
1876 class TestIamPermissionsRequest { 1857 class TestIamPermissionsRequest {
1877 /** 1858 /// The set of permissions to check for the `resource`. Permissions with
1878 * The set of permissions to check for the `resource`. Permissions with 1859 /// wildcards (such as '*' or 'storage.*') are not allowed. For more
1879 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1860 /// information see
1880 * information see 1861 /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1881 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1882 */
1883 core.List<core.String> permissions; 1862 core.List<core.String> permissions;
1884 1863
1885 TestIamPermissionsRequest(); 1864 TestIamPermissionsRequest();
1886 1865
1887 TestIamPermissionsRequest.fromJson(core.Map _json) { 1866 TestIamPermissionsRequest.fromJson(core.Map _json) {
1888 if (_json.containsKey("permissions")) { 1867 if (_json.containsKey("permissions")) {
1889 permissions = _json["permissions"]; 1868 permissions = _json["permissions"];
1890 } 1869 }
1891 } 1870 }
1892 1871
1893 core.Map<core.String, core.Object> toJson() { 1872 core.Map<core.String, core.Object> toJson() {
1894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1873 final core.Map<core.String, core.Object> _json =
1874 new core.Map<core.String, core.Object>();
1895 if (permissions != null) { 1875 if (permissions != null) {
1896 _json["permissions"] = permissions; 1876 _json["permissions"] = permissions;
1897 } 1877 }
1898 return _json; 1878 return _json;
1899 } 1879 }
1900 } 1880 }
1901 1881
1902 /** Response message for `TestIamPermissions` method. */ 1882 /// Response message for `TestIamPermissions` method.
1903 class TestIamPermissionsResponse { 1883 class TestIamPermissionsResponse {
1904 /** 1884 /// A subset of `TestPermissionsRequest.permissions` that the caller is
1905 * A subset of `TestPermissionsRequest.permissions` that the caller is 1885 /// allowed.
1906 * allowed.
1907 */
1908 core.List<core.String> permissions; 1886 core.List<core.String> permissions;
1909 1887
1910 TestIamPermissionsResponse(); 1888 TestIamPermissionsResponse();
1911 1889
1912 TestIamPermissionsResponse.fromJson(core.Map _json) { 1890 TestIamPermissionsResponse.fromJson(core.Map _json) {
1913 if (_json.containsKey("permissions")) { 1891 if (_json.containsKey("permissions")) {
1914 permissions = _json["permissions"]; 1892 permissions = _json["permissions"];
1915 } 1893 }
1916 } 1894 }
1917 1895
1918 core.Map<core.String, core.Object> toJson() { 1896 core.Map<core.String, core.Object> toJson() {
1919 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1897 final core.Map<core.String, core.Object> _json =
1898 new core.Map<core.String, core.Object>();
1920 if (permissions != null) { 1899 if (permissions != null) {
1921 _json["permissions"] = permissions; 1900 _json["permissions"] = permissions;
1922 } 1901 }
1923 return _json; 1902 return _json;
1924 } 1903 }
1925 } 1904 }
1926 1905
1927 /** 1906 /// Describes a single variable within a RuntimeConfig resource.
1928 * Describes a single variable within a RuntimeConfig resource. 1907 /// The name denotes the hierarchical variable name. For example,
1929 * The name denotes the hierarchical variable name. For example, 1908 /// `ports/serving_port` is a valid variable name. The variable value is an
1930 * `ports/serving_port` is a valid variable name. The variable value is an 1909 /// opaque string and only leaf variables can have values (that is, variables
1931 * opaque string and only leaf variables can have values (that is, variables 1910 /// that do not have any child variables).
1932 * that do not have any child variables).
1933 */
1934 class Variable { 1911 class Variable {
1935 /** 1912 /// The name of the variable resource, in the format:
1936 * The name of the variable resource, in the format: 1913 ///
1937 * 1914 /// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
1938 * projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME] 1915 ///
1939 * 1916 /// The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
1940 * The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a 1917 /// valid RuntimeConfig reource and `[VARIABLE_NAME]` follows Unix file
1941 * valid RuntimeConfig reource and `[VARIABLE_NAME]` follows Unix file system 1918 /// system
1942 * file path naming. 1919 /// file path naming.
1943 * 1920 ///
1944 * The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and 1921 /// The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
1945 * dashes. Slashes are used as path element separators and are not part of the 1922 /// dashes. Slashes are used as path element separators and are not part of
1946 * `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one 1923 /// the
1947 * non-slash character. Multiple slashes are coalesced into single slash 1924 /// `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
1948 * character. Each path segment should follow RFC 1035 segment specification. 1925 /// non-slash character. Multiple slashes are coalesced into single slash
1949 * The length of a `[VARIABLE_NAME]` must be less than 256 bytes. 1926 /// character. Each path segment should follow RFC 1035 segment
1950 * 1927 /// specification.
1951 * Once you create a variable, you cannot change the variable name. 1928 /// The length of a `[VARIABLE_NAME]` must be less than 256 bytes.
1952 */ 1929 ///
1930 /// Once you create a variable, you cannot change the variable name.
1953 core.String name; 1931 core.String name;
1954 /** 1932
1955 * [Ouput only] The current state of the variable. The variable state 1933 /// [Ouput only] The current state of the variable. The variable state
1956 * indicates 1934 /// indicates
1957 * the outcome of the `variables().watch` call and is visible through the 1935 /// the outcome of the `variables().watch` call and is visible through the
1958 * `get` and `list` calls. 1936 /// `get` and `list` calls.
1959 * Possible string values are: 1937 /// Possible string values are:
1960 * - "VARIABLE_STATE_UNSPECIFIED" : Default variable state. 1938 /// - "VARIABLE_STATE_UNSPECIFIED" : Default variable state.
1961 * - "UPDATED" : The variable was updated, while `variables().watch` was 1939 /// - "UPDATED" : The variable was updated, while `variables().watch` was
1962 * executing. 1940 /// executing.
1963 * - "DELETED" : The variable was deleted, while `variables().watch` was 1941 /// - "DELETED" : The variable was deleted, while `variables().watch` was
1964 * executing. 1942 /// executing.
1965 */
1966 core.String state; 1943 core.String state;
1967 /** 1944
1968 * The string value of the variable. The length of the value must be less 1945 /// The string value of the variable. The length of the value must be less
1969 * than 4096 bytes. Empty values are also accepted. For example, 1946 /// than 4096 bytes. Empty values are also accepted. For example,
1970 * `text: "my text value"`. The string must be valid UTF-8. 1947 /// `text: "my text value"`. The string must be valid UTF-8.
1971 */
1972 core.String text; 1948 core.String text;
1973 /** [Output Only] The time of the last variable update. */ 1949
1950 /// [Output Only] The time of the last variable update.
1974 core.String updateTime; 1951 core.String updateTime;
1975 /** 1952
1976 * The binary value of the variable. The length of the value must be less 1953 /// The binary value of the variable. The length of the value must be less
1977 * than 4096 bytes. Empty values are also accepted. The value must be 1954 /// than 4096 bytes. Empty values are also accepted. The value must be
1978 * base64 encoded. Only one of `value` or `text` can be set. 1955 /// base64 encoded. Only one of `value` or `text` can be set.
1979 */
1980 core.String value; 1956 core.String value;
1981 core.List<core.int> get valueAsBytes { 1957 core.List<core.int> get valueAsBytes {
1982 return convert.BASE64.decode(value); 1958 return convert.BASE64.decode(value);
1983 } 1959 }
1984 1960
1985 void set valueAsBytes(core.List<core.int> _bytes) { 1961 void set valueAsBytes(core.List<core.int> _bytes) {
1986 value = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", " -"); 1962 value =
1963 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1987 } 1964 }
1988 1965
1989 Variable(); 1966 Variable();
1990 1967
1991 Variable.fromJson(core.Map _json) { 1968 Variable.fromJson(core.Map _json) {
1992 if (_json.containsKey("name")) { 1969 if (_json.containsKey("name")) {
1993 name = _json["name"]; 1970 name = _json["name"];
1994 } 1971 }
1995 if (_json.containsKey("state")) { 1972 if (_json.containsKey("state")) {
1996 state = _json["state"]; 1973 state = _json["state"];
1997 } 1974 }
1998 if (_json.containsKey("text")) { 1975 if (_json.containsKey("text")) {
1999 text = _json["text"]; 1976 text = _json["text"];
2000 } 1977 }
2001 if (_json.containsKey("updateTime")) { 1978 if (_json.containsKey("updateTime")) {
2002 updateTime = _json["updateTime"]; 1979 updateTime = _json["updateTime"];
2003 } 1980 }
2004 if (_json.containsKey("value")) { 1981 if (_json.containsKey("value")) {
2005 value = _json["value"]; 1982 value = _json["value"];
2006 } 1983 }
2007 } 1984 }
2008 1985
2009 core.Map<core.String, core.Object> toJson() { 1986 core.Map<core.String, core.Object> toJson() {
2010 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1987 final core.Map<core.String, core.Object> _json =
1988 new core.Map<core.String, core.Object>();
2011 if (name != null) { 1989 if (name != null) {
2012 _json["name"] = name; 1990 _json["name"] = name;
2013 } 1991 }
2014 if (state != null) { 1992 if (state != null) {
2015 _json["state"] = state; 1993 _json["state"] = state;
2016 } 1994 }
2017 if (text != null) { 1995 if (text != null) {
2018 _json["text"] = text; 1996 _json["text"] = text;
2019 } 1997 }
2020 if (updateTime != null) { 1998 if (updateTime != null) {
2021 _json["updateTime"] = updateTime; 1999 _json["updateTime"] = updateTime;
2022 } 2000 }
2023 if (value != null) { 2001 if (value != null) {
2024 _json["value"] = value; 2002 _json["value"] = value;
2025 } 2003 }
2026 return _json; 2004 return _json;
2027 } 2005 }
2028 } 2006 }
2029 2007
2030 /** 2008 /// A Waiter resource waits for some end condition within a RuntimeConfig
2031 * A Waiter resource waits for some end condition within a RuntimeConfig 2009 /// resource
2032 * resource 2010 /// to be met before it returns. For example, assume you have a distributed
2033 * to be met before it returns. For example, assume you have a distributed 2011 /// system where each node writes to a Variable resource indidicating the
2034 * system where each node writes to a Variable resource indidicating the node's 2012 /// node's
2035 * readiness as part of the startup process. 2013 /// readiness as part of the startup process.
2036 * 2014 ///
2037 * You then configure a Waiter resource with the success condition set to wait 2015 /// You then configure a Waiter resource with the success condition set to wait
2038 * until some number of nodes have checked in. Afterwards, your application 2016 /// until some number of nodes have checked in. Afterwards, your application
2039 * runs some arbitrary code after the condition has been met and the waiter 2017 /// runs some arbitrary code after the condition has been met and the waiter
2040 * returns successfully. 2018 /// returns successfully.
2041 * 2019 ///
2042 * Once created, a Waiter resource is immutable. 2020 /// Once created, a Waiter resource is immutable.
2043 * 2021 ///
2044 * To learn more about using waiters, read the 2022 /// To learn more about using waiters, read the
2045 * [Creating a 2023 /// [Creating a
2046 * Waiter](/deployment-manager/runtime-configurator/creating-a-waiter) 2024 /// Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
2047 * documentation. 2025 /// documentation.
2048 */
2049 class Waiter { 2026 class Waiter {
2050 /** 2027 /// [Output Only] The instant at which this Waiter resource was created.
2051 * [Output Only] The instant at which this Waiter resource was created. Adding 2028 /// Adding
2052 * the value of `timeout` to this instant yields the timeout deadline for the 2029 /// the value of `timeout` to this instant yields the timeout deadline for
2053 * waiter. 2030 /// the
2054 */ 2031 /// waiter.
2055 core.String createTime; 2032 core.String createTime;
2056 /** 2033
2057 * [Output Only] If the value is `false`, it means the waiter is still waiting 2034 /// [Output Only] If the value is `false`, it means the waiter is still
2058 * for one of its conditions to be met. 2035 /// waiting
2059 * 2036 /// for one of its conditions to be met.
2060 * If true, the waiter has finished. If the waiter finished due to a timeout 2037 ///
2061 * or failure, `error` will be set. 2038 /// If true, the waiter has finished. If the waiter finished due to a timeout
2062 */ 2039 /// or failure, `error` will be set.
2063 core.bool done; 2040 core.bool done;
2064 /** 2041
2065 * [Output Only] If the waiter ended due to a failure or timeout, this value 2042 /// [Output Only] If the waiter ended due to a failure or timeout, this value
2066 * will be set. 2043 /// will be set.
2067 */
2068 Status error; 2044 Status error;
2069 /** 2045
2070 * [Optional] The failure condition of this waiter. If this condition is met, 2046 /// [Optional] The failure condition of this waiter. If this condition is
2071 * `done` will be set to `true` and the `error` code will be set to `ABORTED`. 2047 /// met,
2072 * The failure condition takes precedence over the success condition. If both 2048 /// `done` will be set to `true` and the `error` code will be set to
2073 * conditions are met, a failure will be indicated. This value is optional; if 2049 /// `ABORTED`.
2074 * no failure condition is set, the only failure scenario will be a timeout. 2050 /// The failure condition takes precedence over the success condition. If
2075 */ 2051 /// both
2052 /// conditions are met, a failure will be indicated. This value is optional;
2053 /// if
2054 /// no failure condition is set, the only failure scenario will be a timeout.
2076 EndCondition failure; 2055 EndCondition failure;
2077 /** 2056
2078 * The name of the Waiter resource, in the format: 2057 /// The name of the Waiter resource, in the format:
2079 * 2058 ///
2080 * projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] 2059 /// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]
2081 * 2060 ///
2082 * The `[PROJECT_ID]` must be a valid Google Cloud project ID, 2061 /// The `[PROJECT_ID]` must be a valid Google Cloud project ID,
2083 * the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the 2062 /// the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the
2084 * `[WAITER_NAME]` must match RFC 1035 segment specification, and the length 2063 /// `[WAITER_NAME]` must match RFC 1035 segment specification, and the length
2085 * of `[WAITER_NAME]` must be less than 64 bytes. 2064 /// of `[WAITER_NAME]` must be less than 64 bytes.
2086 * 2065 ///
2087 * After you create a Waiter resource, you cannot change the resource name. 2066 /// After you create a Waiter resource, you cannot change the resource name.
2088 */
2089 core.String name; 2067 core.String name;
2090 /** 2068
2091 * [Required] The success condition. If this condition is met, `done` will be 2069 /// [Required] The success condition. If this condition is met, `done` will
2092 * set to `true` and the `error` value will remain unset. The failure 2070 /// be
2093 * condition 2071 /// set to `true` and the `error` value will remain unset. The failure
2094 * takes precedence over the success condition. If both conditions are met, a 2072 /// condition
2095 * failure will be indicated. 2073 /// takes precedence over the success condition. If both conditions are met,
2096 */ 2074 /// a
2075 /// failure will be indicated.
2097 EndCondition success; 2076 EndCondition success;
2098 /** 2077
2099 * [Required] Specifies the timeout of the waiter in seconds, beginning from 2078 /// [Required] Specifies the timeout of the waiter in seconds, beginning from
2100 * the instant that `waiters().create` method is called. If this time elapses 2079 /// the instant that `waiters().create` method is called. If this time
2101 * before the success or failure conditions are met, the waiter fails and sets 2080 /// elapses
2102 * the `error` code to `DEADLINE_EXCEEDED`. 2081 /// before the success or failure conditions are met, the waiter fails and
2103 */ 2082 /// sets
2083 /// the `error` code to `DEADLINE_EXCEEDED`.
2104 core.String timeout; 2084 core.String timeout;
2105 2085
2106 Waiter(); 2086 Waiter();
2107 2087
2108 Waiter.fromJson(core.Map _json) { 2088 Waiter.fromJson(core.Map _json) {
2109 if (_json.containsKey("createTime")) { 2089 if (_json.containsKey("createTime")) {
2110 createTime = _json["createTime"]; 2090 createTime = _json["createTime"];
2111 } 2091 }
2112 if (_json.containsKey("done")) { 2092 if (_json.containsKey("done")) {
2113 done = _json["done"]; 2093 done = _json["done"];
2114 } 2094 }
2115 if (_json.containsKey("error")) { 2095 if (_json.containsKey("error")) {
2116 error = new Status.fromJson(_json["error"]); 2096 error = new Status.fromJson(_json["error"]);
2117 } 2097 }
2118 if (_json.containsKey("failure")) { 2098 if (_json.containsKey("failure")) {
2119 failure = new EndCondition.fromJson(_json["failure"]); 2099 failure = new EndCondition.fromJson(_json["failure"]);
2120 } 2100 }
2121 if (_json.containsKey("name")) { 2101 if (_json.containsKey("name")) {
2122 name = _json["name"]; 2102 name = _json["name"];
2123 } 2103 }
2124 if (_json.containsKey("success")) { 2104 if (_json.containsKey("success")) {
2125 success = new EndCondition.fromJson(_json["success"]); 2105 success = new EndCondition.fromJson(_json["success"]);
2126 } 2106 }
2127 if (_json.containsKey("timeout")) { 2107 if (_json.containsKey("timeout")) {
2128 timeout = _json["timeout"]; 2108 timeout = _json["timeout"];
2129 } 2109 }
2130 } 2110 }
2131 2111
2132 core.Map<core.String, core.Object> toJson() { 2112 core.Map<core.String, core.Object> toJson() {
2133 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2113 final core.Map<core.String, core.Object> _json =
2114 new core.Map<core.String, core.Object>();
2134 if (createTime != null) { 2115 if (createTime != null) {
2135 _json["createTime"] = createTime; 2116 _json["createTime"] = createTime;
2136 } 2117 }
2137 if (done != null) { 2118 if (done != null) {
2138 _json["done"] = done; 2119 _json["done"] = done;
2139 } 2120 }
2140 if (error != null) { 2121 if (error != null) {
2141 _json["error"] = (error).toJson(); 2122 _json["error"] = (error).toJson();
2142 } 2123 }
2143 if (failure != null) { 2124 if (failure != null) {
2144 _json["failure"] = (failure).toJson(); 2125 _json["failure"] = (failure).toJson();
2145 } 2126 }
2146 if (name != null) { 2127 if (name != null) {
2147 _json["name"] = name; 2128 _json["name"] = name;
2148 } 2129 }
2149 if (success != null) { 2130 if (success != null) {
2150 _json["success"] = (success).toJson(); 2131 _json["success"] = (success).toJson();
2151 } 2132 }
2152 if (timeout != null) { 2133 if (timeout != null) {
2153 _json["timeout"] = timeout; 2134 _json["timeout"] = timeout;
2154 } 2135 }
2155 return _json; 2136 return _json;
2156 } 2137 }
2157 } 2138 }
2158 2139
2159 /** Request for the `WatchVariable()` method. */ 2140 /// Request for the `WatchVariable()` method.
2160 class WatchVariableRequest { 2141 class WatchVariableRequest {
2161 /** 2142 /// If specified, checks the current timestamp of the variable and if the
2162 * If specified, checks the current timestamp of the variable and if the 2143 /// current timestamp is newer than `newerThan` timestamp, the method returns
2163 * current timestamp is newer than `newerThan` timestamp, the method returns 2144 /// immediately.
2164 * immediately. 2145 ///
2165 * 2146 /// If not specified or the variable has an older timestamp, the watcher
2166 * If not specified or the variable has an older timestamp, the watcher waits 2147 /// waits
2167 * for a the value to change before returning. 2148 /// for a the value to change before returning.
2168 */
2169 core.String newerThan; 2149 core.String newerThan;
2170 2150
2171 WatchVariableRequest(); 2151 WatchVariableRequest();
2172 2152
2173 WatchVariableRequest.fromJson(core.Map _json) { 2153 WatchVariableRequest.fromJson(core.Map _json) {
2174 if (_json.containsKey("newerThan")) { 2154 if (_json.containsKey("newerThan")) {
2175 newerThan = _json["newerThan"]; 2155 newerThan = _json["newerThan"];
2176 } 2156 }
2177 } 2157 }
2178 2158
2179 core.Map<core.String, core.Object> toJson() { 2159 core.Map<core.String, core.Object> toJson() {
2180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2160 final core.Map<core.String, core.Object> _json =
2161 new core.Map<core.String, core.Object>();
2181 if (newerThan != null) { 2162 if (newerThan != null) {
2182 _json["newerThan"] = newerThan; 2163 _json["newerThan"] = newerThan;
2183 } 2164 }
2184 return _json; 2165 return _json;
2185 } 2166 }
2186 } 2167 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/resourceviews/v1beta2.dart ('k') | generated/googleapis_beta/lib/speech/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698