@maxim_mazurok/gapi.client.admin-directory_v1 0.0.20220913 → 0.0.20220927
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 +466 -2
- package/package.json +1 -1
- package/tests.ts +70 -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://admin.googleapis.com/$discovery/rest?version=directory_v1
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20220927
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -77,6 +76,16 @@ declare namespace gapi.client {
|
|
|
77
76
|
/** A list of successfully created printers with their IDs populated. */
|
|
78
77
|
printers?: Printer[];
|
|
79
78
|
}
|
|
79
|
+
interface BatchCreatePrintServersRequest {
|
|
80
|
+
/** Required. A list of `PrintServer` resources to be created (max `50` per batch). */
|
|
81
|
+
requests?: CreatePrintServerRequest[];
|
|
82
|
+
}
|
|
83
|
+
interface BatchCreatePrintServersResponse {
|
|
84
|
+
/** A list of create failures. `PrintServer` IDs are not populated, as print servers were not created. */
|
|
85
|
+
failures?: PrintServerFailureInfo[];
|
|
86
|
+
/** A list of successfully created print servers with their IDs populated. */
|
|
87
|
+
printServers?: PrintServer[];
|
|
88
|
+
}
|
|
80
89
|
interface BatchDeletePrintersRequest {
|
|
81
90
|
/** A list of Printer.id that should be deleted. Max 100 at a time. */
|
|
82
91
|
printerIds?: string[];
|
|
@@ -87,6 +96,16 @@ declare namespace gapi.client {
|
|
|
87
96
|
/** A list of Printer.id that were successfully deleted. */
|
|
88
97
|
printerIds?: string[];
|
|
89
98
|
}
|
|
99
|
+
interface BatchDeletePrintServersRequest {
|
|
100
|
+
/** A list of print server IDs that should be deleted (max `100` per batch). */
|
|
101
|
+
printServerIds?: string[];
|
|
102
|
+
}
|
|
103
|
+
interface BatchDeletePrintServersResponse {
|
|
104
|
+
/** A list of update failures. */
|
|
105
|
+
failedPrintServers?: PrintServerFailureInfo[];
|
|
106
|
+
/** A list of print server IDs that were successfully deleted. */
|
|
107
|
+
printServerIds?: string[];
|
|
108
|
+
}
|
|
90
109
|
interface Building {
|
|
91
110
|
/**
|
|
92
111
|
* The postal address of the building. See [`PostalAddress`](/my-business/reference/rest/v4/PostalAddress) for details. Note that only a single address line and region code are
|
|
@@ -449,6 +468,15 @@ declare namespace gapi.client {
|
|
|
449
468
|
/** Required. A printer to create. If you want to place the printer under particular OU then populate printer.org_unit_id filed. Otherwise the printer will be placed under root OU. */
|
|
450
469
|
printer?: Printer;
|
|
451
470
|
}
|
|
471
|
+
interface CreatePrintServerRequest {
|
|
472
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
473
|
+
parent?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Required. A print server to create. If you want to place the print server under a specific organizational unit (OU), then populate the `org_unit_id`. Otherwise the print server is
|
|
476
|
+
* created under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/admin-sdk/directory/v1/guides/manage-org-units).
|
|
477
|
+
*/
|
|
478
|
+
printServer?: PrintServer;
|
|
479
|
+
}
|
|
452
480
|
interface Customer {
|
|
453
481
|
/** The customer's secondary contact email address. This email address cannot be on the same domain as the `customerDomain` */
|
|
454
482
|
alternateEmail?: string;
|
|
@@ -688,6 +716,12 @@ declare namespace gapi.client {
|
|
|
688
716
|
*/
|
|
689
717
|
printers?: Printer[];
|
|
690
718
|
}
|
|
719
|
+
interface ListPrintServersResponse {
|
|
720
|
+
/** A token that can be sent as `page_token` in a request to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
721
|
+
nextPageToken?: string;
|
|
722
|
+
/** List of print servers. */
|
|
723
|
+
printServers?: PrintServer[];
|
|
724
|
+
}
|
|
691
725
|
interface Member {
|
|
692
726
|
/** Defines mail delivery preferences of member. This is only supported by create/update/get. */
|
|
693
727
|
delivery_settings?: string;
|
|
@@ -944,6 +978,35 @@ declare namespace gapi.client {
|
|
|
944
978
|
/** Manufacturer. eq. "Brother" */
|
|
945
979
|
manufacturer?: string;
|
|
946
980
|
}
|
|
981
|
+
interface PrintServer {
|
|
982
|
+
/** Output only. Time when the print server was created. */
|
|
983
|
+
createTime?: string;
|
|
984
|
+
/** Editable. Description of the print server (as shown in the Admin console). */
|
|
985
|
+
description?: string;
|
|
986
|
+
/** Editable. Display name of the print server (as shown in the Admin console). */
|
|
987
|
+
displayName?: string;
|
|
988
|
+
/** Immutable. ID of the print server. Leave empty when creating. */
|
|
989
|
+
id?: string;
|
|
990
|
+
/** Immutable. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}` */
|
|
991
|
+
name?: string;
|
|
992
|
+
/**
|
|
993
|
+
* ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it's not populated, the print server is
|
|
994
|
+
* placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](/admin-sdk/directory/reference/rest/v1/orgunits).
|
|
995
|
+
*/
|
|
996
|
+
orgUnitId?: string;
|
|
997
|
+
/** Editable. Print server URI. */
|
|
998
|
+
uri?: string;
|
|
999
|
+
}
|
|
1000
|
+
interface PrintServerFailureInfo {
|
|
1001
|
+
/** Canonical code for why the update failed to apply. */
|
|
1002
|
+
errorCode?: string;
|
|
1003
|
+
/** Failure reason message. */
|
|
1004
|
+
errorMessage?: string;
|
|
1005
|
+
/** Failed print server. */
|
|
1006
|
+
printServer?: PrintServer;
|
|
1007
|
+
/** ID of a failed print server. */
|
|
1008
|
+
printServerId?: string;
|
|
1009
|
+
}
|
|
947
1010
|
interface Privilege {
|
|
948
1011
|
/** A list of child privileges. Privileges for a service form a tree. Each privilege can have a list of child privileges; this list is empty for a leaf privilege. */
|
|
949
1012
|
childPrivileges?: Privilege[];
|
|
@@ -2061,8 +2124,345 @@ declare namespace gapi.client {
|
|
|
2061
2124
|
},
|
|
2062
2125
|
body: Printer): Request<Printer>;
|
|
2063
2126
|
}
|
|
2127
|
+
interface PrintServersResource {
|
|
2128
|
+
/** Creates multiple print servers. */
|
|
2129
|
+
batchCreatePrintServers(request: {
|
|
2130
|
+
/** V1 error format. */
|
|
2131
|
+
"$.xgafv"?: string;
|
|
2132
|
+
/** OAuth access token. */
|
|
2133
|
+
access_token?: string;
|
|
2134
|
+
/** Data format for response. */
|
|
2135
|
+
alt?: string;
|
|
2136
|
+
/** JSONP */
|
|
2137
|
+
callback?: string;
|
|
2138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2139
|
+
fields?: string;
|
|
2140
|
+
/** 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. */
|
|
2141
|
+
key?: string;
|
|
2142
|
+
/** OAuth 2.0 token for the current user. */
|
|
2143
|
+
oauth_token?: string;
|
|
2144
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2145
|
+
parent: string;
|
|
2146
|
+
/** Returns response with indentations and line breaks. */
|
|
2147
|
+
prettyPrint?: boolean;
|
|
2148
|
+
/** 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. */
|
|
2149
|
+
quotaUser?: string;
|
|
2150
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2151
|
+
upload_protocol?: string;
|
|
2152
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2153
|
+
uploadType?: string;
|
|
2154
|
+
/** Request body */
|
|
2155
|
+
resource: BatchCreatePrintServersRequest;
|
|
2156
|
+
}): Request<BatchCreatePrintServersResponse>;
|
|
2157
|
+
batchCreatePrintServers(request: {
|
|
2158
|
+
/** V1 error format. */
|
|
2159
|
+
"$.xgafv"?: string;
|
|
2160
|
+
/** OAuth access token. */
|
|
2161
|
+
access_token?: string;
|
|
2162
|
+
/** Data format for response. */
|
|
2163
|
+
alt?: string;
|
|
2164
|
+
/** JSONP */
|
|
2165
|
+
callback?: string;
|
|
2166
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2167
|
+
fields?: string;
|
|
2168
|
+
/** 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. */
|
|
2169
|
+
key?: string;
|
|
2170
|
+
/** OAuth 2.0 token for the current user. */
|
|
2171
|
+
oauth_token?: string;
|
|
2172
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2173
|
+
parent: string;
|
|
2174
|
+
/** Returns response with indentations and line breaks. */
|
|
2175
|
+
prettyPrint?: boolean;
|
|
2176
|
+
/** 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. */
|
|
2177
|
+
quotaUser?: string;
|
|
2178
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2179
|
+
upload_protocol?: string;
|
|
2180
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2181
|
+
uploadType?: string;
|
|
2182
|
+
},
|
|
2183
|
+
body: BatchCreatePrintServersRequest): Request<BatchCreatePrintServersResponse>;
|
|
2184
|
+
/** Deletes multiple print servers. */
|
|
2185
|
+
batchDeletePrintServers(request: {
|
|
2186
|
+
/** V1 error format. */
|
|
2187
|
+
"$.xgafv"?: string;
|
|
2188
|
+
/** OAuth access token. */
|
|
2189
|
+
access_token?: string;
|
|
2190
|
+
/** Data format for response. */
|
|
2191
|
+
alt?: string;
|
|
2192
|
+
/** JSONP */
|
|
2193
|
+
callback?: string;
|
|
2194
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2195
|
+
fields?: string;
|
|
2196
|
+
/** 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. */
|
|
2197
|
+
key?: string;
|
|
2198
|
+
/** OAuth 2.0 token for the current user. */
|
|
2199
|
+
oauth_token?: string;
|
|
2200
|
+
/**
|
|
2201
|
+
* Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format:
|
|
2202
|
+
* `customers/{customer.id}`
|
|
2203
|
+
*/
|
|
2204
|
+
parent: string;
|
|
2205
|
+
/** Returns response with indentations and line breaks. */
|
|
2206
|
+
prettyPrint?: boolean;
|
|
2207
|
+
/** 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. */
|
|
2208
|
+
quotaUser?: string;
|
|
2209
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2210
|
+
upload_protocol?: string;
|
|
2211
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2212
|
+
uploadType?: string;
|
|
2213
|
+
/** Request body */
|
|
2214
|
+
resource: BatchDeletePrintServersRequest;
|
|
2215
|
+
}): Request<BatchDeletePrintServersResponse>;
|
|
2216
|
+
batchDeletePrintServers(request: {
|
|
2217
|
+
/** V1 error format. */
|
|
2218
|
+
"$.xgafv"?: string;
|
|
2219
|
+
/** OAuth access token. */
|
|
2220
|
+
access_token?: string;
|
|
2221
|
+
/** Data format for response. */
|
|
2222
|
+
alt?: string;
|
|
2223
|
+
/** JSONP */
|
|
2224
|
+
callback?: string;
|
|
2225
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2226
|
+
fields?: string;
|
|
2227
|
+
/** 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. */
|
|
2228
|
+
key?: string;
|
|
2229
|
+
/** OAuth 2.0 token for the current user. */
|
|
2230
|
+
oauth_token?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format:
|
|
2233
|
+
* `customers/{customer.id}`
|
|
2234
|
+
*/
|
|
2235
|
+
parent: string;
|
|
2236
|
+
/** Returns response with indentations and line breaks. */
|
|
2237
|
+
prettyPrint?: boolean;
|
|
2238
|
+
/** 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. */
|
|
2239
|
+
quotaUser?: string;
|
|
2240
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2241
|
+
upload_protocol?: string;
|
|
2242
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2243
|
+
uploadType?: string;
|
|
2244
|
+
},
|
|
2245
|
+
body: BatchDeletePrintServersRequest): Request<BatchDeletePrintServersResponse>;
|
|
2246
|
+
/** Creates a print server. */
|
|
2247
|
+
create(request: {
|
|
2248
|
+
/** V1 error format. */
|
|
2249
|
+
"$.xgafv"?: string;
|
|
2250
|
+
/** OAuth access token. */
|
|
2251
|
+
access_token?: string;
|
|
2252
|
+
/** Data format for response. */
|
|
2253
|
+
alt?: string;
|
|
2254
|
+
/** JSONP */
|
|
2255
|
+
callback?: string;
|
|
2256
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2257
|
+
fields?: string;
|
|
2258
|
+
/** 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. */
|
|
2259
|
+
key?: string;
|
|
2260
|
+
/** OAuth 2.0 token for the current user. */
|
|
2261
|
+
oauth_token?: string;
|
|
2262
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2263
|
+
parent: string;
|
|
2264
|
+
/** Returns response with indentations and line breaks. */
|
|
2265
|
+
prettyPrint?: boolean;
|
|
2266
|
+
/** 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. */
|
|
2267
|
+
quotaUser?: string;
|
|
2268
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2269
|
+
upload_protocol?: string;
|
|
2270
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2271
|
+
uploadType?: string;
|
|
2272
|
+
/** Request body */
|
|
2273
|
+
resource: PrintServer;
|
|
2274
|
+
}): Request<PrintServer>;
|
|
2275
|
+
create(request: {
|
|
2276
|
+
/** V1 error format. */
|
|
2277
|
+
"$.xgafv"?: string;
|
|
2278
|
+
/** OAuth access token. */
|
|
2279
|
+
access_token?: string;
|
|
2280
|
+
/** Data format for response. */
|
|
2281
|
+
alt?: string;
|
|
2282
|
+
/** JSONP */
|
|
2283
|
+
callback?: string;
|
|
2284
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2285
|
+
fields?: string;
|
|
2286
|
+
/** 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. */
|
|
2287
|
+
key?: string;
|
|
2288
|
+
/** OAuth 2.0 token for the current user. */
|
|
2289
|
+
oauth_token?: string;
|
|
2290
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2291
|
+
parent: string;
|
|
2292
|
+
/** Returns response with indentations and line breaks. */
|
|
2293
|
+
prettyPrint?: boolean;
|
|
2294
|
+
/** 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. */
|
|
2295
|
+
quotaUser?: string;
|
|
2296
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2297
|
+
upload_protocol?: string;
|
|
2298
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2299
|
+
uploadType?: string;
|
|
2300
|
+
},
|
|
2301
|
+
body: PrintServer): Request<PrintServer>;
|
|
2302
|
+
/** Deletes a print server. */
|
|
2303
|
+
delete(request?: {
|
|
2304
|
+
/** V1 error format. */
|
|
2305
|
+
"$.xgafv"?: string;
|
|
2306
|
+
/** OAuth access token. */
|
|
2307
|
+
access_token?: string;
|
|
2308
|
+
/** Data format for response. */
|
|
2309
|
+
alt?: string;
|
|
2310
|
+
/** JSONP */
|
|
2311
|
+
callback?: string;
|
|
2312
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2313
|
+
fields?: string;
|
|
2314
|
+
/** 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. */
|
|
2315
|
+
key?: string;
|
|
2316
|
+
/** Required. The name of the print server to be deleted. Format: `customers/{customer.id}/chrome/printServers/{print_server.id}` */
|
|
2317
|
+
name: string;
|
|
2318
|
+
/** OAuth 2.0 token for the current user. */
|
|
2319
|
+
oauth_token?: string;
|
|
2320
|
+
/** Returns response with indentations and line breaks. */
|
|
2321
|
+
prettyPrint?: boolean;
|
|
2322
|
+
/** 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. */
|
|
2323
|
+
quotaUser?: string;
|
|
2324
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2325
|
+
upload_protocol?: string;
|
|
2326
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2327
|
+
uploadType?: string;
|
|
2328
|
+
}): Request<{}>;
|
|
2329
|
+
/** Returns a print server's configuration. */
|
|
2330
|
+
get(request?: {
|
|
2331
|
+
/** V1 error format. */
|
|
2332
|
+
"$.xgafv"?: string;
|
|
2333
|
+
/** OAuth access token. */
|
|
2334
|
+
access_token?: string;
|
|
2335
|
+
/** Data format for response. */
|
|
2336
|
+
alt?: string;
|
|
2337
|
+
/** JSONP */
|
|
2338
|
+
callback?: string;
|
|
2339
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2340
|
+
fields?: string;
|
|
2341
|
+
/** 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. */
|
|
2342
|
+
key?: string;
|
|
2343
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2344
|
+
name: string;
|
|
2345
|
+
/** OAuth 2.0 token for the current user. */
|
|
2346
|
+
oauth_token?: string;
|
|
2347
|
+
/** Returns response with indentations and line breaks. */
|
|
2348
|
+
prettyPrint?: boolean;
|
|
2349
|
+
/** 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. */
|
|
2350
|
+
quotaUser?: string;
|
|
2351
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2352
|
+
upload_protocol?: string;
|
|
2353
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2354
|
+
uploadType?: string;
|
|
2355
|
+
}): Request<PrintServer>;
|
|
2356
|
+
/** Lists print server configurations. */
|
|
2357
|
+
list(request?: {
|
|
2358
|
+
/** V1 error format. */
|
|
2359
|
+
"$.xgafv"?: string;
|
|
2360
|
+
/** OAuth access token. */
|
|
2361
|
+
access_token?: string;
|
|
2362
|
+
/** Data format for response. */
|
|
2363
|
+
alt?: string;
|
|
2364
|
+
/** JSONP */
|
|
2365
|
+
callback?: string;
|
|
2366
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2367
|
+
fields?: string;
|
|
2368
|
+
/**
|
|
2369
|
+
* Search query in [Common Expression Language syntax](https://github.com/google/cel-spec). Supported filters are `display_name`, `description`, and `uri`. Example:
|
|
2370
|
+
* `printServer.displayName=='marketing-queue'`.
|
|
2371
|
+
*/
|
|
2372
|
+
filter?: string;
|
|
2373
|
+
/** 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. */
|
|
2374
|
+
key?: string;
|
|
2375
|
+
/** OAuth 2.0 token for the current user. */
|
|
2376
|
+
oauth_token?: string;
|
|
2377
|
+
/**
|
|
2378
|
+
* Sort order for results. Supported values are `display_name`, `description`, or `create_time`. Default order is ascending, but descending order can be returned by appending
|
|
2379
|
+
* "desc" to the `order_by` field. For instance, `orderBy=='description desc'` returns the print servers sorted by description in descending order.
|
|
2380
|
+
*/
|
|
2381
|
+
orderBy?: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* If `org_unit_id` is present in the request, only print servers owned or inherited by the organizational unit (OU) are returned. If the `PrintServer` resource's `org_unit_id`
|
|
2384
|
+
* matches the one in the request, the OU owns the server. If `org_unit_id` is not specified in the request, all print servers are returned or filtered against.
|
|
2385
|
+
*/
|
|
2386
|
+
orgUnitId?: string;
|
|
2387
|
+
/** The maximum number of objects to return (default `100`, max `100`). The service might return fewer than this value. */
|
|
2388
|
+
pageSize?: number;
|
|
2389
|
+
/** A generated token to paginate results (the `next_page_token` from a previous call). */
|
|
2390
|
+
pageToken?: string;
|
|
2391
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2392
|
+
parent: string;
|
|
2393
|
+
/** Returns response with indentations and line breaks. */
|
|
2394
|
+
prettyPrint?: boolean;
|
|
2395
|
+
/** 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. */
|
|
2396
|
+
quotaUser?: string;
|
|
2397
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2398
|
+
upload_protocol?: string;
|
|
2399
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2400
|
+
uploadType?: string;
|
|
2401
|
+
}): Request<ListPrintServersResponse>;
|
|
2402
|
+
/** Updates a print server's configuration. */
|
|
2403
|
+
patch(request: {
|
|
2404
|
+
/** V1 error format. */
|
|
2405
|
+
"$.xgafv"?: string;
|
|
2406
|
+
/** OAuth access token. */
|
|
2407
|
+
access_token?: string;
|
|
2408
|
+
/** Data format for response. */
|
|
2409
|
+
alt?: string;
|
|
2410
|
+
/** JSONP */
|
|
2411
|
+
callback?: string;
|
|
2412
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2413
|
+
fields?: string;
|
|
2414
|
+
/** 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. */
|
|
2415
|
+
key?: string;
|
|
2416
|
+
/** Immutable. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}` */
|
|
2417
|
+
name: string;
|
|
2418
|
+
/** OAuth 2.0 token for the current user. */
|
|
2419
|
+
oauth_token?: string;
|
|
2420
|
+
/** Returns response with indentations and line breaks. */
|
|
2421
|
+
prettyPrint?: boolean;
|
|
2422
|
+
/** 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. */
|
|
2423
|
+
quotaUser?: string;
|
|
2424
|
+
/** The list of fields to update. Some fields are read-only and cannot be updated. Values for unspecified fields are patched. */
|
|
2425
|
+
updateMask?: string;
|
|
2426
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2427
|
+
upload_protocol?: string;
|
|
2428
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2429
|
+
uploadType?: string;
|
|
2430
|
+
/** Request body */
|
|
2431
|
+
resource: PrintServer;
|
|
2432
|
+
}): Request<PrintServer>;
|
|
2433
|
+
patch(request: {
|
|
2434
|
+
/** V1 error format. */
|
|
2435
|
+
"$.xgafv"?: string;
|
|
2436
|
+
/** OAuth access token. */
|
|
2437
|
+
access_token?: string;
|
|
2438
|
+
/** Data format for response. */
|
|
2439
|
+
alt?: string;
|
|
2440
|
+
/** JSONP */
|
|
2441
|
+
callback?: string;
|
|
2442
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2443
|
+
fields?: string;
|
|
2444
|
+
/** 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. */
|
|
2445
|
+
key?: string;
|
|
2446
|
+
/** Immutable. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}` */
|
|
2447
|
+
name: string;
|
|
2448
|
+
/** OAuth 2.0 token for the current user. */
|
|
2449
|
+
oauth_token?: string;
|
|
2450
|
+
/** Returns response with indentations and line breaks. */
|
|
2451
|
+
prettyPrint?: boolean;
|
|
2452
|
+
/** 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. */
|
|
2453
|
+
quotaUser?: string;
|
|
2454
|
+
/** The list of fields to update. Some fields are read-only and cannot be updated. Values for unspecified fields are patched. */
|
|
2455
|
+
updateMask?: string;
|
|
2456
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2457
|
+
upload_protocol?: string;
|
|
2458
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2459
|
+
uploadType?: string;
|
|
2460
|
+
},
|
|
2461
|
+
body: PrintServer): Request<PrintServer>;
|
|
2462
|
+
}
|
|
2064
2463
|
interface ChromeResource {
|
|
2065
2464
|
printers: PrintersResource;
|
|
2465
|
+
printServers: PrintServersResource;
|
|
2066
2466
|
}
|
|
2067
2467
|
interface CustomersResource {
|
|
2068
2468
|
chrome: ChromeResource;
|
|
@@ -2129,6 +2529,16 @@ declare namespace gapi.client {
|
|
|
2129
2529
|
/** A list of successfully created printers with their IDs populated. */
|
|
2130
2530
|
printers?: Printer[];
|
|
2131
2531
|
}
|
|
2532
|
+
interface BatchCreatePrintServersRequest {
|
|
2533
|
+
/** Required. A list of `PrintServer` resources to be created (max `50` per batch). */
|
|
2534
|
+
requests?: CreatePrintServerRequest[];
|
|
2535
|
+
}
|
|
2536
|
+
interface BatchCreatePrintServersResponse {
|
|
2537
|
+
/** A list of create failures. `PrintServer` IDs are not populated, as print servers were not created. */
|
|
2538
|
+
failures?: PrintServerFailureInfo[];
|
|
2539
|
+
/** A list of successfully created print servers with their IDs populated. */
|
|
2540
|
+
printServers?: PrintServer[];
|
|
2541
|
+
}
|
|
2132
2542
|
interface BatchDeletePrintersRequest {
|
|
2133
2543
|
/** A list of Printer.id that should be deleted. Max 100 at a time. */
|
|
2134
2544
|
printerIds?: string[];
|
|
@@ -2139,6 +2549,16 @@ declare namespace gapi.client {
|
|
|
2139
2549
|
/** A list of Printer.id that were successfully deleted. */
|
|
2140
2550
|
printerIds?: string[];
|
|
2141
2551
|
}
|
|
2552
|
+
interface BatchDeletePrintServersRequest {
|
|
2553
|
+
/** A list of print server IDs that should be deleted (max `100` per batch). */
|
|
2554
|
+
printServerIds?: string[];
|
|
2555
|
+
}
|
|
2556
|
+
interface BatchDeletePrintServersResponse {
|
|
2557
|
+
/** A list of update failures. */
|
|
2558
|
+
failedPrintServers?: PrintServerFailureInfo[];
|
|
2559
|
+
/** A list of print server IDs that were successfully deleted. */
|
|
2560
|
+
printServerIds?: string[];
|
|
2561
|
+
}
|
|
2142
2562
|
interface Building {
|
|
2143
2563
|
/**
|
|
2144
2564
|
* The postal address of the building. See [`PostalAddress`](/my-business/reference/rest/v4/PostalAddress) for details. Note that only a single address line and region code are
|
|
@@ -2501,6 +2921,15 @@ declare namespace gapi.client {
|
|
|
2501
2921
|
/** Required. A printer to create. If you want to place the printer under particular OU then populate printer.org_unit_id filed. Otherwise the printer will be placed under root OU. */
|
|
2502
2922
|
printer?: Printer;
|
|
2503
2923
|
}
|
|
2924
|
+
interface CreatePrintServerRequest {
|
|
2925
|
+
/** Required. The [unique ID](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` */
|
|
2926
|
+
parent?: string;
|
|
2927
|
+
/**
|
|
2928
|
+
* Required. A print server to create. If you want to place the print server under a specific organizational unit (OU), then populate the `org_unit_id`. Otherwise the print server is
|
|
2929
|
+
* created under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/admin-sdk/directory/v1/guides/manage-org-units).
|
|
2930
|
+
*/
|
|
2931
|
+
printServer?: PrintServer;
|
|
2932
|
+
}
|
|
2504
2933
|
interface Customer {
|
|
2505
2934
|
/** The customer's secondary contact email address. This email address cannot be on the same domain as the `customerDomain` */
|
|
2506
2935
|
alternateEmail?: string;
|
|
@@ -2740,6 +3169,12 @@ declare namespace gapi.client {
|
|
|
2740
3169
|
*/
|
|
2741
3170
|
printers?: Printer[];
|
|
2742
3171
|
}
|
|
3172
|
+
interface ListPrintServersResponse {
|
|
3173
|
+
/** A token that can be sent as `page_token` in a request to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
3174
|
+
nextPageToken?: string;
|
|
3175
|
+
/** List of print servers. */
|
|
3176
|
+
printServers?: PrintServer[];
|
|
3177
|
+
}
|
|
2743
3178
|
interface Member {
|
|
2744
3179
|
/** Defines mail delivery preferences of member. This is only supported by create/update/get. */
|
|
2745
3180
|
delivery_settings?: string;
|
|
@@ -2996,6 +3431,35 @@ declare namespace gapi.client {
|
|
|
2996
3431
|
/** Manufacturer. eq. "Brother" */
|
|
2997
3432
|
manufacturer?: string;
|
|
2998
3433
|
}
|
|
3434
|
+
interface PrintServer {
|
|
3435
|
+
/** Output only. Time when the print server was created. */
|
|
3436
|
+
createTime?: string;
|
|
3437
|
+
/** Editable. Description of the print server (as shown in the Admin console). */
|
|
3438
|
+
description?: string;
|
|
3439
|
+
/** Editable. Display name of the print server (as shown in the Admin console). */
|
|
3440
|
+
displayName?: string;
|
|
3441
|
+
/** Immutable. ID of the print server. Leave empty when creating. */
|
|
3442
|
+
id?: string;
|
|
3443
|
+
/** Immutable. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}` */
|
|
3444
|
+
name?: string;
|
|
3445
|
+
/**
|
|
3446
|
+
* ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it's not populated, the print server is
|
|
3447
|
+
* placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](/admin-sdk/directory/reference/rest/v1/orgunits).
|
|
3448
|
+
*/
|
|
3449
|
+
orgUnitId?: string;
|
|
3450
|
+
/** Editable. Print server URI. */
|
|
3451
|
+
uri?: string;
|
|
3452
|
+
}
|
|
3453
|
+
interface PrintServerFailureInfo {
|
|
3454
|
+
/** Canonical code for why the update failed to apply. */
|
|
3455
|
+
errorCode?: string;
|
|
3456
|
+
/** Failure reason message. */
|
|
3457
|
+
errorMessage?: string;
|
|
3458
|
+
/** Failed print server. */
|
|
3459
|
+
printServer?: PrintServer;
|
|
3460
|
+
/** ID of a failed print server. */
|
|
3461
|
+
printServerId?: string;
|
|
3462
|
+
}
|
|
2999
3463
|
interface Privilege {
|
|
3000
3464
|
/** A list of child privileges. Privileges for a service form a tree. Each privilege can have a list of child privileges; this list is empty for a leaf privilege. */
|
|
3001
3465
|
childPrivileges?: Privilege[];
|
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: 20220927
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -219,6 +219,75 @@ gapi.load('client', async () => {
|
|
|
219
219
|
uri: "Test string",
|
|
220
220
|
useDriverlessConfig: true,
|
|
221
221
|
});
|
|
222
|
+
/** Creates multiple print servers. */
|
|
223
|
+
await gapi.client.admin.customers.chrome.printServers.batchCreatePrintServers({
|
|
224
|
+
parent: "Test string",
|
|
225
|
+
}, {
|
|
226
|
+
requests: [
|
|
227
|
+
{
|
|
228
|
+
parent: "Test string",
|
|
229
|
+
printServer: {
|
|
230
|
+
createTime: "Test string",
|
|
231
|
+
description: "Test string",
|
|
232
|
+
displayName: "Test string",
|
|
233
|
+
id: "Test string",
|
|
234
|
+
name: "Test string",
|
|
235
|
+
orgUnitId: "Test string",
|
|
236
|
+
uri: "Test string",
|
|
237
|
+
},
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
});
|
|
241
|
+
/** Deletes multiple print servers. */
|
|
242
|
+
await gapi.client.admin.customers.chrome.printServers.batchDeletePrintServers({
|
|
243
|
+
parent: "Test string",
|
|
244
|
+
}, {
|
|
245
|
+
printServerIds: [
|
|
246
|
+
"Test string"
|
|
247
|
+
],
|
|
248
|
+
});
|
|
249
|
+
/** Creates a print server. */
|
|
250
|
+
await gapi.client.admin.customers.chrome.printServers.create({
|
|
251
|
+
parent: "Test string",
|
|
252
|
+
}, {
|
|
253
|
+
createTime: "Test string",
|
|
254
|
+
description: "Test string",
|
|
255
|
+
displayName: "Test string",
|
|
256
|
+
id: "Test string",
|
|
257
|
+
name: "Test string",
|
|
258
|
+
orgUnitId: "Test string",
|
|
259
|
+
uri: "Test string",
|
|
260
|
+
});
|
|
261
|
+
/** Deletes a print server. */
|
|
262
|
+
await gapi.client.admin.customers.chrome.printServers.delete({
|
|
263
|
+
name: "Test string",
|
|
264
|
+
});
|
|
265
|
+
/** Returns a print server's configuration. */
|
|
266
|
+
await gapi.client.admin.customers.chrome.printServers.get({
|
|
267
|
+
name: "Test string",
|
|
268
|
+
});
|
|
269
|
+
/** Lists print server configurations. */
|
|
270
|
+
await gapi.client.admin.customers.chrome.printServers.list({
|
|
271
|
+
filter: "Test string",
|
|
272
|
+
orderBy: "Test string",
|
|
273
|
+
orgUnitId: "Test string",
|
|
274
|
+
pageSize: 42,
|
|
275
|
+
pageToken: "Test string",
|
|
276
|
+
parent: "Test string",
|
|
277
|
+
});
|
|
278
|
+
/** Updates a print server's configuration. */
|
|
279
|
+
await gapi.client.admin.customers.chrome.printServers.patch({
|
|
280
|
+
name: "Test string",
|
|
281
|
+
updateMask: "Test string",
|
|
282
|
+
}, {
|
|
283
|
+
createTime: "Test string",
|
|
284
|
+
description: "Test string",
|
|
285
|
+
displayName: "Test string",
|
|
286
|
+
id: "Test string",
|
|
287
|
+
name: "Test string",
|
|
288
|
+
orgUnitId: "Test string",
|
|
289
|
+
uri: "Test string",
|
|
290
|
+
});
|
|
222
291
|
/** Deletes an ASP issued by a user. */
|
|
223
292
|
await gapi.client.directory.asps.delete({
|
|
224
293
|
codeId: 42,
|