@maxim_mazurok/gapi.client.managedidentities-v1alpha1 0.0.20220823 → 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.
Files changed (3) hide show
  1. package/index.d.ts +209 -13
  2. package/package.json +1 -1
  3. 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: 20220823
12
+ // Revision: 20220926
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -55,17 +54,18 @@ declare namespace gapi.client {
55
54
  /**
56
55
  * 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
57
56
  * 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
58
- * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
59
- * represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
60
- * for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
61
- * `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
62
- * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
63
- * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
64
- * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
65
- * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
66
- * account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently
67
- * deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in
68
- * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
57
+ * account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific
58
+ * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
59
+ * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
60
+ * account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
61
+ * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
62
+ * identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to
63
+ * `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing
64
+ * a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value
65
+ * reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
66
+ * identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to
67
+ * `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For
68
+ * example, `google.com` or `example.com`.
69
69
  */
70
70
  members?: string[];
71
71
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
@@ -86,6 +86,15 @@ declare namespace gapi.client {
86
86
  /** The certificate thumbprint which uniquely identifies the certificate. */
87
87
  thumbprint?: string;
88
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
+ }
89
98
  interface DailyCycle {
90
99
  /** Output only. Duration of the time window, set by service producer. */
91
100
  duration?: string;
@@ -118,6 +127,9 @@ declare namespace gapi.client {
118
127
  /** The domain trust resource to removed. */
119
128
  trust?: Trust;
120
129
  }
130
+ // tslint:disable-next-line:no-empty-interface
131
+ interface DisableMigrationRequest {
132
+ }
121
133
  interface Domain {
122
134
  /** Optional. Configuration for audit logs. True if audit logs are enabled, else false. Default is audit logs disabled. */
123
135
  auditLogsEnabled?: boolean;
@@ -159,6 +171,10 @@ declare namespace gapi.client {
159
171
  // tslint:disable-next-line:no-empty-interface
160
172
  interface Empty {
161
173
  }
174
+ interface EnableMigrationRequest {
175
+ /** Required. List of the on-prem domains to be migrated. */
176
+ migratingDomains?: OnPremDomainDetails[];
177
+ }
162
178
  interface Expr {
163
179
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
164
180
  description?: string;
@@ -470,6 +486,18 @@ declare namespace gapi.client {
470
486
  /** Weekly cycle. */
471
487
  weeklyCycle?: WeeklyCycle;
472
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
+ }
473
501
  interface Operation {
474
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. */
475
503
  done?: boolean;
@@ -1131,6 +1159,62 @@ declare namespace gapi.client {
1131
1159
  uploadType?: string;
1132
1160
  },
1133
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>;
1134
1218
  /** Creates a Microsoft AD Domain in a given project. Operation */
1135
1219
  create(request: {
1136
1220
  /** V1 error format. */
@@ -1282,6 +1366,118 @@ declare namespace gapi.client {
1282
1366
  uploadType?: string;
1283
1367
  },
1284
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>;
1285
1481
  /** Extend Schema for Domain */
1286
1482
  extendSchema(request: {
1287
1483
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.managedidentities-v1alpha1",
3
- "version": "0.0.20220823",
3
+ "version": "0.0.20220926",
4
4
  "description": "TypeScript typings for Managed Service for Microsoft Active Directory API v1alpha1",
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: 20220823
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",