@maxim_mazurok/gapi.client.admin-reports_v1 0.0.20231127 → 0.0.20231128

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 CHANGED
@@ -9,1295 +9,712 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://admin.googleapis.com/$discovery/rest?version=reports_v1
12
- // Revision: 20231127
12
+ // Revision: 20231128
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Admin SDK API reports_v1 */
18
- function load(urlOrObject: "https://admin.googleapis.com/$discovery/rest?version=reports_v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "admin", version: "reports_v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "admin", version: "reports_v1", callback: () => any): void;
17
+ /** Load Admin SDK API reports_v1 */
18
+ function load(
19
+ urlOrObject: 'https://admin.googleapis.com/$discovery/rest?version=reports_v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'admin', version: 'reports_v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(
25
+ name: 'admin',
26
+ version: 'reports_v1',
27
+ callback: () => any
28
+ ): void;
23
29
 
24
- namespace admin {
25
- interface Activities {
26
- /** ETag of the resource. */
27
- etag?:
28
- string;
29
- /** Each activity record in the response. */
30
- items?:
31
- Activity[];
32
- /** The type of API resource. For an activity report, the value is `reports#activities`. */
33
- kind?:
34
- string;
35
- /** Token for retrieving the follow-on next page of the report. The `nextPageToken` value is used in the request's `pageToken` query string. */
36
- nextPageToken?:
37
- string;
38
- }
39
- interface Activity {
40
- /** User doing the action. */
41
- actor?:
42
- {
43
- /** The type of actor. */
44
- callerType?:
45
- string;
46
- /** The primary email address of the actor. May be absent if there is no email address associated with the actor. */
47
- email?:
48
- string;
49
- /** Only present when `callerType` is `KEY`. Can be the `consumer_key` of the requestor for OAuth 2LO API requests or an identifier for robot accounts. */
50
- key?:
51
- string;
52
- /**
53
- * The unique Google Workspace profile ID of the actor. This value might be absent if the actor is not a Google Workspace user, or may be the number 105250506097979753968 which
54
- * acts as a placeholder ID.
55
- */
56
- profileId?:
57
- string;
58
- };
59
- /** ETag of the entry. */
60
- etag?:
61
- string;
62
- /** Activity events in the report. */
63
- events?:
64
- Array<{
65
- /**
66
- * Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the
67
- * API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`.
68
- * - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. It is possible that the returned activities will have other
69
- * `eventName` properties in addition to the one requested. For more information about `eventName` properties, see the list of event names for various applications above in
70
- * `applicationName`.
71
- */
72
- name?:
73
- string;
74
- /**
75
- * Parameter value pairs for various applications. For more information about `eventName` parameters, see the list of event names for various applications above in
76
- * `applicationName`.
77
- */
78
- parameters?:
79
- Array<{
80
- /** Boolean value of the parameter. */
81
- boolValue?:
82
- boolean;
83
- /** Integer value of the parameter. */
84
- intValue?:
85
- string;
86
- /**
87
- * Nested parameter value pairs associated with this parameter. Complex value type for a parameter are returned as a list of parameter values. For example, the address
88
- * parameter may have a value as `[{parameter: [{name: city, value: abc}]}]`
89
- */
90
- messageValue?:
91
- {
92
- /** Parameter values */
93
- parameter?:
94
- NestedParameter[];
95
- };
96
- /** Integer values of the parameter. */
97
- multiIntValue?:
98
- string[];
99
- /** List of `messageValue` objects. */
100
- multiMessageValue?:
101
- Array<{
102
- /** Parameter values */
103
- parameter?:
104
- NestedParameter[];
105
- }>;
106
- /** String values of the parameter. */
107
- multiValue?:
108
- string[];
109
- /** The name of the parameter. */
110
- name?:
111
- string;
112
- /** String value of the parameter. */
113
- value?:
114
- string;
115
- }>;
116
- /**
117
- * Type of event. The Google Workspace service or feature that an administrator changes is identified in the `type` property which identifies an event using the `eventName`
118
- * property. For a full list of the API's `type` categories, see the list of event names for various applications above in `applicationName`.
119
- */
120
- type?:
121
- string;
122
- }>;
123
- /** Unique identifier for each activity record. */
124
- id?:
125
- {
126
- /** Application name to which the event belongs. For possible values see the list of applications above in `applicationName`. */
127
- applicationName?:
128
- string;
129
- /** The unique identifier for a Google Workspace account. */
130
- customerId?:
131
- string;
132
- /** Time of occurrence of the activity. This is in UNIX epoch time in seconds. */
133
- time?:
134
- string;
135
- /** Unique qualifier if multiple events have the same time. */
136
- uniqueQualifier?:
137
- string;
138
- };
139
- /**
140
- * IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical
141
- * location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6.
142
- */
143
- ipAddress?:
144
- string;
145
- /** The type of API resource. For an activity report, the value is `audit#activity`. */
146
- kind?:
147
- string;
148
- /** This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner. */
149
- ownerDomain?:
150
- string;
151
- }
152
- interface Channel {
153
- /** The address where notifications are delivered for this channel. */
154
- address?:
155
- string;
156
- /** Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. */
157
- expiration?:
158
- string;
159
- /** A UUID or similar unique string that identifies this channel. */
160
- id?:
161
- string;
162
- /** Identifies this as a notification channel used to watch for changes to a resource, which is "`api#channel`". */
163
- kind?:
164
- string;
165
- /** Additional parameters controlling delivery channel behavior. Optional. */
166
- params?:
167
- { [P in string]: string };
168
- /**
169
- * A Boolean value to indicate whether payload is wanted. A payload is data that is sent in the body of an HTTP POST, PUT, or PATCH message and contains important information about the
170
- * request. Optional.
171
- */
172
- payload?:
173
- boolean;
174
- /** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
175
- resourceId?:
176
- string;
177
- /** A version-specific identifier for the watched resource. */
178
- resourceUri?:
179
- string;
180
- /** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
181
- token?:
182
- string;
183
- /** The type of delivery mechanism used for this channel. The value should be set to `"web_hook"`. */
184
- type?:
185
- string;
186
- }
187
- interface NestedParameter {
188
- /** Boolean value of the parameter. */
189
- boolValue?:
190
- boolean;
191
- /** Integer value of the parameter. */
192
- intValue?:
193
- string;
194
- /** Multiple boolean values of the parameter. */
195
- multiBoolValue?:
196
- boolean[];
197
- /** Multiple integer values of the parameter. */
198
- multiIntValue?:
199
- string[];
200
- /** Multiple string values of the parameter. */
201
- multiValue?:
202
- string[];
203
- /** The name of the parameter. */
204
- name?:
205
- string;
206
- /** String value of the parameter. */
207
- value?:
208
- string;
209
- }
210
- interface UsageReport {
211
- /** Output only. The date of the report request. */
212
- date?:
213
- string;
214
- /** Output only. Information about the type of the item. */
215
- entity?:
216
- {
217
- /** Output only. The unique identifier of the customer's account. */
218
- customerId?:
219
- string;
220
- /** Output only. Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of report is "Entities" rather than "Objects". */
221
- entityId?:
222
- string;
223
- /** Output only. The user's immutable Google Workspace profile identifier. */
224
- profileId?:
225
- string;
226
- /** Output only. The type of item. The value is `user`. */
227
- type?:
228
- string;
229
- /** Output only. The user's email address. Only relevant if entity.type = "USER" */
230
- userEmail?:
231
- string;
232
- };
233
- /** ETag of the resource. */
234
- etag?:
235
- string;
236
- /** The type of API resource. For a usage report, the value is `admin#reports#usageReport`. */
237
- kind?:
238
- string;
239
- /**
240
- * Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters and values, see [the Entity Usage parameters
241
- * reference](/admin-sdk/reports/v1/reference/usage-ref-appendix-a/entities).
242
- */
243
- parameters?:
244
- Array<{
245
- /** Output only. Boolean value of the parameter. */
246
- boolValue?:
247
- boolean;
248
- /** The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35.000Z. */
249
- datetimeValue?:
250
- string;
251
- /** Output only. Integer value of the parameter. */
252
- intValue?:
253
- string;
254
- /** Output only. Nested message value of the parameter. */
255
- msgValue?:
256
- Array<{ [P in string]: any }>;
257
- /** The name of the parameter. For the User Usage Report parameter names, see the User Usage parameters reference. */
258
- name?:
259
- string;
260
- /** Output only. String value of the parameter. */
261
- stringValue?:
262
- string;
263
- }>;
264
- }
265
- interface UsageReports {
266
- /** ETag of the resource. */
267
- etag?:
268
- string;
269
- /** The type of API resource. For a usage report, the value is `admin#reports#usageReports`. */
270
- kind?:
271
- string;
272
- /**
273
- * Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the
274
- * `nextPageToken` value in the `pageToken` query string.
275
- */
276
- nextPageToken?:
277
- string;
278
- /** Various application parameter records. */
279
- usageReports?:
280
- UsageReport[];
281
- /** Warnings, if any. */
282
- warnings?:
283
- Array<{
284
- /** Machine readable code or warning type. The warning code value is `200`. */
285
- code?:
286
- string;
287
- /** Key-value pairs to give detailed information on the warning. */
288
- data?:
289
- Array<{
290
- /** Key associated with a key-value pair to give detailed information on the warning. */
291
- key?:
292
- string;
293
- /** Value associated with a key-value pair to give detailed information on the warning. */
294
- value?:
295
- string;
296
- }>;
297
- /**
298
- * The human readable messages for a warning are: - Data is not available warning - Sorry, data for date yyyy-mm-dd for application "`application name`" is not available. -
299
- * Partial data is available warning - Data for date yyyy-mm-dd for application "`application name`" is not available right now, please try again after a few hours.
300
- */
301
- message?:
302
- string;
303
- }>;
304
- }
305
- interface ChannelsResource {
306
- /** Stop watching resources through this channel. */
307
- stop(request: {
308
- /** V1 error format. */
309
- "$.xgafv"?:
310
- string;
311
- /** OAuth access token. */
312
- access_token?:
313
- string;
314
- /** Data format for response. */
315
- alt?:
316
- string;
317
- /** JSONP */
318
- callback?:
319
- string;
320
- /** Selector specifying which fields to include in a partial response. */
321
- fields?:
322
- string;
323
- /** 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. */
324
- key?:
325
- string;
326
- /** OAuth 2.0 token for the current user. */
327
- oauth_token?:
328
- string;
329
- /** Returns response with indentations and line breaks. */
330
- prettyPrint?:
331
- boolean;
332
- /** 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. */
333
- quotaUser?:
334
- string;
335
- /** Upload protocol for media (e.g. "raw", "multipart"). */
336
- upload_protocol?:
337
- string;
338
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
339
- uploadType?:
340
- string;
341
- /** Request body */
342
- resource:
343
- Channel;
344
- }): Request<void>;
345
- stop(request: {
346
- /** V1 error format. */
347
- "$.xgafv"?:
348
- string;
349
- /** OAuth access token. */
350
- access_token?:
351
- string;
352
- /** Data format for response. */
353
- alt?:
354
- string;
355
- /** JSONP */
356
- callback?:
357
- string;
358
- /** Selector specifying which fields to include in a partial response. */
359
- fields?:
360
- string;
361
- /** 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. */
362
- key?:
363
- string;
364
- /** OAuth 2.0 token for the current user. */
365
- oauth_token?:
366
- string;
367
- /** Returns response with indentations and line breaks. */
368
- prettyPrint?:
369
- boolean;
370
- /** 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. */
371
- quotaUser?:
372
- string;
373
- /** Upload protocol for media (e.g. "raw", "multipart"). */
374
- upload_protocol?:
375
- string;
376
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
377
- uploadType?:
378
- string;
379
- },
380
- body: Channel): Request<void>;
381
- }
30
+ namespace admin {
31
+ interface Activities {
32
+ /** ETag of the resource. */
33
+ etag?: string;
34
+ /** Each activity record in the response. */
35
+ items?: Activity[];
36
+ /** The type of API resource. For an activity report, the value is `reports#activities`. */
37
+ kind?: string;
38
+ /** Token for retrieving the follow-on next page of the report. The `nextPageToken` value is used in the request's `pageToken` query string. */
39
+ nextPageToken?: string;
40
+ }
41
+ interface Activity {
42
+ /** User doing the action. */
43
+ actor?: {
44
+ /** The type of actor. */
45
+ callerType?: string;
46
+ /** The primary email address of the actor. May be absent if there is no email address associated with the actor. */
47
+ email?: string;
48
+ /** Only present when `callerType` is `KEY`. Can be the `consumer_key` of the requestor for OAuth 2LO API requests or an identifier for robot accounts. */
49
+ key?: string;
50
+ /** The unique Google Workspace profile ID of the actor. This value might be absent if the actor is not a Google Workspace user, or may be the number 105250506097979753968 which acts as a placeholder ID. */
51
+ profileId?: string;
52
+ };
53
+ /** ETag of the entry. */
54
+ etag?: string;
55
+ /** Activity events in the report. */
56
+ events?: Array<{
57
+ /** Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`. - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. It is possible that the returned activities will have other `eventName` properties in addition to the one requested. For more information about `eventName` properties, see the list of event names for various applications above in `applicationName`. */
58
+ name?: string;
59
+ /** Parameter value pairs for various applications. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. */
60
+ parameters?: Array<{
61
+ /** Boolean value of the parameter. */
62
+ boolValue?: boolean;
63
+ /** Integer value of the parameter. */
64
+ intValue?: string;
65
+ /** Nested parameter value pairs associated with this parameter. Complex value type for a parameter are returned as a list of parameter values. For example, the address parameter may have a value as `[{parameter: [{name: city, value: abc}]}]` */
66
+ messageValue?: {
67
+ /** Parameter values */
68
+ parameter?: NestedParameter[];
69
+ };
70
+ /** Integer values of the parameter. */
71
+ multiIntValue?: string[];
72
+ /** List of `messageValue` objects. */
73
+ multiMessageValue?: Array<{
74
+ /** Parameter values */
75
+ parameter?: NestedParameter[];
76
+ }>;
77
+ /** String values of the parameter. */
78
+ multiValue?: string[];
79
+ /** The name of the parameter. */
80
+ name?: string;
81
+ /** String value of the parameter. */
82
+ value?: string;
83
+ }>;
84
+ /** Type of event. The Google Workspace service or feature that an administrator changes is identified in the `type` property which identifies an event using the `eventName` property. For a full list of the API's `type` categories, see the list of event names for various applications above in `applicationName`. */
85
+ type?: string;
86
+ }>;
87
+ /** Unique identifier for each activity record. */
88
+ id?: {
89
+ /** Application name to which the event belongs. For possible values see the list of applications above in `applicationName`. */
90
+ applicationName?: string;
91
+ /** The unique identifier for a Google Workspace account. */
92
+ customerId?: string;
93
+ /** Time of occurrence of the activity. This is in UNIX epoch time in seconds. */
94
+ time?: string;
95
+ /** Unique qualifier if multiple events have the same time. */
96
+ uniqueQualifier?: string;
97
+ };
98
+ /** IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6. */
99
+ ipAddress?: string;
100
+ /** The type of API resource. For an activity report, the value is `audit#activity`. */
101
+ kind?: string;
102
+ /** This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner. */
103
+ ownerDomain?: string;
104
+ }
105
+ interface Channel {
106
+ /** The address where notifications are delivered for this channel. */
107
+ address?: string;
108
+ /** Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. */
109
+ expiration?: string;
110
+ /** A UUID or similar unique string that identifies this channel. */
111
+ id?: string;
112
+ /** Identifies this as a notification channel used to watch for changes to a resource, which is "`api#channel`". */
113
+ kind?: string;
114
+ /** Additional parameters controlling delivery channel behavior. Optional. */
115
+ params?: {[P in string]: string};
116
+ /** A Boolean value to indicate whether payload is wanted. A payload is data that is sent in the body of an HTTP POST, PUT, or PATCH message and contains important information about the request. Optional. */
117
+ payload?: boolean;
118
+ /** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
119
+ resourceId?: string;
120
+ /** A version-specific identifier for the watched resource. */
121
+ resourceUri?: string;
122
+ /** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
123
+ token?: string;
124
+ /** The type of delivery mechanism used for this channel. The value should be set to `"web_hook"`. */
125
+ type?: string;
126
+ }
127
+ interface NestedParameter {
128
+ /** Boolean value of the parameter. */
129
+ boolValue?: boolean;
130
+ /** Integer value of the parameter. */
131
+ intValue?: string;
132
+ /** Multiple boolean values of the parameter. */
133
+ multiBoolValue?: boolean[];
134
+ /** Multiple integer values of the parameter. */
135
+ multiIntValue?: string[];
136
+ /** Multiple string values of the parameter. */
137
+ multiValue?: string[];
138
+ /** The name of the parameter. */
139
+ name?: string;
140
+ /** String value of the parameter. */
141
+ value?: string;
142
+ }
143
+ interface UsageReport {
144
+ /** Output only. The date of the report request. */
145
+ date?: string;
146
+ /** Output only. Information about the type of the item. */
147
+ entity?: {
148
+ /** Output only. The unique identifier of the customer's account. */
149
+ customerId?: string;
150
+ /** Output only. Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of report is "Entities" rather than "Objects". */
151
+ entityId?: string;
152
+ /** Output only. The user's immutable Google Workspace profile identifier. */
153
+ profileId?: string;
154
+ /** Output only. The type of item. The value is `user`. */
155
+ type?: string;
156
+ /** Output only. The user's email address. Only relevant if entity.type = "USER" */
157
+ userEmail?: string;
158
+ };
159
+ /** ETag of the resource. */
160
+ etag?: string;
161
+ /** The type of API resource. For a usage report, the value is `admin#reports#usageReport`. */
162
+ kind?: string;
163
+ /** Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters and values, see [the Entity Usage parameters reference](/admin-sdk/reports/v1/reference/usage-ref-appendix-a/entities). */
164
+ parameters?: Array<{
165
+ /** Output only. Boolean value of the parameter. */
166
+ boolValue?: boolean;
167
+ /** The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35.000Z. */
168
+ datetimeValue?: string;
169
+ /** Output only. Integer value of the parameter. */
170
+ intValue?: string;
171
+ /** Output only. Nested message value of the parameter. */
172
+ msgValue?: Array<{[P in string]: any}>;
173
+ /** The name of the parameter. For the User Usage Report parameter names, see the User Usage parameters reference. */
174
+ name?: string;
175
+ /** Output only. String value of the parameter. */
176
+ stringValue?: string;
177
+ }>;
178
+ }
179
+ interface UsageReports {
180
+ /** ETag of the resource. */
181
+ etag?: string;
182
+ /** The type of API resource. For a usage report, the value is `admin#reports#usageReports`. */
183
+ kind?: string;
184
+ /** Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken` query string. */
185
+ nextPageToken?: string;
186
+ /** Various application parameter records. */
187
+ usageReports?: UsageReport[];
188
+ /** Warnings, if any. */
189
+ warnings?: Array<{
190
+ /** Machine readable code or warning type. The warning code value is `200`. */
191
+ code?: string;
192
+ /** Key-value pairs to give detailed information on the warning. */
193
+ data?: Array<{
194
+ /** Key associated with a key-value pair to give detailed information on the warning. */
195
+ key?: string;
196
+ /** Value associated with a key-value pair to give detailed information on the warning. */
197
+ value?: string;
198
+ }>;
199
+ /** The human readable messages for a warning are: - Data is not available warning - Sorry, data for date yyyy-mm-dd for application "`application name`" is not available. - Partial data is available warning - Data for date yyyy-mm-dd for application "`application name`" is not available right now, please try again after a few hours. */
200
+ message?: string;
201
+ }>;
202
+ }
203
+ interface ChannelsResource {
204
+ /** Stop watching resources through this channel. */
205
+ stop(request: {
206
+ /** V1 error format. */
207
+ '$.xgafv'?: string;
208
+ /** OAuth access token. */
209
+ access_token?: string;
210
+ /** Data format for response. */
211
+ alt?: string;
212
+ /** JSONP */
213
+ callback?: string;
214
+ /** Selector specifying which fields to include in a partial response. */
215
+ fields?: string;
216
+ /** 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. */
217
+ key?: string;
218
+ /** OAuth 2.0 token for the current user. */
219
+ oauth_token?: string;
220
+ /** Returns response with indentations and line breaks. */
221
+ prettyPrint?: boolean;
222
+ /** 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. */
223
+ quotaUser?: string;
224
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
225
+ upload_protocol?: string;
226
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
227
+ uploadType?: string;
228
+ /** Request body */
229
+ resource: Channel;
230
+ }): Request<void>;
231
+ stop(
232
+ request: {
233
+ /** V1 error format. */
234
+ '$.xgafv'?: string;
235
+ /** OAuth access token. */
236
+ access_token?: string;
237
+ /** Data format for response. */
238
+ alt?: string;
239
+ /** JSONP */
240
+ callback?: string;
241
+ /** Selector specifying which fields to include in a partial response. */
242
+ fields?: string;
243
+ /** 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. */
244
+ key?: string;
245
+ /** OAuth 2.0 token for the current user. */
246
+ oauth_token?: string;
247
+ /** Returns response with indentations and line breaks. */
248
+ prettyPrint?: boolean;
249
+ /** 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. */
250
+ quotaUser?: string;
251
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
252
+ upload_protocol?: string;
253
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
254
+ uploadType?: string;
255
+ },
256
+ body: Channel
257
+ ): Request<void>;
258
+ }
382
259
 
383
- const channels: ChannelsResource;
260
+ const channels: ChannelsResource;
261
+ }
262
+ namespace reports {
263
+ interface Activities {
264
+ /** ETag of the resource. */
265
+ etag?: string;
266
+ /** Each activity record in the response. */
267
+ items?: Activity[];
268
+ /** The type of API resource. For an activity report, the value is `reports#activities`. */
269
+ kind?: string;
270
+ /** Token for retrieving the follow-on next page of the report. The `nextPageToken` value is used in the request's `pageToken` query string. */
271
+ nextPageToken?: string;
272
+ }
273
+ interface Activity {
274
+ /** User doing the action. */
275
+ actor?: {
276
+ /** The type of actor. */
277
+ callerType?: string;
278
+ /** The primary email address of the actor. May be absent if there is no email address associated with the actor. */
279
+ email?: string;
280
+ /** Only present when `callerType` is `KEY`. Can be the `consumer_key` of the requestor for OAuth 2LO API requests or an identifier for robot accounts. */
281
+ key?: string;
282
+ /** The unique Google Workspace profile ID of the actor. This value might be absent if the actor is not a Google Workspace user, or may be the number 105250506097979753968 which acts as a placeholder ID. */
283
+ profileId?: string;
284
+ };
285
+ /** ETag of the entry. */
286
+ etag?: string;
287
+ /** Activity events in the report. */
288
+ events?: Array<{
289
+ /** Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`. - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. It is possible that the returned activities will have other `eventName` properties in addition to the one requested. For more information about `eventName` properties, see the list of event names for various applications above in `applicationName`. */
290
+ name?: string;
291
+ /** Parameter value pairs for various applications. For more information about `eventName` parameters, see the list of event names for various applications above in `applicationName`. */
292
+ parameters?: Array<{
293
+ /** Boolean value of the parameter. */
294
+ boolValue?: boolean;
295
+ /** Integer value of the parameter. */
296
+ intValue?: string;
297
+ /** Nested parameter value pairs associated with this parameter. Complex value type for a parameter are returned as a list of parameter values. For example, the address parameter may have a value as `[{parameter: [{name: city, value: abc}]}]` */
298
+ messageValue?: {
299
+ /** Parameter values */
300
+ parameter?: NestedParameter[];
301
+ };
302
+ /** Integer values of the parameter. */
303
+ multiIntValue?: string[];
304
+ /** List of `messageValue` objects. */
305
+ multiMessageValue?: Array<{
306
+ /** Parameter values */
307
+ parameter?: NestedParameter[];
308
+ }>;
309
+ /** String values of the parameter. */
310
+ multiValue?: string[];
311
+ /** The name of the parameter. */
312
+ name?: string;
313
+ /** String value of the parameter. */
314
+ value?: string;
315
+ }>;
316
+ /** Type of event. The Google Workspace service or feature that an administrator changes is identified in the `type` property which identifies an event using the `eventName` property. For a full list of the API's `type` categories, see the list of event names for various applications above in `applicationName`. */
317
+ type?: string;
318
+ }>;
319
+ /** Unique identifier for each activity record. */
320
+ id?: {
321
+ /** Application name to which the event belongs. For possible values see the list of applications above in `applicationName`. */
322
+ applicationName?: string;
323
+ /** The unique identifier for a Google Workspace account. */
324
+ customerId?: string;
325
+ /** Time of occurrence of the activity. This is in UNIX epoch time in seconds. */
326
+ time?: string;
327
+ /** Unique qualifier if multiple events have the same time. */
328
+ uniqueQualifier?: string;
329
+ };
330
+ /** IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6. */
331
+ ipAddress?: string;
332
+ /** The type of API resource. For an activity report, the value is `audit#activity`. */
333
+ kind?: string;
334
+ /** This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner. */
335
+ ownerDomain?: string;
336
+ }
337
+ interface Channel {
338
+ /** The address where notifications are delivered for this channel. */
339
+ address?: string;
340
+ /** Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. */
341
+ expiration?: string;
342
+ /** A UUID or similar unique string that identifies this channel. */
343
+ id?: string;
344
+ /** Identifies this as a notification channel used to watch for changes to a resource, which is "`api#channel`". */
345
+ kind?: string;
346
+ /** Additional parameters controlling delivery channel behavior. Optional. */
347
+ params?: {[P in string]: string};
348
+ /** A Boolean value to indicate whether payload is wanted. A payload is data that is sent in the body of an HTTP POST, PUT, or PATCH message and contains important information about the request. Optional. */
349
+ payload?: boolean;
350
+ /** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
351
+ resourceId?: string;
352
+ /** A version-specific identifier for the watched resource. */
353
+ resourceUri?: string;
354
+ /** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
355
+ token?: string;
356
+ /** The type of delivery mechanism used for this channel. The value should be set to `"web_hook"`. */
357
+ type?: string;
358
+ }
359
+ interface NestedParameter {
360
+ /** Boolean value of the parameter. */
361
+ boolValue?: boolean;
362
+ /** Integer value of the parameter. */
363
+ intValue?: string;
364
+ /** Multiple boolean values of the parameter. */
365
+ multiBoolValue?: boolean[];
366
+ /** Multiple integer values of the parameter. */
367
+ multiIntValue?: string[];
368
+ /** Multiple string values of the parameter. */
369
+ multiValue?: string[];
370
+ /** The name of the parameter. */
371
+ name?: string;
372
+ /** String value of the parameter. */
373
+ value?: string;
374
+ }
375
+ interface UsageReport {
376
+ /** Output only. The date of the report request. */
377
+ date?: string;
378
+ /** Output only. Information about the type of the item. */
379
+ entity?: {
380
+ /** Output only. The unique identifier of the customer's account. */
381
+ customerId?: string;
382
+ /** Output only. Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of report is "Entities" rather than "Objects". */
383
+ entityId?: string;
384
+ /** Output only. The user's immutable Google Workspace profile identifier. */
385
+ profileId?: string;
386
+ /** Output only. The type of item. The value is `user`. */
387
+ type?: string;
388
+ /** Output only. The user's email address. Only relevant if entity.type = "USER" */
389
+ userEmail?: string;
390
+ };
391
+ /** ETag of the resource. */
392
+ etag?: string;
393
+ /** The type of API resource. For a usage report, the value is `admin#reports#usageReport`. */
394
+ kind?: string;
395
+ /** Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters and values, see [the Entity Usage parameters reference](/admin-sdk/reports/v1/reference/usage-ref-appendix-a/entities). */
396
+ parameters?: Array<{
397
+ /** Output only. Boolean value of the parameter. */
398
+ boolValue?: boolean;
399
+ /** The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35.000Z. */
400
+ datetimeValue?: string;
401
+ /** Output only. Integer value of the parameter. */
402
+ intValue?: string;
403
+ /** Output only. Nested message value of the parameter. */
404
+ msgValue?: Array<{[P in string]: any}>;
405
+ /** The name of the parameter. For the User Usage Report parameter names, see the User Usage parameters reference. */
406
+ name?: string;
407
+ /** Output only. String value of the parameter. */
408
+ stringValue?: string;
409
+ }>;
410
+ }
411
+ interface UsageReports {
412
+ /** ETag of the resource. */
413
+ etag?: string;
414
+ /** The type of API resource. For a usage report, the value is `admin#reports#usageReports`. */
415
+ kind?: string;
416
+ /** Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken` query string. */
417
+ nextPageToken?: string;
418
+ /** Various application parameter records. */
419
+ usageReports?: UsageReport[];
420
+ /** Warnings, if any. */
421
+ warnings?: Array<{
422
+ /** Machine readable code or warning type. The warning code value is `200`. */
423
+ code?: string;
424
+ /** Key-value pairs to give detailed information on the warning. */
425
+ data?: Array<{
426
+ /** Key associated with a key-value pair to give detailed information on the warning. */
427
+ key?: string;
428
+ /** Value associated with a key-value pair to give detailed information on the warning. */
429
+ value?: string;
430
+ }>;
431
+ /** The human readable messages for a warning are: - Data is not available warning - Sorry, data for date yyyy-mm-dd for application "`application name`" is not available. - Partial data is available warning - Data for date yyyy-mm-dd for application "`application name`" is not available right now, please try again after a few hours. */
432
+ message?: string;
433
+ }>;
434
+ }
435
+ interface ActivitiesResource {
436
+ /** Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides. */
437
+ list(request?: {
438
+ /** V1 error format. */
439
+ '$.xgafv'?: string;
440
+ /** OAuth access token. */
441
+ access_token?: string;
442
+ /** The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions. */
443
+ actorIpAddress?: string;
444
+ /** Data format for response. */
445
+ alt?: string;
446
+ /** Application name for which the events are to be retrieved. */
447
+ applicationName: string;
448
+ /** JSONP */
449
+ callback?: string;
450
+ /** The unique ID of the customer to retrieve data for. */
451
+ customerId?: string;
452
+ /** Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past. */
453
+ endTime?: string;
454
+ /** The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`. */
455
+ eventName?: string;
456
+ /** Selector specifying which fields to include in a partial response. */
457
+ fields?: string;
458
+ /** The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned. */
459
+ filters?: string;
460
+ /** Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" */
461
+ groupIdFilter?: string;
462
+ /** 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. */
463
+ key?: string;
464
+ /** Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000. */
465
+ maxResults?: number;
466
+ /** OAuth 2.0 token for the current user. */
467
+ oauth_token?: string;
468
+ /** ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results. */
469
+ orgUnitID?: string;
470
+ /** The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string. */
471
+ pageToken?: string;
472
+ /** Returns response with indentations and line breaks. */
473
+ prettyPrint?: boolean;
474
+ /** 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. */
475
+ quotaUser?: string;
476
+ /** Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. */
477
+ startTime?: string;
478
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
479
+ upload_protocol?: string;
480
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
481
+ uploadType?: string;
482
+ /** Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`. */
483
+ userKey: string;
484
+ }): Request<Activities>;
485
+ /** Start receiving notifications for account activities. For more information, see Receiving Push Notifications. */
486
+ watch(request: {
487
+ /** V1 error format. */
488
+ '$.xgafv'?: string;
489
+ /** OAuth access token. */
490
+ access_token?: string;
491
+ /** The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions. */
492
+ actorIpAddress?: string;
493
+ /** Data format for response. */
494
+ alt?: string;
495
+ /** Application name for which the events are to be retrieved. */
496
+ applicationName: string;
497
+ /** JSONP */
498
+ callback?: string;
499
+ /** The unique ID of the customer to retrieve data for. */
500
+ customerId?: string;
501
+ /** Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past. */
502
+ endTime?: string;
503
+ /** The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`. */
504
+ eventName?: string;
505
+ /** Selector specifying which fields to include in a partial response. */
506
+ fields?: string;
507
+ /** The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned. */
508
+ filters?: string;
509
+ /** Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" */
510
+ groupIdFilter?: string;
511
+ /** 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. */
512
+ key?: string;
513
+ /** Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000. */
514
+ maxResults?: number;
515
+ /** OAuth 2.0 token for the current user. */
516
+ oauth_token?: string;
517
+ /** ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results. */
518
+ orgUnitID?: string;
519
+ /** The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string. */
520
+ pageToken?: string;
521
+ /** Returns response with indentations and line breaks. */
522
+ prettyPrint?: boolean;
523
+ /** 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. */
524
+ quotaUser?: string;
525
+ /** Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. */
526
+ startTime?: string;
527
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
528
+ upload_protocol?: string;
529
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
530
+ uploadType?: string;
531
+ /** Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`. */
532
+ userKey: string;
533
+ /** Request body */
534
+ resource: Channel;
535
+ }): Request<Channel>;
536
+ watch(
537
+ request: {
538
+ /** V1 error format. */
539
+ '$.xgafv'?: string;
540
+ /** OAuth access token. */
541
+ access_token?: string;
542
+ /** The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions. */
543
+ actorIpAddress?: string;
544
+ /** Data format for response. */
545
+ alt?: string;
546
+ /** Application name for which the events are to be retrieved. */
547
+ applicationName: string;
548
+ /** JSONP */
549
+ callback?: string;
550
+ /** The unique ID of the customer to retrieve data for. */
551
+ customerId?: string;
552
+ /** Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180 days if the `startTime` is more than 180 days in the past. */
553
+ endTime?: string;
554
+ /** The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`. */
555
+ eventName?: string;
556
+ /** Selector specifying which fields to include in a partial response. */
557
+ fields?: string;
558
+ /** The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator. In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345 GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned. */
559
+ filters?: string;
560
+ /** Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" */
561
+ groupIdFilter?: string;
562
+ /** 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. */
563
+ key?: string;
564
+ /** Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000. */
565
+ maxResults?: number;
566
+ /** OAuth 2.0 token for the current user. */
567
+ oauth_token?: string;
568
+ /** ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results. */
569
+ orgUnitID?: string;
570
+ /** The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string. */
571
+ pageToken?: string;
572
+ /** Returns response with indentations and line breaks. */
573
+ prettyPrint?: boolean;
574
+ /** 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. */
575
+ quotaUser?: string;
576
+ /** Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error. */
577
+ startTime?: string;
578
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
579
+ upload_protocol?: string;
580
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
581
+ uploadType?: string;
582
+ /** Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`. */
583
+ userKey: string;
584
+ },
585
+ body: Channel
586
+ ): Request<Channel>;
587
+ }
588
+ interface CustomerUsageReportsResource {
589
+ /** Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more information about the customer report's parameters, see the Customers Usage parameters reference guides. */
590
+ get(request?: {
591
+ /** V1 error format. */
592
+ '$.xgafv'?: string;
593
+ /** OAuth access token. */
594
+ access_token?: string;
595
+ /** Data format for response. */
596
+ alt?: string;
597
+ /** JSONP */
598
+ callback?: string;
599
+ /** The unique ID of the customer to retrieve data for. */
600
+ customerId?: string;
601
+ /** Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. */
602
+ date: string;
603
+ /** Selector specifying which fields to include in a partial response. */
604
+ fields?: string;
605
+ /** 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. */
606
+ key?: string;
607
+ /** OAuth 2.0 token for the current user. */
608
+ oauth_token?: string;
609
+ /** Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken` query string. */
610
+ pageToken?: string;
611
+ /** The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned. */
612
+ parameters?: string;
613
+ /** Returns response with indentations and line breaks. */
614
+ prettyPrint?: boolean;
615
+ /** 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. */
616
+ quotaUser?: string;
617
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
618
+ upload_protocol?: string;
619
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
620
+ uploadType?: string;
621
+ }): Request<UsageReports>;
622
+ }
623
+ interface EntityUsageReportsResource {
624
+ /** Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report's parameters, see the Entities Usage parameters reference guides. */
625
+ get(request?: {
626
+ /** V1 error format. */
627
+ '$.xgafv'?: string;
628
+ /** OAuth access token. */
629
+ access_token?: string;
630
+ /** Data format for response. */
631
+ alt?: string;
632
+ /** JSONP */
633
+ callback?: string;
634
+ /** The unique ID of the customer to retrieve data for. */
635
+ customerId?: string;
636
+ /** Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. */
637
+ date: string;
638
+ /** Represents the key of the object to filter the data with. It is a string which can take the value `all` to get activity events for all users, or any other value for an app-specific entity. For details on how to obtain the `entityKey` for a particular `entityType`, see the Entities Usage parameters reference guides. */
639
+ entityKey: string;
640
+ /** Represents the type of entity for the report. */
641
+ entityType: string;
642
+ /** Selector specifying which fields to include in a partial response. */
643
+ fields?: string;
644
+ /** The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include `accounts`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `<>` 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:num_total_members%3C%3E0 The relational operators include: - `==` - 'equal to'. - `<>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is URL-encoded (%3C). - `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). - `>=` - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters. */
645
+ filters?: string;
646
+ /** 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. */
647
+ key?: string;
648
+ /** Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. */
649
+ maxResults?: number;
650
+ /** OAuth 2.0 token for the current user. */
651
+ oauth_token?: string;
652
+ /** Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string. */
653
+ pageToken?: string;
654
+ /** The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Entities usage report are only `gplus`. A `parameter` query string is in the CSV form of `[app_name1:param_name1], [app_name2:param_name2]...`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned. */
655
+ parameters?: string;
656
+ /** Returns response with indentations and line breaks. */
657
+ prettyPrint?: boolean;
658
+ /** 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. */
659
+ quotaUser?: string;
660
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
661
+ upload_protocol?: string;
662
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
663
+ uploadType?: string;
664
+ }): Request<UsageReports>;
665
+ }
666
+ interface UserUsageReportResource {
667
+ /** Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides. */
668
+ get(request?: {
669
+ /** V1 error format. */
670
+ '$.xgafv'?: string;
671
+ /** OAuth access token. */
672
+ access_token?: string;
673
+ /** Data format for response. */
674
+ alt?: string;
675
+ /** JSONP */
676
+ callback?: string;
677
+ /** The unique ID of the customer to retrieve data for. */
678
+ customerId?: string;
679
+ /** Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`. */
680
+ date: string;
681
+ /** Selector specifying which fields to include in a partial response. */
682
+ fields?: string;
683
+ /** The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include `accounts`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `<>` 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time%3C%3E2010-10-28T10:26:35.000Z The relational operators include: - `==` - 'equal to'. - `<>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is URL-encoded (%3C). - `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). - `>=` - 'greater than or equal to'. It is URL-encoded (%3E=). */
684
+ filters?: string;
685
+ /** Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" */
686
+ groupIdFilter?: string;
687
+ /** 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. */
688
+ key?: string;
689
+ /** Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional. */
690
+ maxResults?: number;
691
+ /** OAuth 2.0 token for the current user. */
692
+ oauth_token?: string;
693
+ /** ID of the organizational unit to report on. User activity will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results. */
694
+ orgUnitID?: string;
695
+ /** Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken` query string. */
696
+ pageToken?: string;
697
+ /** The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers Usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned. */
698
+ parameters?: string;
699
+ /** Returns response with indentations and line breaks. */
700
+ prettyPrint?: boolean;
701
+ /** 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. */
702
+ quotaUser?: string;
703
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
704
+ upload_protocol?: string;
705
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
706
+ uploadType?: string;
707
+ /** Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the `userKey`. */
708
+ userKey: string;
709
+ }): Request<UsageReports>;
384
710
  }
385
- namespace reports {
386
- interface Activities {
387
- /** ETag of the resource. */
388
- etag?:
389
- string;
390
- /** Each activity record in the response. */
391
- items?:
392
- Activity[];
393
- /** The type of API resource. For an activity report, the value is `reports#activities`. */
394
- kind?:
395
- string;
396
- /** Token for retrieving the follow-on next page of the report. The `nextPageToken` value is used in the request's `pageToken` query string. */
397
- nextPageToken?:
398
- string;
399
- }
400
- interface Activity {
401
- /** User doing the action. */
402
- actor?:
403
- {
404
- /** The type of actor. */
405
- callerType?:
406
- string;
407
- /** The primary email address of the actor. May be absent if there is no email address associated with the actor. */
408
- email?:
409
- string;
410
- /** Only present when `callerType` is `KEY`. Can be the `consumer_key` of the requestor for OAuth 2LO API requests or an identifier for robot accounts. */
411
- key?:
412
- string;
413
- /**
414
- * The unique Google Workspace profile ID of the actor. This value might be absent if the actor is not a Google Workspace user, or may be the number 105250506097979753968 which
415
- * acts as a placeholder ID.
416
- */
417
- profileId?:
418
- string;
419
- };
420
- /** ETag of the entry. */
421
- etag?:
422
- string;
423
- /** Activity events in the report. */
424
- events?:
425
- Array<{
426
- /**
427
- * Name of the event. This is the specific name of the activity reported by the API. And each `eventName` is related to a specific Google Workspace service or feature which the
428
- * API organizes into types of events. For `eventName` request parameters in general: - If no `eventName` is given, the report returns all possible instances of an `eventName`.
429
- * - When you request an `eventName`, the API's response returns all activities which contain that `eventName`. It is possible that the returned activities will have other
430
- * `eventName` properties in addition to the one requested. For more information about `eventName` properties, see the list of event names for various applications above in
431
- * `applicationName`.
432
- */
433
- name?:
434
- string;
435
- /**
436
- * Parameter value pairs for various applications. For more information about `eventName` parameters, see the list of event names for various applications above in
437
- * `applicationName`.
438
- */
439
- parameters?:
440
- Array<{
441
- /** Boolean value of the parameter. */
442
- boolValue?:
443
- boolean;
444
- /** Integer value of the parameter. */
445
- intValue?:
446
- string;
447
- /**
448
- * Nested parameter value pairs associated with this parameter. Complex value type for a parameter are returned as a list of parameter values. For example, the address
449
- * parameter may have a value as `[{parameter: [{name: city, value: abc}]}]`
450
- */
451
- messageValue?:
452
- {
453
- /** Parameter values */
454
- parameter?:
455
- NestedParameter[];
456
- };
457
- /** Integer values of the parameter. */
458
- multiIntValue?:
459
- string[];
460
- /** List of `messageValue` objects. */
461
- multiMessageValue?:
462
- Array<{
463
- /** Parameter values */
464
- parameter?:
465
- NestedParameter[];
466
- }>;
467
- /** String values of the parameter. */
468
- multiValue?:
469
- string[];
470
- /** The name of the parameter. */
471
- name?:
472
- string;
473
- /** String value of the parameter. */
474
- value?:
475
- string;
476
- }>;
477
- /**
478
- * Type of event. The Google Workspace service or feature that an administrator changes is identified in the `type` property which identifies an event using the `eventName`
479
- * property. For a full list of the API's `type` categories, see the list of event names for various applications above in `applicationName`.
480
- */
481
- type?:
482
- string;
483
- }>;
484
- /** Unique identifier for each activity record. */
485
- id?:
486
- {
487
- /** Application name to which the event belongs. For possible values see the list of applications above in `applicationName`. */
488
- applicationName?:
489
- string;
490
- /** The unique identifier for a Google Workspace account. */
491
- customerId?:
492
- string;
493
- /** Time of occurrence of the activity. This is in UNIX epoch time in seconds. */
494
- time?:
495
- string;
496
- /** Unique qualifier if multiple events have the same time. */
497
- uniqueQualifier?:
498
- string;
499
- };
500
- /**
501
- * IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical
502
- * location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6.
503
- */
504
- ipAddress?:
505
- string;
506
- /** The type of API resource. For an activity report, the value is `audit#activity`. */
507
- kind?:
508
- string;
509
- /** This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner. */
510
- ownerDomain?:
511
- string;
512
- }
513
- interface Channel {
514
- /** The address where notifications are delivered for this channel. */
515
- address?:
516
- string;
517
- /** Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. */
518
- expiration?:
519
- string;
520
- /** A UUID or similar unique string that identifies this channel. */
521
- id?:
522
- string;
523
- /** Identifies this as a notification channel used to watch for changes to a resource, which is "`api#channel`". */
524
- kind?:
525
- string;
526
- /** Additional parameters controlling delivery channel behavior. Optional. */
527
- params?:
528
- { [P in string]: string };
529
- /**
530
- * A Boolean value to indicate whether payload is wanted. A payload is data that is sent in the body of an HTTP POST, PUT, or PATCH message and contains important information about the
531
- * request. Optional.
532
- */
533
- payload?:
534
- boolean;
535
- /** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
536
- resourceId?:
537
- string;
538
- /** A version-specific identifier for the watched resource. */
539
- resourceUri?:
540
- string;
541
- /** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
542
- token?:
543
- string;
544
- /** The type of delivery mechanism used for this channel. The value should be set to `"web_hook"`. */
545
- type?:
546
- string;
547
- }
548
- interface NestedParameter {
549
- /** Boolean value of the parameter. */
550
- boolValue?:
551
- boolean;
552
- /** Integer value of the parameter. */
553
- intValue?:
554
- string;
555
- /** Multiple boolean values of the parameter. */
556
- multiBoolValue?:
557
- boolean[];
558
- /** Multiple integer values of the parameter. */
559
- multiIntValue?:
560
- string[];
561
- /** Multiple string values of the parameter. */
562
- multiValue?:
563
- string[];
564
- /** The name of the parameter. */
565
- name?:
566
- string;
567
- /** String value of the parameter. */
568
- value?:
569
- string;
570
- }
571
- interface UsageReport {
572
- /** Output only. The date of the report request. */
573
- date?:
574
- string;
575
- /** Output only. Information about the type of the item. */
576
- entity?:
577
- {
578
- /** Output only. The unique identifier of the customer's account. */
579
- customerId?:
580
- string;
581
- /** Output only. Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of report is "Entities" rather than "Objects". */
582
- entityId?:
583
- string;
584
- /** Output only. The user's immutable Google Workspace profile identifier. */
585
- profileId?:
586
- string;
587
- /** Output only. The type of item. The value is `user`. */
588
- type?:
589
- string;
590
- /** Output only. The user's email address. Only relevant if entity.type = "USER" */
591
- userEmail?:
592
- string;
593
- };
594
- /** ETag of the resource. */
595
- etag?:
596
- string;
597
- /** The type of API resource. For a usage report, the value is `admin#reports#usageReport`. */
598
- kind?:
599
- string;
600
- /**
601
- * Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters and values, see [the Entity Usage parameters
602
- * reference](/admin-sdk/reports/v1/reference/usage-ref-appendix-a/entities).
603
- */
604
- parameters?:
605
- Array<{
606
- /** Output only. Boolean value of the parameter. */
607
- boolValue?:
608
- boolean;
609
- /** The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35.000Z. */
610
- datetimeValue?:
611
- string;
612
- /** Output only. Integer value of the parameter. */
613
- intValue?:
614
- string;
615
- /** Output only. Nested message value of the parameter. */
616
- msgValue?:
617
- Array<{ [P in string]: any }>;
618
- /** The name of the parameter. For the User Usage Report parameter names, see the User Usage parameters reference. */
619
- name?:
620
- string;
621
- /** Output only. String value of the parameter. */
622
- stringValue?:
623
- string;
624
- }>;
625
- }
626
- interface UsageReports {
627
- /** ETag of the resource. */
628
- etag?:
629
- string;
630
- /** The type of API resource. For a usage report, the value is `admin#reports#usageReports`. */
631
- kind?:
632
- string;
633
- /**
634
- * Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the
635
- * `nextPageToken` value in the `pageToken` query string.
636
- */
637
- nextPageToken?:
638
- string;
639
- /** Various application parameter records. */
640
- usageReports?:
641
- UsageReport[];
642
- /** Warnings, if any. */
643
- warnings?:
644
- Array<{
645
- /** Machine readable code or warning type. The warning code value is `200`. */
646
- code?:
647
- string;
648
- /** Key-value pairs to give detailed information on the warning. */
649
- data?:
650
- Array<{
651
- /** Key associated with a key-value pair to give detailed information on the warning. */
652
- key?:
653
- string;
654
- /** Value associated with a key-value pair to give detailed information on the warning. */
655
- value?:
656
- string;
657
- }>;
658
- /**
659
- * The human readable messages for a warning are: - Data is not available warning - Sorry, data for date yyyy-mm-dd for application "`application name`" is not available. -
660
- * Partial data is available warning - Data for date yyyy-mm-dd for application "`application name`" is not available right now, please try again after a few hours.
661
- */
662
- message?:
663
- string;
664
- }>;
665
- }
666
- interface ActivitiesResource {
667
- /**
668
- * Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the
669
- * guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.
670
- */
671
- list(request?: {
672
- /** V1 error format. */
673
- "$.xgafv"?:
674
- string;
675
- /** OAuth access token. */
676
- access_token?:
677
- string;
678
- /**
679
- * The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity
680
- * is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private
681
- * network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
682
- */
683
- actorIpAddress?:
684
- string;
685
- /** Data format for response. */
686
- alt?:
687
- string;
688
- /** Application name for which the events are to be retrieved. */
689
- applicationName:
690
- string;
691
- /** JSONP */
692
- callback?:
693
- string;
694
- /** The unique ID of the customer to retrieve data for. */
695
- customerId?:
696
- string;
697
- /**
698
- * Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the
699
- * API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The
700
- * beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an
701
- * error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The
702
- * report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180
703
- * days if the `startTime` is more than 180 days in the past.
704
- */
705
- endTime?:
706
- string;
707
- /**
708
- * The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An
709
- * example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported
710
- * by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information
711
- * about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`.
712
- */
713
- eventName?:
714
- string;
715
- /** Selector specifying which fields to include in a partial response. */
716
- fields?:
717
- string;
718
- /**
719
- * The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1
720
- * name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An
721
- * empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their
722
- * associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the
723
- * following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator.
724
- * In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the
725
- * `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345
726
- * GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded
727
- * (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). *
728
- * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in
729
- * the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and
730
- * returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.
731
- */
732
- filters?:
733
- string;
734
- /**
735
- * Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of
736
- * the group ids mentioned here. Format: "id:abc123,id:xyz456"
737
- */
738
- groupIdFilter?:
739
- string;
740
- /** 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. */
741
- key?:
742
- string;
743
- /**
744
- * Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two
745
- * pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000.
746
- */
747
- maxResults?:
748
- number;
749
- /** OAuth 2.0 token for the current user. */
750
- oauth_token?:
751
- string;
752
- /**
753
- * ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't
754
- * appear in the filtered results.
755
- */
756
- orgUnitID?:
757
- string;
758
- /**
759
- * The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter
760
- * the `nextPageToken` value in the `pageToken` query string.
761
- */
762
- pageToken?:
763
- string;
764
- /** Returns response with indentations and line breaks. */
765
- prettyPrint?:
766
- boolean;
767
- /** 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. */
768
- quotaUser?:
769
- string;
770
- /**
771
- * Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from
772
- * `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error.
773
- */
774
- startTime?:
775
- string;
776
- /** Upload protocol for media (e.g. "raw", "multipart"). */
777
- upload_protocol?:
778
- string;
779
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
780
- uploadType?:
781
- string;
782
- /**
783
- * Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID
784
- * or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the
785
- * `userKey`.
786
- */
787
- userKey:
788
- string;
789
- }): Request<Activities>;
790
- /** Start receiving notifications for account activities. For more information, see Receiving Push Notifications. */
791
- watch(request: {
792
- /** V1 error format. */
793
- "$.xgafv"?:
794
- string;
795
- /** OAuth access token. */
796
- access_token?:
797
- string;
798
- /**
799
- * The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity
800
- * is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private
801
- * network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
802
- */
803
- actorIpAddress?:
804
- string;
805
- /** Data format for response. */
806
- alt?:
807
- string;
808
- /** Application name for which the events are to be retrieved. */
809
- applicationName:
810
- string;
811
- /** JSONP */
812
- callback?:
813
- string;
814
- /** The unique ID of the customer to retrieve data for. */
815
- customerId?:
816
- string;
817
- /**
818
- * Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the
819
- * API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The
820
- * beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an
821
- * error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The
822
- * report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180
823
- * days if the `startTime` is more than 180 days in the past.
824
- */
825
- endTime?:
826
- string;
827
- /**
828
- * The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An
829
- * example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported
830
- * by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information
831
- * about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`.
832
- */
833
- eventName?:
834
- string;
835
- /** Selector specifying which fields to include in a partial response. */
836
- fields?:
837
- string;
838
- /**
839
- * The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1
840
- * name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An
841
- * empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their
842
- * associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the
843
- * following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator.
844
- * In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the
845
- * `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345
846
- * GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded
847
- * (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). *
848
- * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in
849
- * the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and
850
- * returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.
851
- */
852
- filters?:
853
- string;
854
- /**
855
- * Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of
856
- * the group ids mentioned here. Format: "id:abc123,id:xyz456"
857
- */
858
- groupIdFilter?:
859
- string;
860
- /** 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. */
861
- key?:
862
- string;
863
- /**
864
- * Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two
865
- * pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000.
866
- */
867
- maxResults?:
868
- number;
869
- /** OAuth 2.0 token for the current user. */
870
- oauth_token?:
871
- string;
872
- /**
873
- * ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't
874
- * appear in the filtered results.
875
- */
876
- orgUnitID?:
877
- string;
878
- /**
879
- * The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter
880
- * the `nextPageToken` value in the `pageToken` query string.
881
- */
882
- pageToken?:
883
- string;
884
- /** Returns response with indentations and line breaks. */
885
- prettyPrint?:
886
- boolean;
887
- /** 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. */
888
- quotaUser?:
889
- string;
890
- /**
891
- * Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from
892
- * `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error.
893
- */
894
- startTime?:
895
- string;
896
- /** Upload protocol for media (e.g. "raw", "multipart"). */
897
- upload_protocol?:
898
- string;
899
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
900
- uploadType?:
901
- string;
902
- /**
903
- * Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID
904
- * or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the
905
- * `userKey`.
906
- */
907
- userKey:
908
- string;
909
- /** Request body */
910
- resource:
911
- Channel;
912
- }): Request<Channel>;
913
- watch(request: {
914
- /** V1 error format. */
915
- "$.xgafv"?:
916
- string;
917
- /** OAuth access token. */
918
- access_token?:
919
- string;
920
- /**
921
- * The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity
922
- * is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private
923
- * network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
924
- */
925
- actorIpAddress?:
926
- string;
927
- /** Data format for response. */
928
- alt?:
929
- string;
930
- /** Application name for which the events are to be retrieved. */
931
- applicationName:
932
- string;
933
- /** JSONP */
934
- callback?:
935
- string;
936
- /** The unique ID of the customer to retrieve data for. */
937
- customerId?:
938
- string;
939
- /**
940
- * Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the
941
- * API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The
942
- * beginning of the timespan shown in the report. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an
943
- * error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The
944
- * report itself can be requested in August. If the `endTime` is not specified, the report returns all activities from the `startTime` until the current time or the most recent 180
945
- * days if the `startTime` is more than 180 days in the past.
946
- */
947
- endTime?:
948
- string;
949
- /**
950
- * The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An
951
- * example is the Google Calendar events in the Admin console application's reports. The Calendar Settings `type` structure has all of the Calendar `eventName` activities reported
952
- * by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings `type` and `eventName` parameters. For more information
953
- * about `eventName` query strings and parameters, see the list of event names for various applications above in `applicationName`.
954
- */
955
- eventName?:
956
- string;
957
- /** Selector specifying which fields to include in a partial response. */
958
- fields?:
959
- string;
960
- /**
961
- * The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1
962
- * name}{relational operator}{parameter1 value},{parameter2 name}{relational operator}{parameter2 value},...` These event parameters are associated with a specific `eventName`. An
963
- * empty report is returned if the request's parameter doesn't belong to the `eventName`. For more information about the available `eventName` fields for each application and their
964
- * associated parameters, go to the [ApplicationName](#applicationname) table, then click through to the Activity Events page in the Appendix for the application you want. In the
965
- * following Drive activity examples, the returned list consists of all `edit` events where the `doc_id` parameter value matches the conditions defined by the relational operator.
966
- * In the first example, the request returns all edited documents with a `doc_id` value equal to `12345`. In the second example, the report returns any edited documents where the
967
- * `doc_id` value is not equal to `98765`. The `<>` operator is URL-encoded in the request's query string (`%3C%3E`): ``` GET...&eventName=edit&filters=doc_id==12345
968
- * GET...&eventName=edit&filters=doc_id%3C%3E98765 ``` A `filters` query supports these relational operators: * `==`—'equal to'. * `<>`—'not equal to'. Must be URL-encoded
969
- * (%3C%3E). * `<`—'less than'. Must be URL-encoded (%3C). * `<=`—'less than or equal to'. Must be URL-encoded (%3C=). * `>`—'greater than'. Must be URL-encoded (%3E). *
970
- * `>=`—'greater than or equal to'. Must be URL-encoded (%3E=). **Note:** The API doesn't accept multiple values of the same parameter. If a parameter is supplied more than once in
971
- * the API request, the API only accepts the last value of that parameter. In addition, if an invalid parameter is supplied in the API request, the API ignores that parameter and
972
- * returns the response corresponding to the remaining valid parameters. If no parameters are requested, all parameters are returned.
973
- */
974
- filters?:
975
- string;
976
- /**
977
- * Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of
978
- * the group ids mentioned here. Format: "id:abc123,id:xyz456"
979
- */
980
- groupIdFilter?:
981
- string;
982
- /** 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. */
983
- key?:
984
- string;
985
- /**
986
- * Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two
987
- * pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional in the request. The default value is 1000.
988
- */
989
- maxResults?:
990
- number;
991
- /** OAuth 2.0 token for the current user. */
992
- oauth_token?:
993
- string;
994
- /**
995
- * ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't
996
- * appear in the filtered results.
997
- */
998
- orgUnitID?:
999
- string;
1000
- /**
1001
- * The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter
1002
- * the `nextPageToken` value in the `pageToken` query string.
1003
- */
1004
- pageToken?:
1005
- string;
1006
- /** Returns response with indentations and line breaks. */
1007
- prettyPrint?:
1008
- boolean;
1009
- /** 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. */
1010
- quotaUser?:
1011
- string;
1012
- /**
1013
- * Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from
1014
- * `startTime` until `endTime`. The `startTime` must be before the `endTime` (if specified) and the current time when the request is made, or the API returns an error.
1015
- */
1016
- startTime?:
1017
- string;
1018
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1019
- upload_protocol?:
1020
- string;
1021
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1022
- uploadType?:
1023
- string;
1024
- /**
1025
- * Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID
1026
- * or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the
1027
- * `userKey`.
1028
- */
1029
- userKey:
1030
- string;
1031
- },
1032
- body: Channel): Request<Channel>;
1033
- }
1034
- interface CustomerUsageReportsResource {
1035
- /**
1036
- * Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more
1037
- * information about the customer report's parameters, see the Customers Usage parameters reference guides.
1038
- */
1039
- get(request?: {
1040
- /** V1 error format. */
1041
- "$.xgafv"?:
1042
- string;
1043
- /** OAuth access token. */
1044
- access_token?:
1045
- string;
1046
- /** Data format for response. */
1047
- alt?:
1048
- string;
1049
- /** JSONP */
1050
- callback?:
1051
- string;
1052
- /** The unique ID of the customer to retrieve data for. */
1053
- customerId?:
1054
- string;
1055
- /**
1056
- * Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
1057
- * `yyyy-mm-dd`.
1058
- */
1059
- date:
1060
- string;
1061
- /** Selector specifying which fields to include in a partial response. */
1062
- fields?:
1063
- string;
1064
- /** 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. */
1065
- key?:
1066
- string;
1067
- /** OAuth 2.0 token for the current user. */
1068
- oauth_token?:
1069
- string;
1070
- /**
1071
- * Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the
1072
- * `nextPageToken` value in the `pageToken` query string.
1073
- */
1074
- pageToken?:
1075
- string;
1076
- /**
1077
- * The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The
1078
- * application values for the Customers usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`,
1079
- * `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept
1080
- * multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In
1081
- * addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid
1082
- * request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
1083
- */
1084
- parameters?:
1085
- string;
1086
- /** Returns response with indentations and line breaks. */
1087
- prettyPrint?:
1088
- boolean;
1089
- /** 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. */
1090
- quotaUser?:
1091
- string;
1092
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1093
- upload_protocol?:
1094
- string;
1095
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1096
- uploadType?:
1097
- string;
1098
- }): Request<UsageReports>;
1099
- }
1100
- interface EntityUsageReportsResource {
1101
- /**
1102
- * Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For
1103
- * more information about the entities report's parameters, see the Entities Usage parameters reference guides.
1104
- */
1105
- get(request?: {
1106
- /** V1 error format. */
1107
- "$.xgafv"?:
1108
- string;
1109
- /** OAuth access token. */
1110
- access_token?:
1111
- string;
1112
- /** Data format for response. */
1113
- alt?:
1114
- string;
1115
- /** JSONP */
1116
- callback?:
1117
- string;
1118
- /** The unique ID of the customer to retrieve data for. */
1119
- customerId?:
1120
- string;
1121
- /**
1122
- * Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
1123
- * `yyyy-mm-dd`.
1124
- */
1125
- date:
1126
- string;
1127
- /**
1128
- * Represents the key of the object to filter the data with. It is a string which can take the value `all` to get activity events for all users, or any other value for an
1129
- * app-specific entity. For details on how to obtain the `entityKey` for a particular `entityType`, see the Entities Usage parameters reference guides.
1130
- */
1131
- entityKey:
1132
- string;
1133
- /** Represents the type of entity for the report. */
1134
- entityType:
1135
- string;
1136
- /** Selector specifying which fields to include in a partial response. */
1137
- fields?:
1138
- string;
1139
- /**
1140
- * The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters`
1141
- * query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include `accounts`, `docs`, and
1142
- * `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `<>` 'not equal to' operator is URL-encoded in the request's
1143
- * query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members
1144
- * &filters=gplus:num_total_members%3C%3E0 The relational operators include: - `==` - 'equal to'. - `<>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<` - 'less than'. It is
1145
- * URL-encoded (%3C). - `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). - `>=` - 'greater than or equal to'. It is
1146
- * URL-encoded (%3E=). Filters can only be applied to numeric parameters.
1147
- */
1148
- filters?:
1149
- string;
1150
- /** 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. */
1151
- key?:
1152
- string;
1153
- /**
1154
- * Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two
1155
- * pages. The response's `nextPageToken` property has the token to the second page.
1156
- */
1157
- maxResults?:
1158
- number;
1159
- /** OAuth 2.0 token for the current user. */
1160
- oauth_token?:
1161
- string;
1162
- /**
1163
- * Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the
1164
- * `nextPageToken` value in the `pageToken` query string.
1165
- */
1166
- pageToken?:
1167
- string;
1168
- /**
1169
- * The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The
1170
- * application values for the Entities usage report are only `gplus`. A `parameter` query string is in the CSV form of `[app_name1:param_name1], [app_name2:param_name2]...`.
1171
- * *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of
1172
- * that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response
1173
- * corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are
1174
- * requested, all parameters are returned.
1175
- */
1176
- parameters?:
1177
- string;
1178
- /** Returns response with indentations and line breaks. */
1179
- prettyPrint?:
1180
- boolean;
1181
- /** 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. */
1182
- quotaUser?:
1183
- string;
1184
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1185
- upload_protocol?:
1186
- string;
1187
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1188
- uploadType?:
1189
- string;
1190
- }): Request<UsageReports>;
1191
- }
1192
- interface UserUsageReportResource {
1193
- /**
1194
- * Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more
1195
- * information about the user report's parameters, see the Users Usage parameters reference guides.
1196
- */
1197
- get(request?: {
1198
- /** V1 error format. */
1199
- "$.xgafv"?:
1200
- string;
1201
- /** OAuth access token. */
1202
- access_token?:
1203
- string;
1204
- /** Data format for response. */
1205
- alt?:
1206
- string;
1207
- /** JSONP */
1208
- callback?:
1209
- string;
1210
- /** The unique ID of the customer to retrieve data for. */
1211
- customerId?:
1212
- string;
1213
- /**
1214
- * Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
1215
- * `yyyy-mm-dd`.
1216
- */
1217
- date:
1218
- string;
1219
- /** Selector specifying which fields to include in a partial response. */
1220
- fields?:
1221
- string;
1222
- /**
1223
- * The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters`
1224
- * query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include `accounts`, `docs`, and
1225
- * `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `<>` 'not equal to' operator is URL-encoded in the request's
1226
- * query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time
1227
- * &filters=accounts:last_login_time%3C%3E2010-10-28T10:26:35.000Z The relational operators include: - `==` - 'equal to'. - `<>` - 'not equal to'. It is URL-encoded (%3C%3E). - `<`
1228
- * - 'less than'. It is URL-encoded (%3C). - `<=` - 'less than or equal to'. It is URL-encoded (%3C=). - `>` - 'greater than'. It is URL-encoded (%3E). - `>=` - 'greater than or
1229
- * equal to'. It is URL-encoded (%3E=).
1230
- */
1231
- filters?:
1232
- string;
1233
- /**
1234
- * Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of
1235
- * the group ids mentioned here. Format: "id:abc123,id:xyz456"
1236
- */
1237
- groupIdFilter?:
1238
- string;
1239
- /** 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. */
1240
- key?:
1241
- string;
1242
- /**
1243
- * Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two
1244
- * pages. The response's `nextPageToken` property has the token to the second page. The `maxResults` query string is optional.
1245
- */
1246
- maxResults?:
1247
- number;
1248
- /** OAuth 2.0 token for the current user. */
1249
- oauth_token?:
1250
- string;
1251
- /**
1252
- * ID of the organizational unit to report on. User activity will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear
1253
- * in the filtered results.
1254
- */
1255
- orgUnitID?:
1256
- string;
1257
- /**
1258
- * Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the
1259
- * `nextPageToken` value in the `pageToken` query string.
1260
- */
1261
- pageToken?:
1262
- string;
1263
- /**
1264
- * The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The
1265
- * application values for the Customers Usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`,
1266
- * `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept
1267
- * multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In
1268
- * addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid
1269
- * request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
1270
- */
1271
- parameters?:
1272
- string;
1273
- /** Returns response with indentations and line breaks. */
1274
- prettyPrint?:
1275
- boolean;
1276
- /** 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. */
1277
- quotaUser?:
1278
- string;
1279
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1280
- upload_protocol?:
1281
- string;
1282
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1283
- uploadType?:
1284
- string;
1285
- /**
1286
- * Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID
1287
- * or their primary email address. Must not be a deleted user. For a deleted user, call `users.list` in Directory API with `showDeleted=true`, then use the returned `ID` as the
1288
- * `userKey`.
1289
- */
1290
- userKey:
1291
- string;
1292
- }): Request<UsageReports>;
1293
- }
1294
711
 
1295
- const activities: ActivitiesResource;
712
+ const activities: ActivitiesResource;
1296
713
 
1297
- const customerUsageReports: CustomerUsageReportsResource;
714
+ const customerUsageReports: CustomerUsageReportsResource;
1298
715
 
1299
- const entityUsageReports: EntityUsageReportsResource;
716
+ const entityUsageReports: EntityUsageReportsResource;
1300
717
 
1301
- const userUsageReport: UserUsageReportResource;
1302
- }
718
+ const userUsageReport: UserUsageReportResource;
719
+ }
1303
720
  }