Skip to content

Commit

Permalink
feat(admin)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### admin:directory_v1

The following keys were deleted:
- schemas.ChromeOsDevice.properties.recentUsers.items.$ref
- schemas.RecentUsers.description
- schemas.RecentUsers.id
- schemas.RecentUsers.properties.email.description
- schemas.RecentUsers.properties.email.type
- schemas.RecentUsers.properties.type.description
- schemas.RecentUsers.properties.type.type
- schemas.RecentUsers.type

The following keys were added:
- schemas.ChromeOsDevice.properties.recentUsers.items.description
- schemas.ChromeOsDevice.properties.recentUsers.items.properties.email.description
- schemas.ChromeOsDevice.properties.recentUsers.items.properties.email.type
- schemas.ChromeOsDevice.properties.recentUsers.items.properties.type.description
- schemas.ChromeOsDevice.properties.recentUsers.items.properties.type.type
- schemas.ChromeOsDevice.properties.recentUsers.items.type
  • Loading branch information
yoshi-automation authored and bcoe committed May 3, 2021
1 parent 5e1a4c2 commit 66803e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 31 deletions.
30 changes: 13 additions & 17 deletions discovery/admin-directory_v1.json
Expand Up @@ -4417,7 +4417,7 @@
}
}
},
"revision": "20210420",
"revision": "20210427",
"rootUrl": "https://admin.googleapis.com/",
"schemas": {
"Alias": {
Expand Down Expand Up @@ -5146,7 +5146,18 @@
"recentUsers": {
"description": "List of recent device users, in descending order, by last login time.",
"items": {
"$ref": "RecentUsers"
"description": "List of recent device users, in descending order, by last login time.",
"properties": {
"email": {
"description": "The user's email address. This is only present if the user type is `USER_TYPE_MANAGED`.",
"type": "string"
},
"type": {
"description": "The type of the user.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
Expand Down Expand Up @@ -6486,21 +6497,6 @@
},
"type": "object"
},
"RecentUsers": {
"description": "List of recent device users, in descending order, by last login time.",
"id": "RecentUsers",
"properties": {
"email": {
"description": "The user's email address. This is only present if the user type is `USER_TYPE_MANAGED`.",
"type": "string"
},
"type": {
"description": "The type of the user.",
"type": "string"
}
},
"type": "object"
},
"Role": {
"id": "Role",
"properties": {
Expand Down
15 changes: 1 addition & 14 deletions src/apis/admin/directory_v1.ts
Expand Up @@ -661,7 +661,7 @@ export namespace admin_directory_v1 {
/**
* List of recent device users, in descending order, by last login time.
*/
recentUsers?: Schema$RecentUsers[];
recentUsers?: Array<{email?: string; type?: string}> | null;
/**
* List of screenshot files to download. Type is always "SCREENSHOT_FILE". (Read-only)
*/
Expand Down Expand Up @@ -1576,19 +1576,6 @@ export namespace admin_directory_v1 {
*/
kind?: string | null;
}
/**
* List of recent device users, in descending order, by last login time.
*/
export interface Schema$RecentUsers {
/**
* The user's email address. This is only present if the user type is `USER_TYPE_MANAGED`.
*/
email?: string | null;
/**
* The type of the user.
*/
type?: string | null;
}
export interface Schema$Role {
/**
* ETag of the resource.
Expand Down

0 comments on commit 66803e3

Please sign in to comment.