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.BlockAction.properties.blockScope.description
- schemas.BlockAction.properties.blockScope.enum
- schemas.BlockAction.properties.blockScope.enumDescriptions
- schemas.BlockAction.properties.blockScope.type
- schemas.Device.properties.ownership.description
- schemas.Device.properties.ownership.enum
- schemas.Device.properties.ownership.enumDescriptions
- schemas.Device.properties.ownership.type
- schemas.EnrollmentToken.properties.allowPersonalUsage.description
- schemas.EnrollmentToken.properties.allowPersonalUsage.enum
- schemas.EnrollmentToken.properties.allowPersonalUsage.enumDescriptions
- schemas.EnrollmentToken.properties.allowPersonalUsage.type
- schemas.PersonalApplicationPolicy.description
- schemas.PersonalApplicationPolicy.id
- schemas.PersonalApplicationPolicy.properties.installType.description
- schemas.PersonalApplicationPolicy.properties.installType.enum
- schemas.PersonalApplicationPolicy.properties.installType.enumDescriptions
- schemas.PersonalApplicationPolicy.properties.installType.type
- schemas.PersonalApplicationPolicy.properties.packageName.description
- schemas.PersonalApplicationPolicy.properties.packageName.type
- schemas.PersonalApplicationPolicy.type
- schemas.PersonalUsagePolicies.description
- schemas.PersonalUsagePolicies.id
- schemas.PersonalUsagePolicies.properties.accountTypesWithManagementDisabled.description
- schemas.PersonalUsagePolicies.properties.accountTypesWithManagementDisabled.items.type
- schemas.PersonalUsagePolicies.properties.accountTypesWithManagementDisabled.type
- schemas.PersonalUsagePolicies.properties.cameraDisabled.description
- schemas.PersonalUsagePolicies.properties.cameraDisabled.type
- schemas.PersonalUsagePolicies.properties.maxDaysWithWorkOff.description
- schemas.PersonalUsagePolicies.properties.maxDaysWithWorkOff.format
- schemas.PersonalUsagePolicies.properties.maxDaysWithWorkOff.type
- schemas.PersonalUsagePolicies.properties.personalApplications.description
- schemas.PersonalUsagePolicies.properties.personalApplications.items.$ref
- schemas.PersonalUsagePolicies.properties.personalApplications.type
- schemas.PersonalUsagePolicies.properties.personalPlayStoreMode.description
- schemas.PersonalUsagePolicies.properties.personalPlayStoreMode.enum
- schemas.PersonalUsagePolicies.properties.personalPlayStoreMode.enumDescriptions
- schemas.PersonalUsagePolicies.properties.personalPlayStoreMode.type
- schemas.PersonalUsagePolicies.properties.screenCaptureDisabled.description
- schemas.PersonalUsagePolicies.properties.screenCaptureDisabled.type
- schemas.PersonalUsagePolicies.type
- schemas.Policy.properties.personalUsagePolicies.$ref
- schemas.Policy.properties.personalUsagePolicies.description
- schemas.SigninDetail.properties.allowPersonalUsage.description
- schemas.SigninDetail.properties.allowPersonalUsage.enum
- schemas.SigninDetail.properties.allowPersonalUsage.enumDescriptions
- schemas.SigninDetail.properties.allowPersonalUsage.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 16, 2020
1 parent 227078e commit dcc0e88
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 1 deletion.
131 changes: 130 additions & 1 deletion discovery/androidmanagement-v1.json
Expand Up @@ -924,7 +924,7 @@
}
}
},
"revision": "20200427",
"revision": "20200612",
"rootUrl": "https://androidmanagement.googleapis.com/",
"schemas": {
"AdvancedSecurityOverrides": {
Expand Down Expand Up @@ -1300,6 +1300,20 @@
"description": "Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays.",
"format": "int32",
"type": "integer"
},
"blockScope": {
"description": "Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.",
"enum": [
"BLOCK_SCOPE_UNSPECIFIED",
"BLOCK_SCOPE_WORK_PROFILE",
"BLOCK_SCOPE_DEVICE"
],
"enumDescriptions": [
"Unspecified. Defaults to BLOCK_SCOPE_WORK_PROFILE.",
"Block action is only applied to apps in the work profile. Apps in the personal profile are unaffected.",
"Block action is applied to the entire device, including apps in the personal profile."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1591,6 +1605,20 @@
},
"type": "array"
},
"ownership": {
"description": "Ownership of the managed device.",
"enum": [
"OWNERSHIP_UNSPECIFIED",
"COMPANY_OWNED",
"PERSONALLY_OWNED"
],
"enumDescriptions": [
"Ownership is unspecified.",
"Device is company-owned.",
"Device is personally-owned."
],
"type": "string"
},
"policyCompliant": {
"description": "Whether the device is compliant with its policy.",
"type": "boolean"
Expand Down Expand Up @@ -1778,6 +1806,20 @@
"description": "Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail.",
"type": "string"
},
"allowPersonalUsage": {
"description": "Controls personal usage on devices provisioned using this enrollment token.",
"enum": [
"ALLOW_PERSONAL_USAGE_UNSPECIFIED",
"PERSONAL_USAGE_ALLOWED",
"PERSONAL_USAGE_DISALLOWED"
],
"enumDescriptions": [
"Personal usage restriction is not specified",
"Personal usage is allowed",
"Personal usage is disallowed"
],
"type": "string"
},
"duration": {
"description": "The length of time the enrollment token is valid, ranging from 1 minute to 30 days. If not specified, the default duration is 1 hour.",
"format": "google-duration",
Expand Down Expand Up @@ -2785,6 +2827,75 @@
},
"type": "object"
},
"PersonalApplicationPolicy": {
"description": "Policies for apps on the personal profile of a Corporate Owned Personally Enabled device.",
"id": "PersonalApplicationPolicy",
"properties": {
"installType": {
"description": "The type of installation to perform.",
"enum": [
"INSTALL_TYPE_UNSPECIFIED",
"BLOCKED"
],
"enumDescriptions": [
"Unspecified. The default behavior is that all installs are allowed.",
"The app is blocked and can't be installed."
],
"type": "string"
},
"packageName": {
"description": "The package name of the application.",
"type": "string"
}
},
"type": "object"
},
"PersonalUsagePolicies": {
"description": "Policies controlling personal usage on a Corporate Owned Personally Enabled device.",
"id": "PersonalUsagePolicies",
"properties": {
"accountTypesWithManagementDisabled": {
"description": "Account types that can't be managed by the user.",
"items": {
"type": "string"
},
"type": "array"
},
"cameraDisabled": {
"description": "Whether camera is disabled.",
"type": "boolean"
},
"maxDaysWithWorkOff": {
"description": "Controls how long the work profile can stay off.",
"format": "int32",
"type": "integer"
},
"personalApplications": {
"description": "Policy applied to applications on the personal profile.",
"items": {
"$ref": "PersonalApplicationPolicy"
},
"type": "array"
},
"personalPlayStoreMode": {
"description": "Controls how apps on the personal profile are allowed or blocked.",
"enum": [
"PLAY_STORE_MODE_UNSPECIFIED",
"BLACKLIST"
],
"enumDescriptions": [
"Unspecified. Default behavior is to allow all installs.",
"All Play Store apps are available, except those whose install_type is BLOCKED in PersonalApplicationPolicy."
],
"type": "string"
},
"screenCaptureDisabled": {
"description": "Whether screen capture is disabled.",
"type": "boolean"
}
},
"type": "object"
},
"Policy": {
"description": "A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.",
"id": "Policy",
Expand Down Expand Up @@ -3123,6 +3234,10 @@
},
"type": "array"
},
"personalUsagePolicies": {
"$ref": "PersonalUsagePolicies",
"description": "Policies managing personal usage on a company-owned device."
},
"playStoreMode": {
"description": "This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy.",
"enum": [
Expand Down Expand Up @@ -3434,6 +3549,20 @@
"description": "A resource containing sign in details for an enterprise.",
"id": "SigninDetail",
"properties": {
"allowPersonalUsage": {
"description": "Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices:\nEnabling personal usage allows the user to set up a work profile on the device.\nDisabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices:\nEnabling personal usage allows the user to set up a work profile on the device.\nDisabling 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",
"PERSONAL_USAGE_DISALLOWED"
],
"enumDescriptions": [
"Personal usage restriction is not specified",
"Personal usage is allowed",
"Personal usage is disallowed"
],
"type": "string"
},
"qrCode": {
"description": "A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server.",
"type": "string"
Expand Down
70 changes: 70 additions & 0 deletions src/apis/androidmanagement/v1.ts
Expand Up @@ -343,6 +343,10 @@ export namespace androidmanagement_v1 {
* Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays.
*/
blockAfterDays?: number | null;
/**
* Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.
*/
blockScope?: string | null;
}
/**
* A rule for automatically choosing a private key and certificate to authenticate the device to a server.
Expand Down Expand Up @@ -524,6 +528,10 @@ export namespace androidmanagement_v1 {
* Details about policy settings that the device is not compliant with.
*/
nonComplianceDetails?: Schema$NonComplianceDetail[];
/**
* Ownership of the managed device.
*/
ownership?: string | null;
/**
* Whether the device is compliant with its policy.
*/
Expand Down Expand Up @@ -643,6 +651,10 @@ export namespace androidmanagement_v1 {
* Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail.
*/
additionalData?: string | null;
/**
* Controls personal usage on devices provisioned using this enrollment token.
*/
allowPersonalUsage?: string | null;
/**
* The length of time the enrollment token is valid, ranging from 1 minute to 30 days. If not specified, the default duration is 1 hour.
*/
Expand Down Expand Up @@ -1229,6 +1241,48 @@ export namespace androidmanagement_v1 {
*/
receiverActivity?: string | null;
}
/**
* Policies for apps on the personal profile of a Corporate Owned Personally Enabled device.
*/
export interface Schema$PersonalApplicationPolicy {
/**
* The type of installation to perform.
*/
installType?: string | null;
/**
* The package name of the application.
*/
packageName?: string | null;
}
/**
* Policies controlling personal usage on a Corporate Owned Personally Enabled device.
*/
export interface Schema$PersonalUsagePolicies {
/**
* Account types that can't be managed by the user.
*/
accountTypesWithManagementDisabled?: string[] | null;
/**
* Whether camera is disabled.
*/
cameraDisabled?: boolean | null;
/**
* Controls how long the work profile can stay off.
*/
maxDaysWithWorkOff?: number | null;
/**
* Policy applied to applications on the personal profile.
*/
personalApplications?: Schema$PersonalApplicationPolicy[];
/**
* Controls how apps on the personal profile are allowed or blocked.
*/
personalPlayStoreMode?: string | null;
/**
* Whether screen capture is disabled.
*/
screenCaptureDisabled?: boolean | null;
}
/**
* A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.
*/
Expand Down Expand Up @@ -1445,6 +1499,10 @@ export namespace androidmanagement_v1 {
* Default intent handler activities.
*/
persistentPreferredActivities?: Schema$PersistentPreferredActivity[];
/**
* Policies managing personal usage on a company-owned device.
*/
personalUsagePolicies?: Schema$PersonalUsagePolicies;
/**
* This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy.
*/
Expand Down Expand Up @@ -1656,6 +1714,10 @@ export namespace androidmanagement_v1 {
* A resource containing sign in details for an enterprise.
*/
export interface Schema$SigninDetail {
/**
* 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;
/**
* A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server.
*/
Expand Down Expand Up @@ -2793,6 +2855,7 @@ export namespace androidmanagement_v1 {
* // "name": "my_name",
* // "networkInfo": {},
* // "nonComplianceDetails": [],
* // "ownership": "my_ownership",
* // "policyCompliant": false,
* // "policyName": "my_policyName",
* // "powerManagementEvents": [],
Expand Down Expand Up @@ -3248,6 +3311,7 @@ export namespace androidmanagement_v1 {
* // "name": "my_name",
* // "networkInfo": {},
* // "nonComplianceDetails": [],
* // "ownership": "my_ownership",
* // "policyCompliant": false,
* // "policyName": "my_policyName",
* // "powerManagementEvents": [],
Expand Down Expand Up @@ -3287,6 +3351,7 @@ export namespace androidmanagement_v1 {
* // "name": "my_name",
* // "networkInfo": {},
* // "nonComplianceDetails": [],
* // "ownership": "my_ownership",
* // "policyCompliant": false,
* // "policyName": "my_policyName",
* // "powerManagementEvents": [],
Expand Down Expand Up @@ -4080,6 +4145,7 @@ export namespace androidmanagement_v1 {
* // request body parameters
* // {
* // "additionalData": "my_additionalData",
* // "allowPersonalUsage": "my_allowPersonalUsage",
* // "duration": "my_duration",
* // "expirationTimestamp": "my_expirationTimestamp",
* // "name": "my_name",
Expand All @@ -4096,6 +4162,7 @@ export namespace androidmanagement_v1 {
* // Example response
* // {
* // "additionalData": "my_additionalData",
* // "allowPersonalUsage": "my_allowPersonalUsage",
* // "duration": "my_duration",
* // "expirationTimestamp": "my_expirationTimestamp",
* // "name": "my_name",
Expand Down Expand Up @@ -4570,6 +4637,7 @@ export namespace androidmanagement_v1 {
* // "permittedAccessibilityServices": {},
* // "permittedInputMethods": {},
* // "persistentPreferredActivities": [],
* // "personalUsagePolicies": {},
* // "playStoreMode": "my_playStoreMode",
* // "policyEnforcementRules": [],
* // "privateKeySelectionEnabled": false,
Expand Down Expand Up @@ -4924,6 +4992,7 @@ export namespace androidmanagement_v1 {
* // "permittedAccessibilityServices": {},
* // "permittedInputMethods": {},
* // "persistentPreferredActivities": [],
* // "personalUsagePolicies": {},
* // "playStoreMode": "my_playStoreMode",
* // "policyEnforcementRules": [],
* // "privateKeySelectionEnabled": false,
Expand Down Expand Up @@ -5011,6 +5080,7 @@ export namespace androidmanagement_v1 {
* // "permittedAccessibilityServices": {},
* // "permittedInputMethods": {},
* // "persistentPreferredActivities": [],
* // "personalUsagePolicies": {},
* // "playStoreMode": "my_playStoreMode",
* // "policyEnforcementRules": [],
* // "privateKeySelectionEnabled": false,
Expand Down

0 comments on commit dcc0e88

Please sign in to comment.