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

Side by Side Diff: generated/googleapis/lib/pubsub/v1.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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.pubsub.v1; 3 library googleapis.pubsub.v1;
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 19 matching lines...) Expand all
30 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 30 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
31 31
32 PubsubApi(http.Client client, {core.String rootUrl: "https://pubsub.googleapis .com/", core.String servicePath: ""}) : 32 PubsubApi(http.Client client, {core.String rootUrl: "https://pubsub.googleapis .com/", core.String servicePath: ""}) :
33 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 33 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
34 } 34 }
35 35
36 36
37 class ProjectsResourceApi { 37 class ProjectsResourceApi {
38 final commons.ApiRequester _requester; 38 final commons.ApiRequester _requester;
39 39
40 ProjectsSnapshotsResourceApi get snapshots => new ProjectsSnapshotsResourceApi (_requester);
40 ProjectsSubscriptionsResourceApi get subscriptions => new ProjectsSubscription sResourceApi(_requester); 41 ProjectsSubscriptionsResourceApi get subscriptions => new ProjectsSubscription sResourceApi(_requester);
41 ProjectsTopicsResourceApi get topics => new ProjectsTopicsResourceApi(_request er); 42 ProjectsTopicsResourceApi get topics => new ProjectsTopicsResourceApi(_request er);
42 43
43 ProjectsResourceApi(commons.ApiRequester client) : 44 ProjectsResourceApi(commons.ApiRequester client) :
44 _requester = client; 45 _requester = client;
45 } 46 }
46 47
47 48
49 class ProjectsSnapshotsResourceApi {
50 final commons.ApiRequester _requester;
51
52 ProjectsSnapshotsResourceApi(commons.ApiRequester client) :
53 _requester = client;
54
55 /**
56 * Gets the access control policy for a resource. Returns an empty policy if
57 * the resource exists and does not have a policy set.
58 *
59 * Request parameters:
60 *
61 * [resource] - REQUIRED: The resource for which the policy is being
62 * requested. `resource` is usually specified as a path. For example, a
63 * Project resource is specified as `projects/{project}`.
64 * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$".
65 *
66 * Completes with a [Policy].
67 *
68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
69 * error.
70 *
71 * If the used [http.Client] completes with an error when making a REST call,
72 * this method will complete with the same error.
73 */
74 async.Future<Policy> getIamPolicy(core.String resource) {
75 var _url = null;
76 var _queryParams = new core.Map();
77 var _uploadMedia = null;
78 var _uploadOptions = null;
79 var _downloadOptions = commons.DownloadOptions.Metadata;
80 var _body = null;
81
82 if (resource == null) {
83 throw new core.ArgumentError("Parameter resource is required.");
84 }
85
86 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIam Policy';
87
88 var _response = _requester.request(_url,
89 "GET",
90 body: _body,
91 queryParams: _queryParams,
92 uploadOptions: _uploadOptions,
93 uploadMedia: _uploadMedia,
94 downloadOptions: _downloadOptions);
95 return _response.then((data) => new Policy.fromJson(data));
96 }
97
98 /**
99 * Sets the access control policy on the specified resource. Replaces any
100 * existing policy.
101 *
102 * [request] - The metadata request object.
103 *
104 * Request parameters:
105 *
106 * [resource] - REQUIRED: The resource for which the policy is being
107 * specified. `resource` is usually specified as a path. For example, a
108 * Project resource is specified as `projects/{project}`.
109 * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$".
110 *
111 * Completes with a [Policy].
112 *
113 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
114 * error.
115 *
116 * If the used [http.Client] completes with an error when making a REST call,
117 * this method will complete with the same error.
118 */
119 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
120 var _url = null;
121 var _queryParams = new core.Map();
122 var _uploadMedia = null;
123 var _uploadOptions = null;
124 var _downloadOptions = commons.DownloadOptions.Metadata;
125 var _body = null;
126
127 if (request != null) {
128 _body = convert.JSON.encode((request).toJson());
129 }
130 if (resource == null) {
131 throw new core.ArgumentError("Parameter resource is required.");
132 }
133
134 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIam Policy';
135
136 var _response = _requester.request(_url,
137 "POST",
138 body: _body,
139 queryParams: _queryParams,
140 uploadOptions: _uploadOptions,
141 uploadMedia: _uploadMedia,
142 downloadOptions: _downloadOptions);
143 return _response.then((data) => new Policy.fromJson(data));
144 }
145
146 /**
147 * Returns permissions that a caller has on the specified resource.
148 *
149 * [request] - The metadata request object.
150 *
151 * Request parameters:
152 *
153 * [resource] - REQUIRED: The resource for which the policy detail is being
154 * requested. `resource` is usually specified as a path. For example, a
155 * Project resource is specified as `projects/{project}`.
156 * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$".
157 *
158 * Completes with a [TestIamPermissionsResponse].
159 *
160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
161 * error.
162 *
163 * If the used [http.Client] completes with an error when making a REST call,
164 * this method will complete with the same error.
165 */
166 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
167 var _url = null;
168 var _queryParams = new core.Map();
169 var _uploadMedia = null;
170 var _uploadOptions = null;
171 var _downloadOptions = commons.DownloadOptions.Metadata;
172 var _body = null;
173
174 if (request != null) {
175 _body = convert.JSON.encode((request).toJson());
176 }
177 if (resource == null) {
178 throw new core.ArgumentError("Parameter resource is required.");
179 }
180
181 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIa mPermissions';
182
183 var _response = _requester.request(_url,
184 "POST",
185 body: _body,
186 queryParams: _queryParams,
187 uploadOptions: _uploadOptions,
188 uploadMedia: _uploadMedia,
189 downloadOptions: _downloadOptions);
190 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
191 }
192
193 }
194
195
48 class ProjectsSubscriptionsResourceApi { 196 class ProjectsSubscriptionsResourceApi {
49 final commons.ApiRequester _requester; 197 final commons.ApiRequester _requester;
50 198
51 ProjectsSubscriptionsResourceApi(commons.ApiRequester client) : 199 ProjectsSubscriptionsResourceApi(commons.ApiRequester client) :
52 _requester = client; 200 _requester = client;
53 201
54 /** 202 /**
55 * Acknowledges the messages associated with the `ack_ids` in the 203 * Acknowledges the messages associated with the `ack_ids` in the
56 * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages 204 * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
57 * from the subscription. Acknowledging a message whose ack deadline has 205 * from the subscription. Acknowledging a message whose ack deadline has
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 uploadMedia: _uploadMedia, 246 uploadMedia: _uploadMedia,
99 downloadOptions: _downloadOptions); 247 downloadOptions: _downloadOptions);
100 return _response.then((data) => new Empty.fromJson(data)); 248 return _response.then((data) => new Empty.fromJson(data));
101 } 249 }
102 250
103 /** 251 /**
104 * Creates a subscription to a given topic. If the subscription already 252 * Creates a subscription to a given topic. If the subscription already
105 * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, 253 * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist,
106 * returns `NOT_FOUND`. If the name is not provided in the request, the server 254 * returns `NOT_FOUND`. If the name is not provided in the request, the server
107 * will assign a random name for this subscription on the same project as the 255 * will assign a random name for this subscription on the same project as the
108 * topic. 256 * topic. Note that for REST API requests, you must specify a name.
109 * 257 *
110 * [request] - The metadata request object. 258 * [request] - The metadata request object.
111 * 259 *
112 * Request parameters: 260 * Request parameters:
113 * 261 *
114 * [name] - The name of the subscription. It must have the format 262 * [name] - The name of the subscription. It must have the format
115 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must 263 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
116 * start with a letter, and contain only letters (`[A-Za-z]`), numbers 264 * start with a letter, and contain only letters (`[A-Za-z]`), numbers
117 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), 265 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
118 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters 266 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
(...skipping 29 matching lines...) Expand all
148 "PUT", 296 "PUT",
149 body: _body, 297 body: _body,
150 queryParams: _queryParams, 298 queryParams: _queryParams,
151 uploadOptions: _uploadOptions, 299 uploadOptions: _uploadOptions,
152 uploadMedia: _uploadMedia, 300 uploadMedia: _uploadMedia,
153 downloadOptions: _downloadOptions); 301 downloadOptions: _downloadOptions);
154 return _response.then((data) => new Subscription.fromJson(data)); 302 return _response.then((data) => new Subscription.fromJson(data));
155 } 303 }
156 304
157 /** 305 /**
158 * Deletes an existing subscription. All pending messages in the subscription 306 * Deletes an existing subscription. All messages retained in the subscription
159 * are immediately dropped. Calls to `Pull` after deletion will return 307 * 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 308 * `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 309 * the same name, but the new one has no association with the old subscription
162 * subscription, or its topic unless the same topic is specified. 310 * or its topic unless the same topic is specified.
163 * 311 *
164 * Request parameters: 312 * Request parameters:
165 * 313 *
166 * [subscription] - The subscription to delete. 314 * [subscription] - The subscription to delete.
167 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 315 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
168 * 316 *
169 * Completes with a [Empty]. 317 * Completes with a [Empty].
170 * 318 *
171 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 319 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
172 * error. 320 * error.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 "GET", 380 "GET",
233 body: _body, 381 body: _body,
234 queryParams: _queryParams, 382 queryParams: _queryParams,
235 uploadOptions: _uploadOptions, 383 uploadOptions: _uploadOptions,
236 uploadMedia: _uploadMedia, 384 uploadMedia: _uploadMedia,
237 downloadOptions: _downloadOptions); 385 downloadOptions: _downloadOptions);
238 return _response.then((data) => new Subscription.fromJson(data)); 386 return _response.then((data) => new Subscription.fromJson(data));
239 } 387 }
240 388
241 /** 389 /**
242 * Gets the access control policy for a `resource`. Returns an empty policy if 390 * Gets the access control policy for a resource. Returns an empty policy if
243 * the resource exists and does not have a policy set. 391 * the resource exists and does not have a policy set.
244 * 392 *
245 * Request parameters: 393 * Request parameters:
246 * 394 *
247 * [resource] - REQUIRED: The resource for which the policy is being 395 * [resource] - REQUIRED: The resource for which the policy is being
248 * requested. `resource` is usually specified as a path, such as `projects / * 396 * requested. `resource` is usually specified as a path. For example, a
249 * project * / zones / * zone * / disks / * disk*`. The format for the path 397 * Project resource is specified as `projects/{project}`.
250 * specified in this value is resource specific and is specified in the
251 * `getIamPolicy` documentation.
252 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 398 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
253 * 399 *
254 * Completes with a [Policy]. 400 * Completes with a [Policy].
255 * 401 *
256 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
257 * error. 403 * error.
258 * 404 *
259 * If the used [http.Client] completes with an error when making a REST call, 405 * If the used [http.Client] completes with an error when making a REST call,
260 * this method will complete with the same error. 406 * this method will complete with the same error.
261 */ 407 */
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 uploadOptions: _uploadOptions, 478 uploadOptions: _uploadOptions,
333 uploadMedia: _uploadMedia, 479 uploadMedia: _uploadMedia,
334 downloadOptions: _downloadOptions); 480 downloadOptions: _downloadOptions);
335 return _response.then((data) => new ListSubscriptionsResponse.fromJson(data) ); 481 return _response.then((data) => new ListSubscriptionsResponse.fromJson(data) );
336 } 482 }
337 483
338 /** 484 /**
339 * Modifies the ack deadline for a specific message. This method is useful to 485 * Modifies the ack deadline for a specific message. This method is useful to
340 * indicate that more time is needed to process a message by the subscriber, 486 * indicate that more time is needed to process a message by the subscriber,
341 * or to make the message available for redelivery if the processing was 487 * or to make the message available for redelivery if the processing was
342 * interrupted. 488 * interrupted. Note that this does not modify the subscription-level
489 * `ackDeadlineSeconds` used for subsequent messages.
343 * 490 *
344 * [request] - The metadata request object. 491 * [request] - The metadata request object.
345 * 492 *
346 * Request parameters: 493 * Request parameters:
347 * 494 *
348 * [subscription] - The name of the subscription. 495 * [subscription] - The name of the subscription.
349 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 496 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
350 * 497 *
351 * Completes with a [Empty]. 498 * Completes with a [Empty].
352 * 499 *
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 629
483 /** 630 /**
484 * Sets the access control policy on the specified resource. Replaces any 631 * Sets the access control policy on the specified resource. Replaces any
485 * existing policy. 632 * existing policy.
486 * 633 *
487 * [request] - The metadata request object. 634 * [request] - The metadata request object.
488 * 635 *
489 * Request parameters: 636 * Request parameters:
490 * 637 *
491 * [resource] - REQUIRED: The resource for which the policy is being 638 * [resource] - REQUIRED: The resource for which the policy is being
492 * specified. `resource` is usually specified as a path, such as `projects / * 639 * specified. `resource` is usually specified as a path. For example, a
493 * project * / zones / * zone * / disks / * disk*`. The format for the path 640 * Project resource is specified as `projects/{project}`.
494 * specified in this value is resource specific and is specified in the
495 * `setIamPolicy` documentation.
496 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 641 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
497 * 642 *
498 * Completes with a [Policy]. 643 * Completes with a [Policy].
499 * 644 *
500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
501 * error. 646 * error.
502 * 647 *
503 * If the used [http.Client] completes with an error when making a REST call, 648 * If the used [http.Client] completes with an error when making a REST call,
504 * this method will complete with the same error. 649 * this method will complete with the same error.
505 */ 650 */
(...skipping 25 matching lines...) Expand all
531 } 676 }
532 677
533 /** 678 /**
534 * Returns permissions that a caller has on the specified resource. 679 * Returns permissions that a caller has on the specified resource.
535 * 680 *
536 * [request] - The metadata request object. 681 * [request] - The metadata request object.
537 * 682 *
538 * Request parameters: 683 * Request parameters:
539 * 684 *
540 * [resource] - REQUIRED: The resource for which the policy detail is being 685 * [resource] - REQUIRED: The resource for which the policy detail is being
541 * requested. `resource` is usually specified as a path, such as `projects / * 686 * requested. `resource` is usually specified as a path. For example, a
542 * project * / zones / * zone * / disks / * disk*`. The format for the path 687 * Project resource is specified as `projects/{project}`.
543 * specified in this value is resource specific and is specified in the
544 * `testIamPermissions` documentation.
545 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". 688 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
546 * 689 *
547 * Completes with a [TestIamPermissionsResponse]. 690 * Completes with a [TestIamPermissionsResponse].
548 * 691 *
549 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 692 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
550 * error. 693 * error.
551 * 694 *
552 * If the used [http.Client] completes with an error when making a REST call, 695 * If the used [http.Client] completes with an error when making a REST call,
553 * this method will complete with the same error. 696 * this method will complete with the same error.
554 */ 697 */
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 "GET", 861 "GET",
719 body: _body, 862 body: _body,
720 queryParams: _queryParams, 863 queryParams: _queryParams,
721 uploadOptions: _uploadOptions, 864 uploadOptions: _uploadOptions,
722 uploadMedia: _uploadMedia, 865 uploadMedia: _uploadMedia,
723 downloadOptions: _downloadOptions); 866 downloadOptions: _downloadOptions);
724 return _response.then((data) => new Topic.fromJson(data)); 867 return _response.then((data) => new Topic.fromJson(data));
725 } 868 }
726 869
727 /** 870 /**
728 * Gets the access control policy for a `resource`. Returns an empty policy if 871 * Gets the access control policy for a resource. Returns an empty policy if
729 * the resource exists and does not have a policy set. 872 * the resource exists and does not have a policy set.
730 * 873 *
731 * Request parameters: 874 * Request parameters:
732 * 875 *
733 * [resource] - REQUIRED: The resource for which the policy is being 876 * [resource] - REQUIRED: The resource for which the policy is being
734 * requested. `resource` is usually specified as a path, such as `projects / * 877 * requested. `resource` is usually specified as a path. For example, a
735 * project * / zones / * zone * / disks / * disk*`. The format for the path 878 * Project resource is specified as `projects/{project}`.
736 * specified in this value is resource specific and is specified in the
737 * `getIamPolicy` documentation.
738 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 879 * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
739 * 880 *
740 * Completes with a [Policy]. 881 * Completes with a [Policy].
741 * 882 *
742 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 883 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
743 * error. 884 * error.
744 * 885 *
745 * If the used [http.Client] completes with an error when making a REST call, 886 * If the used [http.Client] completes with an error when making a REST call,
746 * this method will complete with the same error. 887 * this method will complete with the same error.
747 */ 888 */
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 1011
871 /** 1012 /**
872 * Sets the access control policy on the specified resource. Replaces any 1013 * Sets the access control policy on the specified resource. Replaces any
873 * existing policy. 1014 * existing policy.
874 * 1015 *
875 * [request] - The metadata request object. 1016 * [request] - The metadata request object.
876 * 1017 *
877 * Request parameters: 1018 * Request parameters:
878 * 1019 *
879 * [resource] - REQUIRED: The resource for which the policy is being 1020 * [resource] - REQUIRED: The resource for which the policy is being
880 * specified. `resource` is usually specified as a path, such as `projects / * 1021 * specified. `resource` is usually specified as a path. For example, a
881 * project * / zones / * zone * / disks / * disk*`. The format for the path 1022 * Project resource is specified as `projects/{project}`.
882 * specified in this value is resource specific and is specified in the
883 * `setIamPolicy` documentation.
884 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 1023 * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
885 * 1024 *
886 * Completes with a [Policy]. 1025 * Completes with a [Policy].
887 * 1026 *
888 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1027 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
889 * error. 1028 * error.
890 * 1029 *
891 * If the used [http.Client] completes with an error when making a REST call, 1030 * If the used [http.Client] completes with an error when making a REST call,
892 * this method will complete with the same error. 1031 * this method will complete with the same error.
893 */ 1032 */
(...skipping 25 matching lines...) Expand all
919 } 1058 }
920 1059
921 /** 1060 /**
922 * Returns permissions that a caller has on the specified resource. 1061 * Returns permissions that a caller has on the specified resource.
923 * 1062 *
924 * [request] - The metadata request object. 1063 * [request] - The metadata request object.
925 * 1064 *
926 * Request parameters: 1065 * Request parameters:
927 * 1066 *
928 * [resource] - REQUIRED: The resource for which the policy detail is being 1067 * [resource] - REQUIRED: The resource for which the policy detail is being
929 * requested. `resource` is usually specified as a path, such as `projects / * 1068 * requested. `resource` is usually specified as a path. For example, a
930 * project * / zones / * zone * / disks / * disk*`. The format for the path 1069 * Project resource is specified as `projects/{project}`.
931 * specified in this value is resource specific and is specified in the
932 * `testIamPermissions` documentation.
933 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". 1070 * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
934 * 1071 *
935 * Completes with a [TestIamPermissionsResponse]. 1072 * Completes with a [TestIamPermissionsResponse].
936 * 1073 *
937 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1074 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
938 * error. 1075 * error.
939 * 1076 *
940 * If the used [http.Client] completes with an error when making a REST call, 1077 * If the used [http.Client] completes with an error when making a REST call,
941 * this method will complete with the same error. 1078 * this method will complete with the same error.
942 */ 1079 */
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 1546
1410 /** 1547 /**
1411 * A message data and its attributes. The message payload must not be empty; it 1548 * A message data and its attributes. The message payload must not be empty; it
1412 * must contain either a non-empty data field, or at least one attribute. 1549 * must contain either a non-empty data field, or at least one attribute.
1413 */ 1550 */
1414 class PubsubMessage { 1551 class PubsubMessage {
1415 /** Optional attributes for this message. */ 1552 /** Optional attributes for this message. */
1416 core.Map<core.String, core.String> attributes; 1553 core.Map<core.String, core.String> attributes;
1417 /** 1554 /**
1418 * The message payload. For JSON requests, the value of this field must be 1555 * The message payload. For JSON requests, the value of this field must be
1419 * base64-encoded. 1556 * [base64-encoded](https://tools.ietf.org/html/rfc4648).
1420 */ 1557 */
1421 core.String data; 1558 core.String data;
1422 core.List<core.int> get dataAsBytes { 1559 core.List<core.int> get dataAsBytes {
1423 return convert.BASE64.decode(data); 1560 return convert.BASE64.decode(data);
1424 } 1561 }
1425 1562
1426 void set dataAsBytes(core.List<core.int> _bytes) { 1563 void set dataAsBytes(core.List<core.int> _bytes) {
1427 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1564 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
1428 } 1565 }
1429 /** 1566 /**
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 /** A subscription resource. */ 1785 /** A subscription resource. */
1649 class Subscription { 1786 class Subscription {
1650 /** 1787 /**
1651 * This value is the maximum time after a subscriber receives a message before 1788 * This value is the maximum time after a subscriber receives a message before
1652 * the subscriber should acknowledge the message. After message delivery but 1789 * the subscriber should acknowledge the message. After message delivery but
1653 * before the ack deadline expires and before the message is acknowledged, it 1790 * before the ack deadline expires and before the message is acknowledged, it
1654 * is an outstanding message and will not be delivered again during that time 1791 * is an outstanding message and will not be delivered again during that time
1655 * (on a best-effort basis). For pull subscriptions, this value is used as the 1792 * (on a best-effort basis). For pull subscriptions, this value is used as the
1656 * initial value for the ack deadline. To override this value for a given 1793 * initial value for the ack deadline. To override this value for a given
1657 * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using 1794 * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using
1658 * pull. For push delivery, this value is also used to set the request timeout 1795 * pull. The maximum custom deadline you can specify is 600 seconds (10
1659 * for the call to the push endpoint. If the subscriber never acknowledges the 1796 * minutes). For push delivery, this value is also used to set the request
1660 * message, the Pub/Sub system will eventually redeliver the message. If this 1797 * timeout for the call to the push endpoint. If the subscriber never
1661 * parameter is not set, the default value of 10 seconds is used. 1798 * acknowledges the message, the Pub/Sub system will eventually redeliver the
1799 * message. If this parameter is 0, a default value of 10 seconds is used.
1662 */ 1800 */
1663 core.int ackDeadlineSeconds; 1801 core.int ackDeadlineSeconds;
1664 /** 1802 /**
1665 * The name of the subscription. It must have the format 1803 * The name of the subscription. It must have the format
1666 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must 1804 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
1667 * start with a letter, and contain only letters (`[A-Za-z]`), numbers 1805 * start with a letter, and contain only letters (`[A-Za-z]`), numbers
1668 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), 1806 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
1669 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters 1807 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
1670 * in length, and it must not start with `"goog"`. 1808 * in length, and it must not start with `"goog"`.
1671 */ 1809 */
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 } 1854 }
1717 return _json; 1855 return _json;
1718 } 1856 }
1719 } 1857 }
1720 1858
1721 /** Request message for `TestIamPermissions` method. */ 1859 /** Request message for `TestIamPermissions` method. */
1722 class TestIamPermissionsRequest { 1860 class TestIamPermissionsRequest {
1723 /** 1861 /**
1724 * The set of permissions to check for the `resource`. Permissions with 1862 * The set of permissions to check for the `resource`. Permissions with
1725 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1863 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1726 * information see IAM Overview. 1864 * information see [IAM
1865 * Overview](https://cloud.google.com/iam/docs/overview#permissions).
1727 */ 1866 */
1728 core.List<core.String> permissions; 1867 core.List<core.String> permissions;
1729 1868
1730 TestIamPermissionsRequest(); 1869 TestIamPermissionsRequest();
1731 1870
1732 TestIamPermissionsRequest.fromJson(core.Map _json) { 1871 TestIamPermissionsRequest.fromJson(core.Map _json) {
1733 if (_json.containsKey("permissions")) { 1872 if (_json.containsKey("permissions")) {
1734 permissions = _json["permissions"]; 1873 permissions = _json["permissions"];
1735 } 1874 }
1736 } 1875 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 } 1929 }
1791 1930
1792 core.Map toJson() { 1931 core.Map toJson() {
1793 var _json = new core.Map(); 1932 var _json = new core.Map();
1794 if (name != null) { 1933 if (name != null) {
1795 _json["name"] = name; 1934 _json["name"] = name;
1796 } 1935 }
1797 return _json; 1936 return _json;
1798 } 1937 }
1799 } 1938 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/pagespeedonline/v2.dart ('k') | generated/googleapis/lib/runtimeconfig/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698