@maxim_mazurok/gapi.client.pubsub-v1beta2 0.1.20261111 → 0.2.20261111

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 (2) hide show
  1. package/index.d.ts +541 -545
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -169,38 +169,11 @@ declare namespace gapi.client {
169
169
  /** The name of the topic. It must have the format `"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"`. */
170
170
  name?: string;
171
171
  }
172
- interface SubscriptionsResource {
173
- /** Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error. */
174
- acknowledge(request: {
175
- /** V1 error format. */
176
- '$.xgafv'?: '1' | '2';
177
- /** OAuth access token. */
178
- access_token?: string;
179
- /** Data format for response. */
180
- alt?: 'json' | 'media' | 'proto';
181
- /** JSONP */
182
- callback?: string;
183
- /** Selector specifying which fields to include in a partial response. */
184
- fields?: string;
185
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
186
- key?: string;
187
- /** OAuth 2.0 token for the current user. */
188
- oauth_token?: string;
189
- /** Returns response with indentations and line breaks. */
190
- prettyPrint?: boolean;
191
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
192
- quotaUser?: string;
193
- /** The subscription whose message is being acknowledged. */
194
- subscription: string;
195
- /** Upload protocol for media (e.g. "raw", "multipart"). */
196
- upload_protocol?: string;
197
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
198
- uploadType?: string;
199
- /** Request body */
200
- resource: AcknowledgeRequest;
201
- }): Request<{}>;
202
- acknowledge(
203
- request: {
172
+
173
+ const projects: {
174
+ subscriptions: {
175
+ /** Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error. */
176
+ acknowledge(request: {
204
177
  /** V1 error format. */
205
178
  '$.xgafv'?: '1' | '2';
206
179
  /** OAuth access token. */
@@ -225,40 +198,40 @@ declare namespace gapi.client {
225
198
  upload_protocol?: string;
226
199
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
227
200
  uploadType?: string;
228
- },
229
- body: AcknowledgeRequest,
230
- ): Request<{}>;
231
- /** Creates a subscription to a given topic. If the subscription already 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. Note that for REST API requests, you must specify a name. */
232
- create(request: {
233
- /** V1 error format. */
234
- '$.xgafv'?: '1' | '2';
235
- /** OAuth access token. */
236
- access_token?: string;
237
- /** Data format for response. */
238
- alt?: 'json' | 'media' | 'proto';
239
- /** JSONP */
240
- callback?: string;
241
- /** Selector specifying which fields to include in a partial response. */
242
- fields?: string;
243
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
244
- key?: string;
245
- /** The name of the subscription. It must have the format `"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"`. */
246
- name: string;
247
- /** OAuth 2.0 token for the current user. */
248
- oauth_token?: string;
249
- /** Returns response with indentations and line breaks. */
250
- prettyPrint?: boolean;
251
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
252
- quotaUser?: string;
253
- /** Upload protocol for media (e.g. "raw", "multipart"). */
254
- upload_protocol?: string;
255
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
256
- uploadType?: string;
257
- /** Request body */
258
- resource: Subscription;
259
- }): Request<Subscription>;
260
- create(
261
- request: {
201
+ /** Request body */
202
+ resource: AcknowledgeRequest;
203
+ }): Request<{}>;
204
+ acknowledge(
205
+ request: {
206
+ /** V1 error format. */
207
+ '$.xgafv'?: '1' | '2';
208
+ /** OAuth access token. */
209
+ access_token?: string;
210
+ /** Data format for response. */
211
+ alt?: 'json' | 'media' | 'proto';
212
+ /** JSONP */
213
+ callback?: string;
214
+ /** Selector specifying which fields to include in a partial response. */
215
+ fields?: string;
216
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
217
+ key?: string;
218
+ /** OAuth 2.0 token for the current user. */
219
+ oauth_token?: string;
220
+ /** Returns response with indentations and line breaks. */
221
+ prettyPrint?: boolean;
222
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
223
+ quotaUser?: string;
224
+ /** The subscription whose message is being acknowledged. */
225
+ subscription: string;
226
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
227
+ upload_protocol?: string;
228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
229
+ uploadType?: string;
230
+ },
231
+ body: AcknowledgeRequest,
232
+ ): Request<{}>;
233
+ /** Creates a subscription to a given topic. If the subscription already 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. Note that for REST API requests, you must specify a name. */
234
+ create(request: {
262
235
  /** V1 error format. */
263
236
  '$.xgafv'?: '1' | '2';
264
237
  /** OAuth access token. */
@@ -283,154 +256,40 @@ declare namespace gapi.client {
283
256
  upload_protocol?: string;
284
257
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
285
258
  uploadType?: string;
286
- },
287
- body: Subscription,
288
- ): Request<Subscription>;
289
- /** Deletes an existing subscription. All pending messages 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. */
290
- delete(request?: {
291
- /** V1 error format. */
292
- '$.xgafv'?: '1' | '2';
293
- /** OAuth access token. */
294
- access_token?: string;
295
- /** Data format for response. */
296
- alt?: 'json' | 'media' | 'proto';
297
- /** JSONP */
298
- callback?: string;
299
- /** Selector specifying which fields to include in a partial response. */
300
- fields?: string;
301
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
302
- key?: string;
303
- /** OAuth 2.0 token for the current user. */
304
- oauth_token?: string;
305
- /** Returns response with indentations and line breaks. */
306
- prettyPrint?: boolean;
307
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
308
- quotaUser?: string;
309
- /** The subscription to delete. */
310
- subscription: string;
311
- /** Upload protocol for media (e.g. "raw", "multipart"). */
312
- upload_protocol?: string;
313
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
314
- uploadType?: string;
315
- }): Request<{}>;
316
- /** Gets the configuration details of a subscription. */
317
- get(request?: {
318
- /** V1 error format. */
319
- '$.xgafv'?: '1' | '2';
320
- /** OAuth access token. */
321
- access_token?: string;
322
- /** Data format for response. */
323
- alt?: 'json' | 'media' | 'proto';
324
- /** JSONP */
325
- callback?: string;
326
- /** Selector specifying which fields to include in a partial response. */
327
- fields?: string;
328
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
329
- key?: string;
330
- /** OAuth 2.0 token for the current user. */
331
- oauth_token?: string;
332
- /** Returns response with indentations and line breaks. */
333
- prettyPrint?: boolean;
334
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
335
- quotaUser?: string;
336
- /** The name of the subscription to get. */
337
- subscription: string;
338
- /** Upload protocol for media (e.g. "raw", "multipart"). */
339
- upload_protocol?: string;
340
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
341
- uploadType?: string;
342
- }): Request<Subscription>;
343
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
344
- getIamPolicy(request?: {
345
- /** V1 error format. */
346
- '$.xgafv'?: '1' | '2';
347
- /** OAuth access token. */
348
- access_token?: string;
349
- /** Data format for response. */
350
- alt?: 'json' | 'media' | 'proto';
351
- /** JSONP */
352
- callback?: string;
353
- /** Selector specifying which fields to include in a partial response. */
354
- fields?: string;
355
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
356
- key?: string;
357
- /** OAuth 2.0 token for the current user. */
358
- oauth_token?: string;
359
- /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
360
- 'options.requestedPolicyVersion'?: number;
361
- /** Returns response with indentations and line breaks. */
362
- prettyPrint?: boolean;
363
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
364
- quotaUser?: string;
365
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
366
- resource: string;
367
- /** Upload protocol for media (e.g. "raw", "multipart"). */
368
- upload_protocol?: string;
369
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
370
- uploadType?: string;
371
- }): Request<Policy>;
372
- /** Lists matching subscriptions. */
373
- list(request?: {
374
- /** V1 error format. */
375
- '$.xgafv'?: '1' | '2';
376
- /** OAuth access token. */
377
- access_token?: string;
378
- /** Data format for response. */
379
- alt?: 'json' | 'media' | 'proto';
380
- /** JSONP */
381
- callback?: string;
382
- /** Selector specifying which fields to include in a partial response. */
383
- fields?: string;
384
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
385
- key?: string;
386
- /** OAuth 2.0 token for the current user. */
387
- oauth_token?: string;
388
- /** Maximum number of subscriptions to return. */
389
- pageSize?: number;
390
- /** The value returned by the last `ListSubscriptionsResponse`; indicates that this is a continuation of a prior `ListSubscriptions` call, and that the system should return the next page of data. */
391
- pageToken?: string;
392
- /** Returns response with indentations and line breaks. */
393
- prettyPrint?: boolean;
394
- /** The name of the cloud project that subscriptions belong to. */
395
- project: string;
396
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
397
- quotaUser?: string;
398
- /** Upload protocol for media (e.g. "raw", "multipart"). */
399
- upload_protocol?: string;
400
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
401
- uploadType?: string;
402
- }): Request<ListSubscriptionsResponse>;
403
- /** 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. Note that this does not modify the subscription-level `ackDeadlineSeconds` used for subsequent messages. */
404
- modifyAckDeadline(request: {
405
- /** V1 error format. */
406
- '$.xgafv'?: '1' | '2';
407
- /** OAuth access token. */
408
- access_token?: string;
409
- /** Data format for response. */
410
- alt?: 'json' | 'media' | 'proto';
411
- /** JSONP */
412
- callback?: string;
413
- /** Selector specifying which fields to include in a partial response. */
414
- fields?: string;
415
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
416
- key?: string;
417
- /** OAuth 2.0 token for the current user. */
418
- oauth_token?: string;
419
- /** Returns response with indentations and line breaks. */
420
- prettyPrint?: boolean;
421
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
422
- quotaUser?: string;
423
- /** The name of the subscription. */
424
- subscription: string;
425
- /** Upload protocol for media (e.g. "raw", "multipart"). */
426
- upload_protocol?: string;
427
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
428
- uploadType?: string;
429
- /** Request body */
430
- resource: ModifyAckDeadlineRequest;
431
- }): Request<{}>;
432
- modifyAckDeadline(
433
- request: {
259
+ /** Request body */
260
+ resource: Subscription;
261
+ }): Request<Subscription>;
262
+ create(
263
+ request: {
264
+ /** V1 error format. */
265
+ '$.xgafv'?: '1' | '2';
266
+ /** OAuth access token. */
267
+ access_token?: string;
268
+ /** Data format for response. */
269
+ alt?: 'json' | 'media' | 'proto';
270
+ /** JSONP */
271
+ callback?: string;
272
+ /** Selector specifying which fields to include in a partial response. */
273
+ fields?: string;
274
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
275
+ key?: string;
276
+ /** The name of the subscription. It must have the format `"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"`. */
277
+ name: string;
278
+ /** OAuth 2.0 token for the current user. */
279
+ oauth_token?: string;
280
+ /** Returns response with indentations and line breaks. */
281
+ prettyPrint?: boolean;
282
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
283
+ quotaUser?: string;
284
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
285
+ upload_protocol?: string;
286
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
287
+ uploadType?: string;
288
+ },
289
+ body: Subscription,
290
+ ): Request<Subscription>;
291
+ /** Deletes an existing subscription. All pending messages 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. */
292
+ delete(request?: {
434
293
  /** V1 error format. */
435
294
  '$.xgafv'?: '1' | '2';
436
295
  /** OAuth access token. */
@@ -449,46 +308,15 @@ declare namespace gapi.client {
449
308
  prettyPrint?: boolean;
450
309
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
451
310
  quotaUser?: string;
452
- /** The name of the subscription. */
311
+ /** The subscription to delete. */
453
312
  subscription: string;
454
313
  /** Upload protocol for media (e.g. "raw", "multipart"). */
455
314
  upload_protocol?: string;
456
315
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
457
316
  uploadType?: string;
458
- },
459
- body: ModifyAckDeadlineRequest,
460
- ): Request<{}>;
461
- /** Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`. */
462
- modifyPushConfig(request: {
463
- /** V1 error format. */
464
- '$.xgafv'?: '1' | '2';
465
- /** OAuth access token. */
466
- access_token?: string;
467
- /** Data format for response. */
468
- alt?: 'json' | 'media' | 'proto';
469
- /** JSONP */
470
- callback?: string;
471
- /** Selector specifying which fields to include in a partial response. */
472
- fields?: string;
473
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
474
- key?: string;
475
- /** OAuth 2.0 token for the current user. */
476
- oauth_token?: string;
477
- /** Returns response with indentations and line breaks. */
478
- prettyPrint?: boolean;
479
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
480
- quotaUser?: string;
481
- /** The name of the subscription. */
482
- subscription: string;
483
- /** Upload protocol for media (e.g. "raw", "multipart"). */
484
- upload_protocol?: string;
485
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
486
- uploadType?: string;
487
- /** Request body */
488
- resource: ModifyPushConfigRequest;
489
- }): Request<{}>;
490
- modifyPushConfig(
491
- request: {
317
+ }): Request<{}>;
318
+ /** Gets the configuration details of a subscription. */
319
+ get(request?: {
492
320
  /** V1 error format. */
493
321
  '$.xgafv'?: '1' | '2';
494
322
  /** OAuth access token. */
@@ -507,46 +335,15 @@ declare namespace gapi.client {
507
335
  prettyPrint?: boolean;
508
336
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
509
337
  quotaUser?: string;
510
- /** The name of the subscription. */
338
+ /** The name of the subscription to get. */
511
339
  subscription: string;
512
340
  /** Upload protocol for media (e.g. "raw", "multipart"). */
513
341
  upload_protocol?: string;
514
342
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
515
343
  uploadType?: string;
516
- },
517
- body: ModifyPushConfigRequest,
518
- ): Request<{}>;
519
- /** Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. */
520
- pull(request: {
521
- /** V1 error format. */
522
- '$.xgafv'?: '1' | '2';
523
- /** OAuth access token. */
524
- access_token?: string;
525
- /** Data format for response. */
526
- alt?: 'json' | 'media' | 'proto';
527
- /** JSONP */
528
- callback?: string;
529
- /** Selector specifying which fields to include in a partial response. */
530
- fields?: string;
531
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
532
- key?: string;
533
- /** OAuth 2.0 token for the current user. */
534
- oauth_token?: string;
535
- /** Returns response with indentations and line breaks. */
536
- prettyPrint?: boolean;
537
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
538
- quotaUser?: string;
539
- /** The subscription from which messages should be pulled. */
540
- subscription: string;
541
- /** Upload protocol for media (e.g. "raw", "multipart"). */
542
- upload_protocol?: string;
543
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
544
- uploadType?: string;
545
- /** Request body */
546
- resource: PullRequest;
547
- }): Request<PullResponse>;
548
- pull(
549
- request: {
344
+ }): Request<Subscription>;
345
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
346
+ getIamPolicy(request?: {
550
347
  /** V1 error format. */
551
348
  '$.xgafv'?: '1' | '2';
552
349
  /** OAuth access token. */
@@ -561,22 +358,110 @@ declare namespace gapi.client {
561
358
  key?: string;
562
359
  /** OAuth 2.0 token for the current user. */
563
360
  oauth_token?: string;
361
+ /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
362
+ 'options.requestedPolicyVersion'?: number;
564
363
  /** Returns response with indentations and line breaks. */
565
364
  prettyPrint?: boolean;
566
365
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
567
366
  quotaUser?: string;
568
- /** The subscription from which messages should be pulled. */
367
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
368
+ resource: string;
369
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
370
+ upload_protocol?: string;
371
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
372
+ uploadType?: string;
373
+ }): Request<Policy>;
374
+ /** Lists matching subscriptions. */
375
+ list(request?: {
376
+ /** V1 error format. */
377
+ '$.xgafv'?: '1' | '2';
378
+ /** OAuth access token. */
379
+ access_token?: string;
380
+ /** Data format for response. */
381
+ alt?: 'json' | 'media' | 'proto';
382
+ /** JSONP */
383
+ callback?: string;
384
+ /** Selector specifying which fields to include in a partial response. */
385
+ fields?: string;
386
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
387
+ key?: string;
388
+ /** OAuth 2.0 token for the current user. */
389
+ oauth_token?: string;
390
+ /** Maximum number of subscriptions to return. */
391
+ pageSize?: number;
392
+ /** The value returned by the last `ListSubscriptionsResponse`; indicates that this is a continuation of a prior `ListSubscriptions` call, and that the system should return the next page of data. */
393
+ pageToken?: string;
394
+ /** Returns response with indentations and line breaks. */
395
+ prettyPrint?: boolean;
396
+ /** The name of the cloud project that subscriptions belong to. */
397
+ project: string;
398
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
399
+ quotaUser?: string;
400
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
401
+ upload_protocol?: string;
402
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
403
+ uploadType?: string;
404
+ }): Request<ListSubscriptionsResponse>;
405
+ /** 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. Note that this does not modify the subscription-level `ackDeadlineSeconds` used for subsequent messages. */
406
+ modifyAckDeadline(request: {
407
+ /** V1 error format. */
408
+ '$.xgafv'?: '1' | '2';
409
+ /** OAuth access token. */
410
+ access_token?: string;
411
+ /** Data format for response. */
412
+ alt?: 'json' | 'media' | 'proto';
413
+ /** JSONP */
414
+ callback?: string;
415
+ /** Selector specifying which fields to include in a partial response. */
416
+ fields?: string;
417
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
418
+ key?: string;
419
+ /** OAuth 2.0 token for the current user. */
420
+ oauth_token?: string;
421
+ /** Returns response with indentations and line breaks. */
422
+ prettyPrint?: boolean;
423
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
424
+ quotaUser?: string;
425
+ /** The name of the subscription. */
569
426
  subscription: string;
570
427
  /** Upload protocol for media (e.g. "raw", "multipart"). */
571
428
  upload_protocol?: string;
572
429
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
573
430
  uploadType?: string;
574
- },
575
- body: PullRequest,
576
- ): Request<PullResponse>;
577
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
578
- setIamPolicy(
579
- request: {
431
+ /** Request body */
432
+ resource: ModifyAckDeadlineRequest;
433
+ }): Request<{}>;
434
+ modifyAckDeadline(
435
+ request: {
436
+ /** V1 error format. */
437
+ '$.xgafv'?: '1' | '2';
438
+ /** OAuth access token. */
439
+ access_token?: string;
440
+ /** Data format for response. */
441
+ alt?: 'json' | 'media' | 'proto';
442
+ /** JSONP */
443
+ callback?: string;
444
+ /** Selector specifying which fields to include in a partial response. */
445
+ fields?: string;
446
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
447
+ key?: string;
448
+ /** OAuth 2.0 token for the current user. */
449
+ oauth_token?: string;
450
+ /** Returns response with indentations and line breaks. */
451
+ prettyPrint?: boolean;
452
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
453
+ quotaUser?: string;
454
+ /** The name of the subscription. */
455
+ subscription: string;
456
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
457
+ upload_protocol?: string;
458
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
459
+ uploadType?: string;
460
+ },
461
+ body: ModifyAckDeadlineRequest,
462
+ ): Request<{}>;
463
+ /** Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`. */
464
+ modifyPushConfig(request: {
580
465
  /** V1 error format. */
581
466
  '$.xgafv'?: '1' | '2';
582
467
  /** OAuth access token. */
@@ -595,18 +480,46 @@ declare namespace gapi.client {
595
480
  prettyPrint?: boolean;
596
481
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
597
482
  quotaUser?: string;
598
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
599
- resource: string;
483
+ /** The name of the subscription. */
484
+ subscription: string;
600
485
  /** Upload protocol for media (e.g. "raw", "multipart"). */
601
486
  upload_protocol?: string;
602
487
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
603
488
  uploadType?: string;
604
- },
605
- body: SetIamPolicyRequest,
606
- ): Request<Policy>;
607
- /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
608
- testIamPermissions(
609
- request: {
489
+ /** Request body */
490
+ resource: ModifyPushConfigRequest;
491
+ }): Request<{}>;
492
+ modifyPushConfig(
493
+ request: {
494
+ /** V1 error format. */
495
+ '$.xgafv'?: '1' | '2';
496
+ /** OAuth access token. */
497
+ access_token?: string;
498
+ /** Data format for response. */
499
+ alt?: 'json' | 'media' | 'proto';
500
+ /** JSONP */
501
+ callback?: string;
502
+ /** Selector specifying which fields to include in a partial response. */
503
+ fields?: string;
504
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
505
+ key?: string;
506
+ /** OAuth 2.0 token for the current user. */
507
+ oauth_token?: string;
508
+ /** Returns response with indentations and line breaks. */
509
+ prettyPrint?: boolean;
510
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
511
+ quotaUser?: string;
512
+ /** The name of the subscription. */
513
+ subscription: string;
514
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
515
+ upload_protocol?: string;
516
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
517
+ uploadType?: string;
518
+ },
519
+ body: ModifyPushConfigRequest,
520
+ ): Request<{}>;
521
+ /** Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. */
522
+ pull(request: {
610
523
  /** V1 error format. */
611
524
  '$.xgafv'?: '1' | '2';
612
525
  /** OAuth access token. */
@@ -625,81 +538,108 @@ declare namespace gapi.client {
625
538
  prettyPrint?: boolean;
626
539
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
627
540
  quotaUser?: string;
628
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
629
- resource: string;
541
+ /** The subscription from which messages should be pulled. */
542
+ subscription: string;
630
543
  /** Upload protocol for media (e.g. "raw", "multipart"). */
631
544
  upload_protocol?: string;
632
545
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
633
546
  uploadType?: string;
634
- },
635
- body: TestIamPermissionsRequest,
636
- ): Request<TestIamPermissionsResponse>;
637
- }
638
- interface SubscriptionsResource {
639
- /** Lists the name of the subscriptions for this topic. */
640
- list(request?: {
641
- /** V1 error format. */
642
- '$.xgafv'?: '1' | '2';
643
- /** OAuth access token. */
644
- access_token?: string;
645
- /** Data format for response. */
646
- alt?: 'json' | 'media' | 'proto';
647
- /** JSONP */
648
- callback?: string;
649
- /** Selector specifying which fields to include in a partial response. */
650
- fields?: string;
651
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
652
- key?: string;
653
- /** OAuth 2.0 token for the current user. */
654
- oauth_token?: string;
655
- /** Maximum number of subscription names to return. */
656
- pageSize?: number;
657
- /** The value returned by the last `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a prior `ListTopicSubscriptions` call, and that the system should return the next page of data. */
658
- pageToken?: string;
659
- /** Returns response with indentations and line breaks. */
660
- prettyPrint?: boolean;
661
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
662
- quotaUser?: string;
663
- /** The name of the topic that subscriptions are attached to. */
664
- topic: string;
665
- /** Upload protocol for media (e.g. "raw", "multipart"). */
666
- upload_protocol?: string;
667
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
668
- uploadType?: string;
669
- }): Request<ListTopicSubscriptionsResponse>;
670
- }
671
- interface TopicsResource {
672
- /** Creates the given topic with the given name. */
673
- create(request: {
674
- /** V1 error format. */
675
- '$.xgafv'?: '1' | '2';
676
- /** OAuth access token. */
677
- access_token?: string;
678
- /** Data format for response. */
679
- alt?: 'json' | 'media' | 'proto';
680
- /** JSONP */
681
- callback?: string;
682
- /** Selector specifying which fields to include in a partial response. */
683
- fields?: string;
684
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
685
- key?: string;
686
- /** The name of the topic. It must have the format `"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"`. */
687
- name: string;
688
- /** OAuth 2.0 token for the current user. */
689
- oauth_token?: string;
690
- /** Returns response with indentations and line breaks. */
691
- prettyPrint?: boolean;
692
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
693
- quotaUser?: string;
694
- /** Upload protocol for media (e.g. "raw", "multipart"). */
695
- upload_protocol?: string;
696
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
697
- uploadType?: string;
698
- /** Request body */
699
- resource: Topic;
700
- }): Request<Topic>;
701
- create(
702
- request: {
547
+ /** Request body */
548
+ resource: PullRequest;
549
+ }): Request<PullResponse>;
550
+ pull(
551
+ request: {
552
+ /** V1 error format. */
553
+ '$.xgafv'?: '1' | '2';
554
+ /** OAuth access token. */
555
+ access_token?: string;
556
+ /** Data format for response. */
557
+ alt?: 'json' | 'media' | 'proto';
558
+ /** JSONP */
559
+ callback?: string;
560
+ /** Selector specifying which fields to include in a partial response. */
561
+ fields?: string;
562
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
563
+ key?: string;
564
+ /** OAuth 2.0 token for the current user. */
565
+ oauth_token?: string;
566
+ /** Returns response with indentations and line breaks. */
567
+ prettyPrint?: boolean;
568
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
569
+ quotaUser?: string;
570
+ /** The subscription from which messages should be pulled. */
571
+ subscription: string;
572
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
573
+ upload_protocol?: string;
574
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
575
+ uploadType?: string;
576
+ },
577
+ body: PullRequest,
578
+ ): Request<PullResponse>;
579
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
580
+ setIamPolicy(
581
+ request: {
582
+ /** V1 error format. */
583
+ '$.xgafv'?: '1' | '2';
584
+ /** OAuth access token. */
585
+ access_token?: string;
586
+ /** Data format for response. */
587
+ alt?: 'json' | 'media' | 'proto';
588
+ /** JSONP */
589
+ callback?: string;
590
+ /** Selector specifying which fields to include in a partial response. */
591
+ fields?: string;
592
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
593
+ key?: string;
594
+ /** OAuth 2.0 token for the current user. */
595
+ oauth_token?: string;
596
+ /** Returns response with indentations and line breaks. */
597
+ prettyPrint?: boolean;
598
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
599
+ quotaUser?: string;
600
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
601
+ resource: string;
602
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
603
+ upload_protocol?: string;
604
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
605
+ uploadType?: string;
606
+ },
607
+ body: SetIamPolicyRequest,
608
+ ): Request<Policy>;
609
+ /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
610
+ testIamPermissions(
611
+ request: {
612
+ /** V1 error format. */
613
+ '$.xgafv'?: '1' | '2';
614
+ /** OAuth access token. */
615
+ access_token?: string;
616
+ /** Data format for response. */
617
+ alt?: 'json' | 'media' | 'proto';
618
+ /** JSONP */
619
+ callback?: string;
620
+ /** Selector specifying which fields to include in a partial response. */
621
+ fields?: string;
622
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
623
+ key?: string;
624
+ /** OAuth 2.0 token for the current user. */
625
+ oauth_token?: string;
626
+ /** Returns response with indentations and line breaks. */
627
+ prettyPrint?: boolean;
628
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
629
+ quotaUser?: string;
630
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
631
+ resource: string;
632
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
633
+ upload_protocol?: string;
634
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
635
+ uploadType?: string;
636
+ },
637
+ body: TestIamPermissionsRequest,
638
+ ): Request<TestIamPermissionsResponse>;
639
+ };
640
+ topics: {
641
+ /** Creates the given topic with the given name. */
642
+ create(request: {
703
643
  /** V1 error format. */
704
644
  '$.xgafv'?: '1' | '2';
705
645
  /** OAuth access token. */
@@ -724,154 +664,40 @@ declare namespace gapi.client {
724
664
  upload_protocol?: string;
725
665
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
726
666
  uploadType?: string;
727
- },
728
- body: Topic,
729
- ): Request<Topic>;
730
- /** Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. */
731
- delete(request?: {
732
- /** V1 error format. */
733
- '$.xgafv'?: '1' | '2';
734
- /** OAuth access token. */
735
- access_token?: string;
736
- /** Data format for response. */
737
- alt?: 'json' | 'media' | 'proto';
738
- /** JSONP */
739
- callback?: string;
740
- /** Selector specifying which fields to include in a partial response. */
741
- fields?: string;
742
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
743
- key?: string;
744
- /** OAuth 2.0 token for the current user. */
745
- oauth_token?: string;
746
- /** Returns response with indentations and line breaks. */
747
- prettyPrint?: boolean;
748
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
749
- quotaUser?: string;
750
- /** Name of the topic to delete. */
751
- topic: string;
752
- /** Upload protocol for media (e.g. "raw", "multipart"). */
753
- upload_protocol?: string;
754
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
755
- uploadType?: string;
756
- }): Request<{}>;
757
- /** Gets the configuration of a topic. */
758
- get(request?: {
759
- /** V1 error format. */
760
- '$.xgafv'?: '1' | '2';
761
- /** OAuth access token. */
762
- access_token?: string;
763
- /** Data format for response. */
764
- alt?: 'json' | 'media' | 'proto';
765
- /** JSONP */
766
- callback?: string;
767
- /** Selector specifying which fields to include in a partial response. */
768
- fields?: string;
769
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
770
- key?: string;
771
- /** OAuth 2.0 token for the current user. */
772
- oauth_token?: string;
773
- /** Returns response with indentations and line breaks. */
774
- prettyPrint?: boolean;
775
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
776
- quotaUser?: string;
777
- /** The name of the topic to get. */
778
- topic: string;
779
- /** Upload protocol for media (e.g. "raw", "multipart"). */
780
- upload_protocol?: string;
781
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
782
- uploadType?: string;
783
- }): Request<Topic>;
784
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
785
- getIamPolicy(request?: {
786
- /** V1 error format. */
787
- '$.xgafv'?: '1' | '2';
788
- /** OAuth access token. */
789
- access_token?: string;
790
- /** Data format for response. */
791
- alt?: 'json' | 'media' | 'proto';
792
- /** JSONP */
793
- callback?: string;
794
- /** Selector specifying which fields to include in a partial response. */
795
- fields?: string;
796
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
797
- key?: string;
798
- /** OAuth 2.0 token for the current user. */
799
- oauth_token?: string;
800
- /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
801
- 'options.requestedPolicyVersion'?: number;
802
- /** Returns response with indentations and line breaks. */
803
- prettyPrint?: boolean;
804
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
805
- quotaUser?: string;
806
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
807
- resource: string;
808
- /** Upload protocol for media (e.g. "raw", "multipart"). */
809
- upload_protocol?: string;
810
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
811
- uploadType?: string;
812
- }): Request<Policy>;
813
- /** Lists matching topics. */
814
- list(request?: {
815
- /** V1 error format. */
816
- '$.xgafv'?: '1' | '2';
817
- /** OAuth access token. */
818
- access_token?: string;
819
- /** Data format for response. */
820
- alt?: 'json' | 'media' | 'proto';
821
- /** JSONP */
822
- callback?: string;
823
- /** Selector specifying which fields to include in a partial response. */
824
- fields?: string;
825
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
826
- key?: string;
827
- /** OAuth 2.0 token for the current user. */
828
- oauth_token?: string;
829
- /** Maximum number of topics to return. */
830
- pageSize?: number;
831
- /** The value returned by the last `ListTopicsResponse`; indicates that this is a continuation of a prior `ListTopics` call, and that the system should return the next page of data. */
832
- pageToken?: string;
833
- /** Returns response with indentations and line breaks. */
834
- prettyPrint?: boolean;
835
- /** The name of the cloud project that topics belong to. */
836
- project: string;
837
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
838
- quotaUser?: string;
839
- /** Upload protocol for media (e.g. "raw", "multipart"). */
840
- upload_protocol?: string;
841
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
842
- uploadType?: string;
843
- }): Request<ListTopicsResponse>;
844
- /** Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. */
845
- publish(request: {
846
- /** V1 error format. */
847
- '$.xgafv'?: '1' | '2';
848
- /** OAuth access token. */
849
- access_token?: string;
850
- /** Data format for response. */
851
- alt?: 'json' | 'media' | 'proto';
852
- /** JSONP */
853
- callback?: string;
854
- /** Selector specifying which fields to include in a partial response. */
855
- fields?: string;
856
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
857
- key?: string;
858
- /** OAuth 2.0 token for the current user. */
859
- oauth_token?: string;
860
- /** Returns response with indentations and line breaks. */
861
- prettyPrint?: boolean;
862
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
863
- quotaUser?: string;
864
- /** The messages in the request will be published on this topic. */
865
- topic: string;
866
- /** Upload protocol for media (e.g. "raw", "multipart"). */
867
- upload_protocol?: string;
868
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
869
- uploadType?: string;
870
- /** Request body */
871
- resource: PublishRequest;
872
- }): Request<PublishResponse>;
873
- publish(
874
- request: {
667
+ /** Request body */
668
+ resource: Topic;
669
+ }): Request<Topic>;
670
+ create(
671
+ request: {
672
+ /** V1 error format. */
673
+ '$.xgafv'?: '1' | '2';
674
+ /** OAuth access token. */
675
+ access_token?: string;
676
+ /** Data format for response. */
677
+ alt?: 'json' | 'media' | 'proto';
678
+ /** JSONP */
679
+ callback?: string;
680
+ /** Selector specifying which fields to include in a partial response. */
681
+ fields?: string;
682
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
683
+ key?: string;
684
+ /** The name of the topic. It must have the format `"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"`. */
685
+ name: string;
686
+ /** OAuth 2.0 token for the current user. */
687
+ oauth_token?: string;
688
+ /** Returns response with indentations and line breaks. */
689
+ prettyPrint?: boolean;
690
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
691
+ quotaUser?: string;
692
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
693
+ upload_protocol?: string;
694
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
695
+ uploadType?: string;
696
+ },
697
+ body: Topic,
698
+ ): Request<Topic>;
699
+ /** Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. */
700
+ delete(request?: {
875
701
  /** V1 error format. */
876
702
  '$.xgafv'?: '1' | '2';
877
703
  /** OAuth access token. */
@@ -890,18 +716,15 @@ declare namespace gapi.client {
890
716
  prettyPrint?: boolean;
891
717
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
892
718
  quotaUser?: string;
893
- /** The messages in the request will be published on this topic. */
719
+ /** Name of the topic to delete. */
894
720
  topic: string;
895
721
  /** Upload protocol for media (e.g. "raw", "multipart"). */
896
722
  upload_protocol?: string;
897
723
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
898
724
  uploadType?: string;
899
- },
900
- body: PublishRequest,
901
- ): Request<PublishResponse>;
902
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
903
- setIamPolicy(
904
- request: {
725
+ }): Request<{}>;
726
+ /** Gets the configuration of a topic. */
727
+ get(request?: {
905
728
  /** V1 error format. */
906
729
  '$.xgafv'?: '1' | '2';
907
730
  /** OAuth access token. */
@@ -920,18 +743,15 @@ declare namespace gapi.client {
920
743
  prettyPrint?: boolean;
921
744
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
922
745
  quotaUser?: string;
923
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
924
- resource: string;
746
+ /** The name of the topic to get. */
747
+ topic: string;
925
748
  /** Upload protocol for media (e.g. "raw", "multipart"). */
926
749
  upload_protocol?: string;
927
750
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
928
751
  uploadType?: string;
929
- },
930
- body: SetIamPolicyRequest,
931
- ): Request<Policy>;
932
- /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
933
- testIamPermissions(
934
- request: {
752
+ }): Request<Topic>;
753
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
754
+ getIamPolicy(request?: {
935
755
  /** V1 error format. */
936
756
  '$.xgafv'?: '1' | '2';
937
757
  /** OAuth access token. */
@@ -946,26 +766,202 @@ declare namespace gapi.client {
946
766
  key?: string;
947
767
  /** OAuth 2.0 token for the current user. */
948
768
  oauth_token?: string;
769
+ /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
770
+ 'options.requestedPolicyVersion'?: number;
949
771
  /** Returns response with indentations and line breaks. */
950
772
  prettyPrint?: boolean;
951
773
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
952
774
  quotaUser?: string;
953
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
775
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
954
776
  resource: string;
955
777
  /** Upload protocol for media (e.g. "raw", "multipart"). */
956
778
  upload_protocol?: string;
957
779
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
958
780
  uploadType?: string;
959
- },
960
- body: TestIamPermissionsRequest,
961
- ): Request<TestIamPermissionsResponse>;
962
- subscriptions: SubscriptionsResource;
963
- }
964
- interface ProjectsResource {
965
- subscriptions: SubscriptionsResource;
966
- topics: TopicsResource;
967
- }
968
-
969
- const projects: ProjectsResource;
781
+ }): Request<Policy>;
782
+ /** Lists matching topics. */
783
+ list(request?: {
784
+ /** V1 error format. */
785
+ '$.xgafv'?: '1' | '2';
786
+ /** OAuth access token. */
787
+ access_token?: string;
788
+ /** Data format for response. */
789
+ alt?: 'json' | 'media' | 'proto';
790
+ /** JSONP */
791
+ callback?: string;
792
+ /** Selector specifying which fields to include in a partial response. */
793
+ fields?: string;
794
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
795
+ key?: string;
796
+ /** OAuth 2.0 token for the current user. */
797
+ oauth_token?: string;
798
+ /** Maximum number of topics to return. */
799
+ pageSize?: number;
800
+ /** The value returned by the last `ListTopicsResponse`; indicates that this is a continuation of a prior `ListTopics` call, and that the system should return the next page of data. */
801
+ pageToken?: string;
802
+ /** Returns response with indentations and line breaks. */
803
+ prettyPrint?: boolean;
804
+ /** The name of the cloud project that topics belong to. */
805
+ project: string;
806
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
807
+ quotaUser?: string;
808
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
809
+ upload_protocol?: string;
810
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
811
+ uploadType?: string;
812
+ }): Request<ListTopicsResponse>;
813
+ /** Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. */
814
+ publish(request: {
815
+ /** V1 error format. */
816
+ '$.xgafv'?: '1' | '2';
817
+ /** OAuth access token. */
818
+ access_token?: string;
819
+ /** Data format for response. */
820
+ alt?: 'json' | 'media' | 'proto';
821
+ /** JSONP */
822
+ callback?: string;
823
+ /** Selector specifying which fields to include in a partial response. */
824
+ fields?: string;
825
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
826
+ key?: string;
827
+ /** OAuth 2.0 token for the current user. */
828
+ oauth_token?: string;
829
+ /** Returns response with indentations and line breaks. */
830
+ prettyPrint?: boolean;
831
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
832
+ quotaUser?: string;
833
+ /** The messages in the request will be published on this topic. */
834
+ topic: string;
835
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
836
+ upload_protocol?: string;
837
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
838
+ uploadType?: string;
839
+ /** Request body */
840
+ resource: PublishRequest;
841
+ }): Request<PublishResponse>;
842
+ publish(
843
+ request: {
844
+ /** V1 error format. */
845
+ '$.xgafv'?: '1' | '2';
846
+ /** OAuth access token. */
847
+ access_token?: string;
848
+ /** Data format for response. */
849
+ alt?: 'json' | 'media' | 'proto';
850
+ /** JSONP */
851
+ callback?: string;
852
+ /** Selector specifying which fields to include in a partial response. */
853
+ fields?: string;
854
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
855
+ key?: string;
856
+ /** OAuth 2.0 token for the current user. */
857
+ oauth_token?: string;
858
+ /** Returns response with indentations and line breaks. */
859
+ prettyPrint?: boolean;
860
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
861
+ quotaUser?: string;
862
+ /** The messages in the request will be published on this topic. */
863
+ topic: string;
864
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
865
+ upload_protocol?: string;
866
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
867
+ uploadType?: string;
868
+ },
869
+ body: PublishRequest,
870
+ ): Request<PublishResponse>;
871
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
872
+ setIamPolicy(
873
+ request: {
874
+ /** V1 error format. */
875
+ '$.xgafv'?: '1' | '2';
876
+ /** OAuth access token. */
877
+ access_token?: string;
878
+ /** Data format for response. */
879
+ alt?: 'json' | 'media' | 'proto';
880
+ /** JSONP */
881
+ callback?: string;
882
+ /** Selector specifying which fields to include in a partial response. */
883
+ fields?: string;
884
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
885
+ key?: string;
886
+ /** OAuth 2.0 token for the current user. */
887
+ oauth_token?: string;
888
+ /** Returns response with indentations and line breaks. */
889
+ prettyPrint?: boolean;
890
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
891
+ quotaUser?: string;
892
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
893
+ resource: string;
894
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
895
+ upload_protocol?: string;
896
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
897
+ uploadType?: string;
898
+ },
899
+ body: SetIamPolicyRequest,
900
+ ): Request<Policy>;
901
+ /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
902
+ testIamPermissions(
903
+ request: {
904
+ /** V1 error format. */
905
+ '$.xgafv'?: '1' | '2';
906
+ /** OAuth access token. */
907
+ access_token?: string;
908
+ /** Data format for response. */
909
+ alt?: 'json' | 'media' | 'proto';
910
+ /** JSONP */
911
+ callback?: string;
912
+ /** Selector specifying which fields to include in a partial response. */
913
+ fields?: string;
914
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
915
+ key?: string;
916
+ /** OAuth 2.0 token for the current user. */
917
+ oauth_token?: string;
918
+ /** Returns response with indentations and line breaks. */
919
+ prettyPrint?: boolean;
920
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
921
+ quotaUser?: string;
922
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
923
+ resource: string;
924
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
925
+ upload_protocol?: string;
926
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
927
+ uploadType?: string;
928
+ },
929
+ body: TestIamPermissionsRequest,
930
+ ): Request<TestIamPermissionsResponse>;
931
+ subscriptions: {
932
+ /** Lists the name of the subscriptions for this topic. */
933
+ list(request?: {
934
+ /** V1 error format. */
935
+ '$.xgafv'?: '1' | '2';
936
+ /** OAuth access token. */
937
+ access_token?: string;
938
+ /** Data format for response. */
939
+ alt?: 'json' | 'media' | 'proto';
940
+ /** JSONP */
941
+ callback?: string;
942
+ /** Selector specifying which fields to include in a partial response. */
943
+ fields?: string;
944
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
945
+ key?: string;
946
+ /** OAuth 2.0 token for the current user. */
947
+ oauth_token?: string;
948
+ /** Maximum number of subscription names to return. */
949
+ pageSize?: number;
950
+ /** The value returned by the last `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a prior `ListTopicSubscriptions` call, and that the system should return the next page of data. */
951
+ pageToken?: string;
952
+ /** Returns response with indentations and line breaks. */
953
+ prettyPrint?: boolean;
954
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
955
+ quotaUser?: string;
956
+ /** The name of the topic that subscriptions are attached to. */
957
+ topic: string;
958
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
959
+ upload_protocol?: string;
960
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
961
+ uploadType?: string;
962
+ }): Request<ListTopicSubscriptionsResponse>;
963
+ };
964
+ };
965
+ };
970
966
  }
971
967
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.pubsub-v1beta2",
3
- "version": "0.1.20261111",
3
+ "version": "0.2.20261111",
4
4
  "description": "TypeScript typings for Cloud Pub/Sub API v1beta2",
5
5
  "repository": {
6
6
  "type": "git",