@maxim_mazurok/gapi.client.cloudtasks-v2 0.0.20230927 → 0.0.20230929

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 +141 -1
  2. package/package.json +1 -1
  3. package/tests.ts +16 -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://cloudtasks.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20230927
12
+ // Revision: 20230929
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -139,6 +139,17 @@ declare namespace gapi.client {
139
139
  role?:
140
140
  string;
141
141
  }
142
+ interface CmekConfig {
143
+ /**
144
+ * 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
145
+ * in the region. Setting this as blank will turn off CMEK encryption.
146
+ */
147
+ kmsKey?:
148
+ string;
149
+ /** 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` */
150
+ name?:
151
+ string;
152
+ }
142
153
  interface CreateTaskRequest {
143
154
  /**
144
155
  * 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
@@ -1652,6 +1663,45 @@ declare namespace gapi.client {
1652
1663
  uploadType?:
1653
1664
  string;
1654
1665
  }): Request<Location>;
1666
+ /** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
1667
+ getCmekConfig(request?: {
1668
+ /** V1 error format. */
1669
+ "$.xgafv"?:
1670
+ string;
1671
+ /** OAuth access token. */
1672
+ access_token?:
1673
+ string;
1674
+ /** Data format for response. */
1675
+ alt?:
1676
+ string;
1677
+ /** JSONP */
1678
+ callback?:
1679
+ string;
1680
+ /** Selector specifying which fields to include in a partial response. */
1681
+ fields?:
1682
+ string;
1683
+ /** 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. */
1684
+ key?:
1685
+ string;
1686
+ /** Required. The config. For example: projects/PROJECT_ID/locations/LOCATION_ID/CmekConfig` */
1687
+ name:
1688
+ string;
1689
+ /** OAuth 2.0 token for the current user. */
1690
+ oauth_token?:
1691
+ string;
1692
+ /** Returns response with indentations and line breaks. */
1693
+ prettyPrint?:
1694
+ boolean;
1695
+ /** 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. */
1696
+ quotaUser?:
1697
+ string;
1698
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1699
+ upload_protocol?:
1700
+ string;
1701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1702
+ uploadType?:
1703
+ string;
1704
+ }): Request<CmekConfig>;
1655
1705
  /** Lists information about the supported locations for this service. */
1656
1706
  list(request?: {
1657
1707
  /** V1 error format. */
@@ -1703,6 +1753,96 @@ declare namespace gapi.client {
1703
1753
  uploadType?:
1704
1754
  string;
1705
1755
  }): Request<ListLocationsResponse>;
1756
+ /**
1757
+ * 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
1758
+ * created in the location will be encrypted at-rest with the KMS-key provided in the config.
1759
+ */
1760
+ updateCmekConfig(request: {
1761
+ /** V1 error format. */
1762
+ "$.xgafv"?:
1763
+ string;
1764
+ /** OAuth access token. */
1765
+ access_token?:
1766
+ string;
1767
+ /** Data format for response. */
1768
+ alt?:
1769
+ string;
1770
+ /** JSONP */
1771
+ callback?:
1772
+ string;
1773
+ /** Selector specifying which fields to include in a partial response. */
1774
+ fields?:
1775
+ string;
1776
+ /** 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. */
1777
+ key?:
1778
+ string;
1779
+ /** 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` */
1780
+ name:
1781
+ string;
1782
+ /** OAuth 2.0 token for the current user. */
1783
+ oauth_token?:
1784
+ string;
1785
+ /** Returns response with indentations and line breaks. */
1786
+ prettyPrint?:
1787
+ boolean;
1788
+ /** 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. */
1789
+ quotaUser?:
1790
+ string;
1791
+ /** List of fields to be updated in this request. */
1792
+ updateMask?:
1793
+ string;
1794
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1795
+ upload_protocol?:
1796
+ string;
1797
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1798
+ uploadType?:
1799
+ string;
1800
+ /** Request body */
1801
+ resource:
1802
+ CmekConfig;
1803
+ }): Request<CmekConfig>;
1804
+ updateCmekConfig(request: {
1805
+ /** V1 error format. */
1806
+ "$.xgafv"?:
1807
+ string;
1808
+ /** OAuth access token. */
1809
+ access_token?:
1810
+ string;
1811
+ /** Data format for response. */
1812
+ alt?:
1813
+ string;
1814
+ /** JSONP */
1815
+ callback?:
1816
+ string;
1817
+ /** Selector specifying which fields to include in a partial response. */
1818
+ fields?:
1819
+ string;
1820
+ /** 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. */
1821
+ key?:
1822
+ string;
1823
+ /** 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` */
1824
+ name:
1825
+ string;
1826
+ /** OAuth 2.0 token for the current user. */
1827
+ oauth_token?:
1828
+ string;
1829
+ /** Returns response with indentations and line breaks. */
1830
+ prettyPrint?:
1831
+ boolean;
1832
+ /** 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. */
1833
+ quotaUser?:
1834
+ string;
1835
+ /** List of fields to be updated in this request. */
1836
+ updateMask?:
1837
+ string;
1838
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1839
+ upload_protocol?:
1840
+ string;
1841
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1842
+ uploadType?:
1843
+ string;
1844
+ },
1845
+ body: CmekConfig): Request<CmekConfig>;
1706
1846
  queues:
1707
1847
  QueuesResource;
1708
1848
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtasks-v2",
3
- "version": "0.0.20230927",
3
+ "version": "0.0.20230929",
4
4
  "description": "TypeScript typings for Cloud Tasks API v2",
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: 20230927
6
+ // Revision: 20230929
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -33,6 +33,10 @@ gapi.load('client', async () => {
33
33
  await gapi.client.cloudtasks.projects.locations.get({
34
34
  name: "Test string",
35
35
  });
36
+ /** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
37
+ await gapi.client.cloudtasks.projects.locations.getCmekConfig({
38
+ name: "Test string",
39
+ });
36
40
  /** Lists information about the supported locations for this service. */
37
41
  await gapi.client.cloudtasks.projects.locations.list({
38
42
  filter: "Test string",
@@ -40,6 +44,17 @@ gapi.load('client', async () => {
40
44
  pageSize: 42,
41
45
  pageToken: "Test string",
42
46
  });
47
+ /**
48
+ * 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
49
+ * in the location will be encrypted at-rest with the KMS-key provided in the config.
50
+ */
51
+ await gapi.client.cloudtasks.projects.locations.updateCmekConfig({
52
+ name: "Test string",
53
+ updateMask: "Test string",
54
+ }, {
55
+ kmsKey: "Test string",
56
+ name: "Test string",
57
+ });
43
58
  /**
44
59
  * 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
45
60
  * 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