Skip to content

Commit

Permalink
feat(androidenterprise)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### androidenterprise:v1
The following keys were deleted:
- resources.users.methods.generateToken.description
- resources.users.methods.generateToken.httpMethod
- resources.users.methods.generateToken.id
- resources.users.methods.generateToken.parameterOrder
- resources.users.methods.generateToken.parameters.enterpriseId.description
- resources.users.methods.generateToken.parameters.enterpriseId.location
- resources.users.methods.generateToken.parameters.enterpriseId.required
- resources.users.methods.generateToken.parameters.enterpriseId.type
- resources.users.methods.generateToken.parameters.userId.description
- resources.users.methods.generateToken.parameters.userId.location
- resources.users.methods.generateToken.parameters.userId.required
- resources.users.methods.generateToken.parameters.userId.type
- resources.users.methods.generateToken.path
- resources.users.methods.generateToken.response.$ref
- resources.users.methods.generateToken.scopes
- resources.users.methods.revokeToken.description
- resources.users.methods.revokeToken.httpMethod
- resources.users.methods.revokeToken.id
- resources.users.methods.revokeToken.parameterOrder
- resources.users.methods.revokeToken.parameters.enterpriseId.description
- resources.users.methods.revokeToken.parameters.enterpriseId.location
- resources.users.methods.revokeToken.parameters.enterpriseId.required
- resources.users.methods.revokeToken.parameters.enterpriseId.type
- resources.users.methods.revokeToken.parameters.userId.description
- resources.users.methods.revokeToken.parameters.userId.location
- resources.users.methods.revokeToken.parameters.userId.required
- resources.users.methods.revokeToken.parameters.userId.type
- resources.users.methods.revokeToken.path
- resources.users.methods.revokeToken.scopes
- schemas.UserToken.description
- schemas.UserToken.id
- schemas.UserToken.properties.kind.default
- schemas.UserToken.properties.kind.type
- schemas.UserToken.properties.token.description
- schemas.UserToken.properties.token.type
- schemas.UserToken.properties.userId.description
- schemas.UserToken.properties.userId.type
- schemas.UserToken.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 5, 2020
1 parent 4512da0 commit fe47e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 377 deletions.
80 changes: 2 additions & 78 deletions discovery/androidenterprise-v1.json
Expand Up @@ -15,7 +15,7 @@
"description": "Manages the deployment of apps to Android for Work users.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android/work/play/emm-api",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/i4NjzneJMSibgNsZXFFIJfd2Chs\"",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/Ph7VzhTH5N57CHDACLQZ-ysuiso\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
Expand Down Expand Up @@ -2144,36 +2144,6 @@
"https://www.googleapis.com/auth/androidenterprise"
]
},
"generateToken": {
"description": "Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token.\n\nThis call only works with Google managed accounts.",
"httpMethod": "POST",
"id": "androidenterprise.users.generateToken",
"parameterOrder": [
"enterpriseId",
"userId"
],
"parameters": {
"enterpriseId": {
"description": "The ID of the enterprise.",
"location": "path",
"required": true,
"type": "string"
},
"userId": {
"description": "The ID of the user.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "enterprises/{enterpriseId}/users/{userId}/token",
"response": {
"$ref": "UserToken"
},
"scopes": [
"https://www.googleapis.com/auth/androidenterprise"
]
},
"get": {
"description": "Retrieves a user's details.",
"httpMethod": "GET",
Expand Down Expand Up @@ -2317,33 +2287,6 @@
"https://www.googleapis.com/auth/androidenterprise"
]
},
"revokeToken": {
"description": "Revokes a previously generated token (activation code) for the user.",
"httpMethod": "DELETE",
"id": "androidenterprise.users.revokeToken",
"parameterOrder": [
"enterpriseId",
"userId"
],
"parameters": {
"enterpriseId": {
"description": "The ID of the enterprise.",
"location": "path",
"required": true,
"type": "string"
},
"userId": {
"description": "The ID of the user.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "enterprises/{enterpriseId}/users/{userId}/token",
"scopes": [
"https://www.googleapis.com/auth/androidenterprise"
]
},
"setAvailableProductSet": {
"description": "Modifies the set of products that a user is entitled to access (referred to as whitelisted products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted.",
"httpMethod": "PUT",
Expand Down Expand Up @@ -2556,7 +2499,7 @@
}
}
},
"revision": "20200429",
"revision": "20200527",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Administrator": {
Expand Down Expand Up @@ -4346,25 +4289,6 @@
},
"type": "object"
},
"UserToken": {
"description": "A UserToken is used by a user when setting up a managed device or profile with their managed Google Play account on a device. When the user enters their email address and token (activation code) the appropriate EMM app can be automatically downloaded.",
"id": "UserToken",
"properties": {
"kind": {
"default": "androidenterprise#userToken",
"type": "string"
},
"token": {
"description": "The token (activation code) to be entered by the user. This consists of a sequence of decimal digits. Note that the leading digit may be 0.",
"type": "string"
},
"userId": {
"description": "The unique ID for the user.",
"type": "string"
}
},
"type": "object"
},
"UsersListResponse": {
"description": "The matching user resources.",
"id": "UsersListResponse",
Expand Down

0 comments on commit fe47e5f

Please sign in to comment.