vendor: update all dependencies
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
This commit is contained in:
+96
-6
@@ -766,7 +766,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180305",
|
||||
"revision": "20180423",
|
||||
"rootUrl": "https://androidmanagement.googleapis.com/",
|
||||
"schemas": {
|
||||
"AlwaysOnVpnPackage": {
|
||||
@@ -849,7 +849,7 @@
|
||||
"id": "ApplicationPolicy",
|
||||
"properties": {
|
||||
"defaultPermissionPolicy": {
|
||||
"description": "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.",
|
||||
"description": "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.",
|
||||
"enum": [
|
||||
"PERMISSION_POLICY_UNSPECIFIED",
|
||||
"PROMPT",
|
||||
@@ -925,7 +925,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"permissionGrants": {
|
||||
"description": "Explicit permission grants or denials for the app. These values override the default_permission_policy.",
|
||||
"description": "Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps.",
|
||||
"items": {
|
||||
"$ref": "PermissionGrant"
|
||||
},
|
||||
@@ -948,6 +948,26 @@
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"errorCode": {
|
||||
"description": "If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.",
|
||||
"enum": [
|
||||
"COMMAND_ERROR_CODE_UNSPECIFIED",
|
||||
"UNKNOWN",
|
||||
"API_LEVEL",
|
||||
"MANAGEMENT_MODE",
|
||||
"INVALID_VALUE",
|
||||
"UNSUPPORTED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"There was no error.",
|
||||
"An unknown error occurred.",
|
||||
"The API level of the device does not support this command.",
|
||||
"The management mode (profile owner, device owner, etc.) does not support the command.",
|
||||
"The command has an invalid parameter value.",
|
||||
"The device doesn't support the command. Updating Android Device Policy to the latest version may resolve the issue."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"newPassword": {
|
||||
"description": "For commands of type RESET_PASSWORD, optionally specifies the new password.",
|
||||
"type": "string"
|
||||
@@ -1335,7 +1355,7 @@
|
||||
"id": "Enterprise",
|
||||
"properties": {
|
||||
"appAutoApprovalEnabled": {
|
||||
"description": "Whether permissions for apps installed via policy are automatically approved. If enabled, you must display an app's permissions to the enterprise admin before setting the app to be installed in a policy.",
|
||||
"description": "Deprecated and unused.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enabledNotificationTypes": {
|
||||
@@ -1379,6 +1399,13 @@
|
||||
"pubsubTopic": {
|
||||
"description": "The topic that Cloud Pub/Sub notifications are published to, in the form projects/{project}/topics/{topic}. This field is only required if Pub/Sub notifications are enabled.",
|
||||
"type": "string"
|
||||
},
|
||||
"termsAndConditions": {
|
||||
"description": "Terms and conditions that must be accepted when provisioning a device for this enterprise. A page of terms is generated for each value in this list.",
|
||||
"items": {
|
||||
"$ref": "TermsAndConditions"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -2111,7 +2138,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"appAutoUpdatePolicy": {
|
||||
"description": "The auto update policy value. Specifies whether the user is given a choice to configure the app update policy, or otherwise contains the enforced update policy",
|
||||
"description": "The app auto update policy, which controls when automatic app updates can be applied.",
|
||||
"enum": [
|
||||
"APP_AUTO_UPDATE_POLICY_UNSPECIFIED",
|
||||
"CHOICE_TO_THE_USER",
|
||||
@@ -2120,7 +2147,7 @@
|
||||
"ALWAYS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The auto-update policy is not set. Same as giving auto-update policy choice to the user.",
|
||||
"The auto-update policy is not set. Equivalent to CHOICE_TO_THE_USER.",
|
||||
"The user can control auto-updates.",
|
||||
"Apps are never auto-updated.",
|
||||
"Apps are auto-updated over Wi-Fi only.",
|
||||
@@ -2202,6 +2229,24 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"deviceOwnerLockScreenInfo": {
|
||||
"$ref": "UserFacingMessage",
|
||||
"description": "The device owner information to be shown on the lock screen."
|
||||
},
|
||||
"encryptionPolicy": {
|
||||
"description": "Whether encryption is enabled",
|
||||
"enum": [
|
||||
"ENCRYPTION_POLICY_UNSPECIFIED",
|
||||
"ENABLED_WITHOUT_PASSWORD",
|
||||
"ENABLED_WITH_PASSWORD"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"This value is ignored, i.e. no encryption required",
|
||||
"Encryption required but no password required to boot",
|
||||
"Encryption required with password required to boot"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ensureVerifyAppsEnabled": {
|
||||
"description": "Whether app verification is force-enabled.",
|
||||
"type": "boolean"
|
||||
@@ -2264,6 +2309,24 @@
|
||||
"description": "Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"locationMode": {
|
||||
"description": "The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings.",
|
||||
"enum": [
|
||||
"LOCATION_MODE_UNSPECIFIED",
|
||||
"HIGH_ACCURACY",
|
||||
"SENSORS_ONLY",
|
||||
"BATTERY_SAVING",
|
||||
"OFF"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"The current device value is not modified.",
|
||||
"All location detection methods are enabled, including GPS, networks, and other sensors.",
|
||||
"Only GPS and other sensors are enabled.",
|
||||
"Only the network location provider is enabled.",
|
||||
"Location detection is disabled."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"longSupportMessage": {
|
||||
"$ref": "UserFacingMessage",
|
||||
"description": "A message displayed to the user in the device administators settings screen."
|
||||
@@ -2352,10 +2415,18 @@
|
||||
"description": "Whether changing the wallpaper is disabled.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"shareLocationDisabled": {
|
||||
"description": "Whether location sharing is disabled.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"shortSupportMessage": {
|
||||
"$ref": "UserFacingMessage",
|
||||
"description": "A message displayed to the user in the settings screen wherever functionality has been disabled by the admin."
|
||||
},
|
||||
"skipFirstUseHintsEnabled": {
|
||||
"description": "Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"smsDisabled": {
|
||||
"description": "Whether sending and receiving SMS messages is disabled.",
|
||||
"type": "boolean"
|
||||
@@ -2407,6 +2478,10 @@
|
||||
"description": "Whether transferring files over USB is disabled.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"usbMassStorageEnabled": {
|
||||
"description": "Allows admins to toggle whether USB storge is enabled or disabled on user's devices.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"version": {
|
||||
"description": "The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.",
|
||||
"format": "int64",
|
||||
@@ -2650,6 +2725,21 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TermsAndConditions": {
|
||||
"description": "A terms and conditions page to be accepted during provisioning.",
|
||||
"id": "TermsAndConditions",
|
||||
"properties": {
|
||||
"content": {
|
||||
"$ref": "UserFacingMessage",
|
||||
"description": "A well-formatted HTML string. It will be parsed on the client with android.text.Html#fromHtml."
|
||||
},
|
||||
"header": {
|
||||
"$ref": "UserFacingMessage",
|
||||
"description": "A short header which appears above the HTML content."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UserFacingMessage": {
|
||||
"description": "Provides a user-facing message with locale info. The maximum message length is 4096 characters.",
|
||||
"id": "UserFacingMessage",
|
||||
|
||||
+103
-10
@@ -317,7 +317,8 @@ func (s *ApplicationPermission) MarshalJSON() ([]byte, error) {
|
||||
type ApplicationPolicy struct {
|
||||
// DefaultPermissionPolicy: 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.
|
||||
// default_permission_policy which applies to all apps. It does not
|
||||
// override the permission_grants which applies to all apps.
|
||||
//
|
||||
// Possible values:
|
||||
// "PERMISSION_POLICY_UNSPECIFIED" - Policy not specified. If no
|
||||
@@ -389,7 +390,8 @@ type ApplicationPolicy struct {
|
||||
PackageName string `json:"packageName,omitempty"`
|
||||
|
||||
// PermissionGrants: Explicit permission grants or denials for the app.
|
||||
// These values override the default_permission_policy.
|
||||
// These values override the default_permission_policy and
|
||||
// permission_grants which apply to all apps.
|
||||
PermissionGrants []*PermissionGrant `json:"permissionGrants,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
@@ -429,6 +431,21 @@ type Command struct {
|
||||
// duration.
|
||||
Duration string `json:"duration,omitempty"`
|
||||
|
||||
// ErrorCode: If the command failed, an error code explaining the
|
||||
// failure. This is not set when the command is cancelled by the caller.
|
||||
//
|
||||
// Possible values:
|
||||
// "COMMAND_ERROR_CODE_UNSPECIFIED" - There was no error.
|
||||
// "UNKNOWN" - An unknown error occurred.
|
||||
// "API_LEVEL" - The API level of the device does not support this
|
||||
// command.
|
||||
// "MANAGEMENT_MODE" - The management mode (profile owner, device
|
||||
// owner, etc.) does not support the command.
|
||||
// "INVALID_VALUE" - The command has an invalid parameter value.
|
||||
// "UNSUPPORTED" - The device doesn't support the command. Updating
|
||||
// Android Device Policy to the latest version may resolve the issue.
|
||||
ErrorCode string `json:"errorCode,omitempty"`
|
||||
|
||||
// NewPassword: For commands of type RESET_PASSWORD, optionally
|
||||
// specifies the new password.
|
||||
NewPassword string `json:"newPassword,omitempty"`
|
||||
@@ -910,10 +927,7 @@ func (s *EnrollmentToken) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// Enterprise: The configuration applied to an enterprise.
|
||||
type Enterprise struct {
|
||||
// AppAutoApprovalEnabled: Whether permissions for apps installed via
|
||||
// policy are automatically approved. If enabled, you must display an
|
||||
// app's permissions to the enterprise admin before setting the app to
|
||||
// be installed in a policy.
|
||||
// AppAutoApprovalEnabled: Deprecated and unused.
|
||||
AppAutoApprovalEnabled bool `json:"appAutoApprovalEnabled,omitempty"`
|
||||
|
||||
// EnabledNotificationTypes: The types of Google Pub/Sub notifications
|
||||
@@ -953,6 +967,11 @@ type Enterprise struct {
|
||||
// required if Pub/Sub notifications are enabled.
|
||||
PubsubTopic string `json:"pubsubTopic,omitempty"`
|
||||
|
||||
// TermsAndConditions: Terms and conditions that must be accepted when
|
||||
// provisioning a device for this enterprise. A page of terms is
|
||||
// generated for each value in this list.
|
||||
TermsAndConditions []*TermsAndConditions `json:"termsAndConditions,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
@@ -1959,13 +1978,12 @@ type Policy struct {
|
||||
// "BETA" - The beta track, which provides the latest beta release.
|
||||
AndroidDevicePolicyTracks []string `json:"androidDevicePolicyTracks,omitempty"`
|
||||
|
||||
// AppAutoUpdatePolicy: The auto update policy value. Specifies whether
|
||||
// the user is given a choice to configure the app update policy, or
|
||||
// otherwise contains the enforced update policy
|
||||
// AppAutoUpdatePolicy: The app auto update policy, which controls when
|
||||
// automatic app updates can be applied.
|
||||
//
|
||||
// Possible values:
|
||||
// "APP_AUTO_UPDATE_POLICY_UNSPECIFIED" - The auto-update policy is
|
||||
// not set. Same as giving auto-update policy choice to the user.
|
||||
// not set. Equivalent to CHOICE_TO_THE_USER.
|
||||
// "CHOICE_TO_THE_USER" - The user can control auto-updates.
|
||||
// "NEVER" - Apps are never auto-updated.
|
||||
// "WIFI_ONLY" - Apps are auto-updated over Wi-Fi only.
|
||||
@@ -2038,6 +2056,21 @@ type Policy struct {
|
||||
// "DENY" - Automatically deny a permission.
|
||||
DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"`
|
||||
|
||||
// DeviceOwnerLockScreenInfo: The device owner information to be shown
|
||||
// on the lock screen.
|
||||
DeviceOwnerLockScreenInfo *UserFacingMessage `json:"deviceOwnerLockScreenInfo,omitempty"`
|
||||
|
||||
// EncryptionPolicy: Whether encryption is enabled
|
||||
//
|
||||
// Possible values:
|
||||
// "ENCRYPTION_POLICY_UNSPECIFIED" - This value is ignored, i.e. no
|
||||
// encryption required
|
||||
// "ENABLED_WITHOUT_PASSWORD" - Encryption required but no password
|
||||
// required to boot
|
||||
// "ENABLED_WITH_PASSWORD" - Encryption required with password
|
||||
// required to boot
|
||||
EncryptionPolicy string `json:"encryptionPolicy,omitempty"`
|
||||
|
||||
// EnsureVerifyAppsEnabled: Whether app verification is force-enabled.
|
||||
EnsureVerifyAppsEnabled bool `json:"ensureVerifyAppsEnabled,omitempty"`
|
||||
|
||||
@@ -2096,6 +2129,20 @@ type Policy struct {
|
||||
// settings.
|
||||
KioskCustomLauncherEnabled bool `json:"kioskCustomLauncherEnabled,omitempty"`
|
||||
|
||||
// LocationMode: The degree of location detection enabled. The user may
|
||||
// change the value unless the user is otherwise blocked from accessing
|
||||
// device settings.
|
||||
//
|
||||
// Possible values:
|
||||
// "LOCATION_MODE_UNSPECIFIED" - The current device value is not
|
||||
// modified.
|
||||
// "HIGH_ACCURACY" - All location detection methods are enabled,
|
||||
// including GPS, networks, and other sensors.
|
||||
// "SENSORS_ONLY" - Only GPS and other sensors are enabled.
|
||||
// "BATTERY_SAVING" - Only the network location provider is enabled.
|
||||
// "OFF" - Location detection is disabled.
|
||||
LocationMode string `json:"locationMode,omitempty"`
|
||||
|
||||
// LongSupportMessage: A message displayed to the user in the device
|
||||
// administators settings screen.
|
||||
LongSupportMessage *UserFacingMessage `json:"longSupportMessage,omitempty"`
|
||||
@@ -2180,10 +2227,19 @@ type Policy struct {
|
||||
// SetWallpaperDisabled: Whether changing the wallpaper is disabled.
|
||||
SetWallpaperDisabled bool `json:"setWallpaperDisabled,omitempty"`
|
||||
|
||||
// ShareLocationDisabled: Whether location sharing is disabled.
|
||||
ShareLocationDisabled bool `json:"shareLocationDisabled,omitempty"`
|
||||
|
||||
// ShortSupportMessage: A message displayed to the user in the settings
|
||||
// screen wherever functionality has been disabled by the admin.
|
||||
ShortSupportMessage *UserFacingMessage `json:"shortSupportMessage,omitempty"`
|
||||
|
||||
// SkipFirstUseHintsEnabled: Flag to skip hints on the first use.
|
||||
// Enterprise admin can enable the system recommendation for apps to
|
||||
// skip their user tutorial and other introductory hints on first
|
||||
// start-up.
|
||||
SkipFirstUseHintsEnabled bool `json:"skipFirstUseHintsEnabled,omitempty"`
|
||||
|
||||
// SmsDisabled: Whether sending and receiving SMS messages is disabled.
|
||||
SmsDisabled bool `json:"smsDisabled,omitempty"`
|
||||
|
||||
@@ -2228,6 +2284,10 @@ type Policy struct {
|
||||
// disabled.
|
||||
UsbFileTransferDisabled bool `json:"usbFileTransferDisabled,omitempty"`
|
||||
|
||||
// UsbMassStorageEnabled: Allows admins to toggle whether USB storge is
|
||||
// enabled or disabled on user's devices.
|
||||
UsbMassStorageEnabled bool `json:"usbMassStorageEnabled,omitempty"`
|
||||
|
||||
// Version: The version of the policy. This is a read-only field. The
|
||||
// version is incremented each time the policy is updated.
|
||||
Version int64 `json:"version,omitempty,string"`
|
||||
@@ -2652,6 +2712,39 @@ func (s *SystemUpdate) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// TermsAndConditions: A terms and conditions page to be accepted during
|
||||
// provisioning.
|
||||
type TermsAndConditions struct {
|
||||
// Content: A well-formatted HTML string. It will be parsed on the
|
||||
// client with android.text.Html#fromHtml.
|
||||
Content *UserFacingMessage `json:"content,omitempty"`
|
||||
|
||||
// Header: A short header which appears above the HTML content.
|
||||
Header *UserFacingMessage `json:"header,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Content") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Content") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *TermsAndConditions) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod TermsAndConditions
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// UserFacingMessage: Provides a user-facing message with locale info.
|
||||
// The maximum message length is 4096 characters.
|
||||
type UserFacingMessage struct {
|
||||
|
||||
Reference in New Issue
Block a user