Skip to content

Commit

Permalink
feat(androidmanagement)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### androidmanagement:v1

The following keys were deleted:
- schemas.PasswordRequirements.properties.unifiedLockSettings.description
- schemas.PasswordRequirements.properties.unifiedLockSettings.enum
- schemas.PasswordRequirements.properties.unifiedLockSettings.enumDescriptions
- schemas.PasswordRequirements.properties.unifiedLockSettings.type

The following keys were added:
- schemas.ApplicationPolicy.properties.alwaysOnVpnLockdownExemption.description
- schemas.ApplicationPolicy.properties.alwaysOnVpnLockdownExemption.enum
- schemas.ApplicationPolicy.properties.alwaysOnVpnLockdownExemption.enumDescriptions
- schemas.ApplicationPolicy.properties.alwaysOnVpnLockdownExemption.type

The following keys were changed:
- schemas.Date.description
- schemas.Policy.properties.passwordRequirements.description
  • Loading branch information
yoshi-automation authored and chingor13 committed Mar 23, 2022
1 parent 43abc39 commit 2746c26
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
34 changes: 17 additions & 17 deletions discovery/androidmanagement-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@
}
}
},
"revision": "20220302",
"revision": "20220314",
"rootUrl": "https://androidmanagement.googleapis.com/",
"schemas": {
"AdvancedSecurityOverrides": {
Expand Down Expand Up @@ -1383,6 +1383,20 @@
},
"type": "array"
},
"alwaysOnVpnLockdownExemption": {
"description": "Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN_LOCKDOWN_ENFORCED, the app is not allowed networking, and if set to VPN_LOCKDOWN_EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non_compliance_reason set to API_LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non_compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy.",
"enum": [
"ALWAYS_ON_VPN_LOCKDOWN_EXEMPTION_UNSPECIFIED",
"VPN_LOCKDOWN_ENFORCED",
"VPN_LOCKDOWN_EXEMPTION"
],
"enumDescriptions": [
"Unspecified. Defaults to VPN_LOCKDOWN_ENFORCED.",
"The app respects the always-on VPN lockdown setting.",
"The app is exempt from the always-on VPN lockdown setting."
],
"type": "string"
},
"autoUpdateMode": {
"description": "Controls the auto-update mode for the app.",
"enum": [
Expand Down Expand Up @@ -1899,7 +1913,7 @@
"type": "object"
},
"Date": {
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values A month and day, with a zero year (e.g., an anniversary) A year on its own, with a zero month and a zero day A year and month, with a zero day (e.g., a credit card expiration date)Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values. A month and day, with a zero year (for example, an anniversary). A year on its own, with a zero month and a zero day. A year and month, with a zero day (for example, a credit card expiration date).Related types: google.type.TimeOfDay google.type.DateTime google.protobuf.Timestamp",
"id": "Date",
"properties": {
"day": {
Expand Down Expand Up @@ -3316,20 +3330,6 @@
"The timeout period is set to 24 hours."
],
"type": "string"
},
"unifiedLockSettings": {
"description": "Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This has no effect on other devices. This can be set only if password_scope is set to SCOPE_PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER_ACTION.",
"enum": [
"UNIFIED_LOCK_SETTINGS_UNSPECIFIED",
"ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK",
"REQUIRE_SEPARATE_WORK_LOCK"
],
"enumDescriptions": [
"Unspecified. Defaults to ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK.",
"A common lock for the device and the work profile is allowed.",
"A separate lock for the work profile is required."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -3838,7 +3838,7 @@
},
"passwordRequirements": {
"$ref": "PasswordRequirements",
"description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here. unified_lock_settings cannot be used here"
"description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.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
12 changes: 6 additions & 6 deletions src/apis/androidmanagement/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ export namespace androidmanagement_v1 {
* 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.
*/
accessibleTrackIds?: string[] | null;
/**
* Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN_LOCKDOWN_ENFORCED, the app is not allowed networking, and if set to VPN_LOCKDOWN_EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non_compliance_reason set to API_LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non_compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy.
*/
alwaysOnVpnLockdownExemption?: string | null;
/**
* Controls the auto-update mode for the app.
*/
Expand Down Expand Up @@ -611,7 +615,7 @@ export namespace androidmanagement_v1 {
showWorkContactsInPersonalProfile?: string | null;
}
/**
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values A month and day, with a zero year (e.g., an anniversary) A year on its own, with a zero month and a zero day A year and month, with a zero day (e.g., a credit card expiration date)Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values. A month and day, with a zero year (for example, an anniversary). A year on its own, with a zero month and a zero day. A year and month, with a zero day (for example, a credit card expiration date).Related types: google.type.TimeOfDay google.type.DateTime google.protobuf.Timestamp
*/
export interface Schema$Date {
/**
Expand Down Expand Up @@ -1464,10 +1468,6 @@ export namespace androidmanagement_v1 {
* 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.
*/
requirePasswordUnlock?: string | null;
/**
* Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This has no effect on other devices. This can be set only if password_scope is set to SCOPE_PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER_ACTION.
*/
unifiedLockSettings?: string | null;
}
/**
* Configuration for an Android permission and its grant state.
Expand Down Expand Up @@ -1758,7 +1758,7 @@ export namespace androidmanagement_v1 {
*/
passwordPolicies?: Schema$PasswordRequirements[];
/**
* Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here. unified_lock_settings cannot be used here
* Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.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 2746c26

Please sign in to comment.