@maxim_mazurok/gapi.client.managedidentities-v1 0.0.20221227 → 0.0.20230323
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 +88 -21
- package/package.json +1 -1
- package/tests.ts +10 -7
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: 20230323
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -56,14 +56,14 @@ declare namespace gapi.client {
|
|
|
56
56
|
* Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
|
|
57
57
|
* `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
|
|
58
58
|
* 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]`. *
|
|
59
|
-
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `
|
|
60
|
-
*
|
|
61
|
-
* `
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* `
|
|
66
|
-
*
|
|
59
|
+
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
|
60
|
+
* users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
|
|
61
|
+
* been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
|
|
62
|
+
* the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
|
|
63
|
+
* deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
|
|
64
|
+
* the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
|
|
65
|
+
* 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
|
|
66
|
+
* retains the role in the binding.
|
|
67
67
|
*/
|
|
68
68
|
members?: string[];
|
|
69
69
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
@@ -153,6 +153,21 @@ declare namespace gapi.client {
|
|
|
153
153
|
/** Output only. The last update time. */
|
|
154
154
|
updateTime?: string;
|
|
155
155
|
}
|
|
156
|
+
interface DomainJoinMachineRequest {
|
|
157
|
+
/** Optional. force if True, forces domain join even if the computer account already exists. */
|
|
158
|
+
force?: boolean;
|
|
159
|
+
/** Optional. OU name where the VM needs to be domain joined */
|
|
160
|
+
ouName?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Required. Full instance id token of compute engine VM to verify instance identity. More about this:
|
|
163
|
+
* https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature
|
|
164
|
+
*/
|
|
165
|
+
vmIdToken?: string;
|
|
166
|
+
}
|
|
167
|
+
interface DomainJoinMachineResponse {
|
|
168
|
+
/** Offline domain join blob as the response */
|
|
169
|
+
domainJoinBlob?: string;
|
|
170
|
+
}
|
|
156
171
|
// tslint:disable-next-line:no-empty-interface
|
|
157
172
|
interface Empty {
|
|
158
173
|
}
|
|
@@ -227,8 +242,9 @@ declare namespace gapi.client {
|
|
|
227
242
|
}
|
|
228
243
|
interface GoogleCloudSaasacceleratorManagementProvidersV1Instance {
|
|
229
244
|
/**
|
|
230
|
-
* consumer_defined_name is the name
|
|
231
|
-
*
|
|
245
|
+
* consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the
|
|
246
|
+
* instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications
|
|
247
|
+
* (go/slm-rollout-maintenance-policies#prerequisites).
|
|
232
248
|
*/
|
|
233
249
|
consumerDefinedName?: string;
|
|
234
250
|
/** Output only. Timestamp when the resource was created. */
|
|
@@ -242,8 +258,8 @@ declare namespace gapi.client {
|
|
|
242
258
|
/** Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user. */
|
|
243
259
|
labels?: { [P in string]: string };
|
|
244
260
|
/**
|
|
245
|
-
* Optional.
|
|
246
|
-
*
|
|
261
|
+
* Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced
|
|
262
|
+
* policy must define the same policy type. For details, please refer to go/cloud-saas-mw-ug. Should not be set if maintenance_settings.maintenance_policies is set.
|
|
247
263
|
*/
|
|
248
264
|
maintenancePolicyNames?: { [P in string]: string };
|
|
249
265
|
/** The MaintenanceSchedule contains the scheduling information of published maintenance schedule with same key as software_versions. */
|
|
@@ -309,8 +325,8 @@ declare namespace gapi.client {
|
|
|
309
325
|
isRollback?: boolean;
|
|
310
326
|
/**
|
|
311
327
|
* Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded
|
|
312
|
-
* policy must define the same policy type. For
|
|
313
|
-
* MaintenancePolicy.name.
|
|
328
|
+
* policy must define the same policy type. For details, please refer to go/cloud-saas-mw-ug. Should not be set if maintenance_policy_names is set. If only the name is needed, then
|
|
329
|
+
* only populate MaintenancePolicy.name.
|
|
314
330
|
*/
|
|
315
331
|
maintenancePolicies?: { [P in string]: MaintenancePolicy };
|
|
316
332
|
}
|
|
@@ -1281,6 +1297,62 @@ declare namespace gapi.client {
|
|
|
1281
1297
|
uploadType?: string;
|
|
1282
1298
|
},
|
|
1283
1299
|
body: DetachTrustRequest): Request<Operation>;
|
|
1300
|
+
/** DomainJoinMachine API joins a Compute Engine VM to the domain */
|
|
1301
|
+
domainJoinMachine(request: {
|
|
1302
|
+
/** V1 error format. */
|
|
1303
|
+
"$.xgafv"?: string;
|
|
1304
|
+
/** OAuth access token. */
|
|
1305
|
+
access_token?: string;
|
|
1306
|
+
/** Data format for response. */
|
|
1307
|
+
alt?: string;
|
|
1308
|
+
/** JSONP */
|
|
1309
|
+
callback?: string;
|
|
1310
|
+
/** Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name} */
|
|
1311
|
+
domain: string;
|
|
1312
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1313
|
+
fields?: string;
|
|
1314
|
+
/** 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. */
|
|
1315
|
+
key?: string;
|
|
1316
|
+
/** OAuth 2.0 token for the current user. */
|
|
1317
|
+
oauth_token?: string;
|
|
1318
|
+
/** Returns response with indentations and line breaks. */
|
|
1319
|
+
prettyPrint?: boolean;
|
|
1320
|
+
/** 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. */
|
|
1321
|
+
quotaUser?: string;
|
|
1322
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1323
|
+
upload_protocol?: string;
|
|
1324
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1325
|
+
uploadType?: string;
|
|
1326
|
+
/** Request body */
|
|
1327
|
+
resource: DomainJoinMachineRequest;
|
|
1328
|
+
}): Request<DomainJoinMachineResponse>;
|
|
1329
|
+
domainJoinMachine(request: {
|
|
1330
|
+
/** V1 error format. */
|
|
1331
|
+
"$.xgafv"?: string;
|
|
1332
|
+
/** OAuth access token. */
|
|
1333
|
+
access_token?: string;
|
|
1334
|
+
/** Data format for response. */
|
|
1335
|
+
alt?: string;
|
|
1336
|
+
/** JSONP */
|
|
1337
|
+
callback?: string;
|
|
1338
|
+
/** Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name} */
|
|
1339
|
+
domain: string;
|
|
1340
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1341
|
+
fields?: string;
|
|
1342
|
+
/** 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. */
|
|
1343
|
+
key?: string;
|
|
1344
|
+
/** OAuth 2.0 token for the current user. */
|
|
1345
|
+
oauth_token?: string;
|
|
1346
|
+
/** Returns response with indentations and line breaks. */
|
|
1347
|
+
prettyPrint?: boolean;
|
|
1348
|
+
/** 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. */
|
|
1349
|
+
quotaUser?: string;
|
|
1350
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1351
|
+
upload_protocol?: string;
|
|
1352
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1353
|
+
uploadType?: string;
|
|
1354
|
+
},
|
|
1355
|
+
body: DomainJoinMachineRequest): Request<DomainJoinMachineResponse>;
|
|
1284
1356
|
/** Extend Schema for Domain */
|
|
1285
1357
|
extendSchema(request: {
|
|
1286
1358
|
/** V1 error format. */
|
|
@@ -2010,12 +2082,7 @@ declare namespace gapi.client {
|
|
|
2010
2082
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2011
2083
|
uploadType?: string;
|
|
2012
2084
|
}): Request<Operation>;
|
|
2013
|
-
/**
|
|
2014
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
2015
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
2016
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
2017
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
2018
|
-
*/
|
|
2085
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
2019
2086
|
list(request?: {
|
|
2020
2087
|
/** V1 error format. */
|
|
2021
2088
|
"$.xgafv"?: string;
|
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: 20230323
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -125,6 +125,14 @@ gapi.load('client', async () => {
|
|
|
125
125
|
updateTime: "Test string",
|
|
126
126
|
},
|
|
127
127
|
});
|
|
128
|
+
/** DomainJoinMachine API joins a Compute Engine VM to the domain */
|
|
129
|
+
await gapi.client.managedidentities.projects.locations.global.domains.domainJoinMachine({
|
|
130
|
+
domain: "Test string",
|
|
131
|
+
}, {
|
|
132
|
+
force: true,
|
|
133
|
+
ouName: "Test string",
|
|
134
|
+
vmIdToken: "Test string",
|
|
135
|
+
});
|
|
128
136
|
/** Extend Schema for Domain */
|
|
129
137
|
await gapi.client.managedidentities.projects.locations.global.domains.extendSchema({
|
|
130
138
|
domain: "Test string",
|
|
@@ -407,12 +415,7 @@ gapi.load('client', async () => {
|
|
|
407
415
|
await gapi.client.managedidentities.projects.locations.global.operations.get({
|
|
408
416
|
name: "Test string",
|
|
409
417
|
});
|
|
410
|
-
/**
|
|
411
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
|
|
412
|
-
* override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
413
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
414
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
415
|
-
*/
|
|
418
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
416
419
|
await gapi.client.managedidentities.projects.locations.global.operations.list({
|
|
417
420
|
filter: "Test string",
|
|
418
421
|
name: "Test string",
|