@maxim_mazurok/gapi.client.managedidentities-v1alpha1 0.0.20220826 → 0.0.20220926
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 +197 -2
- package/package.json +1 -1
- package/tests.ts +22 -1
package/index.d.ts
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
6
6
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.8
|
|
8
7
|
|
|
9
8
|
// IMPORTANT
|
|
10
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
11
|
// Generated from: https://managedidentities.googleapis.com/$discovery/rest?version=v1alpha1
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20220926
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -87,6 +86,15 @@ declare namespace gapi.client {
|
|
|
87
86
|
/** The certificate thumbprint which uniquely identifies the certificate. */
|
|
88
87
|
thumbprint?: string;
|
|
89
88
|
}
|
|
89
|
+
// tslint:disable-next-line:no-empty-interface
|
|
90
|
+
interface CheckMigrationPermissionRequest {
|
|
91
|
+
}
|
|
92
|
+
interface CheckMigrationPermissionResponse {
|
|
93
|
+
/** The state of SID filtering of all the domains which has trust established. */
|
|
94
|
+
onpremDomains?: OnPremDomainSIDDetails[];
|
|
95
|
+
/** The state of DomainMigration. */
|
|
96
|
+
state?: string;
|
|
97
|
+
}
|
|
90
98
|
interface DailyCycle {
|
|
91
99
|
/** Output only. Duration of the time window, set by service producer. */
|
|
92
100
|
duration?: string;
|
|
@@ -119,6 +127,9 @@ declare namespace gapi.client {
|
|
|
119
127
|
/** The domain trust resource to removed. */
|
|
120
128
|
trust?: Trust;
|
|
121
129
|
}
|
|
130
|
+
// tslint:disable-next-line:no-empty-interface
|
|
131
|
+
interface DisableMigrationRequest {
|
|
132
|
+
}
|
|
122
133
|
interface Domain {
|
|
123
134
|
/** Optional. Configuration for audit logs. True if audit logs are enabled, else false. Default is audit logs disabled. */
|
|
124
135
|
auditLogsEnabled?: boolean;
|
|
@@ -160,6 +171,10 @@ declare namespace gapi.client {
|
|
|
160
171
|
// tslint:disable-next-line:no-empty-interface
|
|
161
172
|
interface Empty {
|
|
162
173
|
}
|
|
174
|
+
interface EnableMigrationRequest {
|
|
175
|
+
/** Required. List of the on-prem domains to be migrated. */
|
|
176
|
+
migratingDomains?: OnPremDomainDetails[];
|
|
177
|
+
}
|
|
163
178
|
interface Expr {
|
|
164
179
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
165
180
|
description?: string;
|
|
@@ -471,6 +486,18 @@ declare namespace gapi.client {
|
|
|
471
486
|
/** Weekly cycle. */
|
|
472
487
|
weeklyCycle?: WeeklyCycle;
|
|
473
488
|
}
|
|
489
|
+
interface OnPremDomainDetails {
|
|
490
|
+
/** Optional. Option to disable SID filtering. */
|
|
491
|
+
disableSidFiltering?: boolean;
|
|
492
|
+
/** Required. FQDN of the on-prem domain being migrated. */
|
|
493
|
+
domainName?: string;
|
|
494
|
+
}
|
|
495
|
+
interface OnPremDomainSIDDetails {
|
|
496
|
+
/** FQDN of the on-prem domain being migrated. */
|
|
497
|
+
name?: string;
|
|
498
|
+
/** Current SID filtering state. */
|
|
499
|
+
sidFilteringState?: string;
|
|
500
|
+
}
|
|
474
501
|
interface Operation {
|
|
475
502
|
/** 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. */
|
|
476
503
|
done?: boolean;
|
|
@@ -1132,6 +1159,62 @@ declare namespace gapi.client {
|
|
|
1132
1159
|
uploadType?: string;
|
|
1133
1160
|
},
|
|
1134
1161
|
body: AttachTrustRequest): Request<Operation>;
|
|
1162
|
+
/** AuditMigration API gets the current state of DomainMigration */
|
|
1163
|
+
checkMigrationPermission(request: {
|
|
1164
|
+
/** V1 error format. */
|
|
1165
|
+
"$.xgafv"?: string;
|
|
1166
|
+
/** OAuth access token. */
|
|
1167
|
+
access_token?: string;
|
|
1168
|
+
/** Data format for response. */
|
|
1169
|
+
alt?: string;
|
|
1170
|
+
/** JSONP */
|
|
1171
|
+
callback?: string;
|
|
1172
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1173
|
+
domain: string;
|
|
1174
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1175
|
+
fields?: string;
|
|
1176
|
+
/** 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. */
|
|
1177
|
+
key?: string;
|
|
1178
|
+
/** OAuth 2.0 token for the current user. */
|
|
1179
|
+
oauth_token?: string;
|
|
1180
|
+
/** Returns response with indentations and line breaks. */
|
|
1181
|
+
prettyPrint?: boolean;
|
|
1182
|
+
/** 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. */
|
|
1183
|
+
quotaUser?: string;
|
|
1184
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1185
|
+
upload_protocol?: string;
|
|
1186
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1187
|
+
uploadType?: string;
|
|
1188
|
+
/** Request body */
|
|
1189
|
+
resource: CheckMigrationPermissionRequest;
|
|
1190
|
+
}): Request<CheckMigrationPermissionResponse>;
|
|
1191
|
+
checkMigrationPermission(request: {
|
|
1192
|
+
/** V1 error format. */
|
|
1193
|
+
"$.xgafv"?: string;
|
|
1194
|
+
/** OAuth access token. */
|
|
1195
|
+
access_token?: string;
|
|
1196
|
+
/** Data format for response. */
|
|
1197
|
+
alt?: string;
|
|
1198
|
+
/** JSONP */
|
|
1199
|
+
callback?: string;
|
|
1200
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1201
|
+
domain: string;
|
|
1202
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1203
|
+
fields?: string;
|
|
1204
|
+
/** 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. */
|
|
1205
|
+
key?: string;
|
|
1206
|
+
/** OAuth 2.0 token for the current user. */
|
|
1207
|
+
oauth_token?: string;
|
|
1208
|
+
/** Returns response with indentations and line breaks. */
|
|
1209
|
+
prettyPrint?: boolean;
|
|
1210
|
+
/** 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. */
|
|
1211
|
+
quotaUser?: string;
|
|
1212
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1213
|
+
upload_protocol?: string;
|
|
1214
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1215
|
+
uploadType?: string;
|
|
1216
|
+
},
|
|
1217
|
+
body: CheckMigrationPermissionRequest): Request<CheckMigrationPermissionResponse>;
|
|
1135
1218
|
/** Creates a Microsoft AD Domain in a given project. Operation */
|
|
1136
1219
|
create(request: {
|
|
1137
1220
|
/** V1 error format. */
|
|
@@ -1283,6 +1366,118 @@ declare namespace gapi.client {
|
|
|
1283
1366
|
uploadType?: string;
|
|
1284
1367
|
},
|
|
1285
1368
|
body: DetachTrustRequest): Request<Operation>;
|
|
1369
|
+
/** Disable Domain Migration */
|
|
1370
|
+
disableMigration(request: {
|
|
1371
|
+
/** V1 error format. */
|
|
1372
|
+
"$.xgafv"?: string;
|
|
1373
|
+
/** OAuth access token. */
|
|
1374
|
+
access_token?: string;
|
|
1375
|
+
/** Data format for response. */
|
|
1376
|
+
alt?: string;
|
|
1377
|
+
/** JSONP */
|
|
1378
|
+
callback?: string;
|
|
1379
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1380
|
+
domain: string;
|
|
1381
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1382
|
+
fields?: string;
|
|
1383
|
+
/** 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. */
|
|
1384
|
+
key?: string;
|
|
1385
|
+
/** OAuth 2.0 token for the current user. */
|
|
1386
|
+
oauth_token?: string;
|
|
1387
|
+
/** Returns response with indentations and line breaks. */
|
|
1388
|
+
prettyPrint?: boolean;
|
|
1389
|
+
/** 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. */
|
|
1390
|
+
quotaUser?: string;
|
|
1391
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1392
|
+
upload_protocol?: string;
|
|
1393
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1394
|
+
uploadType?: string;
|
|
1395
|
+
/** Request body */
|
|
1396
|
+
resource: DisableMigrationRequest;
|
|
1397
|
+
}): Request<Operation>;
|
|
1398
|
+
disableMigration(request: {
|
|
1399
|
+
/** V1 error format. */
|
|
1400
|
+
"$.xgafv"?: string;
|
|
1401
|
+
/** OAuth access token. */
|
|
1402
|
+
access_token?: string;
|
|
1403
|
+
/** Data format for response. */
|
|
1404
|
+
alt?: string;
|
|
1405
|
+
/** JSONP */
|
|
1406
|
+
callback?: string;
|
|
1407
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1408
|
+
domain: string;
|
|
1409
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1410
|
+
fields?: string;
|
|
1411
|
+
/** 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. */
|
|
1412
|
+
key?: string;
|
|
1413
|
+
/** OAuth 2.0 token for the current user. */
|
|
1414
|
+
oauth_token?: string;
|
|
1415
|
+
/** Returns response with indentations and line breaks. */
|
|
1416
|
+
prettyPrint?: boolean;
|
|
1417
|
+
/** 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. */
|
|
1418
|
+
quotaUser?: string;
|
|
1419
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1420
|
+
upload_protocol?: string;
|
|
1421
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1422
|
+
uploadType?: string;
|
|
1423
|
+
},
|
|
1424
|
+
body: DisableMigrationRequest): Request<Operation>;
|
|
1425
|
+
/** Enable Domain Migration */
|
|
1426
|
+
enableMigration(request: {
|
|
1427
|
+
/** V1 error format. */
|
|
1428
|
+
"$.xgafv"?: string;
|
|
1429
|
+
/** OAuth access token. */
|
|
1430
|
+
access_token?: string;
|
|
1431
|
+
/** Data format for response. */
|
|
1432
|
+
alt?: string;
|
|
1433
|
+
/** JSONP */
|
|
1434
|
+
callback?: string;
|
|
1435
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1436
|
+
domain: string;
|
|
1437
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1438
|
+
fields?: string;
|
|
1439
|
+
/** 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. */
|
|
1440
|
+
key?: string;
|
|
1441
|
+
/** OAuth 2.0 token for the current user. */
|
|
1442
|
+
oauth_token?: string;
|
|
1443
|
+
/** Returns response with indentations and line breaks. */
|
|
1444
|
+
prettyPrint?: boolean;
|
|
1445
|
+
/** 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. */
|
|
1446
|
+
quotaUser?: string;
|
|
1447
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1448
|
+
upload_protocol?: string;
|
|
1449
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1450
|
+
uploadType?: string;
|
|
1451
|
+
/** Request body */
|
|
1452
|
+
resource: EnableMigrationRequest;
|
|
1453
|
+
}): Request<Operation>;
|
|
1454
|
+
enableMigration(request: {
|
|
1455
|
+
/** V1 error format. */
|
|
1456
|
+
"$.xgafv"?: string;
|
|
1457
|
+
/** OAuth access token. */
|
|
1458
|
+
access_token?: string;
|
|
1459
|
+
/** Data format for response. */
|
|
1460
|
+
alt?: string;
|
|
1461
|
+
/** JSONP */
|
|
1462
|
+
callback?: string;
|
|
1463
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1464
|
+
domain: string;
|
|
1465
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1466
|
+
fields?: string;
|
|
1467
|
+
/** 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. */
|
|
1468
|
+
key?: string;
|
|
1469
|
+
/** OAuth 2.0 token for the current user. */
|
|
1470
|
+
oauth_token?: string;
|
|
1471
|
+
/** Returns response with indentations and line breaks. */
|
|
1472
|
+
prettyPrint?: boolean;
|
|
1473
|
+
/** 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. */
|
|
1474
|
+
quotaUser?: string;
|
|
1475
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1476
|
+
upload_protocol?: string;
|
|
1477
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1478
|
+
uploadType?: string;
|
|
1479
|
+
},
|
|
1480
|
+
body: EnableMigrationRequest): Request<Operation>;
|
|
1286
1481
|
/** Extend Schema for Domain */
|
|
1287
1482
|
extendSchema(request: {
|
|
1288
1483
|
/** V1 error format. */
|
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: 20220926
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -60,6 +60,11 @@ gapi.load('client', async () => {
|
|
|
60
60
|
updateTime: "Test string",
|
|
61
61
|
},
|
|
62
62
|
});
|
|
63
|
+
/** AuditMigration API gets the current state of DomainMigration */
|
|
64
|
+
await gapi.client.managedidentities.projects.locations.global.domains.checkMigrationPermission({
|
|
65
|
+
domain: "Test string",
|
|
66
|
+
}, {
|
|
67
|
+
});
|
|
63
68
|
/** Creates a Microsoft AD Domain in a given project. Operation */
|
|
64
69
|
await gapi.client.managedidentities.projects.locations.global.domains.create({
|
|
65
70
|
domainName: "Test string",
|
|
@@ -125,6 +130,22 @@ gapi.load('client', async () => {
|
|
|
125
130
|
updateTime: "Test string",
|
|
126
131
|
},
|
|
127
132
|
});
|
|
133
|
+
/** Disable Domain Migration */
|
|
134
|
+
await gapi.client.managedidentities.projects.locations.global.domains.disableMigration({
|
|
135
|
+
domain: "Test string",
|
|
136
|
+
}, {
|
|
137
|
+
});
|
|
138
|
+
/** Enable Domain Migration */
|
|
139
|
+
await gapi.client.managedidentities.projects.locations.global.domains.enableMigration({
|
|
140
|
+
domain: "Test string",
|
|
141
|
+
}, {
|
|
142
|
+
migratingDomains: [
|
|
143
|
+
{
|
|
144
|
+
disableSidFiltering: true,
|
|
145
|
+
domainName: "Test string",
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
});
|
|
128
149
|
/** Extend Schema for Domain */
|
|
129
150
|
await gapi.client.managedidentities.projects.locations.global.domains.extendSchema({
|
|
130
151
|
domain: "Test string",
|