Skip to content

Commit

Permalink
feat(androidmanagement): update the API
Browse files Browse the repository at this point in the history
#### androidmanagement:v1
The following keys were added:
- schemas.SoftwareInfo.properties.systemUpdateInfo.$ref
- schemas.SoftwareInfo.properties.systemUpdateInfo.description
- schemas.SystemUpdateInfo.description
- schemas.SystemUpdateInfo.id
- schemas.SystemUpdateInfo.properties.updateReceivedTime.description
- schemas.SystemUpdateInfo.properties.updateReceivedTime.format
- schemas.SystemUpdateInfo.properties.updateReceivedTime.type
- schemas.SystemUpdateInfo.properties.updateStatus.description
- schemas.SystemUpdateInfo.properties.updateStatus.enum
- schemas.SystemUpdateInfo.properties.updateStatus.enumDescriptions
- schemas.SystemUpdateInfo.properties.updateStatus.type
- schemas.SystemUpdateInfo.type

The following keys were changed:
- schemas.EnrollmentToken.properties.allowPersonalUsage.description
- schemas.PersonalApplicationPolicy.description
- schemas.PersonalUsagePolicies.description
  • Loading branch information
sofisl committed Aug 25, 2020
1 parent 270eed6 commit cf0f6a1
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 7 deletions.
42 changes: 38 additions & 4 deletions discovery/androidmanagement-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
}
}
},
"revision": "20200807",
"revision": "20200817",
"rootUrl": "https://androidmanagement.googleapis.com/",
"schemas": {
"AdvancedSecurityOverrides": {
Expand Down Expand Up @@ -1841,7 +1841,7 @@
"type": "string"
},
"allowPersonalUsage": {
"description": "Controls personal usage on devices provisioned using this enrollment token.",
"description": "Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.",
"enum": [
"ALLOW_PERSONAL_USAGE_UNSPECIFIED",
"PERSONAL_USAGE_ALLOWED",
Expand Down Expand Up @@ -2869,7 +2869,7 @@
"type": "object"
},
"PersonalApplicationPolicy": {
"description": "Policies for apps on the personal profile of a Corporate Owned Personally Enabled device.",
"description": "Policies for apps on the personal profile of a company-owned device with a work profile.",
"id": "PersonalApplicationPolicy",
"properties": {
"installType": {
Expand All @@ -2892,7 +2892,7 @@
"type": "object"
},
"PersonalUsagePolicies": {
"description": "Policies controlling personal usage on a Corporate Owned Personally Enabled device.",
"description": "Policies controlling personal usage on a company-owned device with a work profile.",
"id": "PersonalUsagePolicies",
"properties": {
"accountTypesWithManagementDisabled": {
Expand Down Expand Up @@ -3703,6 +3703,10 @@
"securityPatchLevel": {
"description": "Security patch level, e.g. 2016-05-01.",
"type": "string"
},
"systemUpdateInfo": {
"$ref": "SystemUpdateInfo",
"description": "Information about a potential pending system update."
}
},
"type": "object"
Expand Down Expand Up @@ -3821,6 +3825,36 @@
},
"type": "object"
},
"SystemUpdateInfo": {
"description": "Information about a potential pending system update.",
"id": "SystemUpdateInfo",
"properties": {
"updateReceivedTime": {
"description": "The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE).",
"format": "google-datetime",
"type": "string"
},
"updateStatus": {
"description": "The status of an update: whether an update exists and what type it is.",
"enum": [
"UPDATE_STATUS_UNKNOWN",
"UP_TO_DATE",
"UNKNOWN_UPDATE_AVAILABLE",
"SECURITY_UPDATE_AVAILABLE",
"OS_UPDATE_AVAILABLE"
],
"enumDescriptions": [
"It is unknown whether there is a pending system update. This happens when, for example, the device API level is less than 26, or if the version of Android Device Policy is outdated.",
"There is no pending system update available on the device.",
"There is a pending system update available, but its type is not known.",
"There is a pending security update available.",
"There is a pending OS update available."
],
"type": "string"
}
},
"type": "object"
},
"TermsAndConditions": {
"description": "A terms and conditions page to be accepted during provisioning.",
"id": "TermsAndConditions",
Expand Down
23 changes: 20 additions & 3 deletions src/apis/androidmanagement/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ export namespace androidmanagement_v1 {
*/
additionalData?: string | null;
/**
* Controls personal usage on devices provisioned using this enrollment token.
* Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.
*/
allowPersonalUsage?: string | null;
/**
Expand Down Expand Up @@ -1246,7 +1246,7 @@ export namespace androidmanagement_v1 {
receiverActivity?: string | null;
}
/**
* Policies for apps on the personal profile of a Corporate Owned Personally Enabled device.
* Policies for apps on the personal profile of a company-owned device with a work profile.
*/
export interface Schema$PersonalApplicationPolicy {
/**
Expand All @@ -1259,7 +1259,7 @@ export namespace androidmanagement_v1 {
packageName?: string | null;
}
/**
* Policies controlling personal usage on a Corporate Owned Personally Enabled device.
* Policies controlling personal usage on a company-owned device with a work profile.
*/
export interface Schema$PersonalUsagePolicies {
/**
Expand Down Expand Up @@ -1792,6 +1792,10 @@ export namespace androidmanagement_v1 {
* Security patch level, e.g. 2016-05-01.
*/
securityPatchLevel?: string | null;
/**
* Information about a potential pending system update.
*/
systemUpdateInfo?: Schema$SystemUpdateInfo;
}
/**
* The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
Expand Down Expand Up @@ -1876,6 +1880,19 @@ export namespace androidmanagement_v1 {
*/
type?: string | null;
}
/**
* Information about a potential pending system update.
*/
export interface Schema$SystemUpdateInfo {
/**
* The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE).
*/
updateReceivedTime?: string | null;
/**
* The status of an update: whether an update exists and what type it is.
*/
updateStatus?: string | null;
}
/**
* A terms and conditions page to be accepted during provisioning.
*/
Expand Down

0 comments on commit cf0f6a1

Please sign in to comment.