From 4b79abb98301c66b16dbf3107a7511ac3f2b09e1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Wed, 24 May 2023 18:26:56 +0000 Subject: [PATCH] feat(androidmanagement): update the api #### androidmanagement:v1 The following keys were added: - schemas.DeviceConnectivityManagement (Total Keys: 3) - schemas.Policy.properties.deviceConnectivityManagement.$ref (Total Keys: 1) --- ...oidmanagement_v1.enterprises.policies.html | 36 +++++++++----- .../documents/androidmanagement.v1.json | 47 +++++++++++++++---- 2 files changed, 63 insertions(+), 20 deletions(-) diff --git a/docs/dyn/androidmanagement_v1.enterprises.policies.html b/docs/dyn/androidmanagement_v1.enterprises.policies.html index a90c9869100..53ea9173e43 100644 --- a/docs/dyn/androidmanagement_v1.enterprises.policies.html +++ b/docs/dyn/androidmanagement_v1.enterprises.policies.html @@ -152,9 +152,9 @@

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", # 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. + "appAutoUpdatePolicy": "A String", # Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.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. + { # Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. "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", ], @@ -239,6 +239,9 @@

Method Details

"dataRoamingDisabled": True or False, # Whether roaming data services are disabled. "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. + "deviceConnectivityManagement": { # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. + "usbDataAccess": "A String", # Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. + }, "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. @@ -487,7 +490,7 @@

Method Details

"usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. - "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). + "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. } @@ -533,9 +536,9 @@

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", # 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. + "appAutoUpdatePolicy": "A String", # Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.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. + { # Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. "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", ], @@ -620,6 +623,9 @@

Method Details

"dataRoamingDisabled": True or False, # Whether roaming data services are disabled. "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. + "deviceConnectivityManagement": { # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. + "usbDataAccess": "A String", # Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. + }, "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. @@ -868,7 +874,7 @@

Method Details

"usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. - "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). + "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. }, ], @@ -920,9 +926,9 @@

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", # 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. + "appAutoUpdatePolicy": "A String", # Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.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. + { # Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. "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", ], @@ -1007,6 +1013,9 @@

Method Details

"dataRoamingDisabled": True or False, # Whether roaming data services are disabled. "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. + "deviceConnectivityManagement": { # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. + "usbDataAccess": "A String", # Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. + }, "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. @@ -1255,7 +1264,7 @@

Method Details

"usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. - "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). + "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. } @@ -1290,9 +1299,9 @@

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", # 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. + "appAutoUpdatePolicy": "A String", # Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.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. + { # Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. "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", ], @@ -1377,6 +1386,9 @@

Method Details

"dataRoamingDisabled": True or False, # Whether roaming data services are disabled. "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. + "deviceConnectivityManagement": { # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. # Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. + "usbDataAccess": "A String", # Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. + }, "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. @@ -1625,7 +1637,7 @@

Method Details

"usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. - "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). + "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. } diff --git a/googleapiclient/discovery_cache/documents/androidmanagement.v1.json b/googleapiclient/discovery_cache/documents/androidmanagement.v1.json index b7f0c7170e4..586d283ec14 100644 --- a/googleapiclient/discovery_cache/documents/androidmanagement.v1.json +++ b/googleapiclient/discovery_cache/documents/androidmanagement.v1.json @@ -1065,7 +1065,7 @@ } } }, - "revision": "20230403", + "revision": "20230516", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1503,7 +1503,7 @@ "type": "object" }, "ApplicationPolicy": { - "description": "Policy for an individual app.", + "description": "Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled.", "id": "ApplicationPolicy", "properties": { "accessibleTrackIds": { @@ -2472,6 +2472,29 @@ }, "type": "object" }, + "DeviceConnectivityManagement": { + "description": "Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more.", + "id": "DeviceConnectivityManagement", + "properties": { + "usbDataAccess": { + "description": "Controls what files and/or data can be transferred via USB. Supported only on company-owned devices.", + "enum": [ + "USB_DATA_ACCESS_UNSPECIFIED", + "ALLOW_USB_DATA_TRANSFER", + "DISALLOW_USB_FILE_TRANSFER", + "DISALLOW_USB_DATA_TRANSFER" + ], + "enumDescriptions": [ + "Unspecified. Defaults to ALLOW_USB_DATA_TRANSFER, unless usbFileTransferDisabled is set to true. If usbFileTransferDisabled is set to true, this is equivalent to DISALLOW_USB_FILE_TRANSFER.", + "All types of USB data transfers are allowed. usbFileTransferDisabled is ignored.", + "Transferring files over USB is disallowed. Other types of USB data connections, such as mouse and keyboard connection, are allowed. usbFileTransferDisabled is ignored.", + "When set, all types of USB data transfers are prohibited. Supported for devices running Android 12 or above with USB HAL 1.3 or above. If the setting is not supported, DISALLOW_USB_FILE_TRANSFER will be set. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 12. A nonComplianceDetail with DEVICE_INCOMPATIBLE is reported if the device does not have USB HAL 1.3 or above. usbFileTransferDisabled is ignored." + ], + "type": "string" + } + }, + "type": "object" + }, "DeviceSettings": { "description": "Information about security related device settings on device.", "id": "DeviceSettings", @@ -3609,7 +3632,8 @@ "APP_INSTALLED", "PENDING", "APP_INCOMPATIBLE", - "APP_NOT_UPDATED" + "APP_NOT_UPDATED", + "DEVICE_INCOMPATIBLE" ], "enumDescriptions": [ "This value is disallowed.", @@ -3622,7 +3646,8 @@ "A blocked app is installed.", "The setting hasn't been applied at the time of the report, but is expected to be applied shortly.", "The setting can't be applied to the app because the app doesn't support it, for example because its target SDK version is not high enough.", - "The app is installed, but it hasn't been updated to the minimum version code specified by policy." + "The app is installed, but it hasn't been updated to the minimum version code specified by policy.", + "The device is incompatible with the policy requirements." ], "type": "string" }, @@ -3678,7 +3703,8 @@ "APP_INSTALLED", "PENDING", "APP_INCOMPATIBLE", - "APP_NOT_UPDATED" + "APP_NOT_UPDATED", + "DEVICE_INCOMPATIBLE" ], "enumDescriptions": [ "This value is disallowed.", @@ -3691,7 +3717,8 @@ "A blocked app is installed.", "The setting hasn't been applied at the time of the report, but is expected to be applied shortly.", "The setting can't be applied to the app because the app doesn't support it, for example because its target SDK version is not high enough.", - "The app is installed, but it hasn't been updated to the minimum version code specified by policy." + "The app is installed, but it hasn't been updated to the minimum version code specified by policy.", + "The device is incompatible with the policy requirements." ], "type": "string" }, @@ -4176,7 +4203,7 @@ "type": "array" }, "appAutoUpdatePolicy": { - "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.", + "description": "Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.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", @@ -4308,6 +4335,10 @@ ], "type": "string" }, + "deviceConnectivityManagement": { + "$ref": "DeviceConnectivityManagement", + "description": "Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more." + }, "deviceOwnerLockScreenInfo": { "$ref": "UserFacingMessage", "description": "The device owner information to be shown on the lock screen." @@ -4687,7 +4718,7 @@ "type": "boolean" }, "wifiConfigDisabled": { - "description": "Whether configuring Wi-Fi access points is disabled. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).", + "description": "Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).", "type": "boolean" }, "wifiConfigsLockdownEnabled": {