| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 | 48 |
| 49 class ProjectsSnapshotsResourceApi { | 49 class ProjectsSnapshotsResourceApi { |
| 50 final commons.ApiRequester _requester; | 50 final commons.ApiRequester _requester; |
| 51 | 51 |
| 52 ProjectsSnapshotsResourceApi(commons.ApiRequester client) : | 52 ProjectsSnapshotsResourceApi(commons.ApiRequester client) : |
| 53 _requester = client; | 53 _requester = client; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * Gets the access control policy for a resource. Returns an empty policy if | 56 * Gets the access control policy for a resource. |
| 57 * the resource exists and does not have a policy set. | 57 * Returns an empty policy if the resource exists and does not have a policy |
| 58 * set. |
| 58 * | 59 * |
| 59 * Request parameters: | 60 * Request parameters: |
| 60 * | 61 * |
| 61 * [resource] - REQUIRED: The resource for which the policy is being | 62 * [resource] - REQUIRED: The resource for which the policy is being |
| 62 * requested. `resource` is usually specified as a path. For example, a | 63 * requested. |
| 63 * Project resource is specified as `projects/{project}`. | 64 * `resource` is usually specified as a path. For example, a Project |
| 64 * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$". | 65 * resource is specified as `projects/{project}`. |
| 66 * Value must have pattern "^projects/[^/]+/snapshots/[^/]+$". |
| 65 * | 67 * |
| 66 * Completes with a [Policy]. | 68 * Completes with a [Policy]. |
| 67 * | 69 * |
| 68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 69 * error. | 71 * error. |
| 70 * | 72 * |
| 71 * If the used [http.Client] completes with an error when making a REST call, | 73 * If the used [http.Client] completes with an error when making a REST call, |
| 72 * this method will complete with the same error. | 74 * this method will complete with the same error. |
| 73 */ | 75 */ |
| 74 async.Future<Policy> getIamPolicy(core.String resource) { | 76 async.Future<Policy> getIamPolicy(core.String resource) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 97 | 99 |
| 98 /** | 100 /** |
| 99 * Sets the access control policy on the specified resource. Replaces any | 101 * Sets the access control policy on the specified resource. Replaces any |
| 100 * existing policy. | 102 * existing policy. |
| 101 * | 103 * |
| 102 * [request] - The metadata request object. | 104 * [request] - The metadata request object. |
| 103 * | 105 * |
| 104 * Request parameters: | 106 * Request parameters: |
| 105 * | 107 * |
| 106 * [resource] - REQUIRED: The resource for which the policy is being | 108 * [resource] - REQUIRED: The resource for which the policy is being |
| 107 * specified. `resource` is usually specified as a path. For example, a | 109 * specified. |
| 108 * Project resource is specified as `projects/{project}`. | 110 * `resource` is usually specified as a path. For example, a Project |
| 109 * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$". | 111 * resource is specified as `projects/{project}`. |
| 112 * Value must have pattern "^projects/[^/]+/snapshots/[^/]+$". |
| 110 * | 113 * |
| 111 * Completes with a [Policy]. | 114 * Completes with a [Policy]. |
| 112 * | 115 * |
| 113 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 114 * error. | 117 * error. |
| 115 * | 118 * |
| 116 * If the used [http.Client] completes with an error when making a REST call, | 119 * If the used [http.Client] completes with an error when making a REST call, |
| 117 * this method will complete with the same error. | 120 * this method will complete with the same error. |
| 118 */ | 121 */ |
| 119 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 122 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 138 body: _body, | 141 body: _body, |
| 139 queryParams: _queryParams, | 142 queryParams: _queryParams, |
| 140 uploadOptions: _uploadOptions, | 143 uploadOptions: _uploadOptions, |
| 141 uploadMedia: _uploadMedia, | 144 uploadMedia: _uploadMedia, |
| 142 downloadOptions: _downloadOptions); | 145 downloadOptions: _downloadOptions); |
| 143 return _response.then((data) => new Policy.fromJson(data)); | 146 return _response.then((data) => new Policy.fromJson(data)); |
| 144 } | 147 } |
| 145 | 148 |
| 146 /** | 149 /** |
| 147 * Returns permissions that a caller has on the specified resource. | 150 * Returns permissions that a caller has on the specified resource. |
| 151 * If the resource does not exist, this will return an empty set of |
| 152 * permissions, not a NOT_FOUND error. |
| 148 * | 153 * |
| 149 * [request] - The metadata request object. | 154 * [request] - The metadata request object. |
| 150 * | 155 * |
| 151 * Request parameters: | 156 * Request parameters: |
| 152 * | 157 * |
| 153 * [resource] - REQUIRED: The resource for which the policy detail is being | 158 * [resource] - REQUIRED: The resource for which the policy detail is being |
| 154 * requested. `resource` is usually specified as a path. For example, a | 159 * requested. |
| 155 * Project resource is specified as `projects/{project}`. | 160 * `resource` is usually specified as a path. For example, a Project |
| 156 * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$". | 161 * resource is specified as `projects/{project}`. |
| 162 * Value must have pattern "^projects/[^/]+/snapshots/[^/]+$". |
| 157 * | 163 * |
| 158 * Completes with a [TestIamPermissionsResponse]. | 164 * Completes with a [TestIamPermissionsResponse]. |
| 159 * | 165 * |
| 160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 166 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 161 * error. | 167 * error. |
| 162 * | 168 * |
| 163 * If the used [http.Client] completes with an error when making a REST call, | 169 * If the used [http.Client] completes with an error when making a REST call, |
| 164 * this method will complete with the same error. | 170 * this method will complete with the same error. |
| 165 */ | 171 */ |
| 166 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 172 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 195 | 201 |
| 196 class ProjectsSubscriptionsResourceApi { | 202 class ProjectsSubscriptionsResourceApi { |
| 197 final commons.ApiRequester _requester; | 203 final commons.ApiRequester _requester; |
| 198 | 204 |
| 199 ProjectsSubscriptionsResourceApi(commons.ApiRequester client) : | 205 ProjectsSubscriptionsResourceApi(commons.ApiRequester client) : |
| 200 _requester = client; | 206 _requester = client; |
| 201 | 207 |
| 202 /** | 208 /** |
| 203 * Acknowledges the messages associated with the `ack_ids` in the | 209 * Acknowledges the messages associated with the `ack_ids` in the |
| 204 * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages | 210 * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages |
| 205 * from the subscription. Acknowledging a message whose ack deadline has | 211 * from the subscription. |
| 206 * expired may succeed, but such a message may be redelivered later. | 212 * |
| 207 * Acknowledging a message more than once will not result in an error. | 213 * Acknowledging a message whose ack deadline has expired may succeed, |
| 214 * but such a message may be redelivered later. Acknowledging a message more |
| 215 * than once will not result in an error. |
| 208 * | 216 * |
| 209 * [request] - The metadata request object. | 217 * [request] - The metadata request object. |
| 210 * | 218 * |
| 211 * Request parameters: | 219 * Request parameters: |
| 212 * | 220 * |
| 213 * [subscription] - The subscription whose message is being acknowledged. | 221 * [subscription] - The subscription whose message is being acknowledged. |
| 214 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 222 * Format is `projects/{project}/subscriptions/{sub}`. |
| 223 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 215 * | 224 * |
| 216 * Completes with a [Empty]. | 225 * Completes with a [Empty]. |
| 217 * | 226 * |
| 218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 227 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 219 * error. | 228 * error. |
| 220 * | 229 * |
| 221 * If the used [http.Client] completes with an error when making a REST call, | 230 * If the used [http.Client] completes with an error when making a REST call, |
| 222 * this method will complete with the same error. | 231 * this method will complete with the same error. |
| 223 */ | 232 */ |
| 224 async.Future<Empty> acknowledge(AcknowledgeRequest request, core.String subscr
iption) { | 233 async.Future<Empty> acknowledge(AcknowledgeRequest request, core.String subscr
iption) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 242 "POST", | 251 "POST", |
| 243 body: _body, | 252 body: _body, |
| 244 queryParams: _queryParams, | 253 queryParams: _queryParams, |
| 245 uploadOptions: _uploadOptions, | 254 uploadOptions: _uploadOptions, |
| 246 uploadMedia: _uploadMedia, | 255 uploadMedia: _uploadMedia, |
| 247 downloadOptions: _downloadOptions); | 256 downloadOptions: _downloadOptions); |
| 248 return _response.then((data) => new Empty.fromJson(data)); | 257 return _response.then((data) => new Empty.fromJson(data)); |
| 249 } | 258 } |
| 250 | 259 |
| 251 /** | 260 /** |
| 252 * Creates a subscription to a given topic. If the subscription already | 261 * Creates a subscription to a given topic. |
| 253 * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, | 262 * If the subscription already exists, returns `ALREADY_EXISTS`. |
| 254 * returns `NOT_FOUND`. If the name is not provided in the request, the server | 263 * If the corresponding topic doesn't exist, returns `NOT_FOUND`. |
| 255 * will assign a random name for this subscription on the same project as the | 264 * |
| 256 * topic. Note that for REST API requests, you must specify a name. | 265 * If the name is not provided in the request, the server will assign a random |
| 266 * name for this subscription on the same project as the topic, conforming |
| 267 * to the |
| 268 * [resource name |
| 269 * format](https://cloud.google.com/pubsub/docs/overview#names). |
| 270 * The generated name is populated in the returned Subscription object. |
| 271 * Note that for REST API requests, you must specify a name in the request. |
| 257 * | 272 * |
| 258 * [request] - The metadata request object. | 273 * [request] - The metadata request object. |
| 259 * | 274 * |
| 260 * Request parameters: | 275 * Request parameters: |
| 261 * | 276 * |
| 262 * [name] - The name of the subscription. It must have the format | 277 * [name] - The name of the subscription. It must have the format |
| 263 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must | 278 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must |
| 264 * start with a letter, and contain only letters (`[A-Za-z]`), numbers | 279 * start with a letter, and contain only letters (`[A-Za-z]`), numbers |
| 265 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), | 280 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), |
| 266 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters | 281 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters |
| 267 * in length, and it must not start with `"goog"`. | 282 * in length, and it must not start with `"goog"`. |
| 268 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 283 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 269 * | 284 * |
| 270 * Completes with a [Subscription]. | 285 * Completes with a [Subscription]. |
| 271 * | 286 * |
| 272 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 273 * error. | 288 * error. |
| 274 * | 289 * |
| 275 * If the used [http.Client] completes with an error when making a REST call, | 290 * If the used [http.Client] completes with an error when making a REST call, |
| 276 * this method will complete with the same error. | 291 * this method will complete with the same error. |
| 277 */ | 292 */ |
| 278 async.Future<Subscription> create(Subscription request, core.String name) { | 293 async.Future<Subscription> create(Subscription request, core.String name) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 299 uploadOptions: _uploadOptions, | 314 uploadOptions: _uploadOptions, |
| 300 uploadMedia: _uploadMedia, | 315 uploadMedia: _uploadMedia, |
| 301 downloadOptions: _downloadOptions); | 316 downloadOptions: _downloadOptions); |
| 302 return _response.then((data) => new Subscription.fromJson(data)); | 317 return _response.then((data) => new Subscription.fromJson(data)); |
| 303 } | 318 } |
| 304 | 319 |
| 305 /** | 320 /** |
| 306 * Deletes an existing subscription. All messages retained in the subscription | 321 * Deletes an existing subscription. All messages retained in the subscription |
| 307 * are immediately dropped. Calls to `Pull` after deletion will return | 322 * are immediately dropped. Calls to `Pull` after deletion will return |
| 308 * `NOT_FOUND`. After a subscription is deleted, a new one may be created with | 323 * `NOT_FOUND`. After a subscription is deleted, a new one may be created with |
| 309 * the same name, but the new one has no association with the old subscription | 324 * the same name, but the new one has no association with the old |
| 310 * or its topic unless the same topic is specified. | 325 * subscription or its topic unless the same topic is specified. |
| 311 * | 326 * |
| 312 * Request parameters: | 327 * Request parameters: |
| 313 * | 328 * |
| 314 * [subscription] - The subscription to delete. | 329 * [subscription] - The subscription to delete. |
| 315 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 330 * Format is `projects/{project}/subscriptions/{sub}`. |
| 331 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 316 * | 332 * |
| 317 * Completes with a [Empty]. | 333 * Completes with a [Empty]. |
| 318 * | 334 * |
| 319 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 335 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 320 * error. | 336 * error. |
| 321 * | 337 * |
| 322 * If the used [http.Client] completes with an error when making a REST call, | 338 * If the used [http.Client] completes with an error when making a REST call, |
| 323 * this method will complete with the same error. | 339 * this method will complete with the same error. |
| 324 */ | 340 */ |
| 325 async.Future<Empty> delete(core.String subscription) { | 341 async.Future<Empty> delete(core.String subscription) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 345 downloadOptions: _downloadOptions); | 361 downloadOptions: _downloadOptions); |
| 346 return _response.then((data) => new Empty.fromJson(data)); | 362 return _response.then((data) => new Empty.fromJson(data)); |
| 347 } | 363 } |
| 348 | 364 |
| 349 /** | 365 /** |
| 350 * Gets the configuration details of a subscription. | 366 * Gets the configuration details of a subscription. |
| 351 * | 367 * |
| 352 * Request parameters: | 368 * Request parameters: |
| 353 * | 369 * |
| 354 * [subscription] - The name of the subscription to get. | 370 * [subscription] - The name of the subscription to get. |
| 355 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 371 * Format is `projects/{project}/subscriptions/{sub}`. |
| 372 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 356 * | 373 * |
| 357 * Completes with a [Subscription]. | 374 * Completes with a [Subscription]. |
| 358 * | 375 * |
| 359 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 360 * error. | 377 * error. |
| 361 * | 378 * |
| 362 * If the used [http.Client] completes with an error when making a REST call, | 379 * If the used [http.Client] completes with an error when making a REST call, |
| 363 * this method will complete with the same error. | 380 * this method will complete with the same error. |
| 364 */ | 381 */ |
| 365 async.Future<Subscription> get(core.String subscription) { | 382 async.Future<Subscription> get(core.String subscription) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 380 "GET", | 397 "GET", |
| 381 body: _body, | 398 body: _body, |
| 382 queryParams: _queryParams, | 399 queryParams: _queryParams, |
| 383 uploadOptions: _uploadOptions, | 400 uploadOptions: _uploadOptions, |
| 384 uploadMedia: _uploadMedia, | 401 uploadMedia: _uploadMedia, |
| 385 downloadOptions: _downloadOptions); | 402 downloadOptions: _downloadOptions); |
| 386 return _response.then((data) => new Subscription.fromJson(data)); | 403 return _response.then((data) => new Subscription.fromJson(data)); |
| 387 } | 404 } |
| 388 | 405 |
| 389 /** | 406 /** |
| 390 * Gets the access control policy for a resource. Returns an empty policy if | 407 * Gets the access control policy for a resource. |
| 391 * the resource exists and does not have a policy set. | 408 * Returns an empty policy if the resource exists and does not have a policy |
| 409 * set. |
| 392 * | 410 * |
| 393 * Request parameters: | 411 * Request parameters: |
| 394 * | 412 * |
| 395 * [resource] - REQUIRED: The resource for which the policy is being | 413 * [resource] - REQUIRED: The resource for which the policy is being |
| 396 * requested. `resource` is usually specified as a path. For example, a | 414 * requested. |
| 397 * Project resource is specified as `projects/{project}`. | 415 * `resource` is usually specified as a path. For example, a Project |
| 398 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 416 * resource is specified as `projects/{project}`. |
| 417 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 399 * | 418 * |
| 400 * Completes with a [Policy]. | 419 * Completes with a [Policy]. |
| 401 * | 420 * |
| 402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 403 * error. | 422 * error. |
| 404 * | 423 * |
| 405 * If the used [http.Client] completes with an error when making a REST call, | 424 * If the used [http.Client] completes with an error when making a REST call, |
| 406 * this method will complete with the same error. | 425 * this method will complete with the same error. |
| 407 */ | 426 */ |
| 408 async.Future<Policy> getIamPolicy(core.String resource) { | 427 async.Future<Policy> getIamPolicy(core.String resource) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 428 downloadOptions: _downloadOptions); | 447 downloadOptions: _downloadOptions); |
| 429 return _response.then((data) => new Policy.fromJson(data)); | 448 return _response.then((data) => new Policy.fromJson(data)); |
| 430 } | 449 } |
| 431 | 450 |
| 432 /** | 451 /** |
| 433 * Lists matching subscriptions. | 452 * Lists matching subscriptions. |
| 434 * | 453 * |
| 435 * Request parameters: | 454 * Request parameters: |
| 436 * | 455 * |
| 437 * [project] - The name of the cloud project that subscriptions belong to. | 456 * [project] - The name of the cloud project that subscriptions belong to. |
| 438 * Value must have pattern "^projects/[^/]*$". | 457 * Format is `projects/{project}`. |
| 458 * Value must have pattern "^projects/[^/]+$". |
| 439 * | 459 * |
| 440 * [pageSize] - Maximum number of subscriptions to return. | 460 * [pageSize] - Maximum number of subscriptions to return. |
| 441 * | 461 * |
| 442 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`; | 462 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`; |
| 443 * indicates that this is a continuation of a prior `ListSubscriptions` call, | 463 * indicates that |
| 444 * and that the system should return the next page of data. | 464 * this is a continuation of a prior `ListSubscriptions` call, and that the |
| 465 * system should return the next page of data. |
| 445 * | 466 * |
| 446 * Completes with a [ListSubscriptionsResponse]. | 467 * Completes with a [ListSubscriptionsResponse]. |
| 447 * | 468 * |
| 448 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 449 * error. | 470 * error. |
| 450 * | 471 * |
| 451 * If the used [http.Client] completes with an error when making a REST call, | 472 * If the used [http.Client] completes with an error when making a REST call, |
| 452 * this method will complete with the same error. | 473 * this method will complete with the same error. |
| 453 */ | 474 */ |
| 454 async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pa
geSize, core.String pageToken}) { | 475 async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pa
geSize, core.String pageToken}) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 475 "GET", | 496 "GET", |
| 476 body: _body, | 497 body: _body, |
| 477 queryParams: _queryParams, | 498 queryParams: _queryParams, |
| 478 uploadOptions: _uploadOptions, | 499 uploadOptions: _uploadOptions, |
| 479 uploadMedia: _uploadMedia, | 500 uploadMedia: _uploadMedia, |
| 480 downloadOptions: _downloadOptions); | 501 downloadOptions: _downloadOptions); |
| 481 return _response.then((data) => new ListSubscriptionsResponse.fromJson(data)
); | 502 return _response.then((data) => new ListSubscriptionsResponse.fromJson(data)
); |
| 482 } | 503 } |
| 483 | 504 |
| 484 /** | 505 /** |
| 485 * Modifies the ack deadline for a specific message. This method is useful to | 506 * Modifies the ack deadline for a specific message. This method is useful |
| 486 * indicate that more time is needed to process a message by the subscriber, | 507 * to indicate that more time is needed to process a message by the |
| 487 * or to make the message available for redelivery if the processing was | 508 * subscriber, or to make the message available for redelivery if the |
| 488 * interrupted. Note that this does not modify the subscription-level | 509 * processing was interrupted. Note that this does not modify the |
| 489 * `ackDeadlineSeconds` used for subsequent messages. | 510 * subscription-level `ackDeadlineSeconds` used for subsequent messages. |
| 490 * | 511 * |
| 491 * [request] - The metadata request object. | 512 * [request] - The metadata request object. |
| 492 * | 513 * |
| 493 * Request parameters: | 514 * Request parameters: |
| 494 * | 515 * |
| 495 * [subscription] - The name of the subscription. | 516 * [subscription] - The name of the subscription. |
| 496 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 517 * Format is `projects/{project}/subscriptions/{sub}`. |
| 518 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 497 * | 519 * |
| 498 * Completes with a [Empty]. | 520 * Completes with a [Empty]. |
| 499 * | 521 * |
| 500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 522 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 501 * error. | 523 * error. |
| 502 * | 524 * |
| 503 * If the used [http.Client] completes with an error when making a REST call, | 525 * If the used [http.Client] completes with an error when making a REST call, |
| 504 * this method will complete with the same error. | 526 * this method will complete with the same error. |
| 505 */ | 527 */ |
| 506 async.Future<Empty> modifyAckDeadline(ModifyAckDeadlineRequest request, core.S
tring subscription) { | 528 async.Future<Empty> modifyAckDeadline(ModifyAckDeadlineRequest request, core.S
tring subscription) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 524 "POST", | 546 "POST", |
| 525 body: _body, | 547 body: _body, |
| 526 queryParams: _queryParams, | 548 queryParams: _queryParams, |
| 527 uploadOptions: _uploadOptions, | 549 uploadOptions: _uploadOptions, |
| 528 uploadMedia: _uploadMedia, | 550 uploadMedia: _uploadMedia, |
| 529 downloadOptions: _downloadOptions); | 551 downloadOptions: _downloadOptions); |
| 530 return _response.then((data) => new Empty.fromJson(data)); | 552 return _response.then((data) => new Empty.fromJson(data)); |
| 531 } | 553 } |
| 532 | 554 |
| 533 /** | 555 /** |
| 534 * Modifies the `PushConfig` for a specified subscription. This may be used to | 556 * Modifies the `PushConfig` for a specified subscription. |
| 535 * change a push subscription to a pull one (signified by an empty | 557 * |
| 536 * `PushConfig`) or vice versa, or change the endpoint URL and other | 558 * This may be used to change a push subscription to a pull one (signified by |
| 559 * an empty `PushConfig`) or vice versa, or change the endpoint URL and other |
| 537 * attributes of a push subscription. Messages will accumulate for delivery | 560 * attributes of a push subscription. Messages will accumulate for delivery |
| 538 * continuously through the call regardless of changes to the `PushConfig`. | 561 * continuously through the call regardless of changes to the `PushConfig`. |
| 539 * | 562 * |
| 540 * [request] - The metadata request object. | 563 * [request] - The metadata request object. |
| 541 * | 564 * |
| 542 * Request parameters: | 565 * Request parameters: |
| 543 * | 566 * |
| 544 * [subscription] - The name of the subscription. | 567 * [subscription] - The name of the subscription. |
| 545 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 568 * Format is `projects/{project}/subscriptions/{sub}`. |
| 569 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 546 * | 570 * |
| 547 * Completes with a [Empty]. | 571 * Completes with a [Empty]. |
| 548 * | 572 * |
| 549 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 573 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 550 * error. | 574 * error. |
| 551 * | 575 * |
| 552 * If the used [http.Client] completes with an error when making a REST call, | 576 * If the used [http.Client] completes with an error when making a REST call, |
| 553 * this method will complete with the same error. | 577 * this method will complete with the same error. |
| 554 */ | 578 */ |
| 555 async.Future<Empty> modifyPushConfig(ModifyPushConfigRequest request, core.Str
ing subscription) { | 579 async.Future<Empty> modifyPushConfig(ModifyPushConfigRequest request, core.Str
ing subscription) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 583 * Pulls messages from the server. Returns an empty list if there are no | 607 * Pulls messages from the server. Returns an empty list if there are no |
| 584 * messages available in the backlog. The server may return `UNAVAILABLE` if | 608 * messages available in the backlog. The server may return `UNAVAILABLE` if |
| 585 * there are too many concurrent pull requests pending for the given | 609 * there are too many concurrent pull requests pending for the given |
| 586 * subscription. | 610 * subscription. |
| 587 * | 611 * |
| 588 * [request] - The metadata request object. | 612 * [request] - The metadata request object. |
| 589 * | 613 * |
| 590 * Request parameters: | 614 * Request parameters: |
| 591 * | 615 * |
| 592 * [subscription] - The subscription from which messages should be pulled. | 616 * [subscription] - The subscription from which messages should be pulled. |
| 593 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 617 * Format is `projects/{project}/subscriptions/{sub}`. |
| 618 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 594 * | 619 * |
| 595 * Completes with a [PullResponse]. | 620 * Completes with a [PullResponse]. |
| 596 * | 621 * |
| 597 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 622 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 598 * error. | 623 * error. |
| 599 * | 624 * |
| 600 * If the used [http.Client] completes with an error when making a REST call, | 625 * If the used [http.Client] completes with an error when making a REST call, |
| 601 * this method will complete with the same error. | 626 * this method will complete with the same error. |
| 602 */ | 627 */ |
| 603 async.Future<PullResponse> pull(PullRequest request, core.String subscription)
{ | 628 async.Future<PullResponse> pull(PullRequest request, core.String subscription)
{ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 629 | 654 |
| 630 /** | 655 /** |
| 631 * Sets the access control policy on the specified resource. Replaces any | 656 * Sets the access control policy on the specified resource. Replaces any |
| 632 * existing policy. | 657 * existing policy. |
| 633 * | 658 * |
| 634 * [request] - The metadata request object. | 659 * [request] - The metadata request object. |
| 635 * | 660 * |
| 636 * Request parameters: | 661 * Request parameters: |
| 637 * | 662 * |
| 638 * [resource] - REQUIRED: The resource for which the policy is being | 663 * [resource] - REQUIRED: The resource for which the policy is being |
| 639 * specified. `resource` is usually specified as a path. For example, a | 664 * specified. |
| 640 * Project resource is specified as `projects/{project}`. | 665 * `resource` is usually specified as a path. For example, a Project |
| 641 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 666 * resource is specified as `projects/{project}`. |
| 667 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 642 * | 668 * |
| 643 * Completes with a [Policy]. | 669 * Completes with a [Policy]. |
| 644 * | 670 * |
| 645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 671 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 646 * error. | 672 * error. |
| 647 * | 673 * |
| 648 * If the used [http.Client] completes with an error when making a REST call, | 674 * If the used [http.Client] completes with an error when making a REST call, |
| 649 * this method will complete with the same error. | 675 * this method will complete with the same error. |
| 650 */ | 676 */ |
| 651 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 677 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 670 body: _body, | 696 body: _body, |
| 671 queryParams: _queryParams, | 697 queryParams: _queryParams, |
| 672 uploadOptions: _uploadOptions, | 698 uploadOptions: _uploadOptions, |
| 673 uploadMedia: _uploadMedia, | 699 uploadMedia: _uploadMedia, |
| 674 downloadOptions: _downloadOptions); | 700 downloadOptions: _downloadOptions); |
| 675 return _response.then((data) => new Policy.fromJson(data)); | 701 return _response.then((data) => new Policy.fromJson(data)); |
| 676 } | 702 } |
| 677 | 703 |
| 678 /** | 704 /** |
| 679 * Returns permissions that a caller has on the specified resource. | 705 * Returns permissions that a caller has on the specified resource. |
| 706 * If the resource does not exist, this will return an empty set of |
| 707 * permissions, not a NOT_FOUND error. |
| 680 * | 708 * |
| 681 * [request] - The metadata request object. | 709 * [request] - The metadata request object. |
| 682 * | 710 * |
| 683 * Request parameters: | 711 * Request parameters: |
| 684 * | 712 * |
| 685 * [resource] - REQUIRED: The resource for which the policy detail is being | 713 * [resource] - REQUIRED: The resource for which the policy detail is being |
| 686 * requested. `resource` is usually specified as a path. For example, a | 714 * requested. |
| 687 * Project resource is specified as `projects/{project}`. | 715 * `resource` is usually specified as a path. For example, a Project |
| 688 * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". | 716 * resource is specified as `projects/{project}`. |
| 717 * Value must have pattern "^projects/[^/]+/subscriptions/[^/]+$". |
| 689 * | 718 * |
| 690 * Completes with a [TestIamPermissionsResponse]. | 719 * Completes with a [TestIamPermissionsResponse]. |
| 691 * | 720 * |
| 692 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 693 * error. | 722 * error. |
| 694 * | 723 * |
| 695 * If the used [http.Client] completes with an error when making a REST call, | 724 * If the used [http.Client] completes with an error when making a REST call, |
| 696 * this method will complete with the same error. | 725 * this method will complete with the same error. |
| 697 */ | 726 */ |
| 698 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 727 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 /** | 765 /** |
| 737 * Creates the given topic with the given name. | 766 * Creates the given topic with the given name. |
| 738 * | 767 * |
| 739 * [request] - The metadata request object. | 768 * [request] - The metadata request object. |
| 740 * | 769 * |
| 741 * Request parameters: | 770 * Request parameters: |
| 742 * | 771 * |
| 743 * [name] - The name of the topic. It must have the format | 772 * [name] - The name of the topic. It must have the format |
| 744 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, | 773 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, |
| 745 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), | 774 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), |
| 746 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs | 775 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent |
| 747 * (`%`). It must be between 3 and 255 characters in length, and it must not | 776 * signs (`%`). It must be between 3 and 255 characters in length, and it |
| 748 * start with `"goog"`. | 777 * must not start with `"goog"`. |
| 749 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 778 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 750 * | 779 * |
| 751 * Completes with a [Topic]. | 780 * Completes with a [Topic]. |
| 752 * | 781 * |
| 753 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 782 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 754 * error. | 783 * error. |
| 755 * | 784 * |
| 756 * If the used [http.Client] completes with an error when making a REST call, | 785 * If the used [http.Client] completes with an error when making a REST call, |
| 757 * this method will complete with the same error. | 786 * this method will complete with the same error. |
| 758 */ | 787 */ |
| 759 async.Future<Topic> create(Topic request, core.String name) { | 788 async.Future<Topic> create(Topic request, core.String name) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 786 /** | 815 /** |
| 787 * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic | 816 * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic |
| 788 * does not exist. After a topic is deleted, a new topic may be created with | 817 * does not exist. After a topic is deleted, a new topic may be created with |
| 789 * the same name; this is an entirely new topic with none of the old | 818 * the same name; this is an entirely new topic with none of the old |
| 790 * configuration or subscriptions. Existing subscriptions to this topic are | 819 * configuration or subscriptions. Existing subscriptions to this topic are |
| 791 * not deleted, but their `topic` field is set to `_deleted-topic_`. | 820 * not deleted, but their `topic` field is set to `_deleted-topic_`. |
| 792 * | 821 * |
| 793 * Request parameters: | 822 * Request parameters: |
| 794 * | 823 * |
| 795 * [topic] - Name of the topic to delete. | 824 * [topic] - Name of the topic to delete. |
| 796 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 825 * Format is `projects/{project}/topics/{topic}`. |
| 826 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 797 * | 827 * |
| 798 * Completes with a [Empty]. | 828 * Completes with a [Empty]. |
| 799 * | 829 * |
| 800 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 830 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 801 * error. | 831 * error. |
| 802 * | 832 * |
| 803 * If the used [http.Client] completes with an error when making a REST call, | 833 * If the used [http.Client] completes with an error when making a REST call, |
| 804 * this method will complete with the same error. | 834 * this method will complete with the same error. |
| 805 */ | 835 */ |
| 806 async.Future<Empty> delete(core.String topic) { | 836 async.Future<Empty> delete(core.String topic) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 826 downloadOptions: _downloadOptions); | 856 downloadOptions: _downloadOptions); |
| 827 return _response.then((data) => new Empty.fromJson(data)); | 857 return _response.then((data) => new Empty.fromJson(data)); |
| 828 } | 858 } |
| 829 | 859 |
| 830 /** | 860 /** |
| 831 * Gets the configuration of a topic. | 861 * Gets the configuration of a topic. |
| 832 * | 862 * |
| 833 * Request parameters: | 863 * Request parameters: |
| 834 * | 864 * |
| 835 * [topic] - The name of the topic to get. | 865 * [topic] - The name of the topic to get. |
| 836 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 866 * Format is `projects/{project}/topics/{topic}`. |
| 867 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 837 * | 868 * |
| 838 * Completes with a [Topic]. | 869 * Completes with a [Topic]. |
| 839 * | 870 * |
| 840 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 871 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 841 * error. | 872 * error. |
| 842 * | 873 * |
| 843 * If the used [http.Client] completes with an error when making a REST call, | 874 * If the used [http.Client] completes with an error when making a REST call, |
| 844 * this method will complete with the same error. | 875 * this method will complete with the same error. |
| 845 */ | 876 */ |
| 846 async.Future<Topic> get(core.String topic) { | 877 async.Future<Topic> get(core.String topic) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 861 "GET", | 892 "GET", |
| 862 body: _body, | 893 body: _body, |
| 863 queryParams: _queryParams, | 894 queryParams: _queryParams, |
| 864 uploadOptions: _uploadOptions, | 895 uploadOptions: _uploadOptions, |
| 865 uploadMedia: _uploadMedia, | 896 uploadMedia: _uploadMedia, |
| 866 downloadOptions: _downloadOptions); | 897 downloadOptions: _downloadOptions); |
| 867 return _response.then((data) => new Topic.fromJson(data)); | 898 return _response.then((data) => new Topic.fromJson(data)); |
| 868 } | 899 } |
| 869 | 900 |
| 870 /** | 901 /** |
| 871 * Gets the access control policy for a resource. Returns an empty policy if | 902 * Gets the access control policy for a resource. |
| 872 * the resource exists and does not have a policy set. | 903 * Returns an empty policy if the resource exists and does not have a policy |
| 904 * set. |
| 873 * | 905 * |
| 874 * Request parameters: | 906 * Request parameters: |
| 875 * | 907 * |
| 876 * [resource] - REQUIRED: The resource for which the policy is being | 908 * [resource] - REQUIRED: The resource for which the policy is being |
| 877 * requested. `resource` is usually specified as a path. For example, a | 909 * requested. |
| 878 * Project resource is specified as `projects/{project}`. | 910 * `resource` is usually specified as a path. For example, a Project |
| 879 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 911 * resource is specified as `projects/{project}`. |
| 912 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 880 * | 913 * |
| 881 * Completes with a [Policy]. | 914 * Completes with a [Policy]. |
| 882 * | 915 * |
| 883 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 916 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 884 * error. | 917 * error. |
| 885 * | 918 * |
| 886 * If the used [http.Client] completes with an error when making a REST call, | 919 * If the used [http.Client] completes with an error when making a REST call, |
| 887 * this method will complete with the same error. | 920 * this method will complete with the same error. |
| 888 */ | 921 */ |
| 889 async.Future<Policy> getIamPolicy(core.String resource) { | 922 async.Future<Policy> getIamPolicy(core.String resource) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 909 downloadOptions: _downloadOptions); | 942 downloadOptions: _downloadOptions); |
| 910 return _response.then((data) => new Policy.fromJson(data)); | 943 return _response.then((data) => new Policy.fromJson(data)); |
| 911 } | 944 } |
| 912 | 945 |
| 913 /** | 946 /** |
| 914 * Lists matching topics. | 947 * Lists matching topics. |
| 915 * | 948 * |
| 916 * Request parameters: | 949 * Request parameters: |
| 917 * | 950 * |
| 918 * [project] - The name of the cloud project that topics belong to. | 951 * [project] - The name of the cloud project that topics belong to. |
| 919 * Value must have pattern "^projects/[^/]*$". | 952 * Format is `projects/{project}`. |
| 953 * Value must have pattern "^projects/[^/]+$". |
| 920 * | 954 * |
| 921 * [pageSize] - Maximum number of topics to return. | 955 * [pageSize] - Maximum number of topics to return. |
| 922 * | 956 * |
| 923 * [pageToken] - The value returned by the last `ListTopicsResponse`; | 957 * [pageToken] - The value returned by the last `ListTopicsResponse`; |
| 924 * indicates that this is a continuation of a prior `ListTopics` call, and | 958 * indicates that this is |
| 925 * that the system should return the next page of data. | 959 * a continuation of a prior `ListTopics` call, and that the system should |
| 960 * return the next page of data. |
| 926 * | 961 * |
| 927 * Completes with a [ListTopicsResponse]. | 962 * Completes with a [ListTopicsResponse]. |
| 928 * | 963 * |
| 929 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 930 * error. | 965 * error. |
| 931 * | 966 * |
| 932 * If the used [http.Client] completes with an error when making a REST call, | 967 * If the used [http.Client] completes with an error when making a REST call, |
| 933 * this method will complete with the same error. | 968 * this method will complete with the same error. |
| 934 */ | 969 */ |
| 935 async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize,
core.String pageToken}) { | 970 async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize,
core.String pageToken}) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 958 queryParams: _queryParams, | 993 queryParams: _queryParams, |
| 959 uploadOptions: _uploadOptions, | 994 uploadOptions: _uploadOptions, |
| 960 uploadMedia: _uploadMedia, | 995 uploadMedia: _uploadMedia, |
| 961 downloadOptions: _downloadOptions); | 996 downloadOptions: _downloadOptions); |
| 962 return _response.then((data) => new ListTopicsResponse.fromJson(data)); | 997 return _response.then((data) => new ListTopicsResponse.fromJson(data)); |
| 963 } | 998 } |
| 964 | 999 |
| 965 /** | 1000 /** |
| 966 * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic | 1001 * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic |
| 967 * does not exist. The message payload must not be empty; it must contain | 1002 * does not exist. The message payload must not be empty; it must contain |
| 968 * either a non-empty data field, or at least one attribute. | 1003 * either a non-empty data field, or at least one attribute. |
| 969 * | 1004 * |
| 970 * [request] - The metadata request object. | 1005 * [request] - The metadata request object. |
| 971 * | 1006 * |
| 972 * Request parameters: | 1007 * Request parameters: |
| 973 * | 1008 * |
| 974 * [topic] - The messages in the request will be published on this topic. | 1009 * [topic] - The messages in the request will be published on this topic. |
| 975 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 1010 * Format is `projects/{project}/topics/{topic}`. |
| 1011 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 976 * | 1012 * |
| 977 * Completes with a [PublishResponse]. | 1013 * Completes with a [PublishResponse]. |
| 978 * | 1014 * |
| 979 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1015 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 980 * error. | 1016 * error. |
| 981 * | 1017 * |
| 982 * If the used [http.Client] completes with an error when making a REST call, | 1018 * If the used [http.Client] completes with an error when making a REST call, |
| 983 * this method will complete with the same error. | 1019 * this method will complete with the same error. |
| 984 */ | 1020 */ |
| 985 async.Future<PublishResponse> publish(PublishRequest request, core.String topi
c) { | 1021 async.Future<PublishResponse> publish(PublishRequest request, core.String topi
c) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1011 | 1047 |
| 1012 /** | 1048 /** |
| 1013 * Sets the access control policy on the specified resource. Replaces any | 1049 * Sets the access control policy on the specified resource. Replaces any |
| 1014 * existing policy. | 1050 * existing policy. |
| 1015 * | 1051 * |
| 1016 * [request] - The metadata request object. | 1052 * [request] - The metadata request object. |
| 1017 * | 1053 * |
| 1018 * Request parameters: | 1054 * Request parameters: |
| 1019 * | 1055 * |
| 1020 * [resource] - REQUIRED: The resource for which the policy is being | 1056 * [resource] - REQUIRED: The resource for which the policy is being |
| 1021 * specified. `resource` is usually specified as a path. For example, a | 1057 * specified. |
| 1022 * Project resource is specified as `projects/{project}`. | 1058 * `resource` is usually specified as a path. For example, a Project |
| 1023 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 1059 * resource is specified as `projects/{project}`. |
| 1060 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 1024 * | 1061 * |
| 1025 * Completes with a [Policy]. | 1062 * Completes with a [Policy]. |
| 1026 * | 1063 * |
| 1027 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1064 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1028 * error. | 1065 * error. |
| 1029 * | 1066 * |
| 1030 * If the used [http.Client] completes with an error when making a REST call, | 1067 * If the used [http.Client] completes with an error when making a REST call, |
| 1031 * this method will complete with the same error. | 1068 * this method will complete with the same error. |
| 1032 */ | 1069 */ |
| 1033 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 1070 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1052 body: _body, | 1089 body: _body, |
| 1053 queryParams: _queryParams, | 1090 queryParams: _queryParams, |
| 1054 uploadOptions: _uploadOptions, | 1091 uploadOptions: _uploadOptions, |
| 1055 uploadMedia: _uploadMedia, | 1092 uploadMedia: _uploadMedia, |
| 1056 downloadOptions: _downloadOptions); | 1093 downloadOptions: _downloadOptions); |
| 1057 return _response.then((data) => new Policy.fromJson(data)); | 1094 return _response.then((data) => new Policy.fromJson(data)); |
| 1058 } | 1095 } |
| 1059 | 1096 |
| 1060 /** | 1097 /** |
| 1061 * Returns permissions that a caller has on the specified resource. | 1098 * Returns permissions that a caller has on the specified resource. |
| 1099 * If the resource does not exist, this will return an empty set of |
| 1100 * permissions, not a NOT_FOUND error. |
| 1062 * | 1101 * |
| 1063 * [request] - The metadata request object. | 1102 * [request] - The metadata request object. |
| 1064 * | 1103 * |
| 1065 * Request parameters: | 1104 * Request parameters: |
| 1066 * | 1105 * |
| 1067 * [resource] - REQUIRED: The resource for which the policy detail is being | 1106 * [resource] - REQUIRED: The resource for which the policy detail is being |
| 1068 * requested. `resource` is usually specified as a path. For example, a | 1107 * requested. |
| 1069 * Project resource is specified as `projects/{project}`. | 1108 * `resource` is usually specified as a path. For example, a Project |
| 1070 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 1109 * resource is specified as `projects/{project}`. |
| 1110 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 1071 * | 1111 * |
| 1072 * Completes with a [TestIamPermissionsResponse]. | 1112 * Completes with a [TestIamPermissionsResponse]. |
| 1073 * | 1113 * |
| 1074 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1114 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1075 * error. | 1115 * error. |
| 1076 * | 1116 * |
| 1077 * If the used [http.Client] completes with an error when making a REST call, | 1117 * If the used [http.Client] completes with an error when making a REST call, |
| 1078 * this method will complete with the same error. | 1118 * this method will complete with the same error. |
| 1079 */ | 1119 */ |
| 1080 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 1120 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 | 1152 |
| 1113 ProjectsTopicsSubscriptionsResourceApi(commons.ApiRequester client) : | 1153 ProjectsTopicsSubscriptionsResourceApi(commons.ApiRequester client) : |
| 1114 _requester = client; | 1154 _requester = client; |
| 1115 | 1155 |
| 1116 /** | 1156 /** |
| 1117 * Lists the name of the subscriptions for this topic. | 1157 * Lists the name of the subscriptions for this topic. |
| 1118 * | 1158 * |
| 1119 * Request parameters: | 1159 * Request parameters: |
| 1120 * | 1160 * |
| 1121 * [topic] - The name of the topic that subscriptions are attached to. | 1161 * [topic] - The name of the topic that subscriptions are attached to. |
| 1122 * Value must have pattern "^projects/[^/] * / topics/[^/]*$". | 1162 * Format is `projects/{project}/topics/{topic}`. |
| 1163 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". |
| 1123 * | 1164 * |
| 1124 * [pageSize] - Maximum number of subscription names to return. | 1165 * [pageSize] - Maximum number of subscription names to return. |
| 1125 * | 1166 * |
| 1126 * [pageToken] - The value returned by the last | 1167 * [pageToken] - The value returned by the last |
| 1127 * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of | 1168 * `ListTopicSubscriptionsResponse`; indicates |
| 1128 * a prior `ListTopicSubscriptions` call, and that the system should return | 1169 * that this is a continuation of a prior `ListTopicSubscriptions` call, and |
| 1129 * the next page of data. | 1170 * that the system should return the next page of data. |
| 1130 * | 1171 * |
| 1131 * Completes with a [ListTopicSubscriptionsResponse]. | 1172 * Completes with a [ListTopicSubscriptionsResponse]. |
| 1132 * | 1173 * |
| 1133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1174 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1134 * error. | 1175 * error. |
| 1135 * | 1176 * |
| 1136 * If the used [http.Client] completes with an error when making a REST call, | 1177 * If the used [http.Client] completes with an error when making a REST call, |
| 1137 * this method will complete with the same error. | 1178 * this method will complete with the same error. |
| 1138 */ | 1179 */ |
| 1139 async.Future<ListTopicSubscriptionsResponse> list(core.String topic, {core.int
pageSize, core.String pageToken}) { | 1180 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 Loading... |
| 1192 _json["ackIds"] = ackIds; | 1233 _json["ackIds"] = ackIds; |
| 1193 } | 1234 } |
| 1194 return _json; | 1235 return _json; |
| 1195 } | 1236 } |
| 1196 } | 1237 } |
| 1197 | 1238 |
| 1198 /** Associates `members` with a `role`. */ | 1239 /** Associates `members` with a `role`. */ |
| 1199 class Binding { | 1240 class Binding { |
| 1200 /** | 1241 /** |
| 1201 * Specifies the identities requesting access for a Cloud Platform resource. | 1242 * Specifies the identities requesting access for a Cloud Platform resource. |
| 1202 * `members` can have the following values: * `allUsers`: A special identifier | 1243 * `members` can have the following values: |
| 1203 * that represents anyone who is on the internet; with or without a Google | 1244 * |
| 1204 * account. * `allAuthenticatedUsers`: A special identifier that represents | 1245 * * `allUsers`: A special identifier that represents anyone who is |
| 1205 * anyone who is authenticated with a Google account or a service account. * | 1246 * on the internet; with or without a Google account. |
| 1206 * `user:{emailid}`: An email address that represents a specific Google | 1247 * |
| 1207 * account. For example, `alice@gmail.com` or `joe@example.com`. * | 1248 * * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 1208 * `serviceAccount:{emailid}`: An email address that represents a service | 1249 * who is authenticated with a Google account or a service account. |
| 1209 * account. For example, `my-other-app@appspot.gserviceaccount.com`. * | 1250 * |
| 1210 * `group:{emailid}`: An email address that represents a Google group. For | 1251 * * `user:{emailid}`: An email address that represents a specific Google |
| 1211 * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain | 1252 * account. For example, `alice@gmail.com` or `joe@example.com`. |
| 1212 * name that represents all the users of that domain. For example, | 1253 * |
| 1213 * `google.com` or `example.com`. | 1254 * |
| 1255 * * `serviceAccount:{emailid}`: An email address that represents a service |
| 1256 * account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 1257 * |
| 1258 * * `group:{emailid}`: An email address that represents a Google group. |
| 1259 * For example, `admins@example.com`. |
| 1260 * |
| 1261 * * `domain:{domain}`: A Google Apps domain name that represents all the |
| 1262 * users of that domain. For example, `google.com` or `example.com`. |
| 1214 */ | 1263 */ |
| 1215 core.List<core.String> members; | 1264 core.List<core.String> members; |
| 1216 /** | 1265 /** |
| 1217 * Role that is assigned to `members`. For example, `roles/viewer`, | 1266 * Role that is assigned to `members`. |
| 1218 * `roles/editor`, or `roles/owner`. Required | 1267 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 1268 * Required |
| 1219 */ | 1269 */ |
| 1220 core.String role; | 1270 core.String role; |
| 1221 | 1271 |
| 1222 Binding(); | 1272 Binding(); |
| 1223 | 1273 |
| 1224 Binding.fromJson(core.Map _json) { | 1274 Binding.fromJson(core.Map _json) { |
| 1225 if (_json.containsKey("members")) { | 1275 if (_json.containsKey("members")) { |
| 1226 members = _json["members"]; | 1276 members = _json["members"]; |
| 1227 } | 1277 } |
| 1228 if (_json.containsKey("role")) { | 1278 if (_json.containsKey("role")) { |
| 1229 role = _json["role"]; | 1279 role = _json["role"]; |
| 1230 } | 1280 } |
| 1231 } | 1281 } |
| 1232 | 1282 |
| 1233 core.Map toJson() { | 1283 core.Map toJson() { |
| 1234 var _json = new core.Map(); | 1284 var _json = new core.Map(); |
| 1235 if (members != null) { | 1285 if (members != null) { |
| 1236 _json["members"] = members; | 1286 _json["members"] = members; |
| 1237 } | 1287 } |
| 1238 if (role != null) { | 1288 if (role != null) { |
| 1239 _json["role"] = role; | 1289 _json["role"] = role; |
| 1240 } | 1290 } |
| 1241 return _json; | 1291 return _json; |
| 1242 } | 1292 } |
| 1243 } | 1293 } |
| 1244 | 1294 |
| 1245 /** | 1295 /** |
| 1246 * A generic empty message that you can re-use to avoid defining duplicated | 1296 * A generic empty message that you can re-use to avoid defining duplicated |
| 1247 * empty messages in your APIs. A typical example is to use it as the request or | 1297 * empty messages in your APIs. A typical example is to use it as the request |
| 1248 * the response type of an API method. For instance: service Foo { rpc | 1298 * or the response type of an API method. For instance: |
| 1249 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON | 1299 * |
| 1250 * representation for `Empty` is empty JSON object `{}`. | 1300 * service Foo { |
| 1301 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1302 * } |
| 1303 * |
| 1304 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 1251 */ | 1305 */ |
| 1252 class Empty { | 1306 class Empty { |
| 1253 | 1307 |
| 1254 Empty(); | 1308 Empty(); |
| 1255 | 1309 |
| 1256 Empty.fromJson(core.Map _json) { | 1310 Empty.fromJson(core.Map _json) { |
| 1257 } | 1311 } |
| 1258 | 1312 |
| 1259 core.Map toJson() { | 1313 core.Map toJson() { |
| 1260 var _json = new core.Map(); | 1314 var _json = new core.Map(); |
| 1261 return _json; | 1315 return _json; |
| 1262 } | 1316 } |
| 1263 } | 1317 } |
| 1264 | 1318 |
| 1265 /** Response for the `ListSubscriptions` method. */ | 1319 /** Response for the `ListSubscriptions` method. */ |
| 1266 class ListSubscriptionsResponse { | 1320 class ListSubscriptionsResponse { |
| 1267 /** | 1321 /** |
| 1268 * If not empty, indicates that there may be more subscriptions that match the | 1322 * If not empty, indicates that there may be more subscriptions that match |
| 1269 * request; this value should be passed in a new `ListSubscriptionsRequest` to | 1323 * the request; this value should be passed in a new |
| 1270 * get more subscriptions. | 1324 * `ListSubscriptionsRequest` to get more subscriptions. |
| 1271 */ | 1325 */ |
| 1272 core.String nextPageToken; | 1326 core.String nextPageToken; |
| 1273 /** The subscriptions that match the request. */ | 1327 /** The subscriptions that match the request. */ |
| 1274 core.List<Subscription> subscriptions; | 1328 core.List<Subscription> subscriptions; |
| 1275 | 1329 |
| 1276 ListSubscriptionsResponse(); | 1330 ListSubscriptionsResponse(); |
| 1277 | 1331 |
| 1278 ListSubscriptionsResponse.fromJson(core.Map _json) { | 1332 ListSubscriptionsResponse.fromJson(core.Map _json) { |
| 1279 if (_json.containsKey("nextPageToken")) { | 1333 if (_json.containsKey("nextPageToken")) { |
| 1280 nextPageToken = _json["nextPageToken"]; | 1334 nextPageToken = _json["nextPageToken"]; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1292 if (subscriptions != null) { | 1346 if (subscriptions != null) { |
| 1293 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to
List(); | 1347 _json["subscriptions"] = subscriptions.map((value) => (value).toJson()).to
List(); |
| 1294 } | 1348 } |
| 1295 return _json; | 1349 return _json; |
| 1296 } | 1350 } |
| 1297 } | 1351 } |
| 1298 | 1352 |
| 1299 /** Response for the `ListTopicSubscriptions` method. */ | 1353 /** Response for the `ListTopicSubscriptions` method. */ |
| 1300 class ListTopicSubscriptionsResponse { | 1354 class ListTopicSubscriptionsResponse { |
| 1301 /** | 1355 /** |
| 1302 * If not empty, indicates that there may be more subscriptions that match the | 1356 * If not empty, indicates that there may be more subscriptions that match |
| 1303 * request; this value should be passed in a new | 1357 * the request; this value should be passed in a new |
| 1304 * `ListTopicSubscriptionsRequest` to get more subscriptions. | 1358 * `ListTopicSubscriptionsRequest` to get more subscriptions. |
| 1305 */ | 1359 */ |
| 1306 core.String nextPageToken; | 1360 core.String nextPageToken; |
| 1307 /** The names of the subscriptions that match the request. */ | 1361 /** The names of the subscriptions that match the request. */ |
| 1308 core.List<core.String> subscriptions; | 1362 core.List<core.String> subscriptions; |
| 1309 | 1363 |
| 1310 ListTopicSubscriptionsResponse(); | 1364 ListTopicSubscriptionsResponse(); |
| 1311 | 1365 |
| 1312 ListTopicSubscriptionsResponse.fromJson(core.Map _json) { | 1366 ListTopicSubscriptionsResponse.fromJson(core.Map _json) { |
| 1313 if (_json.containsKey("nextPageToken")) { | 1367 if (_json.containsKey("nextPageToken")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 if (topics != null) { | 1413 if (topics != null) { |
| 1360 _json["topics"] = topics.map((value) => (value).toJson()).toList(); | 1414 _json["topics"] = topics.map((value) => (value).toJson()).toList(); |
| 1361 } | 1415 } |
| 1362 return _json; | 1416 return _json; |
| 1363 } | 1417 } |
| 1364 } | 1418 } |
| 1365 | 1419 |
| 1366 /** Request for the ModifyAckDeadline method. */ | 1420 /** Request for the ModifyAckDeadline method. */ |
| 1367 class ModifyAckDeadlineRequest { | 1421 class ModifyAckDeadlineRequest { |
| 1368 /** | 1422 /** |
| 1369 * The new ack deadline with respect to the time this request was sent to the | 1423 * The new ack deadline with respect to the time this request was sent to |
| 1370 * Pub/Sub system. Must be >= 0. For example, if the value is 10, the new ack | 1424 * the Pub/Sub system. For example, if the value is 10, the new |
| 1371 * deadline will expire 10 seconds after the `ModifyAckDeadline` call was | 1425 * ack deadline will expire 10 seconds after the `ModifyAckDeadline` call |
| 1372 * made. Specifying zero may immediately make the message available for | 1426 * was made. Specifying zero may immediately make the message available for |
| 1373 * another pull request. | 1427 * another pull request. |
| 1428 * The minimum deadline you can specify is 0 seconds. |
| 1429 * The maximum deadline you can specify is 600 seconds (10 minutes). |
| 1374 */ | 1430 */ |
| 1375 core.int ackDeadlineSeconds; | 1431 core.int ackDeadlineSeconds; |
| 1376 /** List of acknowledgment IDs. */ | 1432 /** List of acknowledgment IDs. */ |
| 1377 core.List<core.String> ackIds; | 1433 core.List<core.String> ackIds; |
| 1378 | 1434 |
| 1379 ModifyAckDeadlineRequest(); | 1435 ModifyAckDeadlineRequest(); |
| 1380 | 1436 |
| 1381 ModifyAckDeadlineRequest.fromJson(core.Map _json) { | 1437 ModifyAckDeadlineRequest.fromJson(core.Map _json) { |
| 1382 if (_json.containsKey("ackDeadlineSeconds")) { | 1438 if (_json.containsKey("ackDeadlineSeconds")) { |
| 1383 ackDeadlineSeconds = _json["ackDeadlineSeconds"]; | 1439 ackDeadlineSeconds = _json["ackDeadlineSeconds"]; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1395 if (ackIds != null) { | 1451 if (ackIds != null) { |
| 1396 _json["ackIds"] = ackIds; | 1452 _json["ackIds"] = ackIds; |
| 1397 } | 1453 } |
| 1398 return _json; | 1454 return _json; |
| 1399 } | 1455 } |
| 1400 } | 1456 } |
| 1401 | 1457 |
| 1402 /** Request for the ModifyPushConfig method. */ | 1458 /** Request for the ModifyPushConfig method. */ |
| 1403 class ModifyPushConfigRequest { | 1459 class ModifyPushConfigRequest { |
| 1404 /** | 1460 /** |
| 1405 * The push configuration for future deliveries. An empty `pushConfig` | 1461 * The push configuration for future deliveries. |
| 1406 * indicates that the Pub/Sub system should stop pushing messages from the | 1462 * |
| 1407 * given subscription and allow messages to be pulled and acknowledged - | 1463 * An empty `pushConfig` indicates that the Pub/Sub system should |
| 1408 * effectively pausing the subscription if `Pull` is not called. | 1464 * stop pushing messages from the given subscription and allow |
| 1465 * messages to be pulled and acknowledged - effectively pausing |
| 1466 * the subscription if `Pull` is not called. |
| 1409 */ | 1467 */ |
| 1410 PushConfig pushConfig; | 1468 PushConfig pushConfig; |
| 1411 | 1469 |
| 1412 ModifyPushConfigRequest(); | 1470 ModifyPushConfigRequest(); |
| 1413 | 1471 |
| 1414 ModifyPushConfigRequest.fromJson(core.Map _json) { | 1472 ModifyPushConfigRequest.fromJson(core.Map _json) { |
| 1415 if (_json.containsKey("pushConfig")) { | 1473 if (_json.containsKey("pushConfig")) { |
| 1416 pushConfig = new PushConfig.fromJson(_json["pushConfig"]); | 1474 pushConfig = new PushConfig.fromJson(_json["pushConfig"]); |
| 1417 } | 1475 } |
| 1418 } | 1476 } |
| 1419 | 1477 |
| 1420 core.Map toJson() { | 1478 core.Map toJson() { |
| 1421 var _json = new core.Map(); | 1479 var _json = new core.Map(); |
| 1422 if (pushConfig != null) { | 1480 if (pushConfig != null) { |
| 1423 _json["pushConfig"] = (pushConfig).toJson(); | 1481 _json["pushConfig"] = (pushConfig).toJson(); |
| 1424 } | 1482 } |
| 1425 return _json; | 1483 return _json; |
| 1426 } | 1484 } |
| 1427 } | 1485 } |
| 1428 | 1486 |
| 1429 /** | 1487 /** |
| 1430 * Defines an Identity and Access Management (IAM) policy. It is used to specify | 1488 * Defines an Identity and Access Management (IAM) policy. It is used to |
| 1431 * access control policies for Cloud Platform resources. A `Policy` consists of | 1489 * specify access control policies for Cloud Platform resources. |
| 1432 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, | 1490 * |
| 1433 * where the members can be user accounts, Google groups, Google domains, and | 1491 * |
| 1434 * service accounts. A `role` is a named list of permissions defined by IAM. | 1492 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of |
| 1435 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ | 1493 * `members` to a `role`, where the members can be user accounts, Google groups, |
| 1436 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", | 1494 * Google domains, and service accounts. A `role` is a named list of permissions |
| 1437 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": | 1495 * defined by IAM. |
| 1438 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description | 1496 * |
| 1439 * of IAM and its features, see the [IAM developer's | 1497 * **Example** |
| 1440 * guide](https://cloud.google.com/iam). | 1498 * |
| 1499 * { |
| 1500 * "bindings": [ |
| 1501 * { |
| 1502 * "role": "roles/owner", |
| 1503 * "members": [ |
| 1504 * "user:mike@example.com", |
| 1505 * "group:admins@example.com", |
| 1506 * "domain:google.com", |
| 1507 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", |
| 1508 * ] |
| 1509 * }, |
| 1510 * { |
| 1511 * "role": "roles/viewer", |
| 1512 * "members": ["user:sean@example.com"] |
| 1513 * } |
| 1514 * ] |
| 1515 * } |
| 1516 * |
| 1517 * For a description of IAM and its features, see the |
| 1518 * [IAM developer's guide](https://cloud.google.com/iam). |
| 1441 */ | 1519 */ |
| 1442 class Policy { | 1520 class Policy { |
| 1443 /** | 1521 /** |
| 1444 * Associates a list of `members` to a `role`. Multiple `bindings` must not be | 1522 * Associates a list of `members` to a `role`. |
| 1445 * specified for the same `role`. `bindings` with no members will result in an | 1523 * Multiple `bindings` must not be specified for the same `role`. |
| 1446 * error. | 1524 * `bindings` with no members will result in an error. |
| 1447 */ | 1525 */ |
| 1448 core.List<Binding> bindings; | 1526 core.List<Binding> bindings; |
| 1449 /** | 1527 /** |
| 1450 * `etag` is used for optimistic concurrency control as a way to help prevent | 1528 * `etag` is used for optimistic concurrency control as a way to help |
| 1451 * simultaneous updates of a policy from overwriting each other. It is | 1529 * prevent simultaneous updates of a policy from overwriting each other. |
| 1452 * strongly suggested that systems make use of the `etag` in the | 1530 * It is strongly suggested that systems make use of the `etag` in the |
| 1453 * read-modify-write cycle to perform policy updates in order to avoid race | 1531 * read-modify-write cycle to perform policy updates in order to avoid race |
| 1454 * conditions: An `etag` is returned in the response to `getIamPolicy`, and | 1532 * conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 1455 * systems are expected to put that etag in the request to `setIamPolicy` to | 1533 * systems are expected to put that etag in the request to `setIamPolicy` to |
| 1456 * ensure that their change will be applied to the same version of the policy. | 1534 * ensure that their change will be applied to the same version of the policy. |
| 1535 * |
| 1457 * If no `etag` is provided in the call to `setIamPolicy`, then the existing | 1536 * If no `etag` is provided in the call to `setIamPolicy`, then the existing |
| 1458 * policy is overwritten blindly. | 1537 * policy is overwritten blindly. |
| 1459 */ | 1538 */ |
| 1460 core.String etag; | 1539 core.String etag; |
| 1461 core.List<core.int> get etagAsBytes { | 1540 core.List<core.int> get etagAsBytes { |
| 1462 return convert.BASE64.decode(etag); | 1541 return convert.BASE64.decode(etag); |
| 1463 } | 1542 } |
| 1464 | 1543 |
| 1465 void set etagAsBytes(core.List<core.int> _bytes) { | 1544 void set etagAsBytes(core.List<core.int> _bytes) { |
| 1466 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 1545 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 if (messages != null) { | 1594 if (messages != null) { |
| 1516 _json["messages"] = messages.map((value) => (value).toJson()).toList(); | 1595 _json["messages"] = messages.map((value) => (value).toJson()).toList(); |
| 1517 } | 1596 } |
| 1518 return _json; | 1597 return _json; |
| 1519 } | 1598 } |
| 1520 } | 1599 } |
| 1521 | 1600 |
| 1522 /** Response for the `Publish` method. */ | 1601 /** Response for the `Publish` method. */ |
| 1523 class PublishResponse { | 1602 class PublishResponse { |
| 1524 /** | 1603 /** |
| 1525 * The server-assigned ID of each published message, in the same order as the | 1604 * The server-assigned ID of each published message, in the same order as |
| 1526 * messages in the request. IDs are guaranteed to be unique within the topic. | 1605 * the messages in the request. IDs are guaranteed to be unique within |
| 1606 * the topic. |
| 1527 */ | 1607 */ |
| 1528 core.List<core.String> messageIds; | 1608 core.List<core.String> messageIds; |
| 1529 | 1609 |
| 1530 PublishResponse(); | 1610 PublishResponse(); |
| 1531 | 1611 |
| 1532 PublishResponse.fromJson(core.Map _json) { | 1612 PublishResponse.fromJson(core.Map _json) { |
| 1533 if (_json.containsKey("messageIds")) { | 1613 if (_json.containsKey("messageIds")) { |
| 1534 messageIds = _json["messageIds"]; | 1614 messageIds = _json["messageIds"]; |
| 1535 } | 1615 } |
| 1536 } | 1616 } |
| 1537 | 1617 |
| 1538 core.Map toJson() { | 1618 core.Map toJson() { |
| 1539 var _json = new core.Map(); | 1619 var _json = new core.Map(); |
| 1540 if (messageIds != null) { | 1620 if (messageIds != null) { |
| 1541 _json["messageIds"] = messageIds; | 1621 _json["messageIds"] = messageIds; |
| 1542 } | 1622 } |
| 1543 return _json; | 1623 return _json; |
| 1544 } | 1624 } |
| 1545 } | 1625 } |
| 1546 | 1626 |
| 1547 /** | 1627 /** |
| 1548 * A message data and its attributes. The message payload must not be empty; it | 1628 * A message data and its attributes. The message payload must not be empty; |
| 1549 * must contain either a non-empty data field, or at least one attribute. | 1629 * it must contain either a non-empty data field, or at least one attribute. |
| 1550 */ | 1630 */ |
| 1551 class PubsubMessage { | 1631 class PubsubMessage { |
| 1552 /** Optional attributes for this message. */ | 1632 /** Optional attributes for this message. */ |
| 1553 core.Map<core.String, core.String> attributes; | 1633 core.Map<core.String, core.String> attributes; |
| 1554 /** | 1634 /** The message payload. */ |
| 1555 * The message payload. For JSON requests, the value of this field must be | |
| 1556 * [base64-encoded](https://tools.ietf.org/html/rfc4648). | |
| 1557 */ | |
| 1558 core.String data; | 1635 core.String data; |
| 1559 core.List<core.int> get dataAsBytes { | 1636 core.List<core.int> get dataAsBytes { |
| 1560 return convert.BASE64.decode(data); | 1637 return convert.BASE64.decode(data); |
| 1561 } | 1638 } |
| 1562 | 1639 |
| 1563 void set dataAsBytes(core.List<core.int> _bytes) { | 1640 void set dataAsBytes(core.List<core.int> _bytes) { |
| 1564 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 1641 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
| 1565 } | 1642 } |
| 1566 /** | 1643 /** |
| 1567 * ID of this message, assigned by the server when the message is published. | 1644 * ID of this message, assigned by the server when the message is published. |
| 1568 * Guaranteed to be unique within the topic. This value may be read by a | 1645 * Guaranteed to be unique within the topic. This value may be read by a |
| 1569 * subscriber that receives a `PubsubMessage` via a `Pull` call or a push | 1646 * subscriber that receives a `PubsubMessage` via a `Pull` call or a push |
| 1570 * delivery. It must not be populated by the publisher in a `Publish` call. | 1647 * delivery. It must not be populated by the publisher in a `Publish` call. |
| 1571 */ | 1648 */ |
| 1572 core.String messageId; | 1649 core.String messageId; |
| 1573 /** | 1650 /** |
| 1574 * The time at which the message was published, populated by the server when | 1651 * The time at which the message was published, populated by the server when |
| 1575 * it receives the `Publish` call. It must not be populated by the publisher | 1652 * it receives the `Publish` call. It must not be populated by the |
| 1576 * in a `Publish` call. | 1653 * publisher in a `Publish` call. |
| 1577 */ | 1654 */ |
| 1578 core.String publishTime; | 1655 core.String publishTime; |
| 1579 | 1656 |
| 1580 PubsubMessage(); | 1657 PubsubMessage(); |
| 1581 | 1658 |
| 1582 PubsubMessage.fromJson(core.Map _json) { | 1659 PubsubMessage.fromJson(core.Map _json) { |
| 1583 if (_json.containsKey("attributes")) { | 1660 if (_json.containsKey("attributes")) { |
| 1584 attributes = _json["attributes"]; | 1661 attributes = _json["attributes"]; |
| 1585 } | 1662 } |
| 1586 if (_json.containsKey("data")) { | 1663 if (_json.containsKey("data")) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1613 } | 1690 } |
| 1614 | 1691 |
| 1615 /** Request for the `Pull` method. */ | 1692 /** Request for the `Pull` method. */ |
| 1616 class PullRequest { | 1693 class PullRequest { |
| 1617 /** | 1694 /** |
| 1618 * The maximum number of messages returned for this request. The Pub/Sub | 1695 * The maximum number of messages returned for this request. The Pub/Sub |
| 1619 * system may return fewer than the number specified. | 1696 * system may return fewer than the number specified. |
| 1620 */ | 1697 */ |
| 1621 core.int maxMessages; | 1698 core.int maxMessages; |
| 1622 /** | 1699 /** |
| 1623 * If this is specified as true the system will respond immediately even if it | 1700 * If this field set to true, the system will respond immediately even if |
| 1624 * is not able to return a message in the `Pull` response. Otherwise the | 1701 * it there are no messages available to return in the `Pull` response. |
| 1625 * system is allowed to wait until at least one message is available rather | 1702 * Otherwise, the system may wait (for a bounded amount of time) until at |
| 1626 * than returning no messages. The client may cancel the request if it does | 1703 * least one message is available, rather than returning no messages. The |
| 1627 * not wish to wait any longer for the response. | 1704 * client may cancel the request if it does not wish to wait any longer for |
| 1705 * the response. |
| 1628 */ | 1706 */ |
| 1629 core.bool returnImmediately; | 1707 core.bool returnImmediately; |
| 1630 | 1708 |
| 1631 PullRequest(); | 1709 PullRequest(); |
| 1632 | 1710 |
| 1633 PullRequest.fromJson(core.Map _json) { | 1711 PullRequest.fromJson(core.Map _json) { |
| 1634 if (_json.containsKey("maxMessages")) { | 1712 if (_json.containsKey("maxMessages")) { |
| 1635 maxMessages = _json["maxMessages"]; | 1713 maxMessages = _json["maxMessages"]; |
| 1636 } | 1714 } |
| 1637 if (_json.containsKey("returnImmediately")) { | 1715 if (_json.containsKey("returnImmediately")) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1674 if (receivedMessages != null) { | 1752 if (receivedMessages != null) { |
| 1675 _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson
()).toList(); | 1753 _json["receivedMessages"] = receivedMessages.map((value) => (value).toJson
()).toList(); |
| 1676 } | 1754 } |
| 1677 return _json; | 1755 return _json; |
| 1678 } | 1756 } |
| 1679 } | 1757 } |
| 1680 | 1758 |
| 1681 /** Configuration for a push delivery endpoint. */ | 1759 /** Configuration for a push delivery endpoint. */ |
| 1682 class PushConfig { | 1760 class PushConfig { |
| 1683 /** | 1761 /** |
| 1684 * Endpoint configuration attributes. Every endpoint has a set of API | 1762 * Endpoint configuration attributes. |
| 1685 * supported attributes that can be used to control different aspects of the | 1763 * |
| 1686 * message delivery. The currently supported attribute is `x-goog-version`, | 1764 * Every endpoint has a set of API supported attributes that can be used to |
| 1687 * which you can use to change the format of the push message. This attribute | 1765 * control different aspects of the message delivery. |
| 1688 * indicates the version of the data expected by the endpoint. This controls | 1766 * |
| 1689 * the shape of the envelope (i.e. its fields and metadata). The endpoint | 1767 * The currently supported attribute is `x-goog-version`, which you can |
| 1690 * version is based on the version of the Pub/Sub API. If not present during | 1768 * use to change the format of the push message. This attribute |
| 1691 * the `CreateSubscription` call, it will default to the version of the API | 1769 * indicates the version of the data expected by the endpoint. This |
| 1692 * used to make such call. If not present during a `ModifyPushConfig` call, | 1770 * controls the shape of the envelope (i.e. its fields and metadata). |
| 1693 * its value will not be changed. `GetSubscription` calls will always return a | 1771 * The endpoint version is based on the version of the Pub/Sub |
| 1694 * valid version, even if the subscription was created without this attribute. | 1772 * API. |
| 1695 * The possible values for this attribute are: * `v1beta1`: uses the push | 1773 * |
| 1696 * format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the | 1774 * If not present during the `CreateSubscription` call, it will default to |
| 1697 * push format defined in the v1 Pub/Sub API. | 1775 * the version of the API used to make such call. If not present during a |
| 1776 * `ModifyPushConfig` call, its value will not be changed. `GetSubscription` |
| 1777 * calls will always return a valid version, even if the subscription was |
| 1778 * created without this attribute. |
| 1779 * |
| 1780 * The possible values for this attribute are: |
| 1781 * |
| 1782 * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. |
| 1783 * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. |
| 1698 */ | 1784 */ |
| 1699 core.Map<core.String, core.String> attributes; | 1785 core.Map<core.String, core.String> attributes; |
| 1700 /** | 1786 /** |
| 1701 * A URL locating the endpoint to which messages should be pushed. For | 1787 * A URL locating the endpoint to which messages should be pushed. |
| 1702 * example, a Webhook endpoint might use "https://example.com/push". | 1788 * For example, a Webhook endpoint might use "https://example.com/push". |
| 1703 */ | 1789 */ |
| 1704 core.String pushEndpoint; | 1790 core.String pushEndpoint; |
| 1705 | 1791 |
| 1706 PushConfig(); | 1792 PushConfig(); |
| 1707 | 1793 |
| 1708 PushConfig.fromJson(core.Map _json) { | 1794 PushConfig.fromJson(core.Map _json) { |
| 1709 if (_json.containsKey("attributes")) { | 1795 if (_json.containsKey("attributes")) { |
| 1710 attributes = _json["attributes"]; | 1796 attributes = _json["attributes"]; |
| 1711 } | 1797 } |
| 1712 if (_json.containsKey("pushEndpoint")) { | 1798 if (_json.containsKey("pushEndpoint")) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 _json["message"] = (message).toJson(); | 1839 _json["message"] = (message).toJson(); |
| 1754 } | 1840 } |
| 1755 return _json; | 1841 return _json; |
| 1756 } | 1842 } |
| 1757 } | 1843 } |
| 1758 | 1844 |
| 1759 /** Request message for `SetIamPolicy` method. */ | 1845 /** Request message for `SetIamPolicy` method. */ |
| 1760 class SetIamPolicyRequest { | 1846 class SetIamPolicyRequest { |
| 1761 /** | 1847 /** |
| 1762 * REQUIRED: The complete policy to be applied to the `resource`. The size of | 1848 * REQUIRED: The complete policy to be applied to the `resource`. The size of |
| 1763 * the policy is limited to a few 10s of KB. An empty policy is a valid policy | 1849 * the policy is limited to a few 10s of KB. An empty policy is a |
| 1764 * but certain Cloud Platform services (such as Projects) might reject them. | 1850 * valid policy but certain Cloud Platform services (such as Projects) |
| 1851 * might reject them. |
| 1765 */ | 1852 */ |
| 1766 Policy policy; | 1853 Policy policy; |
| 1767 | 1854 |
| 1768 SetIamPolicyRequest(); | 1855 SetIamPolicyRequest(); |
| 1769 | 1856 |
| 1770 SetIamPolicyRequest.fromJson(core.Map _json) { | 1857 SetIamPolicyRequest.fromJson(core.Map _json) { |
| 1771 if (_json.containsKey("policy")) { | 1858 if (_json.containsKey("policy")) { |
| 1772 policy = new Policy.fromJson(_json["policy"]); | 1859 policy = new Policy.fromJson(_json["policy"]); |
| 1773 } | 1860 } |
| 1774 } | 1861 } |
| 1775 | 1862 |
| 1776 core.Map toJson() { | 1863 core.Map toJson() { |
| 1777 var _json = new core.Map(); | 1864 var _json = new core.Map(); |
| 1778 if (policy != null) { | 1865 if (policy != null) { |
| 1779 _json["policy"] = (policy).toJson(); | 1866 _json["policy"] = (policy).toJson(); |
| 1780 } | 1867 } |
| 1781 return _json; | 1868 return _json; |
| 1782 } | 1869 } |
| 1783 } | 1870 } |
| 1784 | 1871 |
| 1785 /** A subscription resource. */ | 1872 /** A subscription resource. */ |
| 1786 class Subscription { | 1873 class Subscription { |
| 1787 /** | 1874 /** |
| 1788 * This value is the maximum time after a subscriber receives a message before | 1875 * This value is the maximum time after a subscriber receives a message |
| 1789 * the subscriber should acknowledge the message. After message delivery but | 1876 * before the subscriber should acknowledge the message. After message |
| 1790 * before the ack deadline expires and before the message is acknowledged, it | 1877 * delivery but before the ack deadline expires and before the message is |
| 1791 * is an outstanding message and will not be delivered again during that time | 1878 * acknowledged, it is an outstanding message and will not be delivered |
| 1792 * (on a best-effort basis). For pull subscriptions, this value is used as the | 1879 * again during that time (on a best-effort basis). |
| 1793 * initial value for the ack deadline. To override this value for a given | 1880 * |
| 1794 * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using | 1881 * For pull subscriptions, this value is used as the initial value for the ack |
| 1795 * pull. The maximum custom deadline you can specify is 600 seconds (10 | 1882 * deadline. To override this value for a given message, call |
| 1796 * minutes). For push delivery, this value is also used to set the request | 1883 * `ModifyAckDeadline` with the corresponding `ack_id` if using |
| 1797 * timeout for the call to the push endpoint. If the subscriber never | 1884 * pull. |
| 1798 * acknowledges the message, the Pub/Sub system will eventually redeliver the | 1885 * The minimum custom deadline you can specify is 10 seconds. |
| 1799 * message. If this parameter is 0, a default value of 10 seconds is used. | 1886 * The maximum custom deadline you can specify is 600 seconds (10 minutes). |
| 1887 * If this parameter is 0, a default value of 10 seconds is used. |
| 1888 * |
| 1889 * For push delivery, this value is also used to set the request timeout for |
| 1890 * the call to the push endpoint. |
| 1891 * |
| 1892 * If the subscriber never acknowledges the message, the Pub/Sub |
| 1893 * system will eventually redeliver the message. |
| 1800 */ | 1894 */ |
| 1801 core.int ackDeadlineSeconds; | 1895 core.int ackDeadlineSeconds; |
| 1802 /** | 1896 /** |
| 1803 * The name of the subscription. It must have the format | 1897 * The name of the subscription. It must have the format |
| 1804 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must | 1898 * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must |
| 1805 * start with a letter, and contain only letters (`[A-Za-z]`), numbers | 1899 * start with a letter, and contain only letters (`[A-Za-z]`), numbers |
| 1806 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), | 1900 * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), |
| 1807 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters | 1901 * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters |
| 1808 * in length, and it must not start with `"goog"`. | 1902 * in length, and it must not start with `"goog"`. |
| 1809 */ | 1903 */ |
| 1810 core.String name; | 1904 core.String name; |
| 1811 /** | 1905 /** |
| 1812 * If push delivery is used with this subscription, this field is used to | 1906 * If push delivery is used with this subscription, this field is |
| 1813 * configure it. An empty `pushConfig` signifies that the subscriber will pull | 1907 * used to configure it. An empty `pushConfig` signifies that the subscriber |
| 1814 * and ack messages using API methods. | 1908 * will pull and ack messages using API methods. |
| 1815 */ | 1909 */ |
| 1816 PushConfig pushConfig; | 1910 PushConfig pushConfig; |
| 1817 /** | 1911 /** |
| 1818 * The name of the topic from which this subscription is receiving messages. | 1912 * The name of the topic from which this subscription is receiving messages. |
| 1913 * Format is `projects/{project}/topics/{topic}`. |
| 1819 * The value of this field will be `_deleted-topic_` if the topic has been | 1914 * The value of this field will be `_deleted-topic_` if the topic has been |
| 1820 * deleted. | 1915 * deleted. |
| 1821 */ | 1916 */ |
| 1822 core.String topic; | 1917 core.String topic; |
| 1823 | 1918 |
| 1824 Subscription(); | 1919 Subscription(); |
| 1825 | 1920 |
| 1826 Subscription.fromJson(core.Map _json) { | 1921 Subscription.fromJson(core.Map _json) { |
| 1827 if (_json.containsKey("ackDeadlineSeconds")) { | 1922 if (_json.containsKey("ackDeadlineSeconds")) { |
| 1828 ackDeadlineSeconds = _json["ackDeadlineSeconds"]; | 1923 ackDeadlineSeconds = _json["ackDeadlineSeconds"]; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1854 } | 1949 } |
| 1855 return _json; | 1950 return _json; |
| 1856 } | 1951 } |
| 1857 } | 1952 } |
| 1858 | 1953 |
| 1859 /** Request message for `TestIamPermissions` method. */ | 1954 /** Request message for `TestIamPermissions` method. */ |
| 1860 class TestIamPermissionsRequest { | 1955 class TestIamPermissionsRequest { |
| 1861 /** | 1956 /** |
| 1862 * The set of permissions to check for the `resource`. Permissions with | 1957 * The set of permissions to check for the `resource`. Permissions with |
| 1863 * wildcards (such as '*' or 'storage.*') are not allowed. For more | 1958 * wildcards (such as '*' or 'storage.*') are not allowed. For more |
| 1864 * information see [IAM | 1959 * information see |
| 1865 * Overview](https://cloud.google.com/iam/docs/overview#permissions). | 1960 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| 1866 */ | 1961 */ |
| 1867 core.List<core.String> permissions; | 1962 core.List<core.String> permissions; |
| 1868 | 1963 |
| 1869 TestIamPermissionsRequest(); | 1964 TestIamPermissionsRequest(); |
| 1870 | 1965 |
| 1871 TestIamPermissionsRequest.fromJson(core.Map _json) { | 1966 TestIamPermissionsRequest.fromJson(core.Map _json) { |
| 1872 if (_json.containsKey("permissions")) { | 1967 if (_json.containsKey("permissions")) { |
| 1873 permissions = _json["permissions"]; | 1968 permissions = _json["permissions"]; |
| 1874 } | 1969 } |
| 1875 } | 1970 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 return _json; | 2002 return _json; |
| 1908 } | 2003 } |
| 1909 } | 2004 } |
| 1910 | 2005 |
| 1911 /** A topic resource. */ | 2006 /** A topic resource. */ |
| 1912 class Topic { | 2007 class Topic { |
| 1913 /** | 2008 /** |
| 1914 * The name of the topic. It must have the format | 2009 * The name of the topic. It must have the format |
| 1915 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, | 2010 * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, |
| 1916 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), | 2011 * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), |
| 1917 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs | 2012 * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent |
| 1918 * (`%`). It must be between 3 and 255 characters in length, and it must not | 2013 * signs (`%`). It must be between 3 and 255 characters in length, and it |
| 1919 * start with `"goog"`. | 2014 * must not start with `"goog"`. |
| 1920 */ | 2015 */ |
| 1921 core.String name; | 2016 core.String name; |
| 1922 | 2017 |
| 1923 Topic(); | 2018 Topic(); |
| 1924 | 2019 |
| 1925 Topic.fromJson(core.Map _json) { | 2020 Topic.fromJson(core.Map _json) { |
| 1926 if (_json.containsKey("name")) { | 2021 if (_json.containsKey("name")) { |
| 1927 name = _json["name"]; | 2022 name = _json["name"]; |
| 1928 } | 2023 } |
| 1929 } | 2024 } |
| 1930 | 2025 |
| 1931 core.Map toJson() { | 2026 core.Map toJson() { |
| 1932 var _json = new core.Map(); | 2027 var _json = new core.Map(); |
| 1933 if (name != null) { | 2028 if (name != null) { |
| 1934 _json["name"] = name; | 2029 _json["name"] = name; |
| 1935 } | 2030 } |
| 1936 return _json; | 2031 return _json; |
| 1937 } | 2032 } |
| 1938 } | 2033 } |
| OLD | NEW |