@maxim_mazurok/gapi.client.iam-v2beta 0.0.20230420 → 0.0.20230504
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 +291 -146
- 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://iam.googleapis.com/$discovery/rest?version=v2beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230504
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,34 +24,43 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace iam {
|
|
25
25
|
interface GoogleIamAdminV1AuditData {
|
|
26
26
|
/** The permission_delta when when creating or updating a Role. */
|
|
27
|
-
permissionDelta?:
|
|
27
|
+
permissionDelta?:
|
|
28
|
+
GoogleIamAdminV1AuditDataPermissionDelta;
|
|
28
29
|
}
|
|
29
30
|
interface GoogleIamAdminV1AuditDataPermissionDelta {
|
|
30
31
|
/** Added permissions. */
|
|
31
|
-
addedPermissions?:
|
|
32
|
+
addedPermissions?:
|
|
33
|
+
string[];
|
|
32
34
|
/** Removed permissions. */
|
|
33
|
-
removedPermissions?:
|
|
35
|
+
removedPermissions?:
|
|
36
|
+
string[];
|
|
34
37
|
}
|
|
35
38
|
// tslint:disable-next-line:no-empty-interface
|
|
36
39
|
interface GoogleIamV1betaWorkloadIdentityPoolOperationMetadata {
|
|
37
40
|
}
|
|
38
41
|
interface GoogleIamV1BindingDelta {
|
|
39
42
|
/** The action that was performed on a Binding. Required */
|
|
40
|
-
action?:
|
|
43
|
+
action?:
|
|
44
|
+
string;
|
|
41
45
|
/** The condition that is associated with this binding. */
|
|
42
|
-
condition?:
|
|
46
|
+
condition?:
|
|
47
|
+
GoogleTypeExpr;
|
|
43
48
|
/** A single identity requesting access for a Google Cloud resource. Follows the same format of Binding.members. Required */
|
|
44
|
-
member?:
|
|
49
|
+
member?:
|
|
50
|
+
string;
|
|
45
51
|
/** Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Required */
|
|
46
|
-
role?:
|
|
52
|
+
role?:
|
|
53
|
+
string;
|
|
47
54
|
}
|
|
48
55
|
interface GoogleIamV1LoggingAuditData {
|
|
49
56
|
/** Policy delta between the original policy and the newly set policy. */
|
|
50
|
-
policyDelta?:
|
|
57
|
+
policyDelta?:
|
|
58
|
+
GoogleIamV1PolicyDelta;
|
|
51
59
|
}
|
|
52
60
|
interface GoogleIamV1PolicyDelta {
|
|
53
61
|
/** The delta for Bindings between two policies. */
|
|
54
|
-
bindingDeltas?:
|
|
62
|
+
bindingDeltas?:
|
|
63
|
+
GoogleIamV1BindingDelta[];
|
|
55
64
|
}
|
|
56
65
|
interface GoogleIamV2betaDenyRule {
|
|
57
66
|
/**
|
|
@@ -59,12 +68,14 @@ declare namespace gapi.client {
|
|
|
59
68
|
* is not applied. Each deny rule is evaluated independently. If this deny rule does not apply to a request, other deny rules might still apply. The condition can use CEL functions
|
|
60
69
|
* that evaluate [resource tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other functions and operators are not supported.
|
|
61
70
|
*/
|
|
62
|
-
denialCondition?:
|
|
71
|
+
denialCondition?:
|
|
72
|
+
GoogleTypeExpr;
|
|
63
73
|
/**
|
|
64
74
|
* The permissions that are explicitly denied by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain
|
|
65
75
|
* name for the service. For example, `iam.googleapis.com/roles.list`.
|
|
66
76
|
*/
|
|
67
|
-
deniedPermissions?:
|
|
77
|
+
deniedPermissions?:
|
|
78
|
+
string[];
|
|
68
79
|
/**
|
|
69
80
|
* The identities that are prevented from using one or more permissions on Google Cloud resources. This field can contain the following values: * `principalSet://goog/public:all`: A
|
|
70
81
|
* special identifier that represents any principal that is on the internet, even if they do not have a Google Account or are not logged in. * `principal://goog/subject/{email_id}`: A
|
|
@@ -80,316 +91,424 @@ declare namespace gapi.client {
|
|
|
80
91
|
* reverts to the standard identifier for a service account. * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the principals associated with the specified Google
|
|
81
92
|
* Workspace or Cloud Identity customer ID. For example, `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
|
|
82
93
|
*/
|
|
83
|
-
deniedPrincipals?:
|
|
94
|
+
deniedPrincipals?:
|
|
95
|
+
string[];
|
|
84
96
|
/**
|
|
85
97
|
* Specifies the permissions that this rule excludes from the set of denied permissions given by `denied_permissions`. If a permission appears in `denied_permissions` _and_ in
|
|
86
98
|
* `exception_permissions` then it will _not_ be denied. The excluded permissions can be specified using the same syntax as `denied_permissions`.
|
|
87
99
|
*/
|
|
88
|
-
exceptionPermissions?:
|
|
100
|
+
exceptionPermissions?:
|
|
101
|
+
string[];
|
|
89
102
|
/**
|
|
90
103
|
* The identities that are excluded from the deny rule, even if they are listed in the `denied_principals`. For example, you could add a Google group to the `denied_principals`, then
|
|
91
104
|
* exclude specific users who belong to that group. This field can contain the same values as the `denied_principals` field, excluding `principalSet://goog/public:all`, which
|
|
92
105
|
* represents all users on the internet.
|
|
93
106
|
*/
|
|
94
|
-
exceptionPrincipals?:
|
|
107
|
+
exceptionPrincipals?:
|
|
108
|
+
string[];
|
|
95
109
|
}
|
|
96
110
|
interface GoogleIamV2betaListPoliciesResponse {
|
|
97
111
|
/** A page token that you can use in a ListPoliciesRequest to retrieve the next page. If this field is omitted, there are no additional pages. */
|
|
98
|
-
nextPageToken?:
|
|
112
|
+
nextPageToken?:
|
|
113
|
+
string;
|
|
99
114
|
/** Metadata for the policies that are attached to the resource. */
|
|
100
|
-
policies?:
|
|
115
|
+
policies?:
|
|
116
|
+
GoogleIamV2betaPolicy[];
|
|
101
117
|
}
|
|
102
118
|
interface GoogleIamV2betaPolicy {
|
|
103
119
|
/** A key-value map to store arbitrary metadata for the `Policy`. Keys can be up to 63 characters. Values can be up to 255 characters. */
|
|
104
|
-
annotations?:
|
|
120
|
+
annotations?:
|
|
121
|
+
{ [P in string]: string };
|
|
105
122
|
/** Output only. The time when the `Policy` was created. */
|
|
106
|
-
createTime?:
|
|
123
|
+
createTime?:
|
|
124
|
+
string;
|
|
107
125
|
/** Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted. */
|
|
108
|
-
deleteTime?:
|
|
126
|
+
deleteTime?:
|
|
127
|
+
string;
|
|
109
128
|
/** A user-specified description of the `Policy`. This value can be up to 63 characters. */
|
|
110
|
-
displayName?:
|
|
129
|
+
displayName?:
|
|
130
|
+
string;
|
|
111
131
|
/**
|
|
112
132
|
* An opaque tag that identifies the current version of the `Policy`. IAM uses this value to help manage concurrent updates, so they do not cause one update to be overwritten by
|
|
113
133
|
* another. If this field is present in a CreatePolicy request, the value is ignored.
|
|
114
134
|
*/
|
|
115
|
-
etag?:
|
|
135
|
+
etag?:
|
|
136
|
+
string;
|
|
116
137
|
/** Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`. */
|
|
117
|
-
kind?:
|
|
138
|
+
kind?:
|
|
139
|
+
string;
|
|
118
140
|
/**
|
|
119
141
|
* Immutable. The resource name of the `Policy`, which must be unique. Format: `policies/{attachment_point}/denypolicies/{policy_id}` The attachment point is identified by its
|
|
120
142
|
* URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example,
|
|
121
143
|
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. For organizations and folders, use the numeric ID in the full resource name. For
|
|
122
144
|
* projects, requests can use the alphanumeric or the numeric ID. Responses always contain the numeric ID.
|
|
123
145
|
*/
|
|
124
|
-
name?:
|
|
146
|
+
name?:
|
|
147
|
+
string;
|
|
125
148
|
/** A list of rules that specify the behavior of the `Policy`. All of the rules should be of the `kind` specified in the `Policy`. */
|
|
126
|
-
rules?:
|
|
149
|
+
rules?:
|
|
150
|
+
GoogleIamV2betaPolicyRule[];
|
|
127
151
|
/** Immutable. The globally unique ID of the `Policy`. Assigned automatically when the `Policy` is created. */
|
|
128
|
-
uid?:
|
|
152
|
+
uid?:
|
|
153
|
+
string;
|
|
129
154
|
/** Output only. The time when the `Policy` was last updated. */
|
|
130
|
-
updateTime?:
|
|
155
|
+
updateTime?:
|
|
156
|
+
string;
|
|
131
157
|
}
|
|
132
158
|
interface GoogleIamV2betaPolicyOperationMetadata {
|
|
133
159
|
/** Timestamp when the `google.longrunning.Operation` was created. */
|
|
134
|
-
createTime?:
|
|
160
|
+
createTime?:
|
|
161
|
+
string;
|
|
135
162
|
}
|
|
136
163
|
interface GoogleIamV2betaPolicyRule {
|
|
137
164
|
/** A rule for a deny policy. */
|
|
138
|
-
denyRule?:
|
|
165
|
+
denyRule?:
|
|
166
|
+
GoogleIamV2betaDenyRule;
|
|
139
167
|
/** A user-specified description of the rule. This value can be up to 256 characters. */
|
|
140
|
-
description?:
|
|
168
|
+
description?:
|
|
169
|
+
string;
|
|
141
170
|
}
|
|
142
171
|
interface GoogleLongrunningOperation {
|
|
143
172
|
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
144
|
-
done?:
|
|
173
|
+
done?:
|
|
174
|
+
boolean;
|
|
145
175
|
/** The error result of the operation in case of failure or cancellation. */
|
|
146
|
-
error?:
|
|
176
|
+
error?:
|
|
177
|
+
GoogleRpcStatus;
|
|
147
178
|
/**
|
|
148
179
|
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
|
|
149
180
|
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
150
181
|
*/
|
|
151
|
-
metadata?:
|
|
182
|
+
metadata?:
|
|
183
|
+
{ [P in string]: any };
|
|
152
184
|
/**
|
|
153
185
|
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
|
|
154
186
|
* with `operations/{unique_id}`.
|
|
155
187
|
*/
|
|
156
|
-
name?:
|
|
188
|
+
name?:
|
|
189
|
+
string;
|
|
157
190
|
/**
|
|
158
191
|
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
159
192
|
* original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
|
|
160
193
|
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
161
194
|
*/
|
|
162
|
-
response?:
|
|
195
|
+
response?:
|
|
196
|
+
{ [P in string]: any };
|
|
163
197
|
}
|
|
164
198
|
interface GoogleRpcStatus {
|
|
165
199
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
166
|
-
code?:
|
|
200
|
+
code?:
|
|
201
|
+
number;
|
|
167
202
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
168
|
-
details?:
|
|
203
|
+
details?:
|
|
204
|
+
Array<{ [P in string]: any }>;
|
|
169
205
|
/**
|
|
170
206
|
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
171
207
|
* client.
|
|
172
208
|
*/
|
|
173
|
-
message?:
|
|
209
|
+
message?:
|
|
210
|
+
string;
|
|
174
211
|
}
|
|
175
212
|
interface GoogleTypeExpr {
|
|
176
213
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
177
|
-
description?:
|
|
214
|
+
description?:
|
|
215
|
+
string;
|
|
178
216
|
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
179
|
-
expression?:
|
|
217
|
+
expression?:
|
|
218
|
+
string;
|
|
180
219
|
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
181
|
-
location?:
|
|
220
|
+
location?:
|
|
221
|
+
string;
|
|
182
222
|
/** 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. */
|
|
183
|
-
title?:
|
|
223
|
+
title?:
|
|
224
|
+
string;
|
|
184
225
|
}
|
|
185
226
|
interface OperationsResource {
|
|
186
227
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
187
228
|
get(request?: {
|
|
188
229
|
/** V1 error format. */
|
|
189
|
-
"$.xgafv"?:
|
|
230
|
+
"$.xgafv"?:
|
|
231
|
+
string;
|
|
190
232
|
/** OAuth access token. */
|
|
191
|
-
access_token?:
|
|
233
|
+
access_token?:
|
|
234
|
+
string;
|
|
192
235
|
/** Data format for response. */
|
|
193
|
-
alt?:
|
|
236
|
+
alt?:
|
|
237
|
+
string;
|
|
194
238
|
/** JSONP */
|
|
195
|
-
callback?:
|
|
239
|
+
callback?:
|
|
240
|
+
string;
|
|
196
241
|
/** Selector specifying which fields to include in a partial response. */
|
|
197
|
-
fields?:
|
|
242
|
+
fields?:
|
|
243
|
+
string;
|
|
198
244
|
/** 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. */
|
|
199
|
-
key?:
|
|
245
|
+
key?:
|
|
246
|
+
string;
|
|
200
247
|
/** The name of the operation resource. */
|
|
201
|
-
name:
|
|
248
|
+
name:
|
|
249
|
+
string;
|
|
202
250
|
/** OAuth 2.0 token for the current user. */
|
|
203
|
-
oauth_token?:
|
|
251
|
+
oauth_token?:
|
|
252
|
+
string;
|
|
204
253
|
/** Returns response with indentations and line breaks. */
|
|
205
|
-
prettyPrint?:
|
|
254
|
+
prettyPrint?:
|
|
255
|
+
boolean;
|
|
206
256
|
/** 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. */
|
|
207
|
-
quotaUser?:
|
|
257
|
+
quotaUser?:
|
|
258
|
+
string;
|
|
208
259
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
209
|
-
upload_protocol?:
|
|
260
|
+
upload_protocol?:
|
|
261
|
+
string;
|
|
210
262
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
211
|
-
uploadType?:
|
|
263
|
+
uploadType?:
|
|
264
|
+
string;
|
|
212
265
|
}): Request<GoogleLongrunningOperation>;
|
|
213
266
|
}
|
|
214
267
|
interface PoliciesResource {
|
|
215
268
|
/** Creates a policy. */
|
|
216
269
|
createPolicy(request: {
|
|
217
270
|
/** V1 error format. */
|
|
218
|
-
"$.xgafv"?:
|
|
271
|
+
"$.xgafv"?:
|
|
272
|
+
string;
|
|
219
273
|
/** OAuth access token. */
|
|
220
|
-
access_token?:
|
|
274
|
+
access_token?:
|
|
275
|
+
string;
|
|
221
276
|
/** Data format for response. */
|
|
222
|
-
alt?:
|
|
277
|
+
alt?:
|
|
278
|
+
string;
|
|
223
279
|
/** JSONP */
|
|
224
|
-
callback?:
|
|
280
|
+
callback?:
|
|
281
|
+
string;
|
|
225
282
|
/** Selector specifying which fields to include in a partial response. */
|
|
226
|
-
fields?:
|
|
283
|
+
fields?:
|
|
284
|
+
string;
|
|
227
285
|
/** 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. */
|
|
228
|
-
key?:
|
|
286
|
+
key?:
|
|
287
|
+
string;
|
|
229
288
|
/** OAuth 2.0 token for the current user. */
|
|
230
|
-
oauth_token?:
|
|
289
|
+
oauth_token?:
|
|
290
|
+
string;
|
|
231
291
|
/**
|
|
232
292
|
* Required. The resource that the policy is attached to, along with the kind of policy to create. Format: `policies/{attachment_point}/denypolicies` The attachment point is
|
|
233
293
|
* identified by its URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example,
|
|
234
294
|
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. For organizations and folders, use the numeric ID in the full resource name. For projects,
|
|
235
295
|
* you can use the alphanumeric or the numeric ID.
|
|
236
296
|
*/
|
|
237
|
-
parent:
|
|
297
|
+
parent:
|
|
298
|
+
string;
|
|
238
299
|
/**
|
|
239
300
|
* The ID to use for this policy, which will become the final component of the policy's resource name. The ID must contain 3 to 63 characters. It can contain lowercase letters and
|
|
240
301
|
* numbers, as well as dashes (`-`) and periods (`.`). The first character must be a lowercase letter.
|
|
241
302
|
*/
|
|
242
|
-
policyId?:
|
|
303
|
+
policyId?:
|
|
304
|
+
string;
|
|
243
305
|
/** Returns response with indentations and line breaks. */
|
|
244
|
-
prettyPrint?:
|
|
306
|
+
prettyPrint?:
|
|
307
|
+
boolean;
|
|
245
308
|
/** 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. */
|
|
246
|
-
quotaUser?:
|
|
309
|
+
quotaUser?:
|
|
310
|
+
string;
|
|
247
311
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
248
|
-
upload_protocol?:
|
|
312
|
+
upload_protocol?:
|
|
313
|
+
string;
|
|
249
314
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
250
|
-
uploadType?:
|
|
315
|
+
uploadType?:
|
|
316
|
+
string;
|
|
251
317
|
/** Request body */
|
|
252
|
-
resource:
|
|
318
|
+
resource:
|
|
319
|
+
GoogleIamV2betaPolicy;
|
|
253
320
|
}): Request<GoogleLongrunningOperation>;
|
|
254
321
|
createPolicy(request: {
|
|
255
322
|
/** V1 error format. */
|
|
256
|
-
"$.xgafv"?:
|
|
323
|
+
"$.xgafv"?:
|
|
324
|
+
string;
|
|
257
325
|
/** OAuth access token. */
|
|
258
|
-
access_token?:
|
|
326
|
+
access_token?:
|
|
327
|
+
string;
|
|
259
328
|
/** Data format for response. */
|
|
260
|
-
alt?:
|
|
329
|
+
alt?:
|
|
330
|
+
string;
|
|
261
331
|
/** JSONP */
|
|
262
|
-
callback?:
|
|
332
|
+
callback?:
|
|
333
|
+
string;
|
|
263
334
|
/** Selector specifying which fields to include in a partial response. */
|
|
264
|
-
fields?:
|
|
335
|
+
fields?:
|
|
336
|
+
string;
|
|
265
337
|
/** 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. */
|
|
266
|
-
key?:
|
|
338
|
+
key?:
|
|
339
|
+
string;
|
|
267
340
|
/** OAuth 2.0 token for the current user. */
|
|
268
|
-
oauth_token?:
|
|
341
|
+
oauth_token?:
|
|
342
|
+
string;
|
|
269
343
|
/**
|
|
270
344
|
* Required. The resource that the policy is attached to, along with the kind of policy to create. Format: `policies/{attachment_point}/denypolicies` The attachment point is
|
|
271
345
|
* identified by its URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example,
|
|
272
346
|
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. For organizations and folders, use the numeric ID in the full resource name. For projects,
|
|
273
347
|
* you can use the alphanumeric or the numeric ID.
|
|
274
348
|
*/
|
|
275
|
-
parent:
|
|
349
|
+
parent:
|
|
350
|
+
string;
|
|
276
351
|
/**
|
|
277
352
|
* The ID to use for this policy, which will become the final component of the policy's resource name. The ID must contain 3 to 63 characters. It can contain lowercase letters and
|
|
278
353
|
* numbers, as well as dashes (`-`) and periods (`.`). The first character must be a lowercase letter.
|
|
279
354
|
*/
|
|
280
|
-
policyId?:
|
|
355
|
+
policyId?:
|
|
356
|
+
string;
|
|
281
357
|
/** Returns response with indentations and line breaks. */
|
|
282
|
-
prettyPrint?:
|
|
358
|
+
prettyPrint?:
|
|
359
|
+
boolean;
|
|
283
360
|
/** 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. */
|
|
284
|
-
quotaUser?:
|
|
361
|
+
quotaUser?:
|
|
362
|
+
string;
|
|
285
363
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
286
|
-
upload_protocol?:
|
|
364
|
+
upload_protocol?:
|
|
365
|
+
string;
|
|
287
366
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
288
|
-
uploadType?:
|
|
367
|
+
uploadType?:
|
|
368
|
+
string;
|
|
289
369
|
},
|
|
290
370
|
body: GoogleIamV2betaPolicy): Request<GoogleLongrunningOperation>;
|
|
291
371
|
/** Deletes a policy. This action is permanent. */
|
|
292
372
|
delete(request?: {
|
|
293
373
|
/** V1 error format. */
|
|
294
|
-
"$.xgafv"?:
|
|
374
|
+
"$.xgafv"?:
|
|
375
|
+
string;
|
|
295
376
|
/** OAuth access token. */
|
|
296
|
-
access_token?:
|
|
377
|
+
access_token?:
|
|
378
|
+
string;
|
|
297
379
|
/** Data format for response. */
|
|
298
|
-
alt?:
|
|
380
|
+
alt?:
|
|
381
|
+
string;
|
|
299
382
|
/** JSONP */
|
|
300
|
-
callback?:
|
|
383
|
+
callback?:
|
|
384
|
+
string;
|
|
301
385
|
/**
|
|
302
386
|
* Optional. The expected `etag` of the policy to delete. If the value does not match the value that is stored in IAM, the request fails with a `409` error code and `ABORTED`
|
|
303
387
|
* status. If you omit this field, the policy is deleted regardless of its current `etag`.
|
|
304
388
|
*/
|
|
305
|
-
etag?:
|
|
389
|
+
etag?:
|
|
390
|
+
string;
|
|
306
391
|
/** Selector specifying which fields to include in a partial response. */
|
|
307
|
-
fields?:
|
|
392
|
+
fields?:
|
|
393
|
+
string;
|
|
308
394
|
/** 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. */
|
|
309
|
-
key?:
|
|
395
|
+
key?:
|
|
396
|
+
string;
|
|
310
397
|
/**
|
|
311
398
|
* Required. The resource name of the policy to delete. Format: `policies/{attachment_point}/denypolicies/{policy_id}` Use the URL-encoded full resource name, which means that the
|
|
312
399
|
* forward-slash character, `/`, must be written as `%2F`. For example, `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. For
|
|
313
400
|
* organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.
|
|
314
401
|
*/
|
|
315
|
-
name:
|
|
402
|
+
name:
|
|
403
|
+
string;
|
|
316
404
|
/** OAuth 2.0 token for the current user. */
|
|
317
|
-
oauth_token?:
|
|
405
|
+
oauth_token?:
|
|
406
|
+
string;
|
|
318
407
|
/** Returns response with indentations and line breaks. */
|
|
319
|
-
prettyPrint?:
|
|
408
|
+
prettyPrint?:
|
|
409
|
+
boolean;
|
|
320
410
|
/** 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. */
|
|
321
|
-
quotaUser?:
|
|
411
|
+
quotaUser?:
|
|
412
|
+
string;
|
|
322
413
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
323
|
-
upload_protocol?:
|
|
414
|
+
upload_protocol?:
|
|
415
|
+
string;
|
|
324
416
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
325
|
-
uploadType?:
|
|
417
|
+
uploadType?:
|
|
418
|
+
string;
|
|
326
419
|
}): Request<GoogleLongrunningOperation>;
|
|
327
420
|
/** Gets a policy. */
|
|
328
421
|
get(request?: {
|
|
329
422
|
/** V1 error format. */
|
|
330
|
-
"$.xgafv"?:
|
|
423
|
+
"$.xgafv"?:
|
|
424
|
+
string;
|
|
331
425
|
/** OAuth access token. */
|
|
332
|
-
access_token?:
|
|
426
|
+
access_token?:
|
|
427
|
+
string;
|
|
333
428
|
/** Data format for response. */
|
|
334
|
-
alt?:
|
|
429
|
+
alt?:
|
|
430
|
+
string;
|
|
335
431
|
/** JSONP */
|
|
336
|
-
callback?:
|
|
432
|
+
callback?:
|
|
433
|
+
string;
|
|
337
434
|
/** Selector specifying which fields to include in a partial response. */
|
|
338
|
-
fields?:
|
|
435
|
+
fields?:
|
|
436
|
+
string;
|
|
339
437
|
/** 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. */
|
|
340
|
-
key?:
|
|
438
|
+
key?:
|
|
439
|
+
string;
|
|
341
440
|
/**
|
|
342
441
|
* Required. The resource name of the policy to retrieve. Format: `policies/{attachment_point}/denypolicies/{policy_id}` Use the URL-encoded full resource name, which means that
|
|
343
442
|
* the forward-slash character, `/`, must be written as `%2F`. For example, `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. For
|
|
344
443
|
* organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.
|
|
345
444
|
*/
|
|
346
|
-
name:
|
|
445
|
+
name:
|
|
446
|
+
string;
|
|
347
447
|
/** OAuth 2.0 token for the current user. */
|
|
348
|
-
oauth_token?:
|
|
448
|
+
oauth_token?:
|
|
449
|
+
string;
|
|
349
450
|
/** Returns response with indentations and line breaks. */
|
|
350
|
-
prettyPrint?:
|
|
451
|
+
prettyPrint?:
|
|
452
|
+
boolean;
|
|
351
453
|
/** 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. */
|
|
352
|
-
quotaUser?:
|
|
454
|
+
quotaUser?:
|
|
455
|
+
string;
|
|
353
456
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
354
|
-
upload_protocol?:
|
|
457
|
+
upload_protocol?:
|
|
458
|
+
string;
|
|
355
459
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
356
|
-
uploadType?:
|
|
460
|
+
uploadType?:
|
|
461
|
+
string;
|
|
357
462
|
}): Request<GoogleIamV2betaPolicy>;
|
|
358
463
|
/** Retrieves the policies of the specified kind that are attached to a resource. The response lists only policy metadata. In particular, policy rules are omitted. */
|
|
359
464
|
listPolicies(request?: {
|
|
360
465
|
/** V1 error format. */
|
|
361
|
-
"$.xgafv"?:
|
|
466
|
+
"$.xgafv"?:
|
|
467
|
+
string;
|
|
362
468
|
/** OAuth access token. */
|
|
363
|
-
access_token?:
|
|
469
|
+
access_token?:
|
|
470
|
+
string;
|
|
364
471
|
/** Data format for response. */
|
|
365
|
-
alt?:
|
|
472
|
+
alt?:
|
|
473
|
+
string;
|
|
366
474
|
/** JSONP */
|
|
367
|
-
callback?:
|
|
475
|
+
callback?:
|
|
476
|
+
string;
|
|
368
477
|
/** Selector specifying which fields to include in a partial response. */
|
|
369
|
-
fields?:
|
|
478
|
+
fields?:
|
|
479
|
+
string;
|
|
370
480
|
/** 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. */
|
|
371
|
-
key?:
|
|
481
|
+
key?:
|
|
482
|
+
string;
|
|
372
483
|
/** OAuth 2.0 token for the current user. */
|
|
373
|
-
oauth_token?:
|
|
484
|
+
oauth_token?:
|
|
485
|
+
string;
|
|
374
486
|
/** The maximum number of policies to return. IAM ignores this value and uses the value 1000. */
|
|
375
|
-
pageSize?:
|
|
487
|
+
pageSize?:
|
|
488
|
+
number;
|
|
376
489
|
/** A page token received in a ListPoliciesResponse. Provide this token to retrieve the next page. */
|
|
377
|
-
pageToken?:
|
|
490
|
+
pageToken?:
|
|
491
|
+
string;
|
|
378
492
|
/**
|
|
379
493
|
* Required. The resource that the policy is attached to, along with the kind of policy to list. Format: `policies/{attachment_point}/denypolicies` The attachment point is
|
|
380
494
|
* identified by its URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example,
|
|
381
495
|
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. For organizations and folders, use the numeric ID in the full resource name. For projects,
|
|
382
496
|
* you can use the alphanumeric or the numeric ID.
|
|
383
497
|
*/
|
|
384
|
-
parent:
|
|
498
|
+
parent:
|
|
499
|
+
string;
|
|
385
500
|
/** Returns response with indentations and line breaks. */
|
|
386
|
-
prettyPrint?:
|
|
501
|
+
prettyPrint?:
|
|
502
|
+
boolean;
|
|
387
503
|
/** 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. */
|
|
388
|
-
quotaUser?:
|
|
504
|
+
quotaUser?:
|
|
505
|
+
string;
|
|
389
506
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
390
|
-
upload_protocol?:
|
|
507
|
+
upload_protocol?:
|
|
508
|
+
string;
|
|
391
509
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
392
|
-
uploadType?:
|
|
510
|
+
uploadType?:
|
|
511
|
+
string;
|
|
393
512
|
}): Request<GoogleIamV2betaListPoliciesResponse>;
|
|
394
513
|
/**
|
|
395
514
|
* Updates the specified policy. You can update only the rules and the display name for the policy. To update a policy, you should use a read-modify-write loop: 1. Use GetPolicy to
|
|
@@ -398,70 +517,96 @@ declare namespace gapi.client {
|
|
|
398
517
|
*/
|
|
399
518
|
update(request: {
|
|
400
519
|
/** V1 error format. */
|
|
401
|
-
"$.xgafv"?:
|
|
520
|
+
"$.xgafv"?:
|
|
521
|
+
string;
|
|
402
522
|
/** OAuth access token. */
|
|
403
|
-
access_token?:
|
|
523
|
+
access_token?:
|
|
524
|
+
string;
|
|
404
525
|
/** Data format for response. */
|
|
405
|
-
alt?:
|
|
526
|
+
alt?:
|
|
527
|
+
string;
|
|
406
528
|
/** JSONP */
|
|
407
|
-
callback?:
|
|
529
|
+
callback?:
|
|
530
|
+
string;
|
|
408
531
|
/** Selector specifying which fields to include in a partial response. */
|
|
409
|
-
fields?:
|
|
532
|
+
fields?:
|
|
533
|
+
string;
|
|
410
534
|
/** 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. */
|
|
411
|
-
key?:
|
|
535
|
+
key?:
|
|
536
|
+
string;
|
|
412
537
|
/**
|
|
413
538
|
* Immutable. The resource name of the `Policy`, which must be unique. Format: `policies/{attachment_point}/denypolicies/{policy_id}` The attachment point is identified by its
|
|
414
539
|
* URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example,
|
|
415
540
|
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. For organizations and folders, use the numeric ID in the full resource name.
|
|
416
541
|
* For projects, requests can use the alphanumeric or the numeric ID. Responses always contain the numeric ID.
|
|
417
542
|
*/
|
|
418
|
-
name:
|
|
543
|
+
name:
|
|
544
|
+
string;
|
|
419
545
|
/** OAuth 2.0 token for the current user. */
|
|
420
|
-
oauth_token?:
|
|
546
|
+
oauth_token?:
|
|
547
|
+
string;
|
|
421
548
|
/** Returns response with indentations and line breaks. */
|
|
422
|
-
prettyPrint?:
|
|
549
|
+
prettyPrint?:
|
|
550
|
+
boolean;
|
|
423
551
|
/** 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. */
|
|
424
|
-
quotaUser?:
|
|
552
|
+
quotaUser?:
|
|
553
|
+
string;
|
|
425
554
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
426
|
-
upload_protocol?:
|
|
555
|
+
upload_protocol?:
|
|
556
|
+
string;
|
|
427
557
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
428
|
-
uploadType?:
|
|
558
|
+
uploadType?:
|
|
559
|
+
string;
|
|
429
560
|
/** Request body */
|
|
430
|
-
resource:
|
|
561
|
+
resource:
|
|
562
|
+
GoogleIamV2betaPolicy;
|
|
431
563
|
}): Request<GoogleLongrunningOperation>;
|
|
432
564
|
update(request: {
|
|
433
565
|
/** V1 error format. */
|
|
434
|
-
"$.xgafv"?:
|
|
566
|
+
"$.xgafv"?:
|
|
567
|
+
string;
|
|
435
568
|
/** OAuth access token. */
|
|
436
|
-
access_token?:
|
|
569
|
+
access_token?:
|
|
570
|
+
string;
|
|
437
571
|
/** Data format for response. */
|
|
438
|
-
alt?:
|
|
572
|
+
alt?:
|
|
573
|
+
string;
|
|
439
574
|
/** JSONP */
|
|
440
|
-
callback?:
|
|
575
|
+
callback?:
|
|
576
|
+
string;
|
|
441
577
|
/** Selector specifying which fields to include in a partial response. */
|
|
442
|
-
fields?:
|
|
578
|
+
fields?:
|
|
579
|
+
string;
|
|
443
580
|
/** 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. */
|
|
444
|
-
key?:
|
|
581
|
+
key?:
|
|
582
|
+
string;
|
|
445
583
|
/**
|
|
446
584
|
* Immutable. The resource name of the `Policy`, which must be unique. Format: `policies/{attachment_point}/denypolicies/{policy_id}` The attachment point is identified by its
|
|
447
585
|
* URL-encoded full resource name, which means that the forward-slash character, `/`, must be written as `%2F`. For example,
|
|
448
586
|
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. For organizations and folders, use the numeric ID in the full resource name.
|
|
449
587
|
* For projects, requests can use the alphanumeric or the numeric ID. Responses always contain the numeric ID.
|
|
450
588
|
*/
|
|
451
|
-
name:
|
|
589
|
+
name:
|
|
590
|
+
string;
|
|
452
591
|
/** OAuth 2.0 token for the current user. */
|
|
453
|
-
oauth_token?:
|
|
592
|
+
oauth_token?:
|
|
593
|
+
string;
|
|
454
594
|
/** Returns response with indentations and line breaks. */
|
|
455
|
-
prettyPrint?:
|
|
595
|
+
prettyPrint?:
|
|
596
|
+
boolean;
|
|
456
597
|
/** 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. */
|
|
457
|
-
quotaUser?:
|
|
598
|
+
quotaUser?:
|
|
599
|
+
string;
|
|
458
600
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
459
|
-
upload_protocol?:
|
|
601
|
+
upload_protocol?:
|
|
602
|
+
string;
|
|
460
603
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
461
|
-
uploadType?:
|
|
604
|
+
uploadType?:
|
|
605
|
+
string;
|
|
462
606
|
},
|
|
463
607
|
body: GoogleIamV2betaPolicy): Request<GoogleLongrunningOperation>;
|
|
464
|
-
operations:
|
|
608
|
+
operations:
|
|
609
|
+
OperationsResource;
|
|
465
610
|
}
|
|
466
611
|
|
|
467
612
|
const policies: PoliciesResource;
|
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: 20230504
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|