packages feed

gogol-apps-reseller 0.3.0 → 0.4.0

raw patch · 22 files changed

+772/−138 lines, 22 filesdep ~gogol-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: gogol-core

API changes (from Hackage documentation)

+ Network.Google.AppsReseller: data ResellernotifyGetwatchdetailsResponse
+ Network.Google.AppsReseller: data ResellernotifyResource
+ Network.Google.AppsReseller: resellernotifyGetwatchdetailsResponse :: ResellernotifyGetwatchdetailsResponse
+ Network.Google.AppsReseller: resellernotifyResource :: ResellernotifyResource
+ Network.Google.AppsReseller: rgrServiceAccountEmailAddresses :: Lens' ResellernotifyGetwatchdetailsResponse [Text]
+ Network.Google.AppsReseller: rgrTopicName :: Lens' ResellernotifyGetwatchdetailsResponse (Maybe Text)
+ Network.Google.AppsReseller: rrTopicName :: Lens' ResellernotifyResource (Maybe Text)
+ Network.Google.AppsReseller: subSKUName :: Lens' Subscription (Maybe Text)
+ Network.Google.AppsReseller.Types: data ResellernotifyGetwatchdetailsResponse
+ Network.Google.AppsReseller.Types: data ResellernotifyResource
+ Network.Google.AppsReseller.Types: resellernotifyGetwatchdetailsResponse :: ResellernotifyGetwatchdetailsResponse
+ Network.Google.AppsReseller.Types: resellernotifyResource :: ResellernotifyResource
+ Network.Google.AppsReseller.Types: rgrServiceAccountEmailAddresses :: Lens' ResellernotifyGetwatchdetailsResponse [Text]
+ Network.Google.AppsReseller.Types: rgrTopicName :: Lens' ResellernotifyGetwatchdetailsResponse (Maybe Text)
+ Network.Google.AppsReseller.Types: rrTopicName :: Lens' ResellernotifyResource (Maybe Text)
+ Network.Google.AppsReseller.Types: subSKUName :: Lens' Subscription (Maybe Text)
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: data ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: instance Data.Data.Data Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails.ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: instance GHC.Classes.Eq Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails.ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: instance GHC.Generics.Generic Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails.ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: instance GHC.Show.Show Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails.ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: instance Network.Google.Types.GoogleRequest Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails.ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: resellernotifyGetwatchdetails :: ResellernotifyGetwatchdetails
+ Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails: type ResellernotifyGetwatchdetailsResource = "apps" :> "reseller" :> "v1" :> "resellernotify" :> "getwatchdetails" :> QueryParam "alt" AltJSON :> Get '[JSON] ResellernotifyGetwatchdetailsResponse
+ Network.Google.Resource.Reseller.Resellernotify.Register: data ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: instance Data.Data.Data Network.Google.Resource.Reseller.Resellernotify.Register.ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: instance GHC.Classes.Eq Network.Google.Resource.Reseller.Resellernotify.Register.ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: instance GHC.Generics.Generic Network.Google.Resource.Reseller.Resellernotify.Register.ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: instance GHC.Show.Show Network.Google.Resource.Reseller.Resellernotify.Register.ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: instance Network.Google.Types.GoogleRequest Network.Google.Resource.Reseller.Resellernotify.Register.ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: resellernotifyRegister :: ResellernotifyRegister
+ Network.Google.Resource.Reseller.Resellernotify.Register: rrServiceAccountEmailAddress :: Lens' ResellernotifyRegister (Maybe Text)
+ Network.Google.Resource.Reseller.Resellernotify.Register: type ResellernotifyRegisterResource = "apps" :> "reseller" :> "v1" :> "resellernotify" :> "register" :> QueryParam "serviceAccountEmailAddress" Text :> QueryParam "alt" AltJSON :> Post '[JSON] ResellernotifyResource
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: data ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: instance Data.Data.Data Network.Google.Resource.Reseller.Resellernotify.Unregister.ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: instance GHC.Classes.Eq Network.Google.Resource.Reseller.Resellernotify.Unregister.ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: instance GHC.Generics.Generic Network.Google.Resource.Reseller.Resellernotify.Unregister.ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: instance GHC.Show.Show Network.Google.Resource.Reseller.Resellernotify.Unregister.ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: instance Network.Google.Types.GoogleRequest Network.Google.Resource.Reseller.Resellernotify.Unregister.ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: resellernotifyUnregister :: ResellernotifyUnregister
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: ruServiceAccountEmailAddress :: Lens' ResellernotifyUnregister (Maybe Text)
+ Network.Google.Resource.Reseller.Resellernotify.Unregister: type ResellernotifyUnregisterResource = "apps" :> "reseller" :> "v1" :> "resellernotify" :> "unregister" :> QueryParam "serviceAccountEmailAddress" Text :> QueryParam "alt" AltJSON :> Post '[JSON] ResellernotifyResource
- Network.Google.AppsReseller: type AppsResellerAPI = CustomersInsertResource :<|> (CustomersPatchResource :<|> (CustomersGetResource :<|> (CustomersUpdateResource :<|> (SubscriptionsInsertResource :<|> (SubscriptionsListResource :<|> (SubscriptionsChangeRenewalSettingsResource :<|> (SubscriptionsGetResource :<|> (SubscriptionsActivateResource :<|> (SubscriptionsSuspendResource :<|> (SubscriptionsChangePlanResource :<|> (SubscriptionsChangeSeatsResource :<|> (SubscriptionsDeleteResource :<|> SubscriptionsStartPaidServiceResource))))))))))))
+ Network.Google.AppsReseller: type AppsResellerAPI = CustomersInsertResource :<|> CustomersPatchResource :<|> CustomersGetResource :<|> CustomersUpdateResource :<|> ResellernotifyGetwatchdetailsResource :<|> ResellernotifyRegisterResource :<|> ResellernotifyUnregisterResource :<|> SubscriptionsInsertResource :<|> SubscriptionsListResource :<|> SubscriptionsChangeRenewalSettingsResource :<|> SubscriptionsGetResource :<|> SubscriptionsActivateResource :<|> SubscriptionsSuspendResource :<|> SubscriptionsChangePlanResource :<|> SubscriptionsChangeSeatsResource :<|> SubscriptionsDeleteResource :<|> SubscriptionsStartPaidServiceResource
- Network.Google.Resource.Reseller.Customers.Get: type CustomersGetResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Customer)))))
+ Network.Google.Resource.Reseller.Customers.Get: type CustomersGetResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> QueryParam "alt" AltJSON :> Get '[JSON] Customer
- Network.Google.Resource.Reseller.Customers.Insert: type CustomersInsertResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (QueryParam "customerAuthToken" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Customer :> Post '[JSON] Customer))))))
+ Network.Google.Resource.Reseller.Customers.Insert: type CustomersInsertResource = "apps" :> "reseller" :> "v1" :> "customers" :> QueryParam "customerAuthToken" Text :> QueryParam "alt" AltJSON :> ReqBody '[JSON] Customer :> Post '[JSON] Customer
- Network.Google.Resource.Reseller.Customers.Patch: type CustomersPatchResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Customer :> Patch '[JSON] Customer))))))
+ Network.Google.Resource.Reseller.Customers.Patch: type CustomersPatchResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> QueryParam "alt" AltJSON :> ReqBody '[JSON] Customer :> Patch '[JSON] Customer
- Network.Google.Resource.Reseller.Customers.Update: type CustomersUpdateResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Customer :> Put '[JSON] Customer))))))
+ Network.Google.Resource.Reseller.Customers.Update: type CustomersUpdateResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> QueryParam "alt" AltJSON :> ReqBody '[JSON] Customer :> Put '[JSON] Customer
- Network.Google.Resource.Reseller.Subscriptions.Activate: type SubscriptionsActivateResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("activate" :> (QueryParam "alt" AltJSON :> Post '[JSON] Subscription))))))))
+ Network.Google.Resource.Reseller.Subscriptions.Activate: type SubscriptionsActivateResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> "activate" :> QueryParam "alt" AltJSON :> Post '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.ChangePlan: type SubscriptionsChangePlanResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changePlan" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ChangePlanRequest :> Post '[JSON] Subscription)))))))))
+ Network.Google.Resource.Reseller.Subscriptions.ChangePlan: type SubscriptionsChangePlanResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> "changePlan" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] ChangePlanRequest :> Post '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.ChangeRenewalSettings: type SubscriptionsChangeRenewalSettingsResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changeRenewalSettings" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RenewalSettings :> Post '[JSON] Subscription)))))))))
+ Network.Google.Resource.Reseller.Subscriptions.ChangeRenewalSettings: type SubscriptionsChangeRenewalSettingsResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> "changeRenewalSettings" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] RenewalSettings :> Post '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.ChangeSeats: type SubscriptionsChangeSeatsResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changeSeats" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Seats :> Post '[JSON] Subscription)))))))))
+ Network.Google.Resource.Reseller.Subscriptions.ChangeSeats: type SubscriptionsChangeSeatsResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> "changeSeats" :> QueryParam "alt" AltJSON :> ReqBody '[JSON] Seats :> Post '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.Delete: type SubscriptionsDeleteResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> (QueryParam "deletionType" SubscriptionsDeleteDeletionType :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))))
+ Network.Google.Resource.Reseller.Subscriptions.Delete: type SubscriptionsDeleteResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> QueryParam "deletionType" SubscriptionsDeleteDeletionType :> QueryParam "alt" AltJSON :> Delete '[JSON] ()
- Network.Google.Resource.Reseller.Subscriptions.Get: type SubscriptionsGetResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Subscription)))))))
+ Network.Google.Resource.Reseller.Subscriptions.Get: type SubscriptionsGetResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> QueryParam "alt" AltJSON :> Get '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.Insert: type SubscriptionsInsertResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (QueryParam "customerAuthToken" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription))))))))
+ Network.Google.Resource.Reseller.Subscriptions.Insert: type SubscriptionsInsertResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> QueryParam "customerAuthToken" Text :> QueryParam "alt" AltJSON :> ReqBody '[JSON] Subscription :> Post '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.List: type SubscriptionsListResource = "apps" :> ("reseller" :> ("v1" :> ("subscriptions" :> (QueryParam "customerNamePrefix" Text :> (QueryParam "customerId" Text :> (QueryParam "customerAuthToken" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Subscriptions)))))))))
+ Network.Google.Resource.Reseller.Subscriptions.List: type SubscriptionsListResource = "apps" :> "reseller" :> "v1" :> "subscriptions" :> QueryParam "customerNamePrefix" Text :> QueryParam "customerId" Text :> QueryParam "customerAuthToken" Text :> QueryParam "pageToken" Text :> QueryParam "maxResults" (Textual Word32) :> QueryParam "alt" AltJSON :> Get '[JSON] Subscriptions
- Network.Google.Resource.Reseller.Subscriptions.StartPaidService: type SubscriptionsStartPaidServiceResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("startPaidService" :> (QueryParam "alt" AltJSON :> Post '[JSON] Subscription))))))))
+ Network.Google.Resource.Reseller.Subscriptions.StartPaidService: type SubscriptionsStartPaidServiceResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> "startPaidService" :> QueryParam "alt" AltJSON :> Post '[JSON] Subscription
- Network.Google.Resource.Reseller.Subscriptions.Suspend: type SubscriptionsSuspendResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("suspend" :> (QueryParam "alt" AltJSON :> Post '[JSON] Subscription))))))))
+ Network.Google.Resource.Reseller.Subscriptions.Suspend: type SubscriptionsSuspendResource = "apps" :> "reseller" :> "v1" :> "customers" :> Capture "customerId" Text :> "subscriptions" :> Capture "subscriptionId" Text :> "suspend" :> QueryParam "alt" AltJSON :> Post '[JSON] Subscription

Files

gen/Network/Google/AppsReseller.hs view
@@ -42,6 +42,15 @@     -- ** reseller.customers.update     , module Network.Google.Resource.Reseller.Customers.Update +    -- ** reseller.resellernotify.getwatchdetails+    , module Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails++    -- ** reseller.resellernotify.register+    , module Network.Google.Resource.Reseller.Resellernotify.Register++    -- ** reseller.resellernotify.unregister+    , module Network.Google.Resource.Reseller.Resellernotify.Unregister+     -- ** reseller.subscriptions.activate     , module Network.Google.Resource.Reseller.Subscriptions.Activate @@ -80,6 +89,17 @@     , stsIsInTrial     , stsTrialEndTime +    -- ** ResellernotifyResource+    , ResellernotifyResource+    , resellernotifyResource+    , rrTopicName++    -- ** ResellernotifyGetwatchdetailsResponse+    , ResellernotifyGetwatchdetailsResponse+    , resellernotifyGetwatchdetailsResponse+    , rgrTopicName+    , rgrServiceAccountEmailAddresses+     -- ** Address     , Address     , address@@ -159,6 +179,7 @@     , subBillingMethod     , subStatus     , subTrialSettings+    , subSKUName     , subResourceUiURL     , subKind     , subSKUId@@ -186,6 +207,9 @@ import           Network.Google.Resource.Reseller.Customers.Insert import           Network.Google.Resource.Reseller.Customers.Patch import           Network.Google.Resource.Reseller.Customers.Update+import           Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails+import           Network.Google.Resource.Reseller.Resellernotify.Register+import           Network.Google.Resource.Reseller.Resellernotify.Unregister import           Network.Google.Resource.Reseller.Subscriptions.Activate import           Network.Google.Resource.Reseller.Subscriptions.ChangePlan import           Network.Google.Resource.Reseller.Subscriptions.ChangeRenewalSettings@@ -206,6 +230,9 @@      CustomersInsertResource :<|> CustomersPatchResource        :<|> CustomersGetResource        :<|> CustomersUpdateResource+       :<|> ResellernotifyGetwatchdetailsResource+       :<|> ResellernotifyRegisterResource+       :<|> ResellernotifyUnregisterResource        :<|> SubscriptionsInsertResource        :<|> SubscriptionsListResource        :<|> SubscriptionsChangeRenewalSettingsResource
gen/Network/Google/AppsReseller/Types.hs view
@@ -29,6 +29,17 @@     , stsIsInTrial     , stsTrialEndTime +    -- * ResellernotifyResource+    , ResellernotifyResource+    , resellernotifyResource+    , rrTopicName++    -- * ResellernotifyGetwatchdetailsResponse+    , ResellernotifyGetwatchdetailsResponse+    , resellernotifyGetwatchdetailsResponse+    , rgrTopicName+    , rgrServiceAccountEmailAddresses+     -- * Address     , Address     , address@@ -108,6 +119,7 @@     , subBillingMethod     , subStatus     , subTrialSettings+    , subSKUName     , subResourceUiURL     , subKind     , subSKUId
gen/Network/Google/AppsReseller/Types/Product.hs view
@@ -20,7 +20,8 @@ import           Network.Google.AppsReseller.Types.Sum import           Network.Google.Prelude --- | Trial Settings of the subscription.+-- | The G Suite annual commitment and flexible payment plans can be in a+-- 30-day free trial. For more information, see the API concepts. -- -- /See:/ 'subscriptionTrialSettings' smart constructor. data SubscriptionTrialSettings = SubscriptionTrialSettings'@@ -43,12 +44,14 @@     , _stsTrialEndTime = Nothing     } --- | Whether the subscription is in trial.+-- | Determines if a subscription\'s plan is in a 30-day free trial or not: -+-- true — The plan is in trial. - false — The plan is not in trial. stsIsInTrial :: Lens' SubscriptionTrialSettings (Maybe Bool) stsIsInTrial   = lens _stsIsInTrial (\ s a -> s{_stsIsInTrial = a}) --- | End time of the trial in milliseconds since Unix epoch.+-- | Date when the trial ends. The value is in milliseconds using the UNIX+-- Epoch format. See an example Epoch converter. stsTrialEndTime :: Lens' SubscriptionTrialSettings (Maybe Int64) stsTrialEndTime   = lens _stsTrialEndTime@@ -69,6 +72,95 @@                  [("isInTrial" .=) <$> _stsIsInTrial,                   ("trialEndTime" .=) <$> _stsTrialEndTime]) +-- | JSON template for resellernotify response.+--+-- /See:/ 'resellernotifyResource' smart constructor.+newtype ResellernotifyResource = ResellernotifyResource'+    { _rrTopicName :: Maybe Text+    } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ResellernotifyResource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rrTopicName'+resellernotifyResource+    :: ResellernotifyResource+resellernotifyResource =+    ResellernotifyResource'+    { _rrTopicName = Nothing+    }++-- | Topic name of the PubSub+rrTopicName :: Lens' ResellernotifyResource (Maybe Text)+rrTopicName+  = lens _rrTopicName (\ s a -> s{_rrTopicName = a})++instance FromJSON ResellernotifyResource where+        parseJSON+          = withObject "ResellernotifyResource"+              (\ o ->+                 ResellernotifyResource' <$> (o .:? "topicName"))++instance ToJSON ResellernotifyResource where+        toJSON ResellernotifyResource'{..}+          = object+              (catMaybes [("topicName" .=) <$> _rrTopicName])++-- | JSON template for resellernotify getwatchdetails response.+--+-- /See:/ 'resellernotifyGetwatchdetailsResponse' smart constructor.+data ResellernotifyGetwatchdetailsResponse = ResellernotifyGetwatchdetailsResponse'+    { _rgrTopicName                    :: !(Maybe Text)+    , _rgrServiceAccountEmailAddresses :: !(Maybe [Text])+    } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ResellernotifyGetwatchdetailsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rgrTopicName'+--+-- * 'rgrServiceAccountEmailAddresses'+resellernotifyGetwatchdetailsResponse+    :: ResellernotifyGetwatchdetailsResponse+resellernotifyGetwatchdetailsResponse =+    ResellernotifyGetwatchdetailsResponse'+    { _rgrTopicName = Nothing+    , _rgrServiceAccountEmailAddresses = Nothing+    }++-- | Topic name of the PubSub+rgrTopicName :: Lens' ResellernotifyGetwatchdetailsResponse (Maybe Text)+rgrTopicName+  = lens _rgrTopicName (\ s a -> s{_rgrTopicName = a})++-- | List of registered service accounts.+rgrServiceAccountEmailAddresses :: Lens' ResellernotifyGetwatchdetailsResponse [Text]+rgrServiceAccountEmailAddresses+  = lens _rgrServiceAccountEmailAddresses+      (\ s a -> s{_rgrServiceAccountEmailAddresses = a})+      . _Default+      . _Coerce++instance FromJSON+         ResellernotifyGetwatchdetailsResponse where+        parseJSON+          = withObject "ResellernotifyGetwatchdetailsResponse"+              (\ o ->+                 ResellernotifyGetwatchdetailsResponse' <$>+                   (o .:? "topicName") <*>+                     (o .:? "serviceAccountEmailAddresses" .!= mempty))++instance ToJSON ResellernotifyGetwatchdetailsResponse+         where+        toJSON ResellernotifyGetwatchdetailsResponse'{..}+          = object+              (catMaybes+                 [("topicName" .=) <$> _rgrTopicName,+                  ("serviceAccountEmailAddresses" .=) <$>+                    _rgrServiceAccountEmailAddresses])+ -- | JSON template for address of a customer. -- -- /See:/ 'address' smart constructor.@@ -124,56 +216,57 @@     , _aAddressLine3 = Nothing     } --- | Name of the organization.+-- | The company or company division name. This is required. aOrganizationName :: Lens' Address (Maybe Text) aOrganizationName   = lens _aOrganizationName       (\ s a -> s{_aOrganizationName = a}) --- | Identifies the resource as a customer address.+-- | Identifies the resource as a customer address. Value: customers#address aKind :: Lens' Address Text aKind = lens _aKind (\ s a -> s{_aKind = a}) --- | The postal code. This is in accordance with ---- http:\/\/portablecontacts.net\/draft-spec.html#address_element.+-- | A postalCode example is a postal zip code such as 94043. This property+-- is required when creating a new customer. aPostalCode :: Lens' Address (Maybe Text) aPostalCode   = lens _aPostalCode (\ s a -> s{_aPostalCode = a}) --- | Address line 1 of the address.+-- | A customer\'s physical address. An address can be composed of one to+-- three lines. The addressline2 and addressLine3 are optional. aAddressLine1 :: Lens' Address (Maybe Text) aAddressLine1   = lens _aAddressLine1       (\ s a -> s{_aAddressLine1 = a}) --- | Name of the locality. This is in accordance with ---- http:\/\/portablecontacts.net\/draft-spec.html#address_element.+-- | An example of a locality value is the city of San Francisco. aLocality :: Lens' Address (Maybe Text) aLocality   = lens _aLocality (\ s a -> s{_aLocality = a}) --- | Name of the contact person.+-- | The customer contact\'s name. This is required. aContactName :: Lens' Address (Maybe Text) aContactName   = lens _aContactName (\ s a -> s{_aContactName = a}) --- | Address line 2 of the address.+-- | Line 2 of the address. aAddressLine2 :: Lens' Address (Maybe Text) aAddressLine2   = lens _aAddressLine2       (\ s a -> s{_aAddressLine2 = a}) --- | ISO 3166 country code.+-- | For countryCode information, see the ISO 3166 country code elements.+-- Verify that country is approved for resale of Google products. This+-- property is required when creating a new customer. aCountryCode :: Lens' Address (Maybe Text) aCountryCode   = lens _aCountryCode (\ s a -> s{_aCountryCode = a}) --- | Name of the region. This is in accordance with ---- http:\/\/portablecontacts.net\/draft-spec.html#address_element.+-- | An example of a region value is CA for the state of California. aRegion :: Lens' Address (Maybe Text) aRegion = lens _aRegion (\ s a -> s{_aRegion = a}) --- | Address line 3 of the address.+-- | Line 3 of the address. aAddressLine3 :: Lens' Address (Maybe Text) aAddressLine3   = lens _aAddressLine3@@ -263,39 +356,52 @@   = lens _cCustomerDomainVerified       (\ s a -> s{_cCustomerDomainVerified = a}) --- | Ui url for customer resource.+-- | URL to customer\'s Admin console dashboard. The read-only URL is+-- generated by the API service. This is used if your client application+-- requires the customer to complete a task in the Admin console. cResourceUiURL :: Lens' Customer (Maybe Text) cResourceUiURL   = lens _cResourceUiURL       (\ s a -> s{_cResourceUiURL = a}) --- | Identifies the resource as a customer.+-- | Identifies the resource as a customer. Value: reseller#customer cKind :: Lens' Customer Text cKind = lens _cKind (\ s a -> s{_cKind = a}) --- | The id of the customer.+-- | This property will always be returned in a response as the unique+-- identifier generated by Google. In a request, this property can be+-- either the primary domain or the unique identifier generated by Google. cCustomerId :: Lens' Customer (Maybe Text) cCustomerId   = lens _cCustomerId (\ s a -> s{_cCustomerId = a}) --- | The alternate email of the customer.+-- | Like the \"Customer email\" in the reseller tools, this email is the+-- secondary contact used if something happens to the customer\'s service+-- such as service outage or a security issue. This property is required+-- when creating a new customer and should not use the same domain as+-- customerDomain. cAlternateEmail :: Lens' Customer (Maybe Text) cAlternateEmail   = lens _cAlternateEmail       (\ s a -> s{_cAlternateEmail = a}) --- | The domain name of the customer.+-- | The customer\'s primary domain name string. customerDomain is required+-- when creating a new customer. Do not include the www prefix in the+-- domain when adding a customer. cCustomerDomain :: Lens' Customer (Maybe Text) cCustomerDomain   = lens _cCustomerDomain       (\ s a -> s{_cCustomerDomain = a}) --- | The phone number of the customer.+-- | Customer contact phone number. This can be continuous numbers, with+-- spaces, etc. But it must be a real phone number and not, for example,+-- \"123\". See phone local format conventions. cPhoneNumber :: Lens' Customer (Maybe Text) cPhoneNumber   = lens _cPhoneNumber (\ s a -> s{_cPhoneNumber = a}) --- | The postal address of the customer.+-- | A customer\'s address information. Each field has a limit of 255+-- charcters. cPostalAddress :: Lens' Customer (Maybe Address) cPostalAddress   = lens _cPostalAddress@@ -364,28 +470,44 @@     , _cprSeats = Nothing     } --- | Identifies the resource as a subscription change plan request.+-- | Identifies the resource as a subscription change plan request. Value:+-- subscriptions#changePlanRequest cprKind :: Lens' ChangePlanRequest Text cprKind = lens _cprKind (\ s a -> s{_cprKind = a}) --- | External name of the deal code applicable for the subscription. This--- field is optional. If missing, the deal price plan won\'t be used.+-- | Google-issued code (100 char max) for discounted pricing on subscription+-- plans. Deal code must be included in changePlan request in order to+-- receive discounted rate. This property is optional. If a deal code has+-- already been added to a subscription, this property may be left empty+-- and the existing discounted rate will still apply (if not empty, only+-- provide the deal code that is already present on the subscription). If a+-- deal code has never been added to a subscription and this property is+-- left blank, regular pricing will apply. cprDealCode :: Lens' ChangePlanRequest (Maybe Text) cprDealCode   = lens _cprDealCode (\ s a -> s{_cprDealCode = a}) --- | Name of the plan to change to.+-- | The planName property is required. This is the name of the+-- subscription\'s payment plan. For more information about the Google+-- payment plans, see API concepts. Possible values are: -+-- ANNUAL_MONTHLY_PAY - The annual commitment plan with monthly payments -+-- ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments -+-- FLEXIBLE - The flexible plan - TRIAL - The 30-day free trial plan cprPlanName :: Lens' ChangePlanRequest (Maybe Text) cprPlanName   = lens _cprPlanName (\ s a -> s{_cprPlanName = a}) --- | Purchase order id for your order tracking purposes.+-- | This is an optional property. This purchase order (PO) information is+-- for resellers to use for their company tracking usage. If a+-- purchaseOrderId value is given it appears in the API responses and shows+-- up in the invoice. The property accepts up to 80 plain text characters. cprPurchaseOrderId :: Lens' ChangePlanRequest (Maybe Text) cprPurchaseOrderId   = lens _cprPurchaseOrderId       (\ s a -> s{_cprPurchaseOrderId = a}) --- | Number\/Limit of seats in the new plan.+-- | This is a required property. The seats property is the number of user+-- seat licenses. cprSeats :: Lens' ChangePlanRequest (Maybe Seats) cprSeats = lens _cprSeats (\ s a -> s{_cprSeats = a}) @@ -410,7 +532,8 @@                   ("purchaseOrderId" .=) <$> _cprPurchaseOrderId,                   ("seats" .=) <$> _cprSeats]) --- | Interval of the commitment if it is a commitment plan.+-- | In this version of the API, annual commitment plan\'s interval is one+-- year. -- -- /See:/ 'subscriptionPlanCommitmentInterval' smart constructor. data SubscriptionPlanCommitmentInterval = SubscriptionPlanCommitmentInterval'@@ -433,14 +556,16 @@     , _spciEndTime = Nothing     } --- | Start time of the commitment interval in milliseconds since Unix epoch.+-- | An annual commitment plan\'s interval\'s startTime in milliseconds using+-- UNIX Epoch format. See an example Epoch converter. spciStartTime :: Lens' SubscriptionPlanCommitmentInterval (Maybe Int64) spciStartTime   = lens _spciStartTime       (\ s a -> s{_spciStartTime = a})       . mapping _Coerce --- | End time of the commitment interval in milliseconds since Unix epoch.+-- | An annual commitment plan\'s interval\'s endTime in milliseconds using+-- the UNIX Epoch format. See an example Epoch converter. spciEndTime :: Lens' SubscriptionPlanCommitmentInterval (Maybe Int64) spciEndTime   = lens _spciEndTime (\ s a -> s{_spciEndTime = a}) .@@ -462,7 +587,10 @@                  [("startTime" .=) <$> _spciStartTime,                   ("endTime" .=) <$> _spciEndTime]) --- | Plan details of the subscription+-- | The plan property is required. In this version of the API, the G Suite+-- plans are the flexible plan, annual commitment plan, and the 30-day free+-- trial plan. For more information about the API\"s payment plans, see the+-- API concepts. -- -- /See:/ 'subscriptionPlan' smart constructor. data SubscriptionPlan = SubscriptionPlan'@@ -489,19 +617,32 @@     , _spPlanName = Nothing     } --- | Interval of the commitment if it is a commitment plan.+-- | In this version of the API, annual commitment plan\'s interval is one+-- year. spCommitmentInterval :: Lens' SubscriptionPlan (Maybe SubscriptionPlanCommitmentInterval) spCommitmentInterval   = lens _spCommitmentInterval       (\ s a -> s{_spCommitmentInterval = a}) --- | Whether the plan is a commitment plan or not.+-- | The isCommitmentPlan property\'s boolean value identifies the plan as an+-- annual commitment plan: - true — The subscription\'s plan is an annual+-- commitment plan. - false — The plan is not an annual commitment plan. spIsCommitmentPlan :: Lens' SubscriptionPlan (Maybe Bool) spIsCommitmentPlan   = lens _spIsCommitmentPlan       (\ s a -> s{_spIsCommitmentPlan = a}) --- | The plan name of this subscription\'s plan.+-- | The planName property is required. This is the name of the+-- subscription\'s plan. For more information about the Google payment+-- plans, see the API concepts. Possible values are: - ANNUAL_MONTHLY_PAY —+-- The annual commitment plan with monthly payments - ANNUAL_YEARLY_PAY —+-- The annual commitment plan with yearly payments - FLEXIBLE — The+-- flexible plan - TRIAL — The 30-day free trial plan. A subscription in+-- trial will be suspended after the 30th free day if no payment plan is+-- assigned. Calling changePlan will assign a payment plan to a trial but+-- will not activate the plan. A trial will automatically begin its+-- assigned payment plan after its 30th free day or immediately after+-- calling startPaidService. spPlanName :: Lens' SubscriptionPlan (Maybe Text) spPlanName   = lens _spPlanName (\ s a -> s{_spPlanName = a})@@ -557,7 +698,8 @@   = lens _sNextPageToken       (\ s a -> s{_sNextPageToken = a}) --- | Identifies the resource as a collection of subscriptions.+-- | Identifies the resource as a collection of subscriptions. Value:+-- reseller#subscriptions sKind :: Lens' Subscriptions Text sKind = lens _sKind (\ s a -> s{_sKind = a}) @@ -617,17 +759,42 @@     , _seaKind = "subscriptions#seats"     } --- | Number of seats to purchase. This is applicable only for a commitment--- plan.+-- | The numberOfSeats property holds the customer\'s number of user+-- licenses. How a user\'s licenses are managed depends on the+-- subscription\'s plan: - annual commitment plan (with monthly or yearly+-- pay) — For this plan, a reseller is invoiced on the number of user+-- licenses in the numberOfSeats property. This is the maximum number of+-- user licenses that a reseller\'s customer can create. The reseller can+-- add more licenses, but once set, the numberOfSeats can not be reduced+-- until renewal. The reseller is invoiced based on the numberOfSeats value+-- regardless of how many of these user licenses are provisioned users. -+-- flexible plan — For this plan, a reseller is invoiced on the actual+-- number of users which is capped by the maximumNumberOfSeats. The+-- numberOfSeats property is not used in the request or response for+-- flexible plan customers. - 30-day free trial plan — The numberOfSeats+-- property is not used in the request or response for an account in a+-- 30-day trial. seaNumberOfSeats :: Lens' Seats (Maybe Int32) seaNumberOfSeats   = lens _seaNumberOfSeats       (\ s a -> s{_seaNumberOfSeats = a})       . mapping _Coerce --- | Maximum number of seats that can be purchased. This needs to be provided--- only for a non-commitment plan. For a commitment plan it is decided by--- the contract.+-- | The maximumNumberOfSeats property is the maximum number of licenses that+-- the customer can purchase. This property applies to plans other than the+-- annual commitment plan. How a user\'s licenses are managed depends on+-- the subscription\'s payment plan: - annual commitment plan (with monthly+-- or yearly payments) — For this plan, a reseller is invoiced on the+-- number of user licenses in the numberOfSeats property. The+-- maximumNumberOfSeats property is a read-only property in the API\'s+-- response. - flexible plan — For this plan, a reseller is invoiced on the+-- actual number of users which is capped by the maximumNumberOfSeats. This+-- is the maximum number of user licenses a customer has for user license+-- provisioning. This quantity can be increased up to the maximum limit+-- defined in the reseller\'s contract. And the minimum quantity is the+-- current number of users in the customer account. - 30-day free trial+-- plan — A subscription in a 30-day free trial is restricted to maximum 10+-- seats. seaMaximumNumberOfSeats :: Lens' Seats (Maybe Int32) seaMaximumNumberOfSeats   = lens _seaMaximumNumberOfSeats@@ -643,7 +810,8 @@       (\ s a -> s{_seaLicensedNumberOfSeats = a})       . mapping _Coerce --- | Identifies the resource as a subscription change plan request.+-- | Identifies the resource as a subscription change plan request. Value:+-- subscriptions#seats seaKind :: Lens' Seats Text seaKind = lens _seaKind (\ s a -> s{_seaKind = a}) @@ -691,11 +859,14 @@     , _rsRenewalType = Nothing     } --- | Identifies the resource as a subscription renewal setting.+-- | Identifies the resource as a subscription renewal setting. Value:+-- subscriptions#renewalSettings rsKind :: Lens' RenewalSettings Text rsKind = lens _rsKind (\ s a -> s{_rsKind = a}) --- | Subscription renewal type.+-- | Renewal settings for the annual commitment plan. For more detailed+-- information, see renewal options in the administrator help center. When+-- renewing a subscription, the renewalType is a required property. rsRenewalType :: Lens' RenewalSettings (Maybe Text) rsRenewalType   = lens _rsRenewalType@@ -724,6 +895,7 @@     , _subBillingMethod     :: !(Maybe Text)     , _subStatus            :: !(Maybe Text)     , _subTrialSettings     :: !(Maybe SubscriptionTrialSettings)+    , _subSKUName           :: !(Maybe Text)     , _subResourceUiURL     :: !(Maybe Text)     , _subKind              :: !Text     , _subSKUId             :: !(Maybe Text)@@ -751,6 +923,8 @@ -- -- * 'subTrialSettings' --+-- * 'subSKUName'+-- -- * 'subResourceUiURL' -- -- * 'subKind'@@ -784,6 +958,7 @@     , _subBillingMethod = Nothing     , _subStatus = Nothing     , _subTrialSettings = Nothing+    , _subSKUName = Nothing     , _subResourceUiURL = Nothing     , _subKind = "reseller#subscription"     , _subSKUId = Nothing@@ -799,55 +974,79 @@     , _subSubscriptionId = Nothing     } --- | Creation time of this subscription in milliseconds since Unix epoch.+-- | The creationTime property is the date when subscription was created. It+-- is in milliseconds using the Epoch format. See an example Epoch+-- converter. subCreationTime :: Lens' Subscription (Maybe Int64) subCreationTime   = lens _subCreationTime       (\ s a -> s{_subCreationTime = a})       . mapping _Coerce --- | Billing method of this subscription.+-- | Read-only field that returns the current billing method for a+-- subscription. subBillingMethod :: Lens' Subscription (Maybe Text) subBillingMethod   = lens _subBillingMethod       (\ s a -> s{_subBillingMethod = a}) --- | Status of the subscription.+-- | This is an optional property. subStatus :: Lens' Subscription (Maybe Text) subStatus   = lens _subStatus (\ s a -> s{_subStatus = a}) --- | Trial Settings of the subscription.+-- | The G Suite annual commitment and flexible payment plans can be in a+-- 30-day free trial. For more information, see the API concepts. subTrialSettings :: Lens' Subscription (Maybe SubscriptionTrialSettings) subTrialSettings   = lens _subTrialSettings       (\ s a -> s{_subTrialSettings = a}) --- | Ui url for subscription resource.+-- | Read-only external display name for a product\'s SKU assigned to a+-- customer in the subscription. SKU names are subject to change at+-- Google\'s discretion. For products and SKUs available in this version of+-- the API, see Product and SKU IDs.+subSKUName :: Lens' Subscription (Maybe Text)+subSKUName+  = lens _subSKUName (\ s a -> s{_subSKUName = a})++-- | URL to customer\'s Subscriptions page in the Admin console. The+-- read-only URL is generated by the API service. This is used if your+-- client application requires the customer to complete a task using the+-- Subscriptions page in the Admin console. subResourceUiURL :: Lens' Subscription (Maybe Text) subResourceUiURL   = lens _subResourceUiURL       (\ s a -> s{_subResourceUiURL = a}) --- | Identifies the resource as a Subscription.+-- | Identifies the resource as a Subscription. Value: reseller#subscription subKind :: Lens' Subscription Text subKind = lens _subKind (\ s a -> s{_subKind = a}) --- | Name of the sku for which this subscription is purchased.+-- | A required property. The skuId is a unique system identifier for a+-- product\'s SKU assigned to a customer in the subscription. For products+-- and SKUs available in this version of the API, see Product and SKU IDs. subSKUId :: Lens' Subscription (Maybe Text) subSKUId = lens _subSKUId (\ s a -> s{_subSKUId = a}) --- | Plan details of the subscription+-- | The plan property is required. In this version of the API, the G Suite+-- plans are the flexible plan, annual commitment plan, and the 30-day free+-- trial plan. For more information about the API\"s payment plans, see the+-- API concepts. subPlan :: Lens' Subscription (Maybe SubscriptionPlan) subPlan = lens _subPlan (\ s a -> s{_subPlan = a}) --- | External name of the deal, if this subscription was provisioned under--- one. Otherwise this field will be empty.+-- | Google-issued code (100 char max) for discounted pricing on subscription+-- plans. Deal code must be included in insert requests in order to receive+-- discounted rate. This property is optional, regular pricing applies if+-- left empty. subDealCode :: Lens' Subscription (Maybe Text) subDealCode   = lens _subDealCode (\ s a -> s{_subDealCode = a}) --- | The id of the customer to whom the subscription belongs.+-- | This property will always be returned in a response as the unique+-- identifier generated by Google. In a request, this property can be+-- either the primary domain or the unique identifier generated by Google. subCustomerId :: Lens' Subscription (Maybe Text) subCustomerId   = lens _subCustomerId@@ -864,7 +1063,7 @@ -- many concurrent, overlapping suspension reasons. A subscription\'s -- STATUS is SUSPENDED until all pending suspensions are removed. Possible -- options include: - PENDING_TOS_ACCEPTANCE - The customer has not logged--- in and accepted the Google Apps Resold Terms of Services. -+-- in and accepted the G Suite Resold Terms of Services. - -- RENEWAL_WITH_TYPE_CANCEL - The customer\'s commitment ended and their -- service was cancelled at the end of their term. - RESELLER_INITIATED - A -- manual suspension invoked by a Reseller. - TRIAL_ENDED - The customer\'s@@ -877,29 +1076,39 @@       . _Default       . _Coerce --- | Transfer related information for the subscription.+-- | Read-only transfer related information for the subscription. For more+-- information, see retrieve transferable subscriptions for a customer. subTransferInfo :: Lens' Subscription (Maybe SubscriptionTransferInfo) subTransferInfo   = lens _subTransferInfo       (\ s a -> s{_subTransferInfo = a}) --- | Purchase order id for your order tracking purposes.+-- | This is an optional property. This purchase order (PO) information is+-- for resellers to use for their company tracking usage. If a+-- purchaseOrderId value is given it appears in the API responses and shows+-- up in the invoice. The property accepts up to 80 plain text characters. subPurchaseOrderId :: Lens' Subscription (Maybe Text) subPurchaseOrderId   = lens _subPurchaseOrderId       (\ s a -> s{_subPurchaseOrderId = a}) --- | Number\/Limit of seats in the new plan.+-- | This is a required property. The number and limit of user seat licenses+-- in the plan. subSeats :: Lens' Subscription (Maybe Seats) subSeats = lens _subSeats (\ s a -> s{_subSeats = a}) --- | Renewal settings of the subscription.+-- | Renewal settings for the annual commitment plan. For more detailed+-- information, see renewal options in the administrator help center. subRenewalSettings :: Lens' Subscription (Maybe RenewalSettings) subRenewalSettings   = lens _subRenewalSettings       (\ s a -> s{_subRenewalSettings = a}) --- | The id of the subscription.+-- | The subscriptionId is the subscription identifier and is unique for each+-- customer. This is a required property. Since a subscriptionId changes+-- when a subscription is updated, we recommend not using this ID as a key+-- for persistent data. Use the subscriptionId as described in retrieve all+-- reseller subscriptions. subSubscriptionId :: Lens' Subscription (Maybe Text) subSubscriptionId   = lens _subSubscriptionId@@ -913,6 +1122,7 @@                    (o .:? "creationTime") <*> (o .:? "billingMethod")                      <*> (o .:? "status")                      <*> (o .:? "trialSettings")+                     <*> (o .:? "skuName")                      <*> (o .:? "resourceUiUrl")                      <*> (o .:? "kind" .!= "reseller#subscription")                      <*> (o .:? "skuId")@@ -935,6 +1145,7 @@                   ("billingMethod" .=) <$> _subBillingMethod,                   ("status" .=) <$> _subStatus,                   ("trialSettings" .=) <$> _subTrialSettings,+                  ("skuName" .=) <$> _subSKUName,                   ("resourceUiUrl" .=) <$> _subResourceUiURL,                   Just ("kind" .= _subKind),                   ("skuId" .=) <$> _subSKUId, ("plan" .=) <$> _subPlan,@@ -948,7 +1159,8 @@                   ("renewalSettings" .=) <$> _subRenewalSettings,                   ("subscriptionId" .=) <$> _subSubscriptionId]) --- | Transfer related information for the subscription.+-- | Read-only transfer related information for the subscription. For more+-- information, see retrieve transferable subscriptions for a customer. -- -- /See:/ 'subscriptionTransferInfo' smart constructor. data SubscriptionTransferInfo = SubscriptionTransferInfo'@@ -971,13 +1183,18 @@     , _stiMinimumTransferableSeats = Nothing     } --- | Time when transfer token or intent to transfer will expire.+-- | The time when transfer token or intent to transfer will expire. The time+-- is in milliseconds using UNIX Epoch format. stiTransferabilityExpirationTime :: Lens' SubscriptionTransferInfo (Maybe Int64) stiTransferabilityExpirationTime   = lens _stiTransferabilityExpirationTime       (\ s a -> s{_stiTransferabilityExpirationTime = a})       . mapping _Coerce +-- | When inserting a subscription, this is the minimum number of seats+-- listed in the transfer order for this product. For example, if the+-- customer has 20 users, the reseller cannot place a transfer order of 15+-- seats. The minimum is 20 seats. stiMinimumTransferableSeats :: Lens' SubscriptionTransferInfo (Maybe Int32) stiMinimumTransferableSeats   = lens _stiMinimumTransferableSeats
gen/Network/Google/AppsReseller/Types/Sum.hs view
@@ -16,22 +16,44 @@ -- module Network.Google.AppsReseller.Types.Sum where -import           Network.Google.Prelude+import           Network.Google.Prelude hiding (Bytes) --- | Whether the subscription is to be fully cancelled or downgraded+-- | The deletionType query string enables the cancellation, downgrade, or+-- suspension of a subscription. data SubscriptionsDeleteDeletionType     = Cancel       -- ^ @cancel@-      -- Cancels the subscription immediately+      -- Cancels the subscription immediately. This does not apply to a G Suite+      -- subscription.     | Downgrade       -- ^ @downgrade@-      -- Downgrades a Google Apps for Business subscription to Google Apps+      -- Downgrades a G Suite subscription to a Google Apps Free edition+      -- subscription only if the customer was initially subscribed to a Google+      -- Apps Free edition (also known as the Standard edition). Once downgraded,+      -- the customer no longer has access to the previous G Suite subscription+      -- and is no longer managed by the reseller. A G Suite subscription\'s+      -- downgrade cannot be invoked if an active or suspended Google Drive or+      -- Google Vault subscription is present. The Google Drive or Google Vault+      -- subscription must be cancelled before the G Suite subscription\'s+      -- downgrade is invoked. The downgrade deletionType does not apply to other+      -- products or G Suite SKUs.     | Suspend       -- ^ @suspend@-      -- Suspends the subscriptions for 4 days before cancelling it+      -- (DEPRECATED) The G Suite account is suspended for four days and then+      -- cancelled. Once suspended, an administrator has access to the suspended+      -- account, but the account users can not access their services. A+      -- suspension can be lifted, using the reseller tools. A G Suite+      -- subscription\'s suspension can not be invoked if an active or suspended+      -- Google Drive or Google Vault subscription is present. The Google Drive+      -- or Google Vault subscription must be cancelled before the G Suite+      -- subscription\'s suspension is invoked.     | TransferToDirect       -- ^ @transfer_to_direct@-      -- Transfers a subscription directly to Google+      -- Transfers a subscription directly to Google.  The customer is+      -- immediately transferred to a direct billing relationship with Google and+      -- is given a short amount of time with no service interruption. The+      -- customer can then choose to set up billing directly with Google by using+      -- a credit card, or they can transfer to another reseller.       deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)  instance Hashable SubscriptionsDeleteDeletionType
gen/Network/Google/Resource/Reseller/Customers/Get.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Gets a customer resource if one exists and is owned by the reseller.+-- Get a customer account. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.customers.get@. module Network.Google.Resource.Reseller.Customers.Get@@ -49,7 +49,7 @@              Capture "customerId" Text :>                QueryParam "alt" AltJSON :> Get '[JSON] Customer --- | Gets a customer resource if one exists and is owned by the reseller.+-- | Get a customer account. -- -- /See:/ 'customersGet' smart constructor. newtype CustomersGet = CustomersGet'@@ -69,7 +69,10 @@     { _cgCustomerId = pCgCustomerId_     } --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. cgCustomerId :: Lens' CustomersGet Text cgCustomerId   = lens _cgCustomerId (\ s a -> s{_cgCustomerId = a})
gen/Network/Google/Resource/Reseller/Customers/Insert.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a customer resource if one does not already exist.+-- Order a new customer\'s account. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.customers.insert@. module Network.Google.Resource.Reseller.Customers.Insert@@ -51,7 +51,7 @@                QueryParam "alt" AltJSON :>                  ReqBody '[JSON] Customer :> Post '[JSON] Customer --- | Creates a customer resource if one does not already exist.+-- | Order a new customer\'s account. -- -- /See:/ 'customersInsert' smart constructor. data CustomersInsert = CustomersInsert'@@ -80,9 +80,12 @@ ciPayload   = lens _ciPayload (\ s a -> s{_ciPayload = a}) --- | An auth token needed for inserting a customer for which domain already--- exists. Can be generated at https:\/\/admin.google.com\/TransferToken.--- Optional.+-- | The customerAuthToken query string is required when creating a resold+-- account that transfers a direct customer\'s subscription or transfers+-- another reseller customer\'s subscription to your reseller management.+-- This is a hexadecimal authentication token needed to complete the+-- subscription transfer. For more information, see the administrator help+-- center. ciCustomerAuthToken :: Lens' CustomersInsert (Maybe Text) ciCustomerAuthToken   = lens _ciCustomerAuthToken
gen/Network/Google/Resource/Reseller/Customers/Patch.hs view
@@ -20,8 +20,8 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Update a customer resource if one it exists and is owned by the--- reseller. This method supports patch semantics.+-- Update a customer account\'s settings. This method supports patch+-- semantics. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.customers.patch@. module Network.Google.Resource.Reseller.Customers.Patch@@ -52,8 +52,8 @@                QueryParam "alt" AltJSON :>                  ReqBody '[JSON] Customer :> Patch '[JSON] Customer --- | Update a customer resource if one it exists and is owned by the--- reseller. This method supports patch semantics.+-- | Update a customer account\'s settings. This method supports patch+-- semantics. -- -- /See:/ 'customersPatch' smart constructor. data CustomersPatch = CustomersPatch'@@ -83,7 +83,10 @@ cpPayload   = lens _cpPayload (\ s a -> s{_cpPayload = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. cpCustomerId :: Lens' CustomersPatch Text cpCustomerId   = lens _cpCustomerId (\ s a -> s{_cpCustomerId = a})
gen/Network/Google/Resource/Reseller/Customers/Update.hs view
@@ -20,8 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Update a customer resource if one it exists and is owned by the--- reseller.+-- Update a customer account\'s settings. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.customers.update@. module Network.Google.Resource.Reseller.Customers.Update@@ -52,8 +51,7 @@                QueryParam "alt" AltJSON :>                  ReqBody '[JSON] Customer :> Put '[JSON] Customer --- | Update a customer resource if one it exists and is owned by the--- reseller.+-- | Update a customer account\'s settings. -- -- /See:/ 'customersUpdate' smart constructor. data CustomersUpdate = CustomersUpdate'@@ -83,7 +81,10 @@ cuPayload   = lens _cuPayload (\ s a -> s{_cuPayload = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. cuCustomerId :: Lens' CustomersUpdate Text cuCustomerId   = lens _cuCustomerId (\ s a -> s{_cuCustomerId = a})
+ gen/Network/Google/Resource/Reseller/Resellernotify/Getwatchdetails.hs view
@@ -0,0 +1,77 @@+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE FlexibleInstances  #-}+{-# LANGUAGE NoImplicitPrelude  #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}+{-# LANGUAGE TypeOperators      #-}++{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds      #-}+{-# OPTIONS_GHC -fno-warn-unused-imports    #-}++-- |+-- Module      : Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails+-- Copyright   : (c) 2015-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns all the details of the watch corresponding to the reseller.+--+-- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.resellernotify.getwatchdetails@.+module Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails+    (+    -- * REST Resource+      ResellernotifyGetwatchdetailsResource++    -- * Creating a Request+    , resellernotifyGetwatchdetails+    , ResellernotifyGetwatchdetails++    ) where++import           Network.Google.AppsReseller.Types+import           Network.Google.Prelude++-- | A resource alias for @reseller.resellernotify.getwatchdetails@ method which the+-- 'ResellernotifyGetwatchdetails' request conforms to.+type ResellernotifyGetwatchdetailsResource =+     "apps" :>+       "reseller" :>+         "v1" :>+           "resellernotify" :>+             "getwatchdetails" :>+               QueryParam "alt" AltJSON :>+                 Get '[JSON] ResellernotifyGetwatchdetailsResponse++-- | Returns all the details of the watch corresponding to the reseller.+--+-- /See:/ 'resellernotifyGetwatchdetails' smart constructor.+data ResellernotifyGetwatchdetails =+    ResellernotifyGetwatchdetails'+    deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ResellernotifyGetwatchdetails' with the minimum fields required to make a request.+--+resellernotifyGetwatchdetails+    :: ResellernotifyGetwatchdetails+resellernotifyGetwatchdetails = ResellernotifyGetwatchdetails'++instance GoogleRequest ResellernotifyGetwatchdetails+         where+        type Rs ResellernotifyGetwatchdetails =+             ResellernotifyGetwatchdetailsResponse+        type Scopes ResellernotifyGetwatchdetails =+             '["https://www.googleapis.com/auth/apps.order",+               "https://www.googleapis.com/auth/apps.order.readonly"]+        requestClient ResellernotifyGetwatchdetails'{}+          = go (Just AltJSON) appsResellerService+          where go+                  = buildClient+                      (Proxy ::+                         Proxy ResellernotifyGetwatchdetailsResource)+                      mempty
+ gen/Network/Google/Resource/Reseller/Resellernotify/Register.hs view
@@ -0,0 +1,90 @@+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE FlexibleInstances  #-}+{-# LANGUAGE NoImplicitPrelude  #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}+{-# LANGUAGE TypeOperators      #-}++{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds      #-}+{-# OPTIONS_GHC -fno-warn-unused-imports    #-}++-- |+-- Module      : Network.Google.Resource.Reseller.Resellernotify.Register+-- Copyright   : (c) 2015-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Registers a Reseller for receiving notifications.+--+-- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.resellernotify.register@.+module Network.Google.Resource.Reseller.Resellernotify.Register+    (+    -- * REST Resource+      ResellernotifyRegisterResource++    -- * Creating a Request+    , resellernotifyRegister+    , ResellernotifyRegister++    -- * Request Lenses+    , rrServiceAccountEmailAddress+    ) where++import           Network.Google.AppsReseller.Types+import           Network.Google.Prelude++-- | A resource alias for @reseller.resellernotify.register@ method which the+-- 'ResellernotifyRegister' request conforms to.+type ResellernotifyRegisterResource =+     "apps" :>+       "reseller" :>+         "v1" :>+           "resellernotify" :>+             "register" :>+               QueryParam "serviceAccountEmailAddress" Text :>+                 QueryParam "alt" AltJSON :>+                   Post '[JSON] ResellernotifyResource++-- | Registers a Reseller for receiving notifications.+--+-- /See:/ 'resellernotifyRegister' smart constructor.+newtype ResellernotifyRegister = ResellernotifyRegister'+    { _rrServiceAccountEmailAddress :: Maybe Text+    } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ResellernotifyRegister' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rrServiceAccountEmailAddress'+resellernotifyRegister+    :: ResellernotifyRegister+resellernotifyRegister =+    ResellernotifyRegister'+    { _rrServiceAccountEmailAddress = Nothing+    }++-- | The service account which will own the created Cloud-PubSub topic.+rrServiceAccountEmailAddress :: Lens' ResellernotifyRegister (Maybe Text)+rrServiceAccountEmailAddress+  = lens _rrServiceAccountEmailAddress+      (\ s a -> s{_rrServiceAccountEmailAddress = a})++instance GoogleRequest ResellernotifyRegister where+        type Rs ResellernotifyRegister =+             ResellernotifyResource+        type Scopes ResellernotifyRegister =+             '["https://www.googleapis.com/auth/apps.order"]+        requestClient ResellernotifyRegister'{..}+          = go _rrServiceAccountEmailAddress (Just AltJSON)+              appsResellerService+          where go+                  = buildClient+                      (Proxy :: Proxy ResellernotifyRegisterResource)+                      mempty
+ gen/Network/Google/Resource/Reseller/Resellernotify/Unregister.hs view
@@ -0,0 +1,90 @@+{-# LANGUAGE DataKinds          #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE FlexibleInstances  #-}+{-# LANGUAGE NoImplicitPrelude  #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}+{-# LANGUAGE TypeOperators      #-}++{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds      #-}+{-# OPTIONS_GHC -fno-warn-unused-imports    #-}++-- |+-- Module      : Network.Google.Resource.Reseller.Resellernotify.Unregister+-- Copyright   : (c) 2015-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Unregisters a Reseller for receiving notifications.+--+-- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.resellernotify.unregister@.+module Network.Google.Resource.Reseller.Resellernotify.Unregister+    (+    -- * REST Resource+      ResellernotifyUnregisterResource++    -- * Creating a Request+    , resellernotifyUnregister+    , ResellernotifyUnregister++    -- * Request Lenses+    , ruServiceAccountEmailAddress+    ) where++import           Network.Google.AppsReseller.Types+import           Network.Google.Prelude++-- | A resource alias for @reseller.resellernotify.unregister@ method which the+-- 'ResellernotifyUnregister' request conforms to.+type ResellernotifyUnregisterResource =+     "apps" :>+       "reseller" :>+         "v1" :>+           "resellernotify" :>+             "unregister" :>+               QueryParam "serviceAccountEmailAddress" Text :>+                 QueryParam "alt" AltJSON :>+                   Post '[JSON] ResellernotifyResource++-- | Unregisters a Reseller for receiving notifications.+--+-- /See:/ 'resellernotifyUnregister' smart constructor.+newtype ResellernotifyUnregister = ResellernotifyUnregister'+    { _ruServiceAccountEmailAddress :: Maybe Text+    } deriving (Eq,Show,Data,Typeable,Generic)++-- | Creates a value of 'ResellernotifyUnregister' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ruServiceAccountEmailAddress'+resellernotifyUnregister+    :: ResellernotifyUnregister+resellernotifyUnregister =+    ResellernotifyUnregister'+    { _ruServiceAccountEmailAddress = Nothing+    }++-- | The service account which owns the Cloud-PubSub topic.+ruServiceAccountEmailAddress :: Lens' ResellernotifyUnregister (Maybe Text)+ruServiceAccountEmailAddress+  = lens _ruServiceAccountEmailAddress+      (\ s a -> s{_ruServiceAccountEmailAddress = a})++instance GoogleRequest ResellernotifyUnregister where+        type Rs ResellernotifyUnregister =+             ResellernotifyResource+        type Scopes ResellernotifyUnregister =+             '["https://www.googleapis.com/auth/apps.order"]+        requestClient ResellernotifyUnregister'{..}+          = go _ruServiceAccountEmailAddress (Just AltJSON)+              appsResellerService+          where go+                  = buildClient+                      (Proxy :: Proxy ResellernotifyUnregisterResource)+                      mempty
gen/Network/Google/Resource/Reseller/Subscriptions/Activate.hs view
@@ -78,12 +78,19 @@     , _saSubscriptionId = pSaSubscriptionId_     } --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. saCustomerId :: Lens' SubscriptionsActivate Text saCustomerId   = lens _saCustomerId (\ s a -> s{_saCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. saSubscriptionId :: Lens' SubscriptionsActivate Text saSubscriptionId   = lens _saSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/ChangePlan.hs view
@@ -20,7 +20,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Changes the plan of a subscription+-- Update a subscription plan. Use this method to update a plan for a+-- 30-day trial or a flexible plan subscription to an annual commitment+-- plan with monthly or yearly payments. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.changePlan@. module Network.Google.Resource.Reseller.Subscriptions.ChangePlan@@ -56,7 +58,9 @@                        ReqBody '[JSON] ChangePlanRequest :>                          Post '[JSON] Subscription --- | Changes the plan of a subscription+-- | Update a subscription plan. Use this method to update a plan for a+-- 30-day trial or a flexible plan subscription to an annual commitment+-- plan with monthly or yearly payments. -- -- /See:/ 'subscriptionsChangePlan' smart constructor. data SubscriptionsChangePlan = SubscriptionsChangePlan'@@ -91,13 +95,20 @@ scpPayload   = lens _scpPayload (\ s a -> s{_scpPayload = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. scpCustomerId :: Lens' SubscriptionsChangePlan Text scpCustomerId   = lens _scpCustomerId       (\ s a -> s{_scpCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. scpSubscriptionId :: Lens' SubscriptionsChangePlan Text scpSubscriptionId   = lens _scpSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/ChangeRenewalSettings.hs view
@@ -20,7 +20,8 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Changes the renewal settings of a subscription+-- Update a user license\'s renewal settings. This is applicable for+-- accounts with annual commitment plans only. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.changeRenewalSettings@. module Network.Google.Resource.Reseller.Subscriptions.ChangeRenewalSettings@@ -56,7 +57,8 @@                        ReqBody '[JSON] RenewalSettings :>                          Post '[JSON] Subscription --- | Changes the renewal settings of a subscription+-- | Update a user license\'s renewal settings. This is applicable for+-- accounts with annual commitment plans only. -- -- /See:/ 'subscriptionsChangeRenewalSettings' smart constructor. data SubscriptionsChangeRenewalSettings = SubscriptionsChangeRenewalSettings'@@ -91,13 +93,20 @@ scrsPayload   = lens _scrsPayload (\ s a -> s{_scrsPayload = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. scrsCustomerId :: Lens' SubscriptionsChangeRenewalSettings Text scrsCustomerId   = lens _scrsCustomerId       (\ s a -> s{_scrsCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. scrsSubscriptionId :: Lens' SubscriptionsChangeRenewalSettings Text scrsSubscriptionId   = lens _scrsSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/ChangeSeats.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Changes the seats configuration of a subscription+-- Update a subscription\'s user license settings. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.changeSeats@. module Network.Google.Resource.Reseller.Subscriptions.ChangeSeats@@ -55,7 +55,7 @@                      QueryParam "alt" AltJSON :>                        ReqBody '[JSON] Seats :> Post '[JSON] Subscription --- | Changes the seats configuration of a subscription+-- | Update a subscription\'s user license settings. -- -- /See:/ 'subscriptionsChangeSeats' smart constructor. data SubscriptionsChangeSeats = SubscriptionsChangeSeats'@@ -90,13 +90,20 @@ scsPayload   = lens _scsPayload (\ s a -> s{_scsPayload = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. scsCustomerId :: Lens' SubscriptionsChangeSeats Text scsCustomerId   = lens _scsCustomerId       (\ s a -> s{_scsCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. scsSubscriptionId :: Lens' SubscriptionsChangeSeats Text scsSubscriptionId   = lens _scsSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/Delete.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Cancels\/Downgrades a subscription.+-- Cancel, suspend or transfer a subscription to direct. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.delete@. module Network.Google.Resource.Reseller.Subscriptions.Delete@@ -55,7 +55,7 @@                      SubscriptionsDeleteDeletionType                      :> QueryParam "alt" AltJSON :> Delete '[JSON] () --- | Cancels\/Downgrades a subscription.+-- | Cancel, suspend or transfer a subscription to direct. -- -- /See:/ 'subscriptionsDelete' smart constructor. data SubscriptionsDelete = SubscriptionsDelete'@@ -85,18 +85,26 @@     , _sdSubscriptionId = pSdSubscriptionId_     } --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. sdCustomerId :: Lens' SubscriptionsDelete Text sdCustomerId   = lens _sdCustomerId (\ s a -> s{_sdCustomerId = a}) --- | Whether the subscription is to be fully cancelled or downgraded+-- | The deletionType query string enables the cancellation, downgrade, or+-- suspension of a subscription. sdDeletionType :: Lens' SubscriptionsDelete SubscriptionsDeleteDeletionType sdDeletionType   = lens _sdDeletionType       (\ s a -> s{_sdDeletionType = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. sdSubscriptionId :: Lens' SubscriptionsDelete Text sdSubscriptionId   = lens _sdSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/Get.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Gets a subscription of the customer.+-- Get a specific subscription. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.get@. module Network.Google.Resource.Reseller.Subscriptions.Get@@ -52,7 +52,7 @@                  Capture "subscriptionId" Text :>                    QueryParam "alt" AltJSON :> Get '[JSON] Subscription --- | Gets a subscription of the customer.+-- | Get a specific subscription. -- -- /See:/ 'subscriptionsGet' smart constructor. data SubscriptionsGet = SubscriptionsGet'@@ -77,12 +77,19 @@     , _sgSubscriptionId = pSgSubscriptionId_     } --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. sgCustomerId :: Lens' SubscriptionsGet Text sgCustomerId   = lens _sgCustomerId (\ s a -> s{_sgCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. sgSubscriptionId :: Lens' SubscriptionsGet Text sgSubscriptionId   = lens _sgSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/Insert.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates\/Transfers a subscription for the customer.+-- Create or transfer a subscription. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.insert@. module Network.Google.Resource.Reseller.Subscriptions.Insert@@ -55,7 +55,7 @@                      ReqBody '[JSON] Subscription :>                        Post '[JSON] Subscription --- | Creates\/Transfers a subscription for the customer.+-- | Create or transfer a subscription. -- -- /See:/ 'subscriptionsInsert' smart constructor. data SubscriptionsInsert = SubscriptionsInsert'@@ -89,14 +89,20 @@ siPayload   = lens _siPayload (\ s a -> s{_siPayload = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. siCustomerId :: Lens' SubscriptionsInsert Text siCustomerId   = lens _siCustomerId (\ s a -> s{_siCustomerId = a}) --- | An auth token needed for transferring a subscription. Can be generated--- at https:\/\/www.google.com\/a\/cpanel\/customer-domain\/TransferToken.--- Optional.+-- | The customerAuthToken query string is required when creating a resold+-- account that transfers a direct customer\'s subscription or transfers+-- another reseller customer\'s subscription to your reseller management.+-- This is a hexadecimal authentication token needed to complete the+-- subscription transfer. For more information, see the administrator help+-- center. siCustomerAuthToken :: Lens' SubscriptionsInsert (Maybe Text) siCustomerAuthToken   = lens _siCustomerAuthToken
gen/Network/Google/Resource/Reseller/Subscriptions/List.hs view
@@ -20,8 +20,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Lists subscriptions of a reseller, optionally filtered by a customer--- name prefix.+-- List of subscriptions managed by the reseller. The list can be all+-- subscriptions, all of a customer\'s subscriptions, or all of a+-- customer\'s transferable subscriptions. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.list@. module Network.Google.Resource.Reseller.Subscriptions.List@@ -58,8 +59,9 @@                      QueryParam "maxResults" (Textual Word32) :>                        QueryParam "alt" AltJSON :> Get '[JSON] Subscriptions --- | Lists subscriptions of a reseller, optionally filtered by a customer--- name prefix.+-- | List of subscriptions managed by the reseller. The list can be all+-- subscriptions, all of a customer\'s subscriptions, or all of a+-- customer\'s transferable subscriptions. -- -- /See:/ 'subscriptionsList' smart constructor. data SubscriptionsList = SubscriptionsList'@@ -94,21 +96,32 @@     , _slMaxResults = Nothing     } --- | Prefix of the customer\'s domain name by which the subscriptions should--- be filtered. Optional+-- | When retrieving all of your subscriptions and filtering for specific+-- customers, you can enter a prefix for a customer name. Using an example+-- customer group that includes exam.com, example20.com and example.com: -+-- exa -- Returns all customer names that start with \'exa\' which could+-- include exam.com, example20.com, and example.com. A name prefix is+-- similar to using a regular expression\'s asterisk, exa*. - example --+-- Returns example20.com and example.com. slCustomerNamePrefix :: Lens' SubscriptionsList (Maybe Text) slCustomerNamePrefix   = lens _slCustomerNamePrefix       (\ s a -> s{_slCustomerNamePrefix = a}) --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. slCustomerId :: Lens' SubscriptionsList (Maybe Text) slCustomerId   = lens _slCustomerId (\ s a -> s{_slCustomerId = a}) --- | An auth token needed if the customer is not a resold customer of this--- reseller. Can be generated at--- https:\/\/www.google.com\/a\/cpanel\/customer-domain\/TransferToken.Optional.+-- | The customerAuthToken query string is required when creating a resold+-- account that transfers a direct customer\'s subscription or transfers+-- another reseller customer\'s subscription to your reseller management.+-- This is a hexadecimal authentication token needed to complete the+-- subscription transfer. For more information, see the administrator help+-- center. slCustomerAuthToken :: Lens' SubscriptionsList (Maybe Text) slCustomerAuthToken   = lens _slCustomerAuthToken@@ -119,7 +132,9 @@ slPageToken   = lens _slPageToken (\ s a -> s{_slPageToken = a}) --- | Maximum number of results to return+-- | When retrieving a large list, the maxResults is the maximum number of+-- results per page. The nextPageToken value takes you to the next page.+-- The default is 20. slMaxResults :: Lens' SubscriptionsList (Maybe Word32) slMaxResults   = lens _slMaxResults (\ s a -> s{_slMaxResults = a})
gen/Network/Google/Resource/Reseller/Subscriptions/StartPaidService.hs view
@@ -20,7 +20,8 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Starts paid service of a trial subscription+-- Immediately move a 30-day free trial subscription to a paid service+-- subscription. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.startPaidService@. module Network.Google.Resource.Reseller.Subscriptions.StartPaidService@@ -53,7 +54,8 @@                    "startPaidService" :>                      QueryParam "alt" AltJSON :> Post '[JSON] Subscription --- | Starts paid service of a trial subscription+-- | Immediately move a 30-day free trial subscription to a paid service+-- subscription. -- -- /See:/ 'subscriptionsStartPaidService' smart constructor. data SubscriptionsStartPaidService = SubscriptionsStartPaidService'@@ -78,13 +80,20 @@     , _sspsSubscriptionId = pSspsSubscriptionId_     } --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. sspsCustomerId :: Lens' SubscriptionsStartPaidService Text sspsCustomerId   = lens _sspsCustomerId       (\ s a -> s{_sspsCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. sspsSubscriptionId :: Lens' SubscriptionsStartPaidService Text sspsSubscriptionId   = lens _sspsSubscriptionId
gen/Network/Google/Resource/Reseller/Subscriptions/Suspend.hs view
@@ -20,7 +20,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Suspends an active subscription+-- Suspends an active subscription. -- -- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference> for @reseller.subscriptions.suspend@. module Network.Google.Resource.Reseller.Subscriptions.Suspend@@ -53,7 +53,7 @@                    "suspend" :>                      QueryParam "alt" AltJSON :> Post '[JSON] Subscription --- | Suspends an active subscription+-- | Suspends an active subscription. -- -- /See:/ 'subscriptionsSuspend' smart constructor. data SubscriptionsSuspend = SubscriptionsSuspend'@@ -78,12 +78,19 @@     , _ssSubscriptionId = pSsSubscriptionId_     } --- | Id of the Customer+-- | Either the customer\'s primary domain name or the customer\'s unique+-- identifier. If using the domain name, we do not recommend using a+-- customerId as a key for persistent data. If the domain name for a+-- customerId is changed, the Google system automatically updates. ssCustomerId :: Lens' SubscriptionsSuspend Text ssCustomerId   = lens _ssCustomerId (\ s a -> s{_ssCustomerId = a}) --- | Id of the subscription, which is unique for a customer+-- | This is a required property. The subscriptionId is the subscription+-- identifier and is unique for each customer. Since a subscriptionId+-- changes when a subscription is updated, we recommend to not use this ID+-- as a key for persistent data. And the subscriptionId can be found using+-- the retrieve all reseller subscriptions method. ssSubscriptionId :: Lens' SubscriptionsSuspend Text ssSubscriptionId   = lens _ssSubscriptionId
gogol-apps-reseller.cabal view
@@ -1,5 +1,5 @@ name:                  gogol-apps-reseller-version:               0.3.0+version:               0.4.0 synopsis:              Google Enterprise Apps Reseller SDK. homepage:              https://github.com/brendanhay/gogol bug-reports:           https://github.com/brendanhay/gogol/issues@@ -43,6 +43,9 @@         , Network.Google.Resource.Reseller.Customers.Insert         , Network.Google.Resource.Reseller.Customers.Patch         , Network.Google.Resource.Reseller.Customers.Update+        , Network.Google.Resource.Reseller.Resellernotify.Getwatchdetails+        , Network.Google.Resource.Reseller.Resellernotify.Register+        , Network.Google.Resource.Reseller.Resellernotify.Unregister         , Network.Google.Resource.Reseller.Subscriptions.Activate         , Network.Google.Resource.Reseller.Subscriptions.ChangePlan         , Network.Google.Resource.Reseller.Subscriptions.ChangeRenewalSettings@@ -59,5 +62,5 @@         , Network.Google.AppsReseller.Types.Sum      build-depends:-          gogol-core == 0.3.0.*+          gogol-core == 0.4.0.*         , base       >= 4.7 && < 5