@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230430 → 0.0.20230515
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.
- package/index.d.ts +145 -2
- package/package.json +1 -1
- package/tests.ts +55 -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://gkehub.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230515
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1085,7 +1085,7 @@ declare namespace gapi.client {
|
|
|
1085
1085
|
/** The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` */
|
|
1086
1086
|
name?:
|
|
1087
1087
|
string;
|
|
1088
|
-
/** A
|
|
1088
|
+
/** A Scope resource name in the format `projects/*/locations/*/scopes/*`. */
|
|
1089
1089
|
scope?:
|
|
1090
1090
|
string;
|
|
1091
1091
|
/** Output only. State of the membership binding resource. */
|
|
@@ -2863,6 +2863,9 @@ declare namespace gapi.client {
|
|
|
2863
2863
|
/** Selector specifying which fields to include in a partial response. */
|
|
2864
2864
|
fields?:
|
|
2865
2865
|
string;
|
|
2866
|
+
/** Optional. Lists MembershipBindings that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
|
|
2867
|
+
filter?:
|
|
2868
|
+
string;
|
|
2866
2869
|
/** 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. */
|
|
2867
2870
|
key?:
|
|
2868
2871
|
string;
|
|
@@ -4701,6 +4704,57 @@ declare namespace gapi.client {
|
|
|
4701
4704
|
uploadType?:
|
|
4702
4705
|
string;
|
|
4703
4706
|
}): Request<Scope>;
|
|
4707
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
4708
|
+
getIamPolicy(request?: {
|
|
4709
|
+
/** V1 error format. */
|
|
4710
|
+
"$.xgafv"?:
|
|
4711
|
+
string;
|
|
4712
|
+
/** OAuth access token. */
|
|
4713
|
+
access_token?:
|
|
4714
|
+
string;
|
|
4715
|
+
/** Data format for response. */
|
|
4716
|
+
alt?:
|
|
4717
|
+
string;
|
|
4718
|
+
/** JSONP */
|
|
4719
|
+
callback?:
|
|
4720
|
+
string;
|
|
4721
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4722
|
+
fields?:
|
|
4723
|
+
string;
|
|
4724
|
+
/** 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. */
|
|
4725
|
+
key?:
|
|
4726
|
+
string;
|
|
4727
|
+
/** OAuth 2.0 token for the current user. */
|
|
4728
|
+
oauth_token?:
|
|
4729
|
+
string;
|
|
4730
|
+
/**
|
|
4731
|
+
* 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
|
|
4732
|
+
* 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
|
|
4733
|
+
* 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
|
|
4734
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
4735
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
4736
|
+
*/
|
|
4737
|
+
"options.requestedPolicyVersion"?:
|
|
4738
|
+
number;
|
|
4739
|
+
/** Returns response with indentations and line breaks. */
|
|
4740
|
+
prettyPrint?:
|
|
4741
|
+
boolean;
|
|
4742
|
+
/** 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. */
|
|
4743
|
+
quotaUser?:
|
|
4744
|
+
string;
|
|
4745
|
+
/**
|
|
4746
|
+
* 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
|
|
4747
|
+
* field.
|
|
4748
|
+
*/
|
|
4749
|
+
resource:
|
|
4750
|
+
string;
|
|
4751
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4752
|
+
upload_protocol?:
|
|
4753
|
+
string;
|
|
4754
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4755
|
+
uploadType?:
|
|
4756
|
+
string;
|
|
4757
|
+
}): Request<Policy>;
|
|
4704
4758
|
/** Lists Scopes. */
|
|
4705
4759
|
list(request?: {
|
|
4706
4760
|
/** V1 error format. */
|
|
@@ -4833,6 +4887,95 @@ declare namespace gapi.client {
|
|
|
4833
4887
|
string;
|
|
4834
4888
|
},
|
|
4835
4889
|
body: Scope): Request<Operation>;
|
|
4890
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
4891
|
+
setIamPolicy(request: {
|
|
4892
|
+
/** V1 error format. */
|
|
4893
|
+
"$.xgafv"?:
|
|
4894
|
+
string;
|
|
4895
|
+
/** OAuth access token. */
|
|
4896
|
+
access_token?:
|
|
4897
|
+
string;
|
|
4898
|
+
/** Data format for response. */
|
|
4899
|
+
alt?:
|
|
4900
|
+
string;
|
|
4901
|
+
/** JSONP */
|
|
4902
|
+
callback?:
|
|
4903
|
+
string;
|
|
4904
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4905
|
+
fields?:
|
|
4906
|
+
string;
|
|
4907
|
+
/** 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. */
|
|
4908
|
+
key?:
|
|
4909
|
+
string;
|
|
4910
|
+
/** OAuth 2.0 token for the current user. */
|
|
4911
|
+
oauth_token?:
|
|
4912
|
+
string;
|
|
4913
|
+
/** Returns response with indentations and line breaks. */
|
|
4914
|
+
prettyPrint?:
|
|
4915
|
+
boolean;
|
|
4916
|
+
/** 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. */
|
|
4917
|
+
quotaUser?:
|
|
4918
|
+
string;
|
|
4919
|
+
/**
|
|
4920
|
+
* 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
|
|
4921
|
+
* field.
|
|
4922
|
+
*/
|
|
4923
|
+
resource:
|
|
4924
|
+
string;
|
|
4925
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4926
|
+
upload_protocol?:
|
|
4927
|
+
string;
|
|
4928
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4929
|
+
uploadType?:
|
|
4930
|
+
string;
|
|
4931
|
+
},
|
|
4932
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
4933
|
+
/**
|
|
4934
|
+
* 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
|
|
4935
|
+
* 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.
|
|
4936
|
+
*/
|
|
4937
|
+
testIamPermissions(request: {
|
|
4938
|
+
/** V1 error format. */
|
|
4939
|
+
"$.xgafv"?:
|
|
4940
|
+
string;
|
|
4941
|
+
/** OAuth access token. */
|
|
4942
|
+
access_token?:
|
|
4943
|
+
string;
|
|
4944
|
+
/** Data format for response. */
|
|
4945
|
+
alt?:
|
|
4946
|
+
string;
|
|
4947
|
+
/** JSONP */
|
|
4948
|
+
callback?:
|
|
4949
|
+
string;
|
|
4950
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4951
|
+
fields?:
|
|
4952
|
+
string;
|
|
4953
|
+
/** 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. */
|
|
4954
|
+
key?:
|
|
4955
|
+
string;
|
|
4956
|
+
/** OAuth 2.0 token for the current user. */
|
|
4957
|
+
oauth_token?:
|
|
4958
|
+
string;
|
|
4959
|
+
/** Returns response with indentations and line breaks. */
|
|
4960
|
+
prettyPrint?:
|
|
4961
|
+
boolean;
|
|
4962
|
+
/** 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. */
|
|
4963
|
+
quotaUser?:
|
|
4964
|
+
string;
|
|
4965
|
+
/**
|
|
4966
|
+
* 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
|
|
4967
|
+
* this field.
|
|
4968
|
+
*/
|
|
4969
|
+
resource:
|
|
4970
|
+
string;
|
|
4971
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4972
|
+
upload_protocol?:
|
|
4973
|
+
string;
|
|
4974
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4975
|
+
uploadType?:
|
|
4976
|
+
string;
|
|
4977
|
+
},
|
|
4978
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
4836
4979
|
}
|
|
4837
4980
|
interface LocationsResource {
|
|
4838
4981
|
/** Gets information about a location. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230515
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1697,6 +1697,7 @@ gapi.load('client', async () => {
|
|
|
1697
1697
|
});
|
|
1698
1698
|
/** Lists MembershipBindings. */
|
|
1699
1699
|
await gapi.client.gkehub.projects.locations.memberships.bindings.list({
|
|
1700
|
+
filter: "Test string",
|
|
1700
1701
|
pageSize: 42,
|
|
1701
1702
|
pageToken: "Test string",
|
|
1702
1703
|
parent: "Test string",
|
|
@@ -1864,6 +1865,11 @@ gapi.load('client', async () => {
|
|
|
1864
1865
|
await gapi.client.gkehub.projects.locations.scopes.get({
|
|
1865
1866
|
name: "Test string",
|
|
1866
1867
|
});
|
|
1868
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1869
|
+
await gapi.client.gkehub.projects.locations.scopes.getIamPolicy({
|
|
1870
|
+
"options.requestedPolicyVersion": 42,
|
|
1871
|
+
resource: "Test string",
|
|
1872
|
+
});
|
|
1867
1873
|
/** Lists Scopes. */
|
|
1868
1874
|
await gapi.client.gkehub.projects.locations.scopes.list({
|
|
1869
1875
|
pageSize: 42,
|
|
@@ -1885,5 +1891,53 @@ gapi.load('client', async () => {
|
|
|
1885
1891
|
uid: "Test string",
|
|
1886
1892
|
updateTime: "Test string",
|
|
1887
1893
|
});
|
|
1894
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
1895
|
+
await gapi.client.gkehub.projects.locations.scopes.setIamPolicy({
|
|
1896
|
+
resource: "Test string",
|
|
1897
|
+
}, {
|
|
1898
|
+
policy: {
|
|
1899
|
+
auditConfigs: [
|
|
1900
|
+
{
|
|
1901
|
+
auditLogConfigs: [
|
|
1902
|
+
{
|
|
1903
|
+
exemptedMembers: [
|
|
1904
|
+
"Test string"
|
|
1905
|
+
],
|
|
1906
|
+
logType: "Test string",
|
|
1907
|
+
}
|
|
1908
|
+
],
|
|
1909
|
+
service: "Test string",
|
|
1910
|
+
}
|
|
1911
|
+
],
|
|
1912
|
+
bindings: [
|
|
1913
|
+
{
|
|
1914
|
+
condition: {
|
|
1915
|
+
description: "Test string",
|
|
1916
|
+
expression: "Test string",
|
|
1917
|
+
location: "Test string",
|
|
1918
|
+
title: "Test string",
|
|
1919
|
+
},
|
|
1920
|
+
members: [
|
|
1921
|
+
"Test string"
|
|
1922
|
+
],
|
|
1923
|
+
role: "Test string",
|
|
1924
|
+
}
|
|
1925
|
+
],
|
|
1926
|
+
etag: "Test string",
|
|
1927
|
+
version: 42,
|
|
1928
|
+
},
|
|
1929
|
+
updateMask: "Test string",
|
|
1930
|
+
});
|
|
1931
|
+
/**
|
|
1932
|
+
* 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
|
|
1933
|
+
* 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.
|
|
1934
|
+
*/
|
|
1935
|
+
await gapi.client.gkehub.projects.locations.scopes.testIamPermissions({
|
|
1936
|
+
resource: "Test string",
|
|
1937
|
+
}, {
|
|
1938
|
+
permissions: [
|
|
1939
|
+
"Test string"
|
|
1940
|
+
],
|
|
1941
|
+
});
|
|
1888
1942
|
}
|
|
1889
1943
|
});
|