| Index: generated/googleapis/lib/pubsub/v1.dart
|
| diff --git a/generated/googleapis_beta/lib/pubsub/v1beta2.dart b/generated/googleapis/lib/pubsub/v1.dart
|
| similarity index 94%
|
| copy from generated/googleapis_beta/lib/pubsub/v1beta2.dart
|
| copy to generated/googleapis/lib/pubsub/v1.dart
|
| index a81c44e48b1a345a64f2405549e2c883538d2e91..2763c17b888a42935134d5a3c85580a20b127666 100644
|
| --- a/generated/googleapis_beta/lib/pubsub/v1beta2.dart
|
| +++ b/generated/googleapis/lib/pubsub/v1.dart
|
| @@ -1,6 +1,6 @@
|
| // This is a generated file (see the discoveryapis_generator project).
|
|
|
| -library googleapis_beta.pubsub.v1beta2;
|
| +library googleapis.pubsub.v1;
|
|
|
| import 'dart:core' as core;
|
| import 'dart:async' as async;
|
| @@ -13,7 +13,7 @@ import 'package:http/http.dart' as http;
|
| export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| ApiRequestError, DetailedApiRequestError;
|
|
|
| -const core.String USER_AGENT = 'dart-api-client pubsub/v1beta2';
|
| +const core.String USER_AGENT = 'dart-api-client pubsub/v1';
|
|
|
| /**
|
| * Provides reliable, many-to-many, asynchronous messaging between applications.
|
| @@ -89,7 +89,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter subscription is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':acknowledge';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':acknowledge';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -113,11 +113,11 @@ class ProjectsSubscriptionsResourceApi {
|
| * Request parameters:
|
| *
|
| * [name] - The name of the subscription. It must have the format
|
| - * "projects/{project}/subscriptions/{subscription}" for Google Cloud Pub/Sub
|
| - * API v1 and v1beta2. {subscription} must start with a letter, and contain
|
| - * only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores (_),
|
| - * periods (.), tildes (~), plus (+) or percent signs (%). It must be between
|
| - * 3 and 255 characters in length, and it must not start with "goog".
|
| + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
|
| + * start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
| + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
| + * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
| + * in length, and it must not start with `"goog"`.
|
| * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$".
|
| *
|
| * Completes with a [Subscription].
|
| @@ -143,7 +143,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$name');
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -187,7 +187,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter subscription is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$subscription');
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$subscription');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -227,7 +227,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter subscription is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$subscription');
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$subscription');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -269,7 +269,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter resource is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -321,7 +321,7 @@ class ProjectsSubscriptionsResourceApi {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscriptions';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscriptions';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -369,7 +369,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter subscription is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':modifyAckDeadline';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':modifyAckDeadline';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -418,7 +418,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter subscription is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':modifyPushConfig';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':modifyPushConfig';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -466,7 +466,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter subscription is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':pull';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$subscription') + ':pull';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -514,7 +514,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter resource is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -561,7 +561,7 @@ class ProjectsSubscriptionsResourceApi {
|
| throw new core.ArgumentError("Parameter resource is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -592,11 +592,11 @@ class ProjectsTopicsResourceApi {
|
| * Request parameters:
|
| *
|
| * [name] - The name of the topic. It must have the format
|
| - * "projects/{project}/topics/{topic}" for Google Cloud Pub/Sub API v1 and
|
| - * v1beta2. {topic} must start with a letter, and contain only letters
|
| - * ([A-Za-z]), numbers ([0-9], dashes (-), underscores (_), periods (.),
|
| - * tildes (~), plus (+) or percent signs (%). It must be between 3 and 255
|
| - * characters in length, and it must not start with "goog".
|
| + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
|
| + * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
| + * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs
|
| + * (`%`). It must be between 3 and 255 characters in length, and it must not
|
| + * start with `"goog"`.
|
| * Value must have pattern "^projects/[^/] * / topics/[^/]*$".
|
| *
|
| * Completes with a [Topic].
|
| @@ -622,7 +622,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$name');
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| var _response = _requester.request(_url,
|
| "PUT",
|
| @@ -666,7 +666,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter topic is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$topic');
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$topic');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -706,7 +706,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter topic is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$topic');
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$topic');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -748,7 +748,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter resource is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -800,7 +800,7 @@ class ProjectsTopicsResourceApi {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -814,7 +814,8 @@ class ProjectsTopicsResourceApi {
|
|
|
| /**
|
| * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
|
| - * not exist.
|
| + * not exist. The message payload must not be empty; it must contain either a
|
| + * non-empty data field, or at least one attribute.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -846,7 +847,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter topic is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$topic') + ':publish';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$topic') + ':publish';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -894,7 +895,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter resource is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -941,7 +942,7 @@ class ProjectsTopicsResourceApi {
|
| throw new core.ArgumentError("Parameter resource is required.");
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -1003,7 +1004,7 @@ class ProjectsTopicsSubscriptionsResourceApi {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
|
|
| - _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$topic') + '/subscriptions';
|
| + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$topic') + '/subscriptions';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1412,11 +1413,6 @@ class ModifyAckDeadlineRequest {
|
| * request.
|
| */
|
| core.int ackDeadlineSeconds;
|
| - /**
|
| - * The acknowledgment ID. Either this or ack_ids must be populated, but not
|
| - * both.
|
| - */
|
| - core.String ackId;
|
| /** List of acknowledgment IDs. */
|
| core.List<core.String> ackIds;
|
|
|
| @@ -1426,9 +1422,6 @@ class ModifyAckDeadlineRequest {
|
| if (_json.containsKey("ackDeadlineSeconds")) {
|
| ackDeadlineSeconds = _json["ackDeadlineSeconds"];
|
| }
|
| - if (_json.containsKey("ackId")) {
|
| - ackId = _json["ackId"];
|
| - }
|
| if (_json.containsKey("ackIds")) {
|
| ackIds = _json["ackIds"];
|
| }
|
| @@ -1439,9 +1432,6 @@ class ModifyAckDeadlineRequest {
|
| if (ackDeadlineSeconds != null) {
|
| _json["ackDeadlineSeconds"] = ackDeadlineSeconds;
|
| }
|
| - if (ackId != null) {
|
| - _json["ackId"] = ackId;
|
| - }
|
| if (ackIds != null) {
|
| _json["ackIds"] = ackIds;
|
| }
|
| @@ -1596,7 +1586,10 @@ class PublishResponse {
|
| }
|
| }
|
|
|
| -/** A message data and its attributes. */
|
| +/**
|
| + * A message data and its attributes. The message payload must not be empty; it
|
| + * must contain either a non-empty data field, or at least one attribute.
|
| + */
|
| class PubsubMessage {
|
| /** Optional attributes for this message. */
|
| core.Map<core.String, core.String> attributes;
|
| @@ -1920,21 +1913,21 @@ class Subscription {
|
| * before the ack deadline expires and before the message is acknowledged, it
|
| * is an outstanding message and will not be delivered again during that time
|
| * (on a best-effort basis). For pull delivery this value is used as the
|
| - * initial value for the ack deadline. It may be overridden for each message
|
| - * using its corresponding ack_id by calling ModifyAckDeadline. For push
|
| + * initial value for the ack deadline. To override this value for a given
|
| + * message, call ModifyAckDeadline with the corresponding ack_id. 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 60 seconds is used.
|
| + * not set, the default value of 10 seconds is used.
|
| */
|
| core.int ackDeadlineSeconds;
|
| /**
|
| * The name of the subscription. It must have the format
|
| - * "projects/{project}/subscriptions/{subscription}" for Google Cloud Pub/Sub
|
| - * API v1 and v1beta2. {subscription} must start with a letter, and contain
|
| - * only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores (_),
|
| - * periods (.), tildes (~), plus (+) or percent signs (%). It must be between
|
| - * 3 and 255 characters in length, and it must not start with "goog".
|
| + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
|
| + * start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
| + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
| + * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
| + * in length, and it must not start with `"goog"`.
|
| */
|
| core.String name;
|
| /**
|
| @@ -2039,11 +2032,11 @@ class TestIamPermissionsResponse {
|
| class Topic {
|
| /**
|
| * The name of the topic. It must have the format
|
| - * "projects/{project}/topics/{topic}" for Google Cloud Pub/Sub API v1 and
|
| - * v1beta2. {topic} must start with a letter, and contain only letters
|
| - * ([A-Za-z]), numbers ([0-9], dashes (-), underscores (_), periods (.),
|
| - * tildes (~), plus (+) or percent signs (%). It must be between 3 and 255
|
| - * characters in length, and it must not start with "goog".
|
| + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
|
| + * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
| + * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs
|
| + * (`%`). It must be between 3 and 255 characters in length, and it must not
|
| + * start with `"goog"`.
|
| */
|
| core.String name;
|
|
|
|
|