@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20230809 → 0.0.20230906

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 +148 -3
  2. package/package.json +1 -1
  3. package/tests.ts +22 -3
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://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2
12
- // Revision: 20230809
12
+ // Revision: 20230906
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -187,6 +187,17 @@ declare namespace gapi.client {
187
187
  scheduleTime?:
188
188
  string;
189
189
  }
190
+ interface CmekConfig {
191
+ /**
192
+ * Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to encrypt the Queues & Tasks
193
+ * in the region. Setting this as blank will turn off CMEK encryption.
194
+ */
195
+ kmsKey?:
196
+ string;
197
+ /** Output only. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` */
198
+ name?:
199
+ string;
200
+ }
190
201
  interface CreateTaskRequest {
191
202
  /**
192
203
  * The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as
@@ -1755,8 +1766,11 @@ declare namespace gapi.client {
1755
1766
  },
1756
1767
  body: Queue): Request<Queue>;
1757
1768
  /**
1758
- * Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using
1759
- * this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
1769
+ * Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, you may be prevented from creating a new queue with the same name as the
1770
+ * deleted queue for a tombstone window of up to 3 days. During this window, the CreateQueue operation may appear to recreate the queue, but this can be misleading. If you attempt to
1771
+ * create a queue with the same name as one that is in the tombstone window, run GetQueue to confirm that the queue creation was successful. If GetQueue returns 200 response code, your
1772
+ * queue was successfully created with the name of the previously deleted queue. Otherwise, your queue did not successfully recreate. WARNING: Using this method may have unintended
1773
+ * side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
1760
1774
  * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.
1761
1775
  */
1762
1776
  delete(request?: {
@@ -2445,6 +2459,45 @@ declare namespace gapi.client {
2445
2459
  uploadType?:
2446
2460
  string;
2447
2461
  }): Request<Location>;
2462
+ /** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
2463
+ getCmekConfig(request?: {
2464
+ /** V1 error format. */
2465
+ "$.xgafv"?:
2466
+ string;
2467
+ /** OAuth access token. */
2468
+ access_token?:
2469
+ string;
2470
+ /** Data format for response. */
2471
+ alt?:
2472
+ string;
2473
+ /** JSONP */
2474
+ callback?:
2475
+ string;
2476
+ /** Selector specifying which fields to include in a partial response. */
2477
+ fields?:
2478
+ string;
2479
+ /** 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. */
2480
+ key?:
2481
+ string;
2482
+ /** Required. The config. For example: projects/PROJECT_ID/locations/LOCATION_ID/CmekConfig` */
2483
+ name:
2484
+ string;
2485
+ /** OAuth 2.0 token for the current user. */
2486
+ oauth_token?:
2487
+ string;
2488
+ /** Returns response with indentations and line breaks. */
2489
+ prettyPrint?:
2490
+ boolean;
2491
+ /** 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. */
2492
+ quotaUser?:
2493
+ string;
2494
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2495
+ upload_protocol?:
2496
+ string;
2497
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2498
+ uploadType?:
2499
+ string;
2500
+ }): Request<CmekConfig>;
2448
2501
  /** Lists information about the supported locations for this service. */
2449
2502
  list(request?: {
2450
2503
  /** V1 error format. */
@@ -2496,6 +2549,98 @@ declare namespace gapi.client {
2496
2549
  uploadType?:
2497
2550
  string;
2498
2551
  }): Request<ListLocationsResponse>;
2552
+ /**
2553
+ * Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key assotiated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks
2554
+ * created in the location will be encrypted at-rest with the KMS-key provided in the config.
2555
+ */
2556
+ updateCmekConfig(request: {
2557
+ /** V1 error format. */
2558
+ "$.xgafv"?:
2559
+ string;
2560
+ /** OAuth access token. */
2561
+ access_token?:
2562
+ string;
2563
+ /** Data format for response. */
2564
+ alt?:
2565
+ string;
2566
+ /** JSONP */
2567
+ callback?:
2568
+ string;
2569
+ /** Selector specifying which fields to include in a partial response. */
2570
+ fields?:
2571
+ string;
2572
+ /** 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. */
2573
+ key?:
2574
+ string;
2575
+ locationsId:
2576
+ string;
2577
+ /** OAuth 2.0 token for the current user. */
2578
+ oauth_token?:
2579
+ string;
2580
+ /** Returns response with indentations and line breaks. */
2581
+ prettyPrint?:
2582
+ boolean;
2583
+ projectsId:
2584
+ string;
2585
+ /** 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. */
2586
+ quotaUser?:
2587
+ string;
2588
+ /** List of fields to be updated in this request. */
2589
+ updateMask?:
2590
+ string;
2591
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2592
+ upload_protocol?:
2593
+ string;
2594
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2595
+ uploadType?:
2596
+ string;
2597
+ /** Request body */
2598
+ resource:
2599
+ CmekConfig;
2600
+ }): Request<CmekConfig>;
2601
+ updateCmekConfig(request: {
2602
+ /** V1 error format. */
2603
+ "$.xgafv"?:
2604
+ string;
2605
+ /** OAuth access token. */
2606
+ access_token?:
2607
+ string;
2608
+ /** Data format for response. */
2609
+ alt?:
2610
+ string;
2611
+ /** JSONP */
2612
+ callback?:
2613
+ string;
2614
+ /** Selector specifying which fields to include in a partial response. */
2615
+ fields?:
2616
+ string;
2617
+ /** 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. */
2618
+ key?:
2619
+ string;
2620
+ locationsId:
2621
+ string;
2622
+ /** OAuth 2.0 token for the current user. */
2623
+ oauth_token?:
2624
+ string;
2625
+ /** Returns response with indentations and line breaks. */
2626
+ prettyPrint?:
2627
+ boolean;
2628
+ projectsId:
2629
+ string;
2630
+ /** 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. */
2631
+ quotaUser?:
2632
+ string;
2633
+ /** List of fields to be updated in this request. */
2634
+ updateMask?:
2635
+ string;
2636
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2637
+ upload_protocol?:
2638
+ string;
2639
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2640
+ uploadType?:
2641
+ string;
2642
+ },
2643
+ body: CmekConfig): Request<CmekConfig>;
2499
2644
  queues:
2500
2645
  QueuesResource;
2501
2646
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtasks-v2beta2",
3
- "version": "0.0.20230809",
3
+ "version": "0.0.20230906",
4
4
  "description": "TypeScript typings for Cloud Tasks API v2beta2",
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: 20230809
6
+ // Revision: 20230906
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -48,6 +48,10 @@ gapi.load('client', async () => {
48
48
  await gapi.client.cloudtasks.projects.locations.get({
49
49
  name: "Test string",
50
50
  });
51
+ /** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
52
+ await gapi.client.cloudtasks.projects.locations.getCmekConfig({
53
+ name: "Test string",
54
+ });
51
55
  /** Lists information about the supported locations for this service. */
52
56
  await gapi.client.cloudtasks.projects.locations.list({
53
57
  filter: "Test string",
@@ -55,6 +59,18 @@ gapi.load('client', async () => {
55
59
  pageSize: 42,
56
60
  pageToken: "Test string",
57
61
  });
62
+ /**
63
+ * Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key assotiated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created
64
+ * in the location will be encrypted at-rest with the KMS-key provided in the config.
65
+ */
66
+ await gapi.client.cloudtasks.projects.locations.updateCmekConfig({
67
+ locationsId: "Test string",
68
+ projectsId: "Test string",
69
+ updateMask: "Test string",
70
+ }, {
71
+ kmsKey: "Test string",
72
+ name: "Test string",
73
+ });
58
74
  /**
59
75
  * Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was
60
76
  * dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of
@@ -131,8 +147,11 @@ gapi.load('client', async () => {
131
147
  tombstoneTtl: "Test string",
132
148
  });
133
149
  /**
134
- * Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this
135
- * method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
150
+ * Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, you may be prevented from creating a new queue with the same name as the
151
+ * deleted queue for a tombstone window of up to 3 days. During this window, the CreateQueue operation may appear to recreate the queue, but this can be misleading. If you attempt to
152
+ * create a queue with the same name as one that is in the tombstone window, run GetQueue to confirm that the queue creation was successful. If GetQueue returns 200 response code, your
153
+ * queue was successfully created with the name of the previously deleted queue. Otherwise, your queue did not successfully recreate. WARNING: Using this method may have unintended side
154
+ * effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
136
155
  * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.
137
156
  */
138
157
  await gapi.client.cloudtasks.projects.locations.queues.delete({