on develop help sign in
Regenerating gogol-proximitybeacon from latest service definition
commitade4edd4cbf83b3b5160240b1c59a957ef806b5e authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 20 Jun 2016, 09:33 (10 years ago) parent8a76aee
20 files changed+1150−140
gogol-proximitybeacon/gen/Network/Google/ProximityBeacon.hs+35−5 gogol-proximitybeacon/gen/Network/Google/ProximityBeacon/Types.hs+26−1 gogol-proximitybeacon/gen/Network/Google/ProximityBeacon/Types/Product.hs+288−37 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/BeaconInfo/GetforObserved.hs+8−2 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Activate.hs+39−13 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/BatchDelete.hs+36−7 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/Create.hs+36−8 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/Delete.hs+28−7 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/List.hs+35−7 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Deactivate.hs+32−6 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Decommission.hs+32−6 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Diagnostics/List.hs+31−8 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Get.hs+45−7 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/List.hs+28−8 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Register.hs+27−6 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Update.hs+29−6 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/GetEidparams.hs+168 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Namespaces/List.hs+25−4 gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Namespaces/Update.hs+199 gogol-proximitybeacon/gogol-proximitybeacon.cabal+3−2
gogol-proximitybeacon/gen/Network/Google/ProximityBeacon.hs+35−5
@@ -13,8 +13,7 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- This API provides services to register, manage, index, and search
17−-- beacons.
16+-- Registers, manages, indexes, and searches beacons.
1817--
1918-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference>
2019module Network.Google.ProximityBeacon
@@ -22,6 +21,9 @@ module Network.Google.ProximityBeacon
2221 -- * Service Configuration
2322 proximityBeaconService
2423
24+ -- * OAuth Scopes
25+ , userlocationBeaconRegistryScope
26+
2527 -- * API Declaration
2628 , ProximityBeaconAPI
2729
@@ -66,9 +68,15 @@ module Network.Google.ProximityBeacon
6668 -- ** proximitybeacon.beacons.update
6769 , module Network.Google.Resource.ProximityBeacon.Beacons.Update
6870
71+ -- ** proximitybeacon.getEidparams
72+ , module Network.Google.Resource.ProximityBeacon.GetEidparams
73+
6974 -- ** proximitybeacon.namespaces.list
7075 , module Network.Google.Resource.ProximityBeacon.Namespaces.List
7176
77+ -- ** proximitybeacon.namespaces.update
78+ , module Network.Google.Resource.ProximityBeacon.Namespaces.Update
79+
7280 -- * Types
7381
7482 -- ** LatLng
@@ -109,6 +117,16 @@ module Network.Google.ProximityBeacon
109117 , nServingVisibility
110118 , nNamespaceName
111119
120+ -- ** EphemeralIdRegistration
121+ , EphemeralIdRegistration
122+ , ephemeralIdRegistration
123+ , eirRotationPeriodExponent
124+ , eirInitialClockValue
125+ , eirBeaconIdentityKey
126+ , eirBeaconEcdhPublicKey
127+ , eirInitialEid
128+ , eirServiceEcdhPublicKey
129+
112130 -- ** ListNamespacesResponse
113131 , ListNamespacesResponse
114132 , listNamespacesResponse
@@ -127,8 +145,10 @@ module Network.Google.ProximityBeacon
127145 , bLatLng
128146 , bStatus
129147 , bBeaconName
148+ , bEphemeralIdRegistration
130149 , bIndoorLevel
131150 , bExpectedStability
151+ , bProvisioningKey
132152 , bDescription
133153 , bPlaceId
134154 , bAdvertisedId
@@ -151,12 +171,18 @@ module Network.Google.ProximityBeacon
151171 , indoorLevel
152172 , ilName
153173
174+ -- ** EphemeralIdRegistrationParams
175+ , EphemeralIdRegistrationParams
176+ , ephemeralIdRegistrationParams
177+ , eirpMinRotationPeriodExponent
178+ , eirpMaxRotationPeriodExponent
179+ , eirpServiceEcdhPublicKey
180+
154181 -- ** BeaconInfo
155182 , BeaconInfo
156183 , beaconInfo
157184 , biAttachments
158185 , biBeaconName
159− , biDescription
160186 , biAdvertisedId
161187
162188 -- ** Observation
@@ -213,7 +239,9 @@ import Network.Google.Resource.ProximityBeacon.Beacons.Get
213239import Network.Google.Resource.ProximityBeacon.Beacons.List
214240import Network.Google.Resource.ProximityBeacon.Beacons.Register
215241import Network.Google.Resource.ProximityBeacon.Beacons.Update
242+import Network.Google.Resource.ProximityBeacon.GetEidparams
216243import Network.Google.Resource.ProximityBeacon.Namespaces.List
244+import Network.Google.Resource.ProximityBeacon.Namespaces.Update
217245
218246{- $resources
219247TODO
@@ -221,8 +249,9 @@ TODO
221249
222250-- | Represents the entirety of the methods and resources available for the Google Proximity Beacon API service.
223251type ProximityBeaconAPI =
224− BeaconsAttachmentsListResource :<|>
225− BeaconsAttachmentsCreateResource
252+ GetEidparamsResource :<|>
253+ BeaconsAttachmentsListResource
254+ :<|> BeaconsAttachmentsCreateResource
226255 :<|> BeaconsAttachmentsBatchDeleteResource
227256 :<|> BeaconsAttachmentsDeleteResource
228257 :<|> BeaconsDiagnosticsListResource
@@ -234,4 +263,5 @@ type ProximityBeaconAPI =
234263 :<|> BeaconsDecommissionResource
235264 :<|> BeaconsUpdateResource
236265 :<|> NamespacesListResource
266+ :<|> NamespacesUpdateResource
237267 :<|> BeaconInfoGetforObservedResource
gogol-proximitybeacon/gen/Network/Google/ProximityBeacon/Types.hs+26−1
@@ -19,6 +19,9 @@ module Network.Google.ProximityBeacon.Types
1919 -- * Service Configuration
2020 proximityBeaconService
2121
22+ -- * OAuth Scopes
23+ , userlocationBeaconRegistryScope
24+
2225 -- * LatLng
2326 , LatLng
2427 , latLng
@@ -57,6 +60,16 @@ module Network.Google.ProximityBeacon.Types
5760 , nServingVisibility
5861 , nNamespaceName
5962
63+ -- * EphemeralIdRegistration
64+ , EphemeralIdRegistration
65+ , ephemeralIdRegistration
66+ , eirRotationPeriodExponent
67+ , eirInitialClockValue
68+ , eirBeaconIdentityKey
69+ , eirBeaconEcdhPublicKey
70+ , eirInitialEid
71+ , eirServiceEcdhPublicKey
72+
6073 -- * ListNamespacesResponse
6174 , ListNamespacesResponse
6275 , listNamespacesResponse
@@ -75,8 +88,10 @@ module Network.Google.ProximityBeacon.Types
7588 , bLatLng
7689 , bStatus
7790 , bBeaconName
91+ , bEphemeralIdRegistration
7892 , bIndoorLevel
7993 , bExpectedStability
94+ , bProvisioningKey
8095 , bDescription
8196 , bPlaceId
8297 , bAdvertisedId
@@ -99,12 +114,18 @@ module Network.Google.ProximityBeacon.Types
99114 , indoorLevel
100115 , ilName
101116
117+ -- * EphemeralIdRegistrationParams
118+ , EphemeralIdRegistrationParams
119+ , ephemeralIdRegistrationParams
120+ , eirpMinRotationPeriodExponent
121+ , eirpMaxRotationPeriodExponent
122+ , eirpServiceEcdhPublicKey
123+
102124 -- * BeaconInfo
103125 , BeaconInfo
104126 , beaconInfo
105127 , biAttachments
106128 , biBeaconName
107− , biDescription
108129 , biAdvertisedId
109130
110131 -- * Observation
@@ -156,3 +177,7 @@ proximityBeaconService
156177 = defaultService
157178 (ServiceId "proximitybeacon:v1beta1")
158179 "proximitybeacon.googleapis.com"
180+
181+-- | View and modify your beacons
182+userlocationBeaconRegistryScope :: Proxy '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
183+userlocationBeaconRegistryScope = Proxy;
gogol-proximitybeacon/gen/Network/Google/ProximityBeacon/Types/Product.hs+288−37
@@ -24,11 +24,11 @@ import Network.Google.ProximityBeacon.Types.Sum
2424-- a pair of doubles representing degrees latitude and degrees longitude.
2525-- Unless specified otherwise, this must conform to the WGS84 standard.
2626-- Values must be within normalized ranges. Example of normalization code
27−-- in Python: def NormalizeLongitude(longitude): \"\"\"Wrapsdecimal degrees
28−-- longitude to [-180.0, 180.0].\"\"\" q, r = divmod(longitude, 360.0) if r
29−-- > 180.0 or (r == 180.0 and q \<= -1.0): return r - 360.0 return r def
30−-- NormalizeLatLng(latitude, longitude): \"\"\"Wraps decimal degrees
31−-- latitude and longitude to [-180.0, 180.0] and [-90.0, 90.0],
27+-- in Python: def NormalizeLongitude(longitude): \"\"\"Wraps decimal
28+-- degrees longitude to [-180.0, 180.0].\"\"\" q, r = divmod(longitude,
29+-- 360.0) if r > 180.0 or (r == 180.0 and q \<= -1.0): return r - 360.0
30+-- return r def NormalizeLatLng(latitude, longitude): \"\"\"Wraps decimal
31+-- degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180.0],
3232-- respectively.\"\"\" r = latitude % 360.0 if r = 270.0: return r - 360,
3333-- NormalizeLongitude(longitude) else: return 180 - r,
3434-- NormalizeLongitude(longitude + 180.0) assert 180.0 ==
@@ -354,6 +354,151 @@ instance ToJSON Namespace where
354354 [("servingVisibility" .=) <$> _nServingVisibility,
355355 ("namespaceName" .=) <$> _nNamespaceName])
356356
357+-- | Write-only registration parameters for beacons using Eddystone-EID
358+-- format. Two ways of securely registering an Eddystone-EID beacon with
359+-- the service are supported: 1. Perform an ECDH key exchange via this API,
360+-- including a previous call to \`GET \/v1beta1\/eidparams\`. In this case
361+-- the fields \`beacon_ecdh_public_key\` and \`service_ecdh_public_key\`
362+-- should be populated and \`beacon_identity_key\` should not be populated.
363+-- This method ensures that only the two parties in the ECDH key exchange
364+-- can compute the identity key, which becomes a secret between them. 2.
365+-- Derive or obtain the beacon\'s identity key via other secure means
366+-- (perhaps an ECDH key exchange between the beacon and a mobile device or
367+-- any other secure method), and then submit the resulting identity key to
368+-- the service. In this case \`beacon_identity_key\` field should be
369+-- populated, and neither of \`beacon_ecdh_public_key\` nor
370+-- \`service_ecdh_public_key\` fields should be. The security of this
371+-- method depends on how securely the parties involved (in particular the
372+-- bluetooth client) handle the identity key, and obviously on how securely
373+-- the identity key was generated. See [the Eddystone
374+-- specification](https:\/\/github.com\/google\/eddystone\/tree\/master\/eddystone-eid)
375+-- at GitHub.
376+--
377+-- /See:/ 'ephemeralIdRegistration' smart constructor.
378+data EphemeralIdRegistration = EphemeralIdRegistration'
379+ { _eirRotationPeriodExponent :: !(Maybe (Textual Word32))
380+ , _eirInitialClockValue :: !(Maybe (Textual Word64))
381+ , _eirBeaconIdentityKey :: !(Maybe Base64)
382+ , _eirBeaconEcdhPublicKey :: !(Maybe Base64)
383+ , _eirInitialEid :: !(Maybe Base64)
384+ , _eirServiceEcdhPublicKey :: !(Maybe Base64)
385+ } deriving (Eq,Show,Data,Typeable,Generic)
386+
387+-- | Creates a value of 'EphemeralIdRegistration' with the minimum fields required to make a request.
388+--
389+-- Use one of the following lenses to modify other fields as desired:
390+--
391+-- * 'eirRotationPeriodExponent'
392+--
393+-- * 'eirInitialClockValue'
394+--
395+-- * 'eirBeaconIdentityKey'
396+--
397+-- * 'eirBeaconEcdhPublicKey'
398+--
399+-- * 'eirInitialEid'
400+--
401+-- * 'eirServiceEcdhPublicKey'
402+ephemeralIdRegistration
403+ :: EphemeralIdRegistration
404+ephemeralIdRegistration =
405+ EphemeralIdRegistration'
406+ { _eirRotationPeriodExponent = Nothing
407+ , _eirInitialClockValue = Nothing
408+ , _eirBeaconIdentityKey = Nothing
409+ , _eirBeaconEcdhPublicKey = Nothing
410+ , _eirInitialEid = Nothing
411+ , _eirServiceEcdhPublicKey = Nothing
412+ }
413+
414+-- | Indicates the nominal period between each rotation of the beacon\'s
415+-- ephemeral ID. \"Nominal\" because the beacon should randomize the actual
416+-- interval. See [the spec at
417+-- github](https:\/\/github.com\/google\/eddystone\/tree\/master\/eddystone-eid)
418+-- for details. This value corresponds to a power-of-two scaler on the
419+-- beacon\'s clock: when the scaler value is K, the beacon will begin
420+-- broadcasting a new ephemeral ID on average every 2^K seconds.
421+eirRotationPeriodExponent :: Lens' EphemeralIdRegistration (Maybe Word32)
422+eirRotationPeriodExponent
423+ = lens _eirRotationPeriodExponent
424+ (\ s a -> s{_eirRotationPeriodExponent = a})
425+ . mapping _Coerce
426+
427+-- | The initial clock value of the beacon. The beacon\'s clock must have
428+-- begun counting at this value immediately prior to transmitting this
429+-- value to the resolving service. Significant delay in transmitting this
430+-- value to the service risks registration or resolution failures. If a
431+-- value is not provided, the default is zero.
432+eirInitialClockValue :: Lens' EphemeralIdRegistration (Maybe Word64)
433+eirInitialClockValue
434+ = lens _eirInitialClockValue
435+ (\ s a -> s{_eirInitialClockValue = a})
436+ . mapping _Coerce
437+
438+-- | The private key of the beacon. If this field is populated,
439+-- \`beacon_ecdh_public_key\` and \`service_ecdh_public_key\` must not be
440+-- populated.
441+eirBeaconIdentityKey :: Lens' EphemeralIdRegistration (Maybe ByteString)
442+eirBeaconIdentityKey
443+ = lens _eirBeaconIdentityKey
444+ (\ s a -> s{_eirBeaconIdentityKey = a})
445+ . mapping _Base64
446+
447+-- | The beacon\'s public key used for the Elliptic curve Diffie-Hellman key
448+-- exchange. When this field is populated, \`service_ecdh_public_key\` must
449+-- also be populated, and \`beacon_identity_key\` must not be.
450+eirBeaconEcdhPublicKey :: Lens' EphemeralIdRegistration (Maybe ByteString)
451+eirBeaconEcdhPublicKey
452+ = lens _eirBeaconEcdhPublicKey
453+ (\ s a -> s{_eirBeaconEcdhPublicKey = a})
454+ . mapping _Base64
455+
456+-- | An initial ephemeral ID calculated using the clock value submitted as
457+-- \`initial_clock_value\`, and the secret key generated by the
458+-- Diffie-Hellman key exchange using \`service_ecdh_public_key\` and
459+-- \`service_ecdh_public_key\`. This initial EID value will be used by the
460+-- service to confirm that the key exchange process was successful.
461+eirInitialEid :: Lens' EphemeralIdRegistration (Maybe ByteString)
462+eirInitialEid
463+ = lens _eirInitialEid
464+ (\ s a -> s{_eirInitialEid = a})
465+ . mapping _Base64
466+
467+-- | The service\'s public key used for the Elliptic curve Diffie-Hellman key
468+-- exchange. When this field is populated, \`beacon_ecdh_public_key\` must
469+-- also be populated, and \`beacon_identity_key\` must not be.
470+eirServiceEcdhPublicKey :: Lens' EphemeralIdRegistration (Maybe ByteString)
471+eirServiceEcdhPublicKey
472+ = lens _eirServiceEcdhPublicKey
473+ (\ s a -> s{_eirServiceEcdhPublicKey = a})
474+ . mapping _Base64
475+
476+instance FromJSON EphemeralIdRegistration where
477+ parseJSON
478+ = withObject "EphemeralIdRegistration"
479+ (\ o ->
480+ EphemeralIdRegistration' <$>
481+ (o .:? "rotationPeriodExponent") <*>
482+ (o .:? "initialClockValue")
483+ <*> (o .:? "beaconIdentityKey")
484+ <*> (o .:? "beaconEcdhPublicKey")
485+ <*> (o .:? "initialEid")
486+ <*> (o .:? "serviceEcdhPublicKey"))
487+
488+instance ToJSON EphemeralIdRegistration where
489+ toJSON EphemeralIdRegistration'{..}
490+ = object
491+ (catMaybes
492+ [("rotationPeriodExponent" .=) <$>
493+ _eirRotationPeriodExponent,
494+ ("initialClockValue" .=) <$> _eirInitialClockValue,
495+ ("beaconIdentityKey" .=) <$> _eirBeaconIdentityKey,
496+ ("beaconEcdhPublicKey" .=) <$>
497+ _eirBeaconEcdhPublicKey,
498+ ("initialEid" .=) <$> _eirInitialEid,
499+ ("serviceEcdhPublicKey" .=) <$>
500+ _eirServiceEcdhPublicKey])
501+
357502-- | Response to ListNamespacesRequest that contains all the project\'s
358503-- namespaces.
359504--
@@ -400,7 +545,7 @@ instance ToJSON ListNamespacesResponse where
400545-- to represent a year and month where the day is not significant, e.g.
401546-- credit card expiration date. The year may be 0 to represent a month and
402547-- day independent of year, e.g. anniversary date. Related types are
403−-- [google.type.TimeOfDay][] and \`google.protobuf.Timestamp\`.
548+-- google.type.TimeOfDay and \`google.protobuf.Timestamp\`.
404549--
405550-- /See:/ 'date' smart constructor.
406551data Date = Date'
@@ -428,20 +573,20 @@ date =
428573 }
429574
430575-- | Day of month. Must be from 1 to 31 and valid for the year and month, or
431−-- 0 if specifying a year\/month where the day is not sigificant.
576+-- 0 if specifying a year\/month where the day is not significant.
432577dDay :: Lens' Date (Maybe Int32)
433578dDay
434579 = lens _dDay (\ s a -> s{_dDay = a}) .
435580 mapping _Coerce
436581
437−-- | Year of date. Must be from 1 to 9,999, or 0 if specifying a date without
582+-- | Year of date. Must be from 1 to 9999, or 0 if specifying a date without
438583-- a year.
439584dYear :: Lens' Date (Maybe Int32)
440585dYear
441586 = lens _dYear (\ s a -> s{_dYear = a}) .
442587 mapping _Coerce
443588
444−-- | Month of year of date. Must be from 1 to 12.
589+-- | Month of year. Must be from 1 to 12.
445590dMonth :: Lens' Date (Maybe Int32)
446591dMonth
447592 = lens _dMonth (\ s a -> s{_dMonth = a}) .
@@ -465,15 +610,17 @@ instance ToJSON Date where
465610--
466611-- /See:/ 'beacon' smart constructor.
467612data Beacon = Beacon'
468− { _bLatLng :: !(Maybe LatLng)
469− , _bStatus :: !(Maybe Text)
470− , _bBeaconName :: !(Maybe Text)
471− , _bIndoorLevel :: !(Maybe IndoorLevel)
472− , _bExpectedStability :: !(Maybe Text)
473− , _bDescription :: !(Maybe Text)
474− , _bPlaceId :: !(Maybe Text)
475− , _bAdvertisedId :: !(Maybe AdvertisedId)
476− , _bProperties :: !(Maybe BeaconProperties)
613+ { _bLatLng :: !(Maybe LatLng)
614+ , _bStatus :: !(Maybe Text)
615+ , _bBeaconName :: !(Maybe Text)
616+ , _bEphemeralIdRegistration :: !(Maybe EphemeralIdRegistration)
617+ , _bIndoorLevel :: !(Maybe IndoorLevel)
618+ , _bExpectedStability :: !(Maybe Text)
619+ , _bProvisioningKey :: !(Maybe Base64)
620+ , _bDescription :: !(Maybe Text)
621+ , _bPlaceId :: !(Maybe Text)
622+ , _bAdvertisedId :: !(Maybe AdvertisedId)
623+ , _bProperties :: !(Maybe BeaconProperties)
477624 } deriving (Eq,Show,Data,Typeable,Generic)
478625
479626-- | Creates a value of 'Beacon' with the minimum fields required to make a request.
@@ -486,10 +633,14 @@ data Beacon = Beacon'
486633--
487634-- * 'bBeaconName'
488635--
636+-- * 'bEphemeralIdRegistration'
637+--
489638-- * 'bIndoorLevel'
490639--
491640-- * 'bExpectedStability'
492641--
642+-- * 'bProvisioningKey'
643+--
493644-- * 'bDescription'
494645--
495646-- * 'bPlaceId'
@@ -504,8 +655,10 @@ beacon =
504655 { _bLatLng = Nothing
505656 , _bStatus = Nothing
506657 , _bBeaconName = Nothing
658+ , _bEphemeralIdRegistration = Nothing
507659 , _bIndoorLevel = Nothing
508660 , _bExpectedStability = Nothing
661+ , _bProvisioningKey = Nothing
509662 , _bDescription = Nothing
510663 , _bPlaceId = Nothing
511664 , _bAdvertisedId = Nothing
@@ -533,6 +686,16 @@ bBeaconName :: Lens' Beacon (Maybe Text)
533686bBeaconName
534687 = lens _bBeaconName (\ s a -> s{_bBeaconName = a})
535688
689+-- | Write-only registration parameters for beacons using Eddystone-EID
690+-- (remotely resolved ephemeral ID) format. This information will not be
691+-- populated in API responses. When submitting this data, the
692+-- \`advertised_id\` field must contain an ID of type Eddystone-UID. Any
693+-- other ID type will result in an error.
694+bEphemeralIdRegistration :: Lens' Beacon (Maybe EphemeralIdRegistration)
695+bEphemeralIdRegistration
696+ = lens _bEphemeralIdRegistration
697+ (\ s a -> s{_bEphemeralIdRegistration = a})
698+
536699-- | The indoor level information for this beacon, if known. As returned by
537700-- the Google Maps API. Optional.
538701bIndoorLevel :: Lens' Beacon (Maybe IndoorLevel)
@@ -546,6 +709,21 @@ bExpectedStability
546709 = lens _bExpectedStability
547710 (\ s a -> s{_bExpectedStability = a})
548711
712+-- | Some beacons may require a user to provide an authorization key before
713+-- changing any of its configuration (e.g. broadcast frames, transmit
714+-- power). This field provides a place to store and control access to that
715+-- key. This field is populated in responses to \`GET
716+-- \/v1beta1\/beacons\/3!beaconId\` from users with write access to the
717+-- given beacon. That is to say: If the user is authorized to write the
718+-- beacon\'s confidential data in the service, the service considers them
719+-- authorized to configure the beacon. Note that this key grants nothing on
720+-- the service, only on the beacon itself.
721+bProvisioningKey :: Lens' Beacon (Maybe ByteString)
722+bProvisioningKey
723+ = lens _bProvisioningKey
724+ (\ s a -> s{_bProvisioningKey = a})
725+ . mapping _Base64
726+
549727-- | Free text used to identify and describe the beacon. Maximum length 140
550728-- characters. Optional.
551729bDescription :: Lens' Beacon (Maybe Text)
@@ -560,7 +738,11 @@ bPlaceId = lens _bPlaceId (\ s a -> s{_bPlaceId = a})
560738
561739-- | The identifier of a beacon as advertised by it. This field must be
562740-- populated when registering. It may be empty when updating a beacon
563−-- record because it is ignored in updates.
741+-- record because it is ignored in updates. When registering a beacon that
742+-- broadcasts Eddystone-EID, this field should contain a \"stable\"
743+-- Eddystone-UID that identifies the beacon and links it to its
744+-- attachments. The stable Eddystone-UID is only used for administering the
745+-- beacon.
564746bAdvertisedId :: Lens' Beacon (Maybe AdvertisedId)
565747bAdvertisedId
566748 = lens _bAdvertisedId
@@ -579,8 +761,10 @@ instance FromJSON Beacon where
579761 Beacon' <$>
580762 (o .:? "latLng") <*> (o .:? "status") <*>
581763 (o .:? "beaconName")
764+ <*> (o .:? "ephemeralIdRegistration")
582765 <*> (o .:? "indoorLevel")
583766 <*> (o .:? "expectedStability")
767+ <*> (o .:? "provisioningKey")
584768 <*> (o .:? "description")
585769 <*> (o .:? "placeId")
586770 <*> (o .:? "advertisedId")
@@ -593,8 +777,11 @@ instance ToJSON Beacon where
593777 [("latLng" .=) <$> _bLatLng,
594778 ("status" .=) <$> _bStatus,
595779 ("beaconName" .=) <$> _bBeaconName,
780+ ("ephemeralIdRegistration" .=) <$>
781+ _bEphemeralIdRegistration,
596782 ("indoorLevel" .=) <$> _bIndoorLevel,
597783 ("expectedStability" .=) <$> _bExpectedStability,
784+ ("provisioningKey" .=) <$> _bProvisioningKey,
598785 ("description" .=) <$> _bDescription,
599786 ("placeId" .=) <$> _bPlaceId,
600787 ("advertisedId" .=) <$> _bAdvertisedId,
@@ -633,7 +820,8 @@ dAlerts
633820 = lens _dAlerts (\ s a -> s{_dAlerts = a}) . _Default
634821 . _Coerce
635822
636−-- | Resource name of the beacon.
823+-- | Resource name of the beacon. For Eddystone-EID beacons, this may be the
824+-- beacon\'s current EID, or the beacon\'s \"stable\" Eddystone-UID.
637825dBeaconName :: Lens' Diagnostics (Maybe Text)
638826dBeaconName
639827 = lens _dBeaconName (\ s a -> s{_dBeaconName = a})
@@ -736,6 +924,81 @@ instance ToJSON IndoorLevel where
736924 toJSON IndoorLevel'{..}
737925 = object (catMaybes [("name" .=) <$> _ilName])
738926
927+-- | Information a client needs to provision and register beacons that
928+-- broadcast Eddystone-EID format beacon IDs, using Elliptic curve
929+-- Diffie-Hellman key exchange. See [the Eddystone
930+-- specification](https:\/\/github.com\/google\/eddystone\/tree\/master\/eddystone-eid)
931+-- at GitHub.
932+--
933+-- /See:/ 'ephemeralIdRegistrationParams' smart constructor.
934+data EphemeralIdRegistrationParams = EphemeralIdRegistrationParams'
935+ { _eirpMinRotationPeriodExponent :: !(Maybe (Textual Word32))
936+ , _eirpMaxRotationPeriodExponent :: !(Maybe (Textual Word32))
937+ , _eirpServiceEcdhPublicKey :: !(Maybe Base64)
938+ } deriving (Eq,Show,Data,Typeable,Generic)
939+
940+-- | Creates a value of 'EphemeralIdRegistrationParams' with the minimum fields required to make a request.
941+--
942+-- Use one of the following lenses to modify other fields as desired:
943+--
944+-- * 'eirpMinRotationPeriodExponent'
945+--
946+-- * 'eirpMaxRotationPeriodExponent'
947+--
948+-- * 'eirpServiceEcdhPublicKey'
949+ephemeralIdRegistrationParams
950+ :: EphemeralIdRegistrationParams
951+ephemeralIdRegistrationParams =
952+ EphemeralIdRegistrationParams'
953+ { _eirpMinRotationPeriodExponent = Nothing
954+ , _eirpMaxRotationPeriodExponent = Nothing
955+ , _eirpServiceEcdhPublicKey = Nothing
956+ }
957+
958+-- | Indicates the minimum rotation period supported by the service. See
959+-- EddystoneEidRegistration.rotation_period_exponent
960+eirpMinRotationPeriodExponent :: Lens' EphemeralIdRegistrationParams (Maybe Word32)
961+eirpMinRotationPeriodExponent
962+ = lens _eirpMinRotationPeriodExponent
963+ (\ s a -> s{_eirpMinRotationPeriodExponent = a})
964+ . mapping _Coerce
965+
966+-- | Indicates the maximum rotation period supported by the service. See
967+-- EddystoneEidRegistration.rotation_period_exponent
968+eirpMaxRotationPeriodExponent :: Lens' EphemeralIdRegistrationParams (Maybe Word32)
969+eirpMaxRotationPeriodExponent
970+ = lens _eirpMaxRotationPeriodExponent
971+ (\ s a -> s{_eirpMaxRotationPeriodExponent = a})
972+ . mapping _Coerce
973+
974+-- | The beacon service\'s public key for use by a beacon to derive its
975+-- Identity Key using Elliptic Curve Diffie-Hellman key exchange.
976+eirpServiceEcdhPublicKey :: Lens' EphemeralIdRegistrationParams (Maybe ByteString)
977+eirpServiceEcdhPublicKey
978+ = lens _eirpServiceEcdhPublicKey
979+ (\ s a -> s{_eirpServiceEcdhPublicKey = a})
980+ . mapping _Base64
981+
982+instance FromJSON EphemeralIdRegistrationParams where
983+ parseJSON
984+ = withObject "EphemeralIdRegistrationParams"
985+ (\ o ->
986+ EphemeralIdRegistrationParams' <$>
987+ (o .:? "minRotationPeriodExponent") <*>
988+ (o .:? "maxRotationPeriodExponent")
989+ <*> (o .:? "serviceEcdhPublicKey"))
990+
991+instance ToJSON EphemeralIdRegistrationParams where
992+ toJSON EphemeralIdRegistrationParams'{..}
993+ = object
994+ (catMaybes
995+ [("minRotationPeriodExponent" .=) <$>
996+ _eirpMinRotationPeriodExponent,
997+ ("maxRotationPeriodExponent" .=) <$>
998+ _eirpMaxRotationPeriodExponent,
999+ ("serviceEcdhPublicKey" .=) <$>
1000+ _eirpServiceEcdhPublicKey])
1001+
7391002-- | A subset of beacon information served via the
7401003-- \`beaconinfo.getforobserved\` method, which you call when users of your
7411004-- app encounter your beacons.
@@ -744,7 +1007,6 @@ instance ToJSON IndoorLevel where
7441007data BeaconInfo = BeaconInfo'
7451008 { _biAttachments :: !(Maybe [AttachmentInfo])
7461009 , _biBeaconName :: !(Maybe Text)
747− , _biDescription :: !(Maybe Text)
7481010 , _biAdvertisedId :: !(Maybe AdvertisedId)
7491011 } deriving (Eq,Show,Data,Typeable,Generic)
7501012
@@ -756,8 +1018,6 @@ data BeaconInfo = BeaconInfo'
7561018--
7571019-- * 'biBeaconName'
7581020--
759−-- * 'biDescription'
760−--
7611021-- * 'biAdvertisedId'
7621022beaconInfo
7631023 :: BeaconInfo
@@ -765,7 +1025,6 @@ beaconInfo =
7651025 BeaconInfo'
7661026 { _biAttachments = Nothing
7671027 , _biBeaconName = Nothing
768− , _biDescription = Nothing
7691028 , _biAdvertisedId = Nothing
7701029 }
7711030
@@ -783,14 +1042,6 @@ biBeaconName :: Lens' BeaconInfo (Maybe Text)
7831042biBeaconName
7841043 = lens _biBeaconName (\ s a -> s{_biBeaconName = a})
7851044
786−-- | Free text used to identify or describe the beacon in a registered
787−-- establishment. For example: \"entrance\", \"room 101\", etc. May be
788−-- empty.
789−biDescription :: Lens' BeaconInfo (Maybe Text)
790−biDescription
791− = lens _biDescription
792− (\ s a -> s{_biDescription = a})
793−
7941045-- | The ID advertised by the beacon.
7951046biAdvertisedId :: Lens' BeaconInfo (Maybe AdvertisedId)
7961047biAdvertisedId
@@ -804,7 +1055,6 @@ instance FromJSON BeaconInfo where
8041055 BeaconInfo' <$>
8051056 (o .:? "attachments" .!= mempty) <*>
8061057 (o .:? "beaconName")
807− <*> (o .:? "description")
8081058 <*> (o .:? "advertisedId"))
8091059
8101060instance ToJSON BeaconInfo where
@@ -813,7 +1063,6 @@ instance ToJSON BeaconInfo where
8131063 (catMaybes
8141064 [("attachments" .=) <$> _biAttachments,
8151065 ("beaconName" .=) <$> _biBeaconName,
816− ("description" .=) <$> _biDescription,
8171066 ("advertisedId" .=) <$> _biAdvertisedId])
8181067
8191068-- | Represents one beacon observed once.
@@ -851,13 +1100,15 @@ oTelemetry
8511100 = lens _oTelemetry (\ s a -> s{_oTelemetry = a}) .
8521101 mapping _Base64
8531102
854−-- | Time when the beacon was observed. Being sourced from a mobile device,
855−-- this time may be suspect.
1103+-- | Time when the beacon was observed.
8561104oTimestampMs :: Lens' Observation (Maybe Text)
8571105oTimestampMs
8581106 = lens _oTimestampMs (\ s a -> s{_oTimestampMs = a})
8591107
860−-- | The ID advertised by the beacon the client has encountered. Required.
1108+-- | The ID advertised by the beacon the client has encountered. Clients may
1109+-- submit an Eddystone-EID \`advertised_id\`. If the client is not
1110+-- authorized to resolve the given Eddystone-EID, no data will be returned
1111+-- for that beacon. Required.
8611112oAdvertisedId :: Lens' Observation (Maybe AdvertisedId)
8621113oAdvertisedId
8631114 = lens _oAdvertisedId
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/BeaconInfo/GetforObserved.hs+8−2
@@ -21,7 +21,10 @@
2121-- Portability : non-portable (GHC extensions)
2222--
2323-- Given one or more beacon observations, returns any beacon information
24−-- and attachments accessible to your application.
24+-- and attachments accessible to your application. Authorize by using the
25+-- [API
26+-- key](https:\/\/developers.google.com\/beacons\/proximity\/how-tos\/authorizing#APIKey)
27+-- for the application.
2528--
2629-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beaconinfo.getforobserved@.
2730module Network.Google.Resource.ProximityBeacon.BeaconInfo.GetforObserved
@@ -64,7 +67,10 @@ type BeaconInfoGetforObservedResource =
6467 Post '[JSON] GetInfoForObservedBeaconsResponse
6568
6669-- | Given one or more beacon observations, returns any beacon information
67−-- and attachments accessible to your application.
70+-- and attachments accessible to your application. Authorize by using the
71+-- [API
72+-- key](https:\/\/developers.google.com\/beacons\/proximity\/how-tos\/authorizing#APIKey)
73+-- for the application.
6874--
6975-- /See:/ 'beaconInfoGetforObserved' smart constructor.
7076data BeaconInfoGetforObserved = BeaconInfoGetforObserved'
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Activate.hs+39−13
@@ -20,10 +20,13 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- (Re)activates a beacon. A beacon that is active will return information
24−-- and attachment data when queried via \`beaconinfo.getforobserved\`.
25−-- Calling this method on an already active beacon will do nothing (but
26−-- will return a successful response code).
23+-- Activates a beacon. A beacon that is active will return information and
24+-- attachment data when queried via \`beaconinfo.getforobserved\`. Calling
25+-- this method on an already active beacon will do nothing (but will return
26+-- a successful response code). Authenticate using an [OAuth access
27+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
28+-- from a signed-in user with **Is owner** or **Can edit** permissions in
29+-- the Google Developers Console project.
2730--
2831-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.activate@.
2932module Network.Google.Resource.ProximityBeacon.Beacons.Activate
@@ -43,6 +46,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Activate
4346 , baBeaconName
4447 , baUploadType
4548 , baBearerToken
49+ , baProjectId
4650 , baCallback
4751 ) where
4852
@@ -60,13 +64,17 @@ type BeaconsActivateResource =
6064 QueryParam "access_token" Text :>
6165 QueryParam "uploadType" Text :>
6266 QueryParam "bearer_token" Text :>
63− QueryParam "callback" Text :>
64− QueryParam "alt" AltJSON :> Post '[JSON] Empty
65−
66−-- | (Re)activates a beacon. A beacon that is active will return information
67−-- and attachment data when queried via \`beaconinfo.getforobserved\`.
68−-- Calling this method on an already active beacon will do nothing (but
69−-- will return a successful response code).
67+ QueryParam "projectId" Text :>
68+ QueryParam "callback" Text :>
69+ QueryParam "alt" AltJSON :> Post '[JSON] Empty
70+
71+-- | Activates a beacon. A beacon that is active will return information and
72+-- attachment data when queried via \`beaconinfo.getforobserved\`. Calling
73+-- this method on an already active beacon will do nothing (but will return
74+-- a successful response code). Authenticate using an [OAuth access
75+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
76+-- from a signed-in user with **Is owner** or **Can edit** permissions in
77+-- the Google Developers Console project.
7078--
7179-- /See:/ 'beaconsActivate' smart constructor.
7280data BeaconsActivate = BeaconsActivate'
@@ -77,6 +85,7 @@ data BeaconsActivate = BeaconsActivate'
7785 , _baBeaconName :: !Text
7886 , _baUploadType :: !(Maybe Text)
7987 , _baBearerToken :: !(Maybe Text)
88+ , _baProjectId :: !(Maybe Text)
8089 , _baCallback :: !(Maybe Text)
8190 } deriving (Eq,Show,Data,Typeable,Generic)
8291
@@ -98,6 +107,8 @@ data BeaconsActivate = BeaconsActivate'
98107--
99108-- * 'baBearerToken'
100109--
110+-- * 'baProjectId'
111+--
101112-- * 'baCallback'
102113beaconsActivate
103114 :: Text -- ^ 'baBeaconName'
@@ -111,6 +122,7 @@ beaconsActivate pBaBeaconName_ =
111122 , _baBeaconName = pBaBeaconName_
112123 , _baUploadType = Nothing
113124 , _baBearerToken = Nothing
125+ , _baProjectId = Nothing
114126 , _baCallback = Nothing
115127 }
116128
@@ -134,7 +146,12 @@ baAccessToken
134146 = lens _baAccessToken
135147 (\ s a -> s{_baAccessToken = a})
136148
137−-- | The beacon to activate. Required.
149+-- | Beacon that should be activated. A beacon name has the format
150+-- \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by
151+-- the beacon and N is a code for the beacon\'s type. Possible values are
152+-- \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for iBeacon, or
153+-- \`5\` for AltBeacon. For Eddystone-EID beacons, you may use either the
154+-- current EID or the beacon\'s \"stable\" UID. Required.
138155baBeaconName :: Lens' BeaconsActivate Text
139156baBeaconName
140157 = lens _baBeaconName (\ s a -> s{_baBeaconName = a})
@@ -150,6 +167,13 @@ baBearerToken
150167 = lens _baBearerToken
151168 (\ s a -> s{_baBearerToken = a})
152169
170+-- | The project id of the beacon to activate. If the project id is not
171+-- specified then the project making the request is used. The project id
172+-- must match the project that owns the beacon. Optional.
173+baProjectId :: Lens' BeaconsActivate (Maybe Text)
174+baProjectId
175+ = lens _baProjectId (\ s a -> s{_baProjectId = a})
176+
153177-- | JSONP
154178baCallback :: Lens' BeaconsActivate (Maybe Text)
155179baCallback
@@ -157,13 +181,15 @@ baCallback
157181
158182instance GoogleRequest BeaconsActivate where
159183 type Rs BeaconsActivate = Empty
160− type Scopes BeaconsActivate = '[]
184+ type Scopes BeaconsActivate =
185+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
161186 requestClient BeaconsActivate'{..}
162187 = go _baBeaconName _baXgafv _baUploadProtocol
163188 (Just _baPp)
164189 _baAccessToken
165190 _baUploadType
166191 _baBearerToken
192+ _baProjectId
167193 _baCallback
168194 (Just AltJSON)
169195 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/BatchDelete.hs+36−7
@@ -25,7 +25,10 @@
2525-- \`namespacedType\` to choose which attachments should be deleted. If you
2626-- do not specify \`namespacedType\`, all your attachments on the given
2727-- beacon will be deleted. You also may explicitly specify \`*\/*\` to
28−-- delete all.
28+-- delete all. Authenticate using an [OAuth access
29+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
30+-- from a signed-in user with **Is owner** or **Can edit** permissions in
31+-- the Google Developers Console project.
2932--
3033-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.attachments.batchDelete@.
3134module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.BatchDelete
@@ -46,6 +49,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.BatchDelete
4649 , babdUploadType
4750 , babdBearerToken
4851 , babdNamespacedType
52+ , babdProjectId
4953 , babdCallback
5054 ) where
5155
@@ -65,16 +69,20 @@ type BeaconsAttachmentsBatchDeleteResource =
6569 QueryParam "uploadType" Text :>
6670 QueryParam "bearer_token" Text :>
6771 QueryParam "namespacedType" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− Post '[JSON] DeleteAttachmentsResponse
72+ QueryParam "projectId" Text :>
73+ QueryParam "callback" Text :>
74+ QueryParam "alt" AltJSON :>
75+ Post '[JSON] DeleteAttachmentsResponse
7176
7277-- | Deletes multiple attachments on a given beacon. This operation is
7378-- permanent and cannot be undone. You can optionally specify
7479-- \`namespacedType\` to choose which attachments should be deleted. If you
7580-- do not specify \`namespacedType\`, all your attachments on the given
7681-- beacon will be deleted. You also may explicitly specify \`*\/*\` to
77−-- delete all.
82+-- delete all. Authenticate using an [OAuth access
83+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
84+-- from a signed-in user with **Is owner** or **Can edit** permissions in
85+-- the Google Developers Console project.
7886--
7987-- /See:/ 'beaconsAttachmentsBatchDelete' smart constructor.
8088data BeaconsAttachmentsBatchDelete = BeaconsAttachmentsBatchDelete'
@@ -86,6 +94,7 @@ data BeaconsAttachmentsBatchDelete = BeaconsAttachmentsBatchDelete'
8694 , _babdUploadType :: !(Maybe Text)
8795 , _babdBearerToken :: !(Maybe Text)
8896 , _babdNamespacedType :: !(Maybe Text)
97+ , _babdProjectId :: !(Maybe Text)
8998 , _babdCallback :: !(Maybe Text)
9099 } deriving (Eq,Show,Data,Typeable,Generic)
91100
@@ -109,6 +118,8 @@ data BeaconsAttachmentsBatchDelete = BeaconsAttachmentsBatchDelete'
109118--
110119-- * 'babdNamespacedType'
111120--
121+-- * 'babdProjectId'
122+--
112123-- * 'babdCallback'
113124beaconsAttachmentsBatchDelete
114125 :: Text -- ^ 'babdBeaconName'
@@ -123,6 +134,7 @@ beaconsAttachmentsBatchDelete pBabdBeaconName_ =
123134 , _babdUploadType = Nothing
124135 , _babdBearerToken = Nothing
125136 , _babdNamespacedType = Nothing
137+ , _babdProjectId = Nothing
126138 , _babdCallback = Nothing
127139 }
128140
@@ -147,7 +159,12 @@ babdAccessToken
147159 = lens _babdAccessToken
148160 (\ s a -> s{_babdAccessToken = a})
149161
150−-- | The beacon whose attachments are to be deleted. Required.
162+-- | The beacon whose attachments should be deleted. A beacon name has the
163+-- format \"beacons\/N!beaconId\" where the beaconId is the base16 ID
164+-- broadcast by the beacon and N is a code for the beacon\'s type. Possible
165+-- values are \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for
166+-- iBeacon, or \`5\` for AltBeacon. For Eddystone-EID beacons, you may use
167+-- either the current EID or the beacon\'s \"stable\" UID. Required.
151168babdBeaconName :: Lens' BeaconsAttachmentsBatchDelete Text
152169babdBeaconName
153170 = lens _babdBeaconName
@@ -173,6 +190,16 @@ babdNamespacedType
173190 = lens _babdNamespacedType
174191 (\ s a -> s{_babdNamespacedType = a})
175192
193+-- | The project id to delete beacon attachments under. This field can be
194+-- used when \"*\" is specified to mean all attachment namespaces. Projects
195+-- may have multiple attachments with multiple namespaces. If \"*\" is
196+-- specified and the projectId string is empty, then the project making the
197+-- request is used. Optional.
198+babdProjectId :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
199+babdProjectId
200+ = lens _babdProjectId
201+ (\ s a -> s{_babdProjectId = a})
202+
176203-- | JSONP
177204babdCallback :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
178205babdCallback
@@ -182,7 +209,8 @@ instance GoogleRequest BeaconsAttachmentsBatchDelete
182209 where
183210 type Rs BeaconsAttachmentsBatchDelete =
184211 DeleteAttachmentsResponse
185− type Scopes BeaconsAttachmentsBatchDelete = '[]
212+ type Scopes BeaconsAttachmentsBatchDelete =
213+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
186214 requestClient BeaconsAttachmentsBatchDelete'{..}
187215 = go _babdBeaconName _babdXgafv _babdUploadProtocol
188216 (Just _babdPp)
@@ -190,6 +218,7 @@ instance GoogleRequest BeaconsAttachmentsBatchDelete
190218 _babdUploadType
191219 _babdBearerToken
192220 _babdNamespacedType
221+ _babdProjectId
193222 _babdCallback
194223 (Just AltJSON)
195224 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/Create.hs+36−8
@@ -26,7 +26,11 @@
2626-- and the type. The namespace must be one of the values returned by the
2727-- \`namespaces\` endpoint, while the type can be a string of any
2828-- characters except for the forward slash (\`\/\`) up to 100 characters in
29−-- length. Attachment data can be up to 1024 bytes long.
29+-- length. Attachment data can be up to 1024 bytes long. Authenticate using
30+-- an [OAuth access
31+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
32+-- from a signed-in user with **Is owner** or **Can edit** permissions in
33+-- the Google Developers Console project.
3034--
3135-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.attachments.create@.
3236module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Create
@@ -47,6 +51,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Create
4751 , bacUploadType
4852 , bacPayload
4953 , bacBearerToken
54+ , bacProjectId
5055 , bacCallback
5156 ) where
5257
@@ -65,10 +70,11 @@ type BeaconsAttachmentsCreateResource =
6570 QueryParam "access_token" Text :>
6671 QueryParam "uploadType" Text :>
6772 QueryParam "bearer_token" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− ReqBody '[JSON] BeaconAttachment :>
71− Post '[JSON] BeaconAttachment
73+ QueryParam "projectId" Text :>
74+ QueryParam "callback" Text :>
75+ QueryParam "alt" AltJSON :>
76+ ReqBody '[JSON] BeaconAttachment :>
77+ Post '[JSON] BeaconAttachment
7278
7379-- | Associates the given data with the specified beacon. Attachment data
7480-- must contain two parts: - A namespaced type. - The actual attachment
@@ -76,7 +82,11 @@ type BeaconsAttachmentsCreateResource =
7682-- and the type. The namespace must be one of the values returned by the
7783-- \`namespaces\` endpoint, while the type can be a string of any
7884-- characters except for the forward slash (\`\/\`) up to 100 characters in
79−-- length. Attachment data can be up to 1024 bytes long.
85+-- length. Attachment data can be up to 1024 bytes long. Authenticate using
86+-- an [OAuth access
87+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
88+-- from a signed-in user with **Is owner** or **Can edit** permissions in
89+-- the Google Developers Console project.
8090--
8191-- /See:/ 'beaconsAttachmentsCreate' smart constructor.
8292data BeaconsAttachmentsCreate = BeaconsAttachmentsCreate'
@@ -88,6 +98,7 @@ data BeaconsAttachmentsCreate = BeaconsAttachmentsCreate'
8898 , _bacUploadType :: !(Maybe Text)
8999 , _bacPayload :: !BeaconAttachment
90100 , _bacBearerToken :: !(Maybe Text)
101+ , _bacProjectId :: !(Maybe Text)
91102 , _bacCallback :: !(Maybe Text)
92103 } deriving (Eq,Show,Data,Typeable,Generic)
93104
@@ -111,6 +122,8 @@ data BeaconsAttachmentsCreate = BeaconsAttachmentsCreate'
111122--
112123-- * 'bacBearerToken'
113124--
125+-- * 'bacProjectId'
126+--
114127-- * 'bacCallback'
115128beaconsAttachmentsCreate
116129 :: Text -- ^ 'bacBeaconName'
@@ -126,6 +139,7 @@ beaconsAttachmentsCreate pBacBeaconName_ pBacPayload_ =
126139 , _bacUploadType = Nothing
127140 , _bacPayload = pBacPayload_
128141 , _bacBearerToken = Nothing
142+ , _bacProjectId = Nothing
129143 , _bacCallback = Nothing
130144 }
131145
@@ -149,7 +163,12 @@ bacAccessToken
149163 = lens _bacAccessToken
150164 (\ s a -> s{_bacAccessToken = a})
151165
152−-- | The beacon on which the attachment should be created. Required.
166+-- | Beacon on which the attachment should be created. A beacon name has the
167+-- format \"beacons\/N!beaconId\" where the beaconId is the base16 ID
168+-- broadcast by the beacon and N is a code for the beacon\'s type. Possible
169+-- values are \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for
170+-- iBeacon, or \`5\` for AltBeacon. For Eddystone-EID beacons, you may use
171+-- either the current EID or the beacon\'s \"stable\" UID. Required.
153172bacBeaconName :: Lens' BeaconsAttachmentsCreate Text
154173bacBeaconName
155174 = lens _bacBeaconName
@@ -172,6 +191,13 @@ bacBearerToken
172191 = lens _bacBearerToken
173192 (\ s a -> s{_bacBearerToken = a})
174193
194+-- | The project id of the project the attachment will belong to. If the
195+-- project id is not specified then the project making the request is used.
196+-- Optional.
197+bacProjectId :: Lens' BeaconsAttachmentsCreate (Maybe Text)
198+bacProjectId
199+ = lens _bacProjectId (\ s a -> s{_bacProjectId = a})
200+
175201-- | JSONP
176202bacCallback :: Lens' BeaconsAttachmentsCreate (Maybe Text)
177203bacCallback
@@ -179,13 +205,15 @@ bacCallback
179205
180206instance GoogleRequest BeaconsAttachmentsCreate where
181207 type Rs BeaconsAttachmentsCreate = BeaconAttachment
182− type Scopes BeaconsAttachmentsCreate = '[]
208+ type Scopes BeaconsAttachmentsCreate =
209+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
183210 requestClient BeaconsAttachmentsCreate'{..}
184211 = go _bacBeaconName _bacXgafv _bacUploadProtocol
185212 (Just _bacPp)
186213 _bacAccessToken
187214 _bacUploadType
188215 _bacBearerToken
216+ _bacProjectId
189217 _bacCallback
190218 (Just AltJSON)
191219 _bacPayload
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/Delete.hs+28−7
@@ -24,7 +24,10 @@
2424-- has a unique attachment name (\`attachmentName\`) which is returned when
2525-- you fetch the attachment data via this API. You specify this with the
2626-- delete request to control which attachment is removed. This operation
27−-- cannot be undone.
27+-- cannot be undone. Authenticate using an [OAuth access
28+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
29+-- from a signed-in user with **Is owner** or **Can edit** permissions in
30+-- the Google Developers Console project.
2831--
2932-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.attachments.delete@.
3033module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete
@@ -44,6 +47,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete
4447 , badUploadType
4548 , badAttachmentName
4649 , badBearerToken
50+ , badProjectId
4751 , badCallback
4852 ) where
4953
@@ -61,14 +65,18 @@ type BeaconsAttachmentsDeleteResource =
6165 QueryParam "access_token" Text :>
6266 QueryParam "uploadType" Text :>
6367 QueryParam "bearer_token" Text :>
64− QueryParam "callback" Text :>
65− QueryParam "alt" AltJSON :> Delete '[JSON] Empty
68+ QueryParam "projectId" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :> Delete '[JSON] Empty
6671
6772-- | Deletes the specified attachment for the given beacon. Each attachment
6873-- has a unique attachment name (\`attachmentName\`) which is returned when
6974-- you fetch the attachment data via this API. You specify this with the
7075-- delete request to control which attachment is removed. This operation
71−-- cannot be undone.
76+-- cannot be undone. Authenticate using an [OAuth access
77+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
78+-- from a signed-in user with **Is owner** or **Can edit** permissions in
79+-- the Google Developers Console project.
7280--
7381-- /See:/ 'beaconsAttachmentsDelete' smart constructor.
7482data BeaconsAttachmentsDelete = BeaconsAttachmentsDelete'
@@ -79,6 +87,7 @@ data BeaconsAttachmentsDelete = BeaconsAttachmentsDelete'
7987 , _badUploadType :: !(Maybe Text)
8088 , _badAttachmentName :: !Text
8189 , _badBearerToken :: !(Maybe Text)
90+ , _badProjectId :: !(Maybe Text)
8291 , _badCallback :: !(Maybe Text)
8392 } deriving (Eq,Show,Data,Typeable,Generic)
8493
@@ -100,6 +109,8 @@ data BeaconsAttachmentsDelete = BeaconsAttachmentsDelete'
100109--
101110-- * 'badBearerToken'
102111--
112+-- * 'badProjectId'
113+--
103114-- * 'badCallback'
104115beaconsAttachmentsDelete
105116 :: Text -- ^ 'badAttachmentName'
@@ -113,6 +124,7 @@ beaconsAttachmentsDelete pBadAttachmentName_ =
113124 , _badUploadType = Nothing
114125 , _badAttachmentName = pBadAttachmentName_
115126 , _badBearerToken = Nothing
127+ , _badProjectId = Nothing
116128 , _badCallback = Nothing
117129 }
118130
@@ -144,8 +156,9 @@ badUploadType
144156
145157-- | The attachment name (\`attachmentName\`) of the attachment to remove.
146158-- For example:
147−-- \`beacons\/3!893737abc9\/attachments\/c5e937-af0-494-959-ec49d12738\`
148−-- Required.
159+-- \`beacons\/3!893737abc9\/attachments\/c5e937-af0-494-959-ec49d12738\`.
160+-- For Eddystone-EID beacons, the beacon ID portion (\`3!893737abc9\`) may
161+-- be the beacon\'s current EID, or its \"stable\" Eddystone-UID. Required.
149162badAttachmentName :: Lens' BeaconsAttachmentsDelete Text
150163badAttachmentName
151164 = lens _badAttachmentName
@@ -157,6 +170,12 @@ badBearerToken
157170 = lens _badBearerToken
158171 (\ s a -> s{_badBearerToken = a})
159172
173+-- | The project id of the attachment to delete. If not provided, the project
174+-- that is making the request is used. Optional.
175+badProjectId :: Lens' BeaconsAttachmentsDelete (Maybe Text)
176+badProjectId
177+ = lens _badProjectId (\ s a -> s{_badProjectId = a})
178+
160179-- | JSONP
161180badCallback :: Lens' BeaconsAttachmentsDelete (Maybe Text)
162181badCallback
@@ -164,13 +183,15 @@ badCallback
164183
165184instance GoogleRequest BeaconsAttachmentsDelete where
166185 type Rs BeaconsAttachmentsDelete = Empty
167− type Scopes BeaconsAttachmentsDelete = '[]
186+ type Scopes BeaconsAttachmentsDelete =
187+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
168188 requestClient BeaconsAttachmentsDelete'{..}
169189 = go _badAttachmentName _badXgafv _badUploadProtocol
170190 (Just _badPp)
171191 _badAccessToken
172192 _badUploadType
173193 _badBearerToken
194+ _badProjectId
174195 _badCallback
175196 (Just AltJSON)
176197 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/List.hs+35−7
@@ -25,7 +25,10 @@
2525-- returned, you add the \`namespacedType\` query parameter to the request.
2626-- You must either use \`*\/*\`, to return all attachments, or the
2727-- namespace must be one of the ones returned from the \`namespaces\`
28−-- endpoint.
28+-- endpoint. Authenticate using an [OAuth access
29+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
30+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
31+-- permissions in the Google Developers Console project.
2932--
3033-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.attachments.list@.
3134module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.List
@@ -46,6 +49,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Attachments.List
4649 , balUploadType
4750 , balBearerToken
4851 , balNamespacedType
52+ , balProjectId
4953 , balCallback
5054 ) where
5155
@@ -65,16 +69,20 @@ type BeaconsAttachmentsListResource =
6569 QueryParam "uploadType" Text :>
6670 QueryParam "bearer_token" Text :>
6771 QueryParam "namespacedType" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− Get '[JSON] ListBeaconAttachmentsResponse
72+ QueryParam "projectId" Text :>
73+ QueryParam "callback" Text :>
74+ QueryParam "alt" AltJSON :>
75+ Get '[JSON] ListBeaconAttachmentsResponse
7176
7277-- | Returns the attachments for the specified beacon that match the
7378-- specified namespaced-type pattern. To control which namespaced types are
7479-- returned, you add the \`namespacedType\` query parameter to the request.
7580-- You must either use \`*\/*\`, to return all attachments, or the
7681-- namespace must be one of the ones returned from the \`namespaces\`
77−-- endpoint.
82+-- endpoint. Authenticate using an [OAuth access
83+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
84+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
85+-- permissions in the Google Developers Console project.
7886--
7987-- /See:/ 'beaconsAttachmentsList' smart constructor.
8088data BeaconsAttachmentsList = BeaconsAttachmentsList'
@@ -86,6 +94,7 @@ data BeaconsAttachmentsList = BeaconsAttachmentsList'
8694 , _balUploadType :: !(Maybe Text)
8795 , _balBearerToken :: !(Maybe Text)
8896 , _balNamespacedType :: !(Maybe Text)
97+ , _balProjectId :: !(Maybe Text)
8998 , _balCallback :: !(Maybe Text)
9099 } deriving (Eq,Show,Data,Typeable,Generic)
91100
@@ -109,6 +118,8 @@ data BeaconsAttachmentsList = BeaconsAttachmentsList'
109118--
110119-- * 'balNamespacedType'
111120--
121+-- * 'balProjectId'
122+--
112123-- * 'balCallback'
113124beaconsAttachmentsList
114125 :: Text -- ^ 'balBeaconName'
@@ -123,6 +134,7 @@ beaconsAttachmentsList pBalBeaconName_ =
123134 , _balUploadType = Nothing
124135 , _balBearerToken = Nothing
125136 , _balNamespacedType = Nothing
137+ , _balProjectId = Nothing
126138 , _balCallback = Nothing
127139 }
128140
@@ -146,7 +158,12 @@ balAccessToken
146158 = lens _balAccessToken
147159 (\ s a -> s{_balAccessToken = a})
148160
149−-- | The beacon whose attachments are to be fetched. Required.
161+-- | Beacon whose attachments should be fetched. A beacon name has the format
162+-- \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by
163+-- the beacon and N is a code for the beacon\'s type. Possible values are
164+-- \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for iBeacon, or
165+-- \`5\` for AltBeacon. For Eddystone-EID beacons, you may use either the
166+-- current EID or the beacon\'s \"stable\" UID. Required.
150167balBeaconName :: Lens' BeaconsAttachmentsList Text
151168balBeaconName
152169 = lens _balBeaconName
@@ -172,6 +189,15 @@ balNamespacedType
172189 = lens _balNamespacedType
173190 (\ s a -> s{_balNamespacedType = a})
174191
192+-- | The project id to list beacon attachments under. This field can be used
193+-- when \"*\" is specified to mean all attachment namespaces. Projects may
194+-- have multiple attachments with multiple namespaces. If \"*\" is
195+-- specified and the projectId string is empty, then the project making the
196+-- request is used. Optional.
197+balProjectId :: Lens' BeaconsAttachmentsList (Maybe Text)
198+balProjectId
199+ = lens _balProjectId (\ s a -> s{_balProjectId = a})
200+
175201-- | JSONP
176202balCallback :: Lens' BeaconsAttachmentsList (Maybe Text)
177203balCallback
@@ -180,7 +206,8 @@ balCallback
180206instance GoogleRequest BeaconsAttachmentsList where
181207 type Rs BeaconsAttachmentsList =
182208 ListBeaconAttachmentsResponse
183− type Scopes BeaconsAttachmentsList = '[]
209+ type Scopes BeaconsAttachmentsList =
210+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
184211 requestClient BeaconsAttachmentsList'{..}
185212 = go _balBeaconName _balXgafv _balUploadProtocol
186213 (Just _balPp)
@@ -188,6 +215,7 @@ instance GoogleRequest BeaconsAttachmentsList where
188215 _balUploadType
189216 _balBearerToken
190217 _balNamespacedType
218+ _balProjectId
191219 _balCallback
192220 (Just AltJSON)
193221 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Deactivate.hs+32−6
@@ -24,7 +24,10 @@
2424-- information nor attachment data for the beacon when queried via
2525-- \`beaconinfo.getforobserved\`. Calling this method on an already
2626-- inactive beacon will do nothing (but will return a successful response
27−-- code).
27+-- code). Authenticate using an [OAuth access
28+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
29+-- from a signed-in user with **Is owner** or **Can edit** permissions in
30+-- the Google Developers Console project.
2831--
2932-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.deactivate@.
3033module Network.Google.Resource.ProximityBeacon.Beacons.Deactivate
@@ -44,6 +47,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Deactivate
4447 , bdBeaconName
4548 , bdUploadType
4649 , bdBearerToken
50+ , bdProjectId
4751 , bdCallback
4852 ) where
4953
@@ -61,14 +65,18 @@ type BeaconsDeactivateResource =
6165 QueryParam "access_token" Text :>
6266 QueryParam "uploadType" Text :>
6367 QueryParam "bearer_token" Text :>
64− QueryParam "callback" Text :>
65− QueryParam "alt" AltJSON :> Post '[JSON] Empty
68+ QueryParam "projectId" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :> Post '[JSON] Empty
6671
6772-- | Deactivates a beacon. Once deactivated, the API will not return
6873-- information nor attachment data for the beacon when queried via
6974-- \`beaconinfo.getforobserved\`. Calling this method on an already
7075-- inactive beacon will do nothing (but will return a successful response
71−-- code).
76+-- code). Authenticate using an [OAuth access
77+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
78+-- from a signed-in user with **Is owner** or **Can edit** permissions in
79+-- the Google Developers Console project.
7280--
7381-- /See:/ 'beaconsDeactivate' smart constructor.
7482data BeaconsDeactivate = BeaconsDeactivate'
@@ -79,6 +87,7 @@ data BeaconsDeactivate = BeaconsDeactivate'
7987 , _bdBeaconName :: !Text
8088 , _bdUploadType :: !(Maybe Text)
8189 , _bdBearerToken :: !(Maybe Text)
90+ , _bdProjectId :: !(Maybe Text)
8291 , _bdCallback :: !(Maybe Text)
8392 } deriving (Eq,Show,Data,Typeable,Generic)
8493
@@ -100,6 +109,8 @@ data BeaconsDeactivate = BeaconsDeactivate'
100109--
101110-- * 'bdBearerToken'
102111--
112+-- * 'bdProjectId'
113+--
103114-- * 'bdCallback'
104115beaconsDeactivate
105116 :: Text -- ^ 'bdBeaconName'
@@ -113,6 +124,7 @@ beaconsDeactivate pBdBeaconName_ =
113124 , _bdBeaconName = pBdBeaconName_
114125 , _bdUploadType = Nothing
115126 , _bdBearerToken = Nothing
127+ , _bdProjectId = Nothing
116128 , _bdCallback = Nothing
117129 }
118130
@@ -136,7 +148,12 @@ bdAccessToken
136148 = lens _bdAccessToken
137149 (\ s a -> s{_bdAccessToken = a})
138150
139−-- | The beacon name of this beacon.
151+-- | Beacon that should be deactivated. A beacon name has the format
152+-- \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by
153+-- the beacon and N is a code for the beacon\'s type. Possible values are
154+-- \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for iBeacon, or
155+-- \`5\` for AltBeacon. For Eddystone-EID beacons, you may use either the
156+-- current EID or the beacon\'s \"stable\" UID. Required.
140157bdBeaconName :: Lens' BeaconsDeactivate Text
141158bdBeaconName
142159 = lens _bdBeaconName (\ s a -> s{_bdBeaconName = a})
@@ -152,6 +169,13 @@ bdBearerToken
152169 = lens _bdBearerToken
153170 (\ s a -> s{_bdBearerToken = a})
154171
172+-- | The project id of the beacon to deactivate. If the project id is not
173+-- specified then the project making the request is used. The project id
174+-- must match the project that owns the beacon. Optional.
175+bdProjectId :: Lens' BeaconsDeactivate (Maybe Text)
176+bdProjectId
177+ = lens _bdProjectId (\ s a -> s{_bdProjectId = a})
178+
155179-- | JSONP
156180bdCallback :: Lens' BeaconsDeactivate (Maybe Text)
157181bdCallback
@@ -159,13 +183,15 @@ bdCallback
159183
160184instance GoogleRequest BeaconsDeactivate where
161185 type Rs BeaconsDeactivate = Empty
162− type Scopes BeaconsDeactivate = '[]
186+ type Scopes BeaconsDeactivate =
187+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
163188 requestClient BeaconsDeactivate'{..}
164189 = go _bdBeaconName _bdXgafv _bdUploadProtocol
165190 (Just _bdPp)
166191 _bdAccessToken
167192 _bdUploadType
168193 _bdBearerToken
194+ _bdProjectId
169195 _bdCallback
170196 (Just AltJSON)
171197 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Decommission.hs+32−6
@@ -23,7 +23,10 @@
2323-- Decommissions the specified beacon in the service. This beacon will no
2424-- longer be returned from \`beaconinfo.getforobserved\`. This operation is
2525-- permanent -- you will not be able to re-register a beacon with this ID
26−-- again.
26+-- again. Authenticate using an [OAuth access
27+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
28+-- from a signed-in user with **Is owner** or **Can edit** permissions in
29+-- the Google Developers Console project.
2730--
2831-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.decommission@.
2932module Network.Google.Resource.ProximityBeacon.Beacons.Decommission
@@ -43,6 +46,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Decommission
4346 , beaBeaconName
4447 , beaUploadType
4548 , beaBearerToken
49+ , beaProjectId
4650 , beaCallback
4751 ) where
4852
@@ -60,13 +64,17 @@ type BeaconsDecommissionResource =
6064 QueryParam "access_token" Text :>
6165 QueryParam "uploadType" Text :>
6266 QueryParam "bearer_token" Text :>
63− QueryParam "callback" Text :>
64− QueryParam "alt" AltJSON :> Post '[JSON] Empty
67+ QueryParam "projectId" Text :>
68+ QueryParam "callback" Text :>
69+ QueryParam "alt" AltJSON :> Post '[JSON] Empty
6570
6671-- | Decommissions the specified beacon in the service. This beacon will no
6772-- longer be returned from \`beaconinfo.getforobserved\`. This operation is
6873-- permanent -- you will not be able to re-register a beacon with this ID
69−-- again.
74+-- again. Authenticate using an [OAuth access
75+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
76+-- from a signed-in user with **Is owner** or **Can edit** permissions in
77+-- the Google Developers Console project.
7078--
7179-- /See:/ 'beaconsDecommission' smart constructor.
7280data BeaconsDecommission = BeaconsDecommission'
@@ -77,6 +85,7 @@ data BeaconsDecommission = BeaconsDecommission'
7785 , _beaBeaconName :: !Text
7886 , _beaUploadType :: !(Maybe Text)
7987 , _beaBearerToken :: !(Maybe Text)
88+ , _beaProjectId :: !(Maybe Text)
8089 , _beaCallback :: !(Maybe Text)
8190 } deriving (Eq,Show,Data,Typeable,Generic)
8291
@@ -98,6 +107,8 @@ data BeaconsDecommission = BeaconsDecommission'
98107--
99108-- * 'beaBearerToken'
100109--
110+-- * 'beaProjectId'
111+--
101112-- * 'beaCallback'
102113beaconsDecommission
103114 :: Text -- ^ 'beaBeaconName'
@@ -111,6 +122,7 @@ beaconsDecommission pBeaBeaconName_ =
111122 , _beaBeaconName = pBeaBeaconName_
112123 , _beaUploadType = Nothing
113124 , _beaBearerToken = Nothing
125+ , _beaProjectId = Nothing
114126 , _beaCallback = Nothing
115127 }
116128
@@ -134,7 +146,12 @@ beaAccessToken
134146 = lens _beaAccessToken
135147 (\ s a -> s{_beaAccessToken = a})
136148
137−-- | Beacon that should be decommissioned. Required.
149+-- | Beacon that should be decommissioned. A beacon name has the format
150+-- \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by
151+-- the beacon and N is a code for the beacon\'s type. Possible values are
152+-- \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for iBeacon, or
153+-- \`5\` for AltBeacon. For Eddystone-EID beacons, you may use either the
154+-- current EID of the beacon\'s \"stable\" UID. Required.
138155beaBeaconName :: Lens' BeaconsDecommission Text
139156beaBeaconName
140157 = lens _beaBeaconName
@@ -152,6 +169,13 @@ beaBearerToken
152169 = lens _beaBearerToken
153170 (\ s a -> s{_beaBearerToken = a})
154171
172+-- | The project id of the beacon to decommission. If the project id is not
173+-- specified then the project making the request is used. The project id
174+-- must match the project that owns the beacon. Optional.
175+beaProjectId :: Lens' BeaconsDecommission (Maybe Text)
176+beaProjectId
177+ = lens _beaProjectId (\ s a -> s{_beaProjectId = a})
178+
155179-- | JSONP
156180beaCallback :: Lens' BeaconsDecommission (Maybe Text)
157181beaCallback
@@ -159,13 +183,15 @@ beaCallback
159183
160184instance GoogleRequest BeaconsDecommission where
161185 type Rs BeaconsDecommission = Empty
162− type Scopes BeaconsDecommission = '[]
186+ type Scopes BeaconsDecommission =
187+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
163188 requestClient BeaconsDecommission'{..}
164189 = go _beaBeaconName _beaXgafv _beaUploadProtocol
165190 (Just _beaPp)
166191 _beaAccessToken
167192 _beaUploadType
168193 _beaBearerToken
194+ _beaProjectId
169195 _beaCallback
170196 (Just AltJSON)
171197 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Diagnostics/List.hs+31−8
@@ -22,7 +22,11 @@
2222--
2323-- List the diagnostics for a single beacon. You can also list diagnostics
2424-- for all the beacons owned by your Google Developers Console project by
25−-- using the beacon name \`beacons\/-\`.
25+-- using the beacon name \`beacons\/-\`. Authenticate using an [OAuth
26+-- access
27+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
28+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
29+-- permissions in the Google Developers Console project.
2630--
2731-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.diagnostics.list@.
2832module Network.Google.Resource.ProximityBeacon.Beacons.Diagnostics.List
@@ -43,6 +47,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Diagnostics.List
4347 , bdlUploadType
4448 , bdlBearerToken
4549 , bdlPageToken
50+ , bdlProjectId
4651 , bdlPageSize
4752 , bdlAlertFilter
4853 , bdlCallback
@@ -64,15 +69,20 @@ type BeaconsDiagnosticsListResource =
6469 QueryParam "uploadType" Text :>
6570 QueryParam "bearer_token" Text :>
6671 QueryParam "pageToken" Text :>
67− QueryParam "pageSize" (Textual Int32) :>
68− QueryParam "alertFilter" Text :>
69− QueryParam "callback" Text :>
70− QueryParam "alt" AltJSON :>
71− Get '[JSON] ListDiagnosticsResponse
72+ QueryParam "projectId" Text :>
73+ QueryParam "pageSize" (Textual Int32) :>
74+ QueryParam "alertFilter" Text :>
75+ QueryParam "callback" Text :>
76+ QueryParam "alt" AltJSON :>
77+ Get '[JSON] ListDiagnosticsResponse
7278
7379-- | List the diagnostics for a single beacon. You can also list diagnostics
7480-- for all the beacons owned by your Google Developers Console project by
75−-- using the beacon name \`beacons\/-\`.
81+-- using the beacon name \`beacons\/-\`. Authenticate using an [OAuth
82+-- access
83+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
84+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
85+-- permissions in the Google Developers Console project.
7686--
7787-- /See:/ 'beaconsDiagnosticsList' smart constructor.
7888data BeaconsDiagnosticsList = BeaconsDiagnosticsList'
@@ -84,6 +94,7 @@ data BeaconsDiagnosticsList = BeaconsDiagnosticsList'
8494 , _bdlUploadType :: !(Maybe Text)
8595 , _bdlBearerToken :: !(Maybe Text)
8696 , _bdlPageToken :: !(Maybe Text)
97+ , _bdlProjectId :: !(Maybe Text)
8798 , _bdlPageSize :: !(Maybe (Textual Int32))
8899 , _bdlAlertFilter :: !(Maybe Text)
89100 , _bdlCallback :: !(Maybe Text)
@@ -109,6 +120,8 @@ data BeaconsDiagnosticsList = BeaconsDiagnosticsList'
109120--
110121-- * 'bdlPageToken'
111122--
123+-- * 'bdlProjectId'
124+--
112125-- * 'bdlPageSize'
113126--
114127-- * 'bdlAlertFilter'
@@ -127,6 +140,7 @@ beaconsDiagnosticsList pBdlBeaconName_ =
127140 , _bdlUploadType = Nothing
128141 , _bdlBearerToken = Nothing
129142 , _bdlPageToken = Nothing
143+ , _bdlProjectId = Nothing
130144 , _bdlPageSize = Nothing
131145 , _bdlAlertFilter = Nothing
132146 , _bdlCallback = Nothing
@@ -176,6 +190,13 @@ bdlPageToken :: Lens' BeaconsDiagnosticsList (Maybe Text)
176190bdlPageToken
177191 = lens _bdlPageToken (\ s a -> s{_bdlPageToken = a})
178192
193+-- | Requests only diagnostic records for the given project id. If not set,
194+-- then the project making the request will be used for looking up
195+-- diagnostic records. Optional.
196+bdlProjectId :: Lens' BeaconsDiagnosticsList (Maybe Text)
197+bdlProjectId
198+ = lens _bdlProjectId (\ s a -> s{_bdlProjectId = a})
199+
179200-- | Specifies the maximum number of results to return. Defaults to 10.
180201-- Maximum 1000. Optional.
181202bdlPageSize :: Lens' BeaconsDiagnosticsList (Maybe Int32)
@@ -198,7 +219,8 @@ bdlCallback
198219instance GoogleRequest BeaconsDiagnosticsList where
199220 type Rs BeaconsDiagnosticsList =
200221 ListDiagnosticsResponse
201− type Scopes BeaconsDiagnosticsList = '[]
222+ type Scopes BeaconsDiagnosticsList =
223+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
202224 requestClient BeaconsDiagnosticsList'{..}
203225 = go _bdlBeaconName _bdlXgafv _bdlUploadProtocol
204226 (Just _bdlPp)
@@ -206,6 +228,7 @@ instance GoogleRequest BeaconsDiagnosticsList where
206228 _bdlUploadType
207229 _bdlBearerToken
208230 _bdlPageToken
231+ _bdlProjectId
209232 _bdlPageSize
210233 _bdlAlertFilter
211234 _bdlCallback
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Get.hs+45−7
@@ -20,7 +20,16 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Returns detailed information about the specified beacon.
23+-- Returns detailed information about the specified beacon. Authenticate
24+-- using an [OAuth access
25+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
26+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
27+-- permissions in the Google Developers Console project. Requests may
28+-- supply an Eddystone-EID beacon name in the form: \`beacons\/4!beaconId\`
29+-- where the \`beaconId\` is the base16 ephemeral ID broadcast by the
30+-- beacon. The returned \`Beacon\` object will contain the beacon\'s stable
31+-- Eddystone-UID. Clients not authorized to resolve the beacon\'s ephemeral
32+-- Eddystone-EID broadcast will receive an error.
2433--
2534-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.get@.
2635module Network.Google.Resource.ProximityBeacon.Beacons.Get
@@ -40,6 +49,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Get
4049 , bgBeaconName
4150 , bgUploadType
4251 , bgBearerToken
52+ , bgProjectId
4353 , bgCallback
4454 ) where
4555
@@ -57,10 +67,20 @@ type BeaconsGetResource =
5767 QueryParam "access_token" Text :>
5868 QueryParam "uploadType" Text :>
5969 QueryParam "bearer_token" Text :>
60− QueryParam "callback" Text :>
61− QueryParam "alt" AltJSON :> Get '[JSON] Beacon
62−
63−-- | Returns detailed information about the specified beacon.
70+ QueryParam "projectId" Text :>
71+ QueryParam "callback" Text :>
72+ QueryParam "alt" AltJSON :> Get '[JSON] Beacon
73+
74+-- | Returns detailed information about the specified beacon. Authenticate
75+-- using an [OAuth access
76+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
77+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
78+-- permissions in the Google Developers Console project. Requests may
79+-- supply an Eddystone-EID beacon name in the form: \`beacons\/4!beaconId\`
80+-- where the \`beaconId\` is the base16 ephemeral ID broadcast by the
81+-- beacon. The returned \`Beacon\` object will contain the beacon\'s stable
82+-- Eddystone-UID. Clients not authorized to resolve the beacon\'s ephemeral
83+-- Eddystone-EID broadcast will receive an error.
6484--
6585-- /See:/ 'beaconsGet' smart constructor.
6686data BeaconsGet = BeaconsGet'
@@ -71,6 +91,7 @@ data BeaconsGet = BeaconsGet'
7191 , _bgBeaconName :: !Text
7292 , _bgUploadType :: !(Maybe Text)
7393 , _bgBearerToken :: !(Maybe Text)
94+ , _bgProjectId :: !(Maybe Text)
7495 , _bgCallback :: !(Maybe Text)
7596 } deriving (Eq,Show,Data,Typeable,Generic)
7697
@@ -92,6 +113,8 @@ data BeaconsGet = BeaconsGet'
92113--
93114-- * 'bgBearerToken'
94115--
116+-- * 'bgProjectId'
117+--
95118-- * 'bgCallback'
96119beaconsGet
97120 :: Text -- ^ 'bgBeaconName'
@@ -105,6 +128,7 @@ beaconsGet pBgBeaconName_ =
105128 , _bgBeaconName = pBgBeaconName_
106129 , _bgUploadType = Nothing
107130 , _bgBearerToken = Nothing
131+ , _bgProjectId = Nothing
108132 , _bgCallback = Nothing
109133 }
110134
@@ -128,7 +152,12 @@ bgAccessToken
128152 = lens _bgAccessToken
129153 (\ s a -> s{_bgAccessToken = a})
130154
131−-- | Beacon that is requested.
155+-- | Resource name of this beacon. A beacon name has the format
156+-- \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by
157+-- the beacon and N is a code for the beacon\'s type. Possible values are
158+-- \`3\` for Eddystone-UID, \`4\` for Eddystone-EID, \`1\` for iBeacon, or
159+-- \`5\` for AltBeacon. For Eddystone-EID beacons, you may use either the
160+-- current EID or the beacon\'s \"stable\" UID. Required.
132161bgBeaconName :: Lens' BeaconsGet Text
133162bgBeaconName
134163 = lens _bgBeaconName (\ s a -> s{_bgBeaconName = a})
@@ -144,6 +173,13 @@ bgBearerToken
144173 = lens _bgBearerToken
145174 (\ s a -> s{_bgBearerToken = a})
146175
176+-- | The project id of the beacon to request. If the project id is not
177+-- specified then the project making the request is used. The project id
178+-- must match the project that owns the beacon. Optional.
179+bgProjectId :: Lens' BeaconsGet (Maybe Text)
180+bgProjectId
181+ = lens _bgProjectId (\ s a -> s{_bgProjectId = a})
182+
147183-- | JSONP
148184bgCallback :: Lens' BeaconsGet (Maybe Text)
149185bgCallback
@@ -151,13 +187,15 @@ bgCallback
151187
152188instance GoogleRequest BeaconsGet where
153189 type Rs BeaconsGet = Beacon
154− type Scopes BeaconsGet = '[]
190+ type Scopes BeaconsGet =
191+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
155192 requestClient BeaconsGet'{..}
156193 = go _bgBeaconName _bgXgafv _bgUploadProtocol
157194 (Just _bgPp)
158195 _bgAccessToken
159196 _bgUploadType
160197 _bgBearerToken
198+ _bgProjectId
161199 _bgCallback
162200 (Just AltJSON)
163201 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/List.hs+28−8
@@ -22,7 +22,10 @@
2222--
2323-- Searches the beacon registry for beacons that match the given search
2424-- criteria. Only those beacons that the client has permission to list will
25−-- be returned.
25+-- be returned. Authenticate using an [OAuth access
26+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
27+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
28+-- permissions in the Google Developers Console project.
2629--
2730-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.list@.
2831module Network.Google.Resource.ProximityBeacon.Beacons.List
@@ -43,6 +46,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.List
4346 , blQ
4447 , blBearerToken
4548 , blPageToken
49+ , blProjectId
4650 , blPageSize
4751 , blCallback
4852 ) where
@@ -63,14 +67,18 @@ type BeaconsListResource =
6367 QueryParam "q" Text :>
6468 QueryParam "bearer_token" Text :>
6569 QueryParam "pageToken" Text :>
66− QueryParam "pageSize" (Textual Int32) :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :>
69− Get '[JSON] ListBeaconsResponse
70+ QueryParam "projectId" Text :>
71+ QueryParam "pageSize" (Textual Int32) :>
72+ QueryParam "callback" Text :>
73+ QueryParam "alt" AltJSON :>
74+ Get '[JSON] ListBeaconsResponse
7075
7176-- | Searches the beacon registry for beacons that match the given search
7277-- criteria. Only those beacons that the client has permission to list will
73−-- be returned.
78+-- be returned. Authenticate using an [OAuth access
79+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
80+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
81+-- permissions in the Google Developers Console project.
7482--
7583-- /See:/ 'beaconsList' smart constructor.
7684data BeaconsList = BeaconsList'
@@ -82,6 +90,7 @@ data BeaconsList = BeaconsList'
8290 , _blQ :: !(Maybe Text)
8391 , _blBearerToken :: !(Maybe Text)
8492 , _blPageToken :: !(Maybe Text)
93+ , _blProjectId :: !(Maybe Text)
8594 , _blPageSize :: !(Maybe (Textual Int32))
8695 , _blCallback :: !(Maybe Text)
8796 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -106,6 +115,8 @@ data BeaconsList = BeaconsList'
106115--
107116-- * 'blPageToken'
108117--
118+-- * 'blProjectId'
119+--
109120-- * 'blPageSize'
110121--
111122-- * 'blCallback'
@@ -121,6 +132,7 @@ beaconsList =
121132 , _blQ = Nothing
122133 , _blBearerToken = Nothing
123134 , _blPageToken = Nothing
135+ , _blProjectId = Nothing
124136 , _blPageSize = Nothing
125137 , _blCallback = Nothing
126138 }
@@ -179,7 +191,7 @@ blUploadType
179191-- registered location is within the given circle. When any of these fields
180192-- are given, all are required. Latitude and longitude must be decimal
181193-- degrees between -90.0 and 90.0 and between -180.0 and 180.0
182−-- respectively. Radius must be an integer number of meters less than
194+-- respectively. Radius must be an integer number of meters between 10 and
183195-- 1,000,000 (1000 km). * \`property:\"=\"\` For example:
184196-- \`property:\"battery-type=CR2032\"\` Returns beacons which have a
185197-- property of the given name and value. Supports multiple filters which
@@ -210,6 +222,12 @@ blPageToken :: Lens' BeaconsList (Maybe Text)
210222blPageToken
211223 = lens _blPageToken (\ s a -> s{_blPageToken = a})
212224
225+-- | The project id to list beacons under. If not present then the project
226+-- credential that made the request is used as the project. Optional.
227+blProjectId :: Lens' BeaconsList (Maybe Text)
228+blProjectId
229+ = lens _blProjectId (\ s a -> s{_blProjectId = a})
230+
213231-- | The maximum number of records to return for this request, up to a
214232-- server-defined upper limit.
215233blPageSize :: Lens' BeaconsList (Maybe Int32)
@@ -224,7 +242,8 @@ blCallback
224242
225243instance GoogleRequest BeaconsList where
226244 type Rs BeaconsList = ListBeaconsResponse
227− type Scopes BeaconsList = '[]
245+ type Scopes BeaconsList =
246+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
228247 requestClient BeaconsList'{..}
229248 = go _blXgafv _blUploadProtocol (Just _blPp)
230249 _blAccessToken
@@ -232,6 +251,7 @@ instance GoogleRequest BeaconsList where
232251 _blQ
233252 _blBearerToken
234253 _blPageToken
254+ _blProjectId
235255 _blPageSize
236256 _blCallback
237257 (Just AltJSON)
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Register.hs+27−6
@@ -22,7 +22,10 @@
2222--
2323-- Registers a previously unregistered beacon given its \`advertisedId\`.
2424-- These IDs are unique within the system. An ID can be registered only
25−-- once.
25+-- once. Authenticate using an [OAuth access
26+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
27+-- from a signed-in user with **Is owner** or **Can edit** permissions in
28+-- the Google Developers Console project.
2629--
2730-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.register@.
2831module Network.Google.Resource.ProximityBeacon.Beacons.Register
@@ -42,6 +45,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Register
4245 , brUploadType
4346 , brPayload
4447 , brBearerToken
48+ , brProjectId
4549 , brCallback
4650 ) where
4751
@@ -59,13 +63,17 @@ type BeaconsRegisterResource =
5963 QueryParam "access_token" Text :>
6064 QueryParam "uploadType" Text :>
6165 QueryParam "bearer_token" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] Beacon :> Post '[JSON] Beacon
66+ QueryParam "projectId" Text :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ ReqBody '[JSON] Beacon :> Post '[JSON] Beacon
6570
6671-- | Registers a previously unregistered beacon given its \`advertisedId\`.
6772-- These IDs are unique within the system. An ID can be registered only
68−-- once.
73+-- once. Authenticate using an [OAuth access
74+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
75+-- from a signed-in user with **Is owner** or **Can edit** permissions in
76+-- the Google Developers Console project.
6977--
7078-- /See:/ 'beaconsRegister' smart constructor.
7179data BeaconsRegister = BeaconsRegister'
@@ -76,6 +84,7 @@ data BeaconsRegister = BeaconsRegister'
7684 , _brUploadType :: !(Maybe Text)
7785 , _brPayload :: !Beacon
7886 , _brBearerToken :: !(Maybe Text)
87+ , _brProjectId :: !(Maybe Text)
7988 , _brCallback :: !(Maybe Text)
8089 } deriving (Eq,Show,Data,Typeable,Generic)
8190
@@ -97,6 +106,8 @@ data BeaconsRegister = BeaconsRegister'
97106--
98107-- * 'brBearerToken'
99108--
109+-- * 'brProjectId'
110+--
100111-- * 'brCallback'
101112beaconsRegister
102113 :: Beacon -- ^ 'brPayload'
@@ -110,6 +121,7 @@ beaconsRegister pBrPayload_ =
110121 , _brUploadType = Nothing
111122 , _brPayload = pBrPayload_
112123 , _brBearerToken = Nothing
124+ , _brProjectId = Nothing
113125 , _brCallback = Nothing
114126 }
115127
@@ -149,6 +161,13 @@ brBearerToken
149161 = lens _brBearerToken
150162 (\ s a -> s{_brBearerToken = a})
151163
164+-- | The project id of the project the beacon will be registered to. If the
165+-- project id is not specified then the project making the request is used.
166+-- Optional.
167+brProjectId :: Lens' BeaconsRegister (Maybe Text)
168+brProjectId
169+ = lens _brProjectId (\ s a -> s{_brProjectId = a})
170+
152171-- | JSONP
153172brCallback :: Lens' BeaconsRegister (Maybe Text)
154173brCallback
@@ -156,12 +175,14 @@ brCallback
156175
157176instance GoogleRequest BeaconsRegister where
158177 type Rs BeaconsRegister = Beacon
159− type Scopes BeaconsRegister = '[]
178+ type Scopes BeaconsRegister =
179+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
160180 requestClient BeaconsRegister'{..}
161181 = go _brXgafv _brUploadProtocol (Just _brPp)
162182 _brAccessToken
163183 _brUploadType
164184 _brBearerToken
185+ _brProjectId
165186 _brCallback
166187 (Just AltJSON)
167188 _brPayload
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Update.hs+29−6
@@ -25,7 +25,11 @@
2525-- you should follow the \"read, modify, write\" pattern to avoid
2626-- inadvertently destroying data. Changes to the beacon status via this
2727-- method will be silently ignored. To update beacon status, use the
28−-- separate methods on this API for (de)activation and decommissioning.
28+-- separate methods on this API for activation, deactivation, and
29+-- decommissioning. Authenticate using an [OAuth access
30+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
31+-- from a signed-in user with **Is owner** or **Can edit** permissions in
32+-- the Google Developers Console project.
2933--
3034-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.beacons.update@.
3135module Network.Google.Resource.ProximityBeacon.Beacons.Update
@@ -46,6 +50,7 @@ module Network.Google.Resource.ProximityBeacon.Beacons.Update
4650 , buUploadType
4751 , buPayload
4852 , buBearerToken
53+ , buProjectId
4954 , buCallback
5055 ) where
5156
@@ -63,16 +68,21 @@ type BeaconsUpdateResource =
6368 QueryParam "access_token" Text :>
6469 QueryParam "uploadType" Text :>
6570 QueryParam "bearer_token" Text :>
66− QueryParam "callback" Text :>
67− QueryParam "alt" AltJSON :>
68− ReqBody '[JSON] Beacon :> Put '[JSON] Beacon
71+ QueryParam "projectId" Text :>
72+ QueryParam "callback" Text :>
73+ QueryParam "alt" AltJSON :>
74+ ReqBody '[JSON] Beacon :> Put '[JSON] Beacon
6975
7076-- | Updates the information about the specified beacon. **Any field that you
7177-- do not populate in the submitted beacon will be permanently erased**, so
7278-- you should follow the \"read, modify, write\" pattern to avoid
7379-- inadvertently destroying data. Changes to the beacon status via this
7480-- method will be silently ignored. To update beacon status, use the
75−-- separate methods on this API for (de)activation and decommissioning.
81+-- separate methods on this API for activation, deactivation, and
82+-- decommissioning. Authenticate using an [OAuth access
83+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
84+-- from a signed-in user with **Is owner** or **Can edit** permissions in
85+-- the Google Developers Console project.
7686--
7787-- /See:/ 'beaconsUpdate' smart constructor.
7888data BeaconsUpdate = BeaconsUpdate'
@@ -84,6 +94,7 @@ data BeaconsUpdate = BeaconsUpdate'
8494 , _buUploadType :: !(Maybe Text)
8595 , _buPayload :: !Beacon
8696 , _buBearerToken :: !(Maybe Text)
97+ , _buProjectId :: !(Maybe Text)
8798 , _buCallback :: !(Maybe Text)
8899 } deriving (Eq,Show,Data,Typeable,Generic)
89100
@@ -107,6 +118,8 @@ data BeaconsUpdate = BeaconsUpdate'
107118--
108119-- * 'buBearerToken'
109120--
121+-- * 'buProjectId'
122+--
110123-- * 'buCallback'
111124beaconsUpdate
112125 :: Text -- ^ 'buBeaconName'
@@ -122,6 +135,7 @@ beaconsUpdate pBuBeaconName_ pBuPayload_ =
122135 , _buUploadType = Nothing
123136 , _buPayload = pBuPayload_
124137 , _buBearerToken = Nothing
138+ , _buProjectId = Nothing
125139 , _buCallback = Nothing
126140 }
127141
@@ -171,6 +185,13 @@ buBearerToken
171185 = lens _buBearerToken
172186 (\ s a -> s{_buBearerToken = a})
173187
188+-- | The project id of the beacon to update. If the project id is not
189+-- specified then the project making the request is used. The project id
190+-- must match the project that owns the beacon. Optional.
191+buProjectId :: Lens' BeaconsUpdate (Maybe Text)
192+buProjectId
193+ = lens _buProjectId (\ s a -> s{_buProjectId = a})
194+
174195-- | JSONP
175196buCallback :: Lens' BeaconsUpdate (Maybe Text)
176197buCallback
@@ -178,13 +199,15 @@ buCallback
178199
179200instance GoogleRequest BeaconsUpdate where
180201 type Rs BeaconsUpdate = Beacon
181− type Scopes BeaconsUpdate = '[]
202+ type Scopes BeaconsUpdate =
203+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
182204 requestClient BeaconsUpdate'{..}
183205 = go _buBeaconName _buXgafv _buUploadProtocol
184206 (Just _buPp)
185207 _buAccessToken
186208 _buUploadType
187209 _buBearerToken
210+ _buProjectId
188211 _buCallback
189212 (Just AltJSON)
190213 _buPayload
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/GetEidparams.hsnew file+168
@@ -0,0 +1,168 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.ProximityBeacon.GetEidparams
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets the Proximity Beacon API\'s current public key and associated
24+-- parameters used to initiate the Diffie-Hellman key exchange required to
25+-- register a beacon that broadcasts the Eddystone-EID format. This key
26+-- changes periodically; clients may cache it and re-use the same public
27+-- key to provision and register multiple beacons. However, clients should
28+-- be prepared to refresh this key when they encounter an error registering
29+-- an Eddystone-EID beacon.
30+--
31+-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.getEidparams@.
32+module Network.Google.Resource.ProximityBeacon.GetEidparams
33+ (
34+ -- * REST Resource
35+ GetEidparamsResource
36+
37+ -- * Creating a Request
38+ , getEidparams
39+ , GetEidparams
40+
41+ -- * Request Lenses
42+ , geXgafv
43+ , geUploadProtocol
44+ , gePp
45+ , geAccessToken
46+ , geUploadType
47+ , geBearerToken
48+ , geCallback
49+ ) where
50+
51+import Network.Google.Prelude
52+import Network.Google.ProximityBeacon.Types
53+
54+-- | A resource alias for @proximitybeacon.getEidparams@ method which the
55+-- 'GetEidparams' request conforms to.
56+type GetEidparamsResource =
57+ "v1beta1" :>
58+ "eidparams" :>
59+ QueryParam "$.xgafv" Text :>
60+ QueryParam "upload_protocol" Text :>
61+ QueryParam "pp" Bool :>
62+ QueryParam "access_token" Text :>
63+ QueryParam "uploadType" Text :>
64+ QueryParam "bearer_token" Text :>
65+ QueryParam "callback" Text :>
66+ QueryParam "alt" AltJSON :>
67+ Get '[JSON] EphemeralIdRegistrationParams
68+
69+-- | Gets the Proximity Beacon API\'s current public key and associated
70+-- parameters used to initiate the Diffie-Hellman key exchange required to
71+-- register a beacon that broadcasts the Eddystone-EID format. This key
72+-- changes periodically; clients may cache it and re-use the same public
73+-- key to provision and register multiple beacons. However, clients should
74+-- be prepared to refresh this key when they encounter an error registering
75+-- an Eddystone-EID beacon.
76+--
77+-- /See:/ 'getEidparams' smart constructor.
78+data GetEidparams = GetEidparams'
79+ { _geXgafv :: !(Maybe Text)
80+ , _geUploadProtocol :: !(Maybe Text)
81+ , _gePp :: !Bool
82+ , _geAccessToken :: !(Maybe Text)
83+ , _geUploadType :: !(Maybe Text)
84+ , _geBearerToken :: !(Maybe Text)
85+ , _geCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'GetEidparams' with the minimum fields required to make a request.
89+--
90+-- Use one of the following lenses to modify other fields as desired:
91+--
92+-- * 'geXgafv'
93+--
94+-- * 'geUploadProtocol'
95+--
96+-- * 'gePp'
97+--
98+-- * 'geAccessToken'
99+--
100+-- * 'geUploadType'
101+--
102+-- * 'geBearerToken'
103+--
104+-- * 'geCallback'
105+getEidparams
106+ :: GetEidparams
107+getEidparams =
108+ GetEidparams'
109+ { _geXgafv = Nothing
110+ , _geUploadProtocol = Nothing
111+ , _gePp = True
112+ , _geAccessToken = Nothing
113+ , _geUploadType = Nothing
114+ , _geBearerToken = Nothing
115+ , _geCallback = Nothing
116+ }
117+
118+-- | V1 error format.
119+geXgafv :: Lens' GetEidparams (Maybe Text)
120+geXgafv = lens _geXgafv (\ s a -> s{_geXgafv = a})
121+
122+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
123+geUploadProtocol :: Lens' GetEidparams (Maybe Text)
124+geUploadProtocol
125+ = lens _geUploadProtocol
126+ (\ s a -> s{_geUploadProtocol = a})
127+
128+-- | Pretty-print response.
129+gePp :: Lens' GetEidparams Bool
130+gePp = lens _gePp (\ s a -> s{_gePp = a})
131+
132+-- | OAuth access token.
133+geAccessToken :: Lens' GetEidparams (Maybe Text)
134+geAccessToken
135+ = lens _geAccessToken
136+ (\ s a -> s{_geAccessToken = a})
137+
138+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
139+geUploadType :: Lens' GetEidparams (Maybe Text)
140+geUploadType
141+ = lens _geUploadType (\ s a -> s{_geUploadType = a})
142+
143+-- | OAuth bearer token.
144+geBearerToken :: Lens' GetEidparams (Maybe Text)
145+geBearerToken
146+ = lens _geBearerToken
147+ (\ s a -> s{_geBearerToken = a})
148+
149+-- | JSONP
150+geCallback :: Lens' GetEidparams (Maybe Text)
151+geCallback
152+ = lens _geCallback (\ s a -> s{_geCallback = a})
153+
154+instance GoogleRequest GetEidparams where
155+ type Rs GetEidparams = EphemeralIdRegistrationParams
156+ type Scopes GetEidparams =
157+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
158+ requestClient GetEidparams'{..}
159+ = go _geXgafv _geUploadProtocol (Just _gePp)
160+ _geAccessToken
161+ _geUploadType
162+ _geBearerToken
163+ _geCallback
164+ (Just AltJSON)
165+ proximityBeaconService
166+ where go
167+ = buildClient (Proxy :: Proxy GetEidparamsResource)
168+ mempty
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Namespaces/List.hs+25−4
@@ -23,6 +23,10 @@
2323-- Lists all attachment namespaces owned by your Google Developers Console
2424-- project. Attachment data associated with a beacon must include a
2525-- namespaced type, and the namespace must be owned by your project.
26+-- Authenticate using an [OAuth access
27+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
28+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
29+-- permissions in the Google Developers Console project.
2630--
2731-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.namespaces.list@.
2832module Network.Google.Resource.ProximityBeacon.Namespaces.List
@@ -41,6 +45,7 @@ module Network.Google.Resource.ProximityBeacon.Namespaces.List
4145 , nlAccessToken
4246 , nlUploadType
4347 , nlBearerToken
48+ , nlProjectId
4449 , nlCallback
4550 ) where
4651
@@ -58,13 +63,18 @@ type NamespacesListResource =
5863 QueryParam "access_token" Text :>
5964 QueryParam "uploadType" Text :>
6065 QueryParam "bearer_token" Text :>
61− QueryParam "callback" Text :>
62− QueryParam "alt" AltJSON :>
63− Get '[JSON] ListNamespacesResponse
66+ QueryParam "projectId" Text :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ Get '[JSON] ListNamespacesResponse
6470
6571-- | Lists all attachment namespaces owned by your Google Developers Console
6672-- project. Attachment data associated with a beacon must include a
6773-- namespaced type, and the namespace must be owned by your project.
74+-- Authenticate using an [OAuth access
75+-- token](https:\/\/developers.google.com\/identity\/protocols\/OAuth2)
76+-- from a signed-in user with **viewer**, **Is owner** or **Can edit**
77+-- permissions in the Google Developers Console project.
6878--
6979-- /See:/ 'namespacesList' smart constructor.
7080data NamespacesList = NamespacesList'
@@ -74,6 +84,7 @@ data NamespacesList = NamespacesList'
7484 , _nlAccessToken :: !(Maybe Text)
7585 , _nlUploadType :: !(Maybe Text)
7686 , _nlBearerToken :: !(Maybe Text)
87+ , _nlProjectId :: !(Maybe Text)
7788 , _nlCallback :: !(Maybe Text)
7889 } deriving (Eq,Show,Data,Typeable,Generic)
7990
@@ -93,6 +104,8 @@ data NamespacesList = NamespacesList'
93104--
94105-- * 'nlBearerToken'
95106--
107+-- * 'nlProjectId'
108+--
96109-- * 'nlCallback'
97110namespacesList
98111 :: NamespacesList
@@ -104,6 +117,7 @@ namespacesList =
104117 , _nlAccessToken = Nothing
105118 , _nlUploadType = Nothing
106119 , _nlBearerToken = Nothing
120+ , _nlProjectId = Nothing
107121 , _nlCallback = Nothing
108122 }
109123
@@ -138,6 +152,11 @@ nlBearerToken
138152 = lens _nlBearerToken
139153 (\ s a -> s{_nlBearerToken = a})
140154
155+-- | The project id to list namespaces under. Optional.
156+nlProjectId :: Lens' NamespacesList (Maybe Text)
157+nlProjectId
158+ = lens _nlProjectId (\ s a -> s{_nlProjectId = a})
159+
141160-- | JSONP
142161nlCallback :: Lens' NamespacesList (Maybe Text)
143162nlCallback
@@ -145,12 +164,14 @@ nlCallback
145164
146165instance GoogleRequest NamespacesList where
147166 type Rs NamespacesList = ListNamespacesResponse
148− type Scopes NamespacesList = '[]
167+ type Scopes NamespacesList =
168+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
149169 requestClient NamespacesList'{..}
150170 = go _nlXgafv _nlUploadProtocol (Just _nlPp)
151171 _nlAccessToken
152172 _nlUploadType
153173 _nlBearerToken
174+ _nlProjectId
154175 _nlCallback
155176 (Just AltJSON)
156177 proximityBeaconService
gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Namespaces/Update.hsnew file+199
@@ -0,0 +1,199 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.ProximityBeacon.Namespaces.Update
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates the information about the specified namespace. Only the
24+-- namespace visibility can be updated.
25+--
26+-- /See:/ <https://developers.google.com/beacons/proximity/ Google Proximity Beacon API Reference> for @proximitybeacon.namespaces.update@.
27+module Network.Google.Resource.ProximityBeacon.Namespaces.Update
28+ (
29+ -- * REST Resource
30+ NamespacesUpdateResource
31+
32+ -- * Creating a Request
33+ , namespacesUpdate
34+ , NamespacesUpdate
35+
36+ -- * Request Lenses
37+ , nuXgafv
38+ , nuUploadProtocol
39+ , nuPp
40+ , nuAccessToken
41+ , nuUploadType
42+ , nuPayload
43+ , nuNamespaceName
44+ , nuBearerToken
45+ , nuProjectId
46+ , nuCallback
47+ ) where
48+
49+import Network.Google.Prelude
50+import Network.Google.ProximityBeacon.Types
51+
52+-- | A resource alias for @proximitybeacon.namespaces.update@ method which the
53+-- 'NamespacesUpdate' request conforms to.
54+type NamespacesUpdateResource =
55+ "v1beta1" :>
56+ Capture "namespaceName" Text :>
57+ QueryParam "$.xgafv" Text :>
58+ QueryParam "upload_protocol" Text :>
59+ QueryParam "pp" Bool :>
60+ QueryParam "access_token" Text :>
61+ QueryParam "uploadType" Text :>
62+ QueryParam "bearer_token" Text :>
63+ QueryParam "projectId" Text :>
64+ QueryParam "callback" Text :>
65+ QueryParam "alt" AltJSON :>
66+ ReqBody '[JSON] Namespace :> Put '[JSON] Namespace
67+
68+-- | Updates the information about the specified namespace. Only the
69+-- namespace visibility can be updated.
70+--
71+-- /See:/ 'namespacesUpdate' smart constructor.
72+data NamespacesUpdate = NamespacesUpdate'
73+ { _nuXgafv :: !(Maybe Text)
74+ , _nuUploadProtocol :: !(Maybe Text)
75+ , _nuPp :: !Bool
76+ , _nuAccessToken :: !(Maybe Text)
77+ , _nuUploadType :: !(Maybe Text)
78+ , _nuPayload :: !Namespace
79+ , _nuNamespaceName :: !Text
80+ , _nuBearerToken :: !(Maybe Text)
81+ , _nuProjectId :: !(Maybe Text)
82+ , _nuCallback :: !(Maybe Text)
83+ } deriving (Eq,Show,Data,Typeable,Generic)
84+
85+-- | Creates a value of 'NamespacesUpdate' with the minimum fields required to make a request.
86+--
87+-- Use one of the following lenses to modify other fields as desired:
88+--
89+-- * 'nuXgafv'
90+--
91+-- * 'nuUploadProtocol'
92+--
93+-- * 'nuPp'
94+--
95+-- * 'nuAccessToken'
96+--
97+-- * 'nuUploadType'
98+--
99+-- * 'nuPayload'
100+--
101+-- * 'nuNamespaceName'
102+--
103+-- * 'nuBearerToken'
104+--
105+-- * 'nuProjectId'
106+--
107+-- * 'nuCallback'
108+namespacesUpdate
109+ :: Namespace -- ^ 'nuPayload'
110+ -> Text -- ^ 'nuNamespaceName'
111+ -> NamespacesUpdate
112+namespacesUpdate pNuPayload_ pNuNamespaceName_ =
113+ NamespacesUpdate'
114+ { _nuXgafv = Nothing
115+ , _nuUploadProtocol = Nothing
116+ , _nuPp = True
117+ , _nuAccessToken = Nothing
118+ , _nuUploadType = Nothing
119+ , _nuPayload = pNuPayload_
120+ , _nuNamespaceName = pNuNamespaceName_
121+ , _nuBearerToken = Nothing
122+ , _nuProjectId = Nothing
123+ , _nuCallback = Nothing
124+ }
125+
126+-- | V1 error format.
127+nuXgafv :: Lens' NamespacesUpdate (Maybe Text)
128+nuXgafv = lens _nuXgafv (\ s a -> s{_nuXgafv = a})
129+
130+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131+nuUploadProtocol :: Lens' NamespacesUpdate (Maybe Text)
132+nuUploadProtocol
133+ = lens _nuUploadProtocol
134+ (\ s a -> s{_nuUploadProtocol = a})
135+
136+-- | Pretty-print response.
137+nuPp :: Lens' NamespacesUpdate Bool
138+nuPp = lens _nuPp (\ s a -> s{_nuPp = a})
139+
140+-- | OAuth access token.
141+nuAccessToken :: Lens' NamespacesUpdate (Maybe Text)
142+nuAccessToken
143+ = lens _nuAccessToken
144+ (\ s a -> s{_nuAccessToken = a})
145+
146+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147+nuUploadType :: Lens' NamespacesUpdate (Maybe Text)
148+nuUploadType
149+ = lens _nuUploadType (\ s a -> s{_nuUploadType = a})
150+
151+-- | Multipart request metadata.
152+nuPayload :: Lens' NamespacesUpdate Namespace
153+nuPayload
154+ = lens _nuPayload (\ s a -> s{_nuPayload = a})
155+
156+-- | Resource name of this namespace. Namespaces names have the format:
157+-- namespaces\/namespace.
158+nuNamespaceName :: Lens' NamespacesUpdate Text
159+nuNamespaceName
160+ = lens _nuNamespaceName
161+ (\ s a -> s{_nuNamespaceName = a})
162+
163+-- | OAuth bearer token.
164+nuBearerToken :: Lens' NamespacesUpdate (Maybe Text)
165+nuBearerToken
166+ = lens _nuBearerToken
167+ (\ s a -> s{_nuBearerToken = a})
168+
169+-- | The project id of the namespace to update. If the project id is not
170+-- specified then the project making the request is used. The project id
171+-- must match the project that owns the beacon. Optional.
172+nuProjectId :: Lens' NamespacesUpdate (Maybe Text)
173+nuProjectId
174+ = lens _nuProjectId (\ s a -> s{_nuProjectId = a})
175+
176+-- | JSONP
177+nuCallback :: Lens' NamespacesUpdate (Maybe Text)
178+nuCallback
179+ = lens _nuCallback (\ s a -> s{_nuCallback = a})
180+
181+instance GoogleRequest NamespacesUpdate where
182+ type Rs NamespacesUpdate = Namespace
183+ type Scopes NamespacesUpdate =
184+ '["https://www.googleapis.com/auth/userlocation.beacon.registry"]
185+ requestClient NamespacesUpdate'{..}
186+ = go _nuNamespaceName _nuXgafv _nuUploadProtocol
187+ (Just _nuPp)
188+ _nuAccessToken
189+ _nuUploadType
190+ _nuBearerToken
191+ _nuProjectId
192+ _nuCallback
193+ (Just AltJSON)
194+ _nuPayload
195+ proximityBeaconService
196+ where go
197+ = buildClient
198+ (Proxy :: Proxy NamespacesUpdateResource)
199+ mempty
gogol-proximitybeacon/gogol-proximitybeacon.cabal+3−2
@@ -14,8 +14,7 @@ cabal-version: >= 1.10
1414extra-source-files: README.md
1515
1616description:
17− This API provides services to register, manage, index, and search
18− beacons.
17+ Registers, manages, indexes, and searches beacons.
1918 .
2019 /Warning:/ This is an experimental prototype/preview release which is still
2120 under exploratory development and not intended for public use, caveat emptor!
@@ -49,7 +48,9 @@ library
4948 , Network.Google.Resource.ProximityBeacon.Beacons.List
5049 , Network.Google.Resource.ProximityBeacon.Beacons.Register
5150 , Network.Google.Resource.ProximityBeacon.Beacons.Update
51+ , Network.Google.Resource.ProximityBeacon.GetEidparams
5252 , Network.Google.Resource.ProximityBeacon.Namespaces.List
53+ , Network.Google.Resource.ProximityBeacon.Namespaces.Update
5354
5455 other-modules:
5556 Network.Google.ProximityBeacon.Types.Product