@maxim_mazurok/gapi.client.drivelabels-v2beta 0.0.20220920
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 +2072 -0
- package/package.json +20 -0
- package/readme.md +102 -0
- package/tests.ts +1049 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,2072 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Drive Labels API v2beta 0.0 */
|
|
2
|
+
// Project: https://developers.google.com/drive/labels
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
|
|
8
|
+
// IMPORTANT
|
|
9
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
|
+
// Generated from: https://drivelabels.googleapis.com/$discovery/rest?version=v2beta
|
|
12
|
+
// Revision: 20220920
|
|
13
|
+
|
|
14
|
+
/// <reference types="gapi.client" />
|
|
15
|
+
|
|
16
|
+
declare namespace gapi.client {
|
|
17
|
+
/** Load Drive Labels API v2beta */
|
|
18
|
+
function load(urlOrObject: "https://drivelabels.googleapis.com/$discovery/rest?version=v2beta"): Promise<void>;
|
|
19
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
20
|
+
function load(name: "drivelabels", version: "v2beta"): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: "drivelabels", version: "v2beta", callback: () => any): void;
|
|
23
|
+
|
|
24
|
+
namespace drivelabels {
|
|
25
|
+
interface GoogleAppsDriveLabelsV2betaBadgeColors {
|
|
26
|
+
/** Output only. Badge background that pairs with the foreground. */
|
|
27
|
+
backgroundColor?: GoogleTypeColor;
|
|
28
|
+
/** Output only. Badge foreground that pairs with the background. */
|
|
29
|
+
foregroundColor?: GoogleTypeColor;
|
|
30
|
+
/** Output only. Color that can be used for text without a background. */
|
|
31
|
+
soloColor?: GoogleTypeColor;
|
|
32
|
+
}
|
|
33
|
+
interface GoogleAppsDriveLabelsV2betaBadgeConfig {
|
|
34
|
+
/**
|
|
35
|
+
* The color of the badge. When not specified, no badge is rendered. The background, foreground, and solo (light and dark mode) colors set here are changed in the Drive UI into the
|
|
36
|
+
* closest recommended supported color.
|
|
37
|
+
*/
|
|
38
|
+
color?: GoogleTypeColor;
|
|
39
|
+
/** Override the default global priority of this badge. When set to 0, the default priority heuristic is used. */
|
|
40
|
+
priorityOverride?: string;
|
|
41
|
+
}
|
|
42
|
+
interface GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest {
|
|
43
|
+
/** Required. The request message specifying the resources to update. */
|
|
44
|
+
requests?: GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest[];
|
|
45
|
+
/**
|
|
46
|
+
* Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access
|
|
47
|
+
* field in the DeleteLabelPermissionRequest messages must either be empty or match this field.
|
|
48
|
+
*/
|
|
49
|
+
useAdminAccess?: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest {
|
|
52
|
+
/** Required. The request message specifying the resources to update. */
|
|
53
|
+
requests?: GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest[];
|
|
54
|
+
/**
|
|
55
|
+
* Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. If this is set, the use_admin_access
|
|
56
|
+
* field in the UpdateLabelPermissionRequest messages must either be empty or match this field.
|
|
57
|
+
*/
|
|
58
|
+
useAdminAccess?: boolean;
|
|
59
|
+
}
|
|
60
|
+
interface GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse {
|
|
61
|
+
/** Required. Permissions updated. */
|
|
62
|
+
permissions?: GoogleAppsDriveLabelsV2betaLabelPermission[];
|
|
63
|
+
}
|
|
64
|
+
interface GoogleAppsDriveLabelsV2betaDateLimits {
|
|
65
|
+
/** Maximum value for the date Field type. */
|
|
66
|
+
maxValue?: GoogleTypeDate;
|
|
67
|
+
/** Minimum value for the date Field type. */
|
|
68
|
+
minValue?: GoogleTypeDate;
|
|
69
|
+
}
|
|
70
|
+
interface GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest {
|
|
71
|
+
/** Required. Label Permission resource name. */
|
|
72
|
+
name?: string;
|
|
73
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
74
|
+
useAdminAccess?: boolean;
|
|
75
|
+
}
|
|
76
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest {
|
|
77
|
+
/** The BCP-47 language code to use for evaluating localized Field labels when `include_label_in_response` is `true`. */
|
|
78
|
+
languageCode?: string;
|
|
79
|
+
/** A list of updates to apply to the Label. Requests will be applied in the order they are specified. */
|
|
80
|
+
requests?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest[];
|
|
81
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
82
|
+
useAdminAccess?: boolean;
|
|
83
|
+
/** When specified, only certain fields belonging to the indicated view will be returned. */
|
|
84
|
+
view?: string;
|
|
85
|
+
/** Provides control over how write requests are executed. */
|
|
86
|
+
writeControl?: GoogleAppsDriveLabelsV2betaWriteControl;
|
|
87
|
+
}
|
|
88
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest {
|
|
89
|
+
/** Required. Field to create. */
|
|
90
|
+
field?: GoogleAppsDriveLabelsV2betaField;
|
|
91
|
+
}
|
|
92
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest {
|
|
93
|
+
/** Required. The Choice to create. */
|
|
94
|
+
choice?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice;
|
|
95
|
+
/** Required. The Selection Field in which a Choice will be created. */
|
|
96
|
+
fieldId?: string;
|
|
97
|
+
}
|
|
98
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest {
|
|
99
|
+
/** Required. ID of the Field to delete. */
|
|
100
|
+
id?: string;
|
|
101
|
+
}
|
|
102
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest {
|
|
103
|
+
/** Required. The Selection Field from which a Choice will be deleted. */
|
|
104
|
+
fieldId?: string;
|
|
105
|
+
/** Required. Choice to delete. */
|
|
106
|
+
id?: string;
|
|
107
|
+
}
|
|
108
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest {
|
|
109
|
+
/** Required. Field Disabled Policy. */
|
|
110
|
+
disabledPolicy?: GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy;
|
|
111
|
+
/** Required. Key of the Field to disable. */
|
|
112
|
+
id?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand
|
|
115
|
+
* for updating every field.
|
|
116
|
+
*/
|
|
117
|
+
updateMask?: string;
|
|
118
|
+
}
|
|
119
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest {
|
|
120
|
+
/** Required. The disabled policy to update. */
|
|
121
|
+
disabledPolicy?: GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy;
|
|
122
|
+
/** Required. The Selection Field in which a Choice will be disabled. */
|
|
123
|
+
fieldId?: string;
|
|
124
|
+
/** Required. Choice to disable. */
|
|
125
|
+
id?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand
|
|
128
|
+
* for updating every field.
|
|
129
|
+
*/
|
|
130
|
+
updateMask?: string;
|
|
131
|
+
}
|
|
132
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest {
|
|
133
|
+
/** Required. ID of the Field to enable. */
|
|
134
|
+
id?: string;
|
|
135
|
+
}
|
|
136
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest {
|
|
137
|
+
/** Required. The Selection Field in which a Choice will be enabled. */
|
|
138
|
+
fieldId?: string;
|
|
139
|
+
/** Required. Choice to enable. */
|
|
140
|
+
id?: string;
|
|
141
|
+
}
|
|
142
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest {
|
|
143
|
+
/** Creates a new Field. */
|
|
144
|
+
createField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest;
|
|
145
|
+
/** Creates Choice within a Selection field. */
|
|
146
|
+
createSelectionChoice?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest;
|
|
147
|
+
/** Deletes a Field from the label. */
|
|
148
|
+
deleteField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest;
|
|
149
|
+
/** Delete a Choice within a Selection Field. */
|
|
150
|
+
deleteSelectionChoice?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest;
|
|
151
|
+
/** Disables the Field. */
|
|
152
|
+
disableField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest;
|
|
153
|
+
/** Disable a Choice within a Selection Field. */
|
|
154
|
+
disableSelectionChoice?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest;
|
|
155
|
+
/** Enables the Field. */
|
|
156
|
+
enableField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest;
|
|
157
|
+
/** Enable a Choice within a Selection Field. */
|
|
158
|
+
enableSelectionChoice?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest;
|
|
159
|
+
/** Updates basic properties of a Field. */
|
|
160
|
+
updateField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest;
|
|
161
|
+
/** Update Field type and/or type options. */
|
|
162
|
+
updateFieldType?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest;
|
|
163
|
+
/** Updates the Label properties. */
|
|
164
|
+
updateLabel?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest;
|
|
165
|
+
/** Update a Choice properties within a Selection Field. */
|
|
166
|
+
updateSelectionChoiceProperties?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest;
|
|
167
|
+
}
|
|
168
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest {
|
|
169
|
+
/** Required. The Field to update. */
|
|
170
|
+
id?: string;
|
|
171
|
+
/** Required. Basic Field properties. */
|
|
172
|
+
properties?: GoogleAppsDriveLabelsV2betaFieldProperties;
|
|
173
|
+
/**
|
|
174
|
+
* The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for
|
|
175
|
+
* updating every field.
|
|
176
|
+
*/
|
|
177
|
+
updateMask?: string;
|
|
178
|
+
}
|
|
179
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest {
|
|
180
|
+
/** Update field to Date. */
|
|
181
|
+
dateOptions?: GoogleAppsDriveLabelsV2betaFieldDateOptions;
|
|
182
|
+
/** Required. The Field to update. */
|
|
183
|
+
id?: string;
|
|
184
|
+
/** Update field to Integer. */
|
|
185
|
+
integerOptions?: GoogleAppsDriveLabelsV2betaFieldIntegerOptions;
|
|
186
|
+
/** Update field to Long Text. */
|
|
187
|
+
longTextOptions?: GoogleAppsDriveLabelsV2betaFieldLongTextOptions;
|
|
188
|
+
/** Update field to Selection. */
|
|
189
|
+
selectionOptions?: GoogleAppsDriveLabelsV2betaFieldSelectionOptions;
|
|
190
|
+
/** Update field to Text. */
|
|
191
|
+
textOptions?: GoogleAppsDriveLabelsV2betaFieldTextOptions;
|
|
192
|
+
/**
|
|
193
|
+
* The fields that should be updated. At least one field must be specified. The root of `type_options` is implied and should not be specified. A single `*` can be used as short-hand
|
|
194
|
+
* for updating every field.
|
|
195
|
+
*/
|
|
196
|
+
updateMask?: string;
|
|
197
|
+
/** Update field to User. */
|
|
198
|
+
userOptions?: GoogleAppsDriveLabelsV2betaFieldUserOptions;
|
|
199
|
+
}
|
|
200
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest {
|
|
201
|
+
/** Required. Label properties to update. */
|
|
202
|
+
properties?: GoogleAppsDriveLabelsV2betaLabelProperties;
|
|
203
|
+
/**
|
|
204
|
+
* The fields that should be updated. At least one field must be specified. The root `label_properties` is implied and should not be specified. A single `*` can be used as short-hand
|
|
205
|
+
* for updating every field.
|
|
206
|
+
*/
|
|
207
|
+
updateMask?: string;
|
|
208
|
+
}
|
|
209
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest {
|
|
210
|
+
/** Required. The Selection Field to update. */
|
|
211
|
+
fieldId?: string;
|
|
212
|
+
/** Required. The Choice to update. */
|
|
213
|
+
id?: string;
|
|
214
|
+
/** Required. The Choice properties to update. */
|
|
215
|
+
properties?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties;
|
|
216
|
+
/**
|
|
217
|
+
* The fields that should be updated. At least one field must be specified. The root `properties` is implied and should not be specified. A single `*` can be used as short-hand for
|
|
218
|
+
* updating every field.
|
|
219
|
+
*/
|
|
220
|
+
updateMask?: string;
|
|
221
|
+
}
|
|
222
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse {
|
|
223
|
+
/** The reply of the updates. This maps 1:1 with the updates, although responses to some requests may be empty. */
|
|
224
|
+
responses?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse[];
|
|
225
|
+
/** The label after updates were applied. This is only set if [BatchUpdateLabelResponse2.include_label_in_response] is `true` and there were no errors. */
|
|
226
|
+
updatedLabel?: GoogleAppsDriveLabelsV2betaLabel;
|
|
227
|
+
}
|
|
228
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse {
|
|
229
|
+
/** The field of the created field. When left blank in a create request, a key will be autogenerated and can be identified here. */
|
|
230
|
+
id?: string;
|
|
231
|
+
/** The priority of the created field. The priority may change from what was specified to assure contiguous priorities between fields (1-n). */
|
|
232
|
+
priority?: number;
|
|
233
|
+
}
|
|
234
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse {
|
|
235
|
+
/** The server-generated id of the field. */
|
|
236
|
+
fieldId?: string;
|
|
237
|
+
/** The server-generated ID of the created choice within the Field */
|
|
238
|
+
id?: string;
|
|
239
|
+
}
|
|
240
|
+
// tslint:disable-next-line:no-empty-interface
|
|
241
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse {
|
|
242
|
+
}
|
|
243
|
+
// tslint:disable-next-line:no-empty-interface
|
|
244
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse {
|
|
245
|
+
}
|
|
246
|
+
// tslint:disable-next-line:no-empty-interface
|
|
247
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse {
|
|
248
|
+
}
|
|
249
|
+
// tslint:disable-next-line:no-empty-interface
|
|
250
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse {
|
|
251
|
+
}
|
|
252
|
+
// tslint:disable-next-line:no-empty-interface
|
|
253
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse {
|
|
254
|
+
}
|
|
255
|
+
// tslint:disable-next-line:no-empty-interface
|
|
256
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse {
|
|
257
|
+
}
|
|
258
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse {
|
|
259
|
+
/** Creates a new Field. */
|
|
260
|
+
createField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse;
|
|
261
|
+
/** Creates a new selection list option to add to a Selection Field. */
|
|
262
|
+
createSelectionChoice?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse;
|
|
263
|
+
/** Deletes a Field from the label. */
|
|
264
|
+
deleteField?: any;
|
|
265
|
+
/** Deletes a Choice from a Selection Field. */
|
|
266
|
+
deleteSelectionChoice?: any;
|
|
267
|
+
/** Disables Field. */
|
|
268
|
+
disableField?: any;
|
|
269
|
+
/** Disables a Choice within a Selection Field. */
|
|
270
|
+
disableSelectionChoice?: any;
|
|
271
|
+
/** Enables Field. */
|
|
272
|
+
enableField?: any;
|
|
273
|
+
/** Enables a Choice within a Selection Field. */
|
|
274
|
+
enableSelectionChoice?: any;
|
|
275
|
+
/** Updates basic properties of a Field. */
|
|
276
|
+
updateField?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse;
|
|
277
|
+
/** Update Field type and/or type options. */
|
|
278
|
+
updateFieldType?: any;
|
|
279
|
+
/** Updated basic properties of a Label. */
|
|
280
|
+
updateLabel?: any;
|
|
281
|
+
/** Updates a Choice within a Selection Field. */
|
|
282
|
+
updateSelectionChoiceProperties?: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse;
|
|
283
|
+
}
|
|
284
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse {
|
|
285
|
+
/** The priority of the updated field. The priority may change from what was specified to assure contiguous priorities between fields (1-n). */
|
|
286
|
+
priority?: number;
|
|
287
|
+
}
|
|
288
|
+
// tslint:disable-next-line:no-empty-interface
|
|
289
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse {
|
|
290
|
+
}
|
|
291
|
+
// tslint:disable-next-line:no-empty-interface
|
|
292
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse {
|
|
293
|
+
}
|
|
294
|
+
interface GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse {
|
|
295
|
+
/** The priority of the updated choice. The priority may change from what was specified to assure contiguous priorities between choices (1-n). */
|
|
296
|
+
priority?: number;
|
|
297
|
+
}
|
|
298
|
+
interface GoogleAppsDriveLabelsV2betaDisableLabelRequest {
|
|
299
|
+
/** Disabled policy to use. */
|
|
300
|
+
disabledPolicy?: GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy;
|
|
301
|
+
/** The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. */
|
|
302
|
+
languageCode?: string;
|
|
303
|
+
/**
|
|
304
|
+
* The fields that should be updated. At least one field must be specified. The root `disabled_policy` is implied and should not be specified. A single `*` can be used as short-hand
|
|
305
|
+
* for updating every field.
|
|
306
|
+
*/
|
|
307
|
+
updateMask?: string;
|
|
308
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
309
|
+
useAdminAccess?: boolean;
|
|
310
|
+
/** Provides control over how write requests are executed. Defaults to unset, which means last write wins. */
|
|
311
|
+
writeControl?: GoogleAppsDriveLabelsV2betaWriteControl;
|
|
312
|
+
}
|
|
313
|
+
interface GoogleAppsDriveLabelsV2betaEnableLabelRequest {
|
|
314
|
+
/** The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. */
|
|
315
|
+
languageCode?: string;
|
|
316
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
317
|
+
useAdminAccess?: boolean;
|
|
318
|
+
/** Provides control over how write requests are executed. Defaults to unset, which means last write wins. */
|
|
319
|
+
writeControl?: GoogleAppsDriveLabelsV2betaWriteControl;
|
|
320
|
+
}
|
|
321
|
+
interface GoogleAppsDriveLabelsV2betaField {
|
|
322
|
+
/** Output only. The capabilities this user has on this field and its value when the label is applied on Drive items. */
|
|
323
|
+
appliedCapabilities?: GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities;
|
|
324
|
+
/** Output only. The time this field was created. */
|
|
325
|
+
createTime?: string;
|
|
326
|
+
/** Output only. The user who created this field. */
|
|
327
|
+
creator?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
328
|
+
/** Date field options. */
|
|
329
|
+
dateOptions?: GoogleAppsDriveLabelsV2betaFieldDateOptions;
|
|
330
|
+
/** Output only. The user who disabled this field. This value has no meaning when the field is not disabled. */
|
|
331
|
+
disabler?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
332
|
+
/** Output only. The time this field was disabled. This value has no meaning when the field is not disabled. */
|
|
333
|
+
disableTime?: string;
|
|
334
|
+
/** Output only. UI display hints for rendering a field. */
|
|
335
|
+
displayHints?: GoogleAppsDriveLabelsV2betaFieldDisplayHints;
|
|
336
|
+
/** Output only. The key of a field, unique within a label or library. This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+` */
|
|
337
|
+
id?: string;
|
|
338
|
+
/** Integer field options. */
|
|
339
|
+
integerOptions?: GoogleAppsDriveLabelsV2betaFieldIntegerOptions;
|
|
340
|
+
/** Output only. The lifecycle of this field. */
|
|
341
|
+
lifecycle?: GoogleAppsDriveLabelsV2betaLifecycle;
|
|
342
|
+
/** Output only. The LockStatus of this field. */
|
|
343
|
+
lockStatus?: GoogleAppsDriveLabelsV2betaLockStatus;
|
|
344
|
+
/** The basic properties of the field. */
|
|
345
|
+
properties?: GoogleAppsDriveLabelsV2betaFieldProperties;
|
|
346
|
+
/** Output only. The user who published this field. This value has no meaning when the field is not published. */
|
|
347
|
+
publisher?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
348
|
+
/** Output only. The key to use when constructing Drive search queries to find files based on values defined for this field on files. For example, "`{query_key}` > 2001-01-01". */
|
|
349
|
+
queryKey?: string;
|
|
350
|
+
/** Output only. The capabilities this user has when editing this field. */
|
|
351
|
+
schemaCapabilities?: GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities;
|
|
352
|
+
/** Selection field options. */
|
|
353
|
+
selectionOptions?: GoogleAppsDriveLabelsV2betaFieldSelectionOptions;
|
|
354
|
+
/** Text field options. */
|
|
355
|
+
textOptions?: GoogleAppsDriveLabelsV2betaFieldTextOptions;
|
|
356
|
+
/** Output only. The user who modified this field. */
|
|
357
|
+
updater?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
358
|
+
/** Output only. The time this field was updated. */
|
|
359
|
+
updateTime?: string;
|
|
360
|
+
/** User field options. */
|
|
361
|
+
userOptions?: GoogleAppsDriveLabelsV2betaFieldUserOptions;
|
|
362
|
+
}
|
|
363
|
+
interface GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities {
|
|
364
|
+
/** Whether the user can read related applied metadata on items. */
|
|
365
|
+
canRead?: boolean;
|
|
366
|
+
/** Whether the user can search for Drive items referencing this field. */
|
|
367
|
+
canSearch?: boolean;
|
|
368
|
+
/** Whether the user can set this field on Drive items. */
|
|
369
|
+
canWrite?: boolean;
|
|
370
|
+
}
|
|
371
|
+
interface GoogleAppsDriveLabelsV2betaFieldDateOptions {
|
|
372
|
+
/** Output only. ICU date format. */
|
|
373
|
+
dateFormat?: string;
|
|
374
|
+
/** Localized date formatting option. Field values are rendered in this format according to their locale. */
|
|
375
|
+
dateFormatType?: string;
|
|
376
|
+
/** Output only. Maximum valid value (year, month, day). */
|
|
377
|
+
maxValue?: GoogleTypeDate;
|
|
378
|
+
/** Output only. Minimum valid value (year, month, day). */
|
|
379
|
+
minValue?: GoogleTypeDate;
|
|
380
|
+
}
|
|
381
|
+
interface GoogleAppsDriveLabelsV2betaFieldDisplayHints {
|
|
382
|
+
/** Whether the field should be shown in the UI as disabled. */
|
|
383
|
+
disabled?: boolean;
|
|
384
|
+
/** This field should be hidden in the search menu when searching for Drive items. */
|
|
385
|
+
hiddenInSearch?: boolean;
|
|
386
|
+
/** Whether the field should be shown as required in the UI. */
|
|
387
|
+
required?: boolean;
|
|
388
|
+
/** This field should be shown in the apply menu when applying values to a Drive item. */
|
|
389
|
+
shownInApply?: boolean;
|
|
390
|
+
}
|
|
391
|
+
interface GoogleAppsDriveLabelsV2betaFieldIntegerOptions {
|
|
392
|
+
/** Output only. The maximum valid value for the integer field. */
|
|
393
|
+
maxValue?: string;
|
|
394
|
+
/** Output only. The minimum valid value for the integer field. */
|
|
395
|
+
minValue?: string;
|
|
396
|
+
}
|
|
397
|
+
interface GoogleAppsDriveLabelsV2betaFieldLimits {
|
|
398
|
+
/** Date Field limits. */
|
|
399
|
+
dateLimits?: GoogleAppsDriveLabelsV2betaDateLimits;
|
|
400
|
+
/** Integer Field limits. */
|
|
401
|
+
integerLimits?: GoogleAppsDriveLabelsV2betaIntegerLimits;
|
|
402
|
+
/** Long text Field limits. */
|
|
403
|
+
longTextLimits?: GoogleAppsDriveLabelsV2betaLongTextLimits;
|
|
404
|
+
/** Limits for Field description, also called help text. */
|
|
405
|
+
maxDescriptionLength?: number;
|
|
406
|
+
/** Limits for Field title. */
|
|
407
|
+
maxDisplayNameLength?: number;
|
|
408
|
+
/** Max length for the id. */
|
|
409
|
+
maxIdLength?: number;
|
|
410
|
+
/** Selection Field limits. */
|
|
411
|
+
selectionLimits?: GoogleAppsDriveLabelsV2betaSelectionLimits;
|
|
412
|
+
/** The relevant limits for the specified Field.Type. Text Field limits. */
|
|
413
|
+
textLimits?: GoogleAppsDriveLabelsV2betaTextLimits;
|
|
414
|
+
/** User Field limits. */
|
|
415
|
+
userLimits?: GoogleAppsDriveLabelsV2betaUserLimits;
|
|
416
|
+
}
|
|
417
|
+
interface GoogleAppsDriveLabelsV2betaFieldListOptions {
|
|
418
|
+
/** Maximum number of entries permitted. */
|
|
419
|
+
maxEntries?: number;
|
|
420
|
+
}
|
|
421
|
+
interface GoogleAppsDriveLabelsV2betaFieldLongTextOptions {
|
|
422
|
+
/** Output only. The maximum valid length of values for the text field. */
|
|
423
|
+
maxLength?: number;
|
|
424
|
+
/** Output only. The minimum valid length of values for the text field. */
|
|
425
|
+
minLength?: number;
|
|
426
|
+
}
|
|
427
|
+
interface GoogleAppsDriveLabelsV2betaFieldProperties {
|
|
428
|
+
/** Required. The display text to show in the UI identifying this field. */
|
|
429
|
+
displayName?: string;
|
|
430
|
+
/** Input only. Insert or move this field before the indicated field. If empty, the field is placed at the end of the list. */
|
|
431
|
+
insertBeforeField?: string;
|
|
432
|
+
/** Whether the field should be marked as required. */
|
|
433
|
+
required?: boolean;
|
|
434
|
+
}
|
|
435
|
+
interface GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities {
|
|
436
|
+
/** Whether the user can delete this field. The user must have permission and the field must be deprecated. */
|
|
437
|
+
canDelete?: boolean;
|
|
438
|
+
/** Whether the user can disable this field. The user must have permission and this field must not already be disabled. */
|
|
439
|
+
canDisable?: boolean;
|
|
440
|
+
/** Whether the user can enable this field. The user must have permission and this field must be disabled. */
|
|
441
|
+
canEnable?: boolean;
|
|
442
|
+
/** Whether the user can change this field. */
|
|
443
|
+
canUpdate?: boolean;
|
|
444
|
+
}
|
|
445
|
+
interface GoogleAppsDriveLabelsV2betaFieldSelectionOptions {
|
|
446
|
+
/** The options available for this selection field. The list order is consistent, and modified with `insert_before_choice`. */
|
|
447
|
+
choices?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice[];
|
|
448
|
+
/** When specified, indicates this field supports a list of values. Once the field is published, this cannot be changed. */
|
|
449
|
+
listOptions?: GoogleAppsDriveLabelsV2betaFieldListOptions;
|
|
450
|
+
}
|
|
451
|
+
interface GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice {
|
|
452
|
+
/** Output only. The capabilities related to this choice on applied metadata. */
|
|
453
|
+
appliedCapabilities?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities;
|
|
454
|
+
/** Output only. The time this choice was created. */
|
|
455
|
+
createTime?: string;
|
|
456
|
+
/** Output only. The user who created this choice. */
|
|
457
|
+
creator?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
458
|
+
/** Output only. The user who disabled this choice. This value has no meaning when the option is not disabled. */
|
|
459
|
+
disabler?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
460
|
+
/** Output only. The time this choice was disabled. This value has no meaning when the choice is not disabled. */
|
|
461
|
+
disableTime?: string;
|
|
462
|
+
/** Output only. UI display hints for rendering a choice. */
|
|
463
|
+
displayHints?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints;
|
|
464
|
+
/** The unique value of the choice. This ID is autogenerated. Matches the regex: `([a-zA-Z0-9_])+`. */
|
|
465
|
+
id?: string;
|
|
466
|
+
/** Output only. Lifecycle of the choice. */
|
|
467
|
+
lifecycle?: GoogleAppsDriveLabelsV2betaLifecycle;
|
|
468
|
+
/** Output only. The LockStatus of this choice. */
|
|
469
|
+
lockStatus?: GoogleAppsDriveLabelsV2betaLockStatus;
|
|
470
|
+
/** Basic properties of the choice. */
|
|
471
|
+
properties?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties;
|
|
472
|
+
/** Output only. The user who published this choice. This value has no meaning when the choice is not published. */
|
|
473
|
+
publisher?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
474
|
+
/** Output only. The time this choice was published. This value has no meaning when the choice is not published. */
|
|
475
|
+
publishTime?: string;
|
|
476
|
+
/** Output only. The capabilities related to this option when editing the option. */
|
|
477
|
+
schemaCapabilities?: GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities;
|
|
478
|
+
/** Output only. The user who updated this choice last. */
|
|
479
|
+
updater?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
480
|
+
/** Output only. The time this choice was updated last. */
|
|
481
|
+
updateTime?: string;
|
|
482
|
+
}
|
|
483
|
+
interface GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities {
|
|
484
|
+
/** Whether the user can read related applied metadata on items. */
|
|
485
|
+
canRead?: boolean;
|
|
486
|
+
/** Whether the user can use this choice in search queries. */
|
|
487
|
+
canSearch?: boolean;
|
|
488
|
+
/** Whether the user can select this choice on an item. */
|
|
489
|
+
canSelect?: boolean;
|
|
490
|
+
}
|
|
491
|
+
interface GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints {
|
|
492
|
+
/** The colors to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`. */
|
|
493
|
+
badgeColors?: GoogleAppsDriveLabelsV2betaBadgeColors;
|
|
494
|
+
/**
|
|
495
|
+
* The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this
|
|
496
|
+
* will be 0. Otherwise, this will be set to `BadgeConfig.priority_override` or the default heuristic which prefers creation date of the label, and field and option priority.
|
|
497
|
+
*/
|
|
498
|
+
badgePriority?: string;
|
|
499
|
+
/** The dark-mode color to use for the badge. Changed to Google Material colors based on the chosen `properties.badge_config.color`. */
|
|
500
|
+
darkBadgeColors?: GoogleAppsDriveLabelsV2betaBadgeColors;
|
|
501
|
+
/** Whether the option should be shown in the UI as disabled. */
|
|
502
|
+
disabled?: boolean;
|
|
503
|
+
/** This option should be hidden in the search menu when searching for Drive items. */
|
|
504
|
+
hiddenInSearch?: boolean;
|
|
505
|
+
/** This option should be shown in the apply menu when applying values to a Drive item. */
|
|
506
|
+
shownInApply?: boolean;
|
|
507
|
+
}
|
|
508
|
+
interface GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties {
|
|
509
|
+
/** The badge configuration for this choice. When set, the label that owns this choice is considered a "badged label". */
|
|
510
|
+
badgeConfig?: GoogleAppsDriveLabelsV2betaBadgeConfig;
|
|
511
|
+
/** The description of this label. */
|
|
512
|
+
description?: string;
|
|
513
|
+
/** Required. The display text to show in the UI identifying this field. */
|
|
514
|
+
displayName?: string;
|
|
515
|
+
/** Input only. Insert or move this choice before the indicated choice. If empty, the choice is placed at the end of the list. */
|
|
516
|
+
insertBeforeChoice?: string;
|
|
517
|
+
}
|
|
518
|
+
interface GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities {
|
|
519
|
+
/** Whether the user can delete this choice. */
|
|
520
|
+
canDelete?: boolean;
|
|
521
|
+
/** Whether the user can disable this choice. */
|
|
522
|
+
canDisable?: boolean;
|
|
523
|
+
/** Whether the user can enable this choice. */
|
|
524
|
+
canEnable?: boolean;
|
|
525
|
+
/** Whether the user can update this choice. */
|
|
526
|
+
canUpdate?: boolean;
|
|
527
|
+
}
|
|
528
|
+
interface GoogleAppsDriveLabelsV2betaFieldTextOptions {
|
|
529
|
+
/** Output only. The maximum valid length of values for the text field. */
|
|
530
|
+
maxLength?: number;
|
|
531
|
+
/** Output only. The minimum valid length of values for the text field. */
|
|
532
|
+
minLength?: number;
|
|
533
|
+
}
|
|
534
|
+
interface GoogleAppsDriveLabelsV2betaFieldUserOptions {
|
|
535
|
+
/** When specified, indicates that this field supports a list of values. Once the field is published, this cannot be changed. */
|
|
536
|
+
listOptions?: GoogleAppsDriveLabelsV2betaFieldListOptions;
|
|
537
|
+
}
|
|
538
|
+
interface GoogleAppsDriveLabelsV2betaIntegerLimits {
|
|
539
|
+
/** Maximum value for an integer Field type. */
|
|
540
|
+
maxValue?: string;
|
|
541
|
+
/** Minimum value for an integer Field type. */
|
|
542
|
+
minValue?: string;
|
|
543
|
+
}
|
|
544
|
+
interface GoogleAppsDriveLabelsV2betaLabel {
|
|
545
|
+
/** Output only. The capabilities related to this label on applied metadata. */
|
|
546
|
+
appliedCapabilities?: GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities;
|
|
547
|
+
/** Output only. Behavior of this label when it's applied to Drive items. */
|
|
548
|
+
appliedLabelPolicy?: GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy;
|
|
549
|
+
/** Output only. The time this label was created. */
|
|
550
|
+
createTime?: string;
|
|
551
|
+
/** Output only. The user who created this label. */
|
|
552
|
+
creator?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
553
|
+
/** Output only. The user who disabled this label. This value has no meaning when the label is not disabled. */
|
|
554
|
+
disabler?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
555
|
+
/** Output only. The time this label was disabled. This value has no meaning when the label is not disabled. */
|
|
556
|
+
disableTime?: string;
|
|
557
|
+
/** Output only. UI display hints for rendering the label. */
|
|
558
|
+
displayHints?: GoogleAppsDriveLabelsV2betaLabelDisplayHints;
|
|
559
|
+
/** List of fields in descending priority order. */
|
|
560
|
+
fields?: GoogleAppsDriveLabelsV2betaField[];
|
|
561
|
+
/**
|
|
562
|
+
* Output only. Globally unique identifier of this label. ID makes up part of the label `name`, but unlike `name`, ID is consistent between revisions. Matches the regex:
|
|
563
|
+
* `([a-zA-Z0-9])+`
|
|
564
|
+
*/
|
|
565
|
+
id?: string;
|
|
566
|
+
/** Required. The type of label. */
|
|
567
|
+
labelType?: string;
|
|
568
|
+
/** Custom URL to present to users to allow them to learn more about this label and how it should be used. */
|
|
569
|
+
learnMoreUri?: string;
|
|
570
|
+
/** Output only. The lifecycle state of the label including whether it's published, deprecated, and has draft changes. */
|
|
571
|
+
lifecycle?: GoogleAppsDriveLabelsV2betaLifecycle;
|
|
572
|
+
/** Output only. The LockStatus of this label. */
|
|
573
|
+
lockStatus?: GoogleAppsDriveLabelsV2betaLockStatus;
|
|
574
|
+
/** Output only. Resource name of the label. Will be in the form of either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See `id` and `revision_id` below. */
|
|
575
|
+
name?: string;
|
|
576
|
+
/** Required. The basic properties of the label. */
|
|
577
|
+
properties?: GoogleAppsDriveLabelsV2betaLabelProperties;
|
|
578
|
+
/** Output only. The user who published this label. This value has no meaning when the label is not published. */
|
|
579
|
+
publisher?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
580
|
+
/** Output only. The time this label was published. This value has no meaning when the label is not published. */
|
|
581
|
+
publishTime?: string;
|
|
582
|
+
/** Output only. The time this label revision was created. */
|
|
583
|
+
revisionCreateTime?: string;
|
|
584
|
+
/** Output only. The user who created this label revision. */
|
|
585
|
+
revisionCreator?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
586
|
+
/**
|
|
587
|
+
* Output only. Revision ID of the label. Revision ID might be part of the label `name` depending on the request issued. A new revision is created whenever revisioned properties of a
|
|
588
|
+
* label are changed. Matches the regex: `([a-zA-Z0-9])+`
|
|
589
|
+
*/
|
|
590
|
+
revisionId?: string;
|
|
591
|
+
/** Output only. The capabilities the user has on this label. */
|
|
592
|
+
schemaCapabilities?: GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities;
|
|
593
|
+
}
|
|
594
|
+
interface GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities {
|
|
595
|
+
/** Whether the user can apply this label to items. */
|
|
596
|
+
canApply?: boolean;
|
|
597
|
+
/** Whether the user can read applied metadata related to this label. */
|
|
598
|
+
canRead?: boolean;
|
|
599
|
+
/** Whether the user can remove this label from items. */
|
|
600
|
+
canRemove?: boolean;
|
|
601
|
+
}
|
|
602
|
+
interface GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy {
|
|
603
|
+
/** Indicates how the applied label and field values should be copied when a Drive item is copied. */
|
|
604
|
+
copyMode?: string;
|
|
605
|
+
}
|
|
606
|
+
interface GoogleAppsDriveLabelsV2betaLabelDisplayHints {
|
|
607
|
+
/** Whether the label should be shown in the UI as disabled. */
|
|
608
|
+
disabled?: boolean;
|
|
609
|
+
/** This label should be hidden in the search menu when searching for Drive items. */
|
|
610
|
+
hiddenInSearch?: boolean;
|
|
611
|
+
/** Order to display label in a list. */
|
|
612
|
+
priority?: string;
|
|
613
|
+
/** This label should be shown in the apply menu when applying values to a Drive item. */
|
|
614
|
+
shownInApply?: boolean;
|
|
615
|
+
}
|
|
616
|
+
interface GoogleAppsDriveLabelsV2betaLabelLimits {
|
|
617
|
+
/** The limits for Fields. */
|
|
618
|
+
fieldLimits?: GoogleAppsDriveLabelsV2betaFieldLimits;
|
|
619
|
+
/** The maximum number of published Fields that can be deleted. */
|
|
620
|
+
maxDeletedFields?: number;
|
|
621
|
+
/** The maximum number of characters allowed for the description. */
|
|
622
|
+
maxDescriptionLength?: number;
|
|
623
|
+
/** The maximum number of draft revisions that will be kept before deleting old drafts. */
|
|
624
|
+
maxDraftRevisions?: number;
|
|
625
|
+
/** The maximum number of Fields allowed within the label. */
|
|
626
|
+
maxFields?: number;
|
|
627
|
+
/** The maximum number of characters allowed for the title. */
|
|
628
|
+
maxTitleLength?: number;
|
|
629
|
+
/** Resource name. */
|
|
630
|
+
name?: string;
|
|
631
|
+
}
|
|
632
|
+
interface GoogleAppsDriveLabelsV2betaLabelLock {
|
|
633
|
+
/** Output only. The user's capabilities on this LabelLock. */
|
|
634
|
+
capabilities?: GoogleAppsDriveLabelsV2betaLabelLockCapabilities;
|
|
635
|
+
/** The ID of the Selection Field Choice that should be locked. If present, `field_id` must also be present. */
|
|
636
|
+
choiceId?: string;
|
|
637
|
+
/** Output only. The time this LabelLock was created. */
|
|
638
|
+
createTime?: string;
|
|
639
|
+
/** Output only. The user whose credentials were used to create the LabelLock. This will not be present if no user was responsible for creating the LabelLock. */
|
|
640
|
+
creator?: GoogleAppsDriveLabelsV2betaUserInfo;
|
|
641
|
+
/** Output only. A timestamp indicating when this LabelLock was scheduled for deletion. This will be present only if this LabelLock is in the DELETING state. */
|
|
642
|
+
deleteTime?: string;
|
|
643
|
+
/** The ID of the Field that should be locked. Empty if the whole Label should be locked. */
|
|
644
|
+
fieldId?: string;
|
|
645
|
+
/** Output only. Resource name of this LabelLock. */
|
|
646
|
+
name?: string;
|
|
647
|
+
/** Output only. A URI referring to the policy that created this Lock. */
|
|
648
|
+
policyUri?: string;
|
|
649
|
+
/** Output only. This LabelLock's state. */
|
|
650
|
+
state?: string;
|
|
651
|
+
}
|
|
652
|
+
interface GoogleAppsDriveLabelsV2betaLabelLockCapabilities {
|
|
653
|
+
/** True if the user is authorized to view the policy. */
|
|
654
|
+
canViewPolicy?: boolean;
|
|
655
|
+
}
|
|
656
|
+
interface GoogleAppsDriveLabelsV2betaLabelPermission {
|
|
657
|
+
/** Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label. */
|
|
658
|
+
audience?: string;
|
|
659
|
+
/**
|
|
660
|
+
* Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update
|
|
661
|
+
* requests, if email address is specified, no principal should be specified.
|
|
662
|
+
*/
|
|
663
|
+
email?: string;
|
|
664
|
+
/** Group resource name. */
|
|
665
|
+
group?: string;
|
|
666
|
+
/** Resource name of this permission. */
|
|
667
|
+
name?: string;
|
|
668
|
+
/** Person resource name. */
|
|
669
|
+
person?: string;
|
|
670
|
+
/** The role the principal should have. */
|
|
671
|
+
role?: string;
|
|
672
|
+
}
|
|
673
|
+
interface GoogleAppsDriveLabelsV2betaLabelProperties {
|
|
674
|
+
/** The description of the label. */
|
|
675
|
+
description?: string;
|
|
676
|
+
/** Required. Title of the label. */
|
|
677
|
+
title?: string;
|
|
678
|
+
}
|
|
679
|
+
interface GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities {
|
|
680
|
+
/** Whether the user can delete this label. The user must have permission and the label must be disabled. */
|
|
681
|
+
canDelete?: boolean;
|
|
682
|
+
/** Whether the user can disable this label. The user must have permission and this label must not already be disabled. */
|
|
683
|
+
canDisable?: boolean;
|
|
684
|
+
/** Whether the user can enable this label. The user must have permission and this label must be disabled. */
|
|
685
|
+
canEnable?: boolean;
|
|
686
|
+
/** Whether the user can change this label. */
|
|
687
|
+
canUpdate?: boolean;
|
|
688
|
+
}
|
|
689
|
+
interface GoogleAppsDriveLabelsV2betaLifecycle {
|
|
690
|
+
/** The policy that governs how to show a disabled label, field, or selection choice. */
|
|
691
|
+
disabledPolicy?: GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy;
|
|
692
|
+
/** Output only. Whether the object associated with this lifecycle has unpublished changes. */
|
|
693
|
+
hasUnpublishedChanges?: boolean;
|
|
694
|
+
/** Output only. The state of the object associated with this lifecycle. */
|
|
695
|
+
state?: string;
|
|
696
|
+
}
|
|
697
|
+
interface GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy {
|
|
698
|
+
/**
|
|
699
|
+
* Whether to hide this disabled object in the search menu for Drive items. * When `false`, the object is generally shown in the UI as disabled but it appears in the search results
|
|
700
|
+
* when searching for Drive items. * When `true`, the object is generally hidden in the UI when searching for Drive items.
|
|
701
|
+
*/
|
|
702
|
+
hideInSearch?: boolean;
|
|
703
|
+
/**
|
|
704
|
+
* Whether to show this disabled object in the apply menu on Drive items. * When `true`, the object is generally shown in the UI as disabled and is unselectable. * When `false`, the
|
|
705
|
+
* object is generally hidden in the UI.
|
|
706
|
+
*/
|
|
707
|
+
showInApply?: boolean;
|
|
708
|
+
}
|
|
709
|
+
interface GoogleAppsDriveLabelsV2betaListLabelLocksResponse {
|
|
710
|
+
/** LabelLocks. */
|
|
711
|
+
labelLocks?: GoogleAppsDriveLabelsV2betaLabelLock[];
|
|
712
|
+
/** The token of the next page in the response. */
|
|
713
|
+
nextPageToken?: string;
|
|
714
|
+
}
|
|
715
|
+
interface GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse {
|
|
716
|
+
/** Label permissions. */
|
|
717
|
+
labelPermissions?: GoogleAppsDriveLabelsV2betaLabelPermission[];
|
|
718
|
+
/** The token of the next page in the response. */
|
|
719
|
+
nextPageToken?: string;
|
|
720
|
+
}
|
|
721
|
+
interface GoogleAppsDriveLabelsV2betaListLabelsResponse {
|
|
722
|
+
/** Labels. */
|
|
723
|
+
labels?: GoogleAppsDriveLabelsV2betaLabel[];
|
|
724
|
+
/** The token of the next page in the response. */
|
|
725
|
+
nextPageToken?: string;
|
|
726
|
+
}
|
|
727
|
+
interface GoogleAppsDriveLabelsV2betaListLimits {
|
|
728
|
+
/** Maximum number of values allowed for the Field type. */
|
|
729
|
+
maxEntries?: number;
|
|
730
|
+
}
|
|
731
|
+
interface GoogleAppsDriveLabelsV2betaLockStatus {
|
|
732
|
+
/**
|
|
733
|
+
* Output only. Indicates whether this label component is the (direct) target of a LabelLock. A label component can be implicitly locked even if it's not the direct target of a
|
|
734
|
+
* LabelLock, in which case this field is set to false.
|
|
735
|
+
*/
|
|
736
|
+
locked?: boolean;
|
|
737
|
+
}
|
|
738
|
+
interface GoogleAppsDriveLabelsV2betaLongTextLimits {
|
|
739
|
+
/** Maximum length allowed for a long text Field type. */
|
|
740
|
+
maxLength?: number;
|
|
741
|
+
/** Minimum length allowed for a long text Field type. */
|
|
742
|
+
minLength?: number;
|
|
743
|
+
}
|
|
744
|
+
interface GoogleAppsDriveLabelsV2betaPublishLabelRequest {
|
|
745
|
+
/** The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. */
|
|
746
|
+
languageCode?: string;
|
|
747
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
748
|
+
useAdminAccess?: boolean;
|
|
749
|
+
/** Provides control over how write requests are executed. Defaults to unset, which means last write wins. */
|
|
750
|
+
writeControl?: GoogleAppsDriveLabelsV2betaWriteControl;
|
|
751
|
+
}
|
|
752
|
+
interface GoogleAppsDriveLabelsV2betaSelectionLimits {
|
|
753
|
+
/** Limits for list-variant of a Field type. */
|
|
754
|
+
listLimits?: GoogleAppsDriveLabelsV2betaListLimits;
|
|
755
|
+
/** The max number of choices. */
|
|
756
|
+
maxChoices?: number;
|
|
757
|
+
/** Maximum number of deleted choices. */
|
|
758
|
+
maxDeletedChoices?: number;
|
|
759
|
+
/** Maximum length for display name. */
|
|
760
|
+
maxDisplayNameLength?: number;
|
|
761
|
+
/** Maximum ID length for a selection options. */
|
|
762
|
+
maxIdLength?: number;
|
|
763
|
+
}
|
|
764
|
+
interface GoogleAppsDriveLabelsV2betaTextLimits {
|
|
765
|
+
/** Maximum length allowed for a text Field type. */
|
|
766
|
+
maxLength?: number;
|
|
767
|
+
/** Minimum length allowed for a text Field type. */
|
|
768
|
+
minLength?: number;
|
|
769
|
+
}
|
|
770
|
+
interface GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest {
|
|
771
|
+
/** Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied. */
|
|
772
|
+
copyMode?: string;
|
|
773
|
+
/** The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. */
|
|
774
|
+
languageCode?: string;
|
|
775
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
776
|
+
useAdminAccess?: boolean;
|
|
777
|
+
/** When specified, only certain fields belonging to the indicated view will be returned. */
|
|
778
|
+
view?: string;
|
|
779
|
+
}
|
|
780
|
+
interface GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest {
|
|
781
|
+
/** Required. The permission to create or update on the Label. */
|
|
782
|
+
labelPermission?: GoogleAppsDriveLabelsV2betaLabelPermission;
|
|
783
|
+
/** Required. The parent Label resource name. */
|
|
784
|
+
parent?: string;
|
|
785
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
786
|
+
useAdminAccess?: boolean;
|
|
787
|
+
}
|
|
788
|
+
interface GoogleAppsDriveLabelsV2betaUserCapabilities {
|
|
789
|
+
/** Output only. Whether the user is allowed access to the label manager. */
|
|
790
|
+
canAccessLabelManager?: boolean;
|
|
791
|
+
/** Output only. Whether the user is an administrator for the shared labels feature. */
|
|
792
|
+
canAdministrateLabels?: boolean;
|
|
793
|
+
/** Output only. Whether the user is allowed to create new admin labels. */
|
|
794
|
+
canCreateAdminLabels?: boolean;
|
|
795
|
+
/** Output only. Whether the user is allowed to create new shared labels. */
|
|
796
|
+
canCreateSharedLabels?: boolean;
|
|
797
|
+
/** Output only. Resource name for the user capabilities. */
|
|
798
|
+
name?: string;
|
|
799
|
+
}
|
|
800
|
+
interface GoogleAppsDriveLabelsV2betaUserInfo {
|
|
801
|
+
/** The identifier for this user that can be used with the People API to get more information. For example, people/12345678. */
|
|
802
|
+
person?: string;
|
|
803
|
+
}
|
|
804
|
+
interface GoogleAppsDriveLabelsV2betaUserLimits {
|
|
805
|
+
/** Limits for list-variant of a Field type. */
|
|
806
|
+
listLimits?: GoogleAppsDriveLabelsV2betaListLimits;
|
|
807
|
+
}
|
|
808
|
+
interface GoogleAppsDriveLabelsV2betaWriteControl {
|
|
809
|
+
/**
|
|
810
|
+
* The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad
|
|
811
|
+
* Request error.
|
|
812
|
+
*/
|
|
813
|
+
requiredRevisionId?: string;
|
|
814
|
+
}
|
|
815
|
+
// tslint:disable-next-line:no-empty-interface
|
|
816
|
+
interface GoogleProtobufEmpty {
|
|
817
|
+
}
|
|
818
|
+
interface GoogleTypeColor {
|
|
819
|
+
/**
|
|
820
|
+
* The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) *
|
|
821
|
+
* (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message
|
|
822
|
+
* rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color
|
|
823
|
+
* (as if the alpha value had been explicitly given a value of 1.0).
|
|
824
|
+
*/
|
|
825
|
+
alpha?: number;
|
|
826
|
+
/** The amount of blue in the color as a value in the interval [0, 1]. */
|
|
827
|
+
blue?: number;
|
|
828
|
+
/** The amount of green in the color as a value in the interval [0, 1]. */
|
|
829
|
+
green?: number;
|
|
830
|
+
/** The amount of red in the color as a value in the interval [0, 1]. */
|
|
831
|
+
red?: number;
|
|
832
|
+
}
|
|
833
|
+
interface GoogleTypeDate {
|
|
834
|
+
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
835
|
+
day?: number;
|
|
836
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
837
|
+
month?: number;
|
|
838
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
839
|
+
year?: number;
|
|
840
|
+
}
|
|
841
|
+
interface LocksResource {
|
|
842
|
+
/** Lists the Locks on a Label. */
|
|
843
|
+
list(request?: {
|
|
844
|
+
/** V1 error format. */
|
|
845
|
+
"$.xgafv"?: string;
|
|
846
|
+
/** OAuth access token. */
|
|
847
|
+
access_token?: string;
|
|
848
|
+
/** Data format for response. */
|
|
849
|
+
alt?: string;
|
|
850
|
+
/** JSONP */
|
|
851
|
+
callback?: string;
|
|
852
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
853
|
+
fields?: string;
|
|
854
|
+
/** 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. */
|
|
855
|
+
key?: string;
|
|
856
|
+
/** OAuth 2.0 token for the current user. */
|
|
857
|
+
oauth_token?: string;
|
|
858
|
+
/** Maximum number of Locks to return per page. Default: 100. Max: 200. */
|
|
859
|
+
pageSize?: number;
|
|
860
|
+
/** The token of the page to return. */
|
|
861
|
+
pageToken?: string;
|
|
862
|
+
/** Required. Label on which Locks are applied. Format: labels/{label} */
|
|
863
|
+
parent: string;
|
|
864
|
+
/** Returns response with indentations and line breaks. */
|
|
865
|
+
prettyPrint?: boolean;
|
|
866
|
+
/** 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. */
|
|
867
|
+
quotaUser?: string;
|
|
868
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
869
|
+
upload_protocol?: string;
|
|
870
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
871
|
+
uploadType?: string;
|
|
872
|
+
}): Request<GoogleAppsDriveLabelsV2betaListLabelLocksResponse>;
|
|
873
|
+
}
|
|
874
|
+
interface PermissionsResource {
|
|
875
|
+
/** Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. */
|
|
876
|
+
batchDelete(request: {
|
|
877
|
+
/** V1 error format. */
|
|
878
|
+
"$.xgafv"?: string;
|
|
879
|
+
/** OAuth access token. */
|
|
880
|
+
access_token?: string;
|
|
881
|
+
/** Data format for response. */
|
|
882
|
+
alt?: string;
|
|
883
|
+
/** JSONP */
|
|
884
|
+
callback?: string;
|
|
885
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
886
|
+
fields?: string;
|
|
887
|
+
/** 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. */
|
|
888
|
+
key?: string;
|
|
889
|
+
labelsId: string;
|
|
890
|
+
/** OAuth 2.0 token for the current user. */
|
|
891
|
+
oauth_token?: string;
|
|
892
|
+
/** Returns response with indentations and line breaks. */
|
|
893
|
+
prettyPrint?: boolean;
|
|
894
|
+
/** 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. */
|
|
895
|
+
quotaUser?: string;
|
|
896
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
897
|
+
upload_protocol?: string;
|
|
898
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
899
|
+
uploadType?: string;
|
|
900
|
+
/** Request body */
|
|
901
|
+
resource: GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest;
|
|
902
|
+
}): Request<{}>;
|
|
903
|
+
batchDelete(request: {
|
|
904
|
+
/** V1 error format. */
|
|
905
|
+
"$.xgafv"?: string;
|
|
906
|
+
/** OAuth access token. */
|
|
907
|
+
access_token?: string;
|
|
908
|
+
/** Data format for response. */
|
|
909
|
+
alt?: string;
|
|
910
|
+
/** JSONP */
|
|
911
|
+
callback?: string;
|
|
912
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
913
|
+
fields?: string;
|
|
914
|
+
/** 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. */
|
|
915
|
+
key?: string;
|
|
916
|
+
labelsId: string;
|
|
917
|
+
/** OAuth 2.0 token for the current user. */
|
|
918
|
+
oauth_token?: string;
|
|
919
|
+
/** Returns response with indentations and line breaks. */
|
|
920
|
+
prettyPrint?: boolean;
|
|
921
|
+
/** 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. */
|
|
922
|
+
quotaUser?: string;
|
|
923
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
924
|
+
upload_protocol?: string;
|
|
925
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
926
|
+
uploadType?: string;
|
|
927
|
+
},
|
|
928
|
+
body: GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest): Request<{}>;
|
|
929
|
+
/**
|
|
930
|
+
* Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions
|
|
931
|
+
* affect the Label resource as a whole, are not revisioned, and do not require publishing.
|
|
932
|
+
*/
|
|
933
|
+
batchUpdate(request: {
|
|
934
|
+
/** V1 error format. */
|
|
935
|
+
"$.xgafv"?: string;
|
|
936
|
+
/** OAuth access token. */
|
|
937
|
+
access_token?: string;
|
|
938
|
+
/** Data format for response. */
|
|
939
|
+
alt?: string;
|
|
940
|
+
/** JSONP */
|
|
941
|
+
callback?: string;
|
|
942
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
943
|
+
fields?: string;
|
|
944
|
+
/** 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. */
|
|
945
|
+
key?: string;
|
|
946
|
+
/** OAuth 2.0 token for the current user. */
|
|
947
|
+
oauth_token?: string;
|
|
948
|
+
/**
|
|
949
|
+
* Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest
|
|
950
|
+
* messages must either be empty or match this field.
|
|
951
|
+
*/
|
|
952
|
+
parent: string;
|
|
953
|
+
/** Returns response with indentations and line breaks. */
|
|
954
|
+
prettyPrint?: boolean;
|
|
955
|
+
/** 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. */
|
|
956
|
+
quotaUser?: string;
|
|
957
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
958
|
+
upload_protocol?: string;
|
|
959
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
960
|
+
uploadType?: string;
|
|
961
|
+
/** Request body */
|
|
962
|
+
resource: GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest;
|
|
963
|
+
}): Request<GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse>;
|
|
964
|
+
batchUpdate(request: {
|
|
965
|
+
/** V1 error format. */
|
|
966
|
+
"$.xgafv"?: string;
|
|
967
|
+
/** OAuth access token. */
|
|
968
|
+
access_token?: string;
|
|
969
|
+
/** Data format for response. */
|
|
970
|
+
alt?: string;
|
|
971
|
+
/** JSONP */
|
|
972
|
+
callback?: string;
|
|
973
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
974
|
+
fields?: string;
|
|
975
|
+
/** 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. */
|
|
976
|
+
key?: string;
|
|
977
|
+
/** OAuth 2.0 token for the current user. */
|
|
978
|
+
oauth_token?: string;
|
|
979
|
+
/**
|
|
980
|
+
* Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest
|
|
981
|
+
* messages must either be empty or match this field.
|
|
982
|
+
*/
|
|
983
|
+
parent: string;
|
|
984
|
+
/** Returns response with indentations and line breaks. */
|
|
985
|
+
prettyPrint?: boolean;
|
|
986
|
+
/** 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. */
|
|
987
|
+
quotaUser?: string;
|
|
988
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
989
|
+
upload_protocol?: string;
|
|
990
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
991
|
+
uploadType?: string;
|
|
992
|
+
},
|
|
993
|
+
body: GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest): Request<GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse>;
|
|
994
|
+
/**
|
|
995
|
+
* Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated.
|
|
996
|
+
* Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
|
|
997
|
+
*/
|
|
998
|
+
create(request: {
|
|
999
|
+
/** V1 error format. */
|
|
1000
|
+
"$.xgafv"?: string;
|
|
1001
|
+
/** OAuth access token. */
|
|
1002
|
+
access_token?: string;
|
|
1003
|
+
/** Data format for response. */
|
|
1004
|
+
alt?: string;
|
|
1005
|
+
/** JSONP */
|
|
1006
|
+
callback?: string;
|
|
1007
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1008
|
+
fields?: string;
|
|
1009
|
+
/** 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. */
|
|
1010
|
+
key?: string;
|
|
1011
|
+
/** OAuth 2.0 token for the current user. */
|
|
1012
|
+
oauth_token?: string;
|
|
1013
|
+
/** Required. The parent Label resource name on the Label Permission is created. Format: labels/{label} */
|
|
1014
|
+
parent: string;
|
|
1015
|
+
/** Returns response with indentations and line breaks. */
|
|
1016
|
+
prettyPrint?: boolean;
|
|
1017
|
+
/** 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. */
|
|
1018
|
+
quotaUser?: string;
|
|
1019
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1020
|
+
upload_protocol?: string;
|
|
1021
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1022
|
+
uploadType?: string;
|
|
1023
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1024
|
+
useAdminAccess?: boolean;
|
|
1025
|
+
/** Request body */
|
|
1026
|
+
resource: GoogleAppsDriveLabelsV2betaLabelPermission;
|
|
1027
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1028
|
+
create(request: {
|
|
1029
|
+
/** V1 error format. */
|
|
1030
|
+
"$.xgafv"?: string;
|
|
1031
|
+
/** OAuth access token. */
|
|
1032
|
+
access_token?: string;
|
|
1033
|
+
/** Data format for response. */
|
|
1034
|
+
alt?: string;
|
|
1035
|
+
/** JSONP */
|
|
1036
|
+
callback?: string;
|
|
1037
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1038
|
+
fields?: string;
|
|
1039
|
+
/** 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. */
|
|
1040
|
+
key?: string;
|
|
1041
|
+
/** OAuth 2.0 token for the current user. */
|
|
1042
|
+
oauth_token?: string;
|
|
1043
|
+
/** Required. The parent Label resource name on the Label Permission is created. Format: labels/{label} */
|
|
1044
|
+
parent: string;
|
|
1045
|
+
/** Returns response with indentations and line breaks. */
|
|
1046
|
+
prettyPrint?: boolean;
|
|
1047
|
+
/** 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. */
|
|
1048
|
+
quotaUser?: string;
|
|
1049
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1050
|
+
upload_protocol?: string;
|
|
1051
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1052
|
+
uploadType?: string;
|
|
1053
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1054
|
+
useAdminAccess?: boolean;
|
|
1055
|
+
},
|
|
1056
|
+
body: GoogleAppsDriveLabelsV2betaLabelPermission): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1057
|
+
/** Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. */
|
|
1058
|
+
delete(request?: {
|
|
1059
|
+
/** V1 error format. */
|
|
1060
|
+
"$.xgafv"?: string;
|
|
1061
|
+
/** OAuth access token. */
|
|
1062
|
+
access_token?: string;
|
|
1063
|
+
/** Data format for response. */
|
|
1064
|
+
alt?: string;
|
|
1065
|
+
/** JSONP */
|
|
1066
|
+
callback?: string;
|
|
1067
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1068
|
+
fields?: string;
|
|
1069
|
+
/** 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. */
|
|
1070
|
+
key?: string;
|
|
1071
|
+
/** Required. Label Permission resource name. */
|
|
1072
|
+
name: string;
|
|
1073
|
+
/** OAuth 2.0 token for the current user. */
|
|
1074
|
+
oauth_token?: string;
|
|
1075
|
+
/** Returns response with indentations and line breaks. */
|
|
1076
|
+
prettyPrint?: boolean;
|
|
1077
|
+
/** 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. */
|
|
1078
|
+
quotaUser?: string;
|
|
1079
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1080
|
+
upload_protocol?: string;
|
|
1081
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1082
|
+
uploadType?: string;
|
|
1083
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1084
|
+
useAdminAccess?: boolean;
|
|
1085
|
+
}): Request<{}>;
|
|
1086
|
+
/** Lists a Label's permissions. */
|
|
1087
|
+
list(request?: {
|
|
1088
|
+
/** V1 error format. */
|
|
1089
|
+
"$.xgafv"?: string;
|
|
1090
|
+
/** OAuth access token. */
|
|
1091
|
+
access_token?: string;
|
|
1092
|
+
/** Data format for response. */
|
|
1093
|
+
alt?: string;
|
|
1094
|
+
/** JSONP */
|
|
1095
|
+
callback?: string;
|
|
1096
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1097
|
+
fields?: string;
|
|
1098
|
+
/** 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. */
|
|
1099
|
+
key?: string;
|
|
1100
|
+
/** OAuth 2.0 token for the current user. */
|
|
1101
|
+
oauth_token?: string;
|
|
1102
|
+
/** Maximum number of permissions to return per page. Default: 50. Max: 200. */
|
|
1103
|
+
pageSize?: number;
|
|
1104
|
+
/** The token of the page to return. */
|
|
1105
|
+
pageToken?: string;
|
|
1106
|
+
/** Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label} */
|
|
1107
|
+
parent: string;
|
|
1108
|
+
/** Returns response with indentations and line breaks. */
|
|
1109
|
+
prettyPrint?: boolean;
|
|
1110
|
+
/** 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. */
|
|
1111
|
+
quotaUser?: string;
|
|
1112
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1113
|
+
upload_protocol?: string;
|
|
1114
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1115
|
+
uploadType?: string;
|
|
1116
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1117
|
+
useAdminAccess?: boolean;
|
|
1118
|
+
}): Request<GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated.
|
|
1121
|
+
* Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
|
|
1122
|
+
*/
|
|
1123
|
+
patch(request: {
|
|
1124
|
+
/** V1 error format. */
|
|
1125
|
+
"$.xgafv"?: string;
|
|
1126
|
+
/** OAuth access token. */
|
|
1127
|
+
access_token?: string;
|
|
1128
|
+
/** Data format for response. */
|
|
1129
|
+
alt?: string;
|
|
1130
|
+
/** JSONP */
|
|
1131
|
+
callback?: string;
|
|
1132
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1133
|
+
fields?: string;
|
|
1134
|
+
/** 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. */
|
|
1135
|
+
key?: string;
|
|
1136
|
+
/** OAuth 2.0 token for the current user. */
|
|
1137
|
+
oauth_token?: string;
|
|
1138
|
+
/** Required. The parent Label resource name. */
|
|
1139
|
+
parent: string;
|
|
1140
|
+
/** Returns response with indentations and line breaks. */
|
|
1141
|
+
prettyPrint?: boolean;
|
|
1142
|
+
/** 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. */
|
|
1143
|
+
quotaUser?: string;
|
|
1144
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1145
|
+
upload_protocol?: string;
|
|
1146
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1147
|
+
uploadType?: string;
|
|
1148
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1149
|
+
useAdminAccess?: boolean;
|
|
1150
|
+
/** Request body */
|
|
1151
|
+
resource: GoogleAppsDriveLabelsV2betaLabelPermission;
|
|
1152
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1153
|
+
patch(request: {
|
|
1154
|
+
/** V1 error format. */
|
|
1155
|
+
"$.xgafv"?: string;
|
|
1156
|
+
/** OAuth access token. */
|
|
1157
|
+
access_token?: string;
|
|
1158
|
+
/** Data format for response. */
|
|
1159
|
+
alt?: string;
|
|
1160
|
+
/** JSONP */
|
|
1161
|
+
callback?: string;
|
|
1162
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1163
|
+
fields?: string;
|
|
1164
|
+
/** 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. */
|
|
1165
|
+
key?: string;
|
|
1166
|
+
/** OAuth 2.0 token for the current user. */
|
|
1167
|
+
oauth_token?: string;
|
|
1168
|
+
/** Required. The parent Label resource name. */
|
|
1169
|
+
parent: string;
|
|
1170
|
+
/** Returns response with indentations and line breaks. */
|
|
1171
|
+
prettyPrint?: boolean;
|
|
1172
|
+
/** 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. */
|
|
1173
|
+
quotaUser?: string;
|
|
1174
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1175
|
+
upload_protocol?: string;
|
|
1176
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1177
|
+
uploadType?: string;
|
|
1178
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1179
|
+
useAdminAccess?: boolean;
|
|
1180
|
+
},
|
|
1181
|
+
body: GoogleAppsDriveLabelsV2betaLabelPermission): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1182
|
+
}
|
|
1183
|
+
interface LocksResource {
|
|
1184
|
+
/** Lists the Locks on a Label. */
|
|
1185
|
+
list(request?: {
|
|
1186
|
+
/** V1 error format. */
|
|
1187
|
+
"$.xgafv"?: string;
|
|
1188
|
+
/** OAuth access token. */
|
|
1189
|
+
access_token?: string;
|
|
1190
|
+
/** Data format for response. */
|
|
1191
|
+
alt?: string;
|
|
1192
|
+
/** JSONP */
|
|
1193
|
+
callback?: string;
|
|
1194
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1195
|
+
fields?: string;
|
|
1196
|
+
/** 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. */
|
|
1197
|
+
key?: string;
|
|
1198
|
+
/** OAuth 2.0 token for the current user. */
|
|
1199
|
+
oauth_token?: string;
|
|
1200
|
+
/** Maximum number of Locks to return per page. Default: 100. Max: 200. */
|
|
1201
|
+
pageSize?: number;
|
|
1202
|
+
/** The token of the page to return. */
|
|
1203
|
+
pageToken?: string;
|
|
1204
|
+
/** Required. Label on which Locks are applied. Format: labels/{label} */
|
|
1205
|
+
parent: string;
|
|
1206
|
+
/** Returns response with indentations and line breaks. */
|
|
1207
|
+
prettyPrint?: boolean;
|
|
1208
|
+
/** 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. */
|
|
1209
|
+
quotaUser?: string;
|
|
1210
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1211
|
+
upload_protocol?: string;
|
|
1212
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1213
|
+
uploadType?: string;
|
|
1214
|
+
}): Request<GoogleAppsDriveLabelsV2betaListLabelLocksResponse>;
|
|
1215
|
+
}
|
|
1216
|
+
interface PermissionsResource {
|
|
1217
|
+
/** Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. */
|
|
1218
|
+
batchDelete(request: {
|
|
1219
|
+
/** V1 error format. */
|
|
1220
|
+
"$.xgafv"?: string;
|
|
1221
|
+
/** OAuth access token. */
|
|
1222
|
+
access_token?: string;
|
|
1223
|
+
/** Data format for response. */
|
|
1224
|
+
alt?: string;
|
|
1225
|
+
/** JSONP */
|
|
1226
|
+
callback?: string;
|
|
1227
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1228
|
+
fields?: string;
|
|
1229
|
+
/** 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. */
|
|
1230
|
+
key?: string;
|
|
1231
|
+
labelsId: string;
|
|
1232
|
+
/** OAuth 2.0 token for the current user. */
|
|
1233
|
+
oauth_token?: string;
|
|
1234
|
+
/** Returns response with indentations and line breaks. */
|
|
1235
|
+
prettyPrint?: boolean;
|
|
1236
|
+
/** 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. */
|
|
1237
|
+
quotaUser?: string;
|
|
1238
|
+
revisionsId: string;
|
|
1239
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1240
|
+
upload_protocol?: string;
|
|
1241
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1242
|
+
uploadType?: string;
|
|
1243
|
+
/** Request body */
|
|
1244
|
+
resource: GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest;
|
|
1245
|
+
}): Request<{}>;
|
|
1246
|
+
batchDelete(request: {
|
|
1247
|
+
/** V1 error format. */
|
|
1248
|
+
"$.xgafv"?: string;
|
|
1249
|
+
/** OAuth access token. */
|
|
1250
|
+
access_token?: string;
|
|
1251
|
+
/** Data format for response. */
|
|
1252
|
+
alt?: string;
|
|
1253
|
+
/** JSONP */
|
|
1254
|
+
callback?: string;
|
|
1255
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1256
|
+
fields?: string;
|
|
1257
|
+
/** 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. */
|
|
1258
|
+
key?: string;
|
|
1259
|
+
labelsId: string;
|
|
1260
|
+
/** OAuth 2.0 token for the current user. */
|
|
1261
|
+
oauth_token?: string;
|
|
1262
|
+
/** Returns response with indentations and line breaks. */
|
|
1263
|
+
prettyPrint?: boolean;
|
|
1264
|
+
/** 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. */
|
|
1265
|
+
quotaUser?: string;
|
|
1266
|
+
revisionsId: string;
|
|
1267
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1268
|
+
upload_protocol?: string;
|
|
1269
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1270
|
+
uploadType?: string;
|
|
1271
|
+
},
|
|
1272
|
+
body: GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest): Request<{}>;
|
|
1273
|
+
/**
|
|
1274
|
+
* Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions
|
|
1275
|
+
* affect the Label resource as a whole, are not revisioned, and do not require publishing.
|
|
1276
|
+
*/
|
|
1277
|
+
batchUpdate(request: {
|
|
1278
|
+
/** V1 error format. */
|
|
1279
|
+
"$.xgafv"?: string;
|
|
1280
|
+
/** OAuth access token. */
|
|
1281
|
+
access_token?: string;
|
|
1282
|
+
/** Data format for response. */
|
|
1283
|
+
alt?: string;
|
|
1284
|
+
/** JSONP */
|
|
1285
|
+
callback?: string;
|
|
1286
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1287
|
+
fields?: string;
|
|
1288
|
+
/** 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. */
|
|
1289
|
+
key?: string;
|
|
1290
|
+
/** OAuth 2.0 token for the current user. */
|
|
1291
|
+
oauth_token?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest
|
|
1294
|
+
* messages must either be empty or match this field.
|
|
1295
|
+
*/
|
|
1296
|
+
parent: string;
|
|
1297
|
+
/** Returns response with indentations and line breaks. */
|
|
1298
|
+
prettyPrint?: boolean;
|
|
1299
|
+
/** 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. */
|
|
1300
|
+
quotaUser?: string;
|
|
1301
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1302
|
+
upload_protocol?: string;
|
|
1303
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1304
|
+
uploadType?: string;
|
|
1305
|
+
/** Request body */
|
|
1306
|
+
resource: GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest;
|
|
1307
|
+
}): Request<GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse>;
|
|
1308
|
+
batchUpdate(request: {
|
|
1309
|
+
/** V1 error format. */
|
|
1310
|
+
"$.xgafv"?: string;
|
|
1311
|
+
/** OAuth access token. */
|
|
1312
|
+
access_token?: string;
|
|
1313
|
+
/** Data format for response. */
|
|
1314
|
+
alt?: string;
|
|
1315
|
+
/** JSONP */
|
|
1316
|
+
callback?: string;
|
|
1317
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1318
|
+
fields?: string;
|
|
1319
|
+
/** 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. */
|
|
1320
|
+
key?: string;
|
|
1321
|
+
/** OAuth 2.0 token for the current user. */
|
|
1322
|
+
oauth_token?: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest
|
|
1325
|
+
* messages must either be empty or match this field.
|
|
1326
|
+
*/
|
|
1327
|
+
parent: string;
|
|
1328
|
+
/** Returns response with indentations and line breaks. */
|
|
1329
|
+
prettyPrint?: boolean;
|
|
1330
|
+
/** 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. */
|
|
1331
|
+
quotaUser?: string;
|
|
1332
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1333
|
+
upload_protocol?: string;
|
|
1334
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1335
|
+
uploadType?: string;
|
|
1336
|
+
},
|
|
1337
|
+
body: GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest): Request<GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated.
|
|
1340
|
+
* Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
|
|
1341
|
+
*/
|
|
1342
|
+
create(request: {
|
|
1343
|
+
/** V1 error format. */
|
|
1344
|
+
"$.xgafv"?: string;
|
|
1345
|
+
/** OAuth access token. */
|
|
1346
|
+
access_token?: string;
|
|
1347
|
+
/** Data format for response. */
|
|
1348
|
+
alt?: string;
|
|
1349
|
+
/** JSONP */
|
|
1350
|
+
callback?: string;
|
|
1351
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1352
|
+
fields?: string;
|
|
1353
|
+
/** 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. */
|
|
1354
|
+
key?: string;
|
|
1355
|
+
/** OAuth 2.0 token for the current user. */
|
|
1356
|
+
oauth_token?: string;
|
|
1357
|
+
/** Required. The parent Label resource name on the Label Permission is created. Format: labels/{label} */
|
|
1358
|
+
parent: string;
|
|
1359
|
+
/** Returns response with indentations and line breaks. */
|
|
1360
|
+
prettyPrint?: boolean;
|
|
1361
|
+
/** 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. */
|
|
1362
|
+
quotaUser?: string;
|
|
1363
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1364
|
+
upload_protocol?: string;
|
|
1365
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1366
|
+
uploadType?: string;
|
|
1367
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1368
|
+
useAdminAccess?: boolean;
|
|
1369
|
+
/** Request body */
|
|
1370
|
+
resource: GoogleAppsDriveLabelsV2betaLabelPermission;
|
|
1371
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1372
|
+
create(request: {
|
|
1373
|
+
/** V1 error format. */
|
|
1374
|
+
"$.xgafv"?: string;
|
|
1375
|
+
/** OAuth access token. */
|
|
1376
|
+
access_token?: string;
|
|
1377
|
+
/** Data format for response. */
|
|
1378
|
+
alt?: string;
|
|
1379
|
+
/** JSONP */
|
|
1380
|
+
callback?: string;
|
|
1381
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1382
|
+
fields?: string;
|
|
1383
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1384
|
+
key?: string;
|
|
1385
|
+
/** OAuth 2.0 token for the current user. */
|
|
1386
|
+
oauth_token?: string;
|
|
1387
|
+
/** Required. The parent Label resource name on the Label Permission is created. Format: labels/{label} */
|
|
1388
|
+
parent: string;
|
|
1389
|
+
/** Returns response with indentations and line breaks. */
|
|
1390
|
+
prettyPrint?: boolean;
|
|
1391
|
+
/** 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. */
|
|
1392
|
+
quotaUser?: string;
|
|
1393
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1394
|
+
upload_protocol?: string;
|
|
1395
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1396
|
+
uploadType?: string;
|
|
1397
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1398
|
+
useAdminAccess?: boolean;
|
|
1399
|
+
},
|
|
1400
|
+
body: GoogleAppsDriveLabelsV2betaLabelPermission): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1401
|
+
/** Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing. */
|
|
1402
|
+
delete(request?: {
|
|
1403
|
+
/** V1 error format. */
|
|
1404
|
+
"$.xgafv"?: string;
|
|
1405
|
+
/** OAuth access token. */
|
|
1406
|
+
access_token?: string;
|
|
1407
|
+
/** Data format for response. */
|
|
1408
|
+
alt?: string;
|
|
1409
|
+
/** JSONP */
|
|
1410
|
+
callback?: string;
|
|
1411
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1412
|
+
fields?: string;
|
|
1413
|
+
/** 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. */
|
|
1414
|
+
key?: string;
|
|
1415
|
+
/** Required. Label Permission resource name. */
|
|
1416
|
+
name: string;
|
|
1417
|
+
/** OAuth 2.0 token for the current user. */
|
|
1418
|
+
oauth_token?: string;
|
|
1419
|
+
/** Returns response with indentations and line breaks. */
|
|
1420
|
+
prettyPrint?: boolean;
|
|
1421
|
+
/** 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. */
|
|
1422
|
+
quotaUser?: string;
|
|
1423
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1424
|
+
upload_protocol?: string;
|
|
1425
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1426
|
+
uploadType?: string;
|
|
1427
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1428
|
+
useAdminAccess?: boolean;
|
|
1429
|
+
}): Request<{}>;
|
|
1430
|
+
/** Lists a Label's permissions. */
|
|
1431
|
+
list(request?: {
|
|
1432
|
+
/** V1 error format. */
|
|
1433
|
+
"$.xgafv"?: string;
|
|
1434
|
+
/** OAuth access token. */
|
|
1435
|
+
access_token?: string;
|
|
1436
|
+
/** Data format for response. */
|
|
1437
|
+
alt?: string;
|
|
1438
|
+
/** JSONP */
|
|
1439
|
+
callback?: string;
|
|
1440
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1441
|
+
fields?: string;
|
|
1442
|
+
/** 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. */
|
|
1443
|
+
key?: string;
|
|
1444
|
+
/** OAuth 2.0 token for the current user. */
|
|
1445
|
+
oauth_token?: string;
|
|
1446
|
+
/** Maximum number of permissions to return per page. Default: 50. Max: 200. */
|
|
1447
|
+
pageSize?: number;
|
|
1448
|
+
/** The token of the page to return. */
|
|
1449
|
+
pageToken?: string;
|
|
1450
|
+
/** Required. The parent Label resource name on which Label Permission are listed. Format: labels/{label} */
|
|
1451
|
+
parent: string;
|
|
1452
|
+
/** Returns response with indentations and line breaks. */
|
|
1453
|
+
prettyPrint?: boolean;
|
|
1454
|
+
/** 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. */
|
|
1455
|
+
quotaUser?: string;
|
|
1456
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1457
|
+
upload_protocol?: string;
|
|
1458
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1459
|
+
uploadType?: string;
|
|
1460
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1461
|
+
useAdminAccess?: boolean;
|
|
1462
|
+
}): Request<GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse>;
|
|
1463
|
+
/**
|
|
1464
|
+
* Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated.
|
|
1465
|
+
* Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
|
|
1466
|
+
*/
|
|
1467
|
+
patch(request: {
|
|
1468
|
+
/** V1 error format. */
|
|
1469
|
+
"$.xgafv"?: string;
|
|
1470
|
+
/** OAuth access token. */
|
|
1471
|
+
access_token?: string;
|
|
1472
|
+
/** Data format for response. */
|
|
1473
|
+
alt?: string;
|
|
1474
|
+
/** JSONP */
|
|
1475
|
+
callback?: string;
|
|
1476
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1477
|
+
fields?: string;
|
|
1478
|
+
/** 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. */
|
|
1479
|
+
key?: string;
|
|
1480
|
+
/** OAuth 2.0 token for the current user. */
|
|
1481
|
+
oauth_token?: string;
|
|
1482
|
+
/** Required. The parent Label resource name. */
|
|
1483
|
+
parent: string;
|
|
1484
|
+
/** Returns response with indentations and line breaks. */
|
|
1485
|
+
prettyPrint?: boolean;
|
|
1486
|
+
/** 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. */
|
|
1487
|
+
quotaUser?: string;
|
|
1488
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1489
|
+
upload_protocol?: string;
|
|
1490
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1491
|
+
uploadType?: string;
|
|
1492
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1493
|
+
useAdminAccess?: boolean;
|
|
1494
|
+
/** Request body */
|
|
1495
|
+
resource: GoogleAppsDriveLabelsV2betaLabelPermission;
|
|
1496
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1497
|
+
patch(request: {
|
|
1498
|
+
/** V1 error format. */
|
|
1499
|
+
"$.xgafv"?: string;
|
|
1500
|
+
/** OAuth access token. */
|
|
1501
|
+
access_token?: string;
|
|
1502
|
+
/** Data format for response. */
|
|
1503
|
+
alt?: string;
|
|
1504
|
+
/** JSONP */
|
|
1505
|
+
callback?: string;
|
|
1506
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1507
|
+
fields?: string;
|
|
1508
|
+
/** 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. */
|
|
1509
|
+
key?: string;
|
|
1510
|
+
/** OAuth 2.0 token for the current user. */
|
|
1511
|
+
oauth_token?: string;
|
|
1512
|
+
/** Required. The parent Label resource name. */
|
|
1513
|
+
parent: string;
|
|
1514
|
+
/** Returns response with indentations and line breaks. */
|
|
1515
|
+
prettyPrint?: boolean;
|
|
1516
|
+
/** 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. */
|
|
1517
|
+
quotaUser?: string;
|
|
1518
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1519
|
+
upload_protocol?: string;
|
|
1520
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1521
|
+
uploadType?: string;
|
|
1522
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1523
|
+
useAdminAccess?: boolean;
|
|
1524
|
+
},
|
|
1525
|
+
body: GoogleAppsDriveLabelsV2betaLabelPermission): Request<GoogleAppsDriveLabelsV2betaLabelPermission>;
|
|
1526
|
+
}
|
|
1527
|
+
interface RevisionsResource {
|
|
1528
|
+
locks: LocksResource;
|
|
1529
|
+
permissions: PermissionsResource;
|
|
1530
|
+
}
|
|
1531
|
+
interface LabelsResource {
|
|
1532
|
+
/** Creates a new Label. */
|
|
1533
|
+
create(request: {
|
|
1534
|
+
/** V1 error format. */
|
|
1535
|
+
"$.xgafv"?: string;
|
|
1536
|
+
/** OAuth access token. */
|
|
1537
|
+
access_token?: string;
|
|
1538
|
+
/** Data format for response. */
|
|
1539
|
+
alt?: string;
|
|
1540
|
+
/** JSONP */
|
|
1541
|
+
callback?: string;
|
|
1542
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1543
|
+
fields?: string;
|
|
1544
|
+
/** 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. */
|
|
1545
|
+
key?: string;
|
|
1546
|
+
/** The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used. */
|
|
1547
|
+
languageCode?: string;
|
|
1548
|
+
/** OAuth 2.0 token for the current user. */
|
|
1549
|
+
oauth_token?: string;
|
|
1550
|
+
/** Returns response with indentations and line breaks. */
|
|
1551
|
+
prettyPrint?: boolean;
|
|
1552
|
+
/** 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. */
|
|
1553
|
+
quotaUser?: string;
|
|
1554
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1555
|
+
upload_protocol?: string;
|
|
1556
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1557
|
+
uploadType?: string;
|
|
1558
|
+
/** Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access. */
|
|
1559
|
+
useAdminAccess?: boolean;
|
|
1560
|
+
/** Request body */
|
|
1561
|
+
resource: GoogleAppsDriveLabelsV2betaLabel;
|
|
1562
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1563
|
+
create(request: {
|
|
1564
|
+
/** V1 error format. */
|
|
1565
|
+
"$.xgafv"?: string;
|
|
1566
|
+
/** OAuth access token. */
|
|
1567
|
+
access_token?: string;
|
|
1568
|
+
/** Data format for response. */
|
|
1569
|
+
alt?: string;
|
|
1570
|
+
/** JSONP */
|
|
1571
|
+
callback?: string;
|
|
1572
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1573
|
+
fields?: string;
|
|
1574
|
+
/** 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. */
|
|
1575
|
+
key?: string;
|
|
1576
|
+
/** The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used. */
|
|
1577
|
+
languageCode?: string;
|
|
1578
|
+
/** OAuth 2.0 token for the current user. */
|
|
1579
|
+
oauth_token?: string;
|
|
1580
|
+
/** Returns response with indentations and line breaks. */
|
|
1581
|
+
prettyPrint?: boolean;
|
|
1582
|
+
/** 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. */
|
|
1583
|
+
quotaUser?: string;
|
|
1584
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1585
|
+
upload_protocol?: string;
|
|
1586
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1587
|
+
uploadType?: string;
|
|
1588
|
+
/** Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access. */
|
|
1589
|
+
useAdminAccess?: boolean;
|
|
1590
|
+
},
|
|
1591
|
+
body: GoogleAppsDriveLabelsV2betaLabel): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1592
|
+
/**
|
|
1593
|
+
* Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may
|
|
1594
|
+
* be deleted.
|
|
1595
|
+
*/
|
|
1596
|
+
delete(request?: {
|
|
1597
|
+
/** V1 error format. */
|
|
1598
|
+
"$.xgafv"?: string;
|
|
1599
|
+
/** OAuth access token. */
|
|
1600
|
+
access_token?: string;
|
|
1601
|
+
/** Data format for response. */
|
|
1602
|
+
alt?: string;
|
|
1603
|
+
/** JSONP */
|
|
1604
|
+
callback?: string;
|
|
1605
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1606
|
+
fields?: string;
|
|
1607
|
+
/** 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. */
|
|
1608
|
+
key?: string;
|
|
1609
|
+
/** Required. Label resource name. */
|
|
1610
|
+
name: string;
|
|
1611
|
+
/** OAuth 2.0 token for the current user. */
|
|
1612
|
+
oauth_token?: string;
|
|
1613
|
+
/** Returns response with indentations and line breaks. */
|
|
1614
|
+
prettyPrint?: boolean;
|
|
1615
|
+
/** 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. */
|
|
1616
|
+
quotaUser?: string;
|
|
1617
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1618
|
+
upload_protocol?: string;
|
|
1619
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1620
|
+
uploadType?: string;
|
|
1621
|
+
/** Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access. */
|
|
1622
|
+
useAdminAccess?: boolean;
|
|
1623
|
+
/**
|
|
1624
|
+
* The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400
|
|
1625
|
+
* Bad Request error.
|
|
1626
|
+
*/
|
|
1627
|
+
"writeControl.requiredRevisionId"?: string;
|
|
1628
|
+
}): Request<{}>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Updates a single Label by applying a set of update requests resulting in a new draft revision. The batch update is all-or-nothing: If any of the update requests are invalid, no
|
|
1631
|
+
* changes are applied. The resulting draft revision must be published before the changes may be used with Drive Items.
|
|
1632
|
+
*/
|
|
1633
|
+
delta(request: {
|
|
1634
|
+
/** V1 error format. */
|
|
1635
|
+
"$.xgafv"?: string;
|
|
1636
|
+
/** OAuth access token. */
|
|
1637
|
+
access_token?: string;
|
|
1638
|
+
/** Data format for response. */
|
|
1639
|
+
alt?: string;
|
|
1640
|
+
/** JSONP */
|
|
1641
|
+
callback?: string;
|
|
1642
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1643
|
+
fields?: string;
|
|
1644
|
+
/** 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. */
|
|
1645
|
+
key?: string;
|
|
1646
|
+
/** Required. The resource name of the Label to update. */
|
|
1647
|
+
name: string;
|
|
1648
|
+
/** OAuth 2.0 token for the current user. */
|
|
1649
|
+
oauth_token?: string;
|
|
1650
|
+
/** Returns response with indentations and line breaks. */
|
|
1651
|
+
prettyPrint?: boolean;
|
|
1652
|
+
/** 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. */
|
|
1653
|
+
quotaUser?: string;
|
|
1654
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1655
|
+
upload_protocol?: string;
|
|
1656
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1657
|
+
uploadType?: string;
|
|
1658
|
+
/** Request body */
|
|
1659
|
+
resource: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest;
|
|
1660
|
+
}): Request<GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse>;
|
|
1661
|
+
delta(request: {
|
|
1662
|
+
/** V1 error format. */
|
|
1663
|
+
"$.xgafv"?: string;
|
|
1664
|
+
/** OAuth access token. */
|
|
1665
|
+
access_token?: string;
|
|
1666
|
+
/** Data format for response. */
|
|
1667
|
+
alt?: string;
|
|
1668
|
+
/** JSONP */
|
|
1669
|
+
callback?: string;
|
|
1670
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1671
|
+
fields?: string;
|
|
1672
|
+
/** 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. */
|
|
1673
|
+
key?: string;
|
|
1674
|
+
/** Required. The resource name of the Label to update. */
|
|
1675
|
+
name: string;
|
|
1676
|
+
/** OAuth 2.0 token for the current user. */
|
|
1677
|
+
oauth_token?: string;
|
|
1678
|
+
/** Returns response with indentations and line breaks. */
|
|
1679
|
+
prettyPrint?: boolean;
|
|
1680
|
+
/** 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. */
|
|
1681
|
+
quotaUser?: string;
|
|
1682
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1683
|
+
upload_protocol?: string;
|
|
1684
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1685
|
+
uploadType?: string;
|
|
1686
|
+
},
|
|
1687
|
+
body: GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest): Request<GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse>;
|
|
1688
|
+
/**
|
|
1689
|
+
* Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled
|
|
1690
|
+
* draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.
|
|
1691
|
+
*/
|
|
1692
|
+
disable(request: {
|
|
1693
|
+
/** V1 error format. */
|
|
1694
|
+
"$.xgafv"?: string;
|
|
1695
|
+
/** OAuth access token. */
|
|
1696
|
+
access_token?: string;
|
|
1697
|
+
/** Data format for response. */
|
|
1698
|
+
alt?: string;
|
|
1699
|
+
/** JSONP */
|
|
1700
|
+
callback?: string;
|
|
1701
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1702
|
+
fields?: string;
|
|
1703
|
+
/** 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. */
|
|
1704
|
+
key?: string;
|
|
1705
|
+
/** Required. Label resource name. */
|
|
1706
|
+
name: string;
|
|
1707
|
+
/** OAuth 2.0 token for the current user. */
|
|
1708
|
+
oauth_token?: string;
|
|
1709
|
+
/** Returns response with indentations and line breaks. */
|
|
1710
|
+
prettyPrint?: boolean;
|
|
1711
|
+
/** 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. */
|
|
1712
|
+
quotaUser?: string;
|
|
1713
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1714
|
+
upload_protocol?: string;
|
|
1715
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1716
|
+
uploadType?: string;
|
|
1717
|
+
/** Request body */
|
|
1718
|
+
resource: GoogleAppsDriveLabelsV2betaDisableLabelRequest;
|
|
1719
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1720
|
+
disable(request: {
|
|
1721
|
+
/** V1 error format. */
|
|
1722
|
+
"$.xgafv"?: string;
|
|
1723
|
+
/** OAuth access token. */
|
|
1724
|
+
access_token?: string;
|
|
1725
|
+
/** Data format for response. */
|
|
1726
|
+
alt?: string;
|
|
1727
|
+
/** JSONP */
|
|
1728
|
+
callback?: string;
|
|
1729
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1730
|
+
fields?: string;
|
|
1731
|
+
/** 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. */
|
|
1732
|
+
key?: string;
|
|
1733
|
+
/** Required. Label resource name. */
|
|
1734
|
+
name: string;
|
|
1735
|
+
/** OAuth 2.0 token for the current user. */
|
|
1736
|
+
oauth_token?: string;
|
|
1737
|
+
/** Returns response with indentations and line breaks. */
|
|
1738
|
+
prettyPrint?: boolean;
|
|
1739
|
+
/** 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. */
|
|
1740
|
+
quotaUser?: string;
|
|
1741
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1742
|
+
upload_protocol?: string;
|
|
1743
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1744
|
+
uploadType?: string;
|
|
1745
|
+
},
|
|
1746
|
+
body: GoogleAppsDriveLabelsV2betaDisableLabelRequest): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1747
|
+
/**
|
|
1748
|
+
* Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing
|
|
1749
|
+
* disabled draft revision, a new revision will be created based on that draft and will be enabled.
|
|
1750
|
+
*/
|
|
1751
|
+
enable(request: {
|
|
1752
|
+
/** V1 error format. */
|
|
1753
|
+
"$.xgafv"?: string;
|
|
1754
|
+
/** OAuth access token. */
|
|
1755
|
+
access_token?: string;
|
|
1756
|
+
/** Data format for response. */
|
|
1757
|
+
alt?: string;
|
|
1758
|
+
/** JSONP */
|
|
1759
|
+
callback?: string;
|
|
1760
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1761
|
+
fields?: string;
|
|
1762
|
+
/** 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. */
|
|
1763
|
+
key?: string;
|
|
1764
|
+
/** Required. Label resource name. */
|
|
1765
|
+
name: string;
|
|
1766
|
+
/** OAuth 2.0 token for the current user. */
|
|
1767
|
+
oauth_token?: string;
|
|
1768
|
+
/** Returns response with indentations and line breaks. */
|
|
1769
|
+
prettyPrint?: boolean;
|
|
1770
|
+
/** 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. */
|
|
1771
|
+
quotaUser?: string;
|
|
1772
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1773
|
+
upload_protocol?: string;
|
|
1774
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1775
|
+
uploadType?: string;
|
|
1776
|
+
/** Request body */
|
|
1777
|
+
resource: GoogleAppsDriveLabelsV2betaEnableLabelRequest;
|
|
1778
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1779
|
+
enable(request: {
|
|
1780
|
+
/** V1 error format. */
|
|
1781
|
+
"$.xgafv"?: string;
|
|
1782
|
+
/** OAuth access token. */
|
|
1783
|
+
access_token?: string;
|
|
1784
|
+
/** Data format for response. */
|
|
1785
|
+
alt?: string;
|
|
1786
|
+
/** JSONP */
|
|
1787
|
+
callback?: string;
|
|
1788
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1789
|
+
fields?: string;
|
|
1790
|
+
/** 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. */
|
|
1791
|
+
key?: string;
|
|
1792
|
+
/** Required. Label resource name. */
|
|
1793
|
+
name: string;
|
|
1794
|
+
/** OAuth 2.0 token for the current user. */
|
|
1795
|
+
oauth_token?: string;
|
|
1796
|
+
/** Returns response with indentations and line breaks. */
|
|
1797
|
+
prettyPrint?: boolean;
|
|
1798
|
+
/** 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. */
|
|
1799
|
+
quotaUser?: string;
|
|
1800
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1801
|
+
upload_protocol?: string;
|
|
1802
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1803
|
+
uploadType?: string;
|
|
1804
|
+
},
|
|
1805
|
+
body: GoogleAppsDriveLabelsV2betaEnableLabelRequest): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1806
|
+
/**
|
|
1807
|
+
* Get a label by its resource name. Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. *
|
|
1808
|
+
* `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.
|
|
1809
|
+
*/
|
|
1810
|
+
get(request?: {
|
|
1811
|
+
/** V1 error format. */
|
|
1812
|
+
"$.xgafv"?: string;
|
|
1813
|
+
/** OAuth access token. */
|
|
1814
|
+
access_token?: string;
|
|
1815
|
+
/** Data format for response. */
|
|
1816
|
+
alt?: string;
|
|
1817
|
+
/** JSONP */
|
|
1818
|
+
callback?: string;
|
|
1819
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1820
|
+
fields?: string;
|
|
1821
|
+
/** 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. */
|
|
1822
|
+
key?: string;
|
|
1823
|
+
/** The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used. */
|
|
1824
|
+
languageCode?: string;
|
|
1825
|
+
/** Required. Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}` */
|
|
1826
|
+
name: string;
|
|
1827
|
+
/** OAuth 2.0 token for the current user. */
|
|
1828
|
+
oauth_token?: string;
|
|
1829
|
+
/** Returns response with indentations and line breaks. */
|
|
1830
|
+
prettyPrint?: boolean;
|
|
1831
|
+
/** 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. */
|
|
1832
|
+
quotaUser?: string;
|
|
1833
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1834
|
+
upload_protocol?: string;
|
|
1835
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1836
|
+
uploadType?: string;
|
|
1837
|
+
/** Set to `true` in order to use the user's admin credentials. The server verifies that the user is an admin for the label before allowing access. */
|
|
1838
|
+
useAdminAccess?: boolean;
|
|
1839
|
+
/** When specified, only certain fields belonging to the indicated view are returned. */
|
|
1840
|
+
view?: string;
|
|
1841
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1842
|
+
/** List labels. */
|
|
1843
|
+
list(request?: {
|
|
1844
|
+
/** V1 error format. */
|
|
1845
|
+
"$.xgafv"?: string;
|
|
1846
|
+
/** OAuth access token. */
|
|
1847
|
+
access_token?: string;
|
|
1848
|
+
/** Data format for response. */
|
|
1849
|
+
alt?: string;
|
|
1850
|
+
/** JSONP */
|
|
1851
|
+
callback?: string;
|
|
1852
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1853
|
+
fields?: string;
|
|
1854
|
+
/** 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. */
|
|
1855
|
+
key?: string;
|
|
1856
|
+
/** The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used. */
|
|
1857
|
+
languageCode?: string;
|
|
1858
|
+
/** Specifies the level of access the user must have on the returned Labels. The minimum role a user must have on a label. Defaults to `READER`. */
|
|
1859
|
+
minimumRole?: string;
|
|
1860
|
+
/** OAuth 2.0 token for the current user. */
|
|
1861
|
+
oauth_token?: string;
|
|
1862
|
+
/** Maximum number of labels to return per page. Default: 50. Max: 200. */
|
|
1863
|
+
pageSize?: number;
|
|
1864
|
+
/** The token of the page to return. */
|
|
1865
|
+
pageToken?: string;
|
|
1866
|
+
/** Returns response with indentations and line breaks. */
|
|
1867
|
+
prettyPrint?: boolean;
|
|
1868
|
+
/**
|
|
1869
|
+
* Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled labels are included. Returned label
|
|
1870
|
+
* resource names reference the published revision (`labels/{id}/{revision_id}`). * When `false`, the current label revisions are returned, which might not be published. Returned
|
|
1871
|
+
* label resource names don't reference a specific revision (`labels/{id}`).
|
|
1872
|
+
*/
|
|
1873
|
+
publishedOnly?: boolean;
|
|
1874
|
+
/** 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. */
|
|
1875
|
+
quotaUser?: string;
|
|
1876
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1877
|
+
upload_protocol?: string;
|
|
1878
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1879
|
+
uploadType?: string;
|
|
1880
|
+
/** Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer. */
|
|
1881
|
+
useAdminAccess?: boolean;
|
|
1882
|
+
/** When specified, only certain fields belonging to the indicated view are returned. */
|
|
1883
|
+
view?: string;
|
|
1884
|
+
}): Request<GoogleAppsDriveLabelsV2betaListLabelsResponse>;
|
|
1885
|
+
/**
|
|
1886
|
+
* Publish all draft changes to the Label. Once published, the Label may not return to its draft state. See `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a
|
|
1887
|
+
* Label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as
|
|
1888
|
+
* needed. Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be
|
|
1889
|
+
* rejected. For example, the following changes to a Label will be rejected after the Label is published: * The label cannot be directly deleted. It must be disabled first, then
|
|
1890
|
+
* deleted. * Field.FieldType cannot be changed. * Changes to Field validation options cannot reject something that was previously accepted. * Reducing the max entries.
|
|
1891
|
+
*/
|
|
1892
|
+
publish(request: {
|
|
1893
|
+
/** V1 error format. */
|
|
1894
|
+
"$.xgafv"?: string;
|
|
1895
|
+
/** OAuth access token. */
|
|
1896
|
+
access_token?: string;
|
|
1897
|
+
/** Data format for response. */
|
|
1898
|
+
alt?: string;
|
|
1899
|
+
/** JSONP */
|
|
1900
|
+
callback?: string;
|
|
1901
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1902
|
+
fields?: string;
|
|
1903
|
+
/** 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. */
|
|
1904
|
+
key?: string;
|
|
1905
|
+
/** Required. Label resource name. */
|
|
1906
|
+
name: string;
|
|
1907
|
+
/** OAuth 2.0 token for the current user. */
|
|
1908
|
+
oauth_token?: string;
|
|
1909
|
+
/** Returns response with indentations and line breaks. */
|
|
1910
|
+
prettyPrint?: boolean;
|
|
1911
|
+
/** 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. */
|
|
1912
|
+
quotaUser?: string;
|
|
1913
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1914
|
+
upload_protocol?: string;
|
|
1915
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1916
|
+
uploadType?: string;
|
|
1917
|
+
/** Request body */
|
|
1918
|
+
resource: GoogleAppsDriveLabelsV2betaPublishLabelRequest;
|
|
1919
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1920
|
+
publish(request: {
|
|
1921
|
+
/** V1 error format. */
|
|
1922
|
+
"$.xgafv"?: string;
|
|
1923
|
+
/** OAuth access token. */
|
|
1924
|
+
access_token?: string;
|
|
1925
|
+
/** Data format for response. */
|
|
1926
|
+
alt?: string;
|
|
1927
|
+
/** JSONP */
|
|
1928
|
+
callback?: string;
|
|
1929
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1930
|
+
fields?: string;
|
|
1931
|
+
/** 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. */
|
|
1932
|
+
key?: string;
|
|
1933
|
+
/** Required. Label resource name. */
|
|
1934
|
+
name: string;
|
|
1935
|
+
/** OAuth 2.0 token for the current user. */
|
|
1936
|
+
oauth_token?: string;
|
|
1937
|
+
/** Returns response with indentations and line breaks. */
|
|
1938
|
+
prettyPrint?: boolean;
|
|
1939
|
+
/** 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. */
|
|
1940
|
+
quotaUser?: string;
|
|
1941
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1942
|
+
upload_protocol?: string;
|
|
1943
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1944
|
+
uploadType?: string;
|
|
1945
|
+
},
|
|
1946
|
+
body: GoogleAppsDriveLabelsV2betaPublishLabelRequest): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1947
|
+
/** Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. */
|
|
1948
|
+
updateLabelCopyMode(request: {
|
|
1949
|
+
/** V1 error format. */
|
|
1950
|
+
"$.xgafv"?: string;
|
|
1951
|
+
/** OAuth access token. */
|
|
1952
|
+
access_token?: string;
|
|
1953
|
+
/** Data format for response. */
|
|
1954
|
+
alt?: string;
|
|
1955
|
+
/** JSONP */
|
|
1956
|
+
callback?: string;
|
|
1957
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1958
|
+
fields?: string;
|
|
1959
|
+
/** 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. */
|
|
1960
|
+
key?: string;
|
|
1961
|
+
/** Required. The resource name of the Label to update. */
|
|
1962
|
+
name: string;
|
|
1963
|
+
/** OAuth 2.0 token for the current user. */
|
|
1964
|
+
oauth_token?: string;
|
|
1965
|
+
/** Returns response with indentations and line breaks. */
|
|
1966
|
+
prettyPrint?: boolean;
|
|
1967
|
+
/** 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. */
|
|
1968
|
+
quotaUser?: string;
|
|
1969
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1970
|
+
upload_protocol?: string;
|
|
1971
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1972
|
+
uploadType?: string;
|
|
1973
|
+
/** Request body */
|
|
1974
|
+
resource: GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest;
|
|
1975
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
1976
|
+
updateLabelCopyMode(request: {
|
|
1977
|
+
/** V1 error format. */
|
|
1978
|
+
"$.xgafv"?: string;
|
|
1979
|
+
/** OAuth access token. */
|
|
1980
|
+
access_token?: string;
|
|
1981
|
+
/** Data format for response. */
|
|
1982
|
+
alt?: string;
|
|
1983
|
+
/** JSONP */
|
|
1984
|
+
callback?: string;
|
|
1985
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1986
|
+
fields?: string;
|
|
1987
|
+
/** 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. */
|
|
1988
|
+
key?: string;
|
|
1989
|
+
/** Required. The resource name of the Label to update. */
|
|
1990
|
+
name: string;
|
|
1991
|
+
/** OAuth 2.0 token for the current user. */
|
|
1992
|
+
oauth_token?: string;
|
|
1993
|
+
/** Returns response with indentations and line breaks. */
|
|
1994
|
+
prettyPrint?: boolean;
|
|
1995
|
+
/** 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. */
|
|
1996
|
+
quotaUser?: string;
|
|
1997
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1998
|
+
upload_protocol?: string;
|
|
1999
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2000
|
+
uploadType?: string;
|
|
2001
|
+
},
|
|
2002
|
+
body: GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest): Request<GoogleAppsDriveLabelsV2betaLabel>;
|
|
2003
|
+
locks: LocksResource;
|
|
2004
|
+
permissions: PermissionsResource;
|
|
2005
|
+
revisions: RevisionsResource;
|
|
2006
|
+
}
|
|
2007
|
+
interface LimitsResource {
|
|
2008
|
+
/** Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title. */
|
|
2009
|
+
getLabel(request?: {
|
|
2010
|
+
/** V1 error format. */
|
|
2011
|
+
"$.xgafv"?: string;
|
|
2012
|
+
/** OAuth access token. */
|
|
2013
|
+
access_token?: string;
|
|
2014
|
+
/** Data format for response. */
|
|
2015
|
+
alt?: string;
|
|
2016
|
+
/** JSONP */
|
|
2017
|
+
callback?: string;
|
|
2018
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2019
|
+
fields?: string;
|
|
2020
|
+
/** 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. */
|
|
2021
|
+
key?: string;
|
|
2022
|
+
/** Required. Label revision resource name Must be: "limits/label" */
|
|
2023
|
+
name?: string;
|
|
2024
|
+
/** OAuth 2.0 token for the current user. */
|
|
2025
|
+
oauth_token?: string;
|
|
2026
|
+
/** Returns response with indentations and line breaks. */
|
|
2027
|
+
prettyPrint?: boolean;
|
|
2028
|
+
/** 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. */
|
|
2029
|
+
quotaUser?: string;
|
|
2030
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2031
|
+
upload_protocol?: string;
|
|
2032
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2033
|
+
uploadType?: string;
|
|
2034
|
+
}): Request<GoogleAppsDriveLabelsV2betaLabelLimits>;
|
|
2035
|
+
}
|
|
2036
|
+
interface UsersResource {
|
|
2037
|
+
/** Gets the user capabilities. */
|
|
2038
|
+
getCapabilities(request?: {
|
|
2039
|
+
/** V1 error format. */
|
|
2040
|
+
"$.xgafv"?: string;
|
|
2041
|
+
/** OAuth access token. */
|
|
2042
|
+
access_token?: string;
|
|
2043
|
+
/** Data format for response. */
|
|
2044
|
+
alt?: string;
|
|
2045
|
+
/** JSONP */
|
|
2046
|
+
callback?: string;
|
|
2047
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2048
|
+
fields?: string;
|
|
2049
|
+
/** 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. */
|
|
2050
|
+
key?: string;
|
|
2051
|
+
/** Required. The resource name of the user. Only "users/me/capabilities" is supported. */
|
|
2052
|
+
name: string;
|
|
2053
|
+
/** OAuth 2.0 token for the current user. */
|
|
2054
|
+
oauth_token?: string;
|
|
2055
|
+
/** Returns response with indentations and line breaks. */
|
|
2056
|
+
prettyPrint?: boolean;
|
|
2057
|
+
/** 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. */
|
|
2058
|
+
quotaUser?: string;
|
|
2059
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2060
|
+
upload_protocol?: string;
|
|
2061
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2062
|
+
uploadType?: string;
|
|
2063
|
+
}): Request<GoogleAppsDriveLabelsV2betaUserCapabilities>;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
const labels: LabelsResource;
|
|
2067
|
+
|
|
2068
|
+
const limits: LimitsResource;
|
|
2069
|
+
|
|
2070
|
+
const users: UsersResource;
|
|
2071
|
+
}
|
|
2072
|
+
}
|