@maxim_mazurok/gapi.client.pubsublite-v1 0.0.20221104 → 0.0.20221206

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +21 -1
  2. package/package.json +1 -1
  3. package/tests.ts +17 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://pubsublite.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221104
12
+ // Revision: 20221206
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -99,6 +99,20 @@ declare namespace gapi.client {
99
99
  // tslint:disable-next-line:no-empty-interface
100
100
  interface Empty {
101
101
  }
102
+ interface ExportConfig {
103
+ /** Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only. */
104
+ currentState?: string;
105
+ /**
106
+ * Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub
107
+ * service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like:
108
+ * projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
109
+ */
110
+ deadLetterTopic?: string;
111
+ /** The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error. */
112
+ desiredState?: string;
113
+ /** Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic. */
114
+ pubsubConfig?: PubSubConfig;
115
+ }
102
116
  interface ListOperationsResponse {
103
117
  /** The standard List next-page token. */
104
118
  nextPageToken?: string;
@@ -197,6 +211,10 @@ declare namespace gapi.client {
197
211
  /** The partition this is for. */
198
212
  partition?: string;
199
213
  }
214
+ interface PubSubConfig {
215
+ /** The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed. */
216
+ topic?: string;
217
+ }
200
218
  interface Reservation {
201
219
  /** The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id} */
202
220
  name?: string;
@@ -245,6 +263,8 @@ declare namespace gapi.client {
245
263
  interface Subscription {
246
264
  /** The settings for this subscription's message delivery. */
247
265
  deliveryConfig?: DeliveryConfig;
266
+ /** If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination. */
267
+ exportConfig?: ExportConfig;
248
268
  /** The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id} */
249
269
  name?: string;
250
270
  /** The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.pubsublite-v1",
3
- "version": "0.0.20221104",
3
+ "version": "0.0.20221206",
4
4
  "description": "TypeScript typings for Pub/Sub Lite API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221104
6
+ // Revision: 20221206
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -107,6 +107,14 @@ gapi.load('client', async () => {
107
107
  deliveryConfig: {
108
108
  deliveryRequirement: "Test string",
109
109
  },
110
+ exportConfig: {
111
+ currentState: "Test string",
112
+ deadLetterTopic: "Test string",
113
+ desiredState: "Test string",
114
+ pubsubConfig: {
115
+ topic: "Test string",
116
+ },
117
+ },
110
118
  name: "Test string",
111
119
  topic: "Test string",
112
120
  });
@@ -132,6 +140,14 @@ gapi.load('client', async () => {
132
140
  deliveryConfig: {
133
141
  deliveryRequirement: "Test string",
134
142
  },
143
+ exportConfig: {
144
+ currentState: "Test string",
145
+ deadLetterTopic: "Test string",
146
+ desiredState: "Test string",
147
+ pubsubConfig: {
148
+ topic: "Test string",
149
+ },
150
+ },
135
151
  name: "Test string",
136
152
  topic: "Test string",
137
153
  });