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