| Index: generated/googleapis/lib/pubsub/v1.dart
|
| diff --git a/generated/googleapis/lib/pubsub/v1.dart b/generated/googleapis/lib/pubsub/v1.dart
|
| index b19486c876c9b5ce745afc8895402041d3b2e73a..9e89bb9fbd091c7e5db41773496dcef95e5173a8 100644
|
| --- a/generated/googleapis/lib/pubsub/v1.dart
|
| +++ b/generated/googleapis/lib/pubsub/v1.dart
|
| @@ -37,6 +37,7 @@ class PubsubApi {
|
| class ProjectsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| + ProjectsSnapshotsResourceApi get snapshots => new ProjectsSnapshotsResourceApi(_requester);
|
| ProjectsSubscriptionsResourceApi get subscriptions => new ProjectsSubscriptionsResourceApi(_requester);
|
| ProjectsTopicsResourceApi get topics => new ProjectsTopicsResourceApi(_requester);
|
|
|
| @@ -45,6 +46,153 @@ class ProjectsResourceApi {
|
| }
|
|
|
|
|
| +class ProjectsSnapshotsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + ProjectsSnapshotsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Gets the access control policy for a resource. Returns an empty policy if
|
| + * the resource exists and does not have a policy set.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [resource] - REQUIRED: The resource for which the policy is being
|
| + * requested. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| + * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$".
|
| + *
|
| + * Completes with a [Policy].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<Policy> getIamPolicy(core.String resource) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (resource == null) {
|
| + throw new core.ArgumentError("Parameter resource is required.");
|
| + }
|
| +
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Policy.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Sets the access control policy on the specified resource. Replaces any
|
| + * existing policy.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [resource] - REQUIRED: The resource for which the policy is being
|
| + * specified. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| + * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$".
|
| + *
|
| + * Completes with a [Policy].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String resource) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (resource == null) {
|
| + throw new core.ArgumentError("Parameter resource is required.");
|
| + }
|
| +
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Policy.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Returns permissions that a caller has on the specified resource.
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [resource] - REQUIRED: The resource for which the policy detail is being
|
| + * requested. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| + * Value must have pattern "^projects/[^/] * / snapshots/[^/]*$".
|
| + *
|
| + * Completes with a [TestIamPermissionsResponse].
|
| + *
|
| + * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| + * error.
|
| + *
|
| + * If the used [http.Client] completes with an error when making a REST call,
|
| + * this method will complete with the same error.
|
| + */
|
| + async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (resource == null) {
|
| + throw new core.ArgumentError("Parameter resource is required.");
|
| + }
|
| +
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new TestIamPermissionsResponse.fromJson(data));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| class ProjectsSubscriptionsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| @@ -105,7 +253,7 @@ class ProjectsSubscriptionsResourceApi {
|
| * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist,
|
| * returns `NOT_FOUND`. If the name is not provided in the request, the server
|
| * will assign a random name for this subscription on the same project as the
|
| - * topic.
|
| + * topic. Note that for REST API requests, you must specify a name.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -155,11 +303,11 @@ class ProjectsSubscriptionsResourceApi {
|
| }
|
|
|
| /**
|
| - * Deletes an existing subscription. All pending messages in the subscription
|
| + * Deletes an existing subscription. All messages retained in the subscription
|
| * are immediately dropped. Calls to `Pull` after deletion will return
|
| * `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
| - * the same name, but the new one has no association with the old
|
| - * subscription, or its topic unless the same topic is specified.
|
| + * the same name, but the new one has no association with the old subscription
|
| + * or its topic unless the same topic is specified.
|
| *
|
| * Request parameters:
|
| *
|
| @@ -239,16 +387,14 @@ class ProjectsSubscriptionsResourceApi {
|
| }
|
|
|
| /**
|
| - * Gets the access control policy for a `resource`. Returns an empty policy if
|
| + * Gets the access control policy for a resource. Returns an empty policy if
|
| * the resource exists and does not have a policy set.
|
| *
|
| * Request parameters:
|
| *
|
| * [resource] - REQUIRED: The resource for which the policy is being
|
| - * requested. `resource` is usually specified as a path, such as `projects / *
|
| - * project * / zones / * zone * / disks / * disk*`. The format for the path
|
| - * specified in this value is resource specific and is specified in the
|
| - * `getIamPolicy` documentation.
|
| + * requested. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
|
| *
|
| * Completes with a [Policy].
|
| @@ -339,7 +485,8 @@ class ProjectsSubscriptionsResourceApi {
|
| * Modifies the ack deadline for a specific message. This method is useful to
|
| * indicate that more time is needed to process a message by the subscriber,
|
| * or to make the message available for redelivery if the processing was
|
| - * interrupted.
|
| + * interrupted. Note that this does not modify the subscription-level
|
| + * `ackDeadlineSeconds` used for subsequent messages.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -489,10 +636,8 @@ class ProjectsSubscriptionsResourceApi {
|
| * Request parameters:
|
| *
|
| * [resource] - REQUIRED: The resource for which the policy is being
|
| - * specified. `resource` is usually specified as a path, such as `projects / *
|
| - * project * / zones / * zone * / disks / * disk*`. The format for the path
|
| - * specified in this value is resource specific and is specified in the
|
| - * `setIamPolicy` documentation.
|
| + * specified. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
|
| *
|
| * Completes with a [Policy].
|
| @@ -538,10 +683,8 @@ class ProjectsSubscriptionsResourceApi {
|
| * Request parameters:
|
| *
|
| * [resource] - REQUIRED: The resource for which the policy detail is being
|
| - * requested. `resource` is usually specified as a path, such as `projects / *
|
| - * project * / zones / * zone * / disks / * disk*`. The format for the path
|
| - * specified in this value is resource specific and is specified in the
|
| - * `testIamPermissions` documentation.
|
| + * requested. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
|
| *
|
| * Completes with a [TestIamPermissionsResponse].
|
| @@ -725,16 +868,14 @@ class ProjectsTopicsResourceApi {
|
| }
|
|
|
| /**
|
| - * Gets the access control policy for a `resource`. Returns an empty policy if
|
| + * Gets the access control policy for a resource. Returns an empty policy if
|
| * the resource exists and does not have a policy set.
|
| *
|
| * Request parameters:
|
| *
|
| * [resource] - REQUIRED: The resource for which the policy is being
|
| - * requested. `resource` is usually specified as a path, such as `projects / *
|
| - * project * / zones / * zone * / disks / * disk*`. The format for the path
|
| - * specified in this value is resource specific and is specified in the
|
| - * `getIamPolicy` documentation.
|
| + * requested. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
|
| *
|
| * Completes with a [Policy].
|
| @@ -877,10 +1018,8 @@ class ProjectsTopicsResourceApi {
|
| * Request parameters:
|
| *
|
| * [resource] - REQUIRED: The resource for which the policy is being
|
| - * specified. `resource` is usually specified as a path, such as `projects / *
|
| - * project * / zones / * zone * / disks / * disk*`. The format for the path
|
| - * specified in this value is resource specific and is specified in the
|
| - * `setIamPolicy` documentation.
|
| + * specified. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
|
| *
|
| * Completes with a [Policy].
|
| @@ -926,10 +1065,8 @@ class ProjectsTopicsResourceApi {
|
| * Request parameters:
|
| *
|
| * [resource] - REQUIRED: The resource for which the policy detail is being
|
| - * requested. `resource` is usually specified as a path, such as `projects / *
|
| - * project * / zones / * zone * / disks / * disk*`. The format for the path
|
| - * specified in this value is resource specific and is specified in the
|
| - * `testIamPermissions` documentation.
|
| + * requested. `resource` is usually specified as a path. For example, a
|
| + * Project resource is specified as `projects/{project}`.
|
| * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
|
| *
|
| * Completes with a [TestIamPermissionsResponse].
|
| @@ -1416,7 +1553,7 @@ class PubsubMessage {
|
| core.Map<core.String, core.String> attributes;
|
| /**
|
| * The message payload. For JSON requests, the value of this field must be
|
| - * base64-encoded.
|
| + * [base64-encoded](https://tools.ietf.org/html/rfc4648).
|
| */
|
| core.String data;
|
| core.List<core.int> get dataAsBytes {
|
| @@ -1655,10 +1792,11 @@ class Subscription {
|
| * (on a best-effort basis). For pull subscriptions, this value is used as the
|
| * initial value for the ack deadline. To override this value for a given
|
| * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using
|
| - * pull. For push delivery, this value is also used to set the request timeout
|
| - * for the call to the push endpoint. If the subscriber never acknowledges the
|
| - * message, the Pub/Sub system will eventually redeliver the message. If this
|
| - * parameter is not set, the default value of 10 seconds is used.
|
| + * pull. The maximum custom deadline you can specify is 600 seconds (10
|
| + * minutes). For push delivery, this value is also used to set the request
|
| + * timeout for the call to the push endpoint. If the subscriber never
|
| + * acknowledges the message, the Pub/Sub system will eventually redeliver the
|
| + * message. If this parameter is 0, a default value of 10 seconds is used.
|
| */
|
| core.int ackDeadlineSeconds;
|
| /**
|
| @@ -1723,7 +1861,8 @@ class TestIamPermissionsRequest {
|
| /**
|
| * The set of permissions to check for the `resource`. Permissions with
|
| * wildcards (such as '*' or 'storage.*') are not allowed. For more
|
| - * information see IAM Overview.
|
| + * information see [IAM
|
| + * Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
| */
|
| core.List<core.String> permissions;
|
|
|
|
|