Skip to content

Commit

Permalink
feat(admin): update the API
Browse files Browse the repository at this point in the history
#### admin:directory_v1

The following keys were added:
- resources.users.resources.aliases.methods.list.parameters.event.description
- resources.users.resources.aliases.methods.list.parameters.event.enum
- resources.users.resources.aliases.methods.list.parameters.event.enumDescriptions
- resources.users.resources.aliases.methods.list.parameters.event.location
- resources.users.resources.aliases.methods.list.parameters.event.type
- schemas.RoleAssignment.description

#### admin:reports_v1

The following keys were changed:
- resources.activities.methods.list.parameters.applicationName.enum
- resources.activities.methods.list.parameters.applicationName.enumDescriptions
- resources.activities.methods.list.parameters.applicationName.pattern
- resources.activities.methods.watch.parameters.applicationName.enum
- resources.activities.methods.watch.parameters.applicationName.enumDescriptions
- resources.activities.methods.watch.parameters.applicationName.pattern
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent 8657058 commit b1f8dfa
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
16 changes: 15 additions & 1 deletion discovery/admin-directory_v1.json
Expand Up @@ -4164,6 +4164,19 @@
"userKey"
],
"parameters": {
"event": {
"description": "Events to watch for.",
"enum": [
"add",
"delete"
],
"enumDescriptions": [
"Alias Created Event",
"Alias Deleted Event"
],
"location": "query",
"type": "string"
},
"userKey": {
"description": "Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.",
"location": "path",
Expand Down Expand Up @@ -4404,7 +4417,7 @@
}
}
},
"revision": "20210323",
"revision": "20210413",
"rootUrl": "https://admin.googleapis.com/",
"schemas": {
"Alias": {
Expand Down Expand Up @@ -6552,6 +6565,7 @@
"type": "object"
},
"RoleAssignment": {
"description": "Defines an assignment of a role.",
"id": "RoleAssignment",
"properties": {
"assignedTo": {
Expand Down
18 changes: 11 additions & 7 deletions discovery/admin-reports_v1.json
Expand Up @@ -148,7 +148,8 @@
"user_accounts",
"context_aware_access",
"chrome",
"data_studio"
"data_studio",
"keep"
],
"enumDescriptions": [
"The Google Workspace Access Transparency activity reports return information about different types of Access Transparency activity events.",
Expand All @@ -170,10 +171,11 @@
"The User Accounts application's activity reports return account information about different types of User Accounts activity events.",
"The Context-aware access activity reports return information about users' access denied events due to Context-aware access rules.",
"The Chrome activity reports return information about unsafe events reported in the context of the WebProtect features of BeyondCorp.",
"The Data Studio activity reports return information about various types of Data Studio activity events."
"The Data Studio activity reports return information about various types of Data Studio activity events.",
"The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers."
],
"location": "path",
"pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)",
"pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -285,7 +287,8 @@
"user_accounts",
"context_aware_access",
"chrome",
"data_studio"
"data_studio",
"keep"
],
"enumDescriptions": [
"The Google Workspace Access Transparency activity reports return information about different types of Access Transparency activity events.",
Expand All @@ -307,10 +310,11 @@
"The User Accounts application's activity reports return account information about different types of User Accounts activity events.",
"The Context-aware access activity reports return information about users' access denied events due to Context-aware access rules.",
"The Chrome activity reports return information about unsafe events reported in the context of the WebProtect features of BeyondCorp.",
"The Data Studio activity reports return information about various types of Data Studio activity events."
"The Data Studio activity reports return information about various types of Data Studio activity events.",
"The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers."
],
"location": "path",
"pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)",
"pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -627,7 +631,7 @@
}
}
},
"revision": "20210323",
"revision": "20210413",
"rootUrl": "https://admin.googleapis.com/",
"schemas": {
"Activities": {
Expand Down
9 changes: 9 additions & 0 deletions src/apis/admin/directory_v1.ts
Expand Up @@ -1623,6 +1623,9 @@ export namespace admin_directory_v1 {
*/
rolePrivileges?: Array<{privilegeName?: string; serviceId?: string}> | null;
}
/**
* Defines an assignment of a role.
*/
export interface Schema$RoleAssignment {
/**
* The unique ID of the user this role is assigned to.
Expand Down Expand Up @@ -20148,6 +20151,8 @@ export namespace admin_directory_v1 {
*
* // Do the magic
* const res = await directory.users.aliases.list({
* // Events to watch for.
* event: 'placeholder-value',
* // Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
* userKey: 'placeholder-value',
* });
Expand Down Expand Up @@ -20438,6 +20443,10 @@ export namespace admin_directory_v1 {
}
export interface Params$Resource$Users$Aliases$List
extends StandardParameters {
/**
* Events to watch for.
*/
event?: string;
/**
* Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/apis/admin/reports_v1.ts
Expand Up @@ -392,7 +392,7 @@ export namespace admin_reports_v1 {
* actorIpAddress: 'placeholder-value',
* // Application name for which the events are to be retrieved.
* applicationName:
* '(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)',
* '(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)',
* // The unique ID of the customer to retrieve data for.
* customerId: 'C.+|my_customer',
* // 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.
Expand Down Expand Up @@ -548,7 +548,7 @@ export namespace admin_reports_v1 {
* actorIpAddress: 'placeholder-value',
* // Application name for which the events are to be retrieved.
* applicationName:
* '(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)',
* '(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)',
* // The unique ID of the customer to retrieve data for.
* customerId: 'C.+|my_customer',
* // 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.
Expand Down

0 comments on commit b1f8dfa

Please sign in to comment.