@maxim_mazurok/gapi.client.cloudkms-v1 0.0.20220902 → 0.0.20220916

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 +107 -1
  2. package/package.json +1 -1
  3. package/tests.ts +54 -1
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://cloudkms.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220902
13
+ // Revision: 20220916
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -726,6 +726,111 @@ declare namespace gapi.client {
726
726
  */
727
727
  pem?: string;
728
728
  }
729
+ interface EkmConfigResource {
730
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
731
+ getIamPolicy(request?: {
732
+ /** V1 error format. */
733
+ "$.xgafv"?: string;
734
+ /** OAuth access token. */
735
+ access_token?: string;
736
+ /** Data format for response. */
737
+ alt?: string;
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
+ /**
747
+ * 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
748
+ * 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
749
+ * 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
750
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
751
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
752
+ */
753
+ "options.requestedPolicyVersion"?: number;
754
+ /** Returns response with indentations and line breaks. */
755
+ prettyPrint?: boolean;
756
+ /** 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. */
757
+ quotaUser?: string;
758
+ /**
759
+ * 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
760
+ * field.
761
+ */
762
+ resource: string;
763
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
764
+ upload_protocol?: string;
765
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
766
+ uploadType?: string;
767
+ }): Request<Policy>;
768
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
769
+ setIamPolicy(request: {
770
+ /** V1 error format. */
771
+ "$.xgafv"?: string;
772
+ /** OAuth access token. */
773
+ access_token?: string;
774
+ /** Data format for response. */
775
+ alt?: string;
776
+ /** JSONP */
777
+ callback?: string;
778
+ /** Selector specifying which fields to include in a partial response. */
779
+ fields?: string;
780
+ /** 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. */
781
+ key?: string;
782
+ /** OAuth 2.0 token for the current user. */
783
+ oauth_token?: string;
784
+ /** Returns response with indentations and line breaks. */
785
+ prettyPrint?: boolean;
786
+ /** 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. */
787
+ quotaUser?: string;
788
+ /**
789
+ * 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
790
+ * field.
791
+ */
792
+ resource: string;
793
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
794
+ upload_protocol?: string;
795
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
796
+ uploadType?: string;
797
+ },
798
+ body: SetIamPolicyRequest): Request<Policy>;
799
+ /**
800
+ * 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
801
+ * 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.
802
+ */
803
+ testIamPermissions(request: {
804
+ /** V1 error format. */
805
+ "$.xgafv"?: string;
806
+ /** OAuth access token. */
807
+ access_token?: string;
808
+ /** Data format for response. */
809
+ alt?: string;
810
+ /** JSONP */
811
+ callback?: string;
812
+ /** Selector specifying which fields to include in a partial response. */
813
+ fields?: string;
814
+ /** 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. */
815
+ key?: string;
816
+ /** OAuth 2.0 token for the current user. */
817
+ oauth_token?: string;
818
+ /** Returns response with indentations and line breaks. */
819
+ prettyPrint?: boolean;
820
+ /** 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. */
821
+ quotaUser?: string;
822
+ /**
823
+ * 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
824
+ * this field.
825
+ */
826
+ resource: string;
827
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
828
+ upload_protocol?: string;
829
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
830
+ uploadType?: string;
831
+ },
832
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
833
+ }
729
834
  interface EkmConnectionsResource {
730
835
  /** Creates a new EkmConnection in a given Project and Location. */
731
836
  create(request: {
@@ -2713,6 +2818,7 @@ declare namespace gapi.client {
2713
2818
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2714
2819
  uploadType?: string;
2715
2820
  }): Request<ListLocationsResponse>;
2821
+ ekmConfig: EkmConfigResource;
2716
2822
  ekmConnections: EkmConnectionsResource;
2717
2823
  keyRings: KeyRingsResource;
2718
2824
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudkms-v1",
3
- "version": "0.0.20220902",
3
+ "version": "0.0.20220916",
4
4
  "description": "TypeScript typings for Cloud Key Management Service (KMS) 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: 20220902
6
+ // Revision: 20220916
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -49,6 +49,59 @@ gapi.load('client', async () => {
49
49
  pageSize: 42,
50
50
  pageToken: "Test string",
51
51
  });
52
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
53
+ await gapi.client.cloudkms.projects.locations.ekmConfig.getIamPolicy({
54
+ "options.requestedPolicyVersion": 42,
55
+ resource: "Test string",
56
+ });
57
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
58
+ await gapi.client.cloudkms.projects.locations.ekmConfig.setIamPolicy({
59
+ resource: "Test string",
60
+ }, {
61
+ policy: {
62
+ auditConfigs: [
63
+ {
64
+ auditLogConfigs: [
65
+ {
66
+ exemptedMembers: [
67
+ "Test string"
68
+ ],
69
+ logType: "Test string",
70
+ }
71
+ ],
72
+ service: "Test string",
73
+ }
74
+ ],
75
+ bindings: [
76
+ {
77
+ condition: {
78
+ description: "Test string",
79
+ expression: "Test string",
80
+ location: "Test string",
81
+ title: "Test string",
82
+ },
83
+ members: [
84
+ "Test string"
85
+ ],
86
+ role: "Test string",
87
+ }
88
+ ],
89
+ etag: "Test string",
90
+ version: 42,
91
+ },
92
+ updateMask: "Test string",
93
+ });
94
+ /**
95
+ * 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
96
+ * 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.
97
+ */
98
+ await gapi.client.cloudkms.projects.locations.ekmConfig.testIamPermissions({
99
+ resource: "Test string",
100
+ }, {
101
+ permissions: [
102
+ "Test string"
103
+ ],
104
+ });
52
105
  /** Creates a new EkmConnection in a given Project and Location. */
53
106
  await gapi.client.cloudkms.projects.locations.ekmConnections.create({
54
107
  ekmConnectionId: "Test string",