@maxim_mazurok/gapi.client.managedidentities-v1 0.0.20230413 → 0.0.20230705
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 +279 -1
- package/package.json +1 -1
- package/tests.ts +22 -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://managedidentities.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230705
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -100,6 +100,17 @@ declare namespace gapi.client {
|
|
|
100
100
|
thumbprint?:
|
|
101
101
|
string;
|
|
102
102
|
}
|
|
103
|
+
// tslint:disable-next-line:no-empty-interface
|
|
104
|
+
interface CheckMigrationPermissionRequest {
|
|
105
|
+
}
|
|
106
|
+
interface CheckMigrationPermissionResponse {
|
|
107
|
+
/** The state of SID filtering of all the domains which has trust established. */
|
|
108
|
+
onpremDomains?:
|
|
109
|
+
OnPremDomainSIDDetails[];
|
|
110
|
+
/** The state of DomainMigration. */
|
|
111
|
+
state?:
|
|
112
|
+
string;
|
|
113
|
+
}
|
|
103
114
|
interface DailyCycle {
|
|
104
115
|
/** Output only. Duration of the time window, set by service producer. */
|
|
105
116
|
duration?:
|
|
@@ -141,6 +152,9 @@ declare namespace gapi.client {
|
|
|
141
152
|
trust?:
|
|
142
153
|
Trust;
|
|
143
154
|
}
|
|
155
|
+
// tslint:disable-next-line:no-empty-interface
|
|
156
|
+
interface DisableMigrationRequest {
|
|
157
|
+
}
|
|
144
158
|
interface Domain {
|
|
145
159
|
/** Optional. The name of delegated administrator account used to perform Active Directory operations. If not specified, `setupadmin` will be used. */
|
|
146
160
|
admin?:
|
|
@@ -213,6 +227,11 @@ declare namespace gapi.client {
|
|
|
213
227
|
// tslint:disable-next-line:no-empty-interface
|
|
214
228
|
interface Empty {
|
|
215
229
|
}
|
|
230
|
+
interface EnableMigrationRequest {
|
|
231
|
+
/** Required. List of the on-prem domains to be migrated. */
|
|
232
|
+
migratingDomains?:
|
|
233
|
+
OnPremDomainDetails[];
|
|
234
|
+
}
|
|
216
235
|
interface Expr {
|
|
217
236
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
218
237
|
description?:
|
|
@@ -623,6 +642,22 @@ declare namespace gapi.client {
|
|
|
623
642
|
weeklyCycle?:
|
|
624
643
|
WeeklyCycle;
|
|
625
644
|
}
|
|
645
|
+
interface OnPremDomainDetails {
|
|
646
|
+
/** Optional. Option to disable SID filtering. */
|
|
647
|
+
disableSidFiltering?:
|
|
648
|
+
boolean;
|
|
649
|
+
/** Required. FQDN of the on-prem domain being migrated. */
|
|
650
|
+
domainName?:
|
|
651
|
+
string;
|
|
652
|
+
}
|
|
653
|
+
interface OnPremDomainSIDDetails {
|
|
654
|
+
/** FQDN of the on-prem domain being migrated. */
|
|
655
|
+
name?:
|
|
656
|
+
string;
|
|
657
|
+
/** Current SID filtering state. */
|
|
658
|
+
sidFilteringState?:
|
|
659
|
+
string;
|
|
660
|
+
}
|
|
626
661
|
interface Operation {
|
|
627
662
|
/** 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. */
|
|
628
663
|
done?:
|
|
@@ -1531,6 +1566,87 @@ declare namespace gapi.client {
|
|
|
1531
1566
|
string;
|
|
1532
1567
|
},
|
|
1533
1568
|
body: AttachTrustRequest): Request<Operation>;
|
|
1569
|
+
/** CheckMigrationPermission API gets the current state of DomainMigration */
|
|
1570
|
+
checkMigrationPermission(request: {
|
|
1571
|
+
/** V1 error format. */
|
|
1572
|
+
"$.xgafv"?:
|
|
1573
|
+
string;
|
|
1574
|
+
/** OAuth access token. */
|
|
1575
|
+
access_token?:
|
|
1576
|
+
string;
|
|
1577
|
+
/** Data format for response. */
|
|
1578
|
+
alt?:
|
|
1579
|
+
string;
|
|
1580
|
+
/** JSONP */
|
|
1581
|
+
callback?:
|
|
1582
|
+
string;
|
|
1583
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1584
|
+
domain:
|
|
1585
|
+
string;
|
|
1586
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1587
|
+
fields?:
|
|
1588
|
+
string;
|
|
1589
|
+
/** 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. */
|
|
1590
|
+
key?:
|
|
1591
|
+
string;
|
|
1592
|
+
/** OAuth 2.0 token for the current user. */
|
|
1593
|
+
oauth_token?:
|
|
1594
|
+
string;
|
|
1595
|
+
/** Returns response with indentations and line breaks. */
|
|
1596
|
+
prettyPrint?:
|
|
1597
|
+
boolean;
|
|
1598
|
+
/** 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. */
|
|
1599
|
+
quotaUser?:
|
|
1600
|
+
string;
|
|
1601
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1602
|
+
upload_protocol?:
|
|
1603
|
+
string;
|
|
1604
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1605
|
+
uploadType?:
|
|
1606
|
+
string;
|
|
1607
|
+
/** Request body */
|
|
1608
|
+
resource:
|
|
1609
|
+
CheckMigrationPermissionRequest;
|
|
1610
|
+
}): Request<CheckMigrationPermissionResponse>;
|
|
1611
|
+
checkMigrationPermission(request: {
|
|
1612
|
+
/** V1 error format. */
|
|
1613
|
+
"$.xgafv"?:
|
|
1614
|
+
string;
|
|
1615
|
+
/** OAuth access token. */
|
|
1616
|
+
access_token?:
|
|
1617
|
+
string;
|
|
1618
|
+
/** Data format for response. */
|
|
1619
|
+
alt?:
|
|
1620
|
+
string;
|
|
1621
|
+
/** JSONP */
|
|
1622
|
+
callback?:
|
|
1623
|
+
string;
|
|
1624
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1625
|
+
domain:
|
|
1626
|
+
string;
|
|
1627
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1628
|
+
fields?:
|
|
1629
|
+
string;
|
|
1630
|
+
/** 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. */
|
|
1631
|
+
key?:
|
|
1632
|
+
string;
|
|
1633
|
+
/** OAuth 2.0 token for the current user. */
|
|
1634
|
+
oauth_token?:
|
|
1635
|
+
string;
|
|
1636
|
+
/** Returns response with indentations and line breaks. */
|
|
1637
|
+
prettyPrint?:
|
|
1638
|
+
boolean;
|
|
1639
|
+
/** 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. */
|
|
1640
|
+
quotaUser?:
|
|
1641
|
+
string;
|
|
1642
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1643
|
+
upload_protocol?:
|
|
1644
|
+
string;
|
|
1645
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1646
|
+
uploadType?:
|
|
1647
|
+
string;
|
|
1648
|
+
},
|
|
1649
|
+
body: CheckMigrationPermissionRequest): Request<CheckMigrationPermissionResponse>;
|
|
1534
1650
|
/** Creates a Microsoft AD domain. */
|
|
1535
1651
|
create(request: {
|
|
1536
1652
|
/** V1 error format. */
|
|
@@ -1746,6 +1862,87 @@ declare namespace gapi.client {
|
|
|
1746
1862
|
string;
|
|
1747
1863
|
},
|
|
1748
1864
|
body: DetachTrustRequest): Request<Operation>;
|
|
1865
|
+
/** Disable Domain Migration */
|
|
1866
|
+
disableMigration(request: {
|
|
1867
|
+
/** V1 error format. */
|
|
1868
|
+
"$.xgafv"?:
|
|
1869
|
+
string;
|
|
1870
|
+
/** OAuth access token. */
|
|
1871
|
+
access_token?:
|
|
1872
|
+
string;
|
|
1873
|
+
/** Data format for response. */
|
|
1874
|
+
alt?:
|
|
1875
|
+
string;
|
|
1876
|
+
/** JSONP */
|
|
1877
|
+
callback?:
|
|
1878
|
+
string;
|
|
1879
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1880
|
+
domain:
|
|
1881
|
+
string;
|
|
1882
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1883
|
+
fields?:
|
|
1884
|
+
string;
|
|
1885
|
+
/** 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. */
|
|
1886
|
+
key?:
|
|
1887
|
+
string;
|
|
1888
|
+
/** OAuth 2.0 token for the current user. */
|
|
1889
|
+
oauth_token?:
|
|
1890
|
+
string;
|
|
1891
|
+
/** Returns response with indentations and line breaks. */
|
|
1892
|
+
prettyPrint?:
|
|
1893
|
+
boolean;
|
|
1894
|
+
/** 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. */
|
|
1895
|
+
quotaUser?:
|
|
1896
|
+
string;
|
|
1897
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1898
|
+
upload_protocol?:
|
|
1899
|
+
string;
|
|
1900
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1901
|
+
uploadType?:
|
|
1902
|
+
string;
|
|
1903
|
+
/** Request body */
|
|
1904
|
+
resource:
|
|
1905
|
+
DisableMigrationRequest;
|
|
1906
|
+
}): Request<Operation>;
|
|
1907
|
+
disableMigration(request: {
|
|
1908
|
+
/** V1 error format. */
|
|
1909
|
+
"$.xgafv"?:
|
|
1910
|
+
string;
|
|
1911
|
+
/** OAuth access token. */
|
|
1912
|
+
access_token?:
|
|
1913
|
+
string;
|
|
1914
|
+
/** Data format for response. */
|
|
1915
|
+
alt?:
|
|
1916
|
+
string;
|
|
1917
|
+
/** JSONP */
|
|
1918
|
+
callback?:
|
|
1919
|
+
string;
|
|
1920
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
1921
|
+
domain:
|
|
1922
|
+
string;
|
|
1923
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1924
|
+
fields?:
|
|
1925
|
+
string;
|
|
1926
|
+
/** 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. */
|
|
1927
|
+
key?:
|
|
1928
|
+
string;
|
|
1929
|
+
/** OAuth 2.0 token for the current user. */
|
|
1930
|
+
oauth_token?:
|
|
1931
|
+
string;
|
|
1932
|
+
/** Returns response with indentations and line breaks. */
|
|
1933
|
+
prettyPrint?:
|
|
1934
|
+
boolean;
|
|
1935
|
+
/** 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. */
|
|
1936
|
+
quotaUser?:
|
|
1937
|
+
string;
|
|
1938
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1939
|
+
upload_protocol?:
|
|
1940
|
+
string;
|
|
1941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1942
|
+
uploadType?:
|
|
1943
|
+
string;
|
|
1944
|
+
},
|
|
1945
|
+
body: DisableMigrationRequest): Request<Operation>;
|
|
1749
1946
|
/** DomainJoinMachine API joins a Compute Engine VM to the domain */
|
|
1750
1947
|
domainJoinMachine(request: {
|
|
1751
1948
|
/** V1 error format. */
|
|
@@ -1827,6 +2024,87 @@ declare namespace gapi.client {
|
|
|
1827
2024
|
string;
|
|
1828
2025
|
},
|
|
1829
2026
|
body: DomainJoinMachineRequest): Request<DomainJoinMachineResponse>;
|
|
2027
|
+
/** Enable Domain Migration */
|
|
2028
|
+
enableMigration(request: {
|
|
2029
|
+
/** V1 error format. */
|
|
2030
|
+
"$.xgafv"?:
|
|
2031
|
+
string;
|
|
2032
|
+
/** OAuth access token. */
|
|
2033
|
+
access_token?:
|
|
2034
|
+
string;
|
|
2035
|
+
/** Data format for response. */
|
|
2036
|
+
alt?:
|
|
2037
|
+
string;
|
|
2038
|
+
/** JSONP */
|
|
2039
|
+
callback?:
|
|
2040
|
+
string;
|
|
2041
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
2042
|
+
domain:
|
|
2043
|
+
string;
|
|
2044
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2045
|
+
fields?:
|
|
2046
|
+
string;
|
|
2047
|
+
/** 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. */
|
|
2048
|
+
key?:
|
|
2049
|
+
string;
|
|
2050
|
+
/** OAuth 2.0 token for the current user. */
|
|
2051
|
+
oauth_token?:
|
|
2052
|
+
string;
|
|
2053
|
+
/** Returns response with indentations and line breaks. */
|
|
2054
|
+
prettyPrint?:
|
|
2055
|
+
boolean;
|
|
2056
|
+
/** 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. */
|
|
2057
|
+
quotaUser?:
|
|
2058
|
+
string;
|
|
2059
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2060
|
+
upload_protocol?:
|
|
2061
|
+
string;
|
|
2062
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2063
|
+
uploadType?:
|
|
2064
|
+
string;
|
|
2065
|
+
/** Request body */
|
|
2066
|
+
resource:
|
|
2067
|
+
EnableMigrationRequest;
|
|
2068
|
+
}): Request<Operation>;
|
|
2069
|
+
enableMigration(request: {
|
|
2070
|
+
/** V1 error format. */
|
|
2071
|
+
"$.xgafv"?:
|
|
2072
|
+
string;
|
|
2073
|
+
/** OAuth access token. */
|
|
2074
|
+
access_token?:
|
|
2075
|
+
string;
|
|
2076
|
+
/** Data format for response. */
|
|
2077
|
+
alt?:
|
|
2078
|
+
string;
|
|
2079
|
+
/** JSONP */
|
|
2080
|
+
callback?:
|
|
2081
|
+
string;
|
|
2082
|
+
/** Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` */
|
|
2083
|
+
domain:
|
|
2084
|
+
string;
|
|
2085
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2086
|
+
fields?:
|
|
2087
|
+
string;
|
|
2088
|
+
/** 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. */
|
|
2089
|
+
key?:
|
|
2090
|
+
string;
|
|
2091
|
+
/** OAuth 2.0 token for the current user. */
|
|
2092
|
+
oauth_token?:
|
|
2093
|
+
string;
|
|
2094
|
+
/** Returns response with indentations and line breaks. */
|
|
2095
|
+
prettyPrint?:
|
|
2096
|
+
boolean;
|
|
2097
|
+
/** 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. */
|
|
2098
|
+
quotaUser?:
|
|
2099
|
+
string;
|
|
2100
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2101
|
+
upload_protocol?:
|
|
2102
|
+
string;
|
|
2103
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2104
|
+
uploadType?:
|
|
2105
|
+
string;
|
|
2106
|
+
},
|
|
2107
|
+
body: EnableMigrationRequest): Request<Operation>;
|
|
1830
2108
|
/** Extend Schema for Domain */
|
|
1831
2109
|
extendSchema(request: {
|
|
1832
2110
|
/** 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: 20230705
|
|
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
|
+
/** CheckMigrationPermission 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. */
|
|
64
69
|
await gapi.client.managedidentities.projects.locations.global.domains.create({
|
|
65
70
|
domainName: "Test string",
|
|
@@ -125,6 +130,11 @@ 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
|
+
});
|
|
128
138
|
/** DomainJoinMachine API joins a Compute Engine VM to the domain */
|
|
129
139
|
await gapi.client.managedidentities.projects.locations.global.domains.domainJoinMachine({
|
|
130
140
|
domain: "Test string",
|
|
@@ -133,6 +143,17 @@ gapi.load('client', async () => {
|
|
|
133
143
|
ouName: "Test string",
|
|
134
144
|
vmIdToken: "Test string",
|
|
135
145
|
});
|
|
146
|
+
/** Enable Domain Migration */
|
|
147
|
+
await gapi.client.managedidentities.projects.locations.global.domains.enableMigration({
|
|
148
|
+
domain: "Test string",
|
|
149
|
+
}, {
|
|
150
|
+
migratingDomains: [
|
|
151
|
+
{
|
|
152
|
+
disableSidFiltering: true,
|
|
153
|
+
domainName: "Test string",
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
});
|
|
136
157
|
/** Extend Schema for Domain */
|
|
137
158
|
await gapi.client.managedidentities.projects.locations.global.domains.extendSchema({
|
|
138
159
|
domain: "Test string",
|