@maxim_mazurok/gapi.client.iap-v1beta1 0.0.20230421 → 0.0.20230428
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 +103 -52
- package/package.json +1 -1
- package/tests.ts +1 -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://iap.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230428
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,7 +28,8 @@ declare namespace gapi.client {
|
|
|
28
28
|
* then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
|
|
29
29
|
* resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
30
30
|
*/
|
|
31
|
-
condition?:
|
|
31
|
+
condition?:
|
|
32
|
+
Expr;
|
|
32
33
|
/**
|
|
33
34
|
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
|
|
34
35
|
* the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
|
|
@@ -45,23 +46,30 @@ declare namespace gapi.client {
|
|
|
45
46
|
* has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
|
|
46
47
|
* retains the role in the binding.
|
|
47
48
|
*/
|
|
48
|
-
members?:
|
|
49
|
+
members?:
|
|
50
|
+
string[];
|
|
49
51
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
50
|
-
role?:
|
|
52
|
+
role?:
|
|
53
|
+
string;
|
|
51
54
|
}
|
|
52
55
|
interface Expr {
|
|
53
56
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
54
|
-
description?:
|
|
57
|
+
description?:
|
|
58
|
+
string;
|
|
55
59
|
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
56
|
-
expression?:
|
|
60
|
+
expression?:
|
|
61
|
+
string;
|
|
57
62
|
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
58
|
-
location?:
|
|
63
|
+
location?:
|
|
64
|
+
string;
|
|
59
65
|
/** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
|
|
60
|
-
title?:
|
|
66
|
+
title?:
|
|
67
|
+
string;
|
|
61
68
|
}
|
|
62
69
|
interface GetIamPolicyRequest {
|
|
63
70
|
/** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
|
|
64
|
-
options?:
|
|
71
|
+
options?:
|
|
72
|
+
GetPolicyOptions;
|
|
65
73
|
}
|
|
66
74
|
interface GetPolicyOptions {
|
|
67
75
|
/**
|
|
@@ -71,7 +79,8 @@ declare namespace gapi.client {
|
|
|
71
79
|
* bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
72
80
|
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
73
81
|
*/
|
|
74
|
-
requestedPolicyVersion?:
|
|
82
|
+
requestedPolicyVersion?:
|
|
83
|
+
number;
|
|
75
84
|
}
|
|
76
85
|
interface Policy {
|
|
77
86
|
/**
|
|
@@ -80,7 +89,8 @@ declare namespace gapi.client {
|
|
|
80
89
|
* principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
|
|
81
90
|
* 1,450 principals to the `bindings` in the `Policy`.
|
|
82
91
|
*/
|
|
83
|
-
bindings?:
|
|
92
|
+
bindings?:
|
|
93
|
+
Binding[];
|
|
84
94
|
/**
|
|
85
95
|
* `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
|
|
86
96
|
* use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
|
|
@@ -88,7 +98,8 @@ declare namespace gapi.client {
|
|
|
88
98
|
* Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
|
|
89
99
|
* policy, and all of the conditions in the version `3` policy are lost.
|
|
90
100
|
*/
|
|
91
|
-
etag?:
|
|
101
|
+
etag?:
|
|
102
|
+
string;
|
|
92
103
|
/**
|
|
93
104
|
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
|
|
94
105
|
* must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
|
|
@@ -97,25 +108,29 @@ declare namespace gapi.client {
|
|
|
97
108
|
* policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
|
|
98
109
|
* the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
99
110
|
*/
|
|
100
|
-
version?:
|
|
111
|
+
version?:
|
|
112
|
+
number;
|
|
101
113
|
}
|
|
102
114
|
interface SetIamPolicyRequest {
|
|
103
115
|
/**
|
|
104
116
|
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
|
|
105
117
|
* services (such as Projects) might reject them.
|
|
106
118
|
*/
|
|
107
|
-
policy?:
|
|
119
|
+
policy?:
|
|
120
|
+
Policy;
|
|
108
121
|
}
|
|
109
122
|
interface TestIamPermissionsRequest {
|
|
110
123
|
/**
|
|
111
124
|
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
112
125
|
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
113
126
|
*/
|
|
114
|
-
permissions?:
|
|
127
|
+
permissions?:
|
|
128
|
+
string[];
|
|
115
129
|
}
|
|
116
130
|
interface TestIamPermissionsResponse {
|
|
117
131
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
118
|
-
permissions?:
|
|
132
|
+
permissions?:
|
|
133
|
+
string[];
|
|
119
134
|
}
|
|
120
135
|
interface V1beta1Resource {
|
|
121
136
|
/**
|
|
@@ -124,32 +139,44 @@ declare namespace gapi.client {
|
|
|
124
139
|
*/
|
|
125
140
|
getIamPolicy(request: {
|
|
126
141
|
/** V1 error format. */
|
|
127
|
-
"$.xgafv"?:
|
|
142
|
+
"$.xgafv"?:
|
|
143
|
+
string;
|
|
128
144
|
/** OAuth access token. */
|
|
129
|
-
access_token?:
|
|
145
|
+
access_token?:
|
|
146
|
+
string;
|
|
130
147
|
/** Data format for response. */
|
|
131
|
-
alt?:
|
|
148
|
+
alt?:
|
|
149
|
+
string;
|
|
132
150
|
/** JSONP */
|
|
133
|
-
callback?:
|
|
151
|
+
callback?:
|
|
152
|
+
string;
|
|
134
153
|
/** Selector specifying which fields to include in a partial response. */
|
|
135
|
-
fields?:
|
|
154
|
+
fields?:
|
|
155
|
+
string;
|
|
136
156
|
/** 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. */
|
|
137
|
-
key?:
|
|
157
|
+
key?:
|
|
158
|
+
string;
|
|
138
159
|
/** OAuth 2.0 token for the current user. */
|
|
139
|
-
oauth_token?:
|
|
160
|
+
oauth_token?:
|
|
161
|
+
string;
|
|
140
162
|
/** Returns response with indentations and line breaks. */
|
|
141
|
-
prettyPrint?:
|
|
163
|
+
prettyPrint?:
|
|
164
|
+
boolean;
|
|
142
165
|
/** 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. */
|
|
143
|
-
quotaUser?:
|
|
166
|
+
quotaUser?:
|
|
167
|
+
string;
|
|
144
168
|
/**
|
|
145
169
|
* 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
|
|
146
170
|
* field.
|
|
147
171
|
*/
|
|
148
|
-
resource:
|
|
172
|
+
resource:
|
|
173
|
+
string;
|
|
149
174
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
150
|
-
upload_protocol?:
|
|
175
|
+
upload_protocol?:
|
|
176
|
+
string;
|
|
151
177
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
152
|
-
uploadType?:
|
|
178
|
+
uploadType?:
|
|
179
|
+
string;
|
|
153
180
|
},
|
|
154
181
|
body: GetIamPolicyRequest): Request<Policy>;
|
|
155
182
|
/**
|
|
@@ -158,32 +185,44 @@ declare namespace gapi.client {
|
|
|
158
185
|
*/
|
|
159
186
|
setIamPolicy(request: {
|
|
160
187
|
/** V1 error format. */
|
|
161
|
-
"$.xgafv"?:
|
|
188
|
+
"$.xgafv"?:
|
|
189
|
+
string;
|
|
162
190
|
/** OAuth access token. */
|
|
163
|
-
access_token?:
|
|
191
|
+
access_token?:
|
|
192
|
+
string;
|
|
164
193
|
/** Data format for response. */
|
|
165
|
-
alt?:
|
|
194
|
+
alt?:
|
|
195
|
+
string;
|
|
166
196
|
/** JSONP */
|
|
167
|
-
callback?:
|
|
197
|
+
callback?:
|
|
198
|
+
string;
|
|
168
199
|
/** Selector specifying which fields to include in a partial response. */
|
|
169
|
-
fields?:
|
|
200
|
+
fields?:
|
|
201
|
+
string;
|
|
170
202
|
/** 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. */
|
|
171
|
-
key?:
|
|
203
|
+
key?:
|
|
204
|
+
string;
|
|
172
205
|
/** OAuth 2.0 token for the current user. */
|
|
173
|
-
oauth_token?:
|
|
206
|
+
oauth_token?:
|
|
207
|
+
string;
|
|
174
208
|
/** Returns response with indentations and line breaks. */
|
|
175
|
-
prettyPrint?:
|
|
209
|
+
prettyPrint?:
|
|
210
|
+
boolean;
|
|
176
211
|
/** 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. */
|
|
177
|
-
quotaUser?:
|
|
212
|
+
quotaUser?:
|
|
213
|
+
string;
|
|
178
214
|
/**
|
|
179
215
|
* 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
|
|
180
216
|
* field.
|
|
181
217
|
*/
|
|
182
|
-
resource:
|
|
218
|
+
resource:
|
|
219
|
+
string;
|
|
183
220
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
184
|
-
upload_protocol?:
|
|
221
|
+
upload_protocol?:
|
|
222
|
+
string;
|
|
185
223
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
186
|
-
uploadType?:
|
|
224
|
+
uploadType?:
|
|
225
|
+
string;
|
|
187
226
|
},
|
|
188
227
|
body: SetIamPolicyRequest): Request<Policy>;
|
|
189
228
|
/**
|
|
@@ -193,32 +232,44 @@ declare namespace gapi.client {
|
|
|
193
232
|
*/
|
|
194
233
|
testIamPermissions(request: {
|
|
195
234
|
/** V1 error format. */
|
|
196
|
-
"$.xgafv"?:
|
|
235
|
+
"$.xgafv"?:
|
|
236
|
+
string;
|
|
197
237
|
/** OAuth access token. */
|
|
198
|
-
access_token?:
|
|
238
|
+
access_token?:
|
|
239
|
+
string;
|
|
199
240
|
/** Data format for response. */
|
|
200
|
-
alt?:
|
|
241
|
+
alt?:
|
|
242
|
+
string;
|
|
201
243
|
/** JSONP */
|
|
202
|
-
callback?:
|
|
244
|
+
callback?:
|
|
245
|
+
string;
|
|
203
246
|
/** Selector specifying which fields to include in a partial response. */
|
|
204
|
-
fields?:
|
|
247
|
+
fields?:
|
|
248
|
+
string;
|
|
205
249
|
/** 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. */
|
|
206
|
-
key?:
|
|
250
|
+
key?:
|
|
251
|
+
string;
|
|
207
252
|
/** OAuth 2.0 token for the current user. */
|
|
208
|
-
oauth_token?:
|
|
253
|
+
oauth_token?:
|
|
254
|
+
string;
|
|
209
255
|
/** Returns response with indentations and line breaks. */
|
|
210
|
-
prettyPrint?:
|
|
256
|
+
prettyPrint?:
|
|
257
|
+
boolean;
|
|
211
258
|
/** 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. */
|
|
212
|
-
quotaUser?:
|
|
259
|
+
quotaUser?:
|
|
260
|
+
string;
|
|
213
261
|
/**
|
|
214
262
|
* 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
|
|
215
263
|
* this field.
|
|
216
264
|
*/
|
|
217
|
-
resource:
|
|
265
|
+
resource:
|
|
266
|
+
string;
|
|
218
267
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
219
|
-
upload_protocol?:
|
|
268
|
+
upload_protocol?:
|
|
269
|
+
string;
|
|
220
270
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
221
|
-
uploadType?:
|
|
271
|
+
uploadType?:
|
|
272
|
+
string;
|
|
222
273
|
},
|
|
223
274
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
224
275
|
}
|
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: 20230428
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|