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

Side by Side Diff: generated/googleapis_beta/lib/pubsub/v1beta2.dart

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 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.pubsub.v1beta2; 3 library googleapis_beta.pubsub.v1beta2;
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;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 class ProjectsSubscriptionsResourceApi { 48 class ProjectsSubscriptionsResourceApi {
49 final commons.ApiRequester _requester; 49 final commons.ApiRequester _requester;
50 50
51 ProjectsSubscriptionsResourceApi(commons.ApiRequester client) : 51 ProjectsSubscriptionsResourceApi(commons.ApiRequester client) :
52 _requester = client; 52 _requester = client;
53 53
54 /** 54 /**
55 * Acknowledges the messages associated with the `ack_ids` in the 55 * Acknowledges the messages associated with the `ack_ids` in the
56 * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages 56 * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
57 * from the subscription. Acknowledging a message whose ack deadline has 57 * from the subscription.
58 * expired may succeed, but such a message may be redelivered later. 58 *
59 * Acknowledging a message more than once will not result in an error. 59 * Acknowledging a message whose ack deadline has expired may succeed,
60 * but such a message may be redelivered later. Acknowledging a message more
61 * than once will not result in an error.
60 * 62 *
61 * [request] - The metadata request object. 63 * [request] - The metadata request object.
62 * 64 *
63 * Request parameters: 65 * Request parameters:
64 * 66 *
65 * [subscription] - The subscription whose message is being acknowledged. 67 * [subscription] - The subscription whose message is being acknowledged.
66 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 68 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
67 * 69 *
68 * Completes with a [Empty]. 70 * Completes with a [Empty].
69 * 71 *
70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 72 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
71 * error. 73 * error.
72 * 74 *
73 * If the used [http.Client] completes with an error when making a REST call, 75 * If the used [http.Client] completes with an error when making a REST call,
74 * this method will complete with the same error. 76 * this method will complete with the same error.
75 */ 77 */
76 async.Future<Empty> acknowledge(AcknowledgeRequest request, core.String subscr iption) { 78 async.Future<Empty> acknowledge(AcknowledgeRequest request, core.String subscr iption) {
(...skipping 17 matching lines...) Expand all
94 "POST", 96 "POST",
95 body: _body, 97 body: _body,
96 queryParams: _queryParams, 98 queryParams: _queryParams,
97 uploadOptions: _uploadOptions, 99 uploadOptions: _uploadOptions,
98 uploadMedia: _uploadMedia, 100 uploadMedia: _uploadMedia,
99 downloadOptions: _downloadOptions); 101 downloadOptions: _downloadOptions);
100 return _response.then((data) => new Empty.fromJson(data)); 102 return _response.then((data) => new Empty.fromJson(data));
101 } 103 }
102 104
103 /** 105 /**
104 * Creates a subscription to a given topic. If the subscription already 106 * Creates a subscription to a given topic.
105 * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, 107 * If the subscription already exists, returns `ALREADY_EXISTS`.
106 * returns `NOT_FOUND`. If the name is not provided in the request, the server 108 * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
107 * will assign a random name for this subscription on the same project as the 109 *
108 * topic. Note that for REST API requests, you must specify a name. 110 * If the name is not provided in the request, the server will assign a random
111 * name for this subscription on the same project as the topic. Note that
112 * for REST API requests, you must specify a name.
109 * 113 *
110 * [request] - The metadata request object. 114 * [request] - The metadata request object.
111 * 115 *
112 * Request parameters: 116 * Request parameters:
113 * 117 *
114 * [name] - The name of the subscription. It must have the format 118 * [name] - The name of the subscription. It must have the format
115 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must 119 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
116 * start with a letter, and contain only letters (`[A-Za-z]`), numbers 120 * start with a letter, and contain only letters (`[A-Za-z]`), numbers
117 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), 121 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
118 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters 122 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
119 * in length, and it must not start with `"goog"`. 123 * in length, and it must not start with `"goog"`.
120 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 124 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
121 * 125 *
122 * Completes with a [Subscription]. 126 * Completes with a [Subscription].
123 * 127 *
124 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
125 * error. 129 * error.
126 * 130 *
127 * If the used [http.Client] completes with an error when making a REST call, 131 * If the used [http.Client] completes with an error when making a REST call,
128 * this method will complete with the same error. 132 * this method will complete with the same error.
129 */ 133 */
130 async.Future<Subscription> create(Subscription request, core.String name) { 134 async.Future<Subscription> create(Subscription request, core.String name) {
(...skipping 26 matching lines...) Expand all
157 /** 161 /**
158 * Deletes an existing subscription. All pending messages in the subscription 162 * Deletes an existing subscription. All pending messages in the subscription
159 * are immediately dropped. Calls to `Pull` after deletion will return 163 * are immediately dropped. Calls to `Pull` after deletion will return
160 * `NOT_FOUND`. After a subscription is deleted, a new one may be created with 164 * `NOT_FOUND`. After a subscription is deleted, a new one may be created with
161 * the same name, but the new one has no association with the old 165 * the same name, but the new one has no association with the old
162 * subscription, or its topic unless the same topic is specified. 166 * subscription, or its topic unless the same topic is specified.
163 * 167 *
164 * Request parameters: 168 * Request parameters:
165 * 169 *
166 * [subscription] - The subscription to delete. 170 * [subscription] - The subscription to delete.
167 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 171 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
168 * 172 *
169 * Completes with a [Empty]. 173 * Completes with a [Empty].
170 * 174 *
171 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
172 * error. 176 * error.
173 * 177 *
174 * If the used [http.Client] completes with an error when making a REST call, 178 * If the used [http.Client] completes with an error when making a REST call,
175 * this method will complete with the same error. 179 * this method will complete with the same error.
176 */ 180 */
177 async.Future<Empty> delete(core.String subscription) { 181 async.Future<Empty> delete(core.String subscription) {
(...skipping 19 matching lines...) Expand all
197 downloadOptions: _downloadOptions); 201 downloadOptions: _downloadOptions);
198 return _response.then((data) => new Empty.fromJson(data)); 202 return _response.then((data) => new Empty.fromJson(data));
199 } 203 }
200 204
201 /** 205 /**
202 * Gets the configuration details of a subscription. 206 * Gets the configuration details of a subscription.
203 * 207 *
204 * Request parameters: 208 * Request parameters:
205 * 209 *
206 * [subscription] - The name of the subscription to get. 210 * [subscription] - The name of the subscription to get.
207 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 211 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
208 * 212 *
209 * Completes with a [Subscription]. 213 * Completes with a [Subscription].
210 * 214 *
211 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 215 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
212 * error. 216 * error.
213 * 217 *
214 * If the used [http.Client] completes with an error when making a REST call, 218 * If the used [http.Client] completes with an error when making a REST call,
215 * this method will complete with the same error. 219 * this method will complete with the same error.
216 */ 220 */
217 async.Future<Subscription> get(core.String subscription) { 221 async.Future<Subscription> get(core.String subscription) {
(...skipping 14 matching lines...) Expand all
232 "GET", 236 "GET",
233 body: _body, 237 body: _body,
234 queryParams: _queryParams, 238 queryParams: _queryParams,
235 uploadOptions: _uploadOptions, 239 uploadOptions: _uploadOptions,
236 uploadMedia: _uploadMedia, 240 uploadMedia: _uploadMedia,
237 downloadOptions: _downloadOptions); 241 downloadOptions: _downloadOptions);
238 return _response.then((data) => new Subscription.fromJson(data)); 242 return _response.then((data) => new Subscription.fromJson(data));
239 } 243 }
240 244
241 /** 245 /**
242 * Gets the access control policy for a resource. Returns an empty policy if 246 * Gets the access control policy for a resource.
243 * the resource exists and does not have a policy set. 247 * Returns an empty policy if the resource exists and does not have a policy
248 * set.
244 * 249 *
245 * Request parameters: 250 * Request parameters:
246 * 251 *
247 * [resource] - REQUIRED: The resource for which the policy is being 252 * [resource] - REQUIRED: The resource for which the policy is being
248 * requested. `resource` is usually specified as a path. For example, a 253 * requested.
249 * Project resource is specified as `projects/{project}`. 254 * `resource` is usually specified as a path. For example, a Project
250 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 255 * resource is specified as `projects/{project}`.
256 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
251 * 257 *
252 * Completes with a [Policy]. 258 * Completes with a [Policy].
253 * 259 *
254 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 260 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
255 * error. 261 * error.
256 * 262 *
257 * If the used [http.Client] completes with an error when making a REST call, 263 * If the used [http.Client] completes with an error when making a REST call,
258 * this method will complete with the same error. 264 * this method will complete with the same error.
259 */ 265 */
260 async.Future<Policy> getIamPolicy(core.String resource) { 266 async.Future<Policy> getIamPolicy(core.String resource) {
(...skipping 19 matching lines...) Expand all
280 downloadOptions: _downloadOptions); 286 downloadOptions: _downloadOptions);
281 return _response.then((data) => new Policy.fromJson(data)); 287 return _response.then((data) => new Policy.fromJson(data));
282 } 288 }
283 289
284 /** 290 /**
285 * Lists matching subscriptions. 291 * Lists matching subscriptions.
286 * 292 *
287 * Request parameters: 293 * Request parameters:
288 * 294 *
289 * [project] - The name of the cloud project that subscriptions belong to. 295 * [project] - The name of the cloud project that subscriptions belong to.
290 * Value must have pattern "^projects/[^/]*$". 296 * Value must have pattern "^projects/[^/]+$".
291 * 297 *
292 * [pageSize] - Maximum number of subscriptions to return. 298 * [pageSize] - Maximum number of subscriptions to return.
293 * 299 *
294 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`; 300 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`;
295 * indicates that this is a continuation of a prior `ListSubscriptions` call, 301 * indicates that
296 * and that the system should return the next page of data. 302 * this is a continuation of a prior `ListSubscriptions` call, and that the
303 * system should return the next page of data.
297 * 304 *
298 * Completes with a [ListSubscriptionsResponse]. 305 * Completes with a [ListSubscriptionsResponse].
299 * 306 *
300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
301 * error. 308 * error.
302 * 309 *
303 * If the used [http.Client] completes with an error when making a REST call, 310 * If the used [http.Client] completes with an error when making a REST call,
304 * this method will complete with the same error. 311 * this method will complete with the same error.
305 */ 312 */
306 async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pa geSize, core.String pageToken}) { 313 async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pa geSize, core.String pageToken}) {
(...skipping 20 matching lines...) Expand all
327 "GET", 334 "GET",
328 body: _body, 335 body: _body,
329 queryParams: _queryParams, 336 queryParams: _queryParams,
330 uploadOptions: _uploadOptions, 337 uploadOptions: _uploadOptions,
331 uploadMedia: _uploadMedia, 338 uploadMedia: _uploadMedia,
332 downloadOptions: _downloadOptions); 339 downloadOptions: _downloadOptions);
333 return _response.then((data) => new ListSubscriptionsResponse.fromJson(data) ); 340 return _response.then((data) => new ListSubscriptionsResponse.fromJson(data) );
334 } 341 }
335 342
336 /** 343 /**
337 * Modifies the ack deadline for a specific message. This method is useful to 344 * Modifies the ack deadline for a specific message. This method is useful
338 * indicate that more time is needed to process a message by the subscriber, 345 * to indicate that more time is needed to process a message by the
339 * or to make the message available for redelivery if the processing was 346 * subscriber, or to make the message available for redelivery if the
340 * interrupted. Note that this does not modify the subscription-level 347 * processing was interrupted. Note that this does not modify the
341 * `ackDeadlineSeconds` used for subsequent messages. 348 * subscription-level `ackDeadlineSeconds` used for subsequent messages.
342 * 349 *
343 * [request] - The metadata request object. 350 * [request] - The metadata request object.
344 * 351 *
345 * Request parameters: 352 * Request parameters:
346 * 353 *
347 * [subscription] - The name of the subscription. 354 * [subscription] - The name of the subscription.
348 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 355 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
349 * 356 *
350 * Completes with a [Empty]. 357 * Completes with a [Empty].
351 * 358 *
352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 359 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
353 * error. 360 * error.
354 * 361 *
355 * If the used [http.Client] completes with an error when making a REST call, 362 * If the used [http.Client] completes with an error when making a REST call,
356 * this method will complete with the same error. 363 * this method will complete with the same error.
357 */ 364 */
358 async.Future<Empty> modifyAckDeadline(ModifyAckDeadlineRequest request, core.S tring subscription) { 365 async.Future<Empty> modifyAckDeadline(ModifyAckDeadlineRequest request, core.S tring subscription) {
(...skipping 17 matching lines...) Expand all
376 "POST", 383 "POST",
377 body: _body, 384 body: _body,
378 queryParams: _queryParams, 385 queryParams: _queryParams,
379 uploadOptions: _uploadOptions, 386 uploadOptions: _uploadOptions,
380 uploadMedia: _uploadMedia, 387 uploadMedia: _uploadMedia,
381 downloadOptions: _downloadOptions); 388 downloadOptions: _downloadOptions);
382 return _response.then((data) => new Empty.fromJson(data)); 389 return _response.then((data) => new Empty.fromJson(data));
383 } 390 }
384 391
385 /** 392 /**
386 * Modifies the `PushConfig` for a specified subscription. This may be used to 393 * Modifies the `PushConfig` for a specified subscription.
387 * change a push subscription to a pull one (signified by an empty 394 *
388 * `PushConfig`) or vice versa, or change the endpoint URL and other 395 * This may be used to change a push subscription to a pull one (signified by
396 * an empty `PushConfig`) or vice versa, or change the endpoint URL and other
389 * attributes of a push subscription. Messages will accumulate for delivery 397 * attributes of a push subscription. Messages will accumulate for delivery
390 * continuously through the call regardless of changes to the `PushConfig`. 398 * continuously through the call regardless of changes to the `PushConfig`.
391 * 399 *
392 * [request] - The metadata request object. 400 * [request] - The metadata request object.
393 * 401 *
394 * Request parameters: 402 * Request parameters:
395 * 403 *
396 * [subscription] - The name of the subscription. 404 * [subscription] - The name of the subscription.
397 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 405 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
398 * 406 *
399 * Completes with a [Empty]. 407 * Completes with a [Empty].
400 * 408 *
401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
402 * error. 410 * error.
403 * 411 *
404 * If the used [http.Client] completes with an error when making a REST call, 412 * If the used [http.Client] completes with an error when making a REST call,
405 * this method will complete with the same error. 413 * this method will complete with the same error.
406 */ 414 */
407 async.Future<Empty> modifyPushConfig(ModifyPushConfigRequest request, core.Str ing subscription) { 415 async.Future<Empty> modifyPushConfig(ModifyPushConfigRequest request, core.Str ing subscription) {
(...skipping 27 matching lines...) Expand all
435 * Pulls messages from the server. Returns an empty list if there are no 443 * Pulls messages from the server. Returns an empty list if there are no
436 * messages available in the backlog. The server may return `UNAVAILABLE` if 444 * messages available in the backlog. The server may return `UNAVAILABLE` if
437 * there are too many concurrent pull requests pending for the given 445 * there are too many concurrent pull requests pending for the given
438 * subscription. 446 * subscription.
439 * 447 *
440 * [request] - The metadata request object. 448 * [request] - The metadata request object.
441 * 449 *
442 * Request parameters: 450 * Request parameters:
443 * 451 *
444 * [subscription] - The subscription from which messages should be pulled. 452 * [subscription] - The subscription from which messages should be pulled.
445 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 453 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
446 * 454 *
447 * Completes with a [PullResponse]. 455 * Completes with a [PullResponse].
448 * 456 *
449 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 457 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
450 * error. 458 * error.
451 * 459 *
452 * If the used [http.Client] completes with an error when making a REST call, 460 * If the used [http.Client] completes with an error when making a REST call,
453 * this method will complete with the same error. 461 * this method will complete with the same error.
454 */ 462 */
455 async.Future<PullResponse> pull(PullRequest request, core.String subscription) { 463 async.Future<PullResponse> pull(PullRequest request, core.String subscription) {
(...skipping 25 matching lines...) Expand all
481 489
482 /** 490 /**
483 * Sets the access control policy on the specified resource. Replaces any 491 * Sets the access control policy on the specified resource. Replaces any
484 * existing policy. 492 * existing policy.
485 * 493 *
486 * [request] - The metadata request object. 494 * [request] - The metadata request object.
487 * 495 *
488 * Request parameters: 496 * Request parameters:
489 * 497 *
490 * [resource] - REQUIRED: The resource for which the policy is being 498 * [resource] - REQUIRED: The resource for which the policy is being
491 * specified. `resource` is usually specified as a path. For example, a 499 * specified.
492 * Project resource is specified as `projects/{project}`. 500 * `resource` is usually specified as a path. For example, a Project
493 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 501 * resource is specified as `projects/{project}`.
502 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
494 * 503 *
495 * Completes with a [Policy]. 504 * Completes with a [Policy].
496 * 505 *
497 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 506 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
498 * error. 507 * error.
499 * 508 *
500 * If the used [http.Client] completes with an error when making a REST call, 509 * If the used [http.Client] completes with an error when making a REST call,
501 * this method will complete with the same error. 510 * this method will complete with the same error.
502 */ 511 */
503 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) { 512 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
(...skipping 18 matching lines...) Expand all
522 body: _body, 531 body: _body,
523 queryParams: _queryParams, 532 queryParams: _queryParams,
524 uploadOptions: _uploadOptions, 533 uploadOptions: _uploadOptions,
525 uploadMedia: _uploadMedia, 534 uploadMedia: _uploadMedia,
526 downloadOptions: _downloadOptions); 535 downloadOptions: _downloadOptions);
527 return _response.then((data) => new Policy.fromJson(data)); 536 return _response.then((data) => new Policy.fromJson(data));
528 } 537 }
529 538
530 /** 539 /**
531 * Returns permissions that a caller has on the specified resource. 540 * Returns permissions that a caller has on the specified resource.
541 * If the resource does not exist, this will return an empty set of
542 * permissions, not a NOT_FOUND error.
532 * 543 *
533 * [request] - The metadata request object. 544 * [request] - The metadata request object.
534 * 545 *
535 * Request parameters: 546 * Request parameters:
536 * 547 *
537 * [resource] - REQUIRED: The resource for which the policy detail is being 548 * [resource] - REQUIRED: The resource for which the policy detail is being
538 * requested. `resource` is usually specified as a path. For example, a 549 * requested.
539 * Project resource is specified as `projects/{project}`. 550 * `resource` is usually specified as a path. For example, a Project
540 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 551 * resource is specified as `projects/{project}`.
552 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$".
541 * 553 *
542 * Completes with a [TestIamPermissionsResponse]. 554 * Completes with a [TestIamPermissionsResponse].
543 * 555 *
544 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
545 * error. 557 * error.
546 * 558 *
547 * If the used [http.Client] completes with an error when making a REST call, 559 * If the used [http.Client] completes with an error when making a REST call,
548 * this method will complete with the same error. 560 * this method will complete with the same error.
549 */ 561 */
550 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 562 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 /** 600 /**
589 * Creates the given topic with the given name. 601 * Creates the given topic with the given name.
590 * 602 *
591 * [request] - The metadata request object. 603 * [request] - The metadata request object.
592 * 604 *
593 * Request parameters: 605 * Request parameters:
594 * 606 *
595 * [name] - The name of the topic. It must have the format 607 * [name] - The name of the topic. It must have the format
596 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, 608 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
597 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), 609 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
598 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs 610 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
599 * (`%`). It must be between 3 and 255 characters in length, and it must not 611 * signs (`%`). It must be between 3 and 255 characters in length, and it
600 * start with `"goog"`. 612 * must not start with `"goog"`.
601 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 613 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
602 * 614 *
603 * Completes with a [Topic]. 615 * Completes with a [Topic].
604 * 616 *
605 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 617 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
606 * error. 618 * error.
607 * 619 *
608 * If the used [http.Client] completes with an error when making a REST call, 620 * If the used [http.Client] completes with an error when making a REST call,
609 * this method will complete with the same error. 621 * this method will complete with the same error.
610 */ 622 */
611 async.Future<Topic> create(Topic request, core.String name) { 623 async.Future<Topic> create(Topic request, core.String name) {
(...skipping 26 matching lines...) Expand all
638 /** 650 /**
639 * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic 651 * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
640 * does not exist. After a topic is deleted, a new topic may be created with 652 * does not exist. After a topic is deleted, a new topic may be created with
641 * the same name; this is an entirely new topic with none of the old 653 * the same name; this is an entirely new topic with none of the old
642 * configuration or subscriptions. Existing subscriptions to this topic are 654 * configuration or subscriptions. Existing subscriptions to this topic are
643 * not deleted, but their `topic` field is set to `_deleted-topic_`. 655 * not deleted, but their `topic` field is set to `_deleted-topic_`.
644 * 656 *
645 * Request parameters: 657 * Request parameters:
646 * 658 *
647 * [topic] - Name of the topic to delete. 659 * [topic] - Name of the topic to delete.
648 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 660 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
649 * 661 *
650 * Completes with a [Empty]. 662 * Completes with a [Empty].
651 * 663 *
652 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
653 * error. 665 * error.
654 * 666 *
655 * If the used [http.Client] completes with an error when making a REST call, 667 * If the used [http.Client] completes with an error when making a REST call,
656 * this method will complete with the same error. 668 * this method will complete with the same error.
657 */ 669 */
658 async.Future<Empty> delete(core.String topic) { 670 async.Future<Empty> delete(core.String topic) {
(...skipping 19 matching lines...) Expand all
678 downloadOptions: _downloadOptions); 690 downloadOptions: _downloadOptions);
679 return _response.then((data) => new Empty.fromJson(data)); 691 return _response.then((data) => new Empty.fromJson(data));
680 } 692 }
681 693
682 /** 694 /**
683 * Gets the configuration of a topic. 695 * Gets the configuration of a topic.
684 * 696 *
685 * Request parameters: 697 * Request parameters:
686 * 698 *
687 * [topic] - The name of the topic to get. 699 * [topic] - The name of the topic to get.
688 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 700 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
689 * 701 *
690 * Completes with a [Topic]. 702 * Completes with a [Topic].
691 * 703 *
692 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 704 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
693 * error. 705 * error.
694 * 706 *
695 * If the used [http.Client] completes with an error when making a REST call, 707 * If the used [http.Client] completes with an error when making a REST call,
696 * this method will complete with the same error. 708 * this method will complete with the same error.
697 */ 709 */
698 async.Future<Topic> get(core.String topic) { 710 async.Future<Topic> get(core.String topic) {
(...skipping 14 matching lines...) Expand all
713 "GET", 725 "GET",
714 body: _body, 726 body: _body,
715 queryParams: _queryParams, 727 queryParams: _queryParams,
716 uploadOptions: _uploadOptions, 728 uploadOptions: _uploadOptions,
717 uploadMedia: _uploadMedia, 729 uploadMedia: _uploadMedia,
718 downloadOptions: _downloadOptions); 730 downloadOptions: _downloadOptions);
719 return _response.then((data) => new Topic.fromJson(data)); 731 return _response.then((data) => new Topic.fromJson(data));
720 } 732 }
721 733
722 /** 734 /**
723 * Gets the access control policy for a resource. Returns an empty policy if 735 * Gets the access control policy for a resource.
724 * the resource exists and does not have a policy set. 736 * Returns an empty policy if the resource exists and does not have a policy
737 * set.
725 * 738 *
726 * Request parameters: 739 * Request parameters:
727 * 740 *
728 * [resource] - REQUIRED: The resource for which the policy is being 741 * [resource] - REQUIRED: The resource for which the policy is being
729 * requested. `resource` is usually specified as a path. For example, a 742 * requested.
730 * Project resource is specified as `projects/{project}`. 743 * `resource` is usually specified as a path. For example, a Project
731 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 744 * resource is specified as `projects/{project}`.
745 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
732 * 746 *
733 * Completes with a [Policy]. 747 * Completes with a [Policy].
734 * 748 *
735 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 749 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
736 * error. 750 * error.
737 * 751 *
738 * If the used [http.Client] completes with an error when making a REST call, 752 * If the used [http.Client] completes with an error when making a REST call,
739 * this method will complete with the same error. 753 * this method will complete with the same error.
740 */ 754 */
741 async.Future<Policy> getIamPolicy(core.String resource) { 755 async.Future<Policy> getIamPolicy(core.String resource) {
(...skipping 19 matching lines...) Expand all
761 downloadOptions: _downloadOptions); 775 downloadOptions: _downloadOptions);
762 return _response.then((data) => new Policy.fromJson(data)); 776 return _response.then((data) => new Policy.fromJson(data));
763 } 777 }
764 778
765 /** 779 /**
766 * Lists matching topics. 780 * Lists matching topics.
767 * 781 *
768 * Request parameters: 782 * Request parameters:
769 * 783 *
770 * [project] - The name of the cloud project that topics belong to. 784 * [project] - The name of the cloud project that topics belong to.
771 * Value must have pattern "^projects/[^/]*$". 785 * Value must have pattern "^projects/[^/]+$".
772 * 786 *
773 * [pageSize] - Maximum number of topics to return. 787 * [pageSize] - Maximum number of topics to return.
774 * 788 *
775 * [pageToken] - The value returned by the last `ListTopicsResponse`; 789 * [pageToken] - The value returned by the last `ListTopicsResponse`;
776 * indicates that this is a continuation of a prior `ListTopics` call, and 790 * indicates that this is
777 * that the system should return the next page of data. 791 * a continuation of a prior `ListTopics` call, and that the system should
792 * return the next page of data.
778 * 793 *
779 * Completes with a [ListTopicsResponse]. 794 * Completes with a [ListTopicsResponse].
780 * 795 *
781 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 796 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
782 * error. 797 * error.
783 * 798 *
784 * If the used [http.Client] completes with an error when making a REST call, 799 * If the used [http.Client] completes with an error when making a REST call,
785 * this method will complete with the same error. 800 * this method will complete with the same error.
786 */ 801 */
787 async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { 802 async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) {
(...skipping 22 matching lines...) Expand all
810 queryParams: _queryParams, 825 queryParams: _queryParams,
811 uploadOptions: _uploadOptions, 826 uploadOptions: _uploadOptions,
812 uploadMedia: _uploadMedia, 827 uploadMedia: _uploadMedia,
813 downloadOptions: _downloadOptions); 828 downloadOptions: _downloadOptions);
814 return _response.then((data) => new ListTopicsResponse.fromJson(data)); 829 return _response.then((data) => new ListTopicsResponse.fromJson(data));
815 } 830 }
816 831
817 /** 832 /**
818 * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic 833 * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
819 * does not exist. The message payload must not be empty; it must contain 834 * does not exist. The message payload must not be empty; it must contain
820 * either a non-empty data field, or at least one attribute. 835 * either a non-empty data field, or at least one attribute.
821 * 836 *
822 * [request] - The metadata request object. 837 * [request] - The metadata request object.
823 * 838 *
824 * Request parameters: 839 * Request parameters:
825 * 840 *
826 * [topic] - The messages in the request will be published on this topic. 841 * [topic] - The messages in the request will be published on this topic.
827 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 842 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
828 * 843 *
829 * Completes with a [PublishResponse]. 844 * Completes with a [PublishResponse].
830 * 845 *
831 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 846 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
832 * error. 847 * error.
833 * 848 *
834 * If the used [http.Client] completes with an error when making a REST call, 849 * If the used [http.Client] completes with an error when making a REST call,
835 * this method will complete with the same error. 850 * this method will complete with the same error.
836 */ 851 */
837 async.Future<PublishResponse> publish(PublishRequest request, core.String topi c) { 852 async.Future<PublishResponse> publish(PublishRequest request, core.String topi c) {
(...skipping 25 matching lines...) Expand all
863 878
864 /** 879 /**
865 * Sets the access control policy on the specified resource. Replaces any 880 * Sets the access control policy on the specified resource. Replaces any
866 * existing policy. 881 * existing policy.
867 * 882 *
868 * [request] - The metadata request object. 883 * [request] - The metadata request object.
869 * 884 *
870 * Request parameters: 885 * Request parameters:
871 * 886 *
872 * [resource] - REQUIRED: The resource for which the policy is being 887 * [resource] - REQUIRED: The resource for which the policy is being
873 * specified. `resource` is usually specified as a path. For example, a 888 * specified.
874 * Project resource is specified as `projects/{project}`. 889 * `resource` is usually specified as a path. For example, a Project
875 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 890 * resource is specified as `projects/{project}`.
891 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
876 * 892 *
877 * Completes with a [Policy]. 893 * Completes with a [Policy].
878 * 894 *
879 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 895 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
880 * error. 896 * error.
881 * 897 *
882 * If the used [http.Client] completes with an error when making a REST call, 898 * If the used [http.Client] completes with an error when making a REST call,
883 * this method will complete with the same error. 899 * this method will complete with the same error.
884 */ 900 */
885 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) { 901 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
(...skipping 18 matching lines...) Expand all
904 body: _body, 920 body: _body,
905 queryParams: _queryParams, 921 queryParams: _queryParams,
906 uploadOptions: _uploadOptions, 922 uploadOptions: _uploadOptions,
907 uploadMedia: _uploadMedia, 923 uploadMedia: _uploadMedia,
908 downloadOptions: _downloadOptions); 924 downloadOptions: _downloadOptions);
909 return _response.then((data) => new Policy.fromJson(data)); 925 return _response.then((data) => new Policy.fromJson(data));
910 } 926 }
911 927
912 /** 928 /**
913 * Returns permissions that a caller has on the specified resource. 929 * Returns permissions that a caller has on the specified resource.
930 * If the resource does not exist, this will return an empty set of
931 * permissions, not a NOT_FOUND error.
914 * 932 *
915 * [request] - The metadata request object. 933 * [request] - The metadata request object.
916 * 934 *
917 * Request parameters: 935 * Request parameters:
918 * 936 *
919 * [resource] - REQUIRED: The resource for which the policy detail is being 937 * [resource] - REQUIRED: The resource for which the policy detail is being
920 * requested. `resource` is usually specified as a path. For example, a 938 * requested.
921 * Project resource is specified as `projects/{project}`. 939 * `resource` is usually specified as a path. For example, a Project
922 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 940 * resource is specified as `projects/{project}`.
941 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
923 * 942 *
924 * Completes with a [TestIamPermissionsResponse]. 943 * Completes with a [TestIamPermissionsResponse].
925 * 944 *
926 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 945 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
927 * error. 946 * error.
928 * 947 *
929 * If the used [http.Client] completes with an error when making a REST call, 948 * If the used [http.Client] completes with an error when making a REST call,
930 * this method will complete with the same error. 949 * this method will complete with the same error.
931 */ 950 */
932 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) { 951 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 983
965 ProjectsTopicsSubscriptionsResourceApi(commons.ApiRequester client) : 984 ProjectsTopicsSubscriptionsResourceApi(commons.ApiRequester client) :
966 _requester = client; 985 _requester = client;
967 986
968 /** 987 /**
969 * Lists the name of the subscriptions for this topic. 988 * Lists the name of the subscriptions for this topic.
970 * 989 *
971 * Request parameters: 990 * Request parameters:
972 * 991 *
973 * [topic] - The name of the topic that subscriptions are attached to. 992 * [topic] - The name of the topic that subscriptions are attached to.
974 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 993 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
975 * 994 *
976 * [pageSize] - Maximum number of subscription names to return. 995 * [pageSize] - Maximum number of subscription names to return.
977 * 996 *
978 * [pageToken] - The value returned by the last 997 * [pageToken] - The value returned by the last
979 * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of 998 * `ListTopicSubscriptionsResponse`; indicates
980 * a prior `ListTopicSubscriptions` call, and that the system should return 999 * that this is a continuation of a prior `ListTopicSubscriptions` call, and
981 * the next page of data. 1000 * that the system should return the next page of data.
982 * 1001 *
983 * Completes with a [ListTopicSubscriptionsResponse]. 1002 * Completes with a [ListTopicSubscriptionsResponse].
984 * 1003 *
985 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1004 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
986 * error. 1005 * error.
987 * 1006 *
988 * 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 call,
989 * this method will complete with the same error. 1008 * this method will complete with the same error.
990 */ 1009 */
991 async.Future<ListTopicSubscriptionsResponse> list(core.String topic, {core.int pageSize, core.String pageToken}) { 1010 async.Future<ListTopicSubscriptionsResponse> list(core.String topic, {core.int pageSize, core.String pageToken}) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 _json["ackIds"] = ackIds; 1063 _json["ackIds"] = ackIds;
1045 } 1064 }
1046 return _json; 1065 return _json;
1047 } 1066 }
1048 } 1067 }
1049 1068
1050 /** Associates `members` with a `role`. */ 1069 /** Associates `members` with a `role`. */
1051 class Binding { 1070 class Binding {
1052 /** 1071 /**
1053 * Specifies the identities requesting access for a Cloud Platform resource. 1072 * Specifies the identities requesting access for a Cloud Platform resource.
1054 * `members` can have the following values: * `allUsers`: A special identifier 1073 * `members` can have the following values:
1055 * that represents anyone who is on the internet; with or without a Google 1074 *
1056 * account. * `allAuthenticatedUsers`: A special identifier that represents 1075 * * `allUsers`: A special identifier that represents anyone who is
1057 * anyone who is authenticated with a Google account or a service account. * 1076 * on the internet; with or without a Google account.
1058 * `user:{emailid}`: An email address that represents a specific Google 1077 *
1059 * account. For example, `alice@gmail.com` or `joe@example.com`. * 1078 * * `allAuthenticatedUsers`: A special identifier that represents anyone
1060 * `serviceAccount:{emailid}`: An email address that represents a service 1079 * who is authenticated with a Google account or a service account.
1061 * account. For example, `my-other-app@appspot.gserviceaccount.com`. * 1080 *
1062 * `group:{emailid}`: An email address that represents a Google group. For 1081 * * `user:{emailid}`: An email address that represents a specific Google
1063 * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain 1082 * account. For example, `alice@gmail.com` or `joe@example.com`.
1064 * name that represents all the users of that domain. For example, 1083 *
1065 * `google.com` or `example.com`. 1084 *
1085 * * `serviceAccount:{emailid}`: An email address that represents a service
1086 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
1087 *
1088 * * `group:{emailid}`: An email address that represents a Google group.
1089 * For example, `admins@example.com`.
1090 *
1091 * * `domain:{domain}`: A Google Apps domain name that represents all the
1092 * users of that domain. For example, `google.com` or `example.com`.
1066 */ 1093 */
1067 core.List<core.String> members; 1094 core.List<core.String> members;
1068 /** 1095 /**
1069 * Role that is assigned to `members`. For example, `roles/viewer`, 1096 * Role that is assigned to `members`.
1070 * `roles/editor`, or `roles/owner`. Required 1097 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1098 * Required
1071 */ 1099 */
1072 core.String role; 1100 core.String role;
1073 1101
1074 Binding(); 1102 Binding();
1075 1103
1076 Binding.fromJson(core.Map _json) { 1104 Binding.fromJson(core.Map _json) {
1077 if (_json.containsKey("members")) { 1105 if (_json.containsKey("members")) {
1078 members = _json["members"]; 1106 members = _json["members"];
1079 } 1107 }
1080 if (_json.containsKey("role")) { 1108 if (_json.containsKey("role")) {
1081 role = _json["role"]; 1109 role = _json["role"];
1082 } 1110 }
1083 } 1111 }
1084 1112
1085 core.Map toJson() { 1113 core.Map toJson() {
1086 var _json = new core.Map(); 1114 var _json = new core.Map();
1087 if (members != null) { 1115 if (members != null) {
1088 _json["members"] = members; 1116 _json["members"] = members;
1089 } 1117 }
1090 if (role != null) { 1118 if (role != null) {
1091 _json["role"] = role; 1119 _json["role"] = role;
1092 } 1120 }
1093 return _json; 1121 return _json;
1094 } 1122 }
1095 } 1123 }
1096 1124
1097 /** 1125 /**
1098 * A generic empty message that you can re-use to avoid defining duplicated 1126 * A generic empty message that you can re-use to avoid defining duplicated
1099 * empty messages in your APIs. A typical example is to use it as the request or 1127 * empty messages in your APIs. A typical example is to use it as the request
1100 * the response type of an API method. For instance: service Foo { rpc 1128 * or the response type of an API method. For instance:
1101 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON 1129 *
1102 * representation for `Empty` is empty JSON object `{}`. 1130 * service Foo {
1131 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1132 * }
1133 *
1134 * The JSON representation for `Empty` is empty JSON object `{}`.
1103 */ 1135 */
1104 class Empty { 1136 class Empty {
1105 1137
1106 Empty(); 1138 Empty();
1107 1139
1108 Empty.fromJson(core.Map _json) { 1140 Empty.fromJson(core.Map _json) {
1109 } 1141 }
1110 1142
1111 core.Map toJson() { 1143 core.Map toJson() {
1112 var _json = new core.Map(); 1144 var _json = new core.Map();
1113 return _json; 1145 return _json;
1114 } 1146 }
1115 } 1147 }
1116 1148
1117 /** Response for the `ListSubscriptions` method. */ 1149 /** Response for the `ListSubscriptions` method. */
1118 class ListSubscriptionsResponse { 1150 class ListSubscriptionsResponse {
1119 /** 1151 /**
1120 * If not empty, indicates that there may be more subscriptions that match the 1152 * If not empty, indicates that there may be more subscriptions that match
1121 * request; this value should be passed in a new `ListSubscriptionsRequest` to 1153 * the request; this value should be passed in a new
1122 * get more subscriptions. 1154 * `ListSubscriptionsRequest` to get more subscriptions.
1123 */ 1155 */
1124 core.String nextPageToken; 1156 core.String nextPageToken;
1125 /** The subscriptions that match the request. */ 1157 /** The subscriptions that match the request. */
1126 core.List<Subscription> subscriptions; 1158 core.List<Subscription> subscriptions;
1127 1159
1128 ListSubscriptionsResponse(); 1160 ListSubscriptionsResponse();
1129 1161
1130 ListSubscriptionsResponse.fromJson(core.Map _json) { 1162 ListSubscriptionsResponse.fromJson(core.Map _json) {
1131 if (_json.containsKey("nextPageToken")) { 1163 if (_json.containsKey("nextPageToken")) {
1132 nextPageToken = _json["nextPageToken"]; 1164 nextPageToken = _json["nextPageToken"];
(...skipping 11 matching lines...) Expand all
1144 if (subscriptions != null) { 1176 if (subscriptions != null) {
1145 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to List(); 1177 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to List();
1146 } 1178 }
1147 return _json; 1179 return _json;
1148 } 1180 }
1149 } 1181 }
1150 1182
1151 /** Response for the `ListTopicSubscriptions` method. */ 1183 /** Response for the `ListTopicSubscriptions` method. */
1152 class ListTopicSubscriptionsResponse { 1184 class ListTopicSubscriptionsResponse {
1153 /** 1185 /**
1154 * If not empty, indicates that there may be more subscriptions that match the 1186 * If not empty, indicates that there may be more subscriptions that match
1155 * request; this value should be passed in a new 1187 * the request; this value should be passed in a new
1156 * `ListTopicSubscriptionsRequest` to get more subscriptions. 1188 * `ListTopicSubscriptionsRequest` to get more subscriptions.
1157 */ 1189 */
1158 core.String nextPageToken; 1190 core.String nextPageToken;
1159 /** The names of the subscriptions that match the request. */ 1191 /** The names of the subscriptions that match the request. */
1160 core.List<core.String> subscriptions; 1192 core.List<core.String> subscriptions;
1161 1193
1162 ListTopicSubscriptionsResponse(); 1194 ListTopicSubscriptionsResponse();
1163 1195
1164 ListTopicSubscriptionsResponse.fromJson(core.Map _json) { 1196 ListTopicSubscriptionsResponse.fromJson(core.Map _json) {
1165 if (_json.containsKey("nextPageToken")) { 1197 if (_json.containsKey("nextPageToken")) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 if (topics != null) { 1243 if (topics != null) {
1212 _json["topics"] = topics.map((value) => (value).toJson()).toList(); 1244 _json["topics"] = topics.map((value) => (value).toJson()).toList();
1213 } 1245 }
1214 return _json; 1246 return _json;
1215 } 1247 }
1216 } 1248 }
1217 1249
1218 /** Request for the ModifyAckDeadline method. */ 1250 /** Request for the ModifyAckDeadline method. */
1219 class ModifyAckDeadlineRequest { 1251 class ModifyAckDeadlineRequest {
1220 /** 1252 /**
1221 * The new ack deadline with respect to the time this request was sent to the 1253 * The new ack deadline with respect to the time this request was sent to
1222 * Pub/Sub system. Must be >= 0. For example, if the value is 10, the new ack 1254 * the Pub/Sub system. Must be >= 0. For example, if the value is 10, the new
1223 * deadline will expire 10 seconds after the `ModifyAckDeadline` call was 1255 * ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
1224 * made. Specifying zero may immediately make the message available for 1256 * was made. Specifying zero may immediately make the message available for
1225 * another pull request. 1257 * another pull request.
1226 */ 1258 */
1227 core.int ackDeadlineSeconds; 1259 core.int ackDeadlineSeconds;
1228 /** 1260 /**
1229 * The acknowledgment ID. Either this or ack_ids must be populated, but not 1261 * The acknowledgment ID. Either this or ack_ids must be populated, but not
1230 * both. 1262 * both.
1231 */ 1263 */
1232 core.String ackId; 1264 core.String ackId;
1233 /** List of acknowledgment IDs. */ 1265 /** List of acknowledgment IDs. */
1234 core.List<core.String> ackIds; 1266 core.List<core.String> ackIds;
(...skipping 23 matching lines...) Expand all
1258 if (ackIds != null) { 1290 if (ackIds != null) {
1259 _json["ackIds"] = ackIds; 1291 _json["ackIds"] = ackIds;
1260 } 1292 }
1261 return _json; 1293 return _json;
1262 } 1294 }
1263 } 1295 }
1264 1296
1265 /** Request for the ModifyPushConfig method. */ 1297 /** Request for the ModifyPushConfig method. */
1266 class ModifyPushConfigRequest { 1298 class ModifyPushConfigRequest {
1267 /** 1299 /**
1268 * The push configuration for future deliveries. An empty `pushConfig` 1300 * The push configuration for future deliveries.
1269 * indicates that the Pub/Sub system should stop pushing messages from the 1301 *
1270 * given subscription and allow messages to be pulled and acknowledged - 1302 * An empty `pushConfig` indicates that the Pub/Sub system should
1271 * effectively pausing the subscription if `Pull` is not called. 1303 * stop pushing messages from the given subscription and allow
1304 * messages to be pulled and acknowledged - effectively pausing
1305 * the subscription if `Pull` is not called.
1272 */ 1306 */
1273 PushConfig pushConfig; 1307 PushConfig pushConfig;
1274 1308
1275 ModifyPushConfigRequest(); 1309 ModifyPushConfigRequest();
1276 1310
1277 ModifyPushConfigRequest.fromJson(core.Map _json) { 1311 ModifyPushConfigRequest.fromJson(core.Map _json) {
1278 if (_json.containsKey("pushConfig")) { 1312 if (_json.containsKey("pushConfig")) {
1279 pushConfig = new PushConfig.fromJson(_json["pushConfig"]); 1313 pushConfig = new PushConfig.fromJson(_json["pushConfig"]);
1280 } 1314 }
1281 } 1315 }
1282 1316
1283 core.Map toJson() { 1317 core.Map toJson() {
1284 var _json = new core.Map(); 1318 var _json = new core.Map();
1285 if (pushConfig != null) { 1319 if (pushConfig != null) {
1286 _json["pushConfig"] = (pushConfig).toJson(); 1320 _json["pushConfig"] = (pushConfig).toJson();
1287 } 1321 }
1288 return _json; 1322 return _json;
1289 } 1323 }
1290 } 1324 }
1291 1325
1292 /** 1326 /**
1293 * Defines an Identity and Access Management (IAM) policy. It is used to specify 1327 * Defines an Identity and Access Management (IAM) policy. It is used to
1294 * access control policies for Cloud Platform resources. A `Policy` consists of 1328 * specify access control policies for Cloud Platform resources.
1295 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, 1329 *
1296 * where the members can be user accounts, Google groups, Google domains, and 1330 *
1297 * service accounts. A `role` is a named list of permissions defined by IAM. 1331 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1298 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ 1332 * `members` to a `role`, where the members can be user accounts, Google groups,
1299 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 1333 * Google domains, and service accounts. A `role` is a named list of permissions
1300 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": 1334 * defined by IAM.
1301 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description 1335 *
1302 * of IAM and its features, see the [IAM developer's 1336 * **Example**
1303 * guide](https://cloud.google.com/iam). 1337 *
1338 * {
1339 * "bindings": [
1340 * {
1341 * "role": "roles/owner",
1342 * "members": [
1343 * "user:mike@example.com",
1344 * "group:admins@example.com",
1345 * "domain:google.com",
1346 * "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1347 * ]
1348 * },
1349 * {
1350 * "role": "roles/viewer",
1351 * "members": ["user:sean@example.com"]
1352 * }
1353 * ]
1354 * }
1355 *
1356 * For a description of IAM and its features, see the
1357 * [IAM developer's guide](https://cloud.google.com/iam).
1304 */ 1358 */
1305 class Policy { 1359 class Policy {
1306 /** 1360 /**
1307 * Associates a list of `members` to a `role`. Multiple `bindings` must not be 1361 * Associates a list of `members` to a `role`.
1308 * specified for the same `role`. `bindings` with no members will result in an 1362 * Multiple `bindings` must not be specified for the same `role`.
1309 * error. 1363 * `bindings` with no members will result in an error.
1310 */ 1364 */
1311 core.List<Binding> bindings; 1365 core.List<Binding> bindings;
1312 /** 1366 /**
1313 * `etag` is used for optimistic concurrency control as a way to help prevent 1367 * `etag` is used for optimistic concurrency control as a way to help
1314 * simultaneous updates of a policy from overwriting each other. It is 1368 * prevent simultaneous updates of a policy from overwriting each other.
1315 * strongly suggested that systems make use of the `etag` in the 1369 * It is strongly suggested that systems make use of the `etag` in the
1316 * read-modify-write cycle to perform policy updates in order to avoid race 1370 * read-modify-write cycle to perform policy updates in order to avoid race
1317 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 1371 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
1318 * systems are expected to put that etag in the request to `setIamPolicy` to 1372 * systems are expected to put that etag in the request to `setIamPolicy` to
1319 * ensure that their change will be applied to the same version of the policy. 1373 * ensure that their change will be applied to the same version of the policy.
1374 *
1320 * If no `etag` is provided in the call to `setIamPolicy`, then the existing 1375 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
1321 * policy is overwritten blindly. 1376 * policy is overwritten blindly.
1322 */ 1377 */
1323 core.String etag; 1378 core.String etag;
1324 core.List<core.int> get etagAsBytes { 1379 core.List<core.int> get etagAsBytes {
1325 return convert.BASE64.decode(etag); 1380 return convert.BASE64.decode(etag);
1326 } 1381 }
1327 1382
1328 void set etagAsBytes(core.List<core.int> _bytes) { 1383 void set etagAsBytes(core.List<core.int> _bytes) {
1329 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1384 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 if (messages != null) { 1433 if (messages != null) {
1379 _json["messages"] = messages.map((value) => (value).toJson()).toList(); 1434 _json["messages"] = messages.map((value) => (value).toJson()).toList();
1380 } 1435 }
1381 return _json; 1436 return _json;
1382 } 1437 }
1383 } 1438 }
1384 1439
1385 /** Response for the `Publish` method. */ 1440 /** Response for the `Publish` method. */
1386 class PublishResponse { 1441 class PublishResponse {
1387 /** 1442 /**
1388 * The server-assigned ID of each published message, in the same order as the 1443 * The server-assigned ID of each published message, in the same order as
1389 * messages in the request. IDs are guaranteed to be unique within the topic. 1444 * the messages in the request. IDs are guaranteed to be unique within
1445 * the topic.
1390 */ 1446 */
1391 core.List<core.String> messageIds; 1447 core.List<core.String> messageIds;
1392 1448
1393 PublishResponse(); 1449 PublishResponse();
1394 1450
1395 PublishResponse.fromJson(core.Map _json) { 1451 PublishResponse.fromJson(core.Map _json) {
1396 if (_json.containsKey("messageIds")) { 1452 if (_json.containsKey("messageIds")) {
1397 messageIds = _json["messageIds"]; 1453 messageIds = _json["messageIds"];
1398 } 1454 }
1399 } 1455 }
1400 1456
1401 core.Map toJson() { 1457 core.Map toJson() {
1402 var _json = new core.Map(); 1458 var _json = new core.Map();
1403 if (messageIds != null) { 1459 if (messageIds != null) {
1404 _json["messageIds"] = messageIds; 1460 _json["messageIds"] = messageIds;
1405 } 1461 }
1406 return _json; 1462 return _json;
1407 } 1463 }
1408 } 1464 }
1409 1465
1410 /** 1466 /**
1411 * A message data and its attributes. The message payload must not be empty; it 1467 * A message data and its attributes. The message payload must not be empty;
1412 * must contain either a non-empty data field, or at least one attribute. 1468 * it must contain either a non-empty data field, or at least one attribute.
1413 */ 1469 */
1414 class PubsubMessage { 1470 class PubsubMessage {
1415 /** Optional attributes for this message. */ 1471 /** Optional attributes for this message. */
1416 core.Map<core.String, core.String> attributes; 1472 core.Map<core.String, core.String> attributes;
1417 /** 1473 /**
1418 * The message payload. For JSON requests, the value of this field must be 1474 * The message payload. For JSON requests, the value of this field must be
1419 * [base64-encoded](https://tools.ietf.org/html/rfc4648). 1475 * [base64-encoded](https://tools.ietf.org/html/rfc4648).
1420 */ 1476 */
1421 core.String data; 1477 core.String data;
1422 core.List<core.int> get dataAsBytes { 1478 core.List<core.int> get dataAsBytes {
1423 return convert.BASE64.decode(data); 1479 return convert.BASE64.decode(data);
1424 } 1480 }
1425 1481
1426 void set dataAsBytes(core.List<core.int> _bytes) { 1482 void set dataAsBytes(core.List<core.int> _bytes) {
1427 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1483 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
1428 } 1484 }
1429 /** 1485 /**
1430 * ID of this message, assigned by the server when the message is published. 1486 * ID of this message, assigned by the server when the message is published.
1431 * Guaranteed to be unique within the topic. This value may be read by a 1487 * Guaranteed to be unique within the topic. This value may be read by a
1432 * subscriber that receives a `PubsubMessage` via a `Pull` call or a push 1488 * subscriber that receives a `PubsubMessage` via a `Pull` call or a push
1433 * delivery. It must not be populated by the publisher in a `Publish` call. 1489 * delivery. It must not be populated by the publisher in a `Publish` call.
1434 */ 1490 */
1435 core.String messageId; 1491 core.String messageId;
1436 /** 1492 /**
1437 * The time at which the message was published, populated by the server when 1493 * The time at which the message was published, populated by the server when
1438 * it receives the `Publish` call. It must not be populated by the publisher 1494 * it receives the `Publish` call. It must not be populated by the
1439 * in a `Publish` call. 1495 * publisher in a `Publish` call.
1440 */ 1496 */
1441 core.String publishTime; 1497 core.String publishTime;
1442 1498
1443 PubsubMessage(); 1499 PubsubMessage();
1444 1500
1445 PubsubMessage.fromJson(core.Map _json) { 1501 PubsubMessage.fromJson(core.Map _json) {
1446 if (_json.containsKey("attributes")) { 1502 if (_json.containsKey("attributes")) {
1447 attributes = _json["attributes"]; 1503 attributes = _json["attributes"];
1448 } 1504 }
1449 if (_json.containsKey("data")) { 1505 if (_json.containsKey("data")) {
(...skipping 26 matching lines...) Expand all
1476 } 1532 }
1477 1533
1478 /** Request for the `Pull` method. */ 1534 /** Request for the `Pull` method. */
1479 class PullRequest { 1535 class PullRequest {
1480 /** 1536 /**
1481 * The maximum number of messages returned for this request. The Pub/Sub 1537 * The maximum number of messages returned for this request. The Pub/Sub
1482 * system may return fewer than the number specified. 1538 * system may return fewer than the number specified.
1483 */ 1539 */
1484 core.int maxMessages; 1540 core.int maxMessages;
1485 /** 1541 /**
1486 * If this is specified as true the system will respond immediately even if it 1542 * If this is specified as true the system will respond immediately even if
1487 * is not able to return a message in the `Pull` response. Otherwise the 1543 * it is not able to return a message in the `Pull` response. Otherwise the
1488 * system is allowed to wait until at least one message is available rather 1544 * system is allowed to wait until at least one message is available rather
1489 * than returning no messages. The client may cancel the request if it does 1545 * than returning no messages. The client may cancel the request if it does
1490 * not wish to wait any longer for the response. 1546 * not wish to wait any longer for the response.
1491 */ 1547 */
1492 core.bool returnImmediately; 1548 core.bool returnImmediately;
1493 1549
1494 PullRequest(); 1550 PullRequest();
1495 1551
1496 PullRequest.fromJson(core.Map _json) { 1552 PullRequest.fromJson(core.Map _json) {
1497 if (_json.containsKey("maxMessages")) { 1553 if (_json.containsKey("maxMessages")) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 if (receivedMessages != null) { 1593 if (receivedMessages != null) {
1538 _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson ()).toList(); 1594 _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson ()).toList();
1539 } 1595 }
1540 return _json; 1596 return _json;
1541 } 1597 }
1542 } 1598 }
1543 1599
1544 /** Configuration for a push delivery endpoint. */ 1600 /** Configuration for a push delivery endpoint. */
1545 class PushConfig { 1601 class PushConfig {
1546 /** 1602 /**
1547 * Endpoint configuration attributes. Every endpoint has a set of API 1603 * Endpoint configuration attributes.
1548 * supported attributes that can be used to control different aspects of the 1604 *
1549 * message delivery. The currently supported attribute is `x-goog-version`, 1605 * Every endpoint has a set of API supported attributes that can be used to
1550 * which you can use to change the format of the push message. This attribute 1606 * control different aspects of the message delivery.
1551 * indicates the version of the data expected by the endpoint. This controls 1607 *
1552 * the shape of the envelope (i.e. its fields and metadata). The endpoint 1608 * The currently supported attribute is `x-goog-version`, which you can
1553 * version is based on the version of the Pub/Sub API. If not present during 1609 * use to change the format of the push message. This attribute
1554 * the `CreateSubscription` call, it will default to the version of the API 1610 * indicates the version of the data expected by the endpoint. This
1555 * used to make such call. If not present during a `ModifyPushConfig` call, 1611 * controls the shape of the envelope (i.e. its fields and metadata).
1556 * its value will not be changed. `GetSubscription` calls will always return a 1612 * The endpoint version is based on the version of the Pub/Sub
1557 * valid version, even if the subscription was created without this attribute. 1613 * API.
1558 * The possible values for this attribute are: * `v1beta1`: uses the push 1614 *
1559 * format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the 1615 * If not present during the `CreateSubscription` call, it will default to
1560 * push format defined in the v1 Pub/Sub API. 1616 * the version of the API used to make such call. If not present during a
1617 * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
1618 * calls will always return a valid version, even if the subscription was
1619 * created without this attribute.
1620 *
1621 * The possible values for this attribute are:
1622 *
1623 * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
1624 * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
1561 */ 1625 */
1562 core.Map<core.String, core.String> attributes; 1626 core.Map<core.String, core.String> attributes;
1563 /** 1627 /**
1564 * A URL locating the endpoint to which messages should be pushed. For 1628 * A URL locating the endpoint to which messages should be pushed.
1565 * example, a Webhook endpoint might use "https://example.com/push". 1629 * For example, a Webhook endpoint might use "https://example.com/push".
1566 */ 1630 */
1567 core.String pushEndpoint; 1631 core.String pushEndpoint;
1568 1632
1569 PushConfig(); 1633 PushConfig();
1570 1634
1571 PushConfig.fromJson(core.Map _json) { 1635 PushConfig.fromJson(core.Map _json) {
1572 if (_json.containsKey("attributes")) { 1636 if (_json.containsKey("attributes")) {
1573 attributes = _json["attributes"]; 1637 attributes = _json["attributes"];
1574 } 1638 }
1575 if (_json.containsKey("pushEndpoint")) { 1639 if (_json.containsKey("pushEndpoint")) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 _json["message"] = (message).toJson(); 1680 _json["message"] = (message).toJson();
1617 } 1681 }
1618 return _json; 1682 return _json;
1619 } 1683 }
1620 } 1684 }
1621 1685
1622 /** Request message for `SetIamPolicy` method. */ 1686 /** Request message for `SetIamPolicy` method. */
1623 class SetIamPolicyRequest { 1687 class SetIamPolicyRequest {
1624 /** 1688 /**
1625 * REQUIRED: The complete policy to be applied to the `resource`. The size of 1689 * REQUIRED: The complete policy to be applied to the `resource`. The size of
1626 * the policy is limited to a few 10s of KB. An empty policy is a valid policy 1690 * the policy is limited to a few 10s of KB. An empty policy is a
1627 * but certain Cloud Platform services (such as Projects) might reject them. 1691 * valid policy but certain Cloud Platform services (such as Projects)
1692 * might reject them.
1628 */ 1693 */
1629 Policy policy; 1694 Policy policy;
1630 1695
1631 SetIamPolicyRequest(); 1696 SetIamPolicyRequest();
1632 1697
1633 SetIamPolicyRequest.fromJson(core.Map _json) { 1698 SetIamPolicyRequest.fromJson(core.Map _json) {
1634 if (_json.containsKey("policy")) { 1699 if (_json.containsKey("policy")) {
1635 policy = new Policy.fromJson(_json["policy"]); 1700 policy = new Policy.fromJson(_json["policy"]);
1636 } 1701 }
1637 } 1702 }
1638 1703
1639 core.Map toJson() { 1704 core.Map toJson() {
1640 var _json = new core.Map(); 1705 var _json = new core.Map();
1641 if (policy != null) { 1706 if (policy != null) {
1642 _json["policy"] = (policy).toJson(); 1707 _json["policy"] = (policy).toJson();
1643 } 1708 }
1644 return _json; 1709 return _json;
1645 } 1710 }
1646 } 1711 }
1647 1712
1648 /** A subscription resource. */ 1713 /** A subscription resource. */
1649 class Subscription { 1714 class Subscription {
1650 /** 1715 /**
1651 * This value is the maximum time after a subscriber receives a message before 1716 * This value is the maximum time after a subscriber receives a message
1652 * the subscriber should acknowledge the message. After message delivery but 1717 * before the subscriber should acknowledge the message. After message
1653 * before the ack deadline expires and before the message is acknowledged, it 1718 * delivery but before the ack deadline expires and before the message is
1654 * is an outstanding message and will not be delivered again during that time 1719 * acknowledged, it is an outstanding message and will not be delivered
1655 * (on a best-effort basis). For pull subscriptions, this value is used as the 1720 * again during that time (on a best-effort basis).
1656 * initial value for the ack deadline. To override this value for a given 1721 *
1657 * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using 1722 * For pull subscriptions, this value is used as the initial value for the ack
1658 * pull. The maximum custom deadline you can specify is 600 seconds (10 1723 * deadline. To override this value for a given message, call
1659 * minutes). For push delivery, this value is also used to set the request 1724 * `ModifyAckDeadline` with the corresponding `ack_id` if using pull.
1660 * timeout for the call to the push endpoint. If the subscriber never 1725 * The maximum custom deadline you can specify is 600 seconds (10 minutes).
1661 * acknowledges the message, the Pub/Sub system will eventually redeliver the 1726 *
1662 * message. If this parameter is 0, a default value of 10 seconds is used. 1727 * For push delivery, this value is also used to set the request timeout for
1728 * the call to the push endpoint.
1729 *
1730 * If the subscriber never acknowledges the message, the Pub/Sub
1731 * system will eventually redeliver the message.
1732 *
1733 * If this parameter is 0, a default value of 10 seconds is used.
1663 */ 1734 */
1664 core.int ackDeadlineSeconds; 1735 core.int ackDeadlineSeconds;
1665 /** 1736 /**
1666 * The name of the subscription. It must have the format 1737 * The name of the subscription. It must have the format
1667 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must 1738 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
1668 * start with a letter, and contain only letters (`[A-Za-z]`), numbers 1739 * start with a letter, and contain only letters (`[A-Za-z]`), numbers
1669 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), 1740 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
1670 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters 1741 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
1671 * in length, and it must not start with `"goog"`. 1742 * in length, and it must not start with `"goog"`.
1672 */ 1743 */
1673 core.String name; 1744 core.String name;
1674 /** 1745 /**
1675 * If push delivery is used with this subscription, this field is used to 1746 * If push delivery is used with this subscription, this field is
1676 * configure it. An empty `pushConfig` signifies that the subscriber will pull 1747 * used to configure it. An empty `pushConfig` signifies that the subscriber
1677 * and ack messages using API methods. 1748 * will pull and ack messages using API methods.
1678 */ 1749 */
1679 PushConfig pushConfig; 1750 PushConfig pushConfig;
1680 /** 1751 /**
1681 * The name of the topic from which this subscription is receiving messages. 1752 * The name of the topic from which this subscription is receiving messages.
1682 * The value of this field will be `_deleted-topic_` if the topic has been 1753 * The value of this field will be `_deleted-topic_` if the topic has been
1683 * deleted. 1754 * deleted.
1684 */ 1755 */
1685 core.String topic; 1756 core.String topic;
1686 1757
1687 Subscription(); 1758 Subscription();
(...skipping 29 matching lines...) Expand all
1717 } 1788 }
1718 return _json; 1789 return _json;
1719 } 1790 }
1720 } 1791 }
1721 1792
1722 /** Request message for `TestIamPermissions` method. */ 1793 /** Request message for `TestIamPermissions` method. */
1723 class TestIamPermissionsRequest { 1794 class TestIamPermissionsRequest {
1724 /** 1795 /**
1725 * The set of permissions to check for the `resource`. Permissions with 1796 * The set of permissions to check for the `resource`. Permissions with
1726 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1797 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1727 * information see [IAM 1798 * information see
1728 * Overview](https://cloud.google.com/iam/docs/overview#permissions). 1799 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1729 */ 1800 */
1730 core.List<core.String> permissions; 1801 core.List<core.String> permissions;
1731 1802
1732 TestIamPermissionsRequest(); 1803 TestIamPermissionsRequest();
1733 1804
1734 TestIamPermissionsRequest.fromJson(core.Map _json) { 1805 TestIamPermissionsRequest.fromJson(core.Map _json) {
1735 if (_json.containsKey("permissions")) { 1806 if (_json.containsKey("permissions")) {
1736 permissions = _json["permissions"]; 1807 permissions = _json["permissions"];
1737 } 1808 }
1738 } 1809 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 return _json; 1841 return _json;
1771 } 1842 }
1772 } 1843 }
1773 1844
1774 /** A topic resource. */ 1845 /** A topic resource. */
1775 class Topic { 1846 class Topic {
1776 /** 1847 /**
1777 * The name of the topic. It must have the format 1848 * The name of the topic. It must have the format
1778 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, 1849 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
1779 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), 1850 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
1780 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs 1851 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
1781 * (`%`). It must be between 3 and 255 characters in length, and it must not 1852 * signs (`%`). It must be between 3 and 255 characters in length, and it
1782 * start with `"goog"`. 1853 * must not start with `"goog"`.
1783 */ 1854 */
1784 core.String name; 1855 core.String name;
1785 1856
1786 Topic(); 1857 Topic();
1787 1858
1788 Topic.fromJson(core.Map _json) { 1859 Topic.fromJson(core.Map _json) {
1789 if (_json.containsKey("name")) { 1860 if (_json.containsKey("name")) {
1790 name = _json["name"]; 1861 name = _json["name"];
1791 } 1862 }
1792 } 1863 }
1793 1864
1794 core.Map toJson() { 1865 core.Map toJson() {
1795 var _json = new core.Map(); 1866 var _json = new core.Map();
1796 if (name != null) { 1867 if (name != null) {
1797 _json["name"] = name; 1868 _json["name"] = name;
1798 } 1869 }
1799 return _json; 1870 return _json;
1800 } 1871 }
1801 } 1872 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/ml/v1beta1.dart ('k') | generated/googleapis_beta/lib/sqladmin/v1beta4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698