From 5fcc274bcd4a9a71a0a568e2771c443a2b2b20b0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 15 Jun 2021 07:13:03 +0000 Subject: [PATCH] feat(androidmanagement): update the api #### androidmanagement:v1 The following keys were added: - schemas.Device.properties.appliedPasswordPolicies (Total Keys: 2) --- ...roidmanagement_v1.enterprises.devices.html | 68 +++++++++++++++++++ ...oidmanagement_v1.enterprises.policies.html | 16 ++--- .../documents/androidmanagement.v1.json | 45 +++++++----- 3 files changed, 105 insertions(+), 24 deletions(-) diff --git a/docs/dyn/androidmanagement_v1.enterprises.devices.html b/docs/dyn/androidmanagement_v1.enterprises.devices.html index 6ba8bcad2c1..404be39f4c8 100644 --- a/docs/dyn/androidmanagement_v1.enterprises.devices.html +++ b/docs/dyn/androidmanagement_v1.enterprises.devices.html @@ -177,6 +177,23 @@

Method Details

"versionName": "A String", # The app version as displayed to the user. }, ], + "appliedPasswordPolicies": [ # The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies. + { # Requirements for the password used to unlock a device. + "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. + "passwordExpirationTimeout": "A String", # Password expiration timeout. + "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. + "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. + "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordQuality": "A String", # The required password quality. + "passwordScope": "A String", # The scope that the password requirement applies to. + "requirePasswordUnlock": "A String", # The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile. + }, + ], "appliedPolicyName": "A String", # The name of the policy currently applied to the device. "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. "appliedState": "A String", # The state currently applied to the device. @@ -462,6 +479,23 @@

Method Details

"versionName": "A String", # The app version as displayed to the user. }, ], + "appliedPasswordPolicies": [ # The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies. + { # Requirements for the password used to unlock a device. + "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. + "passwordExpirationTimeout": "A String", # Password expiration timeout. + "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. + "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. + "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordQuality": "A String", # The required password quality. + "passwordScope": "A String", # The scope that the password requirement applies to. + "requirePasswordUnlock": "A String", # The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile. + }, + ], "appliedPolicyName": "A String", # The name of the policy currently applied to the device. "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. "appliedState": "A String", # The state currently applied to the device. @@ -705,6 +739,23 @@

Method Details

"versionName": "A String", # The app version as displayed to the user. }, ], + "appliedPasswordPolicies": [ # The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies. + { # Requirements for the password used to unlock a device. + "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. + "passwordExpirationTimeout": "A String", # Password expiration timeout. + "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. + "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. + "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordQuality": "A String", # The required password quality. + "passwordScope": "A String", # The scope that the password requirement applies to. + "requirePasswordUnlock": "A String", # The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile. + }, + ], "appliedPolicyName": "A String", # The name of the policy currently applied to the device. "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. "appliedState": "A String", # The state currently applied to the device. @@ -930,6 +981,23 @@

Method Details

"versionName": "A String", # The app version as displayed to the user. }, ], + "appliedPasswordPolicies": [ # The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies. + { # Requirements for the password used to unlock a device. + "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. + "passwordExpirationTimeout": "A String", # Password expiration timeout. + "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. + "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. + "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. + "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. + "passwordQuality": "A String", # The required password quality. + "passwordScope": "A String", # The scope that the password requirement applies to. + "requirePasswordUnlock": "A String", # The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile. + }, + ], "appliedPolicyName": "A String", # The name of the policy currently applied to the device. "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. "appliedState": "A String", # The state currently applied to the device. diff --git a/docs/dyn/androidmanagement_v1.enterprises.policies.html b/docs/dyn/androidmanagement_v1.enterprises.policies.html index 5eda8a25f36..6b16fe0caf8 100644 --- a/docs/dyn/androidmanagement_v1.enterprises.policies.html +++ b/docs/dyn/androidmanagement_v1.enterprises.policies.html @@ -149,13 +149,13 @@

Method Details

"androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. "A String", ], - "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. + "appAutoUpdatePolicy": "A String", # Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. "applications": [ # Policy applied to apps. { # Policy for an individual app. "accessibleTrackIds": [ # List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo. "A String", ], - "autoUpdateMode": "A String", # This feature is not generally available yet. + "autoUpdateMode": "A String", # Controls the auto-update mode for the app. "connectedWorkAndPersonalApp": "A String", # Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. "defaultPermissionPolicy": "A String", # The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. @@ -500,13 +500,13 @@

Method Details

"androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. "A String", ], - "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. + "appAutoUpdatePolicy": "A String", # Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. "applications": [ # Policy applied to apps. { # Policy for an individual app. "accessibleTrackIds": [ # List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo. "A String", ], - "autoUpdateMode": "A String", # This feature is not generally available yet. + "autoUpdateMode": "A String", # Controls the auto-update mode for the app. "connectedWorkAndPersonalApp": "A String", # Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. "defaultPermissionPolicy": "A String", # The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. @@ -857,13 +857,13 @@

Method Details

"androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. "A String", ], - "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. + "appAutoUpdatePolicy": "A String", # Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. "applications": [ # Policy applied to apps. { # Policy for an individual app. "accessibleTrackIds": [ # List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo. "A String", ], - "autoUpdateMode": "A String", # This feature is not generally available yet. + "autoUpdateMode": "A String", # Controls the auto-update mode for the app. "connectedWorkAndPersonalApp": "A String", # Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. "defaultPermissionPolicy": "A String", # The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. @@ -1197,13 +1197,13 @@

Method Details

"androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. "A String", ], - "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. + "appAutoUpdatePolicy": "A String", # Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. "applications": [ # Policy applied to apps. { # Policy for an individual app. "accessibleTrackIds": [ # List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo. "A String", ], - "autoUpdateMode": "A String", # This feature is not generally available yet. + "autoUpdateMode": "A String", # Controls the auto-update mode for the app. "connectedWorkAndPersonalApp": "A String", # Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. "defaultPermissionPolicy": "A String", # The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. diff --git a/googleapiclient/discovery_cache/documents/androidmanagement.v1.json b/googleapiclient/discovery_cache/documents/androidmanagement.v1.json index 18570b014ca..adb1f2a9734 100644 --- a/googleapiclient/discovery_cache/documents/androidmanagement.v1.json +++ b/googleapiclient/discovery_cache/documents/androidmanagement.v1.json @@ -1004,7 +1004,7 @@ } } }, - "revision": "20210601", + "revision": "20210607", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdvancedSecurityOverrides": { @@ -1219,7 +1219,7 @@ "type": "array" }, "autoUpdateMode": { - "description": "This feature is not generally available yet.", + "description": "Controls the auto-update mode for the app.", "enum": [ "AUTO_UPDATE_MODE_UNSPECIFIED", "AUTO_UPDATE_DEFAULT", @@ -1227,10 +1227,10 @@ "AUTO_UPDATE_HIGH_PRIORITY" ], "enumDescriptions": [ - "This feature is not generally available yet.", - "This feature is not generally available yet.", - "This feature is not generally available yet.", - "This feature is not generally available yet." + "Unspecified. Defaults to AUTO_UPDATE_DEFAULT.", + "The app is automatically updated with low priority to minimize the impact on the user.The app is updated when all of the following constraints are met: The device is not actively used. The device is connected to an unmetered network. The device is charging.The device is notified about a new update within 24 hours after it is published by the developer, after which the app is updated the next time the constraints above are met.", + "The app is not automatically updated for a maximum of 90 days after the app becomes out of date.90 days after the app becomes out of date, the latest available version is installed automatically with low priority (see AUTO_UPDATE_DEFAULT). After the app is updated it is not automatically updated again until 90 days after it becomes out of date again.The user can still manually update the app from the Play Store at any time.", + "The app is updated as soon as possible. No constraints are applied.The device is notified immediately about a new update after it becomes available." ], "type": "string" }, @@ -1716,6 +1716,13 @@ }, "type": "array" }, + "appliedPasswordPolicies": { + "description": "The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies.", + "items": { + "$ref": "PasswordRequirements" + }, + "type": "array" + }, "appliedPolicyName": { "description": "The name of the policy currently applied to the device.", "type": "string" @@ -3019,17 +3026,23 @@ "NUMERIC_COMPLEX", "ALPHABETIC", "ALPHANUMERIC", - "COMPLEX" + "COMPLEX", + "COMPLEXITY_LOW", + "COMPLEXITY_MEDIUM", + "COMPLEXITY_HIGH" ], "enumDescriptions": [ "There are no password requirements.", - "The device must be secured with a low-security biometric recognition technology, at minimum. This includes technologies that can recognize the identity of an individual that are roughly equivalent to a 3-digit PIN (false detection is less than 1 in 1,000).", - "A password is required, but there are no restrictions on what the password must contain.", - "The password must contain numeric characters.", - "The password must contain numeric characters with no repeating (4444) or ordered (1234, 4321, 2468) sequences.", - "The password must contain alphabetic (or symbol) characters.", - "The password must contain both numeric and alphabetic (or symbol) characters.", - "The password must meet the minimum requirements specified in passwordMinimumLength, passwordMinimumLetters, passwordMinimumSymbols, etc. For example, if passwordMinimumSymbols is 2, the password must contain at least two symbols." + "The device must be secured with a low-security biometric recognition technology, at minimum. This includes technologies that can recognize the identity of an individual that are roughly equivalent to a 3-digit PIN (false detection is less than 1 in 1,000).This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_LOW for application. See PasswordQuality for details.", + "A password is required, but there are no restrictions on what the password must contain.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_LOW for application. See PasswordQuality for details.", + "The password must contain numeric characters.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_MEDIUM for application. See PasswordQuality for details.", + "The password must contain numeric characters with no repeating (4444) or ordered (1234, 4321, 2468) sequences.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_MEDIUM for application. See PasswordQuality for details.", + "The password must contain alphabetic (or symbol) characters.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_HIGH for application. See PasswordQuality for details.", + "The password must contain both numeric and alphabetic (or symbol) characters.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_HIGH for application. See PasswordQuality for details.", + "The password must meet the minimum requirements specified in passwordMinimumLength, passwordMinimumLetters, passwordMinimumSymbols, etc. For example, if passwordMinimumSymbols is 2, the password must contain at least two symbols.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_HIGH for application. In this case, the requirements in passwordMinimumLength, passwordMinimumLetters, passwordMinimumSymbols, etc are not applied. See PasswordQuality for details.", + "Password satisfies one of the following: pattern PIN with repeating (4444) or ordered (1234, 4321, 2468) sequencesEnforcement varies among different Android versions, management modes and password scopes. See PasswordQuality for details.", + "Password satisfies one of the following: PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 alphabetic, length at least 4 alphanumeric, length at least 4Enforcement varies among different Android versions, management modes and password scopes. See PasswordQuality for details.", + "Password satisfies one of the following:On Android 12 and above: PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 8 alphabetic, length at least 6 alphanumeric, length at least 6Enforcement varies among different Android versions, management modes and password scopes. See PasswordQuality for details." ], "type": "string" }, @@ -3236,7 +3249,7 @@ "type": "array" }, "appAutoUpdatePolicy": { - "description": "The app auto update policy, which controls when automatic app updates can be applied.", + "description": "Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied.", "enum": [ "APP_AUTO_UPDATE_POLICY_UNSPECIFIED", "CHOICE_TO_THE_USER", @@ -4078,7 +4091,7 @@ "enumDescriptions": [ "Follow the default update behavior for the device, which typically requires the user to accept system updates.", "Install automatically as soon as an update is available.", - "Install automatically within a daily maintenance window. This also configures Play apps to be updated within the window. This is strongly recommended for kiosk devices because this is the only way apps persistently pinned to the foreground can be updated by Play.", + "Install automatically within a daily maintenance window. This also configures Play apps to be updated within the window. This is strongly recommended for kiosk devices because this is the only way apps persistently pinned to the foreground can be updated by Play.If autoUpdateMode is set to AUTO_UPDATE_HIGH_PRIORITY for an app, then the maintenance window is ignored for that app and it is updated as soon as possible even outside of the maintenance window.", "Postpone automatic install up to a maximum of 30 days." ], "type": "string"