Update dependenciess

Exclude minio-go for now (pin to 3.x.y).
This commit is contained in:
Alexander Neumann 2017-12-03 21:01:25 +01:00
parent 9d0f13c4c0
commit 946c8399e2
2985 changed files with 1008107 additions and 118934 deletions

View file

@ -168,6 +168,38 @@ type SignupUrlsService struct {
s *Service
}
// AlwaysOnVpnPackage: Configuration for an always-on VPN connection.
type AlwaysOnVpnPackage struct {
// LockdownEnabled: Disallows networking when the VPN is not connected.
LockdownEnabled bool `json:"lockdownEnabled,omitempty"`
// PackageName: The package name of the VPN app.
PackageName string `json:"packageName,omitempty"`
// ForceSendFields is a list of field names (e.g. "LockdownEnabled") 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. "LockdownEnabled") 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 *AlwaysOnVpnPackage) MarshalJSON() ([]byte, error) {
type NoMethod AlwaysOnVpnPackage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ApiLevelCondition: A compliance rule condition which is satisfied if
// the Android Framework API level on the device does not meet a minimum
// requirement. There can only be one rule with this type of condition
@ -196,8 +228,8 @@ type ApiLevelCondition struct {
}
func (s *ApiLevelCondition) MarshalJSON() ([]byte, error) {
type noMethod ApiLevelCondition
raw := noMethod(*s)
type NoMethod ApiLevelCondition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -240,8 +272,8 @@ type Application struct {
}
func (s *Application) MarshalJSON() ([]byte, error) {
type noMethod Application
raw := noMethod(*s)
type NoMethod Application
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -276,8 +308,8 @@ type ApplicationPermission struct {
}
func (s *ApplicationPermission) MarshalJSON() ([]byte, error) {
type noMethod ApplicationPermission
raw := noMethod(*s)
type NoMethod ApplicationPermission
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -355,8 +387,8 @@ type ApplicationPolicy struct {
}
func (s *ApplicationPolicy) MarshalJSON() ([]byte, error) {
type noMethod ApplicationPolicy
raw := noMethod(*s)
type NoMethod ApplicationPolicy
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -416,8 +448,8 @@ type Command struct {
}
func (s *Command) MarshalJSON() ([]byte, error) {
type noMethod Command
raw := noMethod(*s)
type NoMethod Command
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -464,8 +496,8 @@ type ComplianceRule struct {
}
func (s *ComplianceRule) MarshalJSON() ([]byte, error) {
type noMethod ComplianceRule
raw := noMethod(*s)
type NoMethod ComplianceRule
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -631,8 +663,8 @@ type Device struct {
}
func (s *Device) MarshalJSON() ([]byte, error) {
type noMethod Device
raw := noMethod(*s)
type NoMethod Device
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -684,8 +716,8 @@ type Display struct {
}
func (s *Display) MarshalJSON() ([]byte, error) {
type noMethod Display
raw := noMethod(*s)
type NoMethod Display
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -772,8 +804,8 @@ type EnrollmentToken struct {
}
func (s *EnrollmentToken) MarshalJSON() ([]byte, error) {
type noMethod EnrollmentToken
raw := noMethod(*s)
type NoMethod EnrollmentToken
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -851,8 +883,8 @@ type Enterprise struct {
}
func (s *Enterprise) MarshalJSON() ([]byte, error) {
type noMethod Enterprise
raw := noMethod(*s)
type NoMethod Enterprise
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -889,8 +921,8 @@ type ExternalData struct {
}
func (s *ExternalData) MarshalJSON() ([]byte, error) {
type noMethod ExternalData
raw := noMethod(*s)
type NoMethod ExternalData
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -969,8 +1001,8 @@ type HardwareInfo struct {
}
func (s *HardwareInfo) MarshalJSON() ([]byte, error) {
type noMethod HardwareInfo
raw := noMethod(*s)
type NoMethod HardwareInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1025,8 +1057,8 @@ type HardwareStatus struct {
}
func (s *HardwareStatus) MarshalJSON() ([]byte, error) {
type noMethod HardwareStatus
raw := noMethod(*s)
type NoMethod HardwareStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1062,8 +1094,8 @@ type ListDevicesResponse struct {
}
func (s *ListDevicesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListDevicesResponse
raw := noMethod(*s)
type NoMethod ListDevicesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1099,8 +1131,8 @@ type ListOperationsResponse struct {
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListOperationsResponse
raw := noMethod(*s)
type NoMethod ListOperationsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1136,8 +1168,8 @@ type ListPoliciesResponse struct {
}
func (s *ListPoliciesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListPoliciesResponse
raw := noMethod(*s)
type NoMethod ListPoliciesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1199,8 +1231,8 @@ type ManagedProperty struct {
}
func (s *ManagedProperty) MarshalJSON() ([]byte, error) {
type noMethod ManagedProperty
raw := noMethod(*s)
type NoMethod ManagedProperty
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1231,8 +1263,8 @@ type ManagedPropertyEntry struct {
}
func (s *ManagedPropertyEntry) MarshalJSON() ([]byte, error) {
type noMethod ManagedPropertyEntry
raw := noMethod(*s)
type NoMethod ManagedPropertyEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1281,8 +1313,8 @@ type MemoryEvent struct {
}
func (s *MemoryEvent) MarshalJSON() ([]byte, error) {
type noMethod MemoryEvent
raw := noMethod(*s)
type NoMethod MemoryEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1314,8 +1346,8 @@ type MemoryInfo struct {
}
func (s *MemoryInfo) MarshalJSON() ([]byte, error) {
type noMethod MemoryInfo
raw := noMethod(*s)
type NoMethod MemoryInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1349,8 +1381,8 @@ type NetworkInfo struct {
}
func (s *NetworkInfo) MarshalJSON() ([]byte, error) {
type noMethod NetworkInfo
raw := noMethod(*s)
type NoMethod NetworkInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1453,8 +1485,8 @@ type NonComplianceDetail struct {
}
func (s *NonComplianceDetail) MarshalJSON() ([]byte, error) {
type noMethod NonComplianceDetail
raw := noMethod(*s)
type NoMethod NonComplianceDetail
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1519,8 +1551,8 @@ type NonComplianceDetailCondition struct {
}
func (s *NonComplianceDetailCondition) MarshalJSON() ([]byte, error) {
type noMethod NonComplianceDetailCondition
raw := noMethod(*s)
type NoMethod NonComplianceDetailCondition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1580,8 +1612,36 @@ type Operation struct {
}
func (s *Operation) MarshalJSON() ([]byte, error) {
type noMethod Operation
raw := noMethod(*s)
type NoMethod Operation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PackageNameList: A list of package names.
type PackageNameList struct {
// PackageNames: A list of package names.
PackageNames []string `json:"packageNames,omitempty"`
// ForceSendFields is a list of field names (e.g. "PackageNames") 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. "PackageNames") 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 *PackageNameList) MarshalJSON() ([]byte, error) {
type NoMethod PackageNameList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1640,6 +1700,10 @@ type PasswordRequirements struct {
// Possible values:
// "PASSWORD_QUALITY_UNSPECIFIED" - There are no requirements for the
// password.
// "BIOMETRIC_WEAK" - There must be at least low-security biometric
// recognition technology to secure the device. This includes
// technologies that can recognize the identity of an individual to
// about a 3 digit PIN (false detection is less than 1 in 1,000).
// "SOMETHING" - There must be a password, but there are no
// restrictions on its characters.
// "NUMERIC" - The password must contain numeric characters.
@ -1674,8 +1738,8 @@ type PasswordRequirements struct {
}
func (s *PasswordRequirements) MarshalJSON() ([]byte, error) {
type noMethod PasswordRequirements
raw := noMethod(*s)
type NoMethod PasswordRequirements
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1715,8 +1779,8 @@ type PermissionGrant struct {
}
func (s *PermissionGrant) MarshalJSON() ([]byte, error) {
type noMethod PermissionGrant
raw := noMethod(*s)
type NoMethod PermissionGrant
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1761,13 +1825,18 @@ type PersistentPreferredActivity struct {
}
func (s *PersistentPreferredActivity) MarshalJSON() ([]byte, error) {
type noMethod PersistentPreferredActivity
raw := noMethod(*s)
type NoMethod PersistentPreferredActivity
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Policy: A policy, which governs behavior for a device.
type Policy struct {
// AccountTypesWithManagementDisabled: Account types that cannot be
// managed by the user. <i>Requires the beta version of Android Cloud
// Policy.</i>
AccountTypesWithManagementDisabled []string `json:"accountTypesWithManagementDisabled,omitempty"`
// AddUserDisabled: Whether adding new users and profiles is disabled.
AddUserDisabled bool `json:"addUserDisabled,omitempty"`
@ -1775,6 +1844,10 @@ type Policy struct {
// disabled.
AdjustVolumeDisabled bool `json:"adjustVolumeDisabled,omitempty"`
// AlwaysOnVpnPackage: Configuration for an always-on VPN connection.
// <i>Requires the beta version of Android Cloud Policy.</i>
AlwaysOnVpnPackage *AlwaysOnVpnPackage `json:"alwaysOnVpnPackage,omitempty"`
// Applications: Policy applied to apps.
Applications []*ApplicationPolicy `json:"applications,omitempty"`
@ -1788,15 +1861,46 @@ type Policy struct {
// longer appear in the policy are automatically uninstalled.
BlockApplicationsEnabled bool `json:"blockApplicationsEnabled,omitempty"`
// BluetoothConfigDisabled: Whether configuring bluetooth is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
BluetoothConfigDisabled bool `json:"bluetoothConfigDisabled,omitempty"`
// BluetoothContactSharingDisabled: Whether bluetooth contact sharing is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
BluetoothContactSharingDisabled bool `json:"bluetoothContactSharingDisabled,omitempty"`
// BluetoothDisabled: Whether bluetooth is disabled. Prefer this setting
// over bluetooth_config_disabled because bluetooth_config_disabled can
// be bypassed by the user. <i>Requires the beta version of Android
// Cloud Policy.</i>
BluetoothDisabled bool `json:"bluetoothDisabled,omitempty"`
// CameraDisabled: Whether all cameras on the device are disabled.
CameraDisabled bool `json:"cameraDisabled,omitempty"`
// CellBroadcastsConfigDisabled: Whether configuring cell broadcast is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
CellBroadcastsConfigDisabled bool `json:"cellBroadcastsConfigDisabled,omitempty"`
// ComplianceRules: Rules declaring which mitigating actions to take
// when a device is not compliant with its policy. When the conditions
// for multiple rules are satisfied, all of the mitigating actions for
// the rules are taken. There is a maximum limit of 100 rules.
ComplianceRules []*ComplianceRule `json:"complianceRules,omitempty"`
// CreateWindowsDisabled: Whether creating windows besides app windows
// is disabled. <i>Requires the beta version of Android Cloud
// Policy.</i>
CreateWindowsDisabled bool `json:"createWindowsDisabled,omitempty"`
// CredentialsConfigDisabled: Whether configuring user credentials is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
CredentialsConfigDisabled bool `json:"credentialsConfigDisabled,omitempty"`
// DataRoamingDisabled: Whether roaming data services are disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
DataRoamingDisabled bool `json:"dataRoamingDisabled,omitempty"`
// DebuggingFeaturesAllowed: Whether the user is allowed to enable
// debugging features.
DebuggingFeaturesAllowed bool `json:"debuggingFeaturesAllowed,omitempty"`
@ -1813,6 +1917,11 @@ type Policy struct {
// "DENY" - Automatically deny a permission.
DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"`
// EnsureVerifyAppsEnabled: Whether application verification is forced
// to be enabled. <i>Requires the beta version of Android Cloud
// Policy.</i>
EnsureVerifyAppsEnabled bool `json:"ensureVerifyAppsEnabled,omitempty"`
// FactoryResetDisabled: Whether factory resetting from settings is
// disabled.
FactoryResetDisabled bool `json:"factoryResetDisabled,omitempty"`
@ -1828,6 +1937,10 @@ type Policy struct {
// whether the Easter egg game in Settings is disabled.
FunDisabled bool `json:"funDisabled,omitempty"`
// InstallAppsDisabled: Whether user installation of apps is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
InstallAppsDisabled bool `json:"installAppsDisabled,omitempty"`
// InstallUnknownSourcesAllowed: Whether the user is allowed to enable
// the "Unknown Sources" setting, which allows installation of apps from
// unknown sources.
@ -1836,15 +1949,50 @@ type Policy struct {
// KeyguardDisabled: Whether the keyguard is disabled.
KeyguardDisabled bool `json:"keyguardDisabled,omitempty"`
// KeyguardDisabledFeatures: Disabled keyguard customizations, such as
// widgets. <i>Requires the beta version of Android Cloud Policy.</i>
//
// Possible values:
// "KEYGUARD_DISABLED_FEATURE_UNSPECIFIED" - This value is ignored.
// "CAMERA" - Disable the camera on secure keyguard screens (e.g.
// PIN).
// "NOTIFICATIONS" - Disable showing all notifications on secure
// keyguard screens.
// "UNREDACTED_NOTIFICATIONS" - Disable unredacted notifications on
// secure keyguard screens.
// "TRUST_AGENTS" - Ignore trust agent state on secure keyguard
// screens.
// "DISABLE_FINGERPRINT" - Disable fingerprint sensor on keyguard
// secure screens.
// "DISABLE_REMOTE_INPUT" - Disable text entry into notifications on
// secure keyguard screens.
// "ALL_FEATURES" - Disable all current and future keyguard
// customizations.
KeyguardDisabledFeatures []string `json:"keyguardDisabledFeatures,omitempty"`
// LongSupportMessage: A message displayed to the user in the device
// administators settings screen. <i>Requires the beta version of
// Android Cloud Policy.</i>
LongSupportMessage *UserFacingMessage `json:"longSupportMessage,omitempty"`
// MaximumTimeToLock: Maximum time in milliseconds for user activity
// until the device will lock. A value of 0 means there is no
// restriction.
MaximumTimeToLock int64 `json:"maximumTimeToLock,omitempty,string"`
// MobileNetworksConfigDisabled: Whether configuring mobile networks is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
MobileNetworksConfigDisabled bool `json:"mobileNetworksConfigDisabled,omitempty"`
// ModifyAccountsDisabled: Whether adding or removing accounts is
// disabled.
ModifyAccountsDisabled bool `json:"modifyAccountsDisabled,omitempty"`
// MountPhysicalMediaDisabled: Whether the user mounting physical
// external media is disabled. <i>Requires the beta version of Android
// Cloud Policy.</i>
MountPhysicalMediaDisabled bool `json:"mountPhysicalMediaDisabled,omitempty"`
// Name: The name of the policy in the form
// enterprises/{enterpriseId}/policies/{policyId}
Name string `json:"name,omitempty"`
@ -1860,16 +2008,43 @@ type Policy struct {
// device settings.
NetworkEscapeHatchEnabled bool `json:"networkEscapeHatchEnabled,omitempty"`
// NetworkResetDisabled: Whether resetting network settings is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
NetworkResetDisabled bool `json:"networkResetDisabled,omitempty"`
// OpenNetworkConfiguration: Network configuration for the device. See
// configure networks for more information.
OpenNetworkConfiguration googleapi.RawMessage `json:"openNetworkConfiguration,omitempty"`
// OutgoingBeamDisabled: Whether using NFC to beam out data from apps is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
OutgoingBeamDisabled bool `json:"outgoingBeamDisabled,omitempty"`
// OutgoingCallsDisabled: Whether outgoing calls are disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
OutgoingCallsDisabled bool `json:"outgoingCallsDisabled,omitempty"`
// PasswordRequirements: Password requirements.
PasswordRequirements *PasswordRequirements `json:"passwordRequirements,omitempty"`
// PermittedInputMethods: If present, only input methods provided by
// packages in this list are permitted. If this field is present, but
// the list is empty, then only system input methods are permitted.
// <i>Requires the beta version of Android Cloud Policy.</i>
PermittedInputMethods *PackageNameList `json:"permittedInputMethods,omitempty"`
// PersistentPreferredActivities: Default intent handler activities.
PersistentPreferredActivities []*PersistentPreferredActivity `json:"persistentPreferredActivities,omitempty"`
// RecommendedGlobalProxy: The network-independent global HTTP proxy.
// Typically proxies should be configured per-network in
// open_network_configuration. However for unusual configurations like
// general internal filtering a global HTTP proxy may be useful. If the
// proxy is not accessible, network access may break. The global proxy
// is only a recommendation and some apps may ignore it. <i>Requires the
// beta version of Android Cloud Policy.</i>
RecommendedGlobalProxy *ProxyInfo `json:"recommendedGlobalProxy,omitempty"`
// RemoveUserDisabled: Whether removing other users is disabled.
RemoveUserDisabled bool `json:"removeUserDisabled,omitempty"`
@ -1880,6 +2055,23 @@ type Policy struct {
// ScreenCaptureDisabled: Whether screen capture is disabled.
ScreenCaptureDisabled bool `json:"screenCaptureDisabled,omitempty"`
// SetUserIconDisabled: Whether changing the user icon is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
SetUserIconDisabled bool `json:"setUserIconDisabled,omitempty"`
// SetWallpaperDisabled: Whether changing the wallpaper is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
SetWallpaperDisabled bool `json:"setWallpaperDisabled,omitempty"`
// ShortSupportMessage: A message displayed to the user in the settings
// screen wherever functionality has been disabled by the admin.
// <i>Requires the beta version of Android Cloud Policy.</i>
ShortSupportMessage *UserFacingMessage `json:"shortSupportMessage,omitempty"`
// SmsDisabled: Whether sending or receiving SMS messages is disabled.
// <i>Requires the beta version of Android Cloud Policy.</i>
SmsDisabled bool `json:"smsDisabled,omitempty"`
// StatusBarDisabled: Whether the status bar is disabled. This disables
// notifications, quick settings and other screen overlays that allow
// escape from full-screen mode.
@ -1905,14 +2097,31 @@ type Policy struct {
// automatically apply to Play app updates as well.
SystemUpdate *SystemUpdate `json:"systemUpdate,omitempty"`
// TetheringConfigDisabled: Whether configuring tethering and portable
// hotspots is disabled. <i>Requires the beta version of Android Cloud
// Policy.</i>
TetheringConfigDisabled bool `json:"tetheringConfigDisabled,omitempty"`
// UninstallAppsDisabled: Whether user uninstallation of applications is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
UninstallAppsDisabled bool `json:"uninstallAppsDisabled,omitempty"`
// UnmuteMicrophoneDisabled: Whether the microphone is muted and
// adjusting microphone volume is disabled.
UnmuteMicrophoneDisabled bool `json:"unmuteMicrophoneDisabled,omitempty"`
// UsbFileTransferDisabled: Whether transferring files over USB is
// disabled. <i>Requires the beta version of Android Cloud Policy.</i>
UsbFileTransferDisabled bool `json:"usbFileTransferDisabled,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"`
// VpnConfigDisabled: Whether configuring VPN is disabled. <i>Requires
// the beta version of Android Cloud Policy.</i>
VpnConfigDisabled bool `json:"vpnConfigDisabled,omitempty"`
// WifiConfigDisabled: Whether configuring WiFi access points is
// disabled.
WifiConfigDisabled bool `json:"wifiConfigDisabled,omitempty"`
@ -1926,27 +2135,28 @@ type Policy struct {
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AddUserDisabled") 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 is a list of field names (e.g.
// "AccountTypesWithManagementDisabled") 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. "AddUserDisabled") 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 is a list of field names (e.g.
// "AccountTypesWithManagementDisabled") 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 *Policy) MarshalJSON() ([]byte, error) {
type noMethod Policy
raw := noMethod(*s)
type NoMethod Policy
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -1991,18 +2201,18 @@ type PowerManagementEvent struct {
}
func (s *PowerManagementEvent) MarshalJSON() ([]byte, error) {
type noMethod PowerManagementEvent
raw := noMethod(*s)
type NoMethod PowerManagementEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *PowerManagementEvent) UnmarshalJSON(data []byte) error {
type noMethod PowerManagementEvent
type NoMethod PowerManagementEvent
var s1 struct {
BatteryLevel gensupport.JSONFloat64 `json:"batteryLevel"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@ -2010,6 +2220,46 @@ func (s *PowerManagementEvent) UnmarshalJSON(data []byte) error {
return nil
}
// ProxyInfo: Configuration info for an HTTP proxy. For a direct proxy,
// set the host, port, and excluded_hosts fields. For a PAC script
// proxy, set the pac_uri field.
type ProxyInfo struct {
// ExcludedHosts: For a direct proxy, the hosts for which the proxy is
// bypassed. The host names may contain wildcards such as *.example.com.
ExcludedHosts []string `json:"excludedHosts,omitempty"`
// Host: The host of the direct proxy.
Host string `json:"host,omitempty"`
// PacUri: The URI of the PAC script used to configure the proxy.
PacUri string `json:"pacUri,omitempty"`
// Port: The port of the direct proxy.
Port int64 `json:"port,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExcludedHosts") 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. "ExcludedHosts") 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 *ProxyInfo) MarshalJSON() ([]byte, error) {
type NoMethod ProxyInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SignupUrl: An enterprise signup URL.
type SignupUrl struct {
// Name: The name of the resource. This must be included in the create
@ -2042,8 +2292,8 @@ type SignupUrl struct {
}
func (s *SignupUrl) MarshalJSON() ([]byte, error) {
type noMethod SignupUrl
raw := noMethod(*s)
type NoMethod SignupUrl
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2087,8 +2337,8 @@ type SoftwareInfo struct {
}
func (s *SoftwareInfo) MarshalJSON() ([]byte, error) {
type noMethod SoftwareInfo
raw := noMethod(*s)
type NoMethod SoftwareInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2163,8 +2413,8 @@ type Status struct {
}
func (s *Status) MarshalJSON() ([]byte, error) {
type noMethod Status
raw := noMethod(*s)
type NoMethod Status
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2209,8 +2459,8 @@ type StatusReportingSettings struct {
}
func (s *StatusReportingSettings) MarshalJSON() ([]byte, error) {
type noMethod StatusReportingSettings
raw := noMethod(*s)
type NoMethod StatusReportingSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2264,8 +2514,8 @@ type SystemUpdate struct {
}
func (s *SystemUpdate) MarshalJSON() ([]byte, error) {
type noMethod SystemUpdate
raw := noMethod(*s)
type NoMethod SystemUpdate
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2301,8 +2551,8 @@ type UserFacingMessage struct {
}
func (s *UserFacingMessage) MarshalJSON() ([]byte, error) {
type noMethod UserFacingMessage
raw := noMethod(*s)
type NoMethod UserFacingMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2354,8 +2604,8 @@ type WebToken struct {
}
func (s *WebToken) MarshalJSON() ([]byte, error) {
type noMethod WebToken
raw := noMethod(*s)
type NoMethod WebToken
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@ -2476,7 +2726,7 @@ func (c *EnterprisesCreateCall) Do(opts ...googleapi.CallOption) (*Enterprise, e
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -2624,7 +2874,7 @@ func (c *EnterprisesGetCall) Do(opts ...googleapi.CallOption) (*Enterprise, erro
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -2764,7 +3014,7 @@ func (c *EnterprisesPatchCall) Do(opts ...googleapi.CallOption) (*Enterprise, er
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -2921,7 +3171,7 @@ func (c *EnterprisesApplicationsGetCall) Do(opts ...googleapi.CallOption) (*Appl
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3051,7 +3301,7 @@ func (c *EnterprisesDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3190,7 +3440,7 @@ func (c *EnterprisesDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, e
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3324,7 +3574,7 @@ func (c *EnterprisesDevicesIssueCommandCall) Do(opts ...googleapi.CallOption) (*
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3480,7 +3730,7 @@ func (c *EnterprisesDevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevi
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3652,7 +3902,7 @@ func (c *EnterprisesDevicesPatchCall) Do(opts ...googleapi.CallOption) (*Device,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3795,7 +4045,7 @@ func (c *EnterprisesDevicesOperationsCancelCall) Do(opts ...googleapi.CallOption
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -3923,7 +4173,7 @@ func (c *EnterprisesDevicesOperationsDeleteCall) Do(opts ...googleapi.CallOption
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4064,7 +4314,7 @@ func (c *EnterprisesDevicesOperationsGetCall) Do(opts ...googleapi.CallOption) (
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4233,7 +4483,7 @@ func (c *EnterprisesDevicesOperationsListCall) Do(opts ...googleapi.CallOption)
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4402,7 +4652,7 @@ func (c *EnterprisesEnrollmentTokensCreateCall) Do(opts ...googleapi.CallOption)
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4531,7 +4781,7 @@ func (c *EnterprisesEnrollmentTokensDeleteCall) Do(opts ...googleapi.CallOption)
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4657,7 +4907,7 @@ func (c *EnterprisesPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4796,7 +5046,7 @@ func (c *EnterprisesPoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -4949,7 +5199,7 @@ func (c *EnterprisesPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListPol
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -5121,7 +5371,7 @@ func (c *EnterprisesPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Policy
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -5263,7 +5513,7 @@ func (c *EnterprisesWebTokensCreateCall) Do(opts ...googleapi.CallOption) (*WebT
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@ -5405,7 +5655,7 @@ func (c *SignupUrlsCreateCall) Do(opts ...googleapi.CallOption) (*SignupUrl, err
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil