Skip to content

Commit

Permalink
fix(androidmanagement): update the API
Browse files Browse the repository at this point in the history
#### androidmanagement:v1

The following keys were changed:
- schemas.ChoosePrivateKeyRule.description
- schemas.ChoosePrivateKeyRule.properties.packageNames.description
- schemas.ChoosePrivateKeyRule.properties.urlPattern.description
- schemas.Policy.properties.choosePrivateKeyRules.description
- schemas.Policy.properties.passwordRequirements.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 5, 2021
1 parent 6e85bd8 commit d3807ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions discovery/androidmanagement-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@
}
}
},
"revision": "20210318",
"revision": "20210322",
"rootUrl": "https://androidmanagement.googleapis.com/",
"schemas": {
"AdvancedSecurityOverrides": {
Expand Down Expand Up @@ -1443,11 +1443,11 @@
"type": "object"
},
"ChoosePrivateKeyRule": {
"description": "A rule for automatically choosing a private key and certificate to authenticate the device to a server.",
"description": "Controls apps' access to private keys. The rule determines which private key, if any, Android Device Policy grants to the specified app. Access is granted either when the app calls KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) (or any overloads) to request a private key alias for a given URL, or for rules that are not URL-specific (that is, if urlPattern is not set, or set to the empty string or .*) on Android 11 and above, directly so that the app can call KeyChain.getPrivateKey (https://developer.android.com/reference/android/security/KeyChain#getPrivateKey%28android.content.Context,%20java.lang.String%29), without first having to call KeyChain.choosePrivateKeyAlias.When an app calls KeyChain.choosePrivateKeyAlias if more than one choosePrivateKeyRules matches, the last matching rule defines which key alias to return.",
"id": "ChoosePrivateKeyRule",
"properties": {
"packageNames": {
"description": "The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play",
"description": "The package names to which this rule applies. The hash of the signing certificate for each app is verified against the hash provided by Play. If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias.",
"items": {
"type": "string"
},
Expand All @@ -1458,7 +1458,7 @@
"type": "string"
},
"urlPattern": {
"description": "The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified.",
"description": "The URL pattern to match against the URL of the request. If not set or empty, it matches all URLs. This uses the regular expression syntax of java.util.regex.Pattern.",
"type": "string"
}
},
Expand Down Expand Up @@ -3269,7 +3269,7 @@
"type": "boolean"
},
"choosePrivateKeyRules": {
"description": "Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use.",
"description": "Rules for determining apps' access to private keys. See ChoosePrivateKeyRule for details.",
"items": {
"$ref": "ChoosePrivateKeyRule"
},
Expand Down Expand Up @@ -3498,7 +3498,7 @@
},
"passwordRequirements": {
"$ref": "PasswordRequirements",
"description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies."
"description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here."
},
"permissionGrants": {
"description": "Explicit permission or group grants or denials for all apps. These values override the default_permission_policy.",
Expand Down
10 changes: 5 additions & 5 deletions src/apis/androidmanagement/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,19 +359,19 @@ export namespace androidmanagement_v1 {
blockScope?: string | null;
}
/**
* A rule for automatically choosing a private key and certificate to authenticate the device to a server.
* Controls apps' access to private keys. The rule determines which private key, if any, Android Device Policy grants to the specified app. Access is granted either when the app calls KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) (or any overloads) to request a private key alias for a given URL, or for rules that are not URL-specific (that is, if urlPattern is not set, or set to the empty string or .*) on Android 11 and above, directly so that the app can call KeyChain.getPrivateKey (https://developer.android.com/reference/android/security/KeyChain#getPrivateKey%28android.content.Context,%20java.lang.String%29), without first having to call KeyChain.choosePrivateKeyAlias.When an app calls KeyChain.choosePrivateKeyAlias if more than one choosePrivateKeyRules matches, the last matching rule defines which key alias to return.
*/
export interface Schema$ChoosePrivateKeyRule {
/**
* The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play
* The package names to which this rule applies. The hash of the signing certificate for each app is verified against the hash provided by Play. If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias.
*/
packageNames?: string[] | null;
/**
* The alias of the private key to be used.
*/
privateKeyAlias?: string | null;
/**
* The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified.
* The URL pattern to match against the URL of the request. If not set or empty, it matches all URLs. This uses the regular expression syntax of java.util.regex.Pattern.
*/
urlPattern?: string | null;
}
Expand Down Expand Up @@ -1459,7 +1459,7 @@ export namespace androidmanagement_v1 {
*/
cellBroadcastsConfigDisabled?: boolean | null;
/**
* Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use.
* Rules for determining apps' access to private keys. See ChoosePrivateKeyRule for details.
*/
choosePrivateKeyRules?: Schema$ChoosePrivateKeyRule[];
/**
Expand Down Expand Up @@ -1595,7 +1595,7 @@ export namespace androidmanagement_v1 {
*/
passwordPolicies?: Schema$PasswordRequirements[];
/**
* Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies.
* Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here.
*/
passwordRequirements?: Schema$PasswordRequirements;
/**
Expand Down

0 comments on commit d3807ca

Please sign in to comment.