@@ -3508,6 +3508,54 @@ instance ToJSON User where
3508 ("customSchemas" .=) <$> _useCustomSchemas,
3508 ("customSchemas" .=) <$> _useCustomSchemas,
3509 ("suspensionReason" .=) <$> _useSuspensionReason])
3509 ("suspensionReason" .=) <$> _useSuspensionReason])
3511+-- | JSON request template for firing actions on ChromeOs Device in Directory
3514+-- /See:/ 'chromeOSDeviceAction' smart constructor.
3515+data ChromeOSDeviceAction = ChromeOSDeviceAction'
3516+ { _codaAction :: !(Maybe Text)
3517+ , _codaDeprovisionReason :: !(Maybe Text)
3518+ } deriving (Eq,Show,Data,Typeable,Generic)
3520+-- | Creates a value of 'ChromeOSDeviceAction' with the minimum fields required to make a request.
3522+-- Use one of the following lenses to modify other fields as desired:
3526+-- * 'codaDeprovisionReason'
3527+chromeOSDeviceAction
3528+ :: ChromeOSDeviceAction
3529+chromeOSDeviceAction =
3530+ ChromeOSDeviceAction'
3531+ { _codaAction = Nothing
3532+ , _codaDeprovisionReason = Nothing
3535+-- | Action to be taken on the ChromeOs Device
3536+codaAction :: Lens' ChromeOSDeviceAction (Maybe Text)
3538+ = lens _codaAction (\ s a -> s{_codaAction = a})
3540+codaDeprovisionReason :: Lens' ChromeOSDeviceAction (Maybe Text)
3541+codaDeprovisionReason
3542+ = lens _codaDeprovisionReason
3543+ (\ s a -> s{_codaDeprovisionReason = a})
3545+instance FromJSON ChromeOSDeviceAction where
3547+ = withObject "ChromeOSDeviceAction"
3549+ ChromeOSDeviceAction' <$>
3550+ (o .:? "action") <*> (o .:? "deprovisionReason"))
3552+instance ToJSON ChromeOSDeviceAction where
3553+ toJSON ChromeOSDeviceAction'{..}
3556+ [("action" .=) <$> _codaAction,
3557+ ("deprovisionReason" .=) <$> _codaDeprovisionReason])
3511-- | JSON template for role resource in Directory API.
3559-- | JSON template for role resource in Directory API.
3513-- /See:/ 'role'' smart constructor.
3561-- /See:/ 'role'' smart constructor.
@@ -4581,14 +4629,19 @@ instance ToJSON UserPhoto where
4581data MobileDevice = MobileDevice'
4629data MobileDevice = MobileDevice'
4582 { _mobEmail :: !(Maybe [Text])
4630 { _mobEmail :: !(Maybe [Text])
4583 , _mobStatus :: !(Maybe Text)
4631 , _mobStatus :: !(Maybe Text)
4632+ , _mobPrivilege :: !(Maybe Text)
4584 , _mobEtag :: !(Maybe Text)
4633 , _mobEtag :: !(Maybe Text)
4585 , _mobResourceId :: !(Maybe Text)
4634 , _mobResourceId :: !(Maybe Text)
4635+ , _mobManufacturer :: !(Maybe Text)
4586 , _mobBuildNumber :: !(Maybe Text)
4636 , _mobBuildNumber :: !(Maybe Text)
4587 , _mobManagedAccountIsOnOwnerProFile :: !(Maybe Bool)
4637 , _mobManagedAccountIsOnOwnerProFile :: !(Maybe Bool)
4588 , _mobLastSync :: !(Maybe DateTime')
4638 , _mobLastSync :: !(Maybe DateTime')
4589 , _mobOtherAccountsInfo :: !(Maybe [Text])
4639 , _mobOtherAccountsInfo :: !(Maybe [Text])
4590 , _mobKind :: !Text
4640 , _mobKind :: !Text
4591 , _mobAdbStatus :: !(Maybe Bool)
4641 , _mobAdbStatus :: !(Maybe Bool)
4642+ , _mobReleaseVersion :: !(Maybe Text)
4643+ , _mobBrand :: !(Maybe Text)
4644+ , _mobSecurityPatchLevel :: !(Maybe (Textual Int64))
4592 , _mobNetworkOperator :: !(Maybe Text)
4645 , _mobNetworkOperator :: !(Maybe Text)
4593 , _mobKernelVersion :: !(Maybe Text)
4646 , _mobKernelVersion :: !(Maybe Text)
4594 , _mobOS :: !(Maybe Text)
4647 , _mobOS :: !(Maybe Text)
@@ -4597,16 +4650,20 @@ data MobileDevice = MobileDevice'
4597 , _mobDeveloperOptionsStatus :: !(Maybe Bool)
4650 , _mobDeveloperOptionsStatus :: !(Maybe Bool)
4598 , _mobUnknownSourcesStatus :: !(Maybe Bool)
4651 , _mobUnknownSourcesStatus :: !(Maybe Bool)
4599 , _mobMeid :: !(Maybe Text)
4652 , _mobMeid :: !(Maybe Text)
4653+ , _mobBootLoaderVersion :: !(Maybe Text)
4600 , _mobDeviceId :: !(Maybe Text)
4654 , _mobDeviceId :: !(Maybe Text)
4601 , _mobFirstSync :: !(Maybe DateTime')
4655 , _mobFirstSync :: !(Maybe DateTime')
4602 , _mobUserAgent :: !(Maybe Text)
4656 , _mobUserAgent :: !(Maybe Text)
4603 , _mobImei :: !(Maybe Text)
4657 , _mobImei :: !(Maybe Text)
4604 , _mobType :: !(Maybe Text)
4658 , _mobType :: !(Maybe Text)
4605 , _mobWifiMACAddress :: !(Maybe Text)
4659 , _mobWifiMACAddress :: !(Maybe Text)
4660+ , _mobEncryptionStatus :: !(Maybe Text)
4606 , _mobSerialNumber :: !(Maybe Text)
4661 , _mobSerialNumber :: !(Maybe Text)
4662+ , _mobDevicePasswordStatus :: !(Maybe Text)
4607 , _mobHardwareId :: !(Maybe Text)
4663 , _mobHardwareId :: !(Maybe Text)
4608 , _mobBasebandVersion :: !(Maybe Text)
4664 , _mobBasebandVersion :: !(Maybe Text)
4609 , _mobSupportsWorkProFile :: !(Maybe Bool)
4665 , _mobSupportsWorkProFile :: !(Maybe Bool)
4666+ , _mobHardware :: !(Maybe Text)
4610 , _mobDeviceCompromisedStatus :: !(Maybe Text)
4667 , _mobDeviceCompromisedStatus :: !(Maybe Text)
4611 , _mobApplications :: !(Maybe [MobileDeviceApplicationsItem])
4668 , _mobApplications :: !(Maybe [MobileDeviceApplicationsItem])
4612 , _mobDefaultLanguage :: !(Maybe Text)
4669 , _mobDefaultLanguage :: !(Maybe Text)
@@ -4620,10 +4677,14 @@ data MobileDevice = MobileDevice'
4621-- * 'mobStatus'
4678-- * 'mobStatus'
4623-- * 'mobEtag'
4682-- * 'mobEtag'
4625-- * 'mobResourceId'
4684-- * 'mobResourceId'
4686+-- * 'mobManufacturer'
4627-- * 'mobBuildNumber'
4688-- * 'mobBuildNumber'
4629-- * 'mobManagedAccountIsOnOwnerProFile'
4690-- * 'mobManagedAccountIsOnOwnerProFile'
@@ -4636,6 +4697,12 @@ data MobileDevice = MobileDevice'
4637-- * 'mobAdbStatus'
4698-- * 'mobAdbStatus'
4700+-- * 'mobReleaseVersion'
4704+-- * 'mobSecurityPatchLevel'
4639-- * 'mobNetworkOperator'
4706-- * 'mobNetworkOperator'
4641-- * 'mobKernelVersion'
4708-- * 'mobKernelVersion'
@@ -4652,6 +4719,8 @@ data MobileDevice = MobileDevice'
4653-- * 'mobMeid'
4720-- * 'mobMeid'
4722+-- * 'mobBootLoaderVersion'
4655-- * 'mobDeviceId'
4724-- * 'mobDeviceId'
4657-- * 'mobFirstSync'
4726-- * 'mobFirstSync'
@@ -4664,14 +4733,20 @@ data MobileDevice = MobileDevice'
4665-- * 'mobWifiMACAddress'
4734-- * 'mobWifiMACAddress'
4736+-- * 'mobEncryptionStatus'
4667-- * 'mobSerialNumber'
4738-- * 'mobSerialNumber'
4740+-- * 'mobDevicePasswordStatus'
4669-- * 'mobHardwareId'
4742-- * 'mobHardwareId'
4671-- * 'mobBasebandVersion'
4744-- * 'mobBasebandVersion'
4673-- * 'mobSupportsWorkProFile'
4746-- * 'mobSupportsWorkProFile'
4675-- * 'mobDeviceCompromisedStatus'
4750-- * 'mobDeviceCompromisedStatus'
4677-- * 'mobApplications'
4752-- * 'mobApplications'
@@ -4683,14 +4758,19 @@ mobileDevice =
4683 MobileDevice'
4758 MobileDevice'
4684 { _mobEmail = Nothing
4759 { _mobEmail = Nothing
4685 , _mobStatus = Nothing
4760 , _mobStatus = Nothing
4761+ , _mobPrivilege = Nothing
4686 , _mobEtag = Nothing
4762 , _mobEtag = Nothing
4687 , _mobResourceId = Nothing
4763 , _mobResourceId = Nothing
4764+ , _mobManufacturer = Nothing
4688 , _mobBuildNumber = Nothing
4765 , _mobBuildNumber = Nothing
4689 , _mobManagedAccountIsOnOwnerProFile = Nothing
4766 , _mobManagedAccountIsOnOwnerProFile = Nothing
4690 , _mobLastSync = Nothing
4767 , _mobLastSync = Nothing
4691 , _mobOtherAccountsInfo = Nothing
4768 , _mobOtherAccountsInfo = Nothing
4692 , _mobKind = "admin#directory#mobiledevice"
4769 , _mobKind = "admin#directory#mobiledevice"
4693 , _mobAdbStatus = Nothing
4770 , _mobAdbStatus = Nothing
4771+ , _mobReleaseVersion = Nothing
4772+ , _mobBrand = Nothing
4773+ , _mobSecurityPatchLevel = Nothing
4694 , _mobNetworkOperator = Nothing
4774 , _mobNetworkOperator = Nothing
4695 , _mobKernelVersion = Nothing
4775 , _mobKernelVersion = Nothing
4696 , _mobOS = Nothing
4776 , _mobOS = Nothing
@@ -4699,16 +4779,20 @@ mobileDevice =
4699 , _mobDeveloperOptionsStatus = Nothing
4779 , _mobDeveloperOptionsStatus = Nothing
4700 , _mobUnknownSourcesStatus = Nothing
4780 , _mobUnknownSourcesStatus = Nothing
4701 , _mobMeid = Nothing
4781 , _mobMeid = Nothing
4782+ , _mobBootLoaderVersion = Nothing
4702 , _mobDeviceId = Nothing
4783 , _mobDeviceId = Nothing
4703 , _mobFirstSync = Nothing
4784 , _mobFirstSync = Nothing
4704 , _mobUserAgent = Nothing
4785 , _mobUserAgent = Nothing
4705 , _mobImei = Nothing
4786 , _mobImei = Nothing
4706 , _mobType = Nothing
4787 , _mobType = Nothing
4707 , _mobWifiMACAddress = Nothing
4788 , _mobWifiMACAddress = Nothing
4789+ , _mobEncryptionStatus = Nothing
4708 , _mobSerialNumber = Nothing
4790 , _mobSerialNumber = Nothing
4791+ , _mobDevicePasswordStatus = Nothing
4709 , _mobHardwareId = Nothing
4792 , _mobHardwareId = Nothing
4710 , _mobBasebandVersion = Nothing
4793 , _mobBasebandVersion = Nothing
4711 , _mobSupportsWorkProFile = Nothing
4794 , _mobSupportsWorkProFile = Nothing
4795+ , _mobHardware = Nothing
4712 , _mobDeviceCompromisedStatus = Nothing
4796 , _mobDeviceCompromisedStatus = Nothing
4713 , _mobApplications = Nothing
4797 , _mobApplications = Nothing
4714 , _mobDefaultLanguage = Nothing
4798 , _mobDefaultLanguage = Nothing
@@ -4726,6 +4810,11 @@ mobStatus :: Lens' MobileDevice (Maybe Text)
4726mobStatus
4810mobStatus
4727 = lens _mobStatus (\ s a -> s{_mobStatus = a})
4811 = lens _mobStatus (\ s a -> s{_mobStatus = a})
4813+-- | DMAgentPermission (Read-only)
4814+mobPrivilege :: Lens' MobileDevice (Maybe Text)
4816+ = lens _mobPrivilege (\ s a -> s{_mobPrivilege = a})
4729-- | ETag of the resource.
4818-- | ETag of the resource.
4730mobEtag :: Lens' MobileDevice (Maybe Text)
4819mobEtag :: Lens' MobileDevice (Maybe Text)
4731mobEtag = lens _mobEtag (\ s a -> s{_mobEtag = a})
4820mobEtag = lens _mobEtag (\ s a -> s{_mobEtag = a})
@@ -4736,6 +4825,12 @@ mobResourceId
4736 = lens _mobResourceId
4825 = lens _mobResourceId
4737 (\ s a -> s{_mobResourceId = a})
4826 (\ s a -> s{_mobResourceId = a})
4828+-- | Mobile Device manufacturer (Read-only)
4829+mobManufacturer :: Lens' MobileDevice (Maybe Text)
4831+ = lens _mobManufacturer
4832+ (\ s a -> s{_mobManufacturer = a})
4739-- | Mobile Device Build number (Read-only)
4834-- | Mobile Device Build number (Read-only)
4740mobBuildNumber :: Lens' MobileDevice (Maybe Text)
4835mobBuildNumber :: Lens' MobileDevice (Maybe Text)
4741mobBuildNumber
4836mobBuildNumber
@@ -4773,6 +4868,23 @@ mobAdbStatus :: Lens' MobileDevice (Maybe Bool)
4773mobAdbStatus
4868mobAdbStatus
4774 = lens _mobAdbStatus (\ s a -> s{_mobAdbStatus = a})
4869 = lens _mobAdbStatus (\ s a -> s{_mobAdbStatus = a})
4871+-- | Mobile Device release version version (Read-only)
4872+mobReleaseVersion :: Lens' MobileDevice (Maybe Text)
4874+ = lens _mobReleaseVersion
4875+ (\ s a -> s{_mobReleaseVersion = a})
4877+-- | Mobile Device Brand (Read-only)
4878+mobBrand :: Lens' MobileDevice (Maybe Text)
4879+mobBrand = lens _mobBrand (\ s a -> s{_mobBrand = a})
4881+-- | Mobile Device Security patch level (Read-only)
4882+mobSecurityPatchLevel :: Lens' MobileDevice (Maybe Int64)
4883+mobSecurityPatchLevel
4884+ = lens _mobSecurityPatchLevel
4885+ (\ s a -> s{_mobSecurityPatchLevel = a})
4776-- | Mobile Device mobile or network operator (if available) (Read-only)
4888-- | Mobile Device mobile or network operator (if available) (Read-only)
4777mobNetworkOperator :: Lens' MobileDevice (Maybe Text)
4889mobNetworkOperator :: Lens' MobileDevice (Maybe Text)
4778mobNetworkOperator
4890mobNetworkOperator
@@ -4815,6 +4927,12 @@ mobUnknownSourcesStatus
4815mobMeid :: Lens' MobileDevice (Maybe Text)
4927mobMeid :: Lens' MobileDevice (Maybe Text)
4816mobMeid = lens _mobMeid (\ s a -> s{_mobMeid = a})
4928mobMeid = lens _mobMeid (\ s a -> s{_mobMeid = a})
4930+-- | Mobile Device Bootloader version (Read-only)
4931+mobBootLoaderVersion :: Lens' MobileDevice (Maybe Text)
4932+mobBootLoaderVersion
4933+ = lens _mobBootLoaderVersion
4934+ (\ s a -> s{_mobBootLoaderVersion = a})
4818-- | Mobile Device serial number (Read-only)
4936-- | Mobile Device serial number (Read-only)
4819mobDeviceId :: Lens' MobileDevice (Maybe Text)
4937mobDeviceId :: Lens' MobileDevice (Maybe Text)
4820mobDeviceId
4938mobDeviceId
@@ -4846,12 +4964,24 @@ mobWifiMACAddress
4846 = lens _mobWifiMACAddress
4964 = lens _mobWifiMACAddress
4847 (\ s a -> s{_mobWifiMACAddress = a})
4965 (\ s a -> s{_mobWifiMACAddress = a})
4967+-- | Mobile Device Encryption Status (Read-only)
4968+mobEncryptionStatus :: Lens' MobileDevice (Maybe Text)
4970+ = lens _mobEncryptionStatus
4971+ (\ s a -> s{_mobEncryptionStatus = a})
4849-- | Mobile Device SSN or Serial Number (Read-only)
4973-- | Mobile Device SSN or Serial Number (Read-only)
4850mobSerialNumber :: Lens' MobileDevice (Maybe Text)
4974mobSerialNumber :: Lens' MobileDevice (Maybe Text)
4851mobSerialNumber
4975mobSerialNumber
4852 = lens _mobSerialNumber
4976 = lens _mobSerialNumber
4853 (\ s a -> s{_mobSerialNumber = a})
4977 (\ s a -> s{_mobSerialNumber = a})
4979+-- | DevicePasswordStatus (Read-only)
4980+mobDevicePasswordStatus :: Lens' MobileDevice (Maybe Text)
4981+mobDevicePasswordStatus
4982+ = lens _mobDevicePasswordStatus
4983+ (\ s a -> s{_mobDevicePasswordStatus = a})
4855-- | Mobile Device Hardware Id (Read-only)
4985-- | Mobile Device Hardware Id (Read-only)
4856mobHardwareId :: Lens' MobileDevice (Maybe Text)
4986mobHardwareId :: Lens' MobileDevice (Maybe Text)
4857mobHardwareId
4987mobHardwareId
@@ -4870,6 +5000,11 @@ mobSupportsWorkProFile
4870 = lens _mobSupportsWorkProFile
5000 = lens _mobSupportsWorkProFile
4871 (\ s a -> s{_mobSupportsWorkProFile = a})
5001 (\ s a -> s{_mobSupportsWorkProFile = a})
5003+-- | Mobile Device Hardware (Read-only)
5004+mobHardware :: Lens' MobileDevice (Maybe Text)
5006+ = lens _mobHardware (\ s a -> s{_mobHardware = a})
4873-- | Mobile Device compromised status (Read-only)
5008-- | Mobile Device compromised status (Read-only)
4874mobDeviceCompromisedStatus :: Lens' MobileDevice (Maybe Text)
5009mobDeviceCompromisedStatus :: Lens' MobileDevice (Maybe Text)
4875mobDeviceCompromisedStatus
5010mobDeviceCompromisedStatus
@@ -4896,14 +5031,19 @@ instance FromJSON MobileDevice where
4897 MobileDevice' <$>
5032 MobileDevice' <$>
4898 (o .:? "email" .!= mempty) <*> (o .:? "status") <*>
5033 (o .:? "email" .!= mempty) <*> (o .:? "status") <*>
5034+ (o .:? "privilege")
4899− (o .:? "etag")
5035+ <*> (o .:? "etag")
4900 <*> (o .:? "resourceId")
5036 <*> (o .:? "resourceId")
5037+ <*> (o .:? "manufacturer")
4901 <*> (o .:? "buildNumber")
5038 <*> (o .:? "buildNumber")
4902 <*> (o .:? "managedAccountIsOnOwnerProfile")
5039 <*> (o .:? "managedAccountIsOnOwnerProfile")
4903 <*> (o .:? "lastSync")
5040 <*> (o .:? "lastSync")
4904 <*> (o .:? "otherAccountsInfo" .!= mempty)
5041 <*> (o .:? "otherAccountsInfo" .!= mempty)
4905 <*> (o .:? "kind" .!= "admin#directory#mobiledevice")
5042 <*> (o .:? "kind" .!= "admin#directory#mobiledevice")
4906 <*> (o .:? "adbStatus")
5043 <*> (o .:? "adbStatus")
5044+ <*> (o .:? "releaseVersion")
5045+ <*> (o .:? "brand")
5046+ <*> (o .:? "securityPatchLevel")
4907 <*> (o .:? "networkOperator")
5047 <*> (o .:? "networkOperator")
4908 <*> (o .:? "kernelVersion")
5048 <*> (o .:? "kernelVersion")
4909 <*> (o .:? "os")
5049 <*> (o .:? "os")
@@ -4912,16 +5052,20 @@ instance FromJSON MobileDevice where
4912 <*> (o .:? "developerOptionsStatus")
5052 <*> (o .:? "developerOptionsStatus")
4913 <*> (o .:? "unknownSourcesStatus")
5053 <*> (o .:? "unknownSourcesStatus")
4914 <*> (o .:? "meid")
5054 <*> (o .:? "meid")
5055+ <*> (o .:? "bootloaderVersion")
4915 <*> (o .:? "deviceId")
5056 <*> (o .:? "deviceId")
4916 <*> (o .:? "firstSync")
5057 <*> (o .:? "firstSync")
4917 <*> (o .:? "userAgent")
5058 <*> (o .:? "userAgent")
4918 <*> (o .:? "imei")
5059 <*> (o .:? "imei")
4919 <*> (o .:? "type")
5060 <*> (o .:? "type")
4920 <*> (o .:? "wifiMacAddress")
5061 <*> (o .:? "wifiMacAddress")
5062+ <*> (o .:? "encryptionStatus")
4921 <*> (o .:? "serialNumber")
5063 <*> (o .:? "serialNumber")
5064+ <*> (o .:? "devicePasswordStatus")
4922 <*> (o .:? "hardwareId")
5065 <*> (o .:? "hardwareId")
4923 <*> (o .:? "basebandVersion")
5066 <*> (o .:? "basebandVersion")
4924 <*> (o .:? "supportsWorkProfile")
5067 <*> (o .:? "supportsWorkProfile")
5068+ <*> (o .:? "hardware")
4925 <*> (o .:? "deviceCompromisedStatus")
5069 <*> (o .:? "deviceCompromisedStatus")
4926 <*> (o .:? "applications" .!= mempty)
5070 <*> (o .:? "applications" .!= mempty)
4927 <*> (o .:? "defaultLanguage"))
5071 <*> (o .:? "defaultLanguage"))
@@ -4932,8 +5076,10 @@ instance ToJSON MobileDevice where
4932 (catMaybes
5076 (catMaybes
4933 [("email" .=) <$> _mobEmail,
5077 [("email" .=) <$> _mobEmail,
4934 ("status" .=) <$> _mobStatus,
5078 ("status" .=) <$> _mobStatus,
5079+ ("privilege" .=) <$> _mobPrivilege,
4935 ("etag" .=) <$> _mobEtag,
5080 ("etag" .=) <$> _mobEtag,
4936 ("resourceId" .=) <$> _mobResourceId,
5081 ("resourceId" .=) <$> _mobResourceId,
5082+ ("manufacturer" .=) <$> _mobManufacturer,
4937 ("buildNumber" .=) <$> _mobBuildNumber,
5083 ("buildNumber" .=) <$> _mobBuildNumber,
4938 ("managedAccountIsOnOwnerProfile" .=) <$>
5084 ("managedAccountIsOnOwnerProfile" .=) <$>
4939 _mobManagedAccountIsOnOwnerProFile,
5085 _mobManagedAccountIsOnOwnerProFile,
@@ -4941,6 +5087,9 @@ instance ToJSON MobileDevice where
4941 ("otherAccountsInfo" .=) <$> _mobOtherAccountsInfo,
5087 ("otherAccountsInfo" .=) <$> _mobOtherAccountsInfo,
4942 Just ("kind" .= _mobKind),
5088 Just ("kind" .= _mobKind),
4943 ("adbStatus" .=) <$> _mobAdbStatus,
5089 ("adbStatus" .=) <$> _mobAdbStatus,
5090+ ("releaseVersion" .=) <$> _mobReleaseVersion,
5091+ ("brand" .=) <$> _mobBrand,
5092+ ("securityPatchLevel" .=) <$> _mobSecurityPatchLevel,
4944 ("networkOperator" .=) <$> _mobNetworkOperator,
5093 ("networkOperator" .=) <$> _mobNetworkOperator,
4945 ("kernelVersion" .=) <$> _mobKernelVersion,
5094 ("kernelVersion" .=) <$> _mobKernelVersion,
4946 ("os" .=) <$> _mobOS, ("name" .=) <$> _mobName,
5095 ("os" .=) <$> _mobOS, ("name" .=) <$> _mobName,
@@ -4950,16 +5099,21 @@ instance ToJSON MobileDevice where
4950 ("unknownSourcesStatus" .=) <$>
5099 ("unknownSourcesStatus" .=) <$>
4951 _mobUnknownSourcesStatus,
5100 _mobUnknownSourcesStatus,
4952 ("meid" .=) <$> _mobMeid,
5101 ("meid" .=) <$> _mobMeid,
5102+ ("bootloaderVersion" .=) <$> _mobBootLoaderVersion,
4953 ("deviceId" .=) <$> _mobDeviceId,
5103 ("deviceId" .=) <$> _mobDeviceId,
4954 ("firstSync" .=) <$> _mobFirstSync,
5104 ("firstSync" .=) <$> _mobFirstSync,
4955 ("userAgent" .=) <$> _mobUserAgent,
5105 ("userAgent" .=) <$> _mobUserAgent,
4956 ("imei" .=) <$> _mobImei, ("type" .=) <$> _mobType,
5106 ("imei" .=) <$> _mobImei, ("type" .=) <$> _mobType,
4957 ("wifiMacAddress" .=) <$> _mobWifiMACAddress,
5107 ("wifiMacAddress" .=) <$> _mobWifiMACAddress,
5108+ ("encryptionStatus" .=) <$> _mobEncryptionStatus,
4958 ("serialNumber" .=) <$> _mobSerialNumber,
5109 ("serialNumber" .=) <$> _mobSerialNumber,
5110+ ("devicePasswordStatus" .=) <$>
5111+ _mobDevicePasswordStatus,
4959 ("hardwareId" .=) <$> _mobHardwareId,
5112 ("hardwareId" .=) <$> _mobHardwareId,
4960 ("basebandVersion" .=) <$> _mobBasebandVersion,
5113 ("basebandVersion" .=) <$> _mobBasebandVersion,
4961 ("supportsWorkProfile" .=) <$>
5114 ("supportsWorkProfile" .=) <$>
4962 _mobSupportsWorkProFile,
5115 _mobSupportsWorkProFile,
5116+ ("hardware" .=) <$> _mobHardware,
4963 ("deviceCompromisedStatus" .=) <$>
5117 ("deviceCompromisedStatus" .=) <$>
4964 _mobDeviceCompromisedStatus,
5118 _mobDeviceCompromisedStatus,
4965 ("applications" .=) <$> _mobApplications,
5119 ("applications" .=) <$> _mobApplications,
@@ -4969,12 +5123,13 @@ instance ToJSON MobileDevice where
4970-- /See:/ 'member' smart constructor.
5124-- /See:/ 'member' smart constructor.
4971data Member = Member'
5125data Member = Member'
4972− { _memEmail :: !(Maybe Text)
5126+ { _memEmail :: !(Maybe Text)
5127+ , _memStatus :: !(Maybe Text)
4973− , _memEtag :: !(Maybe Text)
5128+ , _memEtag :: !(Maybe Text)
4974− , _memKind :: !Text
5129+ , _memKind :: !Text
4975− , _memRole :: !(Maybe Text)
5130+ , _memRole :: !(Maybe Text)
4976− , _memId :: !(Maybe Text)
5131+ , _memId :: !(Maybe Text)
4977− , _memType :: !(Maybe Text)
5132+ , _memType :: !(Maybe Text)
4978 } deriving (Eq,Show,Data,Typeable,Generic)
5133 } deriving (Eq,Show,Data,Typeable,Generic)
4980-- | Creates a value of 'Member' with the minimum fields required to make a request.
5135-- | Creates a value of 'Member' with the minimum fields required to make a request.
@@ -4983,6 +5138,8 @@ data Member = Member'
4984-- * 'memEmail'
5139-- * 'memEmail'
4986-- * 'memEtag'
5143-- * 'memEtag'
4988-- * 'memKind'
5145-- * 'memKind'
@@ -4997,6 +5154,7 @@ member
4999 { _memEmail = Nothing
5156 { _memEmail = Nothing
5157+ , _memStatus = Nothing
5000 , _memEtag = Nothing
5158 , _memEtag = Nothing
5001 , _memKind = "admin#directory#member"
5159 , _memKind = "admin#directory#member"
5002 , _memRole = Nothing
5160 , _memRole = Nothing
@@ -5008,6 +5166,11 @@ member =
5008memEmail :: Lens' Member (Maybe Text)
5166memEmail :: Lens' Member (Maybe Text)
5009memEmail = lens _memEmail (\ s a -> s{_memEmail = a})
5167memEmail = lens _memEmail (\ s a -> s{_memEmail = a})
5169+-- | Status of member (Immutable)
5170+memStatus :: Lens' Member (Maybe Text)
5172+ = lens _memStatus (\ s a -> s{_memStatus = a})
5011-- | ETag of the resource.
5174-- | ETag of the resource.
5012memEtag :: Lens' Member (Maybe Text)
5175memEtag :: Lens' Member (Maybe Text)
5013memEtag = lens _memEtag (\ s a -> s{_memEtag = a})
5176memEtag = lens _memEtag (\ s a -> s{_memEtag = a})
@@ -5034,8 +5197,9 @@ instance FromJSON Member where
5034 = withObject "Member"
5197 = withObject "Member"
5036 Member' <$>
5199 Member' <$>
5037− (o .:? "email") <*> (o .:? "etag") <*>
5200+ (o .:? "email") <*> (o .:? "status") <*>
5038− (o .:? "kind" .!= "admin#directory#member")
5202+ <*> (o .:? "kind" .!= "admin#directory#member")
5039 <*> (o .:? "role")
5203 <*> (o .:? "role")
5040 <*> (o .:? "id")
5204 <*> (o .:? "id")
5041 <*> (o .:? "type"))
5205 <*> (o .:? "type"))
@@ -5045,6 +5209,7 @@ instance ToJSON Member where
5045 = object
5209 = object
5046 (catMaybes
5210 (catMaybes
5047 [("email" .=) <$> _memEmail,
5211 [("email" .=) <$> _memEmail,
5212+ ("status" .=) <$> _memStatus,
5048 ("etag" .=) <$> _memEtag, Just ("kind" .= _memKind),
5213 ("etag" .=) <$> _memEtag, Just ("kind" .= _memKind),
5049 ("role" .=) <$> _memRole, ("id" .=) <$> _memId,
5214 ("role" .=) <$> _memRole, ("id" .=) <$> _memId,
5050 ("type" .=) <$> _memType])
5215 ("type" .=) <$> _memType])