From cf0f6a171038e5ba609a6afd607cc458149ca15a Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Tue, 25 Aug 2020 14:15:03 -0700 Subject: [PATCH] feat(androidmanagement): update the API #### 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 --- discovery/androidmanagement-v1.json | 42 ++++++++++++++++++++++++++--- src/apis/androidmanagement/v1.ts | 23 +++++++++++++--- 2 files changed, 58 insertions(+), 7 deletions(-) diff --git a/discovery/androidmanagement-v1.json b/discovery/androidmanagement-v1.json index 75c8c41669..2c92cf8f8a 100644 --- a/discovery/androidmanagement-v1.json +++ b/discovery/androidmanagement-v1.json @@ -929,7 +929,7 @@ } } }, - "revision": "20200807", + "revision": "20200817", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdvancedSecurityOverrides": { @@ -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", @@ -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": { @@ -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": { @@ -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" @@ -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", diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index 81d51d0ad6..c05abab20e 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -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; /** @@ -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 { /** @@ -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 { /** @@ -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). @@ -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. */