on develop help sign in
Regenerating all services
commitf1fd1712b95c23349ea0d4b36bcd277c991f8ce6 authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 19 Oct 2015, 13:29 (11 years ago) parent11768b9
221 files changed+13729−7825
gogol-admin-directory/gen/Network/Google/Directory.hs+236−2 gogol-admin-directory/gen/Network/Google/Directory/Types.hs+154 gogol-admin-directory/gen/Network/Google/Directory/Types/Product.hs+1150 gogol-admin-directory/gen/Network/Google/Resource/Directory/Customers/Get.hs+81 gogol-admin-directory/gen/Network/Google/Resource/Directory/Customers/Patch.hs+94 gogol-admin-directory/gen/Network/Google/Resource/Directory/Customers/Update.hs+95 gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/Delete.hs+96 gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/Get.hs+96 gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/Insert.hs+96 gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/List.hs+95 gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/Delete.hs+94 gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/Get.hs+94 gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/Insert.hs+94 gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/List.hs+81 gogol-admin-directory/gen/Network/Google/Resource/Directory/Privileges/List.hs+83 gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Delete.hs+96 gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Get.hs+97 gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Insert.hs+96 gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/List.hs+135 gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Delete.hs+93 gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Get.hs+93 gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Insert.hs+94 gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/List.hs+105 gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Patch.hs+105 gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Update.hs+105 gogol-admin-directory/gogol-admin-directory.cabal+22 gogol-adsense/gen/Network/Google/AdSense.hs+1 gogol-adsense/gen/Network/Google/AdSense/Types.hs+1 gogol-adsense/gen/Network/Google/AdSense/Types/Product.hs+18−7 gogol-books/gen/Network/Google/Books.hs+64−2 gogol-books/gen/Network/Google/Books/Types.hs+52 gogol-books/gen/Network/Google/Books/Types/Product.hs+427−6 gogol-books/gen/Network/Google/Books/Types/Sum.hs+30 gogol-books/gen/Network/Google/Resource/Books/Dictionary/ListOfflineMetadata.hs+2−2 gogol-books/gen/Network/Google/Resource/Books/Notification/Get.hs+106 gogol-books/gen/Network/Google/Resource/Books/Personalizedstream/Get.hs+109 gogol-books/gogol-books.cabal+2 gogol-classroom/gen/Network/Google/Classroom/Types/Product.hs+11−13 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Aliases/Create.hs+5−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Aliases/Delete.hs+5−6 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Aliases/List.hs+8−14 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Create.hs+10−10 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Delete.hs+5−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Get.hs+5−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/List.hs+9−14 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Patch.hs+11−10 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Create.hs+18−15 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Delete.hs+7−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Get.hs+7−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/List.hs+6−10 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/Create.hs+15−12 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/Delete.hs+9−12 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/Get.hs+7−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/List.hs+6−10 gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Update.hs+7−8 gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Accept.hs+10−6 gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Create.hs+10−12 gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Delete.hs+4−6 gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Get.hs+4−6 gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/List.hs+5−10 gogol-classroom/gen/Network/Google/Resource/Classroom/UserProFiles/Get.hs+2−2 gogol-cloudtrace/LICENSE+367 gogol-cloudtrace/Makefile+1 gogol-cloudtrace/README.md+28 gogol-cloudtrace/Setup.hs+2 gogol-cloudtrace/gen/Network/Google/CloudTrace.hs+98 gogol-cloudtrace/gen/Network/Google/CloudTrace/Types.hs+76 gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Product.hs+331 gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Sum.hs+19 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/GetDiscovery.hs+206 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/PatchTraces.hs+188 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/Get.hs+182 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/List.hs+262 gogol-cloudtrace/gogol-cloudtrace.cabal+50 gogol-cloudtrace/src/.gitkeep gogol-compute/gen/Network/Google/Compute.hs+153 gogol-compute/gen/Network/Google/Compute/Types.hs+73 gogol-compute/gen/Network/Google/Compute/Types/Product.hs+876−116 gogol-compute/gen/Network/Google/Compute/Types/Sum.hs+25−5 gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Delete.hs+97 gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Get.hs+98 gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Insert.hs+98 gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/List.hs+135 gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Patch.hs+113 gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Update.hs+113 gogol-compute/gen/Network/Google/Resource/Compute/Images/List.hs+14−4 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/AbandonInstances.hs+20−10 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/AggregatedList.hs+2−4 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Delete.hs+6−4 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/DeleteInstances.hs+16−10 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Get.hs+4−4 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Insert.hs+16−5 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/List.hs+1−1 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/ListManagedInstances.hs+13−3 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/RecreateInstances.hs+14−6 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Resize.hs+12−6 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/SetInstanceTemplate.hs+2−2 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/SetTargetPools.hs+14−8 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/AddInstances.hs+7−5 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/AggregatedList.hs+2−2 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Delete.hs+5−3 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Get.hs+1−1 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Insert.hs+1−1 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/List.hs+1−1 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/ListInstances.hs+3−7 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/RemoveInstances.hs+5−3 gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/SetNamedPorts.hs+3−3 gogol-compute/gen/Network/Google/Resource/Compute/Instances/AggregatedList.hs+2−1 gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Delete.hs+96 gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Get.hs+97 gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Insert.hs+98 gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/List.hs+134 gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Delete.hs+98 gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Get.hs+98 gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Insert.hs+99 gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/List.hs+136 gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetSSLCertificates.hs+118 gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetURLMap.hs+114 gogol-compute/gogol-compute.cabal+16 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids.hs+4 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types.hs+4 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Product.hs+15−3 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+180 gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch.hs+1 gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types.hs+1 gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types/Product.hs+24−10 gogol-drive/gen/Network/Google/Drive/Types/Product.hs+1−2 gogol-identity-toolkit/gen/Network/Google/IdentityToolkit.hs+1 gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types.hs+1 gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs+12 gogol-logging/gen/Network/Google/Logging.hs+1−245 gogol-logging/gen/Network/Google/Logging/Types.hs+2−171 gogol-logging/gen/Network/Google/Logging/Types/Product.hs−1295 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Indexes/List.hs−282 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/List.hs−218 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Create.hs−205 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Delete.hs−207 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Get.hs−203 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/List.hs−190 gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Update.hs−218 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Delete.hs−185 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Entries/Write.hs−212 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/List.hs−235 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Create.hs−201 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Delete.hs−201 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Get.hs−198 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/List.hs−180 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Update.hs−212 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Create.hs−186 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Delete.hs−185 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Get.hs−183 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/List.hs−171 gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Update.hs−198 gogol-logging/gogol-logging.cabal+1−21 gogol-plus-domains/gen/Network/Google/PlusDomains.hs+33 gogol-plus-domains/gen/Network/Google/PlusDomains/Types.hs+33 gogol-plus-domains/gen/Network/Google/PlusDomains/Types/Product.hs+323−27 gogol-plus/gen/Network/Google/Plus.hs+33 gogol-plus/gen/Network/Google/Plus/Types.hs+33 gogol-plus/gen/Network/Google/Plus/Types/Product.hs+323−27 gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+86−81 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Acknowledge.hs+12−10 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Create.hs+6−6 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Delete.hs+10−8 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/GetIAMPolicy.hs+5−5 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/List.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyPushConfig.hs+10−8 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Pull.hs+4−4 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/SetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs+2−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Delete.hs+12−10 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/GetIAMPolicy.hs+5−5 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/List.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Publish.hs+6−6 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/SetIAMPolicy.hs+3−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Subscriptions/List.hs+4−3 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/TestIAMPermissions.hs+2−1 gogol-sqladmin/gen/Network/Google/Resource/SQL/BackupRuns/Delete.hs+2−1 gogol-sqladmin/gen/Network/Google/Resource/SQL/Instances/Failover.hs+109 gogol-sqladmin/gen/Network/Google/SQLAdmin.hs+18 gogol-sqladmin/gen/Network/Google/SQLAdmin/Types.hs+13 gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs+125−8 gogol-sqladmin/gogol-sqladmin.cabal+1 gogol-storage/gen/Network/Google/Storage.hs+2 gogol-storage/gen/Network/Google/Storage/Types.hs+2 gogol-storage/gen/Network/Google/Storage/Types/Product.hs+27−5 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Create.hs−113 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Delete.hs−113 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Get.hs−112 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/List.hs−101 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Update.hs−140 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Create.hs−113 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Delete.hs−113 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Get.hs−112 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/List.hs−101 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Update.hs−140 gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Versions/Restore.hs+2−2 gogol-tagmanager/gen/Network/Google/TagManager.hs+2−62 gogol-tagmanager/gen/Network/Google/TagManager/Types.hs−10 gogol-tagmanager/gen/Network/Google/TagManager/Types/Product.hs+5−77 gogol-tagmanager/gen/Network/Google/TagManager/Types/Sum.hs+10−2 gogol-tagmanager/gogol-tagmanager.cabal−10 gogol-youtube-reporting/LICENSE+367 gogol-youtube-reporting/Makefile+1 gogol-youtube-reporting/README.md+28 gogol-youtube-reporting/Setup.hs+2 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Create.hs+180 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Delete.hs+178 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Get.hs+177 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/List.hs+195 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Reports/Get.hs+194 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Reports/List.hs+212 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Media/Download.hs+199 gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/ReportTypes/List.hs+198 gogol-youtube-reporting/gen/Network/Google/YouTubeReporting.hs+131 gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types.hs+95 gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types/Product.hs+440 gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types/Sum.hs+19 gogol-youtube-reporting/gogol-youtube-reporting.cabal+54 gogol-youtube-reporting/src/.gitkeep gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+2−1
gogol-admin-directory/gen/Network/Google/Directory.hs+236−2
@@ -52,6 +52,39 @@ module Network.Google.Directory
5252 -- ** DirectoryChromeosDevicesUpdate
5353 , module Network.Google.Resource.Directory.ChromeosDevices.Update
5454
55+ -- ** DirectoryCustomersGet
56+ , module Network.Google.Resource.Directory.Customers.Get
57+
58+ -- ** DirectoryCustomersPatch
59+ , module Network.Google.Resource.Directory.Customers.Patch
60+
61+ -- ** DirectoryCustomersUpdate
62+ , module Network.Google.Resource.Directory.Customers.Update
63+
64+ -- ** DirectoryDomainAliasesDelete
65+ , module Network.Google.Resource.Directory.DomainAliases.Delete
66+
67+ -- ** DirectoryDomainAliasesGet
68+ , module Network.Google.Resource.Directory.DomainAliases.Get
69+
70+ -- ** DirectoryDomainAliasesInsert
71+ , module Network.Google.Resource.Directory.DomainAliases.Insert
72+
73+ -- ** DirectoryDomainAliasesList
74+ , module Network.Google.Resource.Directory.DomainAliases.List
75+
76+ -- ** DirectoryDomainsDelete
77+ , module Network.Google.Resource.Directory.Domains.Delete
78+
79+ -- ** DirectoryDomainsGet
80+ , module Network.Google.Resource.Directory.Domains.Get
81+
82+ -- ** DirectoryDomainsInsert
83+ , module Network.Google.Resource.Directory.Domains.Insert
84+
85+ -- ** DirectoryDomainsList
86+ , module Network.Google.Resource.Directory.Domains.List
87+
5588 -- ** DirectoryGroupsAliasesDelete
5689 , module Network.Google.Resource.Directory.Groups.Aliases.Delete
5790
@@ -142,6 +175,39 @@ module Network.Google.Directory
142175 -- ** DirectoryOrgUnitsUpdate
143176 , module Network.Google.Resource.Directory.OrgUnits.Update
144177
178+ -- ** DirectoryPrivilegesList
179+ , module Network.Google.Resource.Directory.Privileges.List
180+
181+ -- ** DirectoryRoleAssignmentsDelete
182+ , module Network.Google.Resource.Directory.RoleAssignments.Delete
183+
184+ -- ** DirectoryRoleAssignmentsGet
185+ , module Network.Google.Resource.Directory.RoleAssignments.Get
186+
187+ -- ** DirectoryRoleAssignmentsInsert
188+ , module Network.Google.Resource.Directory.RoleAssignments.Insert
189+
190+ -- ** DirectoryRoleAssignmentsList
191+ , module Network.Google.Resource.Directory.RoleAssignments.List
192+
193+ -- ** DirectoryRolesDelete
194+ , module Network.Google.Resource.Directory.Roles.Delete
195+
196+ -- ** DirectoryRolesGet
197+ , module Network.Google.Resource.Directory.Roles.Get
198+
199+ -- ** DirectoryRolesInsert
200+ , module Network.Google.Resource.Directory.Roles.Insert
201+
202+ -- ** DirectoryRolesList
203+ , module Network.Google.Resource.Directory.Roles.List
204+
205+ -- ** DirectoryRolesPatch
206+ , module Network.Google.Resource.Directory.Roles.Patch
207+
208+ -- ** DirectoryRolesUpdate
209+ , module Network.Google.Resource.Directory.Roles.Update
210+
145211 -- ** DirectorySchemasDelete
146212 , module Network.Google.Resource.Directory.Schemas.Delete
147213
@@ -266,6 +332,13 @@ module Network.Google.Directory
266332 -- ** UsersListEvent
267333 , UsersListEvent (..)
268334
335+ -- ** Privileges
336+ , Privileges
337+ , privileges
338+ , pEtag
339+ , pKind
340+ , pItems
341+
269342 -- ** Groups
270343 , Groups
271344 , groups
@@ -277,9 +350,36 @@ module Network.Google.Directory
277350 -- ** UsersAliasesListEvent
278351 , UsersAliasesListEvent (..)
279352
353+ -- ** RoleAssignments
354+ , RoleAssignments
355+ , roleAssignments
356+ , raEtag
357+ , raNextPageToken
358+ , raKind
359+ , raItems
360+
361+ -- ** Privilege
362+ , Privilege
363+ , privilege
364+ , priEtag
365+ , priIsOuScopable
366+ , priKind
367+ , priServiceName
368+ , priServiceId
369+ , priPrivilegeName
370+ , priChildPrivileges
371+
280372 -- ** UsersAliasesWatchEvent
281373 , UsersAliasesWatchEvent (..)
282374
375+ -- ** Roles
376+ , Roles
377+ , roles
378+ , rEtag
379+ , rNextPageToken
380+ , rKind
381+ , rItems
382+
283383 -- ** UsersWatchEvent
284384 , UsersWatchEvent (..)
285385
@@ -300,6 +400,30 @@ module Network.Google.Directory
300400 , uaCustomType
301401 , uaSourceIsStructured
302402
403+ -- ** CustomerPostalAddress
404+ , CustomerPostalAddress
405+ , customerPostalAddress
406+ , cpaOrganizationName
407+ , cpaPostalCode
408+ , cpaAddressLine1
409+ , cpaLocality
410+ , cpaContactName
411+ , cpaAddressLine2
412+ , cpaCountryCode
413+ , cpaRegion
414+ , cpaAddressLine3
415+
416+ -- ** RoleAssignment
417+ , RoleAssignment
418+ , roleAssignment
419+ , rolEtag
420+ , rolScopeType
421+ , rolKind
422+ , rolAssignedTo
423+ , rolRoleId
424+ , rolRoleAssignmentId
425+ , rolOrgUnitId
426+
303427 -- ** Group
304428 , Group
305429 , group'
@@ -422,6 +546,13 @@ module Network.Google.Directory
422546 , userCustomSchemas
423547 , ucsAddtional
424548
549+ -- ** DomainAliases
550+ , DomainAliases
551+ , domainAliases
552+ , daEtag
553+ , daKind
554+ , daDomainAliases
555+
425556 -- ** Aliases
426557 , Aliases
427558 , aliases
@@ -492,6 +623,16 @@ module Network.Google.Directory
492623 , codruiEmail
493624 , codruiType
494625
626+ -- ** DomainAlias
627+ , DomainAlias
628+ , domainAlias
629+ , dCreationTime
630+ , dEtag
631+ , dKind
632+ , dVerified
633+ , dDomainAliasName
634+ , dParentDomainName
635+
495636 -- ** Alias
496637 , Alias
497638 , alias
@@ -555,6 +696,31 @@ module Network.Google.Directory
555696 -- ** MobileDevicesListProjection
556697 , MobileDevicesListProjection (..)
557698
699+ -- ** Role
700+ , Role
701+ , role
702+ , rrEtag
703+ , rrKind
704+ , rrRoleName
705+ , rrIsSystemRole
706+ , rrRoleId
707+ , rrRoleDescription
708+ , rrIsSuperAdminRole
709+ , rrRolePrivileges
710+
711+ -- ** Customer
712+ , Customer
713+ , customer
714+ , cusEtag
715+ , cusKind
716+ , cusAlternateEmail
717+ , cusCustomerDomain
718+ , cusPhoneNumber
719+ , cusLanguage
720+ , cusId
721+ , cusCustomerCreationTime
722+ , cusPostalAddress
723+
558724 -- ** MobileDeviceApplicationsItem
559725 , MobileDeviceApplicationsItem
560726 , mobileDeviceApplicationsItem
@@ -718,6 +884,17 @@ module Network.Google.Directory
718884 , userCustomProperties
719885 , ucpAddtional
720886
887+ -- ** Domains
888+ , Domains
889+ , domains
890+ , domCreationTime
891+ , domEtag
892+ , domKind
893+ , domDomainAliases
894+ , domVerified
895+ , domDomainName
896+ , domIsPrimary
897+
721898 -- ** ChromeosDevicesListOrderBy
722899 , ChromeosDevicesListOrderBy (..)
723900
@@ -787,6 +964,19 @@ module Network.Google.Directory
787964
788965 -- ** UsersGetViewType
789966 , UsersGetViewType (..)
967+
968+ -- ** RoleRolePrivilegesItem
969+ , RoleRolePrivilegesItem
970+ , roleRolePrivilegesItem
971+ , rrpiServiceId
972+ , rrpiPrivilegeName
973+
974+ -- ** Domains2
975+ , Domains2
976+ , domains2
977+ , ddEtag
978+ , ddKind
979+ , ddDomains
790980 ) where
791981
792982import Network.Google.Directory.Types
@@ -799,6 +989,17 @@ import Network.Google.Resource.Directory.ChromeosDevices.Get
799989import Network.Google.Resource.Directory.ChromeosDevices.List
800990import Network.Google.Resource.Directory.ChromeosDevices.Patch
801991import Network.Google.Resource.Directory.ChromeosDevices.Update
992+import Network.Google.Resource.Directory.Customers.Get
993+import Network.Google.Resource.Directory.Customers.Patch
994+import Network.Google.Resource.Directory.Customers.Update
995+import Network.Google.Resource.Directory.DomainAliases.Delete
996+import Network.Google.Resource.Directory.DomainAliases.Get
997+import Network.Google.Resource.Directory.DomainAliases.Insert
998+import Network.Google.Resource.Directory.DomainAliases.List
999+import Network.Google.Resource.Directory.Domains.Delete
1000+import Network.Google.Resource.Directory.Domains.Get
1001+import Network.Google.Resource.Directory.Domains.Insert
1002+import Network.Google.Resource.Directory.Domains.List
8021003import Network.Google.Resource.Directory.Groups.Aliases.Delete
8031004import Network.Google.Resource.Directory.Groups.Aliases.Insert
8041005import Network.Google.Resource.Directory.Groups.Aliases.List
@@ -829,6 +1030,17 @@ import Network.Google.Resource.Directory.OrgUnits.Insert
8291030import Network.Google.Resource.Directory.OrgUnits.List
8301031import Network.Google.Resource.Directory.OrgUnits.Patch
8311032import Network.Google.Resource.Directory.OrgUnits.Update
1033+import Network.Google.Resource.Directory.Privileges.List
1034+import Network.Google.Resource.Directory.RoleAssignments.Delete
1035+import Network.Google.Resource.Directory.RoleAssignments.Get
1036+import Network.Google.Resource.Directory.RoleAssignments.Insert
1037+import Network.Google.Resource.Directory.RoleAssignments.List
1038+import Network.Google.Resource.Directory.Roles.Delete
1039+import Network.Google.Resource.Directory.Roles.Get
1040+import Network.Google.Resource.Directory.Roles.Insert
1041+import Network.Google.Resource.Directory.Roles.List
1042+import Network.Google.Resource.Directory.Roles.Patch
1043+import Network.Google.Resource.Directory.Roles.Update
8321044import Network.Google.Resource.Directory.Schemas.Delete
8331045import Network.Google.Resource.Directory.Schemas.Get
8341046import Network.Google.Resource.Directory.Schemas.Insert
@@ -865,8 +1077,9 @@ TODO
8651077
8661078-- | Represents the entirety of the methods and resources available for the Admin Directory API service.
8671079type DirectoryAPI =
868− GroupsAliasesInsertResource :<|>
869− GroupsAliasesListResource
1080+ PrivilegesListResource :<|>
1081+ GroupsAliasesInsertResource
1082+ :<|> GroupsAliasesListResource
8701083 :<|> GroupsAliasesDeleteResource
8711084 :<|> GroupsInsertResource
8721085 :<|> GroupsListResource
@@ -874,6 +1087,19 @@ type DirectoryAPI =
8741087 :<|> GroupsGetResource
8751088 :<|> GroupsDeleteResource
8761089 :<|> GroupsUpdateResource
1090+ :<|> RoleAssignmentsInsertResource
1091+ :<|> RoleAssignmentsListResource
1092+ :<|> RoleAssignmentsGetResource
1093+ :<|> RoleAssignmentsDeleteResource
1094+ :<|> RolesInsertResource
1095+ :<|> RolesListResource
1096+ :<|> RolesPatchResource
1097+ :<|> RolesGetResource
1098+ :<|> RolesDeleteResource
1099+ :<|> RolesUpdateResource
1100+ :<|> CustomersPatchResource
1101+ :<|> CustomersGetResource
1102+ :<|> CustomersUpdateResource
8771103 :<|> UsersAliasesInsertResource
8781104 :<|> UsersAliasesListResource
8791105 :<|> UsersAliasesDeleteResource
@@ -900,6 +1126,10 @@ type DirectoryAPI =
9001126 :<|> TokensListResource
9011127 :<|> TokensGetResource
9021128 :<|> TokensDeleteResource
1129+ :<|> DomainAliasesInsertResource
1130+ :<|> DomainAliasesListResource
1131+ :<|> DomainAliasesGetResource
1132+ :<|> DomainAliasesDeleteResource
9031133 :<|> ChannelsStopResource
9041134 :<|> MembersInsertResource
9051135 :<|> MembersListResource
@@ -920,6 +1150,10 @@ type DirectoryAPI =
9201150 :<|> VerificationCodesListResource
9211151 :<|> VerificationCodesGenerateResource
9221152 :<|> VerificationCodesInvalidateResource
1153+ :<|> DomainsInsertResource
1154+ :<|> DomainsListResource
1155+ :<|> DomainsGetResource
1156+ :<|> DomainsDeleteResource
9231157 :<|> NotificationsListResource
9241158 :<|> NotificationsPatchResource
9251159 :<|> NotificationsGetResource
gogol-admin-directory/gen/Network/Google/Directory/Types.hs+154
@@ -19,6 +19,7 @@ module Network.Google.Directory.Types
1919 directoryService
2020
2121 -- * OAuth Scopes
22+ , adminDirectoryRolemanagementReadonlyScope
2223 , adminDirectoryGroupReadonlyScope
2324 , adminDirectoryDeviceChromeosReadonlyScope
2425 , adminDirectoryDeviceChromeosScope
@@ -26,10 +27,15 @@ module Network.Google.Directory.Types
2627 , adminDirectoryGroupMemberReadonlyScope
2728 , adminDirectoryUserAliasScope
2829 , adminDirectoryDeviceMobileActionScope
30+ , adminDirectoryDomainReadonlyScope
2931 , adminDirectoryUserschemaScope
3032 , adminDirectoryUserschemaReadonlyScope
33+ , adminDirectoryDomainScope
34+ , adminDirectoryRolemanagementScope
3135 , adminDirectoryGroupScope
3236 , adminDirectoryOrgunitReadonlyScope
37+ , adminDirectoryCustomerScope
38+ , adminDirectoryCustomerReadonlyScope
3339 , adminDirectoryOrgunitScope
3440 , adminDirectoryUserReadonlyScope
3541 , adminDirectoryUserAliasReadonlyScope
@@ -74,6 +80,13 @@ module Network.Google.Directory.Types
7480 -- * UsersListEvent
7581 , UsersListEvent (..)
7682
83+ -- * Privileges
84+ , Privileges
85+ , privileges
86+ , pEtag
87+ , pKind
88+ , pItems
89+
7790 -- * Groups
7891 , Groups
7992 , groups
@@ -85,9 +98,36 @@ module Network.Google.Directory.Types
8598 -- * UsersAliasesListEvent
8699 , UsersAliasesListEvent (..)
87100
101+ -- * RoleAssignments
102+ , RoleAssignments
103+ , roleAssignments
104+ , raEtag
105+ , raNextPageToken
106+ , raKind
107+ , raItems
108+
109+ -- * Privilege
110+ , Privilege
111+ , privilege
112+ , priEtag
113+ , priIsOuScopable
114+ , priKind
115+ , priServiceName
116+ , priServiceId
117+ , priPrivilegeName
118+ , priChildPrivileges
119+
88120 -- * UsersAliasesWatchEvent
89121 , UsersAliasesWatchEvent (..)
90122
123+ -- * Roles
124+ , Roles
125+ , roles
126+ , rEtag
127+ , rNextPageToken
128+ , rKind
129+ , rItems
130+
91131 -- * UsersWatchEvent
92132 , UsersWatchEvent (..)
93133
@@ -108,6 +148,30 @@ module Network.Google.Directory.Types
108148 , uaCustomType
109149 , uaSourceIsStructured
110150
151+ -- * CustomerPostalAddress
152+ , CustomerPostalAddress
153+ , customerPostalAddress
154+ , cpaOrganizationName
155+ , cpaPostalCode
156+ , cpaAddressLine1
157+ , cpaLocality
158+ , cpaContactName
159+ , cpaAddressLine2
160+ , cpaCountryCode
161+ , cpaRegion
162+ , cpaAddressLine3
163+
164+ -- * RoleAssignment
165+ , RoleAssignment
166+ , roleAssignment
167+ , rolEtag
168+ , rolScopeType
169+ , rolKind
170+ , rolAssignedTo
171+ , rolRoleId
172+ , rolRoleAssignmentId
173+ , rolOrgUnitId
174+
111175 -- * Group
112176 , Group
113177 , group'
@@ -230,6 +294,13 @@ module Network.Google.Directory.Types
230294 , userCustomSchemas
231295 , ucsAddtional
232296
297+ -- * DomainAliases
298+ , DomainAliases
299+ , domainAliases
300+ , daEtag
301+ , daKind
302+ , daDomainAliases
303+
233304 -- * Aliases
234305 , Aliases
235306 , aliases
@@ -300,6 +371,16 @@ module Network.Google.Directory.Types
300371 , codruiEmail
301372 , codruiType
302373
374+ -- * DomainAlias
375+ , DomainAlias
376+ , domainAlias
377+ , dCreationTime
378+ , dEtag
379+ , dKind
380+ , dVerified
381+ , dDomainAliasName
382+ , dParentDomainName
383+
303384 -- * Alias
304385 , Alias
305386 , alias
@@ -363,6 +444,31 @@ module Network.Google.Directory.Types
363444 -- * MobileDevicesListProjection
364445 , MobileDevicesListProjection (..)
365446
447+ -- * Role
448+ , Role
449+ , role
450+ , rrEtag
451+ , rrKind
452+ , rrRoleName
453+ , rrIsSystemRole
454+ , rrRoleId
455+ , rrRoleDescription
456+ , rrIsSuperAdminRole
457+ , rrRolePrivileges
458+
459+ -- * Customer
460+ , Customer
461+ , customer
462+ , cusEtag
463+ , cusKind
464+ , cusAlternateEmail
465+ , cusCustomerDomain
466+ , cusPhoneNumber
467+ , cusLanguage
468+ , cusId
469+ , cusCustomerCreationTime
470+ , cusPostalAddress
471+
366472 -- * MobileDeviceApplicationsItem
367473 , MobileDeviceApplicationsItem
368474 , mobileDeviceApplicationsItem
@@ -526,6 +632,17 @@ module Network.Google.Directory.Types
526632 , userCustomProperties
527633 , ucpAddtional
528634
635+ -- * Domains
636+ , Domains
637+ , domains
638+ , domCreationTime
639+ , domEtag
640+ , domKind
641+ , domDomainAliases
642+ , domVerified
643+ , domDomainName
644+ , domIsPrimary
645+
529646 -- * ChromeosDevicesListOrderBy
530647 , ChromeosDevicesListOrderBy (..)
531648
@@ -595,6 +712,19 @@ module Network.Google.Directory.Types
595712
596713 -- * UsersGetViewType
597714 , UsersGetViewType (..)
715+
716+ -- * RoleRolePrivilegesItem
717+ , RoleRolePrivilegesItem
718+ , roleRolePrivilegesItem
719+ , rrpiServiceId
720+ , rrpiPrivilegeName
721+
722+ -- * Domains2
723+ , Domains2
724+ , domains2
725+ , ddEtag
726+ , ddKind
727+ , ddDomains
598728 ) where
599729
600730import Network.Google.Directory.Types.Product
@@ -608,6 +738,10 @@ directoryService
608738 "www.googleapis.com"
609739 "admin/directory/v1/"
610740
741+-- | View delegated admin roles for your domain
742+adminDirectoryRolemanagementReadonlyScope :: OAuthScope
743+adminDirectoryRolemanagementReadonlyScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
744+
611745-- | View groups on your domain
612746adminDirectoryGroupReadonlyScope :: OAuthScope
613747adminDirectoryGroupReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.readonly";
@@ -636,6 +770,10 @@ adminDirectoryUserAliasScope = "https://www.googleapis.com/auth/admin.directory.
636770adminDirectoryDeviceMobileActionScope :: OAuthScope
637771adminDirectoryDeviceMobileActionScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
638772
773+-- | View domains related to your customers
774+adminDirectoryDomainReadonlyScope :: OAuthScope
775+adminDirectoryDomainReadonlyScope = "https://www.googleapis.com/auth/admin.directory.domain.readonly";
776+
639777-- | View and manage the provisioning of user schemas on your domain
640778adminDirectoryUserschemaScope :: OAuthScope
641779adminDirectoryUserschemaScope = "https://www.googleapis.com/auth/admin.directory.userschema";
@@ -644,6 +782,14 @@ adminDirectoryUserschemaScope = "https://www.googleapis.com/auth/admin.directory
644782adminDirectoryUserschemaReadonlyScope :: OAuthScope
645783adminDirectoryUserschemaReadonlyScope = "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
646784
785+-- | View and manage the provisioning of domains for your customers
786+adminDirectoryDomainScope :: OAuthScope
787+adminDirectoryDomainScope = "https://www.googleapis.com/auth/admin.directory.domain";
788+
789+-- | Manage delegated admin roles for your domain
790+adminDirectoryRolemanagementScope :: OAuthScope
791+adminDirectoryRolemanagementScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement";
792+
647793-- | View and manage the provisioning of groups on your domain
648794adminDirectoryGroupScope :: OAuthScope
649795adminDirectoryGroupScope = "https://www.googleapis.com/auth/admin.directory.group";
@@ -652,6 +798,14 @@ adminDirectoryGroupScope = "https://www.googleapis.com/auth/admin.directory.grou
652798adminDirectoryOrgunitReadonlyScope :: OAuthScope
653799adminDirectoryOrgunitReadonlyScope = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
654800
801+-- | View and manage customer related information
802+adminDirectoryCustomerScope :: OAuthScope
803+adminDirectoryCustomerScope = "https://www.googleapis.com/auth/admin.directory.customer";
804+
805+-- | View customer related information
806+adminDirectoryCustomerReadonlyScope :: OAuthScope
807+adminDirectoryCustomerReadonlyScope = "https://www.googleapis.com/auth/admin.directory.customer.readonly";
808+
655809-- | View and manage organization units on your domain
656810adminDirectoryOrgunitScope :: OAuthScope
657811adminDirectoryOrgunitScope = "https://www.googleapis.com/auth/admin.directory.orgunit";
gogol-admin-directory/gen/Network/Google/Directory/Types/Product.hs+1150
@@ -297,6 +297,63 @@ instance ToJSON UserAbout where
297297 [("value" .=) <$> _uaValue,
298298 ("contentType" .=) <$> _uaContentType])
299299
300+-- | JSON response template for List privileges operation in Directory API.
301+--
302+-- /See:/ 'privileges' smart constructor.
303+data Privileges = Privileges
304+ { _pEtag :: !(Maybe Text)
305+ , _pKind :: !Text
306+ , _pItems :: !(Maybe [Privilege])
307+ } deriving (Eq,Show,Data,Typeable,Generic)
308+
309+-- | Creates a value of 'Privileges' with the minimum fields required to make a request.
310+--
311+-- Use one of the following lenses to modify other fields as desired:
312+--
313+-- * 'pEtag'
314+--
315+-- * 'pKind'
316+--
317+-- * 'pItems'
318+privileges
319+ :: Privileges
320+privileges =
321+ Privileges
322+ { _pEtag = Nothing
323+ , _pKind = "admin#directory#privileges"
324+ , _pItems = Nothing
325+ }
326+
327+-- | ETag of the resource.
328+pEtag :: Lens' Privileges (Maybe Text)
329+pEtag = lens _pEtag (\ s a -> s{_pEtag = a})
330+
331+-- | The type of the API resource. This is always admin#directory#privileges.
332+pKind :: Lens' Privileges Text
333+pKind = lens _pKind (\ s a -> s{_pKind = a})
334+
335+-- | A list of Privilege resources.
336+pItems :: Lens' Privileges [Privilege]
337+pItems
338+ = lens _pItems (\ s a -> s{_pItems = a}) . _Default .
339+ _Coerce
340+
341+instance FromJSON Privileges where
342+ parseJSON
343+ = withObject "Privileges"
344+ (\ o ->
345+ Privileges <$>
346+ (o .:? "etag") <*>
347+ (o .:? "kind" .!= "admin#directory#privileges")
348+ <*> (o .:? "items" .!= mempty))
349+
350+instance ToJSON Privileges where
351+ toJSON Privileges{..}
352+ = object
353+ (catMaybes
354+ [("etag" .=) <$> _pEtag, Just ("kind" .= _pKind),
355+ ("items" .=) <$> _pItems])
356+
300357-- | JSON response template for List Groups operation in Directory API.
301358--
302359-- /See:/ 'groups' smart constructor.
@@ -365,6 +422,250 @@ instance ToJSON Groups where
365422 ("nextPageToken" .=) <$> _gNextPageToken,
366423 Just ("kind" .= _gKind)])
367424
425+-- | JSON response template for List roleAssignments operation in Directory
426+-- API.
427+--
428+-- /See:/ 'roleAssignments' smart constructor.
429+data RoleAssignments = RoleAssignments
430+ { _raEtag :: !(Maybe Text)
431+ , _raNextPageToken :: !(Maybe Text)
432+ , _raKind :: !Text
433+ , _raItems :: !(Maybe [RoleAssignment])
434+ } deriving (Eq,Show,Data,Typeable,Generic)
435+
436+-- | Creates a value of 'RoleAssignments' with the minimum fields required to make a request.
437+--
438+-- Use one of the following lenses to modify other fields as desired:
439+--
440+-- * 'raEtag'
441+--
442+-- * 'raNextPageToken'
443+--
444+-- * 'raKind'
445+--
446+-- * 'raItems'
447+roleAssignments
448+ :: RoleAssignments
449+roleAssignments =
450+ RoleAssignments
451+ { _raEtag = Nothing
452+ , _raNextPageToken = Nothing
453+ , _raKind = "admin#directory#roleAssignments"
454+ , _raItems = Nothing
455+ }
456+
457+-- | ETag of the resource.
458+raEtag :: Lens' RoleAssignments (Maybe Text)
459+raEtag = lens _raEtag (\ s a -> s{_raEtag = a})
460+
461+raNextPageToken :: Lens' RoleAssignments (Maybe Text)
462+raNextPageToken
463+ = lens _raNextPageToken
464+ (\ s a -> s{_raNextPageToken = a})
465+
466+-- | The type of the API resource. This is always
467+-- admin#directory#roleAssignments.
468+raKind :: Lens' RoleAssignments Text
469+raKind = lens _raKind (\ s a -> s{_raKind = a})
470+
471+-- | A list of RoleAssignment resources.
472+raItems :: Lens' RoleAssignments [RoleAssignment]
473+raItems
474+ = lens _raItems (\ s a -> s{_raItems = a}) . _Default
475+ . _Coerce
476+
477+instance FromJSON RoleAssignments where
478+ parseJSON
479+ = withObject "RoleAssignments"
480+ (\ o ->
481+ RoleAssignments <$>
482+ (o .:? "etag") <*> (o .:? "nextPageToken") <*>
483+ (o .:? "kind" .!= "admin#directory#roleAssignments")
484+ <*> (o .:? "items" .!= mempty))
485+
486+instance ToJSON RoleAssignments where
487+ toJSON RoleAssignments{..}
488+ = object
489+ (catMaybes
490+ [("etag" .=) <$> _raEtag,
491+ ("nextPageToken" .=) <$> _raNextPageToken,
492+ Just ("kind" .= _raKind), ("items" .=) <$> _raItems])
493+
494+-- | JSON template for privilege resource in Directory API.
495+--
496+-- /See:/ 'privilege' smart constructor.
497+data Privilege = Privilege
498+ { _priEtag :: !(Maybe Text)
499+ , _priIsOuScopable :: !(Maybe Bool)
500+ , _priKind :: !Text
501+ , _priServiceName :: !(Maybe Text)
502+ , _priServiceId :: !(Maybe Text)
503+ , _priPrivilegeName :: !(Maybe Text)
504+ , _priChildPrivileges :: !(Maybe [Privilege])
505+ } deriving (Eq,Show,Data,Typeable,Generic)
506+
507+-- | Creates a value of 'Privilege' with the minimum fields required to make a request.
508+--
509+-- Use one of the following lenses to modify other fields as desired:
510+--
511+-- * 'priEtag'
512+--
513+-- * 'priIsOuScopable'
514+--
515+-- * 'priKind'
516+--
517+-- * 'priServiceName'
518+--
519+-- * 'priServiceId'
520+--
521+-- * 'priPrivilegeName'
522+--
523+-- * 'priChildPrivileges'
524+privilege
525+ :: Privilege
526+privilege =
527+ Privilege
528+ { _priEtag = Nothing
529+ , _priIsOuScopable = Nothing
530+ , _priKind = "admin#directory#privilege"
531+ , _priServiceName = Nothing
532+ , _priServiceId = Nothing
533+ , _priPrivilegeName = Nothing
534+ , _priChildPrivileges = Nothing
535+ }
536+
537+-- | ETag of the resource.
538+priEtag :: Lens' Privilege (Maybe Text)
539+priEtag = lens _priEtag (\ s a -> s{_priEtag = a})
540+
541+-- | If the privilege can be restricted to an organization unit.
542+priIsOuScopable :: Lens' Privilege (Maybe Bool)
543+priIsOuScopable
544+ = lens _priIsOuScopable
545+ (\ s a -> s{_priIsOuScopable = a})
546+
547+-- | The type of the API resource. This is always admin#directory#privilege.
548+priKind :: Lens' Privilege Text
549+priKind = lens _priKind (\ s a -> s{_priKind = a})
550+
551+-- | The name of the service this privilege is for.
552+priServiceName :: Lens' Privilege (Maybe Text)
553+priServiceName
554+ = lens _priServiceName
555+ (\ s a -> s{_priServiceName = a})
556+
557+-- | The obfuscated ID of the service this privilege is for.
558+priServiceId :: Lens' Privilege (Maybe Text)
559+priServiceId
560+ = lens _priServiceId (\ s a -> s{_priServiceId = a})
561+
562+-- | The name of the privilege.
563+priPrivilegeName :: Lens' Privilege (Maybe Text)
564+priPrivilegeName
565+ = lens _priPrivilegeName
566+ (\ s a -> s{_priPrivilegeName = a})
567+
568+-- | A list of child privileges. Privileges for a service form a tree. Each
569+-- privilege can have a list of child privileges; this list is empty for a
570+-- leaf privilege.
571+priChildPrivileges :: Lens' Privilege [Privilege]
572+priChildPrivileges
573+ = lens _priChildPrivileges
574+ (\ s a -> s{_priChildPrivileges = a})
575+ . _Default
576+ . _Coerce
577+
578+instance FromJSON Privilege where
579+ parseJSON
580+ = withObject "Privilege"
581+ (\ o ->
582+ Privilege <$>
583+ (o .:? "etag") <*> (o .:? "isOuScopable") <*>
584+ (o .:? "kind" .!= "admin#directory#privilege")
585+ <*> (o .:? "serviceName")
586+ <*> (o .:? "serviceId")
587+ <*> (o .:? "privilegeName")
588+ <*> (o .:? "childPrivileges" .!= mempty))
589+
590+instance ToJSON Privilege where
591+ toJSON Privilege{..}
592+ = object
593+ (catMaybes
594+ [("etag" .=) <$> _priEtag,
595+ ("isOuScopable" .=) <$> _priIsOuScopable,
596+ Just ("kind" .= _priKind),
597+ ("serviceName" .=) <$> _priServiceName,
598+ ("serviceId" .=) <$> _priServiceId,
599+ ("privilegeName" .=) <$> _priPrivilegeName,
600+ ("childPrivileges" .=) <$> _priChildPrivileges])
601+
602+-- | JSON response template for List roles operation in Directory API.
603+--
604+-- /See:/ 'roles' smart constructor.
605+data Roles = Roles
606+ { _rEtag :: !(Maybe Text)
607+ , _rNextPageToken :: !(Maybe Text)
608+ , _rKind :: !Text
609+ , _rItems :: !(Maybe [Role])
610+ } deriving (Eq,Show,Data,Typeable,Generic)
611+
612+-- | Creates a value of 'Roles' with the minimum fields required to make a request.
613+--
614+-- Use one of the following lenses to modify other fields as desired:
615+--
616+-- * 'rEtag'
617+--
618+-- * 'rNextPageToken'
619+--
620+-- * 'rKind'
621+--
622+-- * 'rItems'
623+roles
624+ :: Roles
625+roles =
626+ Roles
627+ { _rEtag = Nothing
628+ , _rNextPageToken = Nothing
629+ , _rKind = "admin#directory#roles"
630+ , _rItems = Nothing
631+ }
632+
633+-- | ETag of the resource.
634+rEtag :: Lens' Roles (Maybe Text)
635+rEtag = lens _rEtag (\ s a -> s{_rEtag = a})
636+
637+rNextPageToken :: Lens' Roles (Maybe Text)
638+rNextPageToken
639+ = lens _rNextPageToken
640+ (\ s a -> s{_rNextPageToken = a})
641+
642+-- | The type of the API resource. This is always admin#directory#roles.
643+rKind :: Lens' Roles Text
644+rKind = lens _rKind (\ s a -> s{_rKind = a})
645+
646+-- | A list of Role resources.
647+rItems :: Lens' Roles [Role]
648+rItems
649+ = lens _rItems (\ s a -> s{_rItems = a}) . _Default .
650+ _Coerce
651+
652+instance FromJSON Roles where
653+ parseJSON
654+ = withObject "Roles"
655+ (\ o ->
656+ Roles <$>
657+ (o .:? "etag") <*> (o .:? "nextPageToken") <*>
658+ (o .:? "kind" .!= "admin#directory#roles")
659+ <*> (o .:? "items" .!= mempty))
660+
661+instance ToJSON Roles where
662+ toJSON Roles{..}
663+ = object
664+ (catMaybes
665+ [("etag" .=) <$> _rEtag,
666+ ("nextPageToken" .=) <$> _rNextPageToken,
667+ Just ("kind" .= _rKind), ("items" .=) <$> _rItems])
668+
368669-- | JSON template for address.
369670--
370671-- /See:/ 'userAddress' smart constructor.
@@ -540,6 +841,248 @@ instance ToJSON UserAddress where
540841 ("customType" .=) <$> _uaCustomType,
541842 ("sourceIsStructured" .=) <$> _uaSourceIsStructured])
542843
844+-- | JSON template for postal address of a customer.
845+--
846+-- /See:/ 'customerPostalAddress' smart constructor.
847+data CustomerPostalAddress = CustomerPostalAddress
848+ { _cpaOrganizationName :: !(Maybe Text)
849+ , _cpaPostalCode :: !(Maybe Text)
850+ , _cpaAddressLine1 :: !(Maybe Text)
851+ , _cpaLocality :: !(Maybe Text)
852+ , _cpaContactName :: !(Maybe Text)
853+ , _cpaAddressLine2 :: !(Maybe Text)
854+ , _cpaCountryCode :: !(Maybe Text)
855+ , _cpaRegion :: !(Maybe Text)
856+ , _cpaAddressLine3 :: !(Maybe Text)
857+ } deriving (Eq,Show,Data,Typeable,Generic)
858+
859+-- | Creates a value of 'CustomerPostalAddress' with the minimum fields required to make a request.
860+--
861+-- Use one of the following lenses to modify other fields as desired:
862+--
863+-- * 'cpaOrganizationName'
864+--
865+-- * 'cpaPostalCode'
866+--
867+-- * 'cpaAddressLine1'
868+--
869+-- * 'cpaLocality'
870+--
871+-- * 'cpaContactName'
872+--
873+-- * 'cpaAddressLine2'
874+--
875+-- * 'cpaCountryCode'
876+--
877+-- * 'cpaRegion'
878+--
879+-- * 'cpaAddressLine3'
880+customerPostalAddress
881+ :: CustomerPostalAddress
882+customerPostalAddress =
883+ CustomerPostalAddress
884+ { _cpaOrganizationName = Nothing
885+ , _cpaPostalCode = Nothing
886+ , _cpaAddressLine1 = Nothing
887+ , _cpaLocality = Nothing
888+ , _cpaContactName = Nothing
889+ , _cpaAddressLine2 = Nothing
890+ , _cpaCountryCode = Nothing
891+ , _cpaRegion = Nothing
892+ , _cpaAddressLine3 = Nothing
893+ }
894+
895+-- | The company or company division name.
896+cpaOrganizationName :: Lens' CustomerPostalAddress (Maybe Text)
897+cpaOrganizationName
898+ = lens _cpaOrganizationName
899+ (\ s a -> s{_cpaOrganizationName = a})
900+
901+-- | The postal code. A postalCode example is a postal zip code such as
902+-- 10009. This is in accordance with -
903+-- http:\/\/portablecontacts.net\/draft-spec.html#address_element.
904+cpaPostalCode :: Lens' CustomerPostalAddress (Maybe Text)
905+cpaPostalCode
906+ = lens _cpaPostalCode
907+ (\ s a -> s{_cpaPostalCode = a})
908+
909+-- | A customer\'s physical address. The address can be composed of one to
910+-- three lines.
911+cpaAddressLine1 :: Lens' CustomerPostalAddress (Maybe Text)
912+cpaAddressLine1
913+ = lens _cpaAddressLine1
914+ (\ s a -> s{_cpaAddressLine1 = a})
915+
916+-- | Name of the locality. An example of a locality value is the city of San
917+-- Francisco.
918+cpaLocality :: Lens' CustomerPostalAddress (Maybe Text)
919+cpaLocality
920+ = lens _cpaLocality (\ s a -> s{_cpaLocality = a})
921+
922+-- | The customer contact\'s name.
923+cpaContactName :: Lens' CustomerPostalAddress (Maybe Text)
924+cpaContactName
925+ = lens _cpaContactName
926+ (\ s a -> s{_cpaContactName = a})
927+
928+-- | Address line 2 of the address.
929+cpaAddressLine2 :: Lens' CustomerPostalAddress (Maybe Text)
930+cpaAddressLine2
931+ = lens _cpaAddressLine2
932+ (\ s a -> s{_cpaAddressLine2 = a})
933+
934+-- | This is a required property. For countryCode information see the ISO
935+-- 3166 country code elements.
936+cpaCountryCode :: Lens' CustomerPostalAddress (Maybe Text)
937+cpaCountryCode
938+ = lens _cpaCountryCode
939+ (\ s a -> s{_cpaCountryCode = a})
940+
941+-- | Name of the region. An example of a region value is NY for the state of
942+-- New York.
943+cpaRegion :: Lens' CustomerPostalAddress (Maybe Text)
944+cpaRegion
945+ = lens _cpaRegion (\ s a -> s{_cpaRegion = a})
946+
947+-- | Address line 3 of the address.
948+cpaAddressLine3 :: Lens' CustomerPostalAddress (Maybe Text)
949+cpaAddressLine3
950+ = lens _cpaAddressLine3
951+ (\ s a -> s{_cpaAddressLine3 = a})
952+
953+instance FromJSON CustomerPostalAddress where
954+ parseJSON
955+ = withObject "CustomerPostalAddress"
956+ (\ o ->
957+ CustomerPostalAddress <$>
958+ (o .:? "organizationName") <*> (o .:? "postalCode")
959+ <*> (o .:? "addressLine1")
960+ <*> (o .:? "locality")
961+ <*> (o .:? "contactName")
962+ <*> (o .:? "addressLine2")
963+ <*> (o .:? "countryCode")
964+ <*> (o .:? "region")
965+ <*> (o .:? "addressLine3"))
966+
967+instance ToJSON CustomerPostalAddress where
968+ toJSON CustomerPostalAddress{..}
969+ = object
970+ (catMaybes
971+ [("organizationName" .=) <$> _cpaOrganizationName,
972+ ("postalCode" .=) <$> _cpaPostalCode,
973+ ("addressLine1" .=) <$> _cpaAddressLine1,
974+ ("locality" .=) <$> _cpaLocality,
975+ ("contactName" .=) <$> _cpaContactName,
976+ ("addressLine2" .=) <$> _cpaAddressLine2,
977+ ("countryCode" .=) <$> _cpaCountryCode,
978+ ("region" .=) <$> _cpaRegion,
979+ ("addressLine3" .=) <$> _cpaAddressLine3])
980+
981+-- | JSON template for roleAssignment resource in Directory API.
982+--
983+-- /See:/ 'roleAssignment' smart constructor.
984+data RoleAssignment = RoleAssignment
985+ { _rolEtag :: !(Maybe Text)
986+ , _rolScopeType :: !(Maybe Text)
987+ , _rolKind :: !Text
988+ , _rolAssignedTo :: !(Maybe Text)
989+ , _rolRoleId :: !(Maybe Int64)
990+ , _rolRoleAssignmentId :: !(Maybe Int64)
991+ , _rolOrgUnitId :: !(Maybe Text)
992+ } deriving (Eq,Show,Data,Typeable,Generic)
993+
994+-- | Creates a value of 'RoleAssignment' with the minimum fields required to make a request.
995+--
996+-- Use one of the following lenses to modify other fields as desired:
997+--
998+-- * 'rolEtag'
999+--
1000+-- * 'rolScopeType'
1001+--
1002+-- * 'rolKind'
1003+--
1004+-- * 'rolAssignedTo'
1005+--
1006+-- * 'rolRoleId'
1007+--
1008+-- * 'rolRoleAssignmentId'
1009+--
1010+-- * 'rolOrgUnitId'
1011+roleAssignment
1012+ :: RoleAssignment
1013+roleAssignment =
1014+ RoleAssignment
1015+ { _rolEtag = Nothing
1016+ , _rolScopeType = Nothing
1017+ , _rolKind = "admin#directory#roleAssignment"
1018+ , _rolAssignedTo = Nothing
1019+ , _rolRoleId = Nothing
1020+ , _rolRoleAssignmentId = Nothing
1021+ , _rolOrgUnitId = Nothing
1022+ }
1023+
1024+-- | ETag of the resource.
1025+rolEtag :: Lens' RoleAssignment (Maybe Text)
1026+rolEtag = lens _rolEtag (\ s a -> s{_rolEtag = a})
1027+
1028+-- | The scope in which this role is assigned. Possible values are: -
1029+-- CUSTOMER - ORG_UNIT
1030+rolScopeType :: Lens' RoleAssignment (Maybe Text)
1031+rolScopeType
1032+ = lens _rolScopeType (\ s a -> s{_rolScopeType = a})
1033+
1034+-- | The type of the API resource. This is always
1035+-- admin#directory#roleAssignment.
1036+rolKind :: Lens' RoleAssignment Text
1037+rolKind = lens _rolKind (\ s a -> s{_rolKind = a})
1038+
1039+-- | The unique ID of the user this role is assigned to.
1040+rolAssignedTo :: Lens' RoleAssignment (Maybe Text)
1041+rolAssignedTo
1042+ = lens _rolAssignedTo
1043+ (\ s a -> s{_rolAssignedTo = a})
1044+
1045+-- | The ID of the role that is assigned.
1046+rolRoleId :: Lens' RoleAssignment (Maybe Int64)
1047+rolRoleId
1048+ = lens _rolRoleId (\ s a -> s{_rolRoleId = a})
1049+
1050+-- | ID of this roleAssignment.
1051+rolRoleAssignmentId :: Lens' RoleAssignment (Maybe Int64)
1052+rolRoleAssignmentId
1053+ = lens _rolRoleAssignmentId
1054+ (\ s a -> s{_rolRoleAssignmentId = a})
1055+
1056+-- | If the role is restricted to an organization unit, this contains the ID
1057+-- for the organization unit the exercise of this role is restricted to.
1058+rolOrgUnitId :: Lens' RoleAssignment (Maybe Text)
1059+rolOrgUnitId
1060+ = lens _rolOrgUnitId (\ s a -> s{_rolOrgUnitId = a})
1061+
1062+instance FromJSON RoleAssignment where
1063+ parseJSON
1064+ = withObject "RoleAssignment"
1065+ (\ o ->
1066+ RoleAssignment <$>
1067+ (o .:? "etag") <*> (o .:? "scopeType") <*>
1068+ (o .:? "kind" .!= "admin#directory#roleAssignment")
1069+ <*> (o .:? "assignedTo")
1070+ <*> (o .:? "roleId")
1071+ <*> (o .:? "roleAssignmentId")
1072+ <*> (o .:? "orgUnitId"))
1073+
1074+instance ToJSON RoleAssignment where
1075+ toJSON RoleAssignment{..}
1076+ = object
1077+ (catMaybes
1078+ [("etag" .=) <$> _rolEtag,
1079+ ("scopeType" .=) <$> _rolScopeType,
1080+ Just ("kind" .= _rolKind),
1081+ ("assignedTo" .=) <$> _rolAssignedTo,
1082+ ("roleId" .=) <$> _rolRoleId,
1083+ ("roleAssignmentId" .=) <$> _rolRoleAssignmentId,
1084+ ("orgUnitId" .=) <$> _rolOrgUnitId])
1085+
5431086-- | JSON template for Group resource in Directory API.
5441087--
5451088-- /See:/ 'group'' smart constructor.
@@ -1530,6 +2073,65 @@ instance FromJSON UserCustomSchemas where
15302073instance ToJSON UserCustomSchemas where
15312074 toJSON = toJSON . _ucsAddtional
15322075
2076+-- | JSON response template to list domain aliases in Directory API.
2077+--
2078+-- /See:/ 'domainAliases' smart constructor.
2079+data DomainAliases = DomainAliases
2080+ { _daEtag :: !(Maybe Text)
2081+ , _daKind :: !Text
2082+ , _daDomainAliases :: !(Maybe [DomainAlias])
2083+ } deriving (Eq,Show,Data,Typeable,Generic)
2084+
2085+-- | Creates a value of 'DomainAliases' with the minimum fields required to make a request.
2086+--
2087+-- Use one of the following lenses to modify other fields as desired:
2088+--
2089+-- * 'daEtag'
2090+--
2091+-- * 'daKind'
2092+--
2093+-- * 'daDomainAliases'
2094+domainAliases
2095+ :: DomainAliases
2096+domainAliases =
2097+ DomainAliases
2098+ { _daEtag = Nothing
2099+ , _daKind = "admin#directory#domainAliases"
2100+ , _daDomainAliases = Nothing
2101+ }
2102+
2103+-- | ETag of the resource.
2104+daEtag :: Lens' DomainAliases (Maybe Text)
2105+daEtag = lens _daEtag (\ s a -> s{_daEtag = a})
2106+
2107+-- | Kind of resource this is.
2108+daKind :: Lens' DomainAliases Text
2109+daKind = lens _daKind (\ s a -> s{_daKind = a})
2110+
2111+-- | List of domain alias objects.
2112+daDomainAliases :: Lens' DomainAliases [DomainAlias]
2113+daDomainAliases
2114+ = lens _daDomainAliases
2115+ (\ s a -> s{_daDomainAliases = a})
2116+ . _Default
2117+ . _Coerce
2118+
2119+instance FromJSON DomainAliases where
2120+ parseJSON
2121+ = withObject "DomainAliases"
2122+ (\ o ->
2123+ DomainAliases <$>
2124+ (o .:? "etag") <*>
2125+ (o .:? "kind" .!= "admin#directory#domainAliases")
2126+ <*> (o .:? "domainAliases" .!= mempty))
2127+
2128+instance ToJSON DomainAliases where
2129+ toJSON DomainAliases{..}
2130+ = object
2131+ (catMaybes
2132+ [("etag" .=) <$> _daEtag, Just ("kind" .= _daKind),
2133+ ("domainAliases" .=) <$> _daDomainAliases])
2134+
15332135-- | JSON response template to list aliases in Directory API.
15342136--
15352137-- /See:/ 'aliases' smart constructor.
@@ -2116,6 +2718,98 @@ instance ToJSON ChromeOSDeviceRecentUsersItem where
21162718 [("email" .=) <$> _codruiEmail,
21172719 ("type" .=) <$> _codruiType])
21182720
2721+-- | JSON template for Domain Alias object in Directory API.
2722+--
2723+-- /See:/ 'domainAlias' smart constructor.
2724+data DomainAlias = DomainAlias
2725+ { _dCreationTime :: !(Maybe Int64)
2726+ , _dEtag :: !(Maybe Text)
2727+ , _dKind :: !Text
2728+ , _dVerified :: !(Maybe Bool)
2729+ , _dDomainAliasName :: !(Maybe Text)
2730+ , _dParentDomainName :: !(Maybe Text)
2731+ } deriving (Eq,Show,Data,Typeable,Generic)
2732+
2733+-- | Creates a value of 'DomainAlias' with the minimum fields required to make a request.
2734+--
2735+-- Use one of the following lenses to modify other fields as desired:
2736+--
2737+-- * 'dCreationTime'
2738+--
2739+-- * 'dEtag'
2740+--
2741+-- * 'dKind'
2742+--
2743+-- * 'dVerified'
2744+--
2745+-- * 'dDomainAliasName'
2746+--
2747+-- * 'dParentDomainName'
2748+domainAlias
2749+ :: DomainAlias
2750+domainAlias =
2751+ DomainAlias
2752+ { _dCreationTime = Nothing
2753+ , _dEtag = Nothing
2754+ , _dKind = "admin#directory#domainAlias"
2755+ , _dVerified = Nothing
2756+ , _dDomainAliasName = Nothing
2757+ , _dParentDomainName = Nothing
2758+ }
2759+
2760+-- | The creation time of the domain alias. (Read-only).
2761+dCreationTime :: Lens' DomainAlias (Maybe Int64)
2762+dCreationTime
2763+ = lens _dCreationTime
2764+ (\ s a -> s{_dCreationTime = a})
2765+
2766+-- | ETag of the resource.
2767+dEtag :: Lens' DomainAlias (Maybe Text)
2768+dEtag = lens _dEtag (\ s a -> s{_dEtag = a})
2769+
2770+-- | Kind of resource this is.
2771+dKind :: Lens' DomainAlias Text
2772+dKind = lens _dKind (\ s a -> s{_dKind = a})
2773+
2774+-- | Indicates the verification state of a domain alias. (Read-only)
2775+dVerified :: Lens' DomainAlias (Maybe Bool)
2776+dVerified
2777+ = lens _dVerified (\ s a -> s{_dVerified = a})
2778+
2779+-- | The domain alias name.
2780+dDomainAliasName :: Lens' DomainAlias (Maybe Text)
2781+dDomainAliasName
2782+ = lens _dDomainAliasName
2783+ (\ s a -> s{_dDomainAliasName = a})
2784+
2785+-- | The parent domain name that the domain alias is associated with. This
2786+-- can either be a primary or secondary domain name within a customer.
2787+dParentDomainName :: Lens' DomainAlias (Maybe Text)
2788+dParentDomainName
2789+ = lens _dParentDomainName
2790+ (\ s a -> s{_dParentDomainName = a})
2791+
2792+instance FromJSON DomainAlias where
2793+ parseJSON
2794+ = withObject "DomainAlias"
2795+ (\ o ->
2796+ DomainAlias <$>
2797+ (o .:? "creationTime") <*> (o .:? "etag") <*>
2798+ (o .:? "kind" .!= "admin#directory#domainAlias")
2799+ <*> (o .:? "verified")
2800+ <*> (o .:? "domainAliasName")
2801+ <*> (o .:? "parentDomainName"))
2802+
2803+instance ToJSON DomainAlias where
2804+ toJSON DomainAlias{..}
2805+ = object
2806+ (catMaybes
2807+ [("creationTime" .=) <$> _dCreationTime,
2808+ ("etag" .=) <$> _dEtag, Just ("kind" .= _dKind),
2809+ ("verified" .=) <$> _dVerified,
2810+ ("domainAliasName" .=) <$> _dDomainAliasName,
2811+ ("parentDomainName" .=) <$> _dParentDomainName])
2812+
21192813-- | JSON template for Alias object in Directory API.
21202814--
21212815-- /See:/ 'alias' smart constructor.
@@ -2694,6 +3388,252 @@ instance ToJSON User where
26943388 ("customSchemas" .=) <$> _useCustomSchemas,
26953389 ("suspensionReason" .=) <$> _useSuspensionReason])
26963390
3391+-- | JSON template for role resource in Directory API.
3392+--
3393+-- /See:/ 'role' smart constructor.
3394+data Role = Role
3395+ { _rrEtag :: !(Maybe Text)
3396+ , _rrKind :: !Text
3397+ , _rrRoleName :: !(Maybe Text)
3398+ , _rrIsSystemRole :: !(Maybe Bool)
3399+ , _rrRoleId :: !(Maybe Int64)
3400+ , _rrRoleDescription :: !(Maybe Text)
3401+ , _rrIsSuperAdminRole :: !(Maybe Bool)
3402+ , _rrRolePrivileges :: !(Maybe [RoleRolePrivilegesItem])
3403+ } deriving (Eq,Show,Data,Typeable,Generic)
3404+
3405+-- | Creates a value of 'Role' with the minimum fields required to make a request.
3406+--
3407+-- Use one of the following lenses to modify other fields as desired:
3408+--
3409+-- * 'rrEtag'
3410+--
3411+-- * 'rrKind'
3412+--
3413+-- * 'rrRoleName'
3414+--
3415+-- * 'rrIsSystemRole'
3416+--
3417+-- * 'rrRoleId'
3418+--
3419+-- * 'rrRoleDescription'
3420+--
3421+-- * 'rrIsSuperAdminRole'
3422+--
3423+-- * 'rrRolePrivileges'
3424+role
3425+ :: Role
3426+role =
3427+ Role
3428+ { _rrEtag = Nothing
3429+ , _rrKind = "admin#directory#role"
3430+ , _rrRoleName = Nothing
3431+ , _rrIsSystemRole = Nothing
3432+ , _rrRoleId = Nothing
3433+ , _rrRoleDescription = Nothing
3434+ , _rrIsSuperAdminRole = Nothing
3435+ , _rrRolePrivileges = Nothing
3436+ }
3437+
3438+-- | ETag of the resource.
3439+rrEtag :: Lens' Role (Maybe Text)
3440+rrEtag = lens _rrEtag (\ s a -> s{_rrEtag = a})
3441+
3442+-- | The type of the API resource. This is always admin#directory#role.
3443+rrKind :: Lens' Role Text
3444+rrKind = lens _rrKind (\ s a -> s{_rrKind = a})
3445+
3446+-- | Name of the role.
3447+rrRoleName :: Lens' Role (Maybe Text)
3448+rrRoleName
3449+ = lens _rrRoleName (\ s a -> s{_rrRoleName = a})
3450+
3451+-- | Returns true if this is a pre-defined system role.
3452+rrIsSystemRole :: Lens' Role (Maybe Bool)
3453+rrIsSystemRole
3454+ = lens _rrIsSystemRole
3455+ (\ s a -> s{_rrIsSystemRole = a})
3456+
3457+-- | ID of the role.
3458+rrRoleId :: Lens' Role (Maybe Int64)
3459+rrRoleId = lens _rrRoleId (\ s a -> s{_rrRoleId = a})
3460+
3461+-- | A short description of the role.
3462+rrRoleDescription :: Lens' Role (Maybe Text)
3463+rrRoleDescription
3464+ = lens _rrRoleDescription
3465+ (\ s a -> s{_rrRoleDescription = a})
3466+
3467+-- | Returns true if the role is a super admin role.
3468+rrIsSuperAdminRole :: Lens' Role (Maybe Bool)
3469+rrIsSuperAdminRole
3470+ = lens _rrIsSuperAdminRole
3471+ (\ s a -> s{_rrIsSuperAdminRole = a})
3472+
3473+-- | The set of privileges that are granted to this role.
3474+rrRolePrivileges :: Lens' Role [RoleRolePrivilegesItem]
3475+rrRolePrivileges
3476+ = lens _rrRolePrivileges
3477+ (\ s a -> s{_rrRolePrivileges = a})
3478+ . _Default
3479+ . _Coerce
3480+
3481+instance FromJSON Role where
3482+ parseJSON
3483+ = withObject "Role"
3484+ (\ o ->
3485+ Role <$>
3486+ (o .:? "etag") <*>
3487+ (o .:? "kind" .!= "admin#directory#role")
3488+ <*> (o .:? "roleName")
3489+ <*> (o .:? "isSystemRole")
3490+ <*> (o .:? "roleId")
3491+ <*> (o .:? "roleDescription")
3492+ <*> (o .:? "isSuperAdminRole")
3493+ <*> (o .:? "rolePrivileges" .!= mempty))
3494+
3495+instance ToJSON Role where
3496+ toJSON Role{..}
3497+ = object
3498+ (catMaybes
3499+ [("etag" .=) <$> _rrEtag, Just ("kind" .= _rrKind),
3500+ ("roleName" .=) <$> _rrRoleName,
3501+ ("isSystemRole" .=) <$> _rrIsSystemRole,
3502+ ("roleId" .=) <$> _rrRoleId,
3503+ ("roleDescription" .=) <$> _rrRoleDescription,
3504+ ("isSuperAdminRole" .=) <$> _rrIsSuperAdminRole,
3505+ ("rolePrivileges" .=) <$> _rrRolePrivileges])
3506+
3507+-- | JSON template for Customer Resource object in Directory API.
3508+--
3509+-- /See:/ 'customer' smart constructor.
3510+data Customer = Customer
3511+ { _cusEtag :: !(Maybe Text)
3512+ , _cusKind :: !Text
3513+ , _cusAlternateEmail :: !(Maybe Text)
3514+ , _cusCustomerDomain :: !(Maybe Text)
3515+ , _cusPhoneNumber :: !(Maybe Text)
3516+ , _cusLanguage :: !(Maybe Text)
3517+ , _cusId :: !(Maybe Text)
3518+ , _cusCustomerCreationTime :: !(Maybe DateTime')
3519+ , _cusPostalAddress :: !(Maybe CustomerPostalAddress)
3520+ } deriving (Eq,Show,Data,Typeable,Generic)
3521+
3522+-- | Creates a value of 'Customer' with the minimum fields required to make a request.
3523+--
3524+-- Use one of the following lenses to modify other fields as desired:
3525+--
3526+-- * 'cusEtag'
3527+--
3528+-- * 'cusKind'
3529+--
3530+-- * 'cusAlternateEmail'
3531+--
3532+-- * 'cusCustomerDomain'
3533+--
3534+-- * 'cusPhoneNumber'
3535+--
3536+-- * 'cusLanguage'
3537+--
3538+-- * 'cusId'
3539+--
3540+-- * 'cusCustomerCreationTime'
3541+--
3542+-- * 'cusPostalAddress'
3543+customer
3544+ :: Customer
3545+customer =
3546+ Customer
3547+ { _cusEtag = Nothing
3548+ , _cusKind = "admin#directory#customer"
3549+ , _cusAlternateEmail = Nothing
3550+ , _cusCustomerDomain = Nothing
3551+ , _cusPhoneNumber = Nothing
3552+ , _cusLanguage = Nothing
3553+ , _cusId = Nothing
3554+ , _cusCustomerCreationTime = Nothing
3555+ , _cusPostalAddress = Nothing
3556+ }
3557+
3558+-- | ETag of the resource.
3559+cusEtag :: Lens' Customer (Maybe Text)
3560+cusEtag = lens _cusEtag (\ s a -> s{_cusEtag = a})
3561+
3562+-- | Identifies the resource as a customer. Value: admin#directory#customer
3563+cusKind :: Lens' Customer Text
3564+cusKind = lens _cusKind (\ s a -> s{_cusKind = a})
3565+
3566+-- | The customer\'s secondary contact email address. This email address
3567+-- cannot be on the same domain as the customerDomain
3568+cusAlternateEmail :: Lens' Customer (Maybe Text)
3569+cusAlternateEmail
3570+ = lens _cusAlternateEmail
3571+ (\ s a -> s{_cusAlternateEmail = a})
3572+
3573+-- | The customer\'s primary domain name string. Do not include the www
3574+-- prefix when creating a new customer.
3575+cusCustomerDomain :: Lens' Customer (Maybe Text)
3576+cusCustomerDomain
3577+ = lens _cusCustomerDomain
3578+ (\ s a -> s{_cusCustomerDomain = a})
3579+
3580+-- | The customer\'s contact phone number in E.164 format.
3581+cusPhoneNumber :: Lens' Customer (Maybe Text)
3582+cusPhoneNumber
3583+ = lens _cusPhoneNumber
3584+ (\ s a -> s{_cusPhoneNumber = a})
3585+
3586+-- | The customer\'s ISO 639-2 language code. The default value is en-US
3587+cusLanguage :: Lens' Customer (Maybe Text)
3588+cusLanguage
3589+ = lens _cusLanguage (\ s a -> s{_cusLanguage = a})
3590+
3591+-- | The unique ID for the customer\'s Google account. (Readonly)
3592+cusId :: Lens' Customer (Maybe Text)
3593+cusId = lens _cusId (\ s a -> s{_cusId = a})
3594+
3595+-- | The customer\'s creation time (Readonly)
3596+cusCustomerCreationTime :: Lens' Customer (Maybe UTCTime)
3597+cusCustomerCreationTime
3598+ = lens _cusCustomerCreationTime
3599+ (\ s a -> s{_cusCustomerCreationTime = a})
3600+ . mapping _DateTime
3601+
3602+-- | The customer\'s postal address information.
3603+cusPostalAddress :: Lens' Customer (Maybe CustomerPostalAddress)
3604+cusPostalAddress
3605+ = lens _cusPostalAddress
3606+ (\ s a -> s{_cusPostalAddress = a})
3607+
3608+instance FromJSON Customer where
3609+ parseJSON
3610+ = withObject "Customer"
3611+ (\ o ->
3612+ Customer <$>
3613+ (o .:? "etag") <*>
3614+ (o .:? "kind" .!= "admin#directory#customer")
3615+ <*> (o .:? "alternateEmail")
3616+ <*> (o .:? "customerDomain")
3617+ <*> (o .:? "phoneNumber")
3618+ <*> (o .:? "language")
3619+ <*> (o .:? "id")
3620+ <*> (o .:? "customerCreationTime")
3621+ <*> (o .:? "postalAddress"))
3622+
3623+instance ToJSON Customer where
3624+ toJSON Customer{..}
3625+ = object
3626+ (catMaybes
3627+ [("etag" .=) <$> _cusEtag, Just ("kind" .= _cusKind),
3628+ ("alternateEmail" .=) <$> _cusAlternateEmail,
3629+ ("customerDomain" .=) <$> _cusCustomerDomain,
3630+ ("phoneNumber" .=) <$> _cusPhoneNumber,
3631+ ("language" .=) <$> _cusLanguage,
3632+ ("id" .=) <$> _cusId,
3633+ ("customerCreationTime" .=) <$>
3634+ _cusCustomerCreationTime,
3635+ ("postalAddress" .=) <$> _cusPostalAddress])
3636+
26973637--
26983638-- /See:/ 'mobileDeviceApplicationsItem' smart constructor.
26993639data MobileDeviceApplicationsItem = MobileDeviceApplicationsItem
@@ -4012,6 +4952,110 @@ instance FromJSON UserCustomProperties where
40124952instance ToJSON UserCustomProperties where
40134953 toJSON = toJSON . _ucpAddtional
40144954
4955+-- | JSON template for Domain object in Directory API.
4956+--
4957+-- /See:/ 'domains' smart constructor.
4958+data Domains = Domains
4959+ { _domCreationTime :: !(Maybe Int64)
4960+ , _domEtag :: !(Maybe Text)
4961+ , _domKind :: !Text
4962+ , _domDomainAliases :: !(Maybe [DomainAlias])
4963+ , _domVerified :: !(Maybe Bool)
4964+ , _domDomainName :: !(Maybe Text)
4965+ , _domIsPrimary :: !(Maybe Bool)
4966+ } deriving (Eq,Show,Data,Typeable,Generic)
4967+
4968+-- | Creates a value of 'Domains' with the minimum fields required to make a request.
4969+--
4970+-- Use one of the following lenses to modify other fields as desired:
4971+--
4972+-- * 'domCreationTime'
4973+--
4974+-- * 'domEtag'
4975+--
4976+-- * 'domKind'
4977+--
4978+-- * 'domDomainAliases'
4979+--
4980+-- * 'domVerified'
4981+--
4982+-- * 'domDomainName'
4983+--
4984+-- * 'domIsPrimary'
4985+domains
4986+ :: Domains
4987+domains =
4988+ Domains
4989+ { _domCreationTime = Nothing
4990+ , _domEtag = Nothing
4991+ , _domKind = "admin#directory#domain"
4992+ , _domDomainAliases = Nothing
4993+ , _domVerified = Nothing
4994+ , _domDomainName = Nothing
4995+ , _domIsPrimary = Nothing
4996+ }
4997+
4998+-- | Creation time of the domain. (Read-only).
4999+domCreationTime :: Lens' Domains (Maybe Int64)
5000+domCreationTime
5001+ = lens _domCreationTime
5002+ (\ s a -> s{_domCreationTime = a})
5003+
5004+-- | ETag of the resource.
5005+domEtag :: Lens' Domains (Maybe Text)
5006+domEtag = lens _domEtag (\ s a -> s{_domEtag = a})
5007+
5008+-- | Kind of resource this is.
5009+domKind :: Lens' Domains Text
5010+domKind = lens _domKind (\ s a -> s{_domKind = a})
5011+
5012+-- | List of domain alias objects. (Read-only)
5013+domDomainAliases :: Lens' Domains [DomainAlias]
5014+domDomainAliases
5015+ = lens _domDomainAliases
5016+ (\ s a -> s{_domDomainAliases = a})
5017+ . _Default
5018+ . _Coerce
5019+
5020+-- | Indicates the verification state of a domain. (Read-only).
5021+domVerified :: Lens' Domains (Maybe Bool)
5022+domVerified
5023+ = lens _domVerified (\ s a -> s{_domVerified = a})
5024+
5025+-- | The domain name of the customer.
5026+domDomainName :: Lens' Domains (Maybe Text)
5027+domDomainName
5028+ = lens _domDomainName
5029+ (\ s a -> s{_domDomainName = a})
5030+
5031+-- | Indicates if the domain is a primary domain (Read-only).
5032+domIsPrimary :: Lens' Domains (Maybe Bool)
5033+domIsPrimary
5034+ = lens _domIsPrimary (\ s a -> s{_domIsPrimary = a})
5035+
5036+instance FromJSON Domains where
5037+ parseJSON
5038+ = withObject "Domains"
5039+ (\ o ->
5040+ Domains <$>
5041+ (o .:? "creationTime") <*> (o .:? "etag") <*>
5042+ (o .:? "kind" .!= "admin#directory#domain")
5043+ <*> (o .:? "domainAliases" .!= mempty)
5044+ <*> (o .:? "verified")
5045+ <*> (o .:? "domainName")
5046+ <*> (o .:? "isPrimary"))
5047+
5048+instance ToJSON Domains where
5049+ toJSON Domains{..}
5050+ = object
5051+ (catMaybes
5052+ [("creationTime" .=) <$> _domCreationTime,
5053+ ("etag" .=) <$> _domEtag, Just ("kind" .= _domKind),
5054+ ("domainAliases" .=) <$> _domDomainAliases,
5055+ ("verified" .=) <$> _domVerified,
5056+ ("domainName" .=) <$> _domDomainName,
5057+ ("isPrimary" .=) <$> _domIsPrimary])
5058+
40155059-- | Template for notifications list response.
40165060--
40175061-- /See:/ 'notifications' smart constructor.
@@ -4500,3 +5544,109 @@ instance ToJSON Asps where
45005544 (catMaybes
45015545 [("etag" .=) <$> _aspEtag, Just ("kind" .= _aspKind),
45025546 ("items" .=) <$> _aspItems])
5547+
5548+--
5549+-- /See:/ 'roleRolePrivilegesItem' smart constructor.
5550+data RoleRolePrivilegesItem = RoleRolePrivilegesItem
5551+ { _rrpiServiceId :: !(Maybe Text)
5552+ , _rrpiPrivilegeName :: !(Maybe Text)
5553+ } deriving (Eq,Show,Data,Typeable,Generic)
5554+
5555+-- | Creates a value of 'RoleRolePrivilegesItem' with the minimum fields required to make a request.
5556+--
5557+-- Use one of the following lenses to modify other fields as desired:
5558+--
5559+-- * 'rrpiServiceId'
5560+--
5561+-- * 'rrpiPrivilegeName'
5562+roleRolePrivilegesItem
5563+ :: RoleRolePrivilegesItem
5564+roleRolePrivilegesItem =
5565+ RoleRolePrivilegesItem
5566+ { _rrpiServiceId = Nothing
5567+ , _rrpiPrivilegeName = Nothing
5568+ }
5569+
5570+-- | The obfuscated ID of the service this privilege is for.
5571+rrpiServiceId :: Lens' RoleRolePrivilegesItem (Maybe Text)
5572+rrpiServiceId
5573+ = lens _rrpiServiceId
5574+ (\ s a -> s{_rrpiServiceId = a})
5575+
5576+-- | The name of the privilege.
5577+rrpiPrivilegeName :: Lens' RoleRolePrivilegesItem (Maybe Text)
5578+rrpiPrivilegeName
5579+ = lens _rrpiPrivilegeName
5580+ (\ s a -> s{_rrpiPrivilegeName = a})
5581+
5582+instance FromJSON RoleRolePrivilegesItem where
5583+ parseJSON
5584+ = withObject "RoleRolePrivilegesItem"
5585+ (\ o ->
5586+ RoleRolePrivilegesItem <$>
5587+ (o .:? "serviceId") <*> (o .:? "privilegeName"))
5588+
5589+instance ToJSON RoleRolePrivilegesItem where
5590+ toJSON RoleRolePrivilegesItem{..}
5591+ = object
5592+ (catMaybes
5593+ [("serviceId" .=) <$> _rrpiServiceId,
5594+ ("privilegeName" .=) <$> _rrpiPrivilegeName])
5595+
5596+-- | JSON response template to list Domains in Directory API.
5597+--
5598+-- /See:/ 'domains2' smart constructor.
5599+data Domains2 = Domains2
5600+ { _ddEtag :: !(Maybe Text)
5601+ , _ddKind :: !Text
5602+ , _ddDomains :: !(Maybe [Domains])
5603+ } deriving (Eq,Show,Data,Typeable,Generic)
5604+
5605+-- | Creates a value of 'Domains2' with the minimum fields required to make a request.
5606+--
5607+-- Use one of the following lenses to modify other fields as desired:
5608+--
5609+-- * 'ddEtag'
5610+--
5611+-- * 'ddKind'
5612+--
5613+-- * 'ddDomains'
5614+domains2
5615+ :: Domains2
5616+domains2 =
5617+ Domains2
5618+ { _ddEtag = Nothing
5619+ , _ddKind = "admin#directory#domains"
5620+ , _ddDomains = Nothing
5621+ }
5622+
5623+-- | ETag of the resource.
5624+ddEtag :: Lens' Domains2 (Maybe Text)
5625+ddEtag = lens _ddEtag (\ s a -> s{_ddEtag = a})
5626+
5627+-- | Kind of resource this is.
5628+ddKind :: Lens' Domains2 Text
5629+ddKind = lens _ddKind (\ s a -> s{_ddKind = a})
5630+
5631+-- | List of domain objects.
5632+ddDomains :: Lens' Domains2 [Domains]
5633+ddDomains
5634+ = lens _ddDomains (\ s a -> s{_ddDomains = a}) .
5635+ _Default
5636+ . _Coerce
5637+
5638+instance FromJSON Domains2 where
5639+ parseJSON
5640+ = withObject "Domains2"
5641+ (\ o ->
5642+ Domains2 <$>
5643+ (o .:? "etag") <*>
5644+ (o .:? "kind" .!= "admin#directory#domains")
5645+ <*> (o .:? "domains" .!= mempty))
5646+
5647+instance ToJSON Domains2 where
5648+ toJSON Domains2{..}
5649+ = object
5650+ (catMaybes
5651+ [("etag" .=) <$> _ddEtag, Just ("kind" .= _ddKind),
5652+ ("domains" .=) <$> _ddDomains])
gogol-admin-directory/gen/Network/Google/Resource/Directory/Customers/Get.hsnew file+81
@@ -0,0 +1,81 @@
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.Directory.Customers.Get
17+-- Copyright : (c) 2015 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+-- | Retrives a customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryCustomersGet@.
26+module Network.Google.Resource.Directory.Customers.Get
27+ (
28+ -- * REST Resource
29+ CustomersGetResource
30+
31+ -- * Creating a Request
32+ , customersGet'
33+ , CustomersGet'
34+
35+ -- * Request Lenses
36+ , cgCustomerKey
37+ ) where
38+
39+import Network.Google.Directory.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @DirectoryCustomersGet@ method which the
43+-- 'CustomersGet'' request conforms to.
44+type CustomersGetResource =
45+ "customers" :>
46+ Capture "customerKey" Text :>
47+ QueryParam "alt" AltJSON :> Get '[JSON] Customer
48+
49+-- | Retrives a customer.
50+--
51+-- /See:/ 'customersGet'' smart constructor.
52+newtype CustomersGet' = CustomersGet'
53+ { _cgCustomerKey :: Text
54+ } deriving (Eq,Show,Data,Typeable,Generic)
55+
56+-- | Creates a value of 'CustomersGet'' with the minimum fields required to make a request.
57+--
58+-- Use one of the following lenses to modify other fields as desired:
59+--
60+-- * 'cgCustomerKey'
61+customersGet'
62+ :: Text -- ^ 'customerKey'
63+ -> CustomersGet'
64+customersGet' pCgCustomerKey_ =
65+ CustomersGet'
66+ { _cgCustomerKey = pCgCustomerKey_
67+ }
68+
69+-- | Id of the customer to be retrieved
70+cgCustomerKey :: Lens' CustomersGet' Text
71+cgCustomerKey
72+ = lens _cgCustomerKey
73+ (\ s a -> s{_cgCustomerKey = a})
74+
75+instance GoogleRequest CustomersGet' where
76+ type Rs CustomersGet' = Customer
77+ requestClient CustomersGet'{..}
78+ = go _cgCustomerKey (Just AltJSON) directoryService
79+ where go
80+ = buildClient (Proxy :: Proxy CustomersGetResource)
81+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Customers/Patch.hsnew file+94
@@ -0,0 +1,94 @@
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.Directory.Customers.Patch
17+-- Copyright : (c) 2015 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 a customer. This method supports patch semantics.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryCustomersPatch@.
26+module Network.Google.Resource.Directory.Customers.Patch
27+ (
28+ -- * REST Resource
29+ CustomersPatchResource
30+
31+ -- * Creating a Request
32+ , customersPatch'
33+ , CustomersPatch'
34+
35+ -- * Request Lenses
36+ , cpCustomerKey
37+ , cpPayload
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryCustomersPatch@ method which the
44+-- 'CustomersPatch'' request conforms to.
45+type CustomersPatchResource =
46+ "customers" :>
47+ Capture "customerKey" Text :>
48+ QueryParam "alt" AltJSON :>
49+ ReqBody '[JSON] Customer :> Patch '[JSON] Customer
50+
51+-- | Updates a customer. This method supports patch semantics.
52+--
53+-- /See:/ 'customersPatch'' smart constructor.
54+data CustomersPatch' = CustomersPatch'
55+ { _cpCustomerKey :: !Text
56+ , _cpPayload :: !Customer
57+ } deriving (Eq,Show,Data,Typeable,Generic)
58+
59+-- | Creates a value of 'CustomersPatch'' with the minimum fields required to make a request.
60+--
61+-- Use one of the following lenses to modify other fields as desired:
62+--
63+-- * 'cpCustomerKey'
64+--
65+-- * 'cpPayload'
66+customersPatch'
67+ :: Text -- ^ 'customerKey'
68+ -> Customer -- ^ 'payload'
69+ -> CustomersPatch'
70+customersPatch' pCpCustomerKey_ pCpPayload_ =
71+ CustomersPatch'
72+ { _cpCustomerKey = pCpCustomerKey_
73+ , _cpPayload = pCpPayload_
74+ }
75+
76+-- | Id of the customer to be updated
77+cpCustomerKey :: Lens' CustomersPatch' Text
78+cpCustomerKey
79+ = lens _cpCustomerKey
80+ (\ s a -> s{_cpCustomerKey = a})
81+
82+-- | Multipart request metadata.
83+cpPayload :: Lens' CustomersPatch' Customer
84+cpPayload
85+ = lens _cpPayload (\ s a -> s{_cpPayload = a})
86+
87+instance GoogleRequest CustomersPatch' where
88+ type Rs CustomersPatch' = Customer
89+ requestClient CustomersPatch'{..}
90+ = go _cpCustomerKey (Just AltJSON) _cpPayload
91+ directoryService
92+ where go
93+ = buildClient (Proxy :: Proxy CustomersPatchResource)
94+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Customers/Update.hsnew file+95
@@ -0,0 +1,95 @@
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.Directory.Customers.Update
17+-- Copyright : (c) 2015 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 a customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryCustomersUpdate@.
26+module Network.Google.Resource.Directory.Customers.Update
27+ (
28+ -- * REST Resource
29+ CustomersUpdateResource
30+
31+ -- * Creating a Request
32+ , customersUpdate'
33+ , CustomersUpdate'
34+
35+ -- * Request Lenses
36+ , cuCustomerKey
37+ , cuPayload
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryCustomersUpdate@ method which the
44+-- 'CustomersUpdate'' request conforms to.
45+type CustomersUpdateResource =
46+ "customers" :>
47+ Capture "customerKey" Text :>
48+ QueryParam "alt" AltJSON :>
49+ ReqBody '[JSON] Customer :> Put '[JSON] Customer
50+
51+-- | Updates a customer.
52+--
53+-- /See:/ 'customersUpdate'' smart constructor.
54+data CustomersUpdate' = CustomersUpdate'
55+ { _cuCustomerKey :: !Text
56+ , _cuPayload :: !Customer
57+ } deriving (Eq,Show,Data,Typeable,Generic)
58+
59+-- | Creates a value of 'CustomersUpdate'' with the minimum fields required to make a request.
60+--
61+-- Use one of the following lenses to modify other fields as desired:
62+--
63+-- * 'cuCustomerKey'
64+--
65+-- * 'cuPayload'
66+customersUpdate'
67+ :: Text -- ^ 'customerKey'
68+ -> Customer -- ^ 'payload'
69+ -> CustomersUpdate'
70+customersUpdate' pCuCustomerKey_ pCuPayload_ =
71+ CustomersUpdate'
72+ { _cuCustomerKey = pCuCustomerKey_
73+ , _cuPayload = pCuPayload_
74+ }
75+
76+-- | Id of the customer to be updated
77+cuCustomerKey :: Lens' CustomersUpdate' Text
78+cuCustomerKey
79+ = lens _cuCustomerKey
80+ (\ s a -> s{_cuCustomerKey = a})
81+
82+-- | Multipart request metadata.
83+cuPayload :: Lens' CustomersUpdate' Customer
84+cuPayload
85+ = lens _cuPayload (\ s a -> s{_cuPayload = a})
86+
87+instance GoogleRequest CustomersUpdate' where
88+ type Rs CustomersUpdate' = Customer
89+ requestClient CustomersUpdate'{..}
90+ = go _cuCustomerKey (Just AltJSON) _cuPayload
91+ directoryService
92+ where go
93+ = buildClient
94+ (Proxy :: Proxy CustomersUpdateResource)
95+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/Delete.hsnew file+96
@@ -0,0 +1,96 @@
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.Directory.DomainAliases.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes a Domain Alias of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainAliasesDelete@.
26+module Network.Google.Resource.Directory.DomainAliases.Delete
27+ (
28+ -- * REST Resource
29+ DomainAliasesDeleteResource
30+
31+ -- * Creating a Request
32+ , domainAliasesDelete'
33+ , DomainAliasesDelete'
34+
35+ -- * Request Lenses
36+ , dadDomainAliasName
37+ , dadCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainAliasesDelete@ method which the
44+-- 'DomainAliasesDelete'' request conforms to.
45+type DomainAliasesDeleteResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domainaliases" :>
49+ Capture "domainAliasName" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
51+
52+-- | Deletes a Domain Alias of the customer.
53+--
54+-- /See:/ 'domainAliasesDelete'' smart constructor.
55+data DomainAliasesDelete' = DomainAliasesDelete'
56+ { _dadDomainAliasName :: !Text
57+ , _dadCustomer :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'DomainAliasesDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'dadDomainAliasName'
65+--
66+-- * 'dadCustomer'
67+domainAliasesDelete'
68+ :: Text -- ^ 'domainAliasName'
69+ -> Text -- ^ 'customer'
70+ -> DomainAliasesDelete'
71+domainAliasesDelete' pDadDomainAliasName_ pDadCustomer_ =
72+ DomainAliasesDelete'
73+ { _dadDomainAliasName = pDadDomainAliasName_
74+ , _dadCustomer = pDadCustomer_
75+ }
76+
77+-- | Name of domain alias to be retrieved.
78+dadDomainAliasName :: Lens' DomainAliasesDelete' Text
79+dadDomainAliasName
80+ = lens _dadDomainAliasName
81+ (\ s a -> s{_dadDomainAliasName = a})
82+
83+-- | Immutable id of the Google Apps account.
84+dadCustomer :: Lens' DomainAliasesDelete' Text
85+dadCustomer
86+ = lens _dadCustomer (\ s a -> s{_dadCustomer = a})
87+
88+instance GoogleRequest DomainAliasesDelete' where
89+ type Rs DomainAliasesDelete' = ()
90+ requestClient DomainAliasesDelete'{..}
91+ = go _dadCustomer _dadDomainAliasName (Just AltJSON)
92+ directoryService
93+ where go
94+ = buildClient
95+ (Proxy :: Proxy DomainAliasesDeleteResource)
96+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/Get.hsnew file+96
@@ -0,0 +1,96 @@
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.Directory.DomainAliases.Get
17+-- Copyright : (c) 2015 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+-- | Retrieves a domain alias of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainAliasesGet@.
26+module Network.Google.Resource.Directory.DomainAliases.Get
27+ (
28+ -- * REST Resource
29+ DomainAliasesGetResource
30+
31+ -- * Creating a Request
32+ , domainAliasesGet'
33+ , DomainAliasesGet'
34+
35+ -- * Request Lenses
36+ , dagDomainAliasName
37+ , dagCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainAliasesGet@ method which the
44+-- 'DomainAliasesGet'' request conforms to.
45+type DomainAliasesGetResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domainaliases" :>
49+ Capture "domainAliasName" Text :>
50+ QueryParam "alt" AltJSON :> Get '[JSON] DomainAlias
51+
52+-- | Retrieves a domain alias of the customer.
53+--
54+-- /See:/ 'domainAliasesGet'' smart constructor.
55+data DomainAliasesGet' = DomainAliasesGet'
56+ { _dagDomainAliasName :: !Text
57+ , _dagCustomer :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'DomainAliasesGet'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'dagDomainAliasName'
65+--
66+-- * 'dagCustomer'
67+domainAliasesGet'
68+ :: Text -- ^ 'domainAliasName'
69+ -> Text -- ^ 'customer'
70+ -> DomainAliasesGet'
71+domainAliasesGet' pDagDomainAliasName_ pDagCustomer_ =
72+ DomainAliasesGet'
73+ { _dagDomainAliasName = pDagDomainAliasName_
74+ , _dagCustomer = pDagCustomer_
75+ }
76+
77+-- | Name of domain alias to be retrieved.
78+dagDomainAliasName :: Lens' DomainAliasesGet' Text
79+dagDomainAliasName
80+ = lens _dagDomainAliasName
81+ (\ s a -> s{_dagDomainAliasName = a})
82+
83+-- | Immutable id of the Google Apps account.
84+dagCustomer :: Lens' DomainAliasesGet' Text
85+dagCustomer
86+ = lens _dagCustomer (\ s a -> s{_dagCustomer = a})
87+
88+instance GoogleRequest DomainAliasesGet' where
89+ type Rs DomainAliasesGet' = DomainAlias
90+ requestClient DomainAliasesGet'{..}
91+ = go _dagCustomer _dagDomainAliasName (Just AltJSON)
92+ directoryService
93+ where go
94+ = buildClient
95+ (Proxy :: Proxy DomainAliasesGetResource)
96+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/Insert.hsnew file+96
@@ -0,0 +1,96 @@
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.Directory.DomainAliases.Insert
17+-- Copyright : (c) 2015 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+-- | Inserts a Domain alias of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainAliasesInsert@.
26+module Network.Google.Resource.Directory.DomainAliases.Insert
27+ (
28+ -- * REST Resource
29+ DomainAliasesInsertResource
30+
31+ -- * Creating a Request
32+ , domainAliasesInsert'
33+ , DomainAliasesInsert'
34+
35+ -- * Request Lenses
36+ , daiPayload
37+ , daiCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainAliasesInsert@ method which the
44+-- 'DomainAliasesInsert'' request conforms to.
45+type DomainAliasesInsertResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domainaliases" :>
49+ QueryParam "alt" AltJSON :>
50+ ReqBody '[JSON] DomainAlias :>
51+ Post '[JSON] DomainAlias
52+
53+-- | Inserts a Domain alias of the customer.
54+--
55+-- /See:/ 'domainAliasesInsert'' smart constructor.
56+data DomainAliasesInsert' = DomainAliasesInsert'
57+ { _daiPayload :: !DomainAlias
58+ , _daiCustomer :: !Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'DomainAliasesInsert'' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'daiPayload'
66+--
67+-- * 'daiCustomer'
68+domainAliasesInsert'
69+ :: DomainAlias -- ^ 'payload'
70+ -> Text -- ^ 'customer'
71+ -> DomainAliasesInsert'
72+domainAliasesInsert' pDaiPayload_ pDaiCustomer_ =
73+ DomainAliasesInsert'
74+ { _daiPayload = pDaiPayload_
75+ , _daiCustomer = pDaiCustomer_
76+ }
77+
78+-- | Multipart request metadata.
79+daiPayload :: Lens' DomainAliasesInsert' DomainAlias
80+daiPayload
81+ = lens _daiPayload (\ s a -> s{_daiPayload = a})
82+
83+-- | Immutable id of the Google Apps account.
84+daiCustomer :: Lens' DomainAliasesInsert' Text
85+daiCustomer
86+ = lens _daiCustomer (\ s a -> s{_daiCustomer = a})
87+
88+instance GoogleRequest DomainAliasesInsert' where
89+ type Rs DomainAliasesInsert' = DomainAlias
90+ requestClient DomainAliasesInsert'{..}
91+ = go _daiCustomer (Just AltJSON) _daiPayload
92+ directoryService
93+ where go
94+ = buildClient
95+ (Proxy :: Proxy DomainAliasesInsertResource)
96+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/DomainAliases/List.hsnew file+95
@@ -0,0 +1,95 @@
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.Directory.DomainAliases.List
17+-- Copyright : (c) 2015 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+-- | Lists the domain aliases of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainAliasesList@.
26+module Network.Google.Resource.Directory.DomainAliases.List
27+ (
28+ -- * REST Resource
29+ DomainAliasesListResource
30+
31+ -- * Creating a Request
32+ , domainAliasesList'
33+ , DomainAliasesList'
34+
35+ -- * Request Lenses
36+ , dalCustomer
37+ , dalParentDomainName
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainAliasesList@ method which the
44+-- 'DomainAliasesList'' request conforms to.
45+type DomainAliasesListResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domainaliases" :>
49+ QueryParam "parentDomainName" Text :>
50+ QueryParam "alt" AltJSON :> Get '[JSON] DomainAliases
51+
52+-- | Lists the domain aliases of the customer.
53+--
54+-- /See:/ 'domainAliasesList'' smart constructor.
55+data DomainAliasesList' = DomainAliasesList'
56+ { _dalCustomer :: !Text
57+ , _dalParentDomainName :: !(Maybe Text)
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'DomainAliasesList'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'dalCustomer'
65+--
66+-- * 'dalParentDomainName'
67+domainAliasesList'
68+ :: Text -- ^ 'customer'
69+ -> DomainAliasesList'
70+domainAliasesList' pDalCustomer_ =
71+ DomainAliasesList'
72+ { _dalCustomer = pDalCustomer_
73+ , _dalParentDomainName = Nothing
74+ }
75+
76+-- | Immutable id of the Google Apps account.
77+dalCustomer :: Lens' DomainAliasesList' Text
78+dalCustomer
79+ = lens _dalCustomer (\ s a -> s{_dalCustomer = a})
80+
81+-- | Name of the parent domain for which domain aliases are to be fetched.
82+dalParentDomainName :: Lens' DomainAliasesList' (Maybe Text)
83+dalParentDomainName
84+ = lens _dalParentDomainName
85+ (\ s a -> s{_dalParentDomainName = a})
86+
87+instance GoogleRequest DomainAliasesList' where
88+ type Rs DomainAliasesList' = DomainAliases
89+ requestClient DomainAliasesList'{..}
90+ = go _dalCustomer _dalParentDomainName (Just AltJSON)
91+ directoryService
92+ where go
93+ = buildClient
94+ (Proxy :: Proxy DomainAliasesListResource)
95+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/Delete.hsnew file+94
@@ -0,0 +1,94 @@
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.Directory.Domains.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes a domain of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainsDelete@.
26+module Network.Google.Resource.Directory.Domains.Delete
27+ (
28+ -- * REST Resource
29+ DomainsDeleteResource
30+
31+ -- * Creating a Request
32+ , domainsDelete'
33+ , DomainsDelete'
34+
35+ -- * Request Lenses
36+ , ddCustomer
37+ , ddDomainName
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainsDelete@ method which the
44+-- 'DomainsDelete'' request conforms to.
45+type DomainsDeleteResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domains" :>
49+ Capture "domainName" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
51+
52+-- | Deletes a domain of the customer.
53+--
54+-- /See:/ 'domainsDelete'' smart constructor.
55+data DomainsDelete' = DomainsDelete'
56+ { _ddCustomer :: !Text
57+ , _ddDomainName :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'DomainsDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'ddCustomer'
65+--
66+-- * 'ddDomainName'
67+domainsDelete'
68+ :: Text -- ^ 'customer'
69+ -> Text -- ^ 'domainName'
70+ -> DomainsDelete'
71+domainsDelete' pDdCustomer_ pDdDomainName_ =
72+ DomainsDelete'
73+ { _ddCustomer = pDdCustomer_
74+ , _ddDomainName = pDdDomainName_
75+ }
76+
77+-- | Immutable id of the Google Apps account.
78+ddCustomer :: Lens' DomainsDelete' Text
79+ddCustomer
80+ = lens _ddCustomer (\ s a -> s{_ddCustomer = a})
81+
82+-- | Name of domain to be deleted
83+ddDomainName :: Lens' DomainsDelete' Text
84+ddDomainName
85+ = lens _ddDomainName (\ s a -> s{_ddDomainName = a})
86+
87+instance GoogleRequest DomainsDelete' where
88+ type Rs DomainsDelete' = ()
89+ requestClient DomainsDelete'{..}
90+ = go _ddCustomer _ddDomainName (Just AltJSON)
91+ directoryService
92+ where go
93+ = buildClient (Proxy :: Proxy DomainsDeleteResource)
94+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/Get.hsnew file+94
@@ -0,0 +1,94 @@
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.Directory.Domains.Get
17+-- Copyright : (c) 2015 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+-- | Retrives a domain of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainsGet@.
26+module Network.Google.Resource.Directory.Domains.Get
27+ (
28+ -- * REST Resource
29+ DomainsGetResource
30+
31+ -- * Creating a Request
32+ , domainsGet'
33+ , DomainsGet'
34+
35+ -- * Request Lenses
36+ , dgCustomer
37+ , dgDomainName
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainsGet@ method which the
44+-- 'DomainsGet'' request conforms to.
45+type DomainsGetResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domains" :>
49+ Capture "domainName" Text :>
50+ QueryParam "alt" AltJSON :> Get '[JSON] Domains
51+
52+-- | Retrives a domain of the customer.
53+--
54+-- /See:/ 'domainsGet'' smart constructor.
55+data DomainsGet' = DomainsGet'
56+ { _dgCustomer :: !Text
57+ , _dgDomainName :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'DomainsGet'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'dgCustomer'
65+--
66+-- * 'dgDomainName'
67+domainsGet'
68+ :: Text -- ^ 'customer'
69+ -> Text -- ^ 'domainName'
70+ -> DomainsGet'
71+domainsGet' pDgCustomer_ pDgDomainName_ =
72+ DomainsGet'
73+ { _dgCustomer = pDgCustomer_
74+ , _dgDomainName = pDgDomainName_
75+ }
76+
77+-- | Immutable id of the Google Apps account.
78+dgCustomer :: Lens' DomainsGet' Text
79+dgCustomer
80+ = lens _dgCustomer (\ s a -> s{_dgCustomer = a})
81+
82+-- | Name of domain to be retrieved
83+dgDomainName :: Lens' DomainsGet' Text
84+dgDomainName
85+ = lens _dgDomainName (\ s a -> s{_dgDomainName = a})
86+
87+instance GoogleRequest DomainsGet' where
88+ type Rs DomainsGet' = Domains
89+ requestClient DomainsGet'{..}
90+ = go _dgCustomer _dgDomainName (Just AltJSON)
91+ directoryService
92+ where go
93+ = buildClient (Proxy :: Proxy DomainsGetResource)
94+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/Insert.hsnew file+94
@@ -0,0 +1,94 @@
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.Directory.Domains.Insert
17+-- Copyright : (c) 2015 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+-- | Inserts a domain of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainsInsert@.
26+module Network.Google.Resource.Directory.Domains.Insert
27+ (
28+ -- * REST Resource
29+ DomainsInsertResource
30+
31+ -- * Creating a Request
32+ , domainsInsert'
33+ , DomainsInsert'
34+
35+ -- * Request Lenses
36+ , diPayload
37+ , diCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryDomainsInsert@ method which the
44+-- 'DomainsInsert'' request conforms to.
45+type DomainsInsertResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "domains" :>
49+ QueryParam "alt" AltJSON :>
50+ ReqBody '[JSON] Domains :> Post '[JSON] Domains
51+
52+-- | Inserts a domain of the customer.
53+--
54+-- /See:/ 'domainsInsert'' smart constructor.
55+data DomainsInsert' = DomainsInsert'
56+ { _diPayload :: !Domains
57+ , _diCustomer :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'DomainsInsert'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'diPayload'
65+--
66+-- * 'diCustomer'
67+domainsInsert'
68+ :: Domains -- ^ 'payload'
69+ -> Text -- ^ 'customer'
70+ -> DomainsInsert'
71+domainsInsert' pDiPayload_ pDiCustomer_ =
72+ DomainsInsert'
73+ { _diPayload = pDiPayload_
74+ , _diCustomer = pDiCustomer_
75+ }
76+
77+-- | Multipart request metadata.
78+diPayload :: Lens' DomainsInsert' Domains
79+diPayload
80+ = lens _diPayload (\ s a -> s{_diPayload = a})
81+
82+-- | Immutable id of the Google Apps account.
83+diCustomer :: Lens' DomainsInsert' Text
84+diCustomer
85+ = lens _diCustomer (\ s a -> s{_diCustomer = a})
86+
87+instance GoogleRequest DomainsInsert' where
88+ type Rs DomainsInsert' = Domains
89+ requestClient DomainsInsert'{..}
90+ = go _diCustomer (Just AltJSON) _diPayload
91+ directoryService
92+ where go
93+ = buildClient (Proxy :: Proxy DomainsInsertResource)
94+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Domains/List.hsnew file+81
@@ -0,0 +1,81 @@
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.Directory.Domains.List
17+-- Copyright : (c) 2015 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+-- | Lists the domains of the customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryDomainsList@.
26+module Network.Google.Resource.Directory.Domains.List
27+ (
28+ -- * REST Resource
29+ DomainsListResource
30+
31+ -- * Creating a Request
32+ , domainsList'
33+ , DomainsList'
34+
35+ -- * Request Lenses
36+ , dlCustomer
37+ ) where
38+
39+import Network.Google.Directory.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @DirectoryDomainsList@ method which the
43+-- 'DomainsList'' request conforms to.
44+type DomainsListResource =
45+ "customer" :>
46+ Capture "customer" Text :>
47+ "domains" :>
48+ QueryParam "alt" AltJSON :> Get '[JSON] Domains2
49+
50+-- | Lists the domains of the customer.
51+--
52+-- /See:/ 'domainsList'' smart constructor.
53+newtype DomainsList' = DomainsList'
54+ { _dlCustomer :: Text
55+ } deriving (Eq,Show,Data,Typeable,Generic)
56+
57+-- | Creates a value of 'DomainsList'' with the minimum fields required to make a request.
58+--
59+-- Use one of the following lenses to modify other fields as desired:
60+--
61+-- * 'dlCustomer'
62+domainsList'
63+ :: Text -- ^ 'customer'
64+ -> DomainsList'
65+domainsList' pDlCustomer_ =
66+ DomainsList'
67+ { _dlCustomer = pDlCustomer_
68+ }
69+
70+-- | Immutable id of the Google Apps account.
71+dlCustomer :: Lens' DomainsList' Text
72+dlCustomer
73+ = lens _dlCustomer (\ s a -> s{_dlCustomer = a})
74+
75+instance GoogleRequest DomainsList' where
76+ type Rs DomainsList' = Domains2
77+ requestClient DomainsList'{..}
78+ = go _dlCustomer (Just AltJSON) directoryService
79+ where go
80+ = buildClient (Proxy :: Proxy DomainsListResource)
81+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Privileges/List.hsnew file+83
@@ -0,0 +1,83 @@
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.Directory.Privileges.List
17+-- Copyright : (c) 2015 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+-- | Retrieves a paginated list of all privileges for a customer.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryPrivilegesList@.
26+module Network.Google.Resource.Directory.Privileges.List
27+ (
28+ -- * REST Resource
29+ PrivilegesListResource
30+
31+ -- * Creating a Request
32+ , privilegesList'
33+ , PrivilegesList'
34+
35+ -- * Request Lenses
36+ , plCustomer
37+ ) where
38+
39+import Network.Google.Directory.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @DirectoryPrivilegesList@ method which the
43+-- 'PrivilegesList'' request conforms to.
44+type PrivilegesListResource =
45+ "customer" :>
46+ Capture "customer" Text :>
47+ "roles" :>
48+ "ALL" :>
49+ "privileges" :>
50+ QueryParam "alt" AltJSON :> Get '[JSON] Privileges
51+
52+-- | Retrieves a paginated list of all privileges for a customer.
53+--
54+-- /See:/ 'privilegesList'' smart constructor.
55+newtype PrivilegesList' = PrivilegesList'
56+ { _plCustomer :: Text
57+ } deriving (Eq,Show,Data,Typeable,Generic)
58+
59+-- | Creates a value of 'PrivilegesList'' with the minimum fields required to make a request.
60+--
61+-- Use one of the following lenses to modify other fields as desired:
62+--
63+-- * 'plCustomer'
64+privilegesList'
65+ :: Text -- ^ 'customer'
66+ -> PrivilegesList'
67+privilegesList' pPlCustomer_ =
68+ PrivilegesList'
69+ { _plCustomer = pPlCustomer_
70+ }
71+
72+-- | Immutable ID of the Google Apps account.
73+plCustomer :: Lens' PrivilegesList' Text
74+plCustomer
75+ = lens _plCustomer (\ s a -> s{_plCustomer = a})
76+
77+instance GoogleRequest PrivilegesList' where
78+ type Rs PrivilegesList' = Privileges
79+ requestClient PrivilegesList'{..}
80+ = go _plCustomer (Just AltJSON) directoryService
81+ where go
82+ = buildClient (Proxy :: Proxy PrivilegesListResource)
83+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Delete.hsnew file+96
@@ -0,0 +1,96 @@
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.Directory.RoleAssignments.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes a role assignment.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRoleAssignmentsDelete@.
26+module Network.Google.Resource.Directory.RoleAssignments.Delete
27+ (
28+ -- * REST Resource
29+ RoleAssignmentsDeleteResource
30+
31+ -- * Creating a Request
32+ , roleAssignmentsDelete'
33+ , RoleAssignmentsDelete'
34+
35+ -- * Request Lenses
36+ , radCustomer
37+ , radRoleAssignmentId
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryRoleAssignmentsDelete@ method which the
44+-- 'RoleAssignmentsDelete'' request conforms to.
45+type RoleAssignmentsDeleteResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "roleassignments" :>
49+ Capture "roleAssignmentId" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
51+
52+-- | Deletes a role assignment.
53+--
54+-- /See:/ 'roleAssignmentsDelete'' smart constructor.
55+data RoleAssignmentsDelete' = RoleAssignmentsDelete'
56+ { _radCustomer :: !Text
57+ , _radRoleAssignmentId :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'RoleAssignmentsDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'radCustomer'
65+--
66+-- * 'radRoleAssignmentId'
67+roleAssignmentsDelete'
68+ :: Text -- ^ 'customer'
69+ -> Text -- ^ 'roleAssignmentId'
70+ -> RoleAssignmentsDelete'
71+roleAssignmentsDelete' pRadCustomer_ pRadRoleAssignmentId_ =
72+ RoleAssignmentsDelete'
73+ { _radCustomer = pRadCustomer_
74+ , _radRoleAssignmentId = pRadRoleAssignmentId_
75+ }
76+
77+-- | Immutable ID of the Google Apps account.
78+radCustomer :: Lens' RoleAssignmentsDelete' Text
79+radCustomer
80+ = lens _radCustomer (\ s a -> s{_radCustomer = a})
81+
82+-- | Immutable ID of the role assignment.
83+radRoleAssignmentId :: Lens' RoleAssignmentsDelete' Text
84+radRoleAssignmentId
85+ = lens _radRoleAssignmentId
86+ (\ s a -> s{_radRoleAssignmentId = a})
87+
88+instance GoogleRequest RoleAssignmentsDelete' where
89+ type Rs RoleAssignmentsDelete' = ()
90+ requestClient RoleAssignmentsDelete'{..}
91+ = go _radCustomer _radRoleAssignmentId (Just AltJSON)
92+ directoryService
93+ where go
94+ = buildClient
95+ (Proxy :: Proxy RoleAssignmentsDeleteResource)
96+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Get.hsnew file+97
@@ -0,0 +1,97 @@
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.Directory.RoleAssignments.Get
17+-- Copyright : (c) 2015 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+-- | Retrieve a role assignment.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRoleAssignmentsGet@.
26+module Network.Google.Resource.Directory.RoleAssignments.Get
27+ (
28+ -- * REST Resource
29+ RoleAssignmentsGetResource
30+
31+ -- * Creating a Request
32+ , roleAssignmentsGet'
33+ , RoleAssignmentsGet'
34+
35+ -- * Request Lenses
36+ , ragCustomer
37+ , ragRoleAssignmentId
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryRoleAssignmentsGet@ method which the
44+-- 'RoleAssignmentsGet'' request conforms to.
45+type RoleAssignmentsGetResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "roleassignments" :>
49+ Capture "roleAssignmentId" Text :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] RoleAssignment
52+
53+-- | Retrieve a role assignment.
54+--
55+-- /See:/ 'roleAssignmentsGet'' smart constructor.
56+data RoleAssignmentsGet' = RoleAssignmentsGet'
57+ { _ragCustomer :: !Text
58+ , _ragRoleAssignmentId :: !Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'RoleAssignmentsGet'' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'ragCustomer'
66+--
67+-- * 'ragRoleAssignmentId'
68+roleAssignmentsGet'
69+ :: Text -- ^ 'customer'
70+ -> Text -- ^ 'roleAssignmentId'
71+ -> RoleAssignmentsGet'
72+roleAssignmentsGet' pRagCustomer_ pRagRoleAssignmentId_ =
73+ RoleAssignmentsGet'
74+ { _ragCustomer = pRagCustomer_
75+ , _ragRoleAssignmentId = pRagRoleAssignmentId_
76+ }
77+
78+-- | Immutable ID of the Google Apps account.
79+ragCustomer :: Lens' RoleAssignmentsGet' Text
80+ragCustomer
81+ = lens _ragCustomer (\ s a -> s{_ragCustomer = a})
82+
83+-- | Immutable ID of the role assignment.
84+ragRoleAssignmentId :: Lens' RoleAssignmentsGet' Text
85+ragRoleAssignmentId
86+ = lens _ragRoleAssignmentId
87+ (\ s a -> s{_ragRoleAssignmentId = a})
88+
89+instance GoogleRequest RoleAssignmentsGet' where
90+ type Rs RoleAssignmentsGet' = RoleAssignment
91+ requestClient RoleAssignmentsGet'{..}
92+ = go _ragCustomer _ragRoleAssignmentId (Just AltJSON)
93+ directoryService
94+ where go
95+ = buildClient
96+ (Proxy :: Proxy RoleAssignmentsGetResource)
97+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Insert.hsnew file+96
@@ -0,0 +1,96 @@
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.Directory.RoleAssignments.Insert
17+-- Copyright : (c) 2015 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+-- | Creates a role assignment.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRoleAssignmentsInsert@.
26+module Network.Google.Resource.Directory.RoleAssignments.Insert
27+ (
28+ -- * REST Resource
29+ RoleAssignmentsInsertResource
30+
31+ -- * Creating a Request
32+ , roleAssignmentsInsert'
33+ , RoleAssignmentsInsert'
34+
35+ -- * Request Lenses
36+ , raiPayload
37+ , raiCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryRoleAssignmentsInsert@ method which the
44+-- 'RoleAssignmentsInsert'' request conforms to.
45+type RoleAssignmentsInsertResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "roleassignments" :>
49+ QueryParam "alt" AltJSON :>
50+ ReqBody '[JSON] RoleAssignment :>
51+ Post '[JSON] RoleAssignment
52+
53+-- | Creates a role assignment.
54+--
55+-- /See:/ 'roleAssignmentsInsert'' smart constructor.
56+data RoleAssignmentsInsert' = RoleAssignmentsInsert'
57+ { _raiPayload :: !RoleAssignment
58+ , _raiCustomer :: !Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'RoleAssignmentsInsert'' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'raiPayload'
66+--
67+-- * 'raiCustomer'
68+roleAssignmentsInsert'
69+ :: RoleAssignment -- ^ 'payload'
70+ -> Text -- ^ 'customer'
71+ -> RoleAssignmentsInsert'
72+roleAssignmentsInsert' pRaiPayload_ pRaiCustomer_ =
73+ RoleAssignmentsInsert'
74+ { _raiPayload = pRaiPayload_
75+ , _raiCustomer = pRaiCustomer_
76+ }
77+
78+-- | Multipart request metadata.
79+raiPayload :: Lens' RoleAssignmentsInsert' RoleAssignment
80+raiPayload
81+ = lens _raiPayload (\ s a -> s{_raiPayload = a})
82+
83+-- | Immutable ID of the Google Apps account.
84+raiCustomer :: Lens' RoleAssignmentsInsert' Text
85+raiCustomer
86+ = lens _raiCustomer (\ s a -> s{_raiCustomer = a})
87+
88+instance GoogleRequest RoleAssignmentsInsert' where
89+ type Rs RoleAssignmentsInsert' = RoleAssignment
90+ requestClient RoleAssignmentsInsert'{..}
91+ = go _raiCustomer (Just AltJSON) _raiPayload
92+ directoryService
93+ where go
94+ = buildClient
95+ (Proxy :: Proxy RoleAssignmentsInsertResource)
96+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/List.hsnew file+135
@@ -0,0 +1,135 @@
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.Directory.RoleAssignments.List
17+-- Copyright : (c) 2015 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+-- | Retrieves a paginated list of all roleAssignments.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRoleAssignmentsList@.
26+module Network.Google.Resource.Directory.RoleAssignments.List
27+ (
28+ -- * REST Resource
29+ RoleAssignmentsListResource
30+
31+ -- * Creating a Request
32+ , roleAssignmentsList'
33+ , RoleAssignmentsList'
34+
35+ -- * Request Lenses
36+ , ralRoleId
37+ , ralCustomer
38+ , ralPageToken
39+ , ralUserKey
40+ , ralMaxResults
41+ ) where
42+
43+import Network.Google.Directory.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @DirectoryRoleAssignmentsList@ method which the
47+-- 'RoleAssignmentsList'' request conforms to.
48+type RoleAssignmentsListResource =
49+ "customer" :>
50+ Capture "customer" Text :>
51+ "roleassignments" :>
52+ QueryParam "roleId" Text :>
53+ QueryParam "pageToken" Text :>
54+ QueryParam "userKey" Text :>
55+ QueryParam "maxResults" Int32 :>
56+ QueryParam "alt" AltJSON :>
57+ Get '[JSON] RoleAssignments
58+
59+-- | Retrieves a paginated list of all roleAssignments.
60+--
61+-- /See:/ 'roleAssignmentsList'' smart constructor.
62+data RoleAssignmentsList' = RoleAssignmentsList'
63+ { _ralRoleId :: !(Maybe Text)
64+ , _ralCustomer :: !Text
65+ , _ralPageToken :: !(Maybe Text)
66+ , _ralUserKey :: !(Maybe Text)
67+ , _ralMaxResults :: !(Maybe Int32)
68+ } deriving (Eq,Show,Data,Typeable,Generic)
69+
70+-- | Creates a value of 'RoleAssignmentsList'' with the minimum fields required to make a request.
71+--
72+-- Use one of the following lenses to modify other fields as desired:
73+--
74+-- * 'ralRoleId'
75+--
76+-- * 'ralCustomer'
77+--
78+-- * 'ralPageToken'
79+--
80+-- * 'ralUserKey'
81+--
82+-- * 'ralMaxResults'
83+roleAssignmentsList'
84+ :: Text -- ^ 'customer'
85+ -> RoleAssignmentsList'
86+roleAssignmentsList' pRalCustomer_ =
87+ RoleAssignmentsList'
88+ { _ralRoleId = Nothing
89+ , _ralCustomer = pRalCustomer_
90+ , _ralPageToken = Nothing
91+ , _ralUserKey = Nothing
92+ , _ralMaxResults = Nothing
93+ }
94+
95+-- | Immutable ID of a role. If included in the request, returns only role
96+-- assignments containing this role ID.
97+ralRoleId :: Lens' RoleAssignmentsList' (Maybe Text)
98+ralRoleId
99+ = lens _ralRoleId (\ s a -> s{_ralRoleId = a})
100+
101+-- | Immutable ID of the Google Apps account.
102+ralCustomer :: Lens' RoleAssignmentsList' Text
103+ralCustomer
104+ = lens _ralCustomer (\ s a -> s{_ralCustomer = a})
105+
106+-- | Token to specify the next page in the list.
107+ralPageToken :: Lens' RoleAssignmentsList' (Maybe Text)
108+ralPageToken
109+ = lens _ralPageToken (\ s a -> s{_ralPageToken = a})
110+
111+-- | The user\'s primary email address, alias email address, or unique user
112+-- ID. If included in the request, returns role assignments only for this
113+-- user.
114+ralUserKey :: Lens' RoleAssignmentsList' (Maybe Text)
115+ralUserKey
116+ = lens _ralUserKey (\ s a -> s{_ralUserKey = a})
117+
118+-- | Maximum number of results to return.
119+ralMaxResults :: Lens' RoleAssignmentsList' (Maybe Int32)
120+ralMaxResults
121+ = lens _ralMaxResults
122+ (\ s a -> s{_ralMaxResults = a})
123+
124+instance GoogleRequest RoleAssignmentsList' where
125+ type Rs RoleAssignmentsList' = RoleAssignments
126+ requestClient RoleAssignmentsList'{..}
127+ = go _ralCustomer _ralRoleId _ralPageToken
128+ _ralUserKey
129+ _ralMaxResults
130+ (Just AltJSON)
131+ directoryService
132+ where go
133+ = buildClient
134+ (Proxy :: Proxy RoleAssignmentsListResource)
135+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Delete.hsnew file+93
@@ -0,0 +1,93 @@
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.Directory.Roles.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes a role.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRolesDelete@.
26+module Network.Google.Resource.Directory.Roles.Delete
27+ (
28+ -- * REST Resource
29+ RolesDeleteResource
30+
31+ -- * Creating a Request
32+ , rolesDelete'
33+ , RolesDelete'
34+
35+ -- * Request Lenses
36+ , rdRoleId
37+ , rdCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryRolesDelete@ method which the
44+-- 'RolesDelete'' request conforms to.
45+type RolesDeleteResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "roles" :>
49+ Capture "roleId" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
51+
52+-- | Deletes a role.
53+--
54+-- /See:/ 'rolesDelete'' smart constructor.
55+data RolesDelete' = RolesDelete'
56+ { _rdRoleId :: !Text
57+ , _rdCustomer :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'RolesDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'rdRoleId'
65+--
66+-- * 'rdCustomer'
67+rolesDelete'
68+ :: Text -- ^ 'roleId'
69+ -> Text -- ^ 'customer'
70+ -> RolesDelete'
71+rolesDelete' pRdRoleId_ pRdCustomer_ =
72+ RolesDelete'
73+ { _rdRoleId = pRdRoleId_
74+ , _rdCustomer = pRdCustomer_
75+ }
76+
77+-- | Immutable ID of the role.
78+rdRoleId :: Lens' RolesDelete' Text
79+rdRoleId = lens _rdRoleId (\ s a -> s{_rdRoleId = a})
80+
81+-- | Immutable ID of the Google Apps account.
82+rdCustomer :: Lens' RolesDelete' Text
83+rdCustomer
84+ = lens _rdCustomer (\ s a -> s{_rdCustomer = a})
85+
86+instance GoogleRequest RolesDelete' where
87+ type Rs RolesDelete' = ()
88+ requestClient RolesDelete'{..}
89+ = go _rdCustomer _rdRoleId (Just AltJSON)
90+ directoryService
91+ where go
92+ = buildClient (Proxy :: Proxy RolesDeleteResource)
93+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Get.hsnew file+93
@@ -0,0 +1,93 @@
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.Directory.Roles.Get
17+-- Copyright : (c) 2015 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+-- | Retrieves a role.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRolesGet@.
26+module Network.Google.Resource.Directory.Roles.Get
27+ (
28+ -- * REST Resource
29+ RolesGetResource
30+
31+ -- * Creating a Request
32+ , rolesGet'
33+ , RolesGet'
34+
35+ -- * Request Lenses
36+ , rgRoleId
37+ , rgCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryRolesGet@ method which the
44+-- 'RolesGet'' request conforms to.
45+type RolesGetResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "roles" :>
49+ Capture "roleId" Text :>
50+ QueryParam "alt" AltJSON :> Get '[JSON] Role
51+
52+-- | Retrieves a role.
53+--
54+-- /See:/ 'rolesGet'' smart constructor.
55+data RolesGet' = RolesGet'
56+ { _rgRoleId :: !Text
57+ , _rgCustomer :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'RolesGet'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'rgRoleId'
65+--
66+-- * 'rgCustomer'
67+rolesGet'
68+ :: Text -- ^ 'roleId'
69+ -> Text -- ^ 'customer'
70+ -> RolesGet'
71+rolesGet' pRgRoleId_ pRgCustomer_ =
72+ RolesGet'
73+ { _rgRoleId = pRgRoleId_
74+ , _rgCustomer = pRgCustomer_
75+ }
76+
77+-- | Immutable ID of the role.
78+rgRoleId :: Lens' RolesGet' Text
79+rgRoleId = lens _rgRoleId (\ s a -> s{_rgRoleId = a})
80+
81+-- | Immutable ID of the Google Apps account.
82+rgCustomer :: Lens' RolesGet' Text
83+rgCustomer
84+ = lens _rgCustomer (\ s a -> s{_rgCustomer = a})
85+
86+instance GoogleRequest RolesGet' where
87+ type Rs RolesGet' = Role
88+ requestClient RolesGet'{..}
89+ = go _rgCustomer _rgRoleId (Just AltJSON)
90+ directoryService
91+ where go
92+ = buildClient (Proxy :: Proxy RolesGetResource)
93+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Insert.hsnew file+94
@@ -0,0 +1,94 @@
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.Directory.Roles.Insert
17+-- Copyright : (c) 2015 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+-- | Creates a role.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRolesInsert@.
26+module Network.Google.Resource.Directory.Roles.Insert
27+ (
28+ -- * REST Resource
29+ RolesInsertResource
30+
31+ -- * Creating a Request
32+ , rolesInsert'
33+ , RolesInsert'
34+
35+ -- * Request Lenses
36+ , riPayload
37+ , riCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @DirectoryRolesInsert@ method which the
44+-- 'RolesInsert'' request conforms to.
45+type RolesInsertResource =
46+ "customer" :>
47+ Capture "customer" Text :>
48+ "roles" :>
49+ QueryParam "alt" AltJSON :>
50+ ReqBody '[JSON] Role :> Post '[JSON] Role
51+
52+-- | Creates a role.
53+--
54+-- /See:/ 'rolesInsert'' smart constructor.
55+data RolesInsert' = RolesInsert'
56+ { _riPayload :: !Role
57+ , _riCustomer :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'RolesInsert'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'riPayload'
65+--
66+-- * 'riCustomer'
67+rolesInsert'
68+ :: Role -- ^ 'payload'
69+ -> Text -- ^ 'customer'
70+ -> RolesInsert'
71+rolesInsert' pRiPayload_ pRiCustomer_ =
72+ RolesInsert'
73+ { _riPayload = pRiPayload_
74+ , _riCustomer = pRiCustomer_
75+ }
76+
77+-- | Multipart request metadata.
78+riPayload :: Lens' RolesInsert' Role
79+riPayload
80+ = lens _riPayload (\ s a -> s{_riPayload = a})
81+
82+-- | Immutable ID of the Google Apps account.
83+riCustomer :: Lens' RolesInsert' Text
84+riCustomer
85+ = lens _riCustomer (\ s a -> s{_riCustomer = a})
86+
87+instance GoogleRequest RolesInsert' where
88+ type Rs RolesInsert' = Role
89+ requestClient RolesInsert'{..}
90+ = go _riCustomer (Just AltJSON) _riPayload
91+ directoryService
92+ where go
93+ = buildClient (Proxy :: Proxy RolesInsertResource)
94+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/List.hsnew file+105
@@ -0,0 +1,105 @@
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.Directory.Roles.List
17+-- Copyright : (c) 2015 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+-- | Retrieves a paginated list of all the roles in a domain.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRolesList@.
26+module Network.Google.Resource.Directory.Roles.List
27+ (
28+ -- * REST Resource
29+ RolesListResource
30+
31+ -- * Creating a Request
32+ , rolesList'
33+ , RolesList'
34+
35+ -- * Request Lenses
36+ , rlCustomer
37+ , rlPageToken
38+ , rlMaxResults
39+ ) where
40+
41+import Network.Google.Directory.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @DirectoryRolesList@ method which the
45+-- 'RolesList'' request conforms to.
46+type RolesListResource =
47+ "customer" :>
48+ Capture "customer" Text :>
49+ "roles" :>
50+ QueryParam "pageToken" Text :>
51+ QueryParam "maxResults" Int32 :>
52+ QueryParam "alt" AltJSON :> Get '[JSON] Roles
53+
54+-- | Retrieves a paginated list of all the roles in a domain.
55+--
56+-- /See:/ 'rolesList'' smart constructor.
57+data RolesList' = RolesList'
58+ { _rlCustomer :: !Text
59+ , _rlPageToken :: !(Maybe Text)
60+ , _rlMaxResults :: !(Maybe Int32)
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'RolesList'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'rlCustomer'
68+--
69+-- * 'rlPageToken'
70+--
71+-- * 'rlMaxResults'
72+rolesList'
73+ :: Text -- ^ 'customer'
74+ -> RolesList'
75+rolesList' pRlCustomer_ =
76+ RolesList'
77+ { _rlCustomer = pRlCustomer_
78+ , _rlPageToken = Nothing
79+ , _rlMaxResults = Nothing
80+ }
81+
82+-- | Immutable id of the Google Apps account.
83+rlCustomer :: Lens' RolesList' Text
84+rlCustomer
85+ = lens _rlCustomer (\ s a -> s{_rlCustomer = a})
86+
87+-- | Token to specify the next page in the list.
88+rlPageToken :: Lens' RolesList' (Maybe Text)
89+rlPageToken
90+ = lens _rlPageToken (\ s a -> s{_rlPageToken = a})
91+
92+-- | Maximum number of results to return.
93+rlMaxResults :: Lens' RolesList' (Maybe Int32)
94+rlMaxResults
95+ = lens _rlMaxResults (\ s a -> s{_rlMaxResults = a})
96+
97+instance GoogleRequest RolesList' where
98+ type Rs RolesList' = Roles
99+ requestClient RolesList'{..}
100+ = go _rlCustomer _rlPageToken _rlMaxResults
101+ (Just AltJSON)
102+ directoryService
103+ where go
104+ = buildClient (Proxy :: Proxy RolesListResource)
105+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Patch.hsnew file+105
@@ -0,0 +1,105 @@
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.Directory.Roles.Patch
17+-- Copyright : (c) 2015 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 a role. This method supports patch semantics.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRolesPatch@.
26+module Network.Google.Resource.Directory.Roles.Patch
27+ (
28+ -- * REST Resource
29+ RolesPatchResource
30+
31+ -- * Creating a Request
32+ , rolesPatch'
33+ , RolesPatch'
34+
35+ -- * Request Lenses
36+ , rpPayload
37+ , rpRoleId
38+ , rpCustomer
39+ ) where
40+
41+import Network.Google.Directory.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @DirectoryRolesPatch@ method which the
45+-- 'RolesPatch'' request conforms to.
46+type RolesPatchResource =
47+ "customer" :>
48+ Capture "customer" Text :>
49+ "roles" :>
50+ Capture "roleId" Text :>
51+ QueryParam "alt" AltJSON :>
52+ ReqBody '[JSON] Role :> Patch '[JSON] Role
53+
54+-- | Updates a role. This method supports patch semantics.
55+--
56+-- /See:/ 'rolesPatch'' smart constructor.
57+data RolesPatch' = RolesPatch'
58+ { _rpPayload :: !Role
59+ , _rpRoleId :: !Text
60+ , _rpCustomer :: !Text
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'RolesPatch'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'rpPayload'
68+--
69+-- * 'rpRoleId'
70+--
71+-- * 'rpCustomer'
72+rolesPatch'
73+ :: Role -- ^ 'payload'
74+ -> Text -- ^ 'roleId'
75+ -> Text -- ^ 'customer'
76+ -> RolesPatch'
77+rolesPatch' pRpPayload_ pRpRoleId_ pRpCustomer_ =
78+ RolesPatch'
79+ { _rpPayload = pRpPayload_
80+ , _rpRoleId = pRpRoleId_
81+ , _rpCustomer = pRpCustomer_
82+ }
83+
84+-- | Multipart request metadata.
85+rpPayload :: Lens' RolesPatch' Role
86+rpPayload
87+ = lens _rpPayload (\ s a -> s{_rpPayload = a})
88+
89+-- | Immutable ID of the role.
90+rpRoleId :: Lens' RolesPatch' Text
91+rpRoleId = lens _rpRoleId (\ s a -> s{_rpRoleId = a})
92+
93+-- | Immutable ID of the Google Apps account.
94+rpCustomer :: Lens' RolesPatch' Text
95+rpCustomer
96+ = lens _rpCustomer (\ s a -> s{_rpCustomer = a})
97+
98+instance GoogleRequest RolesPatch' where
99+ type Rs RolesPatch' = Role
100+ requestClient RolesPatch'{..}
101+ = go _rpCustomer _rpRoleId (Just AltJSON) _rpPayload
102+ directoryService
103+ where go
104+ = buildClient (Proxy :: Proxy RolesPatchResource)
105+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Update.hsnew file+105
@@ -0,0 +1,105 @@
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.Directory.Roles.Update
17+-- Copyright : (c) 2015 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 a role.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @DirectoryRolesUpdate@.
26+module Network.Google.Resource.Directory.Roles.Update
27+ (
28+ -- * REST Resource
29+ RolesUpdateResource
30+
31+ -- * Creating a Request
32+ , rolesUpdate'
33+ , RolesUpdate'
34+
35+ -- * Request Lenses
36+ , ruPayload
37+ , ruRoleId
38+ , ruCustomer
39+ ) where
40+
41+import Network.Google.Directory.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @DirectoryRolesUpdate@ method which the
45+-- 'RolesUpdate'' request conforms to.
46+type RolesUpdateResource =
47+ "customer" :>
48+ Capture "customer" Text :>
49+ "roles" :>
50+ Capture "roleId" Text :>
51+ QueryParam "alt" AltJSON :>
52+ ReqBody '[JSON] Role :> Put '[JSON] Role
53+
54+-- | Updates a role.
55+--
56+-- /See:/ 'rolesUpdate'' smart constructor.
57+data RolesUpdate' = RolesUpdate'
58+ { _ruPayload :: !Role
59+ , _ruRoleId :: !Text
60+ , _ruCustomer :: !Text
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'RolesUpdate'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'ruPayload'
68+--
69+-- * 'ruRoleId'
70+--
71+-- * 'ruCustomer'
72+rolesUpdate'
73+ :: Role -- ^ 'payload'
74+ -> Text -- ^ 'roleId'
75+ -> Text -- ^ 'customer'
76+ -> RolesUpdate'
77+rolesUpdate' pRuPayload_ pRuRoleId_ pRuCustomer_ =
78+ RolesUpdate'
79+ { _ruPayload = pRuPayload_
80+ , _ruRoleId = pRuRoleId_
81+ , _ruCustomer = pRuCustomer_
82+ }
83+
84+-- | Multipart request metadata.
85+ruPayload :: Lens' RolesUpdate' Role
86+ruPayload
87+ = lens _ruPayload (\ s a -> s{_ruPayload = a})
88+
89+-- | Immutable ID of the role.
90+ruRoleId :: Lens' RolesUpdate' Text
91+ruRoleId = lens _ruRoleId (\ s a -> s{_ruRoleId = a})
92+
93+-- | Immutable ID of the Google Apps account.
94+ruCustomer :: Lens' RolesUpdate' Text
95+ruCustomer
96+ = lens _ruCustomer (\ s a -> s{_ruCustomer = a})
97+
98+instance GoogleRequest RolesUpdate' where
99+ type Rs RolesUpdate' = Role
100+ requestClient RolesUpdate'{..}
101+ = go _ruCustomer _ruRoleId (Just AltJSON) _ruPayload
102+ directoryService
103+ where go
104+ = buildClient (Proxy :: Proxy RolesUpdateResource)
105+ mempty
gogol-admin-directory/gogol-admin-directory.cabal+22
@@ -45,6 +45,17 @@ library
4545 , Network.Google.Resource.Directory.ChromeosDevices.List
4646 , Network.Google.Resource.Directory.ChromeosDevices.Patch
4747 , Network.Google.Resource.Directory.ChromeosDevices.Update
48+ , Network.Google.Resource.Directory.Customers.Get
49+ , Network.Google.Resource.Directory.Customers.Patch
50+ , Network.Google.Resource.Directory.Customers.Update
51+ , Network.Google.Resource.Directory.DomainAliases.Delete
52+ , Network.Google.Resource.Directory.DomainAliases.Get
53+ , Network.Google.Resource.Directory.DomainAliases.Insert
54+ , Network.Google.Resource.Directory.DomainAliases.List
55+ , Network.Google.Resource.Directory.Domains.Delete
56+ , Network.Google.Resource.Directory.Domains.Get
57+ , Network.Google.Resource.Directory.Domains.Insert
58+ , Network.Google.Resource.Directory.Domains.List
4859 , Network.Google.Resource.Directory.Groups.Aliases.Delete
4960 , Network.Google.Resource.Directory.Groups.Aliases.Insert
5061 , Network.Google.Resource.Directory.Groups.Aliases.List
@@ -75,6 +86,17 @@ library
7586 , Network.Google.Resource.Directory.OrgUnits.List
7687 , Network.Google.Resource.Directory.OrgUnits.Patch
7788 , Network.Google.Resource.Directory.OrgUnits.Update
89+ , Network.Google.Resource.Directory.Privileges.List
90+ , Network.Google.Resource.Directory.RoleAssignments.Delete
91+ , Network.Google.Resource.Directory.RoleAssignments.Get
92+ , Network.Google.Resource.Directory.RoleAssignments.Insert
93+ , Network.Google.Resource.Directory.RoleAssignments.List
94+ , Network.Google.Resource.Directory.Roles.Delete
95+ , Network.Google.Resource.Directory.Roles.Get
96+ , Network.Google.Resource.Directory.Roles.Insert
97+ , Network.Google.Resource.Directory.Roles.List
98+ , Network.Google.Resource.Directory.Roles.Patch
99+ , Network.Google.Resource.Directory.Roles.Update
78100 , Network.Google.Resource.Directory.Schemas.Delete
79101 , Network.Google.Resource.Directory.Schemas.Get
80102 , Network.Google.Resource.Directory.Schemas.Insert
gogol-adsense/gen/Network/Google/AdSense.hs+1
@@ -265,6 +265,7 @@ module Network.Google.AdSense
265265 , Account
266266 , account
267267 , accKind
268+ , accCreationTime
268269 , accPremium
269270 , accName
270271 , accId
gogol-adsense/gen/Network/Google/AdSense/Types.hs+1
@@ -144,6 +144,7 @@ module Network.Google.AdSense.Types
144144 , Account
145145 , account
146146 , accKind
147+ , accCreationTime
147148 , accPremium
148149 , accName
149150 , accId
gogol-adsense/gen/Network/Google/AdSense/Types/Product.hs+18−7
@@ -1086,12 +1086,13 @@ instance ToJSON AdStyleFont where
10861086--
10871087-- /See:/ 'account' smart constructor.
10881088data Account = Account
1089− { _accKind :: !Text
1090− , _accPremium :: !(Maybe Bool)
1091− , _accName :: !(Maybe Text)
1092− , _accId :: !(Maybe Text)
1093− , _accTimezone :: !(Maybe Text)
1094− , _accSubAccounts :: !(Maybe [Account])
1089+ { _accKind :: !Text
1090+ , _accCreationTime :: !(Maybe Int64)
1091+ , _accPremium :: !(Maybe Bool)
1092+ , _accName :: !(Maybe Text)
1093+ , _accId :: !(Maybe Text)
1094+ , _accTimezone :: !(Maybe Text)
1095+ , _accSubAccounts :: !(Maybe [Account])
10951096 } deriving (Eq,Show,Data,Typeable,Generic)
10961097
10971098-- | Creates a value of 'Account' with the minimum fields required to make a request.
@@ -1100,6 +1101,8 @@ data Account = Account
11001101--
11011102-- * 'accKind'
11021103--
1104+-- * 'accCreationTime'
1105+--
11031106-- * 'accPremium'
11041107--
11051108-- * 'accName'
@@ -1114,6 +1117,7 @@ account
11141117account =
11151118 Account
11161119 { _accKind = "adsense#account"
1120+ , _accCreationTime = Nothing
11171121 , _accPremium = Nothing
11181122 , _accName = Nothing
11191123 , _accId = Nothing
@@ -1125,6 +1129,11 @@ account =
11251129accKind :: Lens' Account Text
11261130accKind = lens _accKind (\ s a -> s{_accKind = a})
11271131
1132+accCreationTime :: Lens' Account (Maybe Int64)
1133+accCreationTime
1134+ = lens _accCreationTime
1135+ (\ s a -> s{_accCreationTime = a})
1136+
11281137-- | Whether this account is premium.
11291138accPremium :: Lens' Account (Maybe Bool)
11301139accPremium
@@ -1157,7 +1166,8 @@ instance FromJSON Account where
11571166 (\ o ->
11581167 Account <$>
11591168 (o .:? "kind" .!= "adsense#account") <*>
1160− (o .:? "premium")
1169+ (o .:? "creation_time")
1170+ <*> (o .:? "premium")
11611171 <*> (o .:? "name")
11621172 <*> (o .:? "id")
11631173 <*> (o .:? "timezone")
@@ -1168,6 +1178,7 @@ instance ToJSON Account where
11681178 = object
11691179 (catMaybes
11701180 [Just ("kind" .= _accKind),
1181+ ("creation_time" .=) <$> _accCreationTime,
11711182 ("premium" .=) <$> _accPremium,
11721183 ("name" .=) <$> _accName, ("id" .=) <$> _accId,
11731184 ("timezone" .=) <$> _accTimezone,
gogol-books/gen/Network/Google/Books.hs+64−2
@@ -122,12 +122,18 @@ module Network.Google.Books
122122 -- ** BooksMyLibraryReadingPositionsSetPosition
123123 , module Network.Google.Resource.Books.MyLibrary.ReadingPositions.SetPosition
124124
125+ -- ** BooksNotificationGet
126+ , module Network.Google.Resource.Books.Notification.Get
127+
125128 -- ** BooksOnboardingListCategories
126129 , module Network.Google.Resource.Books.Onboarding.ListCategories
127130
128131 -- ** BooksOnboardingListCategoryVolumes
129132 , module Network.Google.Resource.Books.Onboarding.ListCategoryVolumes
130133
134+ -- ** BooksPersonalizedstreamGet
135+ , module Network.Google.Resource.Books.Personalizedstream.Get
136+
131137 -- ** BooksPromoOfferAccept
132138 , module Network.Google.Resource.Books.PromoOffer.Accept
133139
@@ -163,6 +169,7 @@ module Network.Google.Books
163169 -- ** Usersettings
164170 , Usersettings
165171 , usersettings
172+ , uNotification
166173 , uKind
167174 , uNotesExport
168175
@@ -191,6 +198,11 @@ module Network.Google.Books
191198 , adKind
192199 , adItems
193200
201+ -- ** UsersettingsNotificationMoreFromAuthors
202+ , UsersettingsNotificationMoreFromAuthors
203+ , usersettingsNotificationMoreFromAuthors
204+ , unmfaOptedState
205+
194206 -- ** Volumeannotations
195207 , Volumeannotations
196208 , volumeannotations
@@ -284,6 +296,8 @@ module Network.Google.Books
284296 , vuiCopy
285297 , vuiUserUploadedVolumeInfo
286298 , vuiIsPurchased
299+ , vuiEntitlementType
300+ , vuiAcquisitionType
287301 , vuiRentalState
288302 , vuiIsPreOrdered
289303 , vuiReview
@@ -387,6 +401,15 @@ module Network.Google.Books
387401 , bTitle
388402 , bDescription
389403
404+ -- ** Notification
405+ , Notification
406+ , notification
407+ , nKind
408+ , nBody
409+ , nLinkURL
410+ , nIconURL
411+ , nTitle
412+
390413 -- ** VolumesListDownload
391414 , VolumesListDownload (..)
392415
@@ -449,6 +472,16 @@ module Network.Google.Books
449472 -- ** VolumesAssociatedListAssociation
450473 , VolumesAssociatedListAssociation (..)
451474
475+ -- ** DiscoveryclustersClustersItemBanner_with_content_container
476+ , DiscoveryclustersClustersItemBanner_with_content_container
477+ , discoveryclustersClustersItemBanner_with_content_container
478+ , dcibFillColorArgb
479+ , dcibMoreButtonURL
480+ , dcibTextColorArgb
481+ , dcibMoreButtonText
482+ , dcibImageURL
483+ , dcibMaskColorArgb
484+
452485 -- ** Volume
453486 , Volume
454487 , volume
@@ -581,6 +614,11 @@ module Network.Google.Books
581614 -- ** VolumesListFilter
582615 , VolumesListFilter (..)
583616
617+ -- ** UsersettingsNotification
618+ , UsersettingsNotification
619+ , usersettingsNotification
620+ , unMoreFromAuthors
621+
584622 -- ** DictlayerDataDictWordsItemSensesItemSynonymsItem
585623 , DictlayerDataDictWordsItemSensesItemSynonymsItem
586624 , dictlayerDataDictWordsItemSensesItemSynonymsItem
@@ -623,6 +661,16 @@ module Network.Google.Books
623661 , dictlayerDataCommon
624662 , ddcTitle
625663
664+ -- ** DiscoveryclustersClustersItem
665+ , DiscoveryclustersClustersItem
666+ , discoveryclustersClustersItem
667+ , dciBannerWithContentContainer
668+ , dciUid
669+ , dciTotalVolumes
670+ , dciSubTitle
671+ , dciTitle
672+ , dciVolumes
673+
626674 -- ** VolumeSaleInfoRetailPrice
627675 , VolumeSaleInfoRetailPrice
628676 , volumeSaleInfoRetailPrice
@@ -741,6 +789,9 @@ module Network.Google.Books
741789 , aGbTextRange
742790 , aCfiRange
743791
792+ -- ** PersonalizedstreamGetMaxAllowedMaturityRating
793+ , PersonalizedstreamGetMaxAllowedMaturityRating (..)
794+
744795 -- ** VolumesListPrintType
745796 , VolumesListPrintType (..)
746797
@@ -815,6 +866,13 @@ module Network.Google.Books
815866 -- ** VolumesMybooksListProcessingState
816867 , VolumesMybooksListProcessingState (..)
817868
869+ -- ** Discoveryclusters
870+ , Discoveryclusters
871+ , discoveryclusters
872+ , dKind
873+ , dTotalClusters
874+ , dClusters
875+
818876 -- ** UsersettingsNotesExport
819877 , UsersettingsNotesExport
820878 , usersettingsNotesExport
@@ -979,8 +1037,10 @@ import Network.Google.Resource.Books.MyLibrary.Bookshelves.RemoveVolum
9791037import Network.Google.Resource.Books.MyLibrary.Bookshelves.Volumes.List
9801038import Network.Google.Resource.Books.MyLibrary.ReadingPositions.Get
9811039import Network.Google.Resource.Books.MyLibrary.ReadingPositions.SetPosition
1040+import Network.Google.Resource.Books.Notification.Get
9821041import Network.Google.Resource.Books.Onboarding.ListCategories
9831042import Network.Google.Resource.Books.Onboarding.ListCategoryVolumes
1043+import Network.Google.Resource.Books.Personalizedstream.Get
9841044import Network.Google.Resource.Books.PromoOffer.Accept
9851045import Network.Google.Resource.Books.PromoOffer.Dismiss
9861046import Network.Google.Resource.Books.PromoOffer.Get
@@ -998,8 +1058,9 @@ TODO
9981058
9991059-- | Represents the entirety of the methods and resources available for the Books API service.
10001060type BooksAPI =
1001− OnboardingListCategoriesResource :<|>
1002− OnboardingListCategoryVolumesResource
1061+ NotificationGetResource :<|>
1062+ OnboardingListCategoriesResource
1063+ :<|> OnboardingListCategoryVolumesResource
10031064 :<|> MyLibraryAnnotationsSummaryResource
10041065 :<|> MyLibraryAnnotationsInsertResource
10051066 :<|> MyLibraryAnnotationsListResource
@@ -1037,6 +1098,7 @@ type BooksAPI =
10371098 :<|> BookshelvesVolumesListResource
10381099 :<|> BookshelvesListResource
10391100 :<|> BookshelvesGetResource
1101+ :<|> PersonalizedstreamGetResource
10401102 :<|> MyConfigSyncVolumeLicensesResource
10411103 :<|> MyConfigGetUserSettingsResource
10421104 :<|> MyConfigRequestAccessResource
gogol-books/gen/Network/Google/Books/Types.hs+52
@@ -24,6 +24,7 @@ module Network.Google.Books.Types
2424 -- * Usersettings
2525 , Usersettings
2626 , usersettings
27+ , uNotification
2728 , uKind
2829 , uNotesExport
2930
@@ -52,6 +53,11 @@ module Network.Google.Books.Types
5253 , adKind
5354 , adItems
5455
56+ -- * UsersettingsNotificationMoreFromAuthors
57+ , UsersettingsNotificationMoreFromAuthors
58+ , usersettingsNotificationMoreFromAuthors
59+ , unmfaOptedState
60+
5561 -- * Volumeannotations
5662 , Volumeannotations
5763 , volumeannotations
@@ -145,6 +151,8 @@ module Network.Google.Books.Types
145151 , vuiCopy
146152 , vuiUserUploadedVolumeInfo
147153 , vuiIsPurchased
154+ , vuiEntitlementType
155+ , vuiAcquisitionType
148156 , vuiRentalState
149157 , vuiIsPreOrdered
150158 , vuiReview
@@ -248,6 +256,15 @@ module Network.Google.Books.Types
248256 , bTitle
249257 , bDescription
250258
259+ -- * Notification
260+ , Notification
261+ , notification
262+ , nKind
263+ , nBody
264+ , nLinkURL
265+ , nIconURL
266+ , nTitle
267+
251268 -- * VolumesListDownload
252269 , VolumesListDownload (..)
253270
@@ -310,6 +327,16 @@ module Network.Google.Books.Types
310327 -- * VolumesAssociatedListAssociation
311328 , VolumesAssociatedListAssociation (..)
312329
330+ -- * DiscoveryclustersClustersItemBanner_with_content_container
331+ , DiscoveryclustersClustersItemBanner_with_content_container
332+ , discoveryclustersClustersItemBanner_with_content_container
333+ , dcibFillColorArgb
334+ , dcibMoreButtonURL
335+ , dcibTextColorArgb
336+ , dcibMoreButtonText
337+ , dcibImageURL
338+ , dcibMaskColorArgb
339+
313340 -- * Volume
314341 , Volume
315342 , volume
@@ -442,6 +469,11 @@ module Network.Google.Books.Types
442469 -- * VolumesListFilter
443470 , VolumesListFilter (..)
444471
472+ -- * UsersettingsNotification
473+ , UsersettingsNotification
474+ , usersettingsNotification
475+ , unMoreFromAuthors
476+
445477 -- * DictlayerDataDictWordsItemSensesItemSynonymsItem
446478 , DictlayerDataDictWordsItemSensesItemSynonymsItem
447479 , dictlayerDataDictWordsItemSensesItemSynonymsItem
@@ -484,6 +516,16 @@ module Network.Google.Books.Types
484516 , dictlayerDataCommon
485517 , ddcTitle
486518
519+ -- * DiscoveryclustersClustersItem
520+ , DiscoveryclustersClustersItem
521+ , discoveryclustersClustersItem
522+ , dciBannerWithContentContainer
523+ , dciUid
524+ , dciTotalVolumes
525+ , dciSubTitle
526+ , dciTitle
527+ , dciVolumes
528+
487529 -- * VolumeSaleInfoRetailPrice
488530 , VolumeSaleInfoRetailPrice
489531 , volumeSaleInfoRetailPrice
@@ -602,6 +644,9 @@ module Network.Google.Books.Types
602644 , aGbTextRange
603645 , aCfiRange
604646
647+ -- * PersonalizedstreamGetMaxAllowedMaturityRating
648+ , PersonalizedstreamGetMaxAllowedMaturityRating (..)
649+
605650 -- * VolumesListPrintType
606651 , VolumesListPrintType (..)
607652
@@ -676,6 +721,13 @@ module Network.Google.Books.Types
676721 -- * VolumesMybooksListProcessingState
677722 , VolumesMybooksListProcessingState (..)
678723
724+ -- * Discoveryclusters
725+ , Discoveryclusters
726+ , discoveryclusters
727+ , dKind
728+ , dTotalClusters
729+ , dClusters
730+
679731 -- * UsersettingsNotesExport
680732 , UsersettingsNotesExport
681733 , usersettingsNotesExport
gogol-books/gen/Network/Google/Books/Types/Product.hs+427−6
@@ -23,14 +23,17 @@ import Network.Google.Prelude
2323--
2424-- /See:/ 'usersettings' smart constructor.
2525data Usersettings = Usersettings
26− { _uKind :: !Text
27− , _uNotesExport :: !(Maybe UsersettingsNotesExport)
26+ { _uNotification :: !(Maybe UsersettingsNotification)
27+ , _uKind :: !Text
28+ , _uNotesExport :: !(Maybe UsersettingsNotesExport)
2829 } deriving (Eq,Show,Data,Typeable,Generic)
2930
3031-- | Creates a value of 'Usersettings' with the minimum fields required to make a request.
3132--
3233-- Use one of the following lenses to modify other fields as desired:
3334--
35+-- * 'uNotification'
36+--
3437-- * 'uKind'
3538--
3639-- * 'uNotesExport'
@@ -38,10 +41,16 @@ usersettings
3841 :: Usersettings
3942usersettings =
4043 Usersettings
41− { _uKind = "books#usersettings"
44+ { _uNotification = Nothing
45+ , _uKind = "books#usersettings"
4246 , _uNotesExport = Nothing
4347 }
4448
49+uNotification :: Lens' Usersettings (Maybe UsersettingsNotification)
50+uNotification
51+ = lens _uNotification
52+ (\ s a -> s{_uNotification = a})
53+
4554-- | Resource type.
4655uKind :: Lens' Usersettings Text
4756uKind = lens _uKind (\ s a -> s{_uKind = a})
@@ -56,14 +65,16 @@ instance FromJSON Usersettings where
5665 = withObject "Usersettings"
5766 (\ o ->
5867 Usersettings <$>
59− (o .:? "kind" .!= "books#usersettings") <*>
60− (o .:? "notesExport"))
68+ (o .:? "notification") <*>
69+ (o .:? "kind" .!= "books#usersettings")
70+ <*> (o .:? "notesExport"))
6171
6272instance ToJSON Usersettings where
6373 toJSON Usersettings{..}
6474 = object
6575 (catMaybes
66− [Just ("kind" .= _uKind),
76+ [("notification" .=) <$> _uNotification,
77+ Just ("kind" .= _uKind),
6778 ("notesExport" .=) <$> _uNotesExport])
6879
6980--
@@ -205,6 +216,44 @@ instance ToJSON AnnotationsData where
205216 ("nextPageToken" .=) <$> _adNextPageToken,
206217 Just ("kind" .= _adKind), ("items" .=) <$> _adItems])
207218
219+--
220+-- /See:/ 'usersettingsNotificationMoreFromAuthors' smart constructor.
221+newtype UsersettingsNotificationMoreFromAuthors = UsersettingsNotificationMoreFromAuthors
222+ { _unmfaOptedState :: Maybe Text
223+ } deriving (Eq,Show,Data,Typeable,Generic)
224+
225+-- | Creates a value of 'UsersettingsNotificationMoreFromAuthors' with the minimum fields required to make a request.
226+--
227+-- Use one of the following lenses to modify other fields as desired:
228+--
229+-- * 'unmfaOptedState'
230+usersettingsNotificationMoreFromAuthors
231+ :: UsersettingsNotificationMoreFromAuthors
232+usersettingsNotificationMoreFromAuthors =
233+ UsersettingsNotificationMoreFromAuthors
234+ { _unmfaOptedState = Nothing
235+ }
236+
237+unmfaOptedState :: Lens' UsersettingsNotificationMoreFromAuthors (Maybe Text)
238+unmfaOptedState
239+ = lens _unmfaOptedState
240+ (\ s a -> s{_unmfaOptedState = a})
241+
242+instance FromJSON
243+ UsersettingsNotificationMoreFromAuthors where
244+ parseJSON
245+ = withObject
246+ "UsersettingsNotificationMoreFromAuthors"
247+ (\ o ->
248+ UsersettingsNotificationMoreFromAuthors <$>
249+ (o .:? "opted_state"))
250+
251+instance ToJSON
252+ UsersettingsNotificationMoreFromAuthors where
253+ toJSON UsersettingsNotificationMoreFromAuthors{..}
254+ = object
255+ (catMaybes [("opted_state" .=) <$> _unmfaOptedState])
256+
208257--
209258-- /See:/ 'volumeannotations' smart constructor.
210259data Volumeannotations = Volumeannotations
@@ -1023,6 +1072,8 @@ data VolumeUserInfo = VolumeUserInfo
10231072 { _vuiCopy :: !(Maybe VolumeUserInfoCopy)
10241073 , _vuiUserUploadedVolumeInfo :: !(Maybe VolumeUserInfoUserUploadedVolumeInfo)
10251074 , _vuiIsPurchased :: !(Maybe Bool)
1075+ , _vuiEntitlementType :: !(Maybe Int32)
1076+ , _vuiAcquisitionType :: !(Maybe Int32)
10261077 , _vuiRentalState :: !(Maybe Text)
10271078 , _vuiIsPreOrdered :: !(Maybe Bool)
10281079 , _vuiReview :: !(Maybe Review)
@@ -1043,6 +1094,10 @@ data VolumeUserInfo = VolumeUserInfo
10431094--
10441095-- * 'vuiIsPurchased'
10451096--
1097+-- * 'vuiEntitlementType'
1098+--
1099+-- * 'vuiAcquisitionType'
1100+--
10461101-- * 'vuiRentalState'
10471102--
10481103-- * 'vuiIsPreOrdered'
@@ -1065,6 +1120,8 @@ volumeUserInfo =
10651120 { _vuiCopy = Nothing
10661121 , _vuiUserUploadedVolumeInfo = Nothing
10671122 , _vuiIsPurchased = Nothing
1123+ , _vuiEntitlementType = Nothing
1124+ , _vuiAcquisitionType = Nothing
10681125 , _vuiRentalState = Nothing
10691126 , _vuiIsPreOrdered = Nothing
10701127 , _vuiReview = Nothing
@@ -1091,6 +1148,18 @@ vuiIsPurchased
10911148 = lens _vuiIsPurchased
10921149 (\ s a -> s{_vuiIsPurchased = a})
10931150
1151+-- | Whether this volume is purchased, sample, pd download etc.
1152+vuiEntitlementType :: Lens' VolumeUserInfo (Maybe Int32)
1153+vuiEntitlementType
1154+ = lens _vuiEntitlementType
1155+ (\ s a -> s{_vuiEntitlementType = a})
1156+
1157+-- | How this volume was acquired.
1158+vuiAcquisitionType :: Lens' VolumeUserInfo (Maybe Int32)
1159+vuiAcquisitionType
1160+ = lens _vuiAcquisitionType
1161+ (\ s a -> s{_vuiAcquisitionType = a})
1162+
10941163-- | Whether this book is an active or an expired rental.
10951164vuiRentalState :: Lens' VolumeUserInfo (Maybe Text)
10961165vuiRentalState
@@ -1149,6 +1218,8 @@ instance FromJSON VolumeUserInfo where
11491218 VolumeUserInfo <$>
11501219 (o .:? "copy") <*> (o .:? "userUploadedVolumeInfo")
11511220 <*> (o .:? "isPurchased")
1221+ <*> (o .:? "entitlementType")
1222+ <*> (o .:? "acquisitionType")
11521223 <*> (o .:? "rentalState")
11531224 <*> (o .:? "isPreordered")
11541225 <*> (o .:? "review")
@@ -1166,6 +1237,8 @@ instance ToJSON VolumeUserInfo where
11661237 ("userUploadedVolumeInfo" .=) <$>
11671238 _vuiUserUploadedVolumeInfo,
11681239 ("isPurchased" .=) <$> _vuiIsPurchased,
1240+ ("entitlementType" .=) <$> _vuiEntitlementType,
1241+ ("acquisitionType" .=) <$> _vuiAcquisitionType,
11691242 ("rentalState" .=) <$> _vuiRentalState,
11701243 ("isPreordered" .=) <$> _vuiIsPreOrdered,
11711244 ("review" .=) <$> _vuiReview,
@@ -2017,6 +2090,76 @@ instance ToJSON Bookshelf where
20172090 ("title" .=) <$> _bTitle,
20182091 ("description" .=) <$> _bDescription])
20192092
2093+--
2094+-- /See:/ 'notification' smart constructor.
2095+data Notification = Notification
2096+ { _nKind :: !Text
2097+ , _nBody :: !(Maybe Text)
2098+ , _nLinkURL :: !(Maybe Text)
2099+ , _nIconURL :: !(Maybe Text)
2100+ , _nTitle :: !(Maybe Text)
2101+ } deriving (Eq,Show,Data,Typeable,Generic)
2102+
2103+-- | Creates a value of 'Notification' with the minimum fields required to make a request.
2104+--
2105+-- Use one of the following lenses to modify other fields as desired:
2106+--
2107+-- * 'nKind'
2108+--
2109+-- * 'nBody'
2110+--
2111+-- * 'nLinkURL'
2112+--
2113+-- * 'nIconURL'
2114+--
2115+-- * 'nTitle'
2116+notification
2117+ :: Notification
2118+notification =
2119+ Notification
2120+ { _nKind = "books#notification"
2121+ , _nBody = Nothing
2122+ , _nLinkURL = Nothing
2123+ , _nIconURL = Nothing
2124+ , _nTitle = Nothing
2125+ }
2126+
2127+-- | Resource type.
2128+nKind :: Lens' Notification Text
2129+nKind = lens _nKind (\ s a -> s{_nKind = a})
2130+
2131+nBody :: Lens' Notification (Maybe Text)
2132+nBody = lens _nBody (\ s a -> s{_nBody = a})
2133+
2134+nLinkURL :: Lens' Notification (Maybe Text)
2135+nLinkURL = lens _nLinkURL (\ s a -> s{_nLinkURL = a})
2136+
2137+nIconURL :: Lens' Notification (Maybe Text)
2138+nIconURL = lens _nIconURL (\ s a -> s{_nIconURL = a})
2139+
2140+nTitle :: Lens' Notification (Maybe Text)
2141+nTitle = lens _nTitle (\ s a -> s{_nTitle = a})
2142+
2143+instance FromJSON Notification where
2144+ parseJSON
2145+ = withObject "Notification"
2146+ (\ o ->
2147+ Notification <$>
2148+ (o .:? "kind" .!= "books#notification") <*>
2149+ (o .:? "body")
2150+ <*> (o .:? "linkUrl")
2151+ <*> (o .:? "iconUrl")
2152+ <*> (o .:? "title"))
2153+
2154+instance ToJSON Notification where
2155+ toJSON Notification{..}
2156+ = object
2157+ (catMaybes
2158+ [Just ("kind" .= _nKind), ("body" .=) <$> _nBody,
2159+ ("linkUrl" .=) <$> _nLinkURL,
2160+ ("iconUrl" .=) <$> _nIconURL,
2161+ ("title" .=) <$> _nTitle])
2162+
20202163--
20212164-- /See:/ 'annotationsSummaryLayersItem' smart constructor.
20222165data AnnotationsSummaryLayersItem = AnnotationsSummaryLayersItem
@@ -2449,6 +2592,102 @@ instance ToJSON Category where
24492592 (catMaybes
24502593 [Just ("kind" .= _cKind), ("items" .=) <$> _cItems])
24512594
2595+--
2596+-- /See:/ 'discoveryclustersClustersItemBanner_with_content_container' smart constructor.
2597+data DiscoveryclustersClustersItemBanner_with_content_container = DiscoveryclustersClustersItemBanner_with_content_container
2598+ { _dcibFillColorArgb :: !(Maybe Text)
2599+ , _dcibMoreButtonURL :: !(Maybe Text)
2600+ , _dcibTextColorArgb :: !(Maybe Text)
2601+ , _dcibMoreButtonText :: !(Maybe Text)
2602+ , _dcibImageURL :: !(Maybe Text)
2603+ , _dcibMaskColorArgb :: !(Maybe Text)
2604+ } deriving (Eq,Show,Data,Typeable,Generic)
2605+
2606+-- | Creates a value of 'DiscoveryclustersClustersItemBanner_with_content_container' with the minimum fields required to make a request.
2607+--
2608+-- Use one of the following lenses to modify other fields as desired:
2609+--
2610+-- * 'dcibFillColorArgb'
2611+--
2612+-- * 'dcibMoreButtonURL'
2613+--
2614+-- * 'dcibTextColorArgb'
2615+--
2616+-- * 'dcibMoreButtonText'
2617+--
2618+-- * 'dcibImageURL'
2619+--
2620+-- * 'dcibMaskColorArgb'
2621+discoveryclustersClustersItemBanner_with_content_container
2622+ :: DiscoveryclustersClustersItemBanner_with_content_container
2623+discoveryclustersClustersItemBanner_with_content_container =
2624+ DiscoveryclustersClustersItemBanner_with_content_container
2625+ { _dcibFillColorArgb = Nothing
2626+ , _dcibMoreButtonURL = Nothing
2627+ , _dcibTextColorArgb = Nothing
2628+ , _dcibMoreButtonText = Nothing
2629+ , _dcibImageURL = Nothing
2630+ , _dcibMaskColorArgb = Nothing
2631+ }
2632+
2633+dcibFillColorArgb :: Lens' DiscoveryclustersClustersItemBanner_with_content_container (Maybe Text)
2634+dcibFillColorArgb
2635+ = lens _dcibFillColorArgb
2636+ (\ s a -> s{_dcibFillColorArgb = a})
2637+
2638+dcibMoreButtonURL :: Lens' DiscoveryclustersClustersItemBanner_with_content_container (Maybe Text)
2639+dcibMoreButtonURL
2640+ = lens _dcibMoreButtonURL
2641+ (\ s a -> s{_dcibMoreButtonURL = a})
2642+
2643+dcibTextColorArgb :: Lens' DiscoveryclustersClustersItemBanner_with_content_container (Maybe Text)
2644+dcibTextColorArgb
2645+ = lens _dcibTextColorArgb
2646+ (\ s a -> s{_dcibTextColorArgb = a})
2647+
2648+dcibMoreButtonText :: Lens' DiscoveryclustersClustersItemBanner_with_content_container (Maybe Text)
2649+dcibMoreButtonText
2650+ = lens _dcibMoreButtonText
2651+ (\ s a -> s{_dcibMoreButtonText = a})
2652+
2653+dcibImageURL :: Lens' DiscoveryclustersClustersItemBanner_with_content_container (Maybe Text)
2654+dcibImageURL
2655+ = lens _dcibImageURL (\ s a -> s{_dcibImageURL = a})
2656+
2657+dcibMaskColorArgb :: Lens' DiscoveryclustersClustersItemBanner_with_content_container (Maybe Text)
2658+dcibMaskColorArgb
2659+ = lens _dcibMaskColorArgb
2660+ (\ s a -> s{_dcibMaskColorArgb = a})
2661+
2662+instance FromJSON
2663+ DiscoveryclustersClustersItemBanner_with_content_container
2664+ where
2665+ parseJSON
2666+ = withObject
2667+ "DiscoveryclustersClustersItemBannerWithContentContainer"
2668+ (\ o ->
2669+ DiscoveryclustersClustersItemBanner_with_content_container
2670+ <$>
2671+ (o .:? "fillColorArgb") <*> (o .:? "moreButtonUrl")
2672+ <*> (o .:? "textColorArgb")
2673+ <*> (o .:? "moreButtonText")
2674+ <*> (o .:? "imageUrl")
2675+ <*> (o .:? "maskColorArgb"))
2676+
2677+instance ToJSON
2678+ DiscoveryclustersClustersItemBanner_with_content_container
2679+ where
2680+ toJSON
2681+ DiscoveryclustersClustersItemBanner_with_content_container{..}
2682+ = object
2683+ (catMaybes
2684+ [("fillColorArgb" .=) <$> _dcibFillColorArgb,
2685+ ("moreButtonUrl" .=) <$> _dcibMoreButtonURL,
2686+ ("textColorArgb" .=) <$> _dcibTextColorArgb,
2687+ ("moreButtonText" .=) <$> _dcibMoreButtonText,
2688+ ("imageUrl" .=) <$> _dcibImageURL,
2689+ ("maskColorArgb" .=) <$> _dcibMaskColorArgb])
2690+
24522691--
24532692-- /See:/ 'volume' smart constructor.
24542693data Volume = Volume
@@ -3467,6 +3706,42 @@ instance ToJSON
34673706 [("url" .=) <$> _dddwisisisURL,
34683707 ("attribution" .=) <$> _dddwisisisAttribution])
34693708
3709+--
3710+-- /See:/ 'usersettingsNotification' smart constructor.
3711+newtype UsersettingsNotification = UsersettingsNotification
3712+ { _unMoreFromAuthors :: Maybe UsersettingsNotificationMoreFromAuthors
3713+ } deriving (Eq,Show,Data,Typeable,Generic)
3714+
3715+-- | Creates a value of 'UsersettingsNotification' with the minimum fields required to make a request.
3716+--
3717+-- Use one of the following lenses to modify other fields as desired:
3718+--
3719+-- * 'unMoreFromAuthors'
3720+usersettingsNotification
3721+ :: UsersettingsNotification
3722+usersettingsNotification =
3723+ UsersettingsNotification
3724+ { _unMoreFromAuthors = Nothing
3725+ }
3726+
3727+unMoreFromAuthors :: Lens' UsersettingsNotification (Maybe UsersettingsNotificationMoreFromAuthors)
3728+unMoreFromAuthors
3729+ = lens _unMoreFromAuthors
3730+ (\ s a -> s{_unMoreFromAuthors = a})
3731+
3732+instance FromJSON UsersettingsNotification where
3733+ parseJSON
3734+ = withObject "UsersettingsNotification"
3735+ (\ o ->
3736+ UsersettingsNotification <$>
3737+ (o .:? "moreFromAuthors"))
3738+
3739+instance ToJSON UsersettingsNotification where
3740+ toJSON UsersettingsNotification{..}
3741+ = object
3742+ (catMaybes
3743+ [("moreFromAuthors" .=) <$> _unMoreFromAuthors])
3744+
34703745--
34713746-- /See:/ 'dictlayerDataDictWordsItemSensesItemSynonymsItem' smart constructor.
34723747data DictlayerDataDictWordsItemSensesItemSynonymsItem = DictlayerDataDictWordsItemSensesItemSynonymsItem
@@ -3813,6 +4088,94 @@ instance ToJSON DictlayerDataCommon where
38134088 toJSON DictlayerDataCommon{..}
38144089 = object (catMaybes [("title" .=) <$> _ddcTitle])
38154090
4091+--
4092+-- /See:/ 'discoveryclustersClustersItem' smart constructor.
4093+data DiscoveryclustersClustersItem = DiscoveryclustersClustersItem
4094+ { _dciBannerWithContentContainer :: !(Maybe DiscoveryclustersClustersItemBanner_with_content_container)
4095+ , _dciUid :: !(Maybe Text)
4096+ , _dciTotalVolumes :: !(Maybe Int32)
4097+ , _dciSubTitle :: !(Maybe Text)
4098+ , _dciTitle :: !(Maybe Text)
4099+ , _dciVolumes :: !(Maybe [Volume])
4100+ } deriving (Eq,Show,Data,Typeable,Generic)
4101+
4102+-- | Creates a value of 'DiscoveryclustersClustersItem' with the minimum fields required to make a request.
4103+--
4104+-- Use one of the following lenses to modify other fields as desired:
4105+--
4106+-- * 'dciBannerWithContentContainer'
4107+--
4108+-- * 'dciUid'
4109+--
4110+-- * 'dciTotalVolumes'
4111+--
4112+-- * 'dciSubTitle'
4113+--
4114+-- * 'dciTitle'
4115+--
4116+-- * 'dciVolumes'
4117+discoveryclustersClustersItem
4118+ :: DiscoveryclustersClustersItem
4119+discoveryclustersClustersItem =
4120+ DiscoveryclustersClustersItem
4121+ { _dciBannerWithContentContainer = Nothing
4122+ , _dciUid = Nothing
4123+ , _dciTotalVolumes = Nothing
4124+ , _dciSubTitle = Nothing
4125+ , _dciTitle = Nothing
4126+ , _dciVolumes = Nothing
4127+ }
4128+
4129+dciBannerWithContentContainer :: Lens' DiscoveryclustersClustersItem (Maybe DiscoveryclustersClustersItemBanner_with_content_container)
4130+dciBannerWithContentContainer
4131+ = lens _dciBannerWithContentContainer
4132+ (\ s a -> s{_dciBannerWithContentContainer = a})
4133+
4134+dciUid :: Lens' DiscoveryclustersClustersItem (Maybe Text)
4135+dciUid = lens _dciUid (\ s a -> s{_dciUid = a})
4136+
4137+dciTotalVolumes :: Lens' DiscoveryclustersClustersItem (Maybe Int32)
4138+dciTotalVolumes
4139+ = lens _dciTotalVolumes
4140+ (\ s a -> s{_dciTotalVolumes = a})
4141+
4142+dciSubTitle :: Lens' DiscoveryclustersClustersItem (Maybe Text)
4143+dciSubTitle
4144+ = lens _dciSubTitle (\ s a -> s{_dciSubTitle = a})
4145+
4146+dciTitle :: Lens' DiscoveryclustersClustersItem (Maybe Text)
4147+dciTitle = lens _dciTitle (\ s a -> s{_dciTitle = a})
4148+
4149+dciVolumes :: Lens' DiscoveryclustersClustersItem [Volume]
4150+dciVolumes
4151+ = lens _dciVolumes (\ s a -> s{_dciVolumes = a}) .
4152+ _Default
4153+ . _Coerce
4154+
4155+instance FromJSON DiscoveryclustersClustersItem where
4156+ parseJSON
4157+ = withObject "DiscoveryclustersClustersItem"
4158+ (\ o ->
4159+ DiscoveryclustersClustersItem <$>
4160+ (o .:? "banner_with_content_container") <*>
4161+ (o .:? "uid")
4162+ <*> (o .:? "totalVolumes")
4163+ <*> (o .:? "subTitle")
4164+ <*> (o .:? "title")
4165+ <*> (o .:? "volumes" .!= mempty))
4166+
4167+instance ToJSON DiscoveryclustersClustersItem where
4168+ toJSON DiscoveryclustersClustersItem{..}
4169+ = object
4170+ (catMaybes
4171+ [("banner_with_content_container" .=) <$>
4172+ _dciBannerWithContentContainer,
4173+ ("uid" .=) <$> _dciUid,
4174+ ("totalVolumes" .=) <$> _dciTotalVolumes,
4175+ ("subTitle" .=) <$> _dciSubTitle,
4176+ ("title" .=) <$> _dciTitle,
4177+ ("volumes" .=) <$> _dciVolumes])
4178+
38164179-- | The actual selling price of the book. This is the same as the suggested
38174180-- retail or list price unless there are offers or discounts on this
38184181-- volume. (In LITE projection.)
@@ -5406,6 +5769,64 @@ instance ToJSON Offers where
54065769 (catMaybes
54075770 [Just ("kind" .= _oKind), ("items" .=) <$> _oItems])
54085771
5772+--
5773+-- /See:/ 'discoveryclusters' smart constructor.
5774+data Discoveryclusters = Discoveryclusters
5775+ { _dKind :: !Text
5776+ , _dTotalClusters :: !(Maybe Int32)
5777+ , _dClusters :: !(Maybe [DiscoveryclustersClustersItem])
5778+ } deriving (Eq,Show,Data,Typeable,Generic)
5779+
5780+-- | Creates a value of 'Discoveryclusters' with the minimum fields required to make a request.
5781+--
5782+-- Use one of the following lenses to modify other fields as desired:
5783+--
5784+-- * 'dKind'
5785+--
5786+-- * 'dTotalClusters'
5787+--
5788+-- * 'dClusters'
5789+discoveryclusters
5790+ :: Discoveryclusters
5791+discoveryclusters =
5792+ Discoveryclusters
5793+ { _dKind = "books#discovery#clusters"
5794+ , _dTotalClusters = Nothing
5795+ , _dClusters = Nothing
5796+ }
5797+
5798+-- | Resorce type.
5799+dKind :: Lens' Discoveryclusters Text
5800+dKind = lens _dKind (\ s a -> s{_dKind = a})
5801+
5802+dTotalClusters :: Lens' Discoveryclusters (Maybe Int32)
5803+dTotalClusters
5804+ = lens _dTotalClusters
5805+ (\ s a -> s{_dTotalClusters = a})
5806+
5807+dClusters :: Lens' Discoveryclusters [DiscoveryclustersClustersItem]
5808+dClusters
5809+ = lens _dClusters (\ s a -> s{_dClusters = a}) .
5810+ _Default
5811+ . _Coerce
5812+
5813+instance FromJSON Discoveryclusters where
5814+ parseJSON
5815+ = withObject "Discoveryclusters"
5816+ (\ o ->
5817+ Discoveryclusters <$>
5818+ (o .:? "kind" .!= "books#discovery#clusters") <*>
5819+ (o .:? "totalClusters")
5820+ <*> (o .:? "clusters" .!= mempty))
5821+
5822+instance ToJSON Discoveryclusters where
5823+ toJSON Discoveryclusters{..}
5824+ = object
5825+ (catMaybes
5826+ [Just ("kind" .= _dKind),
5827+ ("totalClusters" .=) <$> _dTotalClusters,
5828+ ("clusters" .=) <$> _dClusters])
5829+
54095830-- | User settings in sub-objects, each for different purposes.
54105831--
54115832-- /See:/ 'usersettingsNotesExport' smart constructor.
gogol-books/gen/Network/Google/Books/Types/Sum.hs+30
@@ -554,6 +554,36 @@ instance FromJSON VolumesMybooksListAcquireMethod where
554554instance ToJSON VolumesMybooksListAcquireMethod where
555555 toJSON = toJSONText
556556
557+-- | The maximum allowed maturity rating of returned recommendations. Books
558+-- with a higher maturity rating are filtered out.
559+data PersonalizedstreamGetMaxAllowedMaturityRating
560+ = PGMAMRMature
561+ -- ^ @mature@
562+ -- Show books which are rated mature or lower.
563+ | PGMAMRNotMature
564+ -- ^ @not-mature@
565+ -- Show books which are rated not mature.
566+ deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
567+
568+instance Hashable PersonalizedstreamGetMaxAllowedMaturityRating
569+
570+instance FromText PersonalizedstreamGetMaxAllowedMaturityRating where
571+ fromText = \case
572+ "mature" -> Just PGMAMRMature
573+ "not-mature" -> Just PGMAMRNotMature
574+ _ -> Nothing
575+
576+instance ToText PersonalizedstreamGetMaxAllowedMaturityRating where
577+ toText = \case
578+ PGMAMRMature -> "mature"
579+ PGMAMRNotMature -> "not-mature"
580+
581+instance FromJSON PersonalizedstreamGetMaxAllowedMaturityRating where
582+ parseJSON = parseJSONText "PersonalizedstreamGetMaxAllowedMaturityRating"
583+
584+instance ToJSON PersonalizedstreamGetMaxAllowedMaturityRating where
585+ toJSON = toJSONText
586+
557587-- | Restrict to books or magazines.
558588data VolumesListPrintType
559589 = All
gogol-books/gen/Network/Google/Resource/Books/Dictionary/ListOfflineMetadata.hs+2−2
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Returns a list of offline dictionary meatadata available
23+-- | Returns a list of offline dictionary metadata available
2424--
2525-- /See:/ <https://developers.google.com/books/docs/v1/getting_started Books API Reference> for @BooksDictionaryListOfflineMetadata@.
2626module Network.Google.Resource.Books.Dictionary.ListOfflineMetadata
@@ -47,7 +47,7 @@ type DictionaryListOfflineMetadataResource =
4747 QueryParam "cpksver" Text :>
4848 QueryParam "alt" AltJSON :> Get '[JSON] Metadata
4949
50−-- | Returns a list of offline dictionary meatadata available
50+-- | Returns a list of offline dictionary metadata available
5151--
5252-- /See:/ 'dictionaryListOfflineMetadata'' smart constructor.
5353newtype DictionaryListOfflineMetadata' = DictionaryListOfflineMetadata'
gogol-books/gen/Network/Google/Resource/Books/Notification/Get.hsnew file+106
@@ -0,0 +1,106 @@
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.Books.Notification.Get
17+-- Copyright : (c) 2015 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+-- | Returns notification details for a given notification id.
24+--
25+-- /See:/ <https://developers.google.com/books/docs/v1/getting_started Books API Reference> for @BooksNotificationGet@.
26+module Network.Google.Resource.Books.Notification.Get
27+ (
28+ -- * REST Resource
29+ NotificationGetResource
30+
31+ -- * Creating a Request
32+ , notificationGet'
33+ , NotificationGet'
34+
35+ -- * Request Lenses
36+ , ngLocale
37+ , ngNotificationId
38+ , ngSource
39+ ) where
40+
41+import Network.Google.Books.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @BooksNotificationGet@ method which the
45+-- 'NotificationGet'' request conforms to.
46+type NotificationGetResource =
47+ "notification" :>
48+ "get" :>
49+ QueryParam "notification_id" Text :>
50+ QueryParam "locale" Text :>
51+ QueryParam "source" Text :>
52+ QueryParam "alt" AltJSON :> Get '[JSON] Notification
53+
54+-- | Returns notification details for a given notification id.
55+--
56+-- /See:/ 'notificationGet'' smart constructor.
57+data NotificationGet' = NotificationGet'
58+ { _ngLocale :: !(Maybe Text)
59+ , _ngNotificationId :: !Text
60+ , _ngSource :: !(Maybe Text)
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'NotificationGet'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'ngLocale'
68+--
69+-- * 'ngNotificationId'
70+--
71+-- * 'ngSource'
72+notificationGet'
73+ :: Text -- ^ 'notification_id'
74+ -> NotificationGet'
75+notificationGet' pNgNotificationId_ =
76+ NotificationGet'
77+ { _ngLocale = Nothing
78+ , _ngNotificationId = pNgNotificationId_
79+ , _ngSource = Nothing
80+ }
81+
82+-- | ISO-639-1 language and ISO-3166-1 country code. Ex: \'en_US\'. Used for
83+-- generating notification title and body.
84+ngLocale :: Lens' NotificationGet' (Maybe Text)
85+ngLocale = lens _ngLocale (\ s a -> s{_ngLocale = a})
86+
87+-- | String to identify the notification.
88+ngNotificationId :: Lens' NotificationGet' Text
89+ngNotificationId
90+ = lens _ngNotificationId
91+ (\ s a -> s{_ngNotificationId = a})
92+
93+-- | String to identify the originator of this request.
94+ngSource :: Lens' NotificationGet' (Maybe Text)
95+ngSource = lens _ngSource (\ s a -> s{_ngSource = a})
96+
97+instance GoogleRequest NotificationGet' where
98+ type Rs NotificationGet' = Notification
99+ requestClient NotificationGet'{..}
100+ = go (Just _ngNotificationId) _ngLocale _ngSource
101+ (Just AltJSON)
102+ booksService
103+ where go
104+ = buildClient
105+ (Proxy :: Proxy NotificationGetResource)
106+ mempty
gogol-books/gen/Network/Google/Resource/Books/Personalizedstream/Get.hsnew file+109
@@ -0,0 +1,109 @@
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.Books.Personalizedstream.Get
17+-- Copyright : (c) 2015 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+-- | Returns a stream of personalized book clusters
24+--
25+-- /See:/ <https://developers.google.com/books/docs/v1/getting_started Books API Reference> for @BooksPersonalizedstreamGet@.
26+module Network.Google.Resource.Books.Personalizedstream.Get
27+ (
28+ -- * REST Resource
29+ PersonalizedstreamGetResource
30+
31+ -- * Creating a Request
32+ , personalizedstreamGet'
33+ , PersonalizedstreamGet'
34+
35+ -- * Request Lenses
36+ , pgLocale
37+ , pgMaxAllowedMaturityRating
38+ , pgSource
39+ ) where
40+
41+import Network.Google.Books.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @BooksPersonalizedstreamGet@ method which the
45+-- 'PersonalizedstreamGet'' request conforms to.
46+type PersonalizedstreamGetResource =
47+ "personalizedstream" :>
48+ "get" :>
49+ QueryParam "locale" Text :>
50+ QueryParam "maxAllowedMaturityRating"
51+ PersonalizedstreamGetMaxAllowedMaturityRating
52+ :>
53+ QueryParam "source" Text :>
54+ QueryParam "alt" AltJSON :>
55+ Get '[JSON] Discoveryclusters
56+
57+-- | Returns a stream of personalized book clusters
58+--
59+-- /See:/ 'personalizedstreamGet'' smart constructor.
60+data PersonalizedstreamGet' = PersonalizedstreamGet'
61+ { _pgLocale :: !(Maybe Text)
62+ , _pgMaxAllowedMaturityRating :: !(Maybe PersonalizedstreamGetMaxAllowedMaturityRating)
63+ , _pgSource :: !(Maybe Text)
64+ } deriving (Eq,Show,Data,Typeable,Generic)
65+
66+-- | Creates a value of 'PersonalizedstreamGet'' with the minimum fields required to make a request.
67+--
68+-- Use one of the following lenses to modify other fields as desired:
69+--
70+-- * 'pgLocale'
71+--
72+-- * 'pgMaxAllowedMaturityRating'
73+--
74+-- * 'pgSource'
75+personalizedstreamGet'
76+ :: PersonalizedstreamGet'
77+personalizedstreamGet' =
78+ PersonalizedstreamGet'
79+ { _pgLocale = Nothing
80+ , _pgMaxAllowedMaturityRating = Nothing
81+ , _pgSource = Nothing
82+ }
83+
84+-- | ISO-639-1 language and ISO-3166-1 country code. Ex: \'en_US\'. Used for
85+-- generating recommendations.
86+pgLocale :: Lens' PersonalizedstreamGet' (Maybe Text)
87+pgLocale = lens _pgLocale (\ s a -> s{_pgLocale = a})
88+
89+-- | The maximum allowed maturity rating of returned recommendations. Books
90+-- with a higher maturity rating are filtered out.
91+pgMaxAllowedMaturityRating :: Lens' PersonalizedstreamGet' (Maybe PersonalizedstreamGetMaxAllowedMaturityRating)
92+pgMaxAllowedMaturityRating
93+ = lens _pgMaxAllowedMaturityRating
94+ (\ s a -> s{_pgMaxAllowedMaturityRating = a})
95+
96+-- | String to identify the originator of this request.
97+pgSource :: Lens' PersonalizedstreamGet' (Maybe Text)
98+pgSource = lens _pgSource (\ s a -> s{_pgSource = a})
99+
100+instance GoogleRequest PersonalizedstreamGet' where
101+ type Rs PersonalizedstreamGet' = Discoveryclusters
102+ requestClient PersonalizedstreamGet'{..}
103+ = go _pgLocale _pgMaxAllowedMaturityRating _pgSource
104+ (Just AltJSON)
105+ booksService
106+ where go
107+ = buildClient
108+ (Proxy :: Proxy PersonalizedstreamGetResource)
109+ mempty
gogol-books/gogol-books.cabal+2
@@ -67,8 +67,10 @@ library
6767 , Network.Google.Resource.Books.MyLibrary.Bookshelves.Volumes.List
6868 , Network.Google.Resource.Books.MyLibrary.ReadingPositions.Get
6969 , Network.Google.Resource.Books.MyLibrary.ReadingPositions.SetPosition
70+ , Network.Google.Resource.Books.Notification.Get
7071 , Network.Google.Resource.Books.Onboarding.ListCategories
7172 , Network.Google.Resource.Books.Onboarding.ListCategoryVolumes
73+ , Network.Google.Resource.Books.Personalizedstream.Get
7274 , Network.Google.Resource.Books.PromoOffer.Accept
7375 , Network.Google.Resource.Books.PromoOffer.Dismiss
7476 , Network.Google.Resource.Books.PromoOffer.Get
gogol-classroom/gen/Network/Google/Classroom/Types/Product.hs+11−13
@@ -598,12 +598,12 @@ cUpdateTime
598598 = lens _cUpdateTime (\ s a -> s{_cUpdateTime = a})
599599
600600-- | The identifier of the owner of a course. When specified as a parameter
601−-- of a [create course request][google.classroom.v1.Courses.CreateCourse],
602−-- this field is required. The identifier can be one of the following: *
603−-- the numeric identifier for the user * the email address of the user *
604−-- the string literal \`\"me\"\`, indicating the requesting user This must
605−-- be set in a create request. Specifying this field in a course update
606−-- mask will result in an \`INVALID_ARGUMENT\` error.
601+-- of a create course request, this field is required. The identifier can
602+-- be one of the following: * the numeric identifier for the user * the
603+-- email address of the user * the string literal \`\"me\"\`, indicating
604+-- the requesting user This must be set in a create request. Specifying
605+-- this field in a course update mask will result in an
606+-- \`INVALID_ARGUMENT\` error.
607607cOwnerId :: Lens' Course (Maybe Text)
608608cOwnerId = lens _cOwnerId (\ s a -> s{_cOwnerId = a})
609609
@@ -613,13 +613,11 @@ cOwnerId = lens _cOwnerId (\ s a -> s{_cOwnerId = a})
613613cName :: Lens' Course (Maybe Text)
614614cName = lens _cName (\ s a -> s{_cName = a})
615615
616−-- | Identifier for this course assigned by Classroom. When [creating a
617−-- course][google.classroom.v1.Courses.CreateCourse], you may optionally
618−-- set this identifier to an [alias
619−-- string][google.classroom.v1.CourseAlias] in the request to create a
620−-- corresponding alias. The \`id\` is still assigned by Classroom and
621−-- cannot be updated after the course is created. Specifying this field in
622−-- a course update mask will result in an error.
616+-- | Identifier for this course assigned by Classroom. When creating a
617+-- course, you may optionally set this identifier to an alias string in the
618+-- request to create a corresponding alias. The \`id\` is still assigned by
619+-- Classroom and cannot be updated after the course is created. Specifying
620+-- this field in a course update mask will result in an error.
623621cId :: Lens' Course (Maybe Text)
624622cId = lens _cId (\ s a -> s{_cId = a})
625623
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Aliases/Create.hs+5−8
@@ -22,9 +22,8 @@
2222--
2323-- | Creates an alias for a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to create the alias or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if the course does not exist. *
27−-- \`ALREADY_EXISTS\` if the alias already exists.
25+-- to create the alias or for access errors. * \`NOT_FOUND\` if the course
26+-- does not exist. * \`ALREADY_EXISTS\` if the alias already exists.
2827--
2928-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesAliasesCreate@.
3029module Network.Google.Resource.Classroom.Courses.Aliases.Create
@@ -71,9 +70,8 @@ type CoursesAliasesCreateResource =
7170
7271-- | Creates an alias for a course. This method returns the following error
7372-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
74−-- to create the alias or for [general user permission errors][User
75−-- Permission Errors]. * \`NOT_FOUND\` if the course does not exist. *
76−-- \`ALREADY_EXISTS\` if the alias already exists.
73+-- to create the alias or for access errors. * \`NOT_FOUND\` if the course
74+-- does not exist. * \`ALREADY_EXISTS\` if the alias already exists.
7775--
7876-- /See:/ 'coursesAliasesCreate'' smart constructor.
7977data CoursesAliasesCreate' = CoursesAliasesCreate'
@@ -141,8 +139,7 @@ cacPp :: Lens' CoursesAliasesCreate' Bool
141139cacPp = lens _cacPp (\ s a -> s{_cacPp = a})
142140
143141-- | Identifier of the course to alias. This identifier can be either the
144−-- Classroom-assigned identifier or an
145−-- [alias][google.classroom.v1.CourseAlias].
142+-- Classroom-assigned identifier or an alias.
146143cacCourseId :: Lens' CoursesAliasesCreate' Text
147144cacCourseId
148145 = lens _cacCourseId (\ s a -> s{_cacCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Aliases/Delete.hs+5−6
@@ -22,8 +22,8 @@
2222--
2323-- | Deletes an alias of a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to remove the alias or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if the alias does not exist.
25+-- to remove the alias or for access errors. * \`NOT_FOUND\` if the alias
26+-- does not exist.
2727--
2828-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesAliasesDelete@.
2929module Network.Google.Resource.Classroom.Courses.Aliases.Delete
@@ -69,8 +69,8 @@ type CoursesAliasesDeleteResource =
6969
7070-- | Deletes an alias of a course. This method returns the following error
7171-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
72−-- to remove the alias or for [general user permission errors][User
73−-- Permission Errors]. * \`NOT_FOUND\` if the alias does not exist.
72+-- to remove the alias or for access errors. * \`NOT_FOUND\` if the alias
73+-- does not exist.
7474--
7575-- /See:/ 'coursesAliasesDelete'' smart constructor.
7676data CoursesAliasesDelete' = CoursesAliasesDelete'
@@ -138,8 +138,7 @@ cadPp :: Lens' CoursesAliasesDelete' Bool
138138cadPp = lens _cadPp (\ s a -> s{_cadPp = a})
139139
140140-- | Identifier of the course whose alias should be deleted. This identifier
141−-- can be either the Classroom-assigned identifier or an
142−-- [alias][google.classroom.v1.CourseAlias].
141+-- can be either the Classroom-assigned identifier or an alias.
143142cadCourseId :: Lens' CoursesAliasesDelete' Text
144143cadCourseId
145144 = lens _cadCourseId (\ s a -> s{_cadCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Aliases/List.hs+8−14
@@ -22,9 +22,8 @@
2222--
2323-- | Returns a list of aliases for a course. This method returns the
2424-- following error codes: * \`PERMISSION_DENIED\` if the requesting user is
25−-- not permitted to access the course or for [general user permission
26−-- errors][User Permission Errors]. * \`NOT_FOUND\` if the course does not
27−-- exist.
25+-- not permitted to access the course or for access errors. * \`NOT_FOUND\`
26+-- if the course does not exist.
2827--
2928-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesAliasesList@.
3029module Network.Google.Resource.Classroom.Courses.Aliases.List
@@ -73,9 +72,8 @@ type CoursesAliasesListResource =
7372
7473-- | Returns a list of aliases for a course. This method returns the
7574-- following error codes: * \`PERMISSION_DENIED\` if the requesting user is
76−-- not permitted to access the course or for [general user permission
77−-- errors][User Permission Errors]. * \`NOT_FOUND\` if the course does not
78−-- exist.
75+-- not permitted to access the course or for access errors. * \`NOT_FOUND\`
76+-- if the course does not exist.
7977--
8078-- /See:/ 'coursesAliasesList'' smart constructor.
8179data CoursesAliasesList' = CoursesAliasesList'
@@ -146,8 +144,7 @@ calPp :: Lens' CoursesAliasesList' Bool
146144calPp = lens _calPp (\ s a -> s{_calPp = a})
147145
148146-- | The identifier of the course. This identifier can be either the
149−-- Classroom-assigned identifier or an
150−-- [alias][google.classroom.v1.CourseAlias].
147+-- Classroom-assigned identifier or an alias.
151148calCourseId :: Lens' CoursesAliasesList' Text
152149calCourseId
153150 = lens _calCourseId (\ s a -> s{_calCourseId = a})
@@ -170,12 +167,9 @@ calBearerToken
170167 = lens _calBearerToken
171168 (\ s a -> s{_calBearerToken = a})
172169
173−-- | [nextPageToken][google.classroom.v1.ListCourseAliasesResponse.next_page_token]
174−-- value returned from a previous
175−-- [list][google.classroom.v1.Courses.ListCourseAliases] call, indicating
176−-- that the subsequent page of results should be returned. The
177−-- [list][google.classroom.v1.Courses.ListCourseAliases] request must be
178−-- otherwise identical to the one that resulted in this token.
170+-- | nextPageToken value returned from a previous list call, indicating that
171+-- the subsequent page of results should be returned. The list request must
172+-- be otherwise identical to the one that resulted in this token.
179173calPageToken :: Lens' CoursesAliasesList' (Maybe Text)
180174calPageToken
181175 = lens _calPageToken (\ s a -> s{_calPageToken = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Create.hs+10−10
@@ -23,11 +23,11 @@
2323-- | Creates a course. The user specified in \`ownerId\` is the owner of the
2424-- created course and added as a teacher. This method returns the following
2525-- error codes: * \`PERMISSION_DENIED\` if the requesting user is not
26−-- permitted to create courses or for [general user permission errors][User
27−-- Permission Errors]. * \`NOT_FOUND\` if the primary teacher is not a
28−-- valid user. * \`FAILED_PRECONDITION\` if the course owner\'s account is
29−-- disabled. * \`ALREADY_EXISTS\` if an alias was specified in the \`id\`
30−-- and already exists.
26+-- permitted to create courses or for access errors. * \`NOT_FOUND\` if the
27+-- primary teacher is not a valid user. * \`FAILED_PRECONDITION\` if the
28+-- course owner\'s account is disabled or for the following request errors:
29+-- * UserGroupsMembershipLimitReached * \`ALREADY_EXISTS\` if an alias was
30+-- specified in the \`id\` and already exists.
3131--
3232-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesCreate@.
3333module Network.Google.Resource.Classroom.Courses.Create
@@ -71,11 +71,11 @@ type CoursesCreateResource =
7171-- | Creates a course. The user specified in \`ownerId\` is the owner of the
7272-- created course and added as a teacher. This method returns the following
7373-- error codes: * \`PERMISSION_DENIED\` if the requesting user is not
74−-- permitted to create courses or for [general user permission errors][User
75−-- Permission Errors]. * \`NOT_FOUND\` if the primary teacher is not a
76−-- valid user. * \`FAILED_PRECONDITION\` if the course owner\'s account is
77−-- disabled. * \`ALREADY_EXISTS\` if an alias was specified in the \`id\`
78−-- and already exists.
74+-- permitted to create courses or for access errors. * \`NOT_FOUND\` if the
75+-- primary teacher is not a valid user. * \`FAILED_PRECONDITION\` if the
76+-- course owner\'s account is disabled or for the following request errors:
77+-- * UserGroupsMembershipLimitReached * \`ALREADY_EXISTS\` if an alias was
78+-- specified in the \`id\` and already exists.
7979--
8080-- /See:/ 'coursesCreate'' smart constructor.
8181data CoursesCreate' = CoursesCreate'
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Delete.hs+5−8
@@ -22,9 +22,8 @@
2222--
2323-- | Deletes a course. This method returns the following error codes: *
2424-- \`PERMISSION_DENIED\` if the requesting user is not permitted to delete
25−-- the requested course or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if no course exists with the
27−-- requested ID.
25+-- the requested course or for access errors. * \`NOT_FOUND\` if no course
26+-- exists with the requested ID.
2827--
2928-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesDelete@.
3029module Network.Google.Resource.Classroom.Courses.Delete
@@ -67,9 +66,8 @@ type CoursesDeleteResource =
6766
6867-- | Deletes a course. This method returns the following error codes: *
6968-- \`PERMISSION_DENIED\` if the requesting user is not permitted to delete
70−-- the requested course or for [general user permission errors][User
71−-- Permission Errors]. * \`NOT_FOUND\` if no course exists with the
72−-- requested ID.
69+-- the requested course or for access errors. * \`NOT_FOUND\` if no course
70+-- exists with the requested ID.
7371--
7472-- /See:/ 'coursesDelete'' smart constructor.
7573data CoursesDelete' = CoursesDelete'
@@ -149,8 +147,7 @@ cdBearerToken
149147 (\ s a -> s{_cdBearerToken = a})
150148
151149-- | Identifier of the course to delete. This identifier can be either the
152−-- Classroom-assigned identifier or an
153−-- [alias][google.classroom.v1.CourseAlias].
150+-- Classroom-assigned identifier or an alias.
154151cdId :: Lens' CoursesDelete' Text
155152cdId = lens _cdId (\ s a -> s{_cdId = a})
156153
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Get.hs+5−8
@@ -22,9 +22,8 @@
2222--
2323-- | Returns a course. This method returns the following error codes: *
2424-- \`PERMISSION_DENIED\` if the requesting user is not permitted to access
25−-- the requested course or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if no course exists with the
27−-- requested ID.
25+-- the requested course or for access errors. * \`NOT_FOUND\` if no course
26+-- exists with the requested ID.
2827--
2928-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesGet@.
3029module Network.Google.Resource.Classroom.Courses.Get
@@ -67,9 +66,8 @@ type CoursesGetResource =
6766
6867-- | Returns a course. This method returns the following error codes: *
6968-- \`PERMISSION_DENIED\` if the requesting user is not permitted to access
70−-- the requested course or for [general user permission errors][User
71−-- Permission Errors]. * \`NOT_FOUND\` if no course exists with the
72−-- requested ID.
69+-- the requested course or for access errors. * \`NOT_FOUND\` if no course
70+-- exists with the requested ID.
7371--
7472-- /See:/ 'coursesGet'' smart constructor.
7573data CoursesGet' = CoursesGet'
@@ -149,8 +147,7 @@ cgBearerToken
149147 (\ s a -> s{_cgBearerToken = a})
150148
151149-- | Identifier of the course to return. This identifier can be either the
152−-- Classroom-assigned identifier or an
153−-- [alias][google.classroom.v1.CourseAlias].
150+-- Classroom-assigned identifier or an alias.
154151cgId :: Lens' CoursesGet' Text
155152cgId = lens _cgId (\ s a -> s{_cgId = a})
156153
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/List.hs+9−14
@@ -22,10 +22,9 @@
2222--
2323-- | Returns a list of courses that the requesting user is permitted to view,
2424-- restricted to those that match the request. This method returns the
25−-- following error codes: * \`PERMISSION_DENIED\` for [general user
26−-- permission errors][User Permission Errors]. * \`INVALID_ARGUMENT\` if
27−-- the query argument is malformed. * \`NOT_FOUND\` if any users specified
28−-- in the query arguments do not exist.
25+-- following error codes: * \`PERMISSION_DENIED\` for access errors. *
26+-- \`INVALID_ARGUMENT\` if the query argument is malformed. * \`NOT_FOUND\`
27+-- if any users specified in the query arguments do not exist.
2928--
3029-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesList@.
3130module Network.Google.Resource.Classroom.Courses.List
@@ -75,10 +74,9 @@ type CoursesListResource =
7574
7675-- | Returns a list of courses that the requesting user is permitted to view,
7776-- restricted to those that match the request. This method returns the
78−-- following error codes: * \`PERMISSION_DENIED\` for [general user
79−-- permission errors][User Permission Errors]. * \`INVALID_ARGUMENT\` if
80−-- the query argument is malformed. * \`NOT_FOUND\` if any users specified
81−-- in the query arguments do not exist.
77+-- following error codes: * \`PERMISSION_DENIED\` for access errors. *
78+-- \`INVALID_ARGUMENT\` if the query argument is malformed. * \`NOT_FOUND\`
79+-- if any users specified in the query arguments do not exist.
8280--
8381-- /See:/ 'coursesList'' smart constructor.
8482data CoursesList' = CoursesList'
@@ -184,12 +182,9 @@ clBearerToken
184182 = lens _clBearerToken
185183 (\ s a -> s{_clBearerToken = a})
186184
187−-- | [nextPageToken][google.classroom.v1.ListCoursesResponse.next_page_token]
188−-- value returned from a previous
189−-- [list][google.classroom.v1.Courses.ListCourses] call, indicating that
190−-- the subsequent page of results should be returned. The
191−-- [list][google.classroom.v1.Courses.ListCourses] request must be
192−-- otherwise identical to the one that resulted in this token.
185+-- | nextPageToken value returned from a previous list call, indicating that
186+-- the subsequent page of results should be returned. The list request must
187+-- be otherwise identical to the one that resulted in this token.
193188clPageToken :: Lens' CoursesList' (Maybe Text)
194189clPageToken
195190 = lens _clPageToken (\ s a -> s{_clPageToken = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Patch.hs+11−10
@@ -22,10 +22,11 @@
2222--
2323-- | Updates one or more fields in a course. This method returns the
2424-- following error codes: * \`PERMISSION_DENIED\` if the requesting user is
25−-- not permitted to modify the requested course or for [general user
26−-- permission errors][User Permission Errors]. * \`NOT_FOUND\` if no course
27−-- exists with the requested ID. * \`INVALID_ARGUMENT\` if invalid fields
28−-- are specified in the update mask or if no update mask is supplied.
25+-- not permitted to modify the requested course or for access errors. *
26+-- \`NOT_FOUND\` if no course exists with the requested ID. *
27+-- \`INVALID_ARGUMENT\` if invalid fields are specified in the update mask
28+-- or if no update mask is supplied. * \`FAILED_PRECONDITION\` for the
29+-- following request errors: * CourseNotModifiable
2930--
3031-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesPatch@.
3132module Network.Google.Resource.Classroom.Courses.Patch
@@ -72,10 +73,11 @@ type CoursesPatchResource =
7273
7374-- | Updates one or more fields in a course. This method returns the
7475-- following error codes: * \`PERMISSION_DENIED\` if the requesting user is
75−-- not permitted to modify the requested course or for [general user
76−-- permission errors][User Permission Errors]. * \`NOT_FOUND\` if no course
77−-- exists with the requested ID. * \`INVALID_ARGUMENT\` if invalid fields
78−-- are specified in the update mask or if no update mask is supplied.
76+-- not permitted to modify the requested course or for access errors. *
77+-- \`NOT_FOUND\` if no course exists with the requested ID. *
78+-- \`INVALID_ARGUMENT\` if invalid fields are specified in the update mask
79+-- or if no update mask is supplied. * \`FAILED_PRECONDITION\` for the
80+-- following request errors: * CourseNotModifiable
7981--
8082-- /See:/ 'coursesPatch'' smart constructor.
8183data CoursesPatch' = CoursesPatch'
@@ -179,8 +181,7 @@ cpBearerToken
179181 (\ s a -> s{_cpBearerToken = a})
180182
181183-- | Identifier of the course to update. This identifier can be either the
182−-- Classroom-assigned identifier or an
183−-- [alias][google.classroom.v1.CourseAlias].
184+-- Classroom-assigned identifier or an alias.
184185cpId :: Lens' CoursesPatch' Text
185186cpId = lens _cpId (\ s a -> s{_cpId = a})
186187
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Create.hs+18−15
@@ -22,11 +22,13 @@
2222--
2323-- | Adds a user as a student of a course. This method returns the following
2424-- error codes: * \`PERMISSION_DENIED\` if the requesting user is not
25−-- permitted to create students in this course or for [general user
26−-- permission errors][User Permission Errors]. * \`NOT_FOUND\` if the
27−-- requested course ID does not exist. * \`FAILED_PRECONDITION\` if the
28−-- requested user\'s account is disabled. * \`ALREADY_EXISTS\` if the user
29−-- is already a student or teacher in the course.
25+-- permitted to create students in this course or for access errors. *
26+-- \`NOT_FOUND\` if the requested course ID does not exist. *
27+-- \`FAILED_PRECONDITION\` if the requested user\'s account is disabled,
28+-- for the following request errors: * CourseMemberLimitReached *
29+-- CourseNotModifiable * UserGroupsMembershipLimitReached *
30+-- \`ALREADY_EXISTS\` if the user is already a student or teacher in the
31+-- course.
3032--
3133-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesStudentsCreate@.
3234module Network.Google.Resource.Classroom.Courses.Students.Create
@@ -74,11 +76,13 @@ type CoursesStudentsCreateResource =
7476
7577-- | Adds a user as a student of a course. This method returns the following
7678-- error codes: * \`PERMISSION_DENIED\` if the requesting user is not
77−-- permitted to create students in this course or for [general user
78−-- permission errors][User Permission Errors]. * \`NOT_FOUND\` if the
79−-- requested course ID does not exist. * \`FAILED_PRECONDITION\` if the
80−-- requested user\'s account is disabled. * \`ALREADY_EXISTS\` if the user
81−-- is already a student or teacher in the course.
79+-- permitted to create students in this course or for access errors. *
80+-- \`NOT_FOUND\` if the requested course ID does not exist. *
81+-- \`FAILED_PRECONDITION\` if the requested user\'s account is disabled,
82+-- for the following request errors: * CourseMemberLimitReached *
83+-- CourseNotModifiable * UserGroupsMembershipLimitReached *
84+-- \`ALREADY_EXISTS\` if the user is already a student or teacher in the
85+-- course.
8286--
8387-- /See:/ 'coursesStudentsCreate'' smart constructor.
8488data CoursesStudentsCreate' = CoursesStudentsCreate'
@@ -150,8 +154,7 @@ cscPp :: Lens' CoursesStudentsCreate' Bool
150154cscPp = lens _cscPp (\ s a -> s{_cscPp = a})
151155
152156-- | Identifier of the course to create the student in. This identifier can
153−-- be either the Classroom-assigned identifier or an
154−-- [alias][google.classroom.v1.CourseAlias].
157+-- be either the Classroom-assigned identifier or an alias.
155158cscCourseId :: Lens' CoursesStudentsCreate' Text
156159cscCourseId
157160 = lens _cscCourseId (\ s a -> s{_cscCourseId = a})
@@ -174,9 +177,9 @@ cscPayload
174177 = lens _cscPayload (\ s a -> s{_cscPayload = a})
175178
176179-- | Enrollment code of the course to create the student in. This code is
177−-- required if [userId][google.classroom.v1.Student.user_id] corresponds to
178−-- the requesting user; it may be omitted if the requesting user has
179−-- administrative permissions to create students for any user.
180+-- required if userId corresponds to the requesting user; it may be omitted
181+-- if the requesting user has administrative permissions to create students
182+-- for any user.
180183cscEnrollmentCode :: Lens' CoursesStudentsCreate' (Maybe Text)
181184cscEnrollmentCode
182185 = lens _cscEnrollmentCode
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Delete.hs+7−8
@@ -22,9 +22,9 @@
2222--
2323-- | Deletes a student of a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to delete students of this course or for [general user permission
26−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no student of this
27−-- course has the requested ID or if the course does not exist.
25+-- to delete students of this course or for access errors. * \`NOT_FOUND\`
26+-- if no student of this course has the requested ID or if the course does
27+-- not exist.
2828--
2929-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesStudentsDelete@.
3030module Network.Google.Resource.Classroom.Courses.Students.Delete
@@ -70,9 +70,9 @@ type CoursesStudentsDeleteResource =
7070
7171-- | Deletes a student of a course. This method returns the following error
7272-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
73−-- to delete students of this course or for [general user permission
74−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no student of this
75−-- course has the requested ID or if the course does not exist.
73+-- to delete students of this course or for access errors. * \`NOT_FOUND\`
74+-- if no student of this course has the requested ID or if the course does
75+-- not exist.
7676--
7777-- /See:/ 'coursesStudentsDelete'' smart constructor.
7878data CoursesStudentsDelete' = CoursesStudentsDelete'
@@ -140,8 +140,7 @@ csdPp :: Lens' CoursesStudentsDelete' Bool
140140csdPp = lens _csdPp (\ s a -> s{_csdPp = a})
141141
142142-- | Identifier of the course. This identifier can be either the
143−-- Classroom-assigned identifier or an
144−-- [alias][google.classroom.v1.CourseAlias].
143+-- Classroom-assigned identifier or an alias.
145144csdCourseId :: Lens' CoursesStudentsDelete' Text
146145csdCourseId
147146 = lens _csdCourseId (\ s a -> s{_csdCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Get.hs+7−8
@@ -22,9 +22,9 @@
2222--
2323-- | Returns a student of a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to view students of this course or for [general user permission
26−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no student of this
27−-- course has the requested ID or if the course does not exist.
25+-- to view students of this course or for access errors. * \`NOT_FOUND\` if
26+-- no student of this course has the requested ID or if the course does not
27+-- exist.
2828--
2929-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesStudentsGet@.
3030module Network.Google.Resource.Classroom.Courses.Students.Get
@@ -70,9 +70,9 @@ type CoursesStudentsGetResource =
7070
7171-- | Returns a student of a course. This method returns the following error
7272-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
73−-- to view students of this course or for [general user permission
74−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no student of this
75−-- course has the requested ID or if the course does not exist.
73+-- to view students of this course or for access errors. * \`NOT_FOUND\` if
74+-- no student of this course has the requested ID or if the course does not
75+-- exist.
7676--
7777-- /See:/ 'coursesStudentsGet'' smart constructor.
7878data CoursesStudentsGet' = CoursesStudentsGet'
@@ -140,8 +140,7 @@ csgPp :: Lens' CoursesStudentsGet' Bool
140140csgPp = lens _csgPp (\ s a -> s{_csgPp = a})
141141
142142-- | Identifier of the course. This identifier can be either the
143−-- Classroom-assigned identifier or an
144−-- [alias][google.classroom.v1.CourseAlias].
143+-- Classroom-assigned identifier or an alias.
145144csgCourseId :: Lens' CoursesStudentsGet' Text
146145csgCourseId
147146 = lens _csgCourseId (\ s a -> s{_csgCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/List.hs+6−10
@@ -23,7 +23,7 @@
2323-- | Returns a list of students of this course that the requester is
2424-- permitted to view. This method returns the following error codes: *
2525-- \`NOT_FOUND\` if the course does not exist. * \`PERMISSION_DENIED\` for
26−-- [general user permission errors][User Permission Errors].
26+-- access errors.
2727--
2828-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesStudentsList@.
2929module Network.Google.Resource.Classroom.Courses.Students.List
@@ -73,7 +73,7 @@ type CoursesStudentsListResource =
7373-- | Returns a list of students of this course that the requester is
7474-- permitted to view. This method returns the following error codes: *
7575-- \`NOT_FOUND\` if the course does not exist. * \`PERMISSION_DENIED\` for
76−-- [general user permission errors][User Permission Errors].
76+-- access errors.
7777--
7878-- /See:/ 'coursesStudentsList'' smart constructor.
7979data CoursesStudentsList' = CoursesStudentsList'
@@ -144,8 +144,7 @@ cslPp :: Lens' CoursesStudentsList' Bool
144144cslPp = lens _cslPp (\ s a -> s{_cslPp = a})
145145
146146-- | Identifier of the course. This identifier can be either the
147−-- Classroom-assigned identifier or an
148−-- [alias][google.classroom.v1.CourseAlias].
147+-- Classroom-assigned identifier or an alias.
149148cslCourseId :: Lens' CoursesStudentsList' Text
150149cslCourseId
151150 = lens _cslCourseId (\ s a -> s{_cslCourseId = a})
@@ -168,12 +167,9 @@ cslBearerToken
168167 = lens _cslBearerToken
169168 (\ s a -> s{_cslBearerToken = a})
170169
171−-- | [nextPageToken][google.classroom.v1.ListStudentsResponse.next_page_token]
172−-- value returned from a previous
173−-- [list][google.classroom.v1.Users.ListStudents] call, indicating that the
174−-- subsequent page of results should be returned. The
175−-- [list][google.classroom.v1.Users.ListStudents] request must be otherwise
176−-- identical to the one that resulted in this token.
170+-- | nextPageToken value returned from a previous list call, indicating that
171+-- the subsequent page of results should be returned. The list request must
172+-- be otherwise identical to the one that resulted in this token.
177173cslPageToken :: Lens' CoursesStudentsList' (Maybe Text)
178174cslPageToken
179175 = lens _cslPageToken (\ s a -> s{_cslPageToken = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/Create.hs+15−12
@@ -22,11 +22,13 @@
2222--
2323-- | Creates a teacher of a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to create teachers in this course or for [general user permission
26−-- errors][User Permission Errors]. * \`NOT_FOUND\` if the requested course
27−-- ID does not exist. * \`FAILED_PRECONDITION\` if the requested user\'s
28−-- account is disabled. * \`ALREADY_EXISTS\` if the user is already a
29−-- teacher or student in the course.
25+-- to create teachers in this course or for access errors. * \`NOT_FOUND\`
26+-- if the requested course ID does not exist. * \`FAILED_PRECONDITION\` if
27+-- the requested user\'s account is disabled, for the following request
28+-- errors: * CourseMemberLimitReached * CourseNotModifiable *
29+-- CourseTeacherLimitReached * UserGroupsMembershipLimitReached *
30+-- \`ALREADY_EXISTS\` if the user is already a teacher or student in the
31+-- course.
3032--
3133-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesTeachersCreate@.
3234module Network.Google.Resource.Classroom.Courses.Teachers.Create
@@ -72,11 +74,13 @@ type CoursesTeachersCreateResource =
7274
7375-- | Creates a teacher of a course. This method returns the following error
7476-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
75−-- to create teachers in this course or for [general user permission
76−-- errors][User Permission Errors]. * \`NOT_FOUND\` if the requested course
77−-- ID does not exist. * \`FAILED_PRECONDITION\` if the requested user\'s
78−-- account is disabled. * \`ALREADY_EXISTS\` if the user is already a
79−-- teacher or student in the course.
77+-- to create teachers in this course or for access errors. * \`NOT_FOUND\`
78+-- if the requested course ID does not exist. * \`FAILED_PRECONDITION\` if
79+-- the requested user\'s account is disabled, for the following request
80+-- errors: * CourseMemberLimitReached * CourseNotModifiable *
81+-- CourseTeacherLimitReached * UserGroupsMembershipLimitReached *
82+-- \`ALREADY_EXISTS\` if the user is already a teacher or student in the
83+-- course.
8084--
8185-- /See:/ 'coursesTeachersCreate'' smart constructor.
8286data CoursesTeachersCreate' = CoursesTeachersCreate'
@@ -144,8 +148,7 @@ ctcPp :: Lens' CoursesTeachersCreate' Bool
144148ctcPp = lens _ctcPp (\ s a -> s{_ctcPp = a})
145149
146150-- | Identifier of the course. This identifier can be either the
147−-- Classroom-assigned identifier or an
148−-- [alias][google.classroom.v1.CourseAlias].
151+-- Classroom-assigned identifier or an alias.
149152ctcCourseId :: Lens' CoursesTeachersCreate' Text
150153ctcCourseId
151154 = lens _ctcCourseId (\ s a -> s{_ctcCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/Delete.hs+9−12
@@ -22,11 +22,10 @@
2222--
2323-- | Deletes a teacher of a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to delete teachers of this course or for [general user permission
26−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no teacher of this
27−-- course has the requested ID or if the course does not exist. *
28−-- \`FAILED_PRECONDITION\` if the requested ID belongs to the primary
29−-- teacher of this course.
25+-- to delete teachers of this course or for access errors. * \`NOT_FOUND\`
26+-- if no teacher of this course has the requested ID or if the course does
27+-- not exist. * \`FAILED_PRECONDITION\` if the requested ID belongs to the
28+-- primary teacher of this course.
3029--
3130-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesTeachersDelete@.
3231module Network.Google.Resource.Classroom.Courses.Teachers.Delete
@@ -72,11 +71,10 @@ type CoursesTeachersDeleteResource =
7271
7372-- | Deletes a teacher of a course. This method returns the following error
7473-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
75−-- to delete teachers of this course or for [general user permission
76−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no teacher of this
77−-- course has the requested ID or if the course does not exist. *
78−-- \`FAILED_PRECONDITION\` if the requested ID belongs to the primary
79−-- teacher of this course.
74+-- to delete teachers of this course or for access errors. * \`NOT_FOUND\`
75+-- if no teacher of this course has the requested ID or if the course does
76+-- not exist. * \`FAILED_PRECONDITION\` if the requested ID belongs to the
77+-- primary teacher of this course.
8078--
8179-- /See:/ 'coursesTeachersDelete'' smart constructor.
8280data CoursesTeachersDelete' = CoursesTeachersDelete'
@@ -144,8 +142,7 @@ ctdPp :: Lens' CoursesTeachersDelete' Bool
144142ctdPp = lens _ctdPp (\ s a -> s{_ctdPp = a})
145143
146144-- | Identifier of the course. This identifier can be either the
147−-- Classroom-assigned identifier or an
148−-- [alias][google.classroom.v1.CourseAlias].
145+-- Classroom-assigned identifier or an alias.
149146ctdCourseId :: Lens' CoursesTeachersDelete' Text
150147ctdCourseId
151148 = lens _ctdCourseId (\ s a -> s{_ctdCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/Get.hs+7−8
@@ -22,9 +22,9 @@
2222--
2323-- | Returns a teacher of a course. This method returns the following error
2424-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
25−-- to view teachers of this course or for [general user permission
26−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no teacher of this
27−-- course has the requested ID or if the course does not exist.
25+-- to view teachers of this course or for access errors. * \`NOT_FOUND\` if
26+-- no teacher of this course has the requested ID or if the course does not
27+-- exist.
2828--
2929-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesTeachersGet@.
3030module Network.Google.Resource.Classroom.Courses.Teachers.Get
@@ -70,9 +70,9 @@ type CoursesTeachersGetResource =
7070
7171-- | Returns a teacher of a course. This method returns the following error
7272-- codes: * \`PERMISSION_DENIED\` if the requesting user is not permitted
73−-- to view teachers of this course or for [general user permission
74−-- errors][User Permission Errors]. * \`NOT_FOUND\` if no teacher of this
75−-- course has the requested ID or if the course does not exist.
73+-- to view teachers of this course or for access errors. * \`NOT_FOUND\` if
74+-- no teacher of this course has the requested ID or if the course does not
75+-- exist.
7676--
7777-- /See:/ 'coursesTeachersGet'' smart constructor.
7878data CoursesTeachersGet' = CoursesTeachersGet'
@@ -140,8 +140,7 @@ ctgPp :: Lens' CoursesTeachersGet' Bool
140140ctgPp = lens _ctgPp (\ s a -> s{_ctgPp = a})
141141
142142-- | Identifier of the course. This identifier can be either the
143−-- Classroom-assigned identifier or an
144−-- [alias][google.classroom.v1.CourseAlias].
143+-- Classroom-assigned identifier or an alias.
145144ctgCourseId :: Lens' CoursesTeachersGet' Text
146145ctgCourseId
147146 = lens _ctgCourseId (\ s a -> s{_ctgCourseId = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Teachers/List.hs+6−10
@@ -23,7 +23,7 @@
2323-- | Returns a list of teachers of this course that the requester is
2424-- permitted to view. This method returns the following error codes: *
2525-- \`NOT_FOUND\` if the course does not exist. * \`PERMISSION_DENIED\` for
26−-- [general user permission errors][User Permission Errors].
26+-- access errors.
2727--
2828-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesTeachersList@.
2929module Network.Google.Resource.Classroom.Courses.Teachers.List
@@ -73,7 +73,7 @@ type CoursesTeachersListResource =
7373-- | Returns a list of teachers of this course that the requester is
7474-- permitted to view. This method returns the following error codes: *
7575-- \`NOT_FOUND\` if the course does not exist. * \`PERMISSION_DENIED\` for
76−-- [general user permission errors][User Permission Errors].
76+-- access errors.
7777--
7878-- /See:/ 'coursesTeachersList'' smart constructor.
7979data CoursesTeachersList' = CoursesTeachersList'
@@ -144,8 +144,7 @@ ctlPp :: Lens' CoursesTeachersList' Bool
144144ctlPp = lens _ctlPp (\ s a -> s{_ctlPp = a})
145145
146146-- | Identifier of the course. This identifier can be either the
147−-- Classroom-assigned identifier or an
148−-- [alias][google.classroom.v1.CourseAlias].
147+-- Classroom-assigned identifier or an alias.
149148ctlCourseId :: Lens' CoursesTeachersList' Text
150149ctlCourseId
151150 = lens _ctlCourseId (\ s a -> s{_ctlCourseId = a})
@@ -168,12 +167,9 @@ ctlBearerToken
168167 = lens _ctlBearerToken
169168 (\ s a -> s{_ctlBearerToken = a})
170169
171−-- | [nextPageToken][google.classroom.v1.ListTeachersResponse.next_page_token]
172−-- value returned from a previous
173−-- [list][google.classroom.v1.Users.ListTeachers] call, indicating that the
174−-- subsequent page of results should be returned. The
175−-- [list][google.classroom.v1.Users.ListTeachers] request must be otherwise
176−-- identical to the one that resulted in this token.
170+-- | nextPageToken value returned from a previous list call, indicating that
171+-- the subsequent page of results should be returned. The list request must
172+-- be otherwise identical to the one that resulted in this token.
177173ctlPageToken :: Lens' CoursesTeachersList' (Maybe Text)
178174ctlPageToken
179175 = lens _ctlPageToken (\ s a -> s{_ctlPageToken = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Update.hs+7−8
@@ -22,9 +22,9 @@
2222--
2323-- | Updates a course. This method returns the following error codes: *
2424-- \`PERMISSION_DENIED\` if the requesting user is not permitted to modify
25−-- the requested course or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if no course exists with the
27−-- requested ID.
25+-- the requested course or for access errors. * \`NOT_FOUND\` if no course
26+-- exists with the requested ID. * \`FAILED_PRECONDITION\` for the
27+-- following request errors: * CourseNotModifiable
2828--
2929-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomCoursesUpdate@.
3030module Network.Google.Resource.Classroom.Courses.Update
@@ -69,9 +69,9 @@ type CoursesUpdateResource =
6969
7070-- | Updates a course. This method returns the following error codes: *
7171-- \`PERMISSION_DENIED\` if the requesting user is not permitted to modify
72−-- the requested course or for [general user permission errors][User
73−-- Permission Errors]. * \`NOT_FOUND\` if no course exists with the
74−-- requested ID.
72+-- the requested course or for access errors. * \`NOT_FOUND\` if no course
73+-- exists with the requested ID. * \`FAILED_PRECONDITION\` for the
74+-- following request errors: * CourseNotModifiable
7575--
7676-- /See:/ 'coursesUpdate'' smart constructor.
7777data CoursesUpdate' = CoursesUpdate'
@@ -161,8 +161,7 @@ cuBearerToken
161161 (\ s a -> s{_cuBearerToken = a})
162162
163163-- | Identifier of the course to update. This identifier can be either the
164−-- Classroom-assigned identifier or an
165−-- [alias][google.classroom.v1.CourseAlias].
164+-- Classroom-assigned identifier or an alias.
166165cuId :: Lens' CoursesUpdate' Text
167166cuId = lens _cuId (\ s a -> s{_cuId = a})
168167
gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Accept.hs+10−6
@@ -24,9 +24,11 @@
2424-- teachers or students (as appropriate) of the specified course. Only the
2525-- invited user may accept an invitation. This method returns the following
2626-- error codes: * \`PERMISSION_DENIED\` if the requesting user is not
27−-- permitted to accept the requested invitation or for [general user
28−-- permission errors][User Permission Errors]. * \`NOT_FOUND\` if no
29−-- invitation exists with the requested ID.
27+-- permitted to accept the requested invitation or for access errors. *
28+-- \`FAILED_PRECONDITION\` for the following request errors: *
29+-- CourseMemberLimitReached * CourseNotModifiable *
30+-- CourseTeacherLimitReached * UserGroupsMembershipLimitReached *
31+-- \`NOT_FOUND\` if no invitation exists with the requested ID.
3032--
3133-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomInvitationsAccept@.
3234module Network.Google.Resource.Classroom.Invitations.Accept
@@ -71,9 +73,11 @@ type InvitationsAcceptResource =
7173-- teachers or students (as appropriate) of the specified course. Only the
7274-- invited user may accept an invitation. This method returns the following
7375-- error codes: * \`PERMISSION_DENIED\` if the requesting user is not
74−-- permitted to accept the requested invitation or for [general user
75−-- permission errors][User Permission Errors]. * \`NOT_FOUND\` if no
76−-- invitation exists with the requested ID.
76+-- permitted to accept the requested invitation or for access errors. *
77+-- \`FAILED_PRECONDITION\` for the following request errors: *
78+-- CourseMemberLimitReached * CourseNotModifiable *
79+-- CourseTeacherLimitReached * UserGroupsMembershipLimitReached *
80+-- \`NOT_FOUND\` if no invitation exists with the requested ID.
7781--
7882-- /See:/ 'invitationsAccept'' smart constructor.
7983data InvitationsAccept' = InvitationsAccept'
gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Create.hs+10−12
@@ -24,12 +24,11 @@
2424-- exist at a time. Delete and re-create an invitation to make changes.
2525-- This method returns the following error codes: * \`PERMISSION_DENIED\`
2626-- if the requesting user is not permitted to create invitations for this
27−-- course or for [general user permission errors][User Permission Errors].
28−-- * \`NOT_FOUND\` if the course or the user does not exist. *
29−-- \`FAILED_PRECONDITION\` if the requested user\'s account is disabled or
30−-- if the user already has this role or a role with greater permissions. *
31−-- \`ALREADY_EXISTS\` if an invitation for the specified user and course
32−-- already exists.
27+-- course or for access errors. * \`NOT_FOUND\` if the course or the user
28+-- does not exist. * \`FAILED_PRECONDITION\` if the requested user\'s
29+-- account is disabled or if the user already has this role or a role with
30+-- greater permissions. * \`ALREADY_EXISTS\` if an invitation for the
31+-- specified user and course already exists.
3332--
3433-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomInvitationsCreate@.
3534module Network.Google.Resource.Classroom.Invitations.Create
@@ -74,12 +73,11 @@ type InvitationsCreateResource =
7473-- exist at a time. Delete and re-create an invitation to make changes.
7574-- This method returns the following error codes: * \`PERMISSION_DENIED\`
7675-- if the requesting user is not permitted to create invitations for this
77−-- course or for [general user permission errors][User Permission Errors].
78−-- * \`NOT_FOUND\` if the course or the user does not exist. *
79−-- \`FAILED_PRECONDITION\` if the requested user\'s account is disabled or
80−-- if the user already has this role or a role with greater permissions. *
81−-- \`ALREADY_EXISTS\` if an invitation for the specified user and course
82−-- already exists.
76+-- course or for access errors. * \`NOT_FOUND\` if the course or the user
77+-- does not exist. * \`FAILED_PRECONDITION\` if the requested user\'s
78+-- account is disabled or if the user already has this role or a role with
79+-- greater permissions. * \`ALREADY_EXISTS\` if an invitation for the
80+-- specified user and course already exists.
8381--
8482-- /See:/ 'invitationsCreate'' smart constructor.
8583data InvitationsCreate' = InvitationsCreate'
gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Delete.hs+4−6
@@ -22,9 +22,8 @@
2222--
2323-- | Deletes an invitation. This method returns the following error codes: *
2424-- \`PERMISSION_DENIED\` if the requesting user is not permitted to delete
25−-- the requested invitation or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if no invitation exists with the
27−-- requested ID.
25+-- the requested invitation or for access errors. * \`NOT_FOUND\` if no
26+-- invitation exists with the requested ID.
2827--
2928-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomInvitationsDelete@.
3029module Network.Google.Resource.Classroom.Invitations.Delete
@@ -67,9 +66,8 @@ type InvitationsDeleteResource =
6766
6867-- | Deletes an invitation. This method returns the following error codes: *
6968-- \`PERMISSION_DENIED\` if the requesting user is not permitted to delete
70−-- the requested invitation or for [general user permission errors][User
71−-- Permission Errors]. * \`NOT_FOUND\` if no invitation exists with the
72−-- requested ID.
69+-- the requested invitation or for access errors. * \`NOT_FOUND\` if no
70+-- invitation exists with the requested ID.
7371--
7472-- /See:/ 'invitationsDelete'' smart constructor.
7573data InvitationsDelete' = InvitationsDelete'
gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Get.hs+4−6
@@ -22,9 +22,8 @@
2222--
2323-- | Returns an invitation. This method returns the following error codes: *
2424-- \`PERMISSION_DENIED\` if the requesting user is not permitted to view
25−-- the requested invitation or for [general user permission errors][User
26−-- Permission Errors]. * \`NOT_FOUND\` if no invitation exists with the
27−-- requested ID.
25+-- the requested invitation or for access errors. * \`NOT_FOUND\` if no
26+-- invitation exists with the requested ID.
2827--
2928-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomInvitationsGet@.
3029module Network.Google.Resource.Classroom.Invitations.Get
@@ -67,9 +66,8 @@ type InvitationsGetResource =
6766
6867-- | Returns an invitation. This method returns the following error codes: *
6968-- \`PERMISSION_DENIED\` if the requesting user is not permitted to view
70−-- the requested invitation or for [general user permission errors][User
71−-- Permission Errors]. * \`NOT_FOUND\` if no invitation exists with the
72−-- requested ID.
69+-- the requested invitation or for access errors. * \`NOT_FOUND\` if no
70+-- invitation exists with the requested ID.
7371--
7472-- /See:/ 'invitationsGet'' smart constructor.
7573data InvitationsGet' = InvitationsGet'
gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/List.hs+5−10
@@ -24,8 +24,7 @@
2424-- view, restricted to those that match the list request. *Note:* At least
2525-- one of \`user_id\` or \`course_id\` must be supplied. Both fields can be
2626-- supplied. This method returns the following error codes: *
27−-- \`PERMISSION_DENIED\` for [general user permission errors][User
28−-- Permission Errors].
27+-- \`PERMISSION_DENIED\` for access errors.
2928--
3029-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomInvitationsList@.
3130module Network.Google.Resource.Classroom.Invitations.List
@@ -77,8 +76,7 @@ type InvitationsListResource =
7776-- view, restricted to those that match the list request. *Note:* At least
7877-- one of \`user_id\` or \`course_id\` must be supplied. Both fields can be
7978-- supplied. This method returns the following error codes: *
80−-- \`PERMISSION_DENIED\` for [general user permission errors][User
81−-- Permission Errors].
79+-- \`PERMISSION_DENIED\` for access errors.
8280--
8381-- /See:/ 'invitationsList'' smart constructor.
8482data InvitationsList' = InvitationsList'
@@ -181,12 +179,9 @@ ilBearerToken
181179 = lens _ilBearerToken
182180 (\ s a -> s{_ilBearerToken = a})
183181
184−-- | [nextPageToken][google.classroom.v1.ListInvitationsResponse.next_page_token]
185−-- value returned from a previous
186−-- [list][google.classroom.v1.Invitations.ListInvitations] call, indicating
187−-- that the subsequent page of results should be returned. The
188−-- [list][google.classroom.v1.Invitations.ListInvitations] request must be
189−-- otherwise identical to the one that resulted in this token.
182+-- | nextPageToken value returned from a previous list call, indicating that
183+-- the subsequent page of results should be returned. The list request must
184+-- be otherwise identical to the one that resulted in this token.
190185ilPageToken :: Lens' InvitationsList' (Maybe Text)
191186ilPageToken
192187 = lens _ilPageToken (\ s a -> s{_ilPageToken = a})
gogol-classroom/gen/Network/Google/Resource/Classroom/UserProFiles/Get.hs+2−2
@@ -23,7 +23,7 @@
2323-- | Returns a user profile. This method returns the following error codes: *
2424-- \`PERMISSION_DENIED\` if the requesting user is not permitted to access
2525-- this user profile or if no profile exists with the requested ID or for
26−-- [general user permission errors][User Permission Errors].
26+-- access errors.
2727--
2828-- /See:/ <https://developers.google.com/classroom/ Google Classroom API Reference> for @ClassroomUserProFilesGet@.
2929module Network.Google.Resource.Classroom.UserProFiles.Get
@@ -67,7 +67,7 @@ type UserProFilesGetResource =
6767-- | Returns a user profile. This method returns the following error codes: *
6868-- \`PERMISSION_DENIED\` if the requesting user is not permitted to access
6969-- this user profile or if no profile exists with the requested ID or for
70−-- [general user permission errors][User Permission Errors].
70+-- access errors.
7171--
7272-- /See:/ 'userProFilesGet'' smart constructor.
7373data UserProFilesGet' = UserProFilesGet'
gogol-cloudtrace/LICENSEnew file+367
@@ -0,0 +1,367 @@
1+Mozilla Public License Version 2.0
2+==================================
3+
4+1. Definitions
5+--------------
6+
7+1.1. "Contributor"
8+ means each individual or legal entity that creates, contributes to
9+ the creation of, or owns Covered Software.
10+
11+1.2. "Contributor Version"
12+ means the combination of the Contributions of others (if any) used
13+ by a Contributor and that particular Contributor's Contribution.
14+
15+1.3. "Contribution"
16+ means Covered Software of a particular Contributor.
17+
18+1.4. "Covered Software"
19+ means Source Code Form to which the initial Contributor has attached
20+ the notice in Exhibit A, the Executable Form of such Source Code
21+ Form, and Modifications of such Source Code Form, in each case
22+ including portions thereof.
23+
24+1.5. "Incompatible With Secondary Licenses"
25+ means
26+
27+ (a) that the initial Contributor has attached the notice described
28+ in Exhibit B to the Covered Software; or
29+
30+ (b) that the Covered Software was made available under the terms of
31+ version 1.1 or earlier of the License, but not also under the
32+ terms of a Secondary License.
33+
34+1.6. "Executable Form"
35+ means any form of the work other than Source Code Form.
36+
37+1.7. "Larger Work"
38+ means a work that combines Covered Software with other material, in
39+ a separate file or files, that is not Covered Software.
40+
41+1.8. "License"
42+ means this document.
43+
44+1.9. "Licensable"
45+ means having the right to grant, to the maximum extent possible,
46+ whether at the time of the initial grant or subsequently, any and
47+ all of the rights conveyed by this License.
48+
49+1.10. "Modifications"
50+ means any of the following:
51+
52+ (a) any file in Source Code Form that results from an addition to,
53+ deletion from, or modification of the contents of Covered
54+ Software; or
55+
56+ (b) any new file in Source Code Form that contains any Covered
57+ Software.
58+
59+1.11. "Patent Claims" of a Contributor
60+ means any patent claim(s), including without limitation, method,
61+ process, and apparatus claims, in any patent Licensable by such
62+ Contributor that would be infringed, but for the grant of the
63+ License, by the making, using, selling, offering for sale, having
64+ made, import, or transfer of either its Contributions or its
65+ Contributor Version.
66+
67+1.12. "Secondary License"
68+ means either the GNU General Public License, Version 2.0, the GNU
69+ Lesser General Public License, Version 2.1, the GNU Affero General
70+ Public License, Version 3.0, or any later versions of those
71+ licenses.
72+
73+1.13. "Source Code Form"
74+ means the form of the work preferred for making modifications.
75+
76+1.14. "You" (or "Your")
77+ means an individual or a legal entity exercising rights under this
78+ License. For legal entities, "You" includes any entity that
79+ controls, is controlled by, or is under common control with You. For
80+ purposes of this definition, "control" means (a) the power, direct
81+ or indirect, to cause the direction or management of such entity,
82+ whether by contract or otherwise, or (b) ownership of more than
83+ fifty percent (50%) of the outstanding shares or beneficial
84+ ownership of such entity.
85+
86+2. License Grants and Conditions
87+--------------------------------
88+
89+2.1. Grants
90+
91+Each Contributor hereby grants You a world-wide, royalty-free,
92+non-exclusive license:
93+
94+(a) under intellectual property rights (other than patent or trademark)
95+ Licensable by such Contributor to use, reproduce, make available,
96+ modify, display, perform, distribute, and otherwise exploit its
97+ Contributions, either on an unmodified basis, with Modifications, or
98+ as part of a Larger Work; and
99+
100+(b) under Patent Claims of such Contributor to make, use, sell, offer
101+ for sale, have made, import, and otherwise transfer either its
102+ Contributions or its Contributor Version.
103+
104+2.2. Effective Date
105+
106+The licenses granted in Section 2.1 with respect to any Contribution
107+become effective for each Contribution on the date the Contributor first
108+distributes such Contribution.
109+
110+2.3. Limitations on Grant Scope
111+
112+The licenses granted in this Section 2 are the only rights granted under
113+this License. No additional rights or licenses will be implied from the
114+distribution or licensing of Covered Software under this License.
115+Notwithstanding Section 2.1(b) above, no patent license is granted by a
116+Contributor:
117+
118+(a) for any code that a Contributor has removed from Covered Software;
119+ or
120+
121+(b) for infringements caused by: (i) Your and any other third party's
122+ modifications of Covered Software, or (ii) the combination of its
123+ Contributions with other software (except as part of its Contributor
124+ Version); or
125+
126+(c) under Patent Claims infringed by Covered Software in the absence of
127+ its Contributions.
128+
129+This License does not grant any rights in the trademarks, service marks,
130+or logos of any Contributor (except as may be necessary to comply with
131+the notice requirements in Section 3.4).
132+
133+2.4. Subsequent Licenses
134+
135+No Contributor makes additional grants as a result of Your choice to
136+distribute the Covered Software under a subsequent version of this
137+License (see Section 10.2) or under the terms of a Secondary License (if
138+permitted under the terms of Section 3.3).
139+
140+2.5. Representation
141+
142+Each Contributor represents that the Contributor believes its
143+Contributions are its original creation(s) or it has sufficient rights
144+to grant the rights to its Contributions conveyed by this License.
145+
146+2.6. Fair Use
147+
148+This License is not intended to limit any rights You have under
149+applicable copyright doctrines of fair use, fair dealing, or other
150+equivalents.
151+
152+2.7. Conditions
153+
154+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155+in Section 2.1.
156+
157+3. Responsibilities
158+-------------------
159+
160+3.1. Distribution of Source Form
161+
162+All distribution of Covered Software in Source Code Form, including any
163+Modifications that You create or to which You contribute, must be under
164+the terms of this License. You must inform recipients that the Source
165+Code Form of the Covered Software is governed by the terms of this
166+License, and how they can obtain a copy of this License. You may not
167+attempt to alter or restrict the recipients' rights in the Source Code
168+Form.
169+
170+3.2. Distribution of Executable Form
171+
172+If You distribute Covered Software in Executable Form then:
173+
174+(a) such Covered Software must also be made available in Source Code
175+ Form, as described in Section 3.1, and You must inform recipients of
176+ the Executable Form how they can obtain a copy of such Source Code
177+ Form by reasonable means in a timely manner, at a charge no more
178+ than the cost of distribution to the recipient; and
179+
180+(b) You may distribute such Executable Form under the terms of this
181+ License, or sublicense it under different terms, provided that the
182+ license for the Executable Form does not attempt to limit or alter
183+ the recipients' rights in the Source Code Form under this License.
184+
185+3.3. Distribution of a Larger Work
186+
187+You may create and distribute a Larger Work under terms of Your choice,
188+provided that You also comply with the requirements of this License for
189+the Covered Software. If the Larger Work is a combination of Covered
190+Software with a work governed by one or more Secondary Licenses, and the
191+Covered Software is not Incompatible With Secondary Licenses, this
192+License permits You to additionally distribute such Covered Software
193+under the terms of such Secondary License(s), so that the recipient of
194+the Larger Work may, at their option, further distribute the Covered
195+Software under the terms of either this License or such Secondary
196+License(s).
197+
198+3.4. Notices
199+
200+You may not remove or alter the substance of any license notices
201+(including copyright notices, patent notices, disclaimers of warranty,
202+or limitations of liability) contained within the Source Code Form of
203+the Covered Software, except that You may alter any license notices to
204+the extent required to remedy known factual inaccuracies.
205+
206+3.5. Application of Additional Terms
207+
208+You may choose to offer, and to charge a fee for, warranty, support,
209+indemnity or liability obligations to one or more recipients of Covered
210+Software. However, You may do so only on Your own behalf, and not on
211+behalf of any Contributor. You must make it absolutely clear that any
212+such warranty, support, indemnity, or liability obligation is offered by
213+You alone, and You hereby agree to indemnify every Contributor for any
214+liability incurred by such Contributor as a result of warranty, support,
215+indemnity or liability terms You offer. You may include additional
216+disclaimers of warranty and limitations of liability specific to any
217+jurisdiction.
218+
219+4. Inability to Comply Due to Statute or Regulation
220+---------------------------------------------------
221+
222+If it is impossible for You to comply with any of the terms of this
223+License with respect to some or all of the Covered Software due to
224+statute, judicial order, or regulation then You must: (a) comply with
225+the terms of this License to the maximum extent possible; and (b)
226+describe the limitations and the code they affect. Such description must
227+be placed in a text file included with all distributions of the Covered
228+Software under this License. Except to the extent prohibited by statute
229+or regulation, such description must be sufficiently detailed for a
230+recipient of ordinary skill to be able to understand it.
231+
232+5. Termination
233+--------------
234+
235+5.1. The rights granted under this License will terminate automatically
236+if You fail to comply with any of its terms. However, if You become
237+compliant, then the rights granted under this License from a particular
238+Contributor are reinstated (a) provisionally, unless and until such
239+Contributor explicitly and finally terminates Your grants, and (b) on an
240+ongoing basis, if such Contributor fails to notify You of the
241+non-compliance by some reasonable means prior to 60 days after You have
242+come back into compliance. Moreover, Your grants from a particular
243+Contributor are reinstated on an ongoing basis if such Contributor
244+notifies You of the non-compliance by some reasonable means, this is the
245+first time You have received notice of non-compliance with this License
246+from such Contributor, and You become compliant prior to 30 days after
247+Your receipt of the notice.
248+
249+5.2. If You initiate litigation against any entity by asserting a patent
250+infringement claim (excluding declaratory judgment actions,
251+counter-claims, and cross-claims) alleging that a Contributor Version
252+directly or indirectly infringes any patent, then the rights granted to
253+You by any and all Contributors for the Covered Software under Section
254+2.1 of this License shall terminate.
255+
256+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257+end user license agreements (excluding distributors and resellers) which
258+have been validly granted by You or Your distributors under this License
259+prior to termination shall survive termination.
260+
261+************************************************************************
262+* *
263+* 6. Disclaimer of Warranty *
264+* ------------------------- *
265+* *
266+* Covered Software is provided under this License on an "as is" *
267+* basis, without warranty of any kind, either expressed, implied, or *
268+* statutory, including, without limitation, warranties that the *
269+* Covered Software is free of defects, merchantable, fit for a *
270+* particular purpose or non-infringing. The entire risk as to the *
271+* quality and performance of the Covered Software is with You. *
272+* Should any Covered Software prove defective in any respect, You *
273+* (not any Contributor) assume the cost of any necessary servicing, *
274+* repair, or correction. This disclaimer of warranty constitutes an *
275+* essential part of this License. No use of any Covered Software is *
276+* authorized under this License except under this disclaimer. *
277+* *
278+************************************************************************
279+
280+************************************************************************
281+* *
282+* 7. Limitation of Liability *
283+* -------------------------- *
284+* *
285+* Under no circumstances and under no legal theory, whether tort *
286+* (including negligence), contract, or otherwise, shall any *
287+* Contributor, or anyone who distributes Covered Software as *
288+* permitted above, be liable to You for any direct, indirect, *
289+* special, incidental, or consequential damages of any character *
290+* including, without limitation, damages for lost profits, loss of *
291+* goodwill, work stoppage, computer failure or malfunction, or any *
292+* and all other commercial damages or losses, even if such party *
293+* shall have been informed of the possibility of such damages. This *
294+* limitation of liability shall not apply to liability for death or *
295+* personal injury resulting from such party's negligence to the *
296+* extent applicable law prohibits such limitation. Some *
297+* jurisdictions do not allow the exclusion or limitation of *
298+* incidental or consequential damages, so this exclusion and *
299+* limitation may not apply to You. *
300+* *
301+************************************************************************
302+
303+8. Litigation
304+-------------
305+
306+Any litigation relating to this License may be brought only in the
307+courts of a jurisdiction where the defendant maintains its principal
308+place of business and such litigation shall be governed by laws of that
309+jurisdiction, without reference to its conflict-of-law provisions.
310+Nothing in this Section shall prevent a party's ability to bring
311+cross-claims or counter-claims.
312+
313+9. Miscellaneous
314+----------------
315+
316+This License represents the complete agreement concerning the subject
317+matter hereof. If any provision of this License is held to be
318+unenforceable, such provision shall be reformed only to the extent
319+necessary to make it enforceable. Any law or regulation which provides
320+that the language of a contract shall be construed against the drafter
321+shall not be used to construe this License against a Contributor.
322+
323+10. Versions of the License
324+---------------------------
325+
326+10.1. New Versions
327+
328+Mozilla Foundation is the license steward. Except as provided in Section
329+10.3, no one other than the license steward has the right to modify or
330+publish new versions of this License. Each version will be given a
331+distinguishing version number.
332+
333+10.2. Effect of New Versions
334+
335+You may distribute the Covered Software under the terms of the version
336+of the License under which You originally received the Covered Software,
337+or under the terms of any subsequent version published by the license
338+steward.
339+
340+10.3. Modified Versions
341+
342+If you create software not governed by this License, and you want to
343+create a new license for such software, you may create and use a
344+modified version of this License if you rename the license and remove
345+any references to the name of the license steward (except to note that
346+such modified license differs from this License).
347+
348+10.4. Distributing Source Code Form that is Incompatible With Secondary
349+Licenses
350+
351+If You choose to distribute Source Code Form that is Incompatible With
352+Secondary Licenses under the terms of this version of the License, the
353+notice described in Exhibit B of this License must be attached.
354+
355+Exhibit A - Source Code Form License Notice
356+-------------------------------------------
357+
358+ This Source Code Form is subject to the terms of the Mozilla Public
359+ License, v. 2.0. If a copy of the MPL was not distributed with this
360+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361+
362+If it is not possible or desirable to put the notice in a particular
363+file, then You may include the notice in a location (such as a LICENSE
364+file in a relevant directory) where a recipient would be likely to look
365+for such a notice.
366+
367+You may add additional accurate notices of copyright ownership.
gogol-cloudtrace/Makefilenew file+1
@@ -0,0 +1 @@
1+include ../share/library.mk
gogol-cloudtrace/README.mdnew file+28
@@ -0,0 +1,28 @@
1+# gogol-cloudtrace
2+
3+* [Version](#version)
4+* [Description](#description)
5+* [Contribute](#contribute)
6+* [Licence](#licence)
7+
8+
9+## Version
10+
11+`0.0.1`
12+
13+
14+## Description
15+
16+A client library for the Google Cloud Trace API.
17+
18+
19+## Contribute
20+
21+For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).
22+
23+> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.
24+
25+
26+## Licence
27+
28+`gogol-cloudtrace` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).
gogol-cloudtrace/Setup.hsnew file+2
@@ -0,0 +1,2 @@
1+import Distribution.Simple
2+main = defaultMain
gogol-cloudtrace/gen/Network/Google/CloudTrace.hsnew file+98
@@ -0,0 +1,98 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE NoImplicitPrelude #-}
3+{-# LANGUAGE TypeOperators #-}
4+
5+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
6+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
7+
8+-- |
9+-- Module : Network.Google.CloudTrace
10+-- Copyright : (c) 2015 Brendan Hay
11+-- License : Mozilla Public License, v. 2.0.
12+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
13+-- Stability : auto-generated
14+-- Portability : non-portable (GHC extensions)
15+--
16+-- | The Google Cloud Trace API provides services for reading and writing
17+-- runtime trace data for Cloud applications.
18+--
19+-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference>
20+module Network.Google.CloudTrace
21+ (
22+ -- * Service Configuration
23+ cloudTraceService
24+
25+ -- * API Declaration
26+ , CloudTraceAPI
27+
28+ -- * Resources
29+
30+ -- ** CloudtraceGetDiscovery
31+ , module Network.Google.Resource.CloudTrace.GetDiscovery
32+
33+ -- ** CloudtraceProjectsPatchTraces
34+ , module Network.Google.Resource.CloudTrace.Projects.PatchTraces
35+
36+ -- ** CloudtraceProjectsTracesGet
37+ , module Network.Google.Resource.CloudTrace.Projects.Traces.Get
38+
39+ -- ** CloudtraceProjectsTracesList
40+ , module Network.Google.Resource.CloudTrace.Projects.Traces.List
41+
42+ -- * Types
43+
44+ -- ** Empty
45+ , Empty
46+ , empty
47+
48+ -- ** TraceSpanLabels
49+ , TraceSpanLabels
50+ , traceSpanLabels
51+ , tslAddtional
52+
53+ -- ** Traces
54+ , Traces
55+ , traces
56+ , tTraces
57+
58+ -- ** TraceSpan
59+ , TraceSpan
60+ , traceSpan
61+ , tsStartTime
62+ , tsKind
63+ , tsName
64+ , tsEndTime
65+ , tsLabels
66+ , tsParentSpanId
67+ , tsSpanId
68+
69+ -- ** ListTracesResponse
70+ , ListTracesResponse
71+ , listTracesResponse
72+ , ltrNextPageToken
73+ , ltrTraces
74+
75+ -- ** Trace
76+ , Trace
77+ , trace
78+ , tTraceId
79+ , tSpans
80+ , tProjectId
81+ ) where
82+
83+import Network.Google.CloudTrace.Types
84+import Network.Google.Prelude
85+import Network.Google.Resource.CloudTrace.GetDiscovery
86+import Network.Google.Resource.CloudTrace.Projects.PatchTraces
87+import Network.Google.Resource.CloudTrace.Projects.Traces.Get
88+import Network.Google.Resource.CloudTrace.Projects.Traces.List
89+
90+{- $resources
91+TODO
92+-}
93+
94+-- | Represents the entirety of the methods and resources available for the Google Cloud Trace API service.
95+type CloudTraceAPI =
96+ GetDiscoveryResource :<|> ProjectsTracesListResource
97+ :<|> ProjectsTracesGetResource
98+ :<|> ProjectsPatchTracesResource
gogol-cloudtrace/gen/Network/Google/CloudTrace/Types.hsnew file+76
@@ -0,0 +1,76 @@
1+{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE DeriveGeneric #-}
3+{-# LANGUAGE NoImplicitPrelude #-}
4+{-# LANGUAGE OverloadedStrings #-}
5+
6+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
7+
8+-- |
9+-- Module : Network.Google.CloudTrace.Types
10+-- Copyright : (c) 2015 Brendan Hay
11+-- License : Mozilla Public License, v. 2.0.
12+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
13+-- Stability : auto-generated
14+-- Portability : non-portable (GHC extensions)
15+--
16+module Network.Google.CloudTrace.Types
17+ (
18+ -- * Service Configuration
19+ cloudTraceService
20+
21+ -- * OAuth Scopes
22+ , cloudPlatformScope
23+
24+ -- * Empty
25+ , Empty
26+ , empty
27+
28+ -- * TraceSpanLabels
29+ , TraceSpanLabels
30+ , traceSpanLabels
31+ , tslAddtional
32+
33+ -- * Traces
34+ , Traces
35+ , traces
36+ , tTraces
37+
38+ -- * TraceSpan
39+ , TraceSpan
40+ , traceSpan
41+ , tsStartTime
42+ , tsKind
43+ , tsName
44+ , tsEndTime
45+ , tsLabels
46+ , tsParentSpanId
47+ , tsSpanId
48+
49+ -- * ListTracesResponse
50+ , ListTracesResponse
51+ , listTracesResponse
52+ , ltrNextPageToken
53+ , ltrTraces
54+
55+ -- * Trace
56+ , Trace
57+ , trace
58+ , tTraceId
59+ , tSpans
60+ , tProjectId
61+ ) where
62+
63+import Network.Google.CloudTrace.Types.Product
64+import Network.Google.CloudTrace.Types.Sum
65+import Network.Google.Prelude
66+
67+-- | Default request referring to version 'v1' of the Google Cloud Trace API. This contains the host and root path used as a starting point for constructing service requests.
68+cloudTraceService :: Service
69+cloudTraceService
70+ = defaultService (ServiceId "cloudtrace:v1")
71+ "cloudtrace.googleapis.com"
72+ ""
73+
74+-- | View and manage your data across Google Cloud Platform services
75+cloudPlatformScope :: OAuthScope
76+cloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Product.hsnew file+331
@@ -0,0 +1,331 @@
1+{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE DeriveGeneric #-}
3+{-# LANGUAGE NoImplicitPrelude #-}
4+{-# LANGUAGE OverloadedStrings #-}
5+{-# LANGUAGE RecordWildCards #-}
6+
7+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
8+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
9+
10+-- |
11+-- Module : Network.Google.CloudTrace.Types.Product
12+-- Copyright : (c) 2015 Brendan Hay
13+-- License : Mozilla Public License, v. 2.0.
14+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
15+-- Stability : auto-generated
16+-- Portability : non-portable (GHC extensions)
17+--
18+module Network.Google.CloudTrace.Types.Product where
19+
20+import Network.Google.CloudTrace.Types.Sum
21+import Network.Google.Prelude
22+
23+-- | A generic empty message that you can re-use to avoid defining duplicated
24+-- empty messages in your APIs. A typical example is to use it as the
25+-- request or the response type of an API method. For instance: service Foo
26+-- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The
27+-- JSON representation for \`Empty\` is empty JSON object \`{}\`.
28+--
29+-- /See:/ 'empty' smart constructor.
30+data Empty =
31+ Empty
32+ deriving (Eq,Show,Data,Typeable,Generic)
33+
34+-- | Creates a value of 'Empty' with the minimum fields required to make a request.
35+--
36+empty
37+ :: Empty
38+empty = Empty
39+
40+instance FromJSON Empty where
41+ parseJSON = withObject "Empty" (\ o -> pure Empty)
42+
43+instance ToJSON Empty where
44+ toJSON = const emptyObject
45+
46+-- | Annotations via labels.
47+--
48+-- /See:/ 'traceSpanLabels' smart constructor.
49+newtype TraceSpanLabels = TraceSpanLabels
50+ { _tslAddtional :: HashMap Text Text
51+ } deriving (Eq,Show,Data,Typeable,Generic)
52+
53+-- | Creates a value of 'TraceSpanLabels' with the minimum fields required to make a request.
54+--
55+-- Use one of the following lenses to modify other fields as desired:
56+--
57+-- * 'tslAddtional'
58+traceSpanLabels
59+ :: HashMap Text Text -- ^ 'addtional'
60+ -> TraceSpanLabels
61+traceSpanLabels pTslAddtional_ =
62+ TraceSpanLabels
63+ { _tslAddtional = pTslAddtional_
64+ }
65+
66+tslAddtional :: Lens' TraceSpanLabels (HashMap Text Text)
67+tslAddtional
68+ = lens _tslAddtional (\ s a -> s{_tslAddtional = a})
69+
70+instance FromJSON TraceSpanLabels where
71+ parseJSON
72+ = withObject "TraceSpanLabels"
73+ (\ o -> TraceSpanLabels <$> (parseJSONObject o))
74+
75+instance ToJSON TraceSpanLabels where
76+ toJSON = toJSON . _tslAddtional
77+
78+-- | A list of traces for the PatchTraces method.
79+--
80+-- /See:/ 'traces' smart constructor.
81+newtype Traces = Traces
82+ { _tTraces :: Maybe [Trace]
83+ } deriving (Eq,Show,Data,Typeable,Generic)
84+
85+-- | Creates a value of 'Traces' 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+-- * 'tTraces'
90+traces
91+ :: Traces
92+traces =
93+ Traces
94+ { _tTraces = Nothing
95+ }
96+
97+-- | A list of traces.
98+tTraces :: Lens' Traces [Trace]
99+tTraces
100+ = lens _tTraces (\ s a -> s{_tTraces = a}) . _Default
101+ . _Coerce
102+
103+instance FromJSON Traces where
104+ parseJSON
105+ = withObject "Traces"
106+ (\ o -> Traces <$> (o .:? "traces" .!= mempty))
107+
108+instance ToJSON Traces where
109+ toJSON Traces{..}
110+ = object (catMaybes [("traces" .=) <$> _tTraces])
111+
112+-- | A span is the data recorded with a single span.
113+--
114+-- /See:/ 'traceSpan' smart constructor.
115+data TraceSpan = TraceSpan
116+ { _tsStartTime :: !(Maybe Text)
117+ , _tsKind :: !(Maybe Text)
118+ , _tsName :: !(Maybe Text)
119+ , _tsEndTime :: !(Maybe Text)
120+ , _tsLabels :: !(Maybe TraceSpanLabels)
121+ , _tsParentSpanId :: !(Maybe Word64)
122+ , _tsSpanId :: !(Maybe Word64)
123+ } deriving (Eq,Show,Data,Typeable,Generic)
124+
125+-- | Creates a value of 'TraceSpan' with the minimum fields required to make a request.
126+--
127+-- Use one of the following lenses to modify other fields as desired:
128+--
129+-- * 'tsStartTime'
130+--
131+-- * 'tsKind'
132+--
133+-- * 'tsName'
134+--
135+-- * 'tsEndTime'
136+--
137+-- * 'tsLabels'
138+--
139+-- * 'tsParentSpanId'
140+--
141+-- * 'tsSpanId'
142+traceSpan
143+ :: TraceSpan
144+traceSpan =
145+ TraceSpan
146+ { _tsStartTime = Nothing
147+ , _tsKind = Nothing
148+ , _tsName = Nothing
149+ , _tsEndTime = Nothing
150+ , _tsLabels = Nothing
151+ , _tsParentSpanId = Nothing
152+ , _tsSpanId = Nothing
153+ }
154+
155+-- | The start time of the span in nanoseconds from the UNIX epoch.
156+tsStartTime :: Lens' TraceSpan (Maybe Text)
157+tsStartTime
158+ = lens _tsStartTime (\ s a -> s{_tsStartTime = a})
159+
160+-- | SpanKind distinguishes spans generated in a particular context. For
161+-- example, two spans with the same name, one with the kind RPC_CLIENT, and
162+-- the other with RPC_SERVER can indicate the queueing latency associated
163+-- with the span.
164+tsKind :: Lens' TraceSpan (Maybe Text)
165+tsKind = lens _tsKind (\ s a -> s{_tsKind = a})
166+
167+-- | The name of the trace. This is sanitized and displayed on the UI. This
168+-- may be a method name or some other per-callsite name. For the same
169+-- binary and the same call point, it is a good practice to choose a
170+-- consistent name in order to correlate cross-trace spans.
171+tsName :: Lens' TraceSpan (Maybe Text)
172+tsName = lens _tsName (\ s a -> s{_tsName = a})
173+
174+-- | The end time of the span in nanoseconds from the UNIX epoch.
175+tsEndTime :: Lens' TraceSpan (Maybe Text)
176+tsEndTime
177+ = lens _tsEndTime (\ s a -> s{_tsEndTime = a})
178+
179+-- | Annotations via labels.
180+tsLabels :: Lens' TraceSpan (Maybe TraceSpanLabels)
181+tsLabels = lens _tsLabels (\ s a -> s{_tsLabels = a})
182+
183+-- | Identifies the parent of the current span. May be missing. Serialized
184+-- bytes representation of SpanId.
185+tsParentSpanId :: Lens' TraceSpan (Maybe Word64)
186+tsParentSpanId
187+ = lens _tsParentSpanId
188+ (\ s a -> s{_tsParentSpanId = a})
189+
190+-- | Identifier of the span within the trace. Each span should have an
191+-- identifier that is unique per trace.
192+tsSpanId :: Lens' TraceSpan (Maybe Word64)
193+tsSpanId = lens _tsSpanId (\ s a -> s{_tsSpanId = a})
194+
195+instance FromJSON TraceSpan where
196+ parseJSON
197+ = withObject "TraceSpan"
198+ (\ o ->
199+ TraceSpan <$>
200+ (o .:? "startTime") <*> (o .:? "kind") <*>
201+ (o .:? "name")
202+ <*> (o .:? "endTime")
203+ <*> (o .:? "labels")
204+ <*> (o .:? "parentSpanId")
205+ <*> (o .:? "spanId"))
206+
207+instance ToJSON TraceSpan where
208+ toJSON TraceSpan{..}
209+ = object
210+ (catMaybes
211+ [("startTime" .=) <$> _tsStartTime,
212+ ("kind" .=) <$> _tsKind, ("name" .=) <$> _tsName,
213+ ("endTime" .=) <$> _tsEndTime,
214+ ("labels" .=) <$> _tsLabels,
215+ ("parentSpanId" .=) <$> _tsParentSpanId,
216+ ("spanId" .=) <$> _tsSpanId])
217+
218+-- | The response message for the ListTraces method.
219+--
220+-- /See:/ 'listTracesResponse' smart constructor.
221+data ListTracesResponse = ListTracesResponse
222+ { _ltrNextPageToken :: !(Maybe Text)
223+ , _ltrTraces :: !(Maybe [Trace])
224+ } deriving (Eq,Show,Data,Typeable,Generic)
225+
226+-- | Creates a value of 'ListTracesResponse' with the minimum fields required to make a request.
227+--
228+-- Use one of the following lenses to modify other fields as desired:
229+--
230+-- * 'ltrNextPageToken'
231+--
232+-- * 'ltrTraces'
233+listTracesResponse
234+ :: ListTracesResponse
235+listTracesResponse =
236+ ListTracesResponse
237+ { _ltrNextPageToken = Nothing
238+ , _ltrTraces = Nothing
239+ }
240+
241+-- | If defined, indicates that there are more topics that match the request,
242+-- and this value should be passed to the next ListTopicsRequest to
243+-- continue.
244+ltrNextPageToken :: Lens' ListTracesResponse (Maybe Text)
245+ltrNextPageToken
246+ = lens _ltrNextPageToken
247+ (\ s a -> s{_ltrNextPageToken = a})
248+
249+-- | The list of trace records returned.
250+ltrTraces :: Lens' ListTracesResponse [Trace]
251+ltrTraces
252+ = lens _ltrTraces (\ s a -> s{_ltrTraces = a}) .
253+ _Default
254+ . _Coerce
255+
256+instance FromJSON ListTracesResponse where
257+ parseJSON
258+ = withObject "ListTracesResponse"
259+ (\ o ->
260+ ListTracesResponse <$>
261+ (o .:? "nextPageToken") <*>
262+ (o .:? "traces" .!= mempty))
263+
264+instance ToJSON ListTracesResponse where
265+ toJSON ListTracesResponse{..}
266+ = object
267+ (catMaybes
268+ [("nextPageToken" .=) <$> _ltrNextPageToken,
269+ ("traces" .=) <$> _ltrTraces])
270+
271+-- | A Trace is a collection of spans describing the execution timings of a
272+-- single operation.
273+--
274+-- /See:/ 'trace' smart constructor.
275+data Trace = Trace
276+ { _tTraceId :: !(Maybe Text)
277+ , _tSpans :: !(Maybe [TraceSpan])
278+ , _tProjectId :: !(Maybe Text)
279+ } deriving (Eq,Show,Data,Typeable,Generic)
280+
281+-- | Creates a value of 'Trace' with the minimum fields required to make a request.
282+--
283+-- Use one of the following lenses to modify other fields as desired:
284+--
285+-- * 'tTraceId'
286+--
287+-- * 'tSpans'
288+--
289+-- * 'tProjectId'
290+trace
291+ :: Trace
292+trace =
293+ Trace
294+ { _tTraceId = Nothing
295+ , _tSpans = Nothing
296+ , _tProjectId = Nothing
297+ }
298+
299+-- | A 128-bit numeric value, formatted as a 32-byte hex string, that
300+-- represents a trace. Each trace should have an identifier that is
301+-- globally unique.
302+tTraceId :: Lens' Trace (Maybe Text)
303+tTraceId = lens _tTraceId (\ s a -> s{_tTraceId = a})
304+
305+-- | The collection of span records within this trace. Spans that appear in
306+-- calls to PatchTraces may be incomplete or partial.
307+tSpans :: Lens' Trace [TraceSpan]
308+tSpans
309+ = lens _tSpans (\ s a -> s{_tSpans = a}) . _Default .
310+ _Coerce
311+
312+-- | The Project ID of the Google Cloud project.
313+tProjectId :: Lens' Trace (Maybe Text)
314+tProjectId
315+ = lens _tProjectId (\ s a -> s{_tProjectId = a})
316+
317+instance FromJSON Trace where
318+ parseJSON
319+ = withObject "Trace"
320+ (\ o ->
321+ Trace <$>
322+ (o .:? "traceId") <*> (o .:? "spans" .!= mempty) <*>
323+ (o .:? "projectId"))
324+
325+instance ToJSON Trace where
326+ toJSON Trace{..}
327+ = object
328+ (catMaybes
329+ [("traceId" .=) <$> _tTraceId,
330+ ("spans" .=) <$> _tSpans,
331+ ("projectId" .=) <$> _tProjectId])
gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Sum.hsnew file+19
@@ -0,0 +1,19 @@
1+{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE DeriveGeneric #-}
3+{-# LANGUAGE LambdaCase #-}
4+{-# LANGUAGE NoImplicitPrelude #-}
5+{-# LANGUAGE OverloadedStrings #-}
6+
7+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
8+
9+-- |
10+-- Module : Network.Google.CloudTrace.Types.Sum
11+-- Copyright : (c) 2015 Brendan Hay
12+-- License : Mozilla Public License, v. 2.0.
13+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
14+-- Stability : auto-generated
15+-- Portability : non-portable (GHC extensions)
16+--
17+module Network.Google.CloudTrace.Types.Sum where
18+
19+import Network.Google.Prelude
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/GetDiscovery.hsnew file+206
@@ -0,0 +1,206 @@
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.CloudTrace.GetDiscovery
17+-- Copyright : (c) 2015 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+-- | Returns a discovery document in the specified \`format\`. The typeurl in
24+-- the returned google.protobuf.Any value depends on the requested format.
25+--
26+-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference> for @CloudtraceGetDiscovery@.
27+module Network.Google.Resource.CloudTrace.GetDiscovery
28+ (
29+ -- * REST Resource
30+ GetDiscoveryResource
31+
32+ -- * Creating a Request
33+ , getDiscovery'
34+ , GetDiscovery'
35+
36+ -- * Request Lenses
37+ , gdXgafv
38+ , gdArgs
39+ , gdUploadProtocol
40+ , gdPp
41+ , gdAccessToken
42+ , gdFormat
43+ , gdUploadType
44+ , gdBearerToken
45+ , gdVersion
46+ , gdLabels
47+ , gdCallback
48+ ) where
49+
50+import Network.Google.CloudTrace.Types
51+import Network.Google.Prelude
52+
53+-- | A resource alias for @CloudtraceGetDiscovery@ method which the
54+-- 'GetDiscovery'' request conforms to.
55+type GetDiscoveryResource =
56+ "v1" :>
57+ "discovery" :>
58+ QueryParam "$.xgafv" Text :>
59+ QueryParams "args" Text :>
60+ QueryParam "upload_protocol" Text :>
61+ QueryParam "pp" Bool :>
62+ QueryParam "access_token" Text :>
63+ QueryParam "format" Text :>
64+ QueryParam "uploadType" Text :>
65+ QueryParam "bearer_token" Text :>
66+ QueryParam "version" Text :>
67+ QueryParams "labels" Text :>
68+ QueryParam "callback" Text :>
69+ QueryParam "alt" AltJSON :> Get '[JSON] ()
70+
71+-- | Returns a discovery document in the specified \`format\`. The typeurl in
72+-- the returned google.protobuf.Any value depends on the requested format.
73+--
74+-- /See:/ 'getDiscovery'' smart constructor.
75+data GetDiscovery' = GetDiscovery'
76+ { _gdXgafv :: !(Maybe Text)
77+ , _gdArgs :: !(Maybe [Text])
78+ , _gdUploadProtocol :: !(Maybe Text)
79+ , _gdPp :: !Bool
80+ , _gdAccessToken :: !(Maybe Text)
81+ , _gdFormat :: !(Maybe Text)
82+ , _gdUploadType :: !(Maybe Text)
83+ , _gdBearerToken :: !(Maybe Text)
84+ , _gdVersion :: !(Maybe Text)
85+ , _gdLabels :: !(Maybe [Text])
86+ , _gdCallback :: !(Maybe Text)
87+ } deriving (Eq,Show,Data,Typeable,Generic)
88+
89+-- | Creates a value of 'GetDiscovery'' with the minimum fields required to make a request.
90+--
91+-- Use one of the following lenses to modify other fields as desired:
92+--
93+-- * 'gdXgafv'
94+--
95+-- * 'gdArgs'
96+--
97+-- * 'gdUploadProtocol'
98+--
99+-- * 'gdPp'
100+--
101+-- * 'gdAccessToken'
102+--
103+-- * 'gdFormat'
104+--
105+-- * 'gdUploadType'
106+--
107+-- * 'gdBearerToken'
108+--
109+-- * 'gdVersion'
110+--
111+-- * 'gdLabels'
112+--
113+-- * 'gdCallback'
114+getDiscovery'
115+ :: GetDiscovery'
116+getDiscovery' =
117+ GetDiscovery'
118+ { _gdXgafv = Nothing
119+ , _gdArgs = Nothing
120+ , _gdUploadProtocol = Nothing
121+ , _gdPp = True
122+ , _gdAccessToken = Nothing
123+ , _gdFormat = Nothing
124+ , _gdUploadType = Nothing
125+ , _gdBearerToken = Nothing
126+ , _gdVersion = Nothing
127+ , _gdLabels = Nothing
128+ , _gdCallback = Nothing
129+ }
130+
131+-- | V1 error format.
132+gdXgafv :: Lens' GetDiscovery' (Maybe Text)
133+gdXgafv = lens _gdXgafv (\ s a -> s{_gdXgafv = a})
134+
135+-- | Any additional arguments.
136+gdArgs :: Lens' GetDiscovery' [Text]
137+gdArgs
138+ = lens _gdArgs (\ s a -> s{_gdArgs = a}) . _Default .
139+ _Coerce
140+
141+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
142+gdUploadProtocol :: Lens' GetDiscovery' (Maybe Text)
143+gdUploadProtocol
144+ = lens _gdUploadProtocol
145+ (\ s a -> s{_gdUploadProtocol = a})
146+
147+-- | Pretty-print response.
148+gdPp :: Lens' GetDiscovery' Bool
149+gdPp = lens _gdPp (\ s a -> s{_gdPp = a})
150+
151+-- | OAuth access token.
152+gdAccessToken :: Lens' GetDiscovery' (Maybe Text)
153+gdAccessToken
154+ = lens _gdAccessToken
155+ (\ s a -> s{_gdAccessToken = a})
156+
157+-- | The format requested for discovery.
158+gdFormat :: Lens' GetDiscovery' (Maybe Text)
159+gdFormat = lens _gdFormat (\ s a -> s{_gdFormat = a})
160+
161+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
162+gdUploadType :: Lens' GetDiscovery' (Maybe Text)
163+gdUploadType
164+ = lens _gdUploadType (\ s a -> s{_gdUploadType = a})
165+
166+-- | OAuth bearer token.
167+gdBearerToken :: Lens' GetDiscovery' (Maybe Text)
168+gdBearerToken
169+ = lens _gdBearerToken
170+ (\ s a -> s{_gdBearerToken = a})
171+
172+-- | The API version of the requested discovery doc.
173+gdVersion :: Lens' GetDiscovery' (Maybe Text)
174+gdVersion
175+ = lens _gdVersion (\ s a -> s{_gdVersion = a})
176+
177+-- | A list of labels (like visibility) influencing the scope of the
178+-- requested doc.
179+gdLabels :: Lens' GetDiscovery' [Text]
180+gdLabels
181+ = lens _gdLabels (\ s a -> s{_gdLabels = a}) .
182+ _Default
183+ . _Coerce
184+
185+-- | JSONP
186+gdCallback :: Lens' GetDiscovery' (Maybe Text)
187+gdCallback
188+ = lens _gdCallback (\ s a -> s{_gdCallback = a})
189+
190+instance GoogleRequest GetDiscovery' where
191+ type Rs GetDiscovery' = ()
192+ requestClient GetDiscovery'{..}
193+ = go _gdXgafv (_gdArgs ^. _Default) _gdUploadProtocol
194+ (Just _gdPp)
195+ _gdAccessToken
196+ _gdFormat
197+ _gdUploadType
198+ _gdBearerToken
199+ _gdVersion
200+ (_gdLabels ^. _Default)
201+ _gdCallback
202+ (Just AltJSON)
203+ cloudTraceService
204+ where go
205+ = buildClient (Proxy :: Proxy GetDiscoveryResource)
206+ mempty
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/PatchTraces.hsnew file+188
@@ -0,0 +1,188 @@
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.CloudTrace.Projects.PatchTraces
17+-- Copyright : (c) 2015 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 existing traces specified by PatchTracesRequest and inserts
24+-- the new traces. Any existing trace or span fields included in an update
25+-- are overwritten by the update, and any additional fields in an update
26+-- are merged with the existing trace data.
27+--
28+-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference> for @CloudtraceProjectsPatchTraces@.
29+module Network.Google.Resource.CloudTrace.Projects.PatchTraces
30+ (
31+ -- * REST Resource
32+ ProjectsPatchTracesResource
33+
34+ -- * Creating a Request
35+ , projectsPatchTraces'
36+ , ProjectsPatchTraces'
37+
38+ -- * Request Lenses
39+ , pptXgafv
40+ , pptUploadProtocol
41+ , pptPp
42+ , pptAccessToken
43+ , pptUploadType
44+ , pptPayload
45+ , pptBearerToken
46+ , pptProjectId
47+ , pptCallback
48+ ) where
49+
50+import Network.Google.CloudTrace.Types
51+import Network.Google.Prelude
52+
53+-- | A resource alias for @CloudtraceProjectsPatchTraces@ method which the
54+-- 'ProjectsPatchTraces'' request conforms to.
55+type ProjectsPatchTracesResource =
56+ "v1" :>
57+ "projects" :>
58+ Capture "projectId" Text :>
59+ "traces" :>
60+ QueryParam "$.xgafv" Text :>
61+ QueryParam "upload_protocol" Text :>
62+ QueryParam "pp" Bool :>
63+ QueryParam "access_token" Text :>
64+ QueryParam "uploadType" Text :>
65+ QueryParam "bearer_token" Text :>
66+ QueryParam "callback" Text :>
67+ QueryParam "alt" AltJSON :>
68+ ReqBody '[JSON] Traces :> Patch '[JSON] Empty
69+
70+-- | Updates the existing traces specified by PatchTracesRequest and inserts
71+-- the new traces. Any existing trace or span fields included in an update
72+-- are overwritten by the update, and any additional fields in an update
73+-- are merged with the existing trace data.
74+--
75+-- /See:/ 'projectsPatchTraces'' smart constructor.
76+data ProjectsPatchTraces' = ProjectsPatchTraces'
77+ { _pptXgafv :: !(Maybe Text)
78+ , _pptUploadProtocol :: !(Maybe Text)
79+ , _pptPp :: !Bool
80+ , _pptAccessToken :: !(Maybe Text)
81+ , _pptUploadType :: !(Maybe Text)
82+ , _pptPayload :: !Traces
83+ , _pptBearerToken :: !(Maybe Text)
84+ , _pptProjectId :: !Text
85+ , _pptCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'ProjectsPatchTraces'' 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+-- * 'pptXgafv'
93+--
94+-- * 'pptUploadProtocol'
95+--
96+-- * 'pptPp'
97+--
98+-- * 'pptAccessToken'
99+--
100+-- * 'pptUploadType'
101+--
102+-- * 'pptPayload'
103+--
104+-- * 'pptBearerToken'
105+--
106+-- * 'pptProjectId'
107+--
108+-- * 'pptCallback'
109+projectsPatchTraces'
110+ :: Traces -- ^ 'payload'
111+ -> Text -- ^ 'projectId'
112+ -> ProjectsPatchTraces'
113+projectsPatchTraces' pPptPayload_ pPptProjectId_ =
114+ ProjectsPatchTraces'
115+ { _pptXgafv = Nothing
116+ , _pptUploadProtocol = Nothing
117+ , _pptPp = True
118+ , _pptAccessToken = Nothing
119+ , _pptUploadType = Nothing
120+ , _pptPayload = pPptPayload_
121+ , _pptBearerToken = Nothing
122+ , _pptProjectId = pPptProjectId_
123+ , _pptCallback = Nothing
124+ }
125+
126+-- | V1 error format.
127+pptXgafv :: Lens' ProjectsPatchTraces' (Maybe Text)
128+pptXgafv = lens _pptXgafv (\ s a -> s{_pptXgafv = a})
129+
130+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131+pptUploadProtocol :: Lens' ProjectsPatchTraces' (Maybe Text)
132+pptUploadProtocol
133+ = lens _pptUploadProtocol
134+ (\ s a -> s{_pptUploadProtocol = a})
135+
136+-- | Pretty-print response.
137+pptPp :: Lens' ProjectsPatchTraces' Bool
138+pptPp = lens _pptPp (\ s a -> s{_pptPp = a})
139+
140+-- | OAuth access token.
141+pptAccessToken :: Lens' ProjectsPatchTraces' (Maybe Text)
142+pptAccessToken
143+ = lens _pptAccessToken
144+ (\ s a -> s{_pptAccessToken = a})
145+
146+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147+pptUploadType :: Lens' ProjectsPatchTraces' (Maybe Text)
148+pptUploadType
149+ = lens _pptUploadType
150+ (\ s a -> s{_pptUploadType = a})
151+
152+-- | Multipart request metadata.
153+pptPayload :: Lens' ProjectsPatchTraces' Traces
154+pptPayload
155+ = lens _pptPayload (\ s a -> s{_pptPayload = a})
156+
157+-- | OAuth bearer token.
158+pptBearerToken :: Lens' ProjectsPatchTraces' (Maybe Text)
159+pptBearerToken
160+ = lens _pptBearerToken
161+ (\ s a -> s{_pptBearerToken = a})
162+
163+-- | The project id of the trace to patch.
164+pptProjectId :: Lens' ProjectsPatchTraces' Text
165+pptProjectId
166+ = lens _pptProjectId (\ s a -> s{_pptProjectId = a})
167+
168+-- | JSONP
169+pptCallback :: Lens' ProjectsPatchTraces' (Maybe Text)
170+pptCallback
171+ = lens _pptCallback (\ s a -> s{_pptCallback = a})
172+
173+instance GoogleRequest ProjectsPatchTraces' where
174+ type Rs ProjectsPatchTraces' = Empty
175+ requestClient ProjectsPatchTraces'{..}
176+ = go _pptProjectId _pptXgafv _pptUploadProtocol
177+ (Just _pptPp)
178+ _pptAccessToken
179+ _pptUploadType
180+ _pptBearerToken
181+ _pptCallback
182+ (Just AltJSON)
183+ _pptPayload
184+ cloudTraceService
185+ where go
186+ = buildClient
187+ (Proxy :: Proxy ProjectsPatchTracesResource)
188+ mempty
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/Get.hsnew file+182
@@ -0,0 +1,182 @@
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.CloudTrace.Projects.Traces.Get
17+-- Copyright : (c) 2015 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 one trace by id.
24+--
25+-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference> for @CloudtraceProjectsTracesGet@.
26+module Network.Google.Resource.CloudTrace.Projects.Traces.Get
27+ (
28+ -- * REST Resource
29+ ProjectsTracesGetResource
30+
31+ -- * Creating a Request
32+ , projectsTracesGet'
33+ , ProjectsTracesGet'
34+
35+ -- * Request Lenses
36+ , ptgTraceId
37+ , ptgXgafv
38+ , ptgUploadProtocol
39+ , ptgPp
40+ , ptgAccessToken
41+ , ptgUploadType
42+ , ptgBearerToken
43+ , ptgProjectId
44+ , ptgCallback
45+ ) where
46+
47+import Network.Google.CloudTrace.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @CloudtraceProjectsTracesGet@ method which the
51+-- 'ProjectsTracesGet'' request conforms to.
52+type ProjectsTracesGetResource =
53+ "v1" :>
54+ "projects" :>
55+ Capture "projectId" Text :>
56+ "traces" :>
57+ Capture "traceId" Text :>
58+ QueryParam "$.xgafv" Text :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "callback" Text :>
65+ QueryParam "alt" AltJSON :> Get '[JSON] Trace
66+
67+-- | Gets one trace by id.
68+--
69+-- /See:/ 'projectsTracesGet'' smart constructor.
70+data ProjectsTracesGet' = ProjectsTracesGet'
71+ { _ptgTraceId :: !Text
72+ , _ptgXgafv :: !(Maybe Text)
73+ , _ptgUploadProtocol :: !(Maybe Text)
74+ , _ptgPp :: !Bool
75+ , _ptgAccessToken :: !(Maybe Text)
76+ , _ptgUploadType :: !(Maybe Text)
77+ , _ptgBearerToken :: !(Maybe Text)
78+ , _ptgProjectId :: !Text
79+ , _ptgCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'ProjectsTracesGet'' with the minimum fields required to make a request.
83+--
84+-- Use one of the following lenses to modify other fields as desired:
85+--
86+-- * 'ptgTraceId'
87+--
88+-- * 'ptgXgafv'
89+--
90+-- * 'ptgUploadProtocol'
91+--
92+-- * 'ptgPp'
93+--
94+-- * 'ptgAccessToken'
95+--
96+-- * 'ptgUploadType'
97+--
98+-- * 'ptgBearerToken'
99+--
100+-- * 'ptgProjectId'
101+--
102+-- * 'ptgCallback'
103+projectsTracesGet'
104+ :: Text -- ^ 'traceId'
105+ -> Text -- ^ 'projectId'
106+ -> ProjectsTracesGet'
107+projectsTracesGet' pPtgTraceId_ pPtgProjectId_ =
108+ ProjectsTracesGet'
109+ { _ptgTraceId = pPtgTraceId_
110+ , _ptgXgafv = Nothing
111+ , _ptgUploadProtocol = Nothing
112+ , _ptgPp = True
113+ , _ptgAccessToken = Nothing
114+ , _ptgUploadType = Nothing
115+ , _ptgBearerToken = Nothing
116+ , _ptgProjectId = pPtgProjectId_
117+ , _ptgCallback = Nothing
118+ }
119+
120+-- | The trace id of the trace to return.
121+ptgTraceId :: Lens' ProjectsTracesGet' Text
122+ptgTraceId
123+ = lens _ptgTraceId (\ s a -> s{_ptgTraceId = a})
124+
125+-- | V1 error format.
126+ptgXgafv :: Lens' ProjectsTracesGet' (Maybe Text)
127+ptgXgafv = lens _ptgXgafv (\ s a -> s{_ptgXgafv = a})
128+
129+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
130+ptgUploadProtocol :: Lens' ProjectsTracesGet' (Maybe Text)
131+ptgUploadProtocol
132+ = lens _ptgUploadProtocol
133+ (\ s a -> s{_ptgUploadProtocol = a})
134+
135+-- | Pretty-print response.
136+ptgPp :: Lens' ProjectsTracesGet' Bool
137+ptgPp = lens _ptgPp (\ s a -> s{_ptgPp = a})
138+
139+-- | OAuth access token.
140+ptgAccessToken :: Lens' ProjectsTracesGet' (Maybe Text)
141+ptgAccessToken
142+ = lens _ptgAccessToken
143+ (\ s a -> s{_ptgAccessToken = a})
144+
145+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
146+ptgUploadType :: Lens' ProjectsTracesGet' (Maybe Text)
147+ptgUploadType
148+ = lens _ptgUploadType
149+ (\ s a -> s{_ptgUploadType = a})
150+
151+-- | OAuth bearer token.
152+ptgBearerToken :: Lens' ProjectsTracesGet' (Maybe Text)
153+ptgBearerToken
154+ = lens _ptgBearerToken
155+ (\ s a -> s{_ptgBearerToken = a})
156+
157+-- | The project id of the trace to return.
158+ptgProjectId :: Lens' ProjectsTracesGet' Text
159+ptgProjectId
160+ = lens _ptgProjectId (\ s a -> s{_ptgProjectId = a})
161+
162+-- | JSONP
163+ptgCallback :: Lens' ProjectsTracesGet' (Maybe Text)
164+ptgCallback
165+ = lens _ptgCallback (\ s a -> s{_ptgCallback = a})
166+
167+instance GoogleRequest ProjectsTracesGet' where
168+ type Rs ProjectsTracesGet' = Trace
169+ requestClient ProjectsTracesGet'{..}
170+ = go _ptgProjectId _ptgTraceId _ptgXgafv
171+ _ptgUploadProtocol
172+ (Just _ptgPp)
173+ _ptgAccessToken
174+ _ptgUploadType
175+ _ptgBearerToken
176+ _ptgCallback
177+ (Just AltJSON)
178+ cloudTraceService
179+ where go
180+ = buildClient
181+ (Proxy :: Proxy ProjectsTracesGetResource)
182+ mempty
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/List.hsnew file+262
@@ -0,0 +1,262 @@
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.CloudTrace.Projects.Traces.List
17+-- Copyright : (c) 2015 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+-- | List traces matching the filter expression.
24+--
25+-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference> for @CloudtraceProjectsTracesList@.
26+module Network.Google.Resource.CloudTrace.Projects.Traces.List
27+ (
28+ -- * REST Resource
29+ ProjectsTracesListResource
30+
31+ -- * Creating a Request
32+ , projectsTracesList'
33+ , ProjectsTracesList'
34+
35+ -- * Request Lenses
36+ , ptlXgafv
37+ , ptlUploadProtocol
38+ , ptlOrderBy
39+ , ptlStartTime
40+ , ptlPp
41+ , ptlAccessToken
42+ , ptlUploadType
43+ , ptlBearerToken
44+ , ptlEndTime
45+ , ptlView
46+ , ptlFilter
47+ , ptlPageToken
48+ , ptlProjectId
49+ , ptlPageSize
50+ , ptlCallback
51+ ) where
52+
53+import Network.Google.CloudTrace.Types
54+import Network.Google.Prelude
55+
56+-- | A resource alias for @CloudtraceProjectsTracesList@ method which the
57+-- 'ProjectsTracesList'' request conforms to.
58+type ProjectsTracesListResource =
59+ "v1" :>
60+ "projects" :>
61+ Capture "projectId" Text :>
62+ "traces" :>
63+ QueryParam "$.xgafv" Text :>
64+ QueryParam "upload_protocol" Text :>
65+ QueryParam "orderBy" Text :>
66+ QueryParam "startTime" Text :>
67+ QueryParam "pp" Bool :>
68+ QueryParam "access_token" Text :>
69+ QueryParam "uploadType" Text :>
70+ QueryParam "bearer_token" Text :>
71+ QueryParam "endTime" Text :>
72+ QueryParam "view" Text :>
73+ QueryParam "filter" Text :>
74+ QueryParam "pageToken" Text :>
75+ QueryParam "pageSize" Int32 :>
76+ QueryParam "callback" Text :>
77+ QueryParam "alt" AltJSON :>
78+ Get '[JSON] ListTracesResponse
79+
80+-- | List traces matching the filter expression.
81+--
82+-- /See:/ 'projectsTracesList'' smart constructor.
83+data ProjectsTracesList' = ProjectsTracesList'
84+ { _ptlXgafv :: !(Maybe Text)
85+ , _ptlUploadProtocol :: !(Maybe Text)
86+ , _ptlOrderBy :: !(Maybe Text)
87+ , _ptlStartTime :: !(Maybe Text)
88+ , _ptlPp :: !Bool
89+ , _ptlAccessToken :: !(Maybe Text)
90+ , _ptlUploadType :: !(Maybe Text)
91+ , _ptlBearerToken :: !(Maybe Text)
92+ , _ptlEndTime :: !(Maybe Text)
93+ , _ptlView :: !(Maybe Text)
94+ , _ptlFilter :: !(Maybe Text)
95+ , _ptlPageToken :: !(Maybe Text)
96+ , _ptlProjectId :: !Text
97+ , _ptlPageSize :: !(Maybe Int32)
98+ , _ptlCallback :: !(Maybe Text)
99+ } deriving (Eq,Show,Data,Typeable,Generic)
100+
101+-- | Creates a value of 'ProjectsTracesList'' with the minimum fields required to make a request.
102+--
103+-- Use one of the following lenses to modify other fields as desired:
104+--
105+-- * 'ptlXgafv'
106+--
107+-- * 'ptlUploadProtocol'
108+--
109+-- * 'ptlOrderBy'
110+--
111+-- * 'ptlStartTime'
112+--
113+-- * 'ptlPp'
114+--
115+-- * 'ptlAccessToken'
116+--
117+-- * 'ptlUploadType'
118+--
119+-- * 'ptlBearerToken'
120+--
121+-- * 'ptlEndTime'
122+--
123+-- * 'ptlView'
124+--
125+-- * 'ptlFilter'
126+--
127+-- * 'ptlPageToken'
128+--
129+-- * 'ptlProjectId'
130+--
131+-- * 'ptlPageSize'
132+--
133+-- * 'ptlCallback'
134+projectsTracesList'
135+ :: Text -- ^ 'projectId'
136+ -> ProjectsTracesList'
137+projectsTracesList' pPtlProjectId_ =
138+ ProjectsTracesList'
139+ { _ptlXgafv = Nothing
140+ , _ptlUploadProtocol = Nothing
141+ , _ptlOrderBy = Nothing
142+ , _ptlStartTime = Nothing
143+ , _ptlPp = True
144+ , _ptlAccessToken = Nothing
145+ , _ptlUploadType = Nothing
146+ , _ptlBearerToken = Nothing
147+ , _ptlEndTime = Nothing
148+ , _ptlView = Nothing
149+ , _ptlFilter = Nothing
150+ , _ptlPageToken = Nothing
151+ , _ptlProjectId = pPtlProjectId_
152+ , _ptlPageSize = Nothing
153+ , _ptlCallback = Nothing
154+ }
155+
156+-- | V1 error format.
157+ptlXgafv :: Lens' ProjectsTracesList' (Maybe Text)
158+ptlXgafv = lens _ptlXgafv (\ s a -> s{_ptlXgafv = a})
159+
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+ptlUploadProtocol :: Lens' ProjectsTracesList' (Maybe Text)
162+ptlUploadProtocol
163+ = lens _ptlUploadProtocol
164+ (\ s a -> s{_ptlUploadProtocol = a})
165+
166+-- | The trace field used to establish the order of traces returned by the
167+-- ListTraces method. Possible options are: trace_id name (name field of
168+-- root span) duration (different between end_time and start_time fields of
169+-- root span) start (start_time field of root span) Descending order can be
170+-- specified by appending \"desc\" to the sort field: name desc Only one
171+-- sort field is permitted, though this may change in the future.
172+ptlOrderBy :: Lens' ProjectsTracesList' (Maybe Text)
173+ptlOrderBy
174+ = lens _ptlOrderBy (\ s a -> s{_ptlOrderBy = a})
175+
176+-- | End of the time interval (inclusive).
177+ptlStartTime :: Lens' ProjectsTracesList' (Maybe Text)
178+ptlStartTime
179+ = lens _ptlStartTime (\ s a -> s{_ptlStartTime = a})
180+
181+-- | Pretty-print response.
182+ptlPp :: Lens' ProjectsTracesList' Bool
183+ptlPp = lens _ptlPp (\ s a -> s{_ptlPp = a})
184+
185+-- | OAuth access token.
186+ptlAccessToken :: Lens' ProjectsTracesList' (Maybe Text)
187+ptlAccessToken
188+ = lens _ptlAccessToken
189+ (\ s a -> s{_ptlAccessToken = a})
190+
191+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
192+ptlUploadType :: Lens' ProjectsTracesList' (Maybe Text)
193+ptlUploadType
194+ = lens _ptlUploadType
195+ (\ s a -> s{_ptlUploadType = a})
196+
197+-- | OAuth bearer token.
198+ptlBearerToken :: Lens' ProjectsTracesList' (Maybe Text)
199+ptlBearerToken
200+ = lens _ptlBearerToken
201+ (\ s a -> s{_ptlBearerToken = a})
202+
203+-- | Start of the time interval (exclusive).
204+ptlEndTime :: Lens' ProjectsTracesList' (Maybe Text)
205+ptlEndTime
206+ = lens _ptlEndTime (\ s a -> s{_ptlEndTime = a})
207+
208+-- | ViewType specifies the projection of the result.
209+ptlView :: Lens' ProjectsTracesList' (Maybe Text)
210+ptlView = lens _ptlView (\ s a -> s{_ptlView = a})
211+
212+-- | An optional filter for the request.
213+ptlFilter :: Lens' ProjectsTracesList' (Maybe Text)
214+ptlFilter
215+ = lens _ptlFilter (\ s a -> s{_ptlFilter = a})
216+
217+-- | The token identifying the page of results to return from the ListTraces
218+-- method. If present, this value is should be taken from the
219+-- next_page_token field of a previous ListTracesResponse.
220+ptlPageToken :: Lens' ProjectsTracesList' (Maybe Text)
221+ptlPageToken
222+ = lens _ptlPageToken (\ s a -> s{_ptlPageToken = a})
223+
224+-- | The stringified-version of the project id.
225+ptlProjectId :: Lens' ProjectsTracesList' Text
226+ptlProjectId
227+ = lens _ptlProjectId (\ s a -> s{_ptlProjectId = a})
228+
229+-- | Maximum number of topics to return. If not specified or \<= 0, the
230+-- implementation will select a reasonable value. The implemenation may
231+-- always return fewer than the requested page_size.
232+ptlPageSize :: Lens' ProjectsTracesList' (Maybe Int32)
233+ptlPageSize
234+ = lens _ptlPageSize (\ s a -> s{_ptlPageSize = a})
235+
236+-- | JSONP
237+ptlCallback :: Lens' ProjectsTracesList' (Maybe Text)
238+ptlCallback
239+ = lens _ptlCallback (\ s a -> s{_ptlCallback = a})
240+
241+instance GoogleRequest ProjectsTracesList' where
242+ type Rs ProjectsTracesList' = ListTracesResponse
243+ requestClient ProjectsTracesList'{..}
244+ = go _ptlProjectId _ptlXgafv _ptlUploadProtocol
245+ _ptlOrderBy
246+ _ptlStartTime
247+ (Just _ptlPp)
248+ _ptlAccessToken
249+ _ptlUploadType
250+ _ptlBearerToken
251+ _ptlEndTime
252+ _ptlView
253+ _ptlFilter
254+ _ptlPageToken
255+ _ptlPageSize
256+ _ptlCallback
257+ (Just AltJSON)
258+ cloudTraceService
259+ where go
260+ = buildClient
261+ (Proxy :: Proxy ProjectsTracesListResource)
262+ mempty
gogol-cloudtrace/gogol-cloudtrace.cabalnew file+50
@@ -0,0 +1,50 @@
1+name: gogol-cloudtrace
2+version: 0.0.1
3+synopsis: Google Cloud Trace API Client.
4+homepage: https://github.com/brendanhay/gogol
5+bug-reports: https://github.com/brendanhay/gogol/issues
6+license: OtherLicense
7+license-file: LICENSE
8+author: Brendan Hay
9+maintainer: Brendan Hay <brendan.g.hay@gmail.com>
10+copyright: Copyright (c) 2015 Brendan Hay
11+category: Network, Google, Cloud
12+build-type: Simple
13+cabal-version: >= 1.10
14+extra-source-files: README.md
15+
16+description:
17+ The Google Cloud Trace API provides services for reading and writing
18+ runtime trace data for Cloud applications.
19+ .
20+ /Warning:/ This is an experimental prototype/preview release which is still
21+ under exploratory development and not intended for public use, caveat emptor!
22+ .
23+ This library is compatible with version @v1@
24+ of the API.
25+
26+source-repository head
27+ type: git
28+ location: git://github.com/brendanhay/gogol.git
29+
30+library
31+ default-language: Haskell2010
32+ hs-source-dirs: src gen
33+
34+ ghc-options: -Wall
35+
36+ exposed-modules:
37+ Network.Google.CloudTrace
38+ , Network.Google.CloudTrace.Types
39+ , Network.Google.Resource.CloudTrace.GetDiscovery
40+ , Network.Google.Resource.CloudTrace.Projects.PatchTraces
41+ , Network.Google.Resource.CloudTrace.Projects.Traces.Get
42+ , Network.Google.Resource.CloudTrace.Projects.Traces.List
43+
44+ other-modules:
45+ Network.Google.CloudTrace.Types.Product
46+ , Network.Google.CloudTrace.Types.Sum
47+
48+ build-depends:
49+ gogol-core == 0.0.1.*
50+ , base >= 4.7 && < 5
gogol-cloudtrace/src/.gitkeepnew file

No changes to the content.

gogol-compute/gen/Network/Google/Compute.hs+153
@@ -203,6 +203,24 @@ module Network.Google.Compute
203203 -- ** ComputeHTTPHealthChecksUpdate
204204 , module Network.Google.Resource.Compute.HTTPHealthChecks.Update
205205
206+ -- ** ComputeHTTPSHealthChecksDelete
207+ , module Network.Google.Resource.Compute.HTTPSHealthChecks.Delete
208+
209+ -- ** ComputeHTTPSHealthChecksGet
210+ , module Network.Google.Resource.Compute.HTTPSHealthChecks.Get
211+
212+ -- ** ComputeHTTPSHealthChecksInsert
213+ , module Network.Google.Resource.Compute.HTTPSHealthChecks.Insert
214+
215+ -- ** ComputeHTTPSHealthChecksList
216+ , module Network.Google.Resource.Compute.HTTPSHealthChecks.List
217+
218+ -- ** ComputeHTTPSHealthChecksPatch
219+ , module Network.Google.Resource.Compute.HTTPSHealthChecks.Patch
220+
221+ -- ** ComputeHTTPSHealthChecksUpdate
222+ , module Network.Google.Resource.Compute.HTTPSHealthChecks.Update
223+
206224 -- ** ComputeImagesDelete
207225 , module Network.Google.Resource.Compute.Images.Delete
208226
@@ -419,6 +437,18 @@ module Network.Google.Compute
419437 -- ** ComputeSnapshotsList
420438 , module Network.Google.Resource.Compute.Snapshots.List
421439
440+ -- ** ComputeSSLCertificatesDelete
441+ , module Network.Google.Resource.Compute.SSLCertificates.Delete
442+
443+ -- ** ComputeSSLCertificatesGet
444+ , module Network.Google.Resource.Compute.SSLCertificates.Get
445+
446+ -- ** ComputeSSLCertificatesInsert
447+ , module Network.Google.Resource.Compute.SSLCertificates.Insert
448+
449+ -- ** ComputeSSLCertificatesList
450+ , module Network.Google.Resource.Compute.SSLCertificates.List
451+
422452 -- ** ComputeTargetHTTPProxiesDelete
423453 , module Network.Google.Resource.Compute.TargetHTTPProxies.Delete
424454
@@ -434,6 +464,24 @@ module Network.Google.Compute
434464 -- ** ComputeTargetHTTPProxiesSetURLMap
435465 , module Network.Google.Resource.Compute.TargetHTTPProxies.SetURLMap
436466
467+ -- ** ComputeTargetHTTPSProxiesDelete
468+ , module Network.Google.Resource.Compute.TargetHTTPSProxies.Delete
469+
470+ -- ** ComputeTargetHTTPSProxiesGet
471+ , module Network.Google.Resource.Compute.TargetHTTPSProxies.Get
472+
473+ -- ** ComputeTargetHTTPSProxiesInsert
474+ , module Network.Google.Resource.Compute.TargetHTTPSProxies.Insert
475+
476+ -- ** ComputeTargetHTTPSProxiesList
477+ , module Network.Google.Resource.Compute.TargetHTTPSProxies.List
478+
479+ -- ** ComputeTargetHTTPSProxiesSetSSLCertificates
480+ , module Network.Google.Resource.Compute.TargetHTTPSProxies.SetSSLCertificates
481+
482+ -- ** ComputeTargetHTTPSProxiesSetURLMap
483+ , module Network.Google.Resource.Compute.TargetHTTPSProxies.SetURLMap
484+
437485 -- ** ComputeTargetInstancesAggregatedList
438486 , module Network.Google.Resource.Compute.TargetInstances.AggregatedList
439487
@@ -550,6 +598,15 @@ module Network.Google.Compute
550598
551599 -- * Types
552600
601+ -- ** TargetHTTPSProxyList
602+ , TargetHTTPSProxyList
603+ , targetHTTPSProxyList
604+ , thplNextPageToken
605+ , thplKind
606+ , thplItems
607+ , thplSelfLink
608+ , thplId
609+
553610 -- ** AddressesScopedList
554611 , AddressesScopedList
555612 , addressesScopedList
@@ -1255,6 +1312,15 @@ module Network.Google.Compute
12551312 -- ** TargetInstanceNATPolicy
12561313 , TargetInstanceNATPolicy (..)
12571314
1315+ -- ** SSLCertificateList
1316+ , SSLCertificateList
1317+ , sslCertificateList
1318+ , sclNextPageToken
1319+ , sclKind
1320+ , sclItems
1321+ , sclSelfLink
1322+ , sclId
1323+
12581324 -- ** FirewallAllowedItem
12591325 , FirewallAllowedItem
12601326 , firewallAllowedItem
@@ -1389,6 +1455,11 @@ module Network.Google.Compute
13891455 -- ** TargetVPNGatewaysScopedListWarningCode
13901456 , TargetVPNGatewaysScopedListWarningCode (..)
13911457
1458+ -- ** TargetHTTPSProxiesSetSSLCertificatesRequest
1459+ , TargetHTTPSProxiesSetSSLCertificatesRequest
1460+ , targetHTTPSProxiesSetSSLCertificatesRequest
1461+ , thpsscrSSLCertificates
1462+
13921463 -- ** InstanceTemplate
13931464 , InstanceTemplate
13941465 , instanceTemplate
@@ -1434,6 +1505,18 @@ module Network.Google.Compute
14341505 , urlMapsValidateResponse
14351506 , umvrResult
14361507
1508+ -- ** SSLCertificate
1509+ , SSLCertificate
1510+ , sslCertificate
1511+ , scPrivateKey
1512+ , scKind
1513+ , scSelfLink
1514+ , scName
1515+ , scCreationTimestamp
1516+ , scId
1517+ , scCertificate
1518+ , scDescription
1519+
14371520 -- ** URLMapReference
14381521 , URLMapReference
14391522 , urlMapReference
@@ -2003,6 +2086,15 @@ module Network.Google.Compute
20032086 , igmstprFingerprint
20042087 , igmstprTargetPools
20052088
2089+ -- ** HTTPSHealthCheckList
2090+ , HTTPSHealthCheckList
2091+ , httpsHealthCheckList
2092+ , hhclNextPageToken
2093+ , hhclKind
2094+ , hhclItems
2095+ , hhclSelfLink
2096+ , hhclId
2097+
20062098 -- ** OperationErrorErrorsItem
20072099 , OperationErrorErrorsItem
20082100 , operationErrorErrorsItem
@@ -2159,6 +2251,18 @@ module Network.Google.Compute
21592251 , miiValue
21602252 , miiKey
21612253
2254+ -- ** TargetHTTPSProxy
2255+ , TargetHTTPSProxy
2256+ , targetHTTPSProxy
2257+ , thpURLMap
2258+ , thpSSLCertificates
2259+ , thpKind
2260+ , thpSelfLink
2261+ , thpName
2262+ , thpCreationTimestamp
2263+ , thpId
2264+ , thpDescription
2265+
21622266 -- ** TargetVPNGatewaysScopedList
21632267 , TargetVPNGatewaysScopedList
21642268 , targetVPNGatewaysScopedList
@@ -2221,6 +2325,23 @@ module Network.Google.Compute
22212325 , igslWarning
22222326 , igslInstanceGroups
22232327
2328+ -- ** HTTPSHealthCheck
2329+ , HTTPSHealthCheck
2330+ , httpsHealthCheck
2331+ , hhcHealthyThreshold
2332+ , hhcKind
2333+ , hhcRequestPath
2334+ , hhcSelfLink
2335+ , hhcCheckIntervalSec
2336+ , hhcName
2337+ , hhcCreationTimestamp
2338+ , hhcId
2339+ , hhcHost
2340+ , hhcTimeoutSec
2341+ , hhcDescription
2342+ , hhcUnhealthyThreshold
2343+ , hhcPort
2344+
22242345 -- ** ImageRawDiskContainerType
22252346 , ImageRawDiskContainerType (..)
22262347
@@ -2351,6 +2472,12 @@ import Network.Google.Resource.Compute.HTTPHealthChecks.Insert
23512472import Network.Google.Resource.Compute.HTTPHealthChecks.List
23522473import Network.Google.Resource.Compute.HTTPHealthChecks.Patch
23532474import Network.Google.Resource.Compute.HTTPHealthChecks.Update
2475+import Network.Google.Resource.Compute.HTTPSHealthChecks.Delete
2476+import Network.Google.Resource.Compute.HTTPSHealthChecks.Get
2477+import Network.Google.Resource.Compute.HTTPSHealthChecks.Insert
2478+import Network.Google.Resource.Compute.HTTPSHealthChecks.List
2479+import Network.Google.Resource.Compute.HTTPSHealthChecks.Patch
2480+import Network.Google.Resource.Compute.HTTPSHealthChecks.Update
23542481import Network.Google.Resource.Compute.Images.Delete
23552482import Network.Google.Resource.Compute.Images.Deprecate
23562483import Network.Google.Resource.Compute.Images.Get
@@ -2423,11 +2550,21 @@ import Network.Google.Resource.Compute.Routes.List
24232550import Network.Google.Resource.Compute.Snapshots.Delete
24242551import Network.Google.Resource.Compute.Snapshots.Get
24252552import Network.Google.Resource.Compute.Snapshots.List
2553+import Network.Google.Resource.Compute.SSLCertificates.Delete
2554+import Network.Google.Resource.Compute.SSLCertificates.Get
2555+import Network.Google.Resource.Compute.SSLCertificates.Insert
2556+import Network.Google.Resource.Compute.SSLCertificates.List
24262557import Network.Google.Resource.Compute.TargetHTTPProxies.Delete
24272558import Network.Google.Resource.Compute.TargetHTTPProxies.Get
24282559import Network.Google.Resource.Compute.TargetHTTPProxies.Insert
24292560import Network.Google.Resource.Compute.TargetHTTPProxies.List
24302561import Network.Google.Resource.Compute.TargetHTTPProxies.SetURLMap
2562+import Network.Google.Resource.Compute.TargetHTTPSProxies.Delete
2563+import Network.Google.Resource.Compute.TargetHTTPSProxies.Get
2564+import Network.Google.Resource.Compute.TargetHTTPSProxies.Insert
2565+import Network.Google.Resource.Compute.TargetHTTPSProxies.List
2566+import Network.Google.Resource.Compute.TargetHTTPSProxies.SetSSLCertificates
2567+import Network.Google.Resource.Compute.TargetHTTPSProxies.SetURLMap
24312568import Network.Google.Resource.Compute.TargetInstances.AggregatedList
24322569import Network.Google.Resource.Compute.TargetInstances.Delete
24332570import Network.Google.Resource.Compute.TargetInstances.Get
@@ -2497,6 +2634,10 @@ type ComputeAPI =
24972634 :<|> TargetVPNGatewaysListResource
24982635 :<|> TargetVPNGatewaysGetResource
24992636 :<|> TargetVPNGatewaysDeleteResource
2637+ :<|> SSLCertificatesInsertResource
2638+ :<|> SSLCertificatesListResource
2639+ :<|> SSLCertificatesGetResource
2640+ :<|> SSLCertificatesDeleteResource
25002641 :<|> ZonesListResource
25012642 :<|> ZonesGetResource
25022643 :<|> GlobalForwardingRulesInsertResource
@@ -2554,6 +2695,12 @@ type ComputeAPI =
25542695 :<|> SnapshotsListResource
25552696 :<|> SnapshotsGetResource
25562697 :<|> SnapshotsDeleteResource
2698+ :<|> HTTPSHealthChecksInsertResource
2699+ :<|> HTTPSHealthChecksListResource
2700+ :<|> HTTPSHealthChecksPatchResource
2701+ :<|> HTTPSHealthChecksGetResource
2702+ :<|> HTTPSHealthChecksDeleteResource
2703+ :<|> HTTPSHealthChecksUpdateResource
25572704 :<|> InstancesAddAccessConfigResource
25582705 :<|> InstancesAggregatedListResource
25592706 :<|> InstancesInsertResource
@@ -2601,6 +2748,12 @@ type ComputeAPI =
26012748 :<|> ZoneOperationsListResource
26022749 :<|> ZoneOperationsGetResource
26032750 :<|> ZoneOperationsDeleteResource
2751+ :<|> TargetHTTPSProxiesInsertResource
2752+ :<|> TargetHTTPSProxiesListResource
2753+ :<|> TargetHTTPSProxiesSetURLMapResource
2754+ :<|> TargetHTTPSProxiesSetSSLCertificatesResource
2755+ :<|> TargetHTTPSProxiesGetResource
2756+ :<|> TargetHTTPSProxiesDeleteResource
26042757 :<|> TargetInstancesAggregatedListResource
26052758 :<|> TargetInstancesInsertResource
26062759 :<|> TargetInstancesListResource
gogol-compute/gen/Network/Google/Compute/Types.hs+73
@@ -26,6 +26,15 @@ module Network.Google.Compute.Types
2626 , computeReadonlyScope
2727 , devstorageFullControlScope
2828
29+ -- * TargetHTTPSProxyList
30+ , TargetHTTPSProxyList
31+ , targetHTTPSProxyList
32+ , thplNextPageToken
33+ , thplKind
34+ , thplItems
35+ , thplSelfLink
36+ , thplId
37+
2938 -- * AddressesScopedList
3039 , AddressesScopedList
3140 , addressesScopedList
@@ -731,6 +740,15 @@ module Network.Google.Compute.Types
731740 -- * TargetInstanceNATPolicy
732741 , TargetInstanceNATPolicy (..)
733742
743+ -- * SSLCertificateList
744+ , SSLCertificateList
745+ , sslCertificateList
746+ , sclNextPageToken
747+ , sclKind
748+ , sclItems
749+ , sclSelfLink
750+ , sclId
751+
734752 -- * FirewallAllowedItem
735753 , FirewallAllowedItem
736754 , firewallAllowedItem
@@ -865,6 +883,11 @@ module Network.Google.Compute.Types
865883 -- * TargetVPNGatewaysScopedListWarningCode
866884 , TargetVPNGatewaysScopedListWarningCode (..)
867885
886+ -- * TargetHTTPSProxiesSetSSLCertificatesRequest
887+ , TargetHTTPSProxiesSetSSLCertificatesRequest
888+ , targetHTTPSProxiesSetSSLCertificatesRequest
889+ , thpsscrSSLCertificates
890+
868891 -- * InstanceTemplate
869892 , InstanceTemplate
870893 , instanceTemplate
@@ -910,6 +933,18 @@ module Network.Google.Compute.Types
910933 , urlMapsValidateResponse
911934 , umvrResult
912935
936+ -- * SSLCertificate
937+ , SSLCertificate
938+ , sslCertificate
939+ , scPrivateKey
940+ , scKind
941+ , scSelfLink
942+ , scName
943+ , scCreationTimestamp
944+ , scId
945+ , scCertificate
946+ , scDescription
947+
913948 -- * URLMapReference
914949 , URLMapReference
915950 , urlMapReference
@@ -1479,6 +1514,15 @@ module Network.Google.Compute.Types
14791514 , igmstprFingerprint
14801515 , igmstprTargetPools
14811516
1517+ -- * HTTPSHealthCheckList
1518+ , HTTPSHealthCheckList
1519+ , httpsHealthCheckList
1520+ , hhclNextPageToken
1521+ , hhclKind
1522+ , hhclItems
1523+ , hhclSelfLink
1524+ , hhclId
1525+
14821526 -- * OperationErrorErrorsItem
14831527 , OperationErrorErrorsItem
14841528 , operationErrorErrorsItem
@@ -1635,6 +1679,18 @@ module Network.Google.Compute.Types
16351679 , miiValue
16361680 , miiKey
16371681
1682+ -- * TargetHTTPSProxy
1683+ , TargetHTTPSProxy
1684+ , targetHTTPSProxy
1685+ , thpURLMap
1686+ , thpSSLCertificates
1687+ , thpKind
1688+ , thpSelfLink
1689+ , thpName
1690+ , thpCreationTimestamp
1691+ , thpId
1692+ , thpDescription
1693+
16381694 -- * TargetVPNGatewaysScopedList
16391695 , TargetVPNGatewaysScopedList
16401696 , targetVPNGatewaysScopedList
@@ -1697,6 +1753,23 @@ module Network.Google.Compute.Types
16971753 , igslWarning
16981754 , igslInstanceGroups
16991755
1756+ -- * HTTPSHealthCheck
1757+ , HTTPSHealthCheck
1758+ , httpsHealthCheck
1759+ , hhcHealthyThreshold
1760+ , hhcKind
1761+ , hhcRequestPath
1762+ , hhcSelfLink
1763+ , hhcCheckIntervalSec
1764+ , hhcName
1765+ , hhcCreationTimestamp
1766+ , hhcId
1767+ , hhcHost
1768+ , hhcTimeoutSec
1769+ , hhcDescription
1770+ , hhcUnhealthyThreshold
1771+ , hhcPort
1772+
17001773 -- * ImageRawDiskContainerType
17011774 , ImageRawDiskContainerType (..)
17021775
gogol-compute/gen/Network/Google/Compute/Types/Product.hs+876−116
@@ -20,6 +20,88 @@ module Network.Google.Compute.Types.Product where
2020import Network.Google.Compute.Types.Sum
2121import Network.Google.Prelude
2222
23+-- | Contains a list of TargetHttpsProxy resources.
24+--
25+-- /See:/ 'targetHTTPSProxyList' smart constructor.
26+data TargetHTTPSProxyList = TargetHTTPSProxyList
27+ { _thplNextPageToken :: !(Maybe Text)
28+ , _thplKind :: !Text
29+ , _thplItems :: !(Maybe [TargetHTTPSProxy])
30+ , _thplSelfLink :: !(Maybe Text)
31+ , _thplId :: !(Maybe Text)
32+ } deriving (Eq,Show,Data,Typeable,Generic)
33+
34+-- | Creates a value of 'TargetHTTPSProxyList' with the minimum fields required to make a request.
35+--
36+-- Use one of the following lenses to modify other fields as desired:
37+--
38+-- * 'thplNextPageToken'
39+--
40+-- * 'thplKind'
41+--
42+-- * 'thplItems'
43+--
44+-- * 'thplSelfLink'
45+--
46+-- * 'thplId'
47+targetHTTPSProxyList
48+ :: TargetHTTPSProxyList
49+targetHTTPSProxyList =
50+ TargetHTTPSProxyList
51+ { _thplNextPageToken = Nothing
52+ , _thplKind = "compute#targetHttpsProxyList"
53+ , _thplItems = Nothing
54+ , _thplSelfLink = Nothing
55+ , _thplId = Nothing
56+ }
57+
58+-- | [Output Only] A token used to continue a truncated list request.
59+thplNextPageToken :: Lens' TargetHTTPSProxyList (Maybe Text)
60+thplNextPageToken
61+ = lens _thplNextPageToken
62+ (\ s a -> s{_thplNextPageToken = a})
63+
64+-- | Type of resource.
65+thplKind :: Lens' TargetHTTPSProxyList Text
66+thplKind = lens _thplKind (\ s a -> s{_thplKind = a})
67+
68+-- | A list of TargetHttpsProxy resources.
69+thplItems :: Lens' TargetHTTPSProxyList [TargetHTTPSProxy]
70+thplItems
71+ = lens _thplItems (\ s a -> s{_thplItems = a}) .
72+ _Default
73+ . _Coerce
74+
75+-- | [Output Only] Server-defined URL for this resource.
76+thplSelfLink :: Lens' TargetHTTPSProxyList (Maybe Text)
77+thplSelfLink
78+ = lens _thplSelfLink (\ s a -> s{_thplSelfLink = a})
79+
80+-- | [Output Only] Unique identifier for the resource; defined by the server.
81+thplId :: Lens' TargetHTTPSProxyList (Maybe Text)
82+thplId = lens _thplId (\ s a -> s{_thplId = a})
83+
84+instance FromJSON TargetHTTPSProxyList where
85+ parseJSON
86+ = withObject "TargetHTTPSProxyList"
87+ (\ o ->
88+ TargetHTTPSProxyList <$>
89+ (o .:? "nextPageToken") <*>
90+ (o .:? "kind" .!= "compute#targetHttpsProxyList")
91+ <*> (o .:? "items" .!= mempty)
92+ <*> (o .:? "selfLink")
93+ <*> (o .:? "id"))
94+
95+instance ToJSON TargetHTTPSProxyList where
96+ toJSON TargetHTTPSProxyList{..}
97+ = object
98+ (catMaybes
99+ [("nextPageToken" .=) <$> _thplNextPageToken,
100+ Just ("kind" .= _thplKind),
101+ ("items" .=) <$> _thplItems,
102+ ("selfLink" .=) <$> _thplSelfLink,
103+ ("id" .=) <$> _thplId])
104+
23105--
24106-- /See:/ 'addressesScopedList' smart constructor.
25107data AddressesScopedList = AddressesScopedList
@@ -132,7 +214,8 @@ instanceGroupManagersAbandonInstancesRequest =
132214 { _igmairInstances = Nothing
133215 }
134216
135−-- | The names of instances to abandon from the managed instance group.
217+-- | The URL for one or more instances to abandon from the managed instance
218+-- group.
136219igmairInstances :: Lens' InstanceGroupManagersAbandonInstancesRequest [Text]
137220igmairInstances
138221 = lens _igmairInstances
@@ -415,21 +498,21 @@ iglNextPageToken
415498iglKind :: Lens' InstanceGroupList Text
416499iglKind = lens _iglKind (\ s a -> s{_iglKind = a})
417500
418−-- | A list of InstanceGroup resources.
501+-- | A list of instance groups.
419502iglItems :: Lens' InstanceGroupList [InstanceGroup]
420503iglItems
421504 = lens _iglItems (\ s a -> s{_iglItems = a}) .
422505 _Default
423506 . _Coerce
424507
425−-- | [Output Only] The URL for this instance group. The server defines this
508+-- | [Output Only] The URL for this resource type. The server generates this
426509-- URL.
427510iglSelfLink :: Lens' InstanceGroupList (Maybe Text)
428511iglSelfLink
429512 = lens _iglSelfLink (\ s a -> s{_iglSelfLink = a})
430513
431514-- | [Output Only] A unique identifier for this list of instance groups. The
432−-- server defines this identifier.
515+-- server generates this identifier.
433516iglId :: Lens' InstanceGroupList (Maybe Text)
434517iglId = lens _iglId (\ s a -> s{_iglId = a})
435518
@@ -1031,9 +1114,12 @@ instanceGroupsSetNamedPortsRequest =
10311114 , _igsnprNamedPorts = Nothing
10321115 }
10331116
1034−-- | The fingerprint of the named ports information, which is a hash of the
1035−-- contents. Use this field for optimistic locking when you update the
1036−-- named ports entries.
1117+-- | The fingerprint of the named ports information for this instance group.
1118+-- Use this optional property to prevent conflicts when multiple users
1119+-- change the named ports settings concurrently. Obtain the fingerprint
1120+-- with the instanceGroups.get method. Then, include the fingerprint in
1121+-- your request to ensure that you do not overwrite changes that were
1122+-- applied from another concurrent request.
10371123igsnprFingerprint :: Lens' InstanceGroupsSetNamedPortsRequest (Maybe Word8)
10381124igsnprFingerprint
10391125 = lens _igsnprFingerprint
@@ -1282,7 +1368,7 @@ instanceGroupsAddInstancesRequest =
12821368 { _igairInstances = Nothing
12831369 }
12841370
1285−-- | The instances to add to the instance group.
1371+-- | The list of instances to add to the instance group.
12861372igairInstances :: Lens' InstanceGroupsAddInstancesRequest [InstanceReference]
12871373igairInstances
12881374 = lens _igairInstances
@@ -1304,7 +1390,7 @@ instance ToJSON InstanceGroupsAddInstancesRequest
13041390 = object
13051391 (catMaybes [("instances" .=) <$> _igairInstances])
13061392
1307−-- | [Output Only] A list of InstanceGroupManager resources.
1393+-- | [Output Only] A list of managed instance groups.
13081394--
13091395-- /See:/ 'instanceGroupManagerList' smart constructor.
13101396data InstanceGroupManagerList = InstanceGroupManagerList
@@ -1345,27 +1431,26 @@ igmlNextPageToken
13451431 = lens _igmlNextPageToken
13461432 (\ s a -> s{_igmlNextPageToken = a})
13471433
1348−-- | [Output Only] Type of the resource. Always
1349−-- compute#instanceGroupManagerList for a list of managed instance group
1350−-- resources.
1434+-- | [Output Only] The resource type, which is always
1435+-- compute#instanceGroupManagerList for a list of managed instance groups.
13511436igmlKind :: Lens' InstanceGroupManagerList Text
13521437igmlKind = lens _igmlKind (\ s a -> s{_igmlKind = a})
13531438
1354−-- | [Output Only] A list of managed instance group resources.
1439+-- | [Output Only] A list of managed instance groups.
13551440igmlItems :: Lens' InstanceGroupManagerList [InstanceGroupManager]
13561441igmlItems
13571442 = lens _igmlItems (\ s a -> s{_igmlItems = a}) .
13581443 _Default
13591444 . _Coerce
13601445
1361−-- | [Output Only] The URL for this managed instance group. The server
1362−-- defines this URL.
1446+-- | [Output Only] The URL for this resource type. The server generates this
1447+-- URL.
13631448igmlSelfLink :: Lens' InstanceGroupManagerList (Maybe Text)
13641449igmlSelfLink
13651450 = lens _igmlSelfLink (\ s a -> s{_igmlSelfLink = a})
13661451
1367−-- | [Output Only] A unique identifier for this managed instance group. The
1368−-- server defines this identifier.
1452+-- | [Output Only] A unique identifier for this resource type. The server
1453+-- generates this identifier.
13691454igmlId :: Lens' InstanceGroupManagerList (Maybe Text)
13701455igmlId = lens _igmlId (\ s a -> s{_igmlId = a})
13711456
@@ -2172,12 +2257,12 @@ instanceWithNamedPorts =
21722257 , _iwnpInstance = Nothing
21732258 }
21742259
2175−-- | The status of the instance.
2260+-- | [Output Only] The status of the instance.
21762261iwnpStatus :: Lens' InstanceWithNamedPorts (Maybe InstanceWithNamedPortsStatus)
21772262iwnpStatus
21782263 = lens _iwnpStatus (\ s a -> s{_iwnpStatus = a})
21792264
2180−-- | The named ports that belong to this instance group.
2265+-- | [Output Only] The named ports that belong to this instance group.
21812266iwnpNamedPorts :: Lens' InstanceWithNamedPorts [NamedPort]
21822267iwnpNamedPorts
21832268 = lens _iwnpNamedPorts
@@ -2185,7 +2270,7 @@ iwnpNamedPorts
21852270 . _Default
21862271 . _Coerce
21872272
2188−-- | The URL of the instance.
2273+-- | [Output Only] The URL of the instance.
21892274iwnpInstance :: Lens' InstanceWithNamedPorts (Maybe Text)
21902275iwnpInstance
21912276 = lens _iwnpInstance (\ s a -> s{_iwnpInstance = a})
@@ -2275,6 +2360,7 @@ instanceReference =
22752360 { _irInstance = Nothing
22762361 }
22772362
2363+-- | The URL for a specific instance.
22782364irInstance :: Lens' InstanceReference (Maybe Text)
22792365irInstance
22802366 = lens _irInstance (\ s a -> s{_irInstance = a})
@@ -2419,7 +2505,7 @@ instance ToJSON OperationsScopedList where
24192505 [("warning" .=) <$> _oslWarning,
24202506 ("operations" .=) <$> _oslOperations])
24212507
2422−-- | The named port information. For example: .
2508+-- | The named port. For example: .
24232509--
24242510-- /See:/ 'namedPort' smart constructor.
24252511data NamedPort = NamedPort
@@ -2442,7 +2528,8 @@ namedPort =
24422528 , _npPort = Nothing
24432529 }
24442530
2445−-- | The name for this NamedPort.
2531+-- | The name for this named port. The name must be 1-63 characters long, and
2532+-- comply with RFC1035.
24462533npName :: Lens' NamedPort (Maybe Text)
24472534npName = lens _npName (\ s a -> s{_npName = a})
24482535
@@ -2584,27 +2671,27 @@ igmalNextPageToken
25842671 = lens _igmalNextPageToken
25852672 (\ s a -> s{_igmalNextPageToken = a})
25862673
2587−-- | [Output Only] Type of the resource. Always
2674+-- | [Output Only] The resource type, which is always
25882675-- compute#instanceGroupManagerAggregatedList for an aggregated list of
25892676-- managed instance groups.
25902677igmalKind :: Lens' InstanceGroupManagerAggregatedList Text
25912678igmalKind
25922679 = lens _igmalKind (\ s a -> s{_igmalKind = a})
25932680
2594−-- | A map of filtered managed instance group lists.
2681+-- | [Output Only] A map of filtered managed instance group lists.
25952682igmalItems :: Lens' InstanceGroupManagerAggregatedList (Maybe InstanceGroupManagerAggregatedListItems)
25962683igmalItems
25972684 = lens _igmalItems (\ s a -> s{_igmalItems = a})
25982685
2599−-- | [Output Only] The URL for this aggregated list of managed instance
2600−-- groups. The server defines this URL.
2686+-- | [Output Only] The URL for this resource type. The server generates this
2687+-- URL.
26012688igmalSelfLink :: Lens' InstanceGroupManagerAggregatedList (Maybe Text)
26022689igmalSelfLink
26032690 = lens _igmalSelfLink
26042691 (\ s a -> s{_igmalSelfLink = a})
26052692
26062693-- | [Output Only] A unique identifier for this aggregated list of managed
2607−-- instance groups. The server defines this identifier.
2694+-- instance groups. The server generates this identifier.
26082695igmalId :: Lens' InstanceGroupManagerAggregatedList (Maybe Text)
26092696igmalId = lens _igmalId (\ s a -> s{_igmalId = a})
26102697
@@ -2985,7 +3072,7 @@ targetPool =
29853072 }
29863073
29873074-- | Sesssion affinity option, must be one of the following values: NONE:
2988−-- Connections from the same client IP may go to any instance in the pool;
3075+-- Connections from the same client IP may go to any instance in the pool.
29893076-- CLIENT_IP: Connections from the same client IP will go to the same
29903077-- instance in the pool while that instance remains healthy.
29913078-- CLIENT_IP_PROTO: Connections from the same client IP with the same IP
@@ -3166,7 +3253,7 @@ ilNextPageToken
31663253ilKind :: Lens' ImageList Text
31673254ilKind = lens _ilKind (\ s a -> s{_ilKind = a})
31683255
3169−-- | A list of Image resources.
3256+-- | [Output Only] A list of Image resources.
31703257ilItems :: Lens' ImageList [Image]
31713258ilItems
31723259 = lens _ilItems (\ s a -> s{_ilItems = a}) . _Default
@@ -3332,13 +3419,12 @@ frIPAddress :: Lens' ForwardingRule (Maybe Text)
33323419frIPAddress
33333420 = lens _frIPAddress (\ s a -> s{_frIPAddress = a})
33343421
3335−-- | Type of the resource.
3422+-- | [Output Only] Type of the resource. Always compute#forwardingRule.
33363423frKind :: Lens' ForwardingRule Text
33373424frKind = lens _frKind (\ s a -> s{_frKind = a})
33383425
3339−-- | Applicable only when \`IPProtocol\` is TCP, UDP, or SCTP, only packets
3426+-- | Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets
33403427-- addressed to ports in the specified range will be forwarded to target.
3341−-- If portRange is left empty (default value), all ports are forwarded.
33423428-- Forwarding rules with the same \`[IPAddress, IPProtocol]\` pair must
33433429-- have disjoint port ranges.
33443430frPortRange :: Lens' ForwardingRule (Maybe Text)
@@ -3888,7 +3974,7 @@ oStartTime :: Lens' Operation (Maybe Text)
38883974oStartTime
38893975 = lens _oStartTime (\ s a -> s{_oStartTime = a})
38903976
3891−-- | [Output Only] Type of the resource. Always compute#Operation for
3977+-- | [Output Only] Type of the resource. Always compute#operation for
38923978-- Operation resources.
38933979oKind :: Lens' Operation Text
38943980oKind = lens _oKind (\ s a -> s{_oKind = a})
@@ -3960,7 +4046,8 @@ oEndTime = lens _oEndTime (\ s a -> s{_oEndTime = a})
39604046oId :: Lens' Operation (Maybe Word64)
39614047oId = lens _oId (\ s a -> s{_oId = a})
39624048
3963−-- | [Output Only] Type of the operation, such as insert, update, and delete.
4049+-- | [Output Only] Type of the operation, such as insert,
4050+-- compute.instanceGroups.update, or compute.instanceGroups.delete.
39644051oOperationType :: Lens' Operation (Maybe Text)
39654052oOperationType
39664053 = lens _oOperationType
@@ -4580,9 +4667,9 @@ instanceGroupManager =
45804667igmKind :: Lens' InstanceGroupManager Text
45814668igmKind = lens _igmKind (\ s a -> s{_igmKind = a})
45824669
4583−-- | [Output Only] The fingerprint of the target pools information, which is
4584−-- a hash of the contents. This field is used for optimistic locking when
4585−-- updating the target pool entries.
4670+-- | [Output Only] The fingerprint of the target pools information. You can
4671+-- use this optional field for optimistic locking when you update the
4672+-- target pool entries.
45864673igmFingerprint :: Lens' InstanceGroupManager (Maybe Word8)
45874674igmFingerprint
45884675 = lens _igmFingerprint
@@ -4597,7 +4684,7 @@ igmBaseInstanceName
45974684 = lens _igmBaseInstanceName
45984685 (\ s a -> s{_igmBaseInstanceName = a})
45994686
4600−-- | The URL of the zone where the managed instance group is located.
4687+-- | The name of the zone where the managed instance group is located.
46014688igmZone :: Lens' InstanceGroupManager (Maybe Text)
46024689igmZone = lens _igmZone (\ s a -> s{_igmZone = a})
46034690
@@ -4617,13 +4704,15 @@ igmTargetSize
46174704 = lens _igmTargetSize
46184705 (\ s a -> s{_igmTargetSize = a})
46194706
4620−-- | [Output Only] Server-defined URL for this managed instance group.
4707+-- | [Output Only] The URL for this managed instance group. The server
4708+-- defines this URL.
46214709igmSelfLink :: Lens' InstanceGroupManager (Maybe Text)
46224710igmSelfLink
46234711 = lens _igmSelfLink (\ s a -> s{_igmSelfLink = a})
46244712
46254713-- | [Output Only] The list of instance actions and the number of instances
4626−-- in this managed instance group that are scheduled for those actions.
4714+-- in this managed instance group that are scheduled for each of those
4715+-- actions.
46274716igmCurrentActions :: Lens' InstanceGroupManager (Maybe InstanceGroupManagerActionsSummary)
46284717igmCurrentActions
46294718 = lens _igmCurrentActions
@@ -4641,14 +4730,14 @@ igmCreationTimestamp
46414730 = lens _igmCreationTimestamp
46424731 (\ s a -> s{_igmCreationTimestamp = a})
46434732
4644−-- | [Output Only] A unique identifier for this managed instance group. The
4645−-- server defines this identifier.
4733+-- | [Output Only] A unique identifier for this resource type. The server
4734+-- generates this identifier.
46464735igmId :: Lens' InstanceGroupManager (Maybe Word64)
46474736igmId = lens _igmId (\ s a -> s{_igmId = a})
46484737
4649−-- | The URLs of all TargetPool resources to which new instances in the
4650−-- instanceGroup field are added. Updating the target pool values does not
4651−-- affect existing instances.
4738+-- | The URLs for all TargetPool resources to which instances in the
4739+-- instanceGroup field are added. The target pools automatically apply to
4740+-- all of the instances in the managed instance group.
46524741igmTargetPools :: Lens' InstanceGroupManager [Text]
46534742igmTargetPools
46544743 = lens _igmTargetPools
@@ -4662,7 +4751,7 @@ igmDescription
46624751 = lens _igmDescription
46634752 (\ s a -> s{_igmDescription = a})
46644753
4665−-- | [Output Only] The URL of the InstanceGroup resource.
4754+-- | [Output Only] The URL of the Instance Group resource.
46664755igmInstanceGroup :: Lens' InstanceGroupManager (Maybe Text)
46674756igmInstanceGroup
46684757 = lens _igmInstanceGroup
@@ -4725,7 +4814,7 @@ instanceGroupsRemoveInstancesRequest =
47254814 { _igrirInstances = Nothing
47264815 }
47274816
4728−-- | The instances to remove from the instance group.
4817+-- | The list of instances to remove from the instance group.
47294818igrirInstances :: Lens' InstanceGroupsRemoveInstancesRequest [InstanceReference]
47304819igrirInstances
47314820 = lens _igrirInstances
@@ -4887,8 +4976,8 @@ instance ToJSON AutoscalersScopedListWarning where
48874976 ("code" .=) <$> _aslwCode,
48884977 ("message" .=) <$> _aslwMessage])
48894978
4890−-- | Encountered errors during the last attempt to create or delete the
4891−-- instance.
4979+-- | [Output Only] Encountered errors during the last attempt to create or
4980+-- delete the instance.
48924981--
48934982-- /See:/ 'managedInstanceLastAttemptErrors' smart constructor.
48944983newtype ManagedInstanceLastAttemptErrors = ManagedInstanceLastAttemptErrors
@@ -5276,7 +5365,7 @@ instanceGroupManagersListManagedInstancesResponse =
52765365 { _igmlmirManagedInstances = Nothing
52775366 }
52785367
5279−-- | List of managed instances. If empty - all instances are listed.
5368+-- | [Output Only] The list of instances in the managed instance group.
52805369igmlmirManagedInstances :: Lens' InstanceGroupManagersListManagedInstancesResponse [ManagedInstance]
52815370igmlmirManagedInstances
52825371 = lens _igmlmirManagedInstances
@@ -5366,12 +5455,7 @@ ipServiceAccounts
53665455 . _Default
53675456 . _Coerce
53685457
5369−-- | An array of network access configurations for this interface. This
5370−-- specifies how this interface is configured to interact with other
5371−-- network services, such as connecting to the internet. Currently,
5372−-- ONE_TO_ONE_NAT is the only supported access configuration. If you do not
5373−-- specify any access configurations, the instances that are created from
5374−-- this template will have no external internet access.
5458+-- | An array of network access configurations for this interface.
53755459ipNetworkInterfaces :: Lens' InstanceProperties [NetworkInterface]
53765460ipNetworkInterfaces
53775461 = lens _ipNetworkInterfaces
@@ -5393,7 +5477,7 @@ ipMetadata :: Lens' InstanceProperties (Maybe Metadata)
53935477ipMetadata
53945478 = lens _ipMetadata (\ s a -> s{_ipMetadata = a})
53955479
5396−-- | A list of scheduling options for the instances that are created from
5480+-- | Specifies the scheduling options for the instances that are created from
53975481-- this template.
53985482ipScheduling :: Lens' InstanceProperties (Maybe Scheduling)
53995483ipScheduling
@@ -5406,11 +5490,12 @@ ipDisks
54065490 = lens _ipDisks (\ s a -> s{_ipDisks = a}) . _Default
54075491 . _Coerce
54085492
5409−-- | A boolean that specifies if instances created from this template can
5410−-- send packets with source IP addresses other than their own or receive
5411−-- packets with destination IP addresses other than their own. If you use
5412−-- these instances as an IP gateway or as the next-hop in a Route resource,
5413−-- specify true. Otherwise, specify false.
5493+-- | Enables instances created based on this template to send packets with
5494+-- source IP addresses other than their own and receive packets with
5495+-- destination IP addresses other than their own. If these instances will
5496+-- be used as an IP gateway or it will be set as the next-hop in a Route
5497+-- resource, specify true. If unsure, leave this set to false. See the
5498+-- canIpForward documentation for more information.
54145499ipCanIPForward :: Lens' InstanceProperties (Maybe Bool)
54155500ipCanIPForward
54165501 = lens _ipCanIPForward
@@ -5830,7 +5915,7 @@ itlNextPageToken
58305915itlKind :: Lens' InstanceTemplateList Text
58315916itlKind = lens _itlKind (\ s a -> s{_itlKind = a})
58325917
5833−-- | A list of InstanceTemplate resources.
5918+-- | [Output Only] list of InstanceTemplate resources.
58345919itlItems :: Lens' InstanceTemplateList [InstanceTemplate]
58355920itlItems
58365921 = lens _itlItems (\ s a -> s{_itlItems = a}) .
@@ -6032,6 +6117,88 @@ instance ToJSON TargetVPNGatewayList where
60326117 ("selfLink" .=) <$> _tvglSelfLink,
60336118 ("id" .=) <$> _tvglId])
60346119
6120+-- | Contains a list of SslCertificate resources.
6121+--
6122+-- /See:/ 'sslCertificateList' smart constructor.
6123+data SSLCertificateList = SSLCertificateList
6124+ { _sclNextPageToken :: !(Maybe Text)
6125+ , _sclKind :: !Text
6126+ , _sclItems :: !(Maybe [SSLCertificate])
6127+ , _sclSelfLink :: !(Maybe Text)
6128+ , _sclId :: !(Maybe Text)
6129+ } deriving (Eq,Show,Data,Typeable,Generic)
6130+
6131+-- | Creates a value of 'SSLCertificateList' with the minimum fields required to make a request.
6132+--
6133+-- Use one of the following lenses to modify other fields as desired:
6134+--
6135+-- * 'sclNextPageToken'
6136+--
6137+-- * 'sclKind'
6138+--
6139+-- * 'sclItems'
6140+--
6141+-- * 'sclSelfLink'
6142+--
6143+-- * 'sclId'
6144+sslCertificateList
6145+ :: SSLCertificateList
6146+sslCertificateList =
6147+ SSLCertificateList
6148+ { _sclNextPageToken = Nothing
6149+ , _sclKind = "compute#sslCertificateList"
6150+ , _sclItems = Nothing
6151+ , _sclSelfLink = Nothing
6152+ , _sclId = Nothing
6153+ }
6154+
6155+-- | [Output Only] A token used to continue a truncated list request.
6156+sclNextPageToken :: Lens' SSLCertificateList (Maybe Text)
6157+sclNextPageToken
6158+ = lens _sclNextPageToken
6159+ (\ s a -> s{_sclNextPageToken = a})
6160+
6161+-- | Type of resource.
6162+sclKind :: Lens' SSLCertificateList Text
6163+sclKind = lens _sclKind (\ s a -> s{_sclKind = a})
6164+
6165+-- | A list of SslCertificate resources.
6166+sclItems :: Lens' SSLCertificateList [SSLCertificate]
6167+sclItems
6168+ = lens _sclItems (\ s a -> s{_sclItems = a}) .
6169+ _Default
6170+ . _Coerce
6171+
6172+-- | [Output Only] Server-defined URL for this resource.
6173+sclSelfLink :: Lens' SSLCertificateList (Maybe Text)
6174+sclSelfLink
6175+ = lens _sclSelfLink (\ s a -> s{_sclSelfLink = a})
6176+
6177+-- | [Output Only] Unique identifier for the resource. Defined by the server.
6178+sclId :: Lens' SSLCertificateList (Maybe Text)
6179+sclId = lens _sclId (\ s a -> s{_sclId = a})
6180+
6181+instance FromJSON SSLCertificateList where
6182+ parseJSON
6183+ = withObject "SSLCertificateList"
6184+ (\ o ->
6185+ SSLCertificateList <$>
6186+ (o .:? "nextPageToken") <*>
6187+ (o .:? "kind" .!= "compute#sslCertificateList")
6188+ <*> (o .:? "items" .!= mempty)
6189+ <*> (o .:? "selfLink")
6190+ <*> (o .:? "id"))
6191+
6192+instance ToJSON SSLCertificateList where
6193+ toJSON SSLCertificateList{..}
6194+ = object
6195+ (catMaybes
6196+ [("nextPageToken" .=) <$> _sclNextPageToken,
6197+ Just ("kind" .= _sclKind),
6198+ ("items" .=) <$> _sclItems,
6199+ ("selfLink" .=) <$> _sclSelfLink,
6200+ ("id" .=) <$> _sclId])
6201+
60356202--
60366203-- /See:/ 'firewallAllowedItem' smart constructor.
60376204data FirewallAllowedItem = FirewallAllowedItem
@@ -6707,7 +6874,7 @@ instanceGroupManagersRecreateInstancesRequest =
67076874 { _igmrirInstances = Nothing
67086875 }
67096876
6710−-- | The names of one or more instances to recreate.
6877+-- | The URL for one or more instances to recreate.
67116878igmrirInstances :: Lens' InstanceGroupManagersRecreateInstancesRequest [Text]
67126879igmrirInstances
67136880 = lens _igmrirInstances
@@ -6903,14 +7070,14 @@ igalItems :: Lens' InstanceGroupAggregatedList (Maybe InstanceGroupAggregatedLis
69037070igalItems
69047071 = lens _igalItems (\ s a -> s{_igalItems = a})
69057072
6906−-- | [Output Only] A unique identifier for this aggregated list of instance
6907−-- groups. The server defines this identifier.
7073+-- | [Output Only] The URL for this resource type. The server generates this
7074+-- URL.
69087075igalSelfLink :: Lens' InstanceGroupAggregatedList (Maybe Text)
69097076igalSelfLink
69107077 = lens _igalSelfLink (\ s a -> s{_igalSelfLink = a})
69117078
69127079-- | [Output Only] A unique identifier for this aggregated list of instance
6913−-- groups. The server defines this identifier.
7080+-- groups. The server generates this identifier.
69147081igalId :: Lens' InstanceGroupAggregatedList (Maybe Text)
69157082igalId = lens _igalId (\ s a -> s{_igalId = a})
69167083
@@ -7221,6 +7388,51 @@ instance ToJSON
72217388 [("value" .=) <$> _tvgslwdiValue,
72227389 ("key" .=) <$> _tvgslwdiKey])
72237390
7391+--
7392+-- /See:/ 'targetHTTPSProxiesSetSSLCertificatesRequest' smart constructor.
7393+newtype TargetHTTPSProxiesSetSSLCertificatesRequest = TargetHTTPSProxiesSetSSLCertificatesRequest
7394+ { _thpsscrSSLCertificates :: Maybe [Text]
7395+ } deriving (Eq,Show,Data,Typeable,Generic)
7396+
7397+-- | Creates a value of 'TargetHTTPSProxiesSetSSLCertificatesRequest' with the minimum fields required to make a request.
7398+--
7399+-- Use one of the following lenses to modify other fields as desired:
7400+--
7401+-- * 'thpsscrSSLCertificates'
7402+targetHTTPSProxiesSetSSLCertificatesRequest
7403+ :: TargetHTTPSProxiesSetSSLCertificatesRequest
7404+targetHTTPSProxiesSetSSLCertificatesRequest =
7405+ TargetHTTPSProxiesSetSSLCertificatesRequest
7406+ { _thpsscrSSLCertificates = Nothing
7407+ }
7408+
7409+-- | New set of URLs to SslCertificate resources to associate with this
7410+-- TargetHttpProxy. Currently exactly one ssl certificate must be
7411+-- specified.
7412+thpsscrSSLCertificates :: Lens' TargetHTTPSProxiesSetSSLCertificatesRequest [Text]
7413+thpsscrSSLCertificates
7414+ = lens _thpsscrSSLCertificates
7415+ (\ s a -> s{_thpsscrSSLCertificates = a})
7416+ . _Default
7417+ . _Coerce
7418+
7419+instance FromJSON
7420+ TargetHTTPSProxiesSetSSLCertificatesRequest where
7421+ parseJSON
7422+ = withObject
7423+ "TargetHTTPSProxiesSetSSLCertificatesRequest"
7424+ (\ o ->
7425+ TargetHTTPSProxiesSetSSLCertificatesRequest <$>
7426+ (o .:? "sslCertificates" .!= mempty))
7427+
7428+instance ToJSON
7429+ TargetHTTPSProxiesSetSSLCertificatesRequest where
7430+ toJSON
7431+ TargetHTTPSProxiesSetSSLCertificatesRequest{..}
7432+ = object
7433+ (catMaybes
7434+ [("sslCertificates" .=) <$> _thpsscrSSLCertificates])
7435+
72247436-- | An Instance Template resource.
72257437--
72267438-- /See:/ 'instanceTemplate' smart constructor.
@@ -7275,8 +7487,13 @@ itSelfLink :: Lens' InstanceTemplate (Maybe Text)
72757487itSelfLink
72767488 = lens _itSelfLink (\ s a -> s{_itSelfLink = a})
72777489
7278−-- | The name of the instance template. The name must be 1-63 characters
7279−-- long, and comply with RFC1035.
7490+-- | Name of the resource; provided by the client when the resource is
7491+-- created. The name must be 1-63 characters long, and comply with RFC1035.
7492+-- Specifically, the name must be 1-63 characters long and match the
7493+-- regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
7494+-- character must be a lowercase letter, and all following characters must
7495+-- be a dash, lowercase letter, or digit, except the last character, which
7496+-- cannot be a dash.
72807497itName :: Lens' InstanceTemplate (Maybe Text)
72817498itName = lens _itName (\ s a -> s{_itName = a})
72827499
@@ -7298,7 +7515,7 @@ itDescription
72987515 = lens _itDescription
72997516 (\ s a -> s{_itDescription = a})
73007517
7301−-- | The instance properties for the instance template resource.
7518+-- | The instance properties for this instance template.
73027519itProperties :: Lens' InstanceTemplate (Maybe InstanceProperties)
73037520itProperties
73047521 = lens _itProperties (\ s a -> s{_itProperties = a})
@@ -7590,6 +7807,133 @@ instance ToJSON URLMapsValidateResponse where
75907807 toJSON URLMapsValidateResponse{..}
75917808 = object (catMaybes [("result" .=) <$> _umvrResult])
75927809
7810+-- | An SslCertificate resource. This resource provides a mechanism to upload
7811+-- an SSL key and certificate to global HTTPS loadbalancer to serve secure
7812+-- connections.
7813+--
7814+-- /See:/ 'sslCertificate' smart constructor.
7815+data SSLCertificate = SSLCertificate
7816+ { _scPrivateKey :: !(Maybe Text)
7817+ , _scKind :: !Text
7818+ , _scSelfLink :: !(Maybe Text)
7819+ , _scName :: !(Maybe Text)
7820+ , _scCreationTimestamp :: !(Maybe Text)
7821+ , _scId :: !(Maybe Word64)
7822+ , _scCertificate :: !(Maybe Text)
7823+ , _scDescription :: !(Maybe Text)
7824+ } deriving (Eq,Show,Data,Typeable,Generic)
7825+
7826+-- | Creates a value of 'SSLCertificate' with the minimum fields required to make a request.
7827+--
7828+-- Use one of the following lenses to modify other fields as desired:
7829+--
7830+-- * 'scPrivateKey'
7831+--
7832+-- * 'scKind'
7833+--
7834+-- * 'scSelfLink'
7835+--
7836+-- * 'scName'
7837+--
7838+-- * 'scCreationTimestamp'
7839+--
7840+-- * 'scId'
7841+--
7842+-- * 'scCertificate'
7843+--
7844+-- * 'scDescription'
7845+sslCertificate
7846+ :: SSLCertificate
7847+sslCertificate =
7848+ SSLCertificate
7849+ { _scPrivateKey = Nothing
7850+ , _scKind = "compute#sslCertificate"
7851+ , _scSelfLink = Nothing
7852+ , _scName = Nothing
7853+ , _scCreationTimestamp = Nothing
7854+ , _scId = Nothing
7855+ , _scCertificate = Nothing
7856+ , _scDescription = Nothing
7857+ }
7858+
7859+-- | A write-only private key in PEM format. Only insert RPCs will include
7860+-- this field.
7861+scPrivateKey :: Lens' SSLCertificate (Maybe Text)
7862+scPrivateKey
7863+ = lens _scPrivateKey (\ s a -> s{_scPrivateKey = a})
7864+
7865+-- | [Output Only] Type of the resource. Always compute#sslCertificate for
7866+-- SSL certificates.
7867+scKind :: Lens' SSLCertificate Text
7868+scKind = lens _scKind (\ s a -> s{_scKind = a})
7869+
7870+-- | [Output only] Server-defined URL for the resource.
7871+scSelfLink :: Lens' SSLCertificate (Maybe Text)
7872+scSelfLink
7873+ = lens _scSelfLink (\ s a -> s{_scSelfLink = a})
7874+
7875+-- | Name of the resource. Provided by the client when the resource is
7876+-- created. The name must be 1-63 characters long, and comply with RFC1035.
7877+-- Specifically, the name must be 1-63 characters long and match the
7878+-- regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
7879+-- character must be a lowercase letter, and all following characters must
7880+-- be a dash, lowercase letter, or digit, except the last character, which
7881+-- cannot be a dash.
7882+scName :: Lens' SSLCertificate (Maybe Text)
7883+scName = lens _scName (\ s a -> s{_scName = a})
7884+
7885+-- | [Output Only] Creation timestamp in RFC3339 text format.
7886+scCreationTimestamp :: Lens' SSLCertificate (Maybe Text)
7887+scCreationTimestamp
7888+ = lens _scCreationTimestamp
7889+ (\ s a -> s{_scCreationTimestamp = a})
7890+
7891+-- | [Output Only] Unique identifier for the resource. Defined by the server.
7892+scId :: Lens' SSLCertificate (Maybe Word64)
7893+scId = lens _scId (\ s a -> s{_scId = a})
7894+
7895+-- | A local certificate file. The certificate must be in PEM format. The
7896+-- certificate chain must be no greater than 5 certs long. The chain must
7897+-- include at least one intermediate cert.
7898+scCertificate :: Lens' SSLCertificate (Maybe Text)
7899+scCertificate
7900+ = lens _scCertificate
7901+ (\ s a -> s{_scCertificate = a})
7902+
7903+-- | An optional textual description of the resource. Provided by the client
7904+-- when the resource is created.
7905+scDescription :: Lens' SSLCertificate (Maybe Text)
7906+scDescription
7907+ = lens _scDescription
7908+ (\ s a -> s{_scDescription = a})
7909+
7910+instance FromJSON SSLCertificate where
7911+ parseJSON
7912+ = withObject "SSLCertificate"
7913+ (\ o ->
7914+ SSLCertificate <$>
7915+ (o .:? "privateKey") <*>
7916+ (o .:? "kind" .!= "compute#sslCertificate")
7917+ <*> (o .:? "selfLink")
7918+ <*> (o .:? "name")
7919+ <*> (o .:? "creationTimestamp")
7920+ <*> (o .:? "id")
7921+ <*> (o .:? "certificate")
7922+ <*> (o .:? "description"))
7923+
7924+instance ToJSON SSLCertificate where
7925+ toJSON SSLCertificate{..}
7926+ = object
7927+ (catMaybes
7928+ [("privateKey" .=) <$> _scPrivateKey,
7929+ Just ("kind" .= _scKind),
7930+ ("selfLink" .=) <$> _scSelfLink,
7931+ ("name" .=) <$> _scName,
7932+ ("creationTimestamp" .=) <$> _scCreationTimestamp,
7933+ ("id" .=) <$> _scId,
7934+ ("certificate" .=) <$> _scCertificate,
7935+ ("description" .=) <$> _scDescription])
7936+
75937937--
75947938-- /See:/ 'urlMapReference' smart constructor.
75957939newtype URLMapReference = URLMapReference
@@ -7868,31 +8212,46 @@ managedInstance =
78688212 , _miInstance = Nothing
78698213 }
78708214
7871−-- | Information about the last attempt to create or delete the instance.
8215+-- | [Output Only] Information about the last attempt to create or delete the
8216+-- instance.
78728217miLastAttempt :: Lens' ManagedInstance (Maybe ManagedInstanceLastAttempt)
78738218miLastAttempt
78748219 = lens _miLastAttempt
78758220 (\ s a -> s{_miLastAttempt = a})
78768221
7877−-- | The current action that the managed instance group has scheduled for the
7878−-- instance.
8222+-- | [Output Only] The current action that the managed instance group has
8223+-- scheduled for the instance. Possible values: - NONE The instance is
8224+-- running, and the managed instance group does not have any scheduled
8225+-- actions for this instance. - CREATING The managed instance group is
8226+-- creating this instance. - RECREATING The managed instance group is
8227+-- recreating this instance. - DELETING The managed instance group is
8228+-- permanently deleting this instance. - ABANDONING The managed instance
8229+-- group is abandoning this instance. The instance will be removed from the
8230+-- instance group and from any target pools that are associated with this
8231+-- group. - RESTARTING The managed instance group is restarting the
8232+-- instance. - REFRESHING The managed instance group is applying
8233+-- configuration changes to the instance without stopping it. For example,
8234+-- the group can update the target pool list for an instance without
8235+-- stopping that instance.
78798236miCurrentAction :: Lens' ManagedInstance (Maybe ManagedInstanceCurrentAction)
78808237miCurrentAction
78818238 = lens _miCurrentAction
78828239 (\ s a -> s{_miCurrentAction = a})
78838240
7884−-- | The unique identifier for this resource (empty when instance does not
7885−-- exist).
8241+-- | [Output only] The unique identifier for this resource. This field is
8242+-- empty when instance does not exist.
78868243miId :: Lens' ManagedInstance (Maybe Word64)
78878244miId = lens _miId (\ s a -> s{_miId = a})
78888245
7889−-- | The status of the instance (empty when instance does not exist).
8246+-- | [Output Only] The status of the instance. This field is empty when the
8247+-- instance does not exist.
78908248miInstanceStatus :: Lens' ManagedInstance (Maybe ManagedInstanceInstanceStatus)
78918249miInstanceStatus
78928250 = lens _miInstanceStatus
78938251 (\ s a -> s{_miInstanceStatus = a})
78948252
7895−-- | The URL of the instance (set even though instance does not exist yet).
8253+-- | [Output Only] The URL of the instance. The URL can exist even if the
8254+-- instance has not yet been created.
78968255miInstance :: Lens' ManagedInstance (Maybe Text)
78978256miInstance
78988257 = lens _miInstance (\ s a -> s{_miInstance = a})
@@ -7917,7 +8276,7 @@ instance ToJSON ManagedInstance where
79178276 ("instanceStatus" .=) <$> _miInstanceStatus,
79188277 ("instance" .=) <$> _miInstance])
79198278
7920−-- | A map of filtered managed instance group lists.
8279+-- | [Output Only] A map of filtered managed instance group lists.
79218280--
79228281-- /See:/ 'instanceGroupManagerAggregatedListItems' smart constructor.
79238282newtype InstanceGroupManagerAggregatedListItems = InstanceGroupManagerAggregatedListItems
@@ -7937,7 +8296,8 @@ instanceGroupManagerAggregatedListItems pIgmaliAddtional_ =
79378296 { _igmaliAddtional = pIgmaliAddtional_
79388297 }
79398298
7940−-- | The name of the scope that contains this set of managed instance groups.
8299+-- | [Output Only] The name of the scope that contains this set of managed
8300+-- instance groups.
79418301igmaliAddtional :: Lens' InstanceGroupManagerAggregatedListItems (HashMap Text InstanceGroupManagersScopedList)
79428302igmaliAddtional
79438303 = lens _igmaliAddtional
@@ -7974,7 +8334,8 @@ instanceGroupManagersDeleteInstancesRequest =
79748334 { _igmdirInstances = Nothing
79758335 }
79768336
7977−-- | The names of one or more instances to delete.
8337+-- | The list of instances to delete from this managed instance group.
8338+-- Specify one or more instance URLs.
79788339igmdirInstances :: Lens' InstanceGroupManagersDeleteInstancesRequest [Text]
79798340igmdirInstances
79808341 = lens _igmdirInstances
@@ -8395,7 +8756,7 @@ igmasRestarting
83958756 (\ s a -> s{_igmasRestarting = a})
83968757
83978758-- | [Output Only] The number of instances in the managed instance group that
8398−-- currently have no scheduled actions.
8759+-- are running and have no scheduled actions.
83998760igmasNone :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
84008761igmasNone
84018762 = lens _igmasNone (\ s a -> s{_igmasNone = a})
@@ -8426,9 +8787,9 @@ igmasRecreating
84268787 = lens _igmasRecreating
84278788 (\ s a -> s{_igmasRecreating = a})
84288789
8429−-- | [Output Only] Total number of instances in the managed instance group
8430−-- that are scheduled to be abandoned. Abandoning an instance removes it
8431−-- from the managed instance group without deleting it.
8790+-- | [Output Only] The total number of instances in the managed instance
8791+-- group that are scheduled to be abandoned. Abandoning an instance removes
8792+-- it from the managed instance group without deleting it.
84328793igmasAbandoning :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
84338794igmasAbandoning
84348795 = lens _igmasAbandoning
@@ -9015,6 +9376,9 @@ adDeviceName :: Lens' AttachedDisk (Maybe Text)
90159376adDeviceName
90169377 = lens _adDeviceName (\ s a -> s{_adDeviceName = a})
90179378
9379+-- | Specifies the disk interface to use for attaching this disk, either SCSI
9380+-- or NVME. The default is SCSI. For performance characteristics of SCSI
9381+-- over NVMe, see Local SSD performance.
90189382adInterface :: Lens' AttachedDisk (Maybe AttachedDiskInterface)
90199383adInterface
90209384 = lens _adInterface (\ s a -> s{_adInterface = a})
@@ -10751,7 +11115,7 @@ thttppURLMap :: Lens' TargetHTTPProxy (Maybe Text)
1075111115thttppURLMap
1075211116 = lens _thttppURLMap (\ s a -> s{_thttppURLMap = a})
1075311117
10754−-- | [Output Only] Type of resource. Always compute#Operation for Operation
11118+-- | [Output Only] Type of resource. Always compute#operation for Operation
1075511119-- resources.
1075611120thttppKind :: Lens' TargetHTTPProxy Text
1075711121thttppKind
@@ -11197,8 +11561,8 @@ igliNextPageToken
1119711561igliKind :: Lens' InstanceGroupsListInstances Text
1119811562igliKind = lens _igliKind (\ s a -> s{_igliKind = a})
1119911563
11200−-- | A list of InstanceWithNamedPorts resources, which contains all named
11201−-- ports for the given instance.
11564+-- | [Output Only] A list of instances and any named ports that are assigned
11565+-- to those instances.
1120211566igliItems :: Lens' InstanceGroupsListInstances [InstanceWithNamedPorts]
1120311567igliItems
1120411568 = lens _igliItems (\ s a -> s{_igliItems = a}) .
@@ -11206,13 +11570,13 @@ igliItems
1120611570 . _Coerce
1120711571
1120811572-- | [Output Only] The URL for this list of instance groups. The server
11209−-- defines this URL.
11573+-- generates this URL.
1121011574igliSelfLink :: Lens' InstanceGroupsListInstances (Maybe Text)
1121111575igliSelfLink
1121211576 = lens _igliSelfLink (\ s a -> s{_igliSelfLink = a})
1121311577
1121411578-- | [Output Only] A unique identifier for this list of instance groups. The
11215−-- server defines this identifier.
11579+-- server generates this identifier.
1121611580igliId :: Lens' InstanceGroupsListInstances (Maybe Text)
1121711581igliId = lens _igliId (\ s a -> s{_igliId = a})
1121811582
@@ -12363,20 +12727,21 @@ instanceGroupManagersSetTargetPoolsRequest =
1236312727 , _igmstprTargetPools = Nothing
1236412728 }
1236512729
12366−-- | The fingerprint of the target pools information, which is a hash of the
12367−-- contents. This field is used for optimistic locking when updating the
12368−-- target pool entries.
12730+-- | The fingerprint of the target pools information. Use this optional
12731+-- property to prevent conflicts when multiple users change the target
12732+-- pools settings concurrently. Obtain the fingerprint with the
12733+-- instanceGroupManagers.get method. Then, include the fingerprint in your
12734+-- request to ensure that you do not overwrite changes that were applied
12735+-- from another concurrent request.
1236912736igmstprFingerprint :: Lens' InstanceGroupManagersSetTargetPoolsRequest (Maybe Word8)
1237012737igmstprFingerprint
1237112738 = lens _igmstprFingerprint
1237212739 (\ s a -> s{_igmstprFingerprint = a})
1237312740
1237412741-- | The list of target pool URLs that instances in this managed instance
12375−-- group belong to. When the managed instance group creates new instances,
12376−-- the group automatically adds those instances to the target pools that
12377−-- are specified in this parameter. Changing the value of this parameter
12378−-- does not change the target pools of existing instances in this managed
12379−-- instance group.
12742+-- group belong to. The managed instance group applies these target pools
12743+-- to all of the instances in the group. Existing instances and new
12744+-- instances in the group all receive these target pool settings.
1238012745igmstprTargetPools :: Lens' InstanceGroupManagersSetTargetPoolsRequest [Text]
1238112746igmstprTargetPools
1238212747 = lens _igmstprTargetPools
@@ -12402,6 +12767,88 @@ instance ToJSON
1240212767 [("fingerprint" .=) <$> _igmstprFingerprint,
1240312768 ("targetPools" .=) <$> _igmstprTargetPools])
1240412769
12770+-- | Contains a list of HttpsHealthCheck resources.
12771+--
12772+-- /See:/ 'httpsHealthCheckList' smart constructor.
12773+data HTTPSHealthCheckList = HTTPSHealthCheckList
12774+ { _hhclNextPageToken :: !(Maybe Text)
12775+ , _hhclKind :: !Text
12776+ , _hhclItems :: !(Maybe [HTTPSHealthCheck])
12777+ , _hhclSelfLink :: !(Maybe Text)
12778+ , _hhclId :: !(Maybe Text)
12779+ } deriving (Eq,Show,Data,Typeable,Generic)
12780+
12781+-- | Creates a value of 'HTTPSHealthCheckList' with the minimum fields required to make a request.
12782+--
12783+-- Use one of the following lenses to modify other fields as desired:
12784+--
12785+-- * 'hhclNextPageToken'
12786+--
12787+-- * 'hhclKind'
12788+--
12789+-- * 'hhclItems'
12790+--
12791+-- * 'hhclSelfLink'
12792+--
12793+-- * 'hhclId'
12794+httpsHealthCheckList
12795+ :: HTTPSHealthCheckList
12796+httpsHealthCheckList =
12797+ HTTPSHealthCheckList
12798+ { _hhclNextPageToken = Nothing
12799+ , _hhclKind = "compute#httpsHealthCheckList"
12800+ , _hhclItems = Nothing
12801+ , _hhclSelfLink = Nothing
12802+ , _hhclId = Nothing
12803+ }
12804+
12805+-- | [Output Only] A token used to continue a truncated list request.
12806+hhclNextPageToken :: Lens' HTTPSHealthCheckList (Maybe Text)
12807+hhclNextPageToken
12808+ = lens _hhclNextPageToken
12809+ (\ s a -> s{_hhclNextPageToken = a})
12810+
12811+-- | Type of resource.
12812+hhclKind :: Lens' HTTPSHealthCheckList Text
12813+hhclKind = lens _hhclKind (\ s a -> s{_hhclKind = a})
12814+
12815+-- | A list of HttpsHealthCheck resources.
12816+hhclItems :: Lens' HTTPSHealthCheckList [HTTPSHealthCheck]
12817+hhclItems
12818+ = lens _hhclItems (\ s a -> s{_hhclItems = a}) .
12819+ _Default
12820+ . _Coerce
12821+
12822+-- | [Output Only] Server-defined URL for this resource.
12823+hhclSelfLink :: Lens' HTTPSHealthCheckList (Maybe Text)
12824+hhclSelfLink
12825+ = lens _hhclSelfLink (\ s a -> s{_hhclSelfLink = a})
12826+
12827+-- | [Output Only] Unique identifier for the resource; defined by the server.
12828+hhclId :: Lens' HTTPSHealthCheckList (Maybe Text)
12829+hhclId = lens _hhclId (\ s a -> s{_hhclId = a})
12830+
12831+instance FromJSON HTTPSHealthCheckList where
12832+ parseJSON
12833+ = withObject "HTTPSHealthCheckList"
12834+ (\ o ->
12835+ HTTPSHealthCheckList <$>
12836+ (o .:? "nextPageToken") <*>
12837+ (o .:? "kind" .!= "compute#httpsHealthCheckList")
12838+ <*> (o .:? "items" .!= mempty)
12839+ <*> (o .:? "selfLink")
12840+ <*> (o .:? "id"))
12841+
12842+instance ToJSON HTTPSHealthCheckList where
12843+ toJSON HTTPSHealthCheckList{..}
12844+ = object
12845+ (catMaybes
12846+ [("nextPageToken" .=) <$> _hhclNextPageToken,
12847+ Just ("kind" .= _hhclKind),
12848+ ("items" .=) <$> _hhclItems,
12849+ ("selfLink" .=) <$> _hhclSelfLink,
12850+ ("id" .=) <$> _hhclId])
12851+
1240512852--
1240612853-- /See:/ 'operationErrorErrorsItem' smart constructor.
1240712854data OperationErrorErrorsItem = OperationErrorErrorsItem
@@ -12683,8 +13130,8 @@ managedInstanceLastAttempt =
1268313130 { _milaErrors = Nothing
1268413131 }
1268513132
12686−-- | Encountered errors during the last attempt to create or delete the
12687−-- instance.
13133+-- | [Output Only] Encountered errors during the last attempt to create or
13134+-- delete the instance.
1268813135milaErrors :: Lens' ManagedInstanceLastAttempt (Maybe ManagedInstanceLastAttemptErrors)
1268913136milaErrors
1269013137 = lens _milaErrors (\ s a -> s{_milaErrors = a})
@@ -13176,9 +13623,9 @@ hostRule =
1317613623 , _hrPathMatcher = Nothing
1317713624 }
1317813625
13179−-- | The list of host patterns to match. They must be valid hostnames except
13180−-- that they may start with *. or *-. The * acts like a glob and will match
13181−-- any string of atoms (separated by .s and -s) to the left.
13626+-- | The list of host patterns to match. They must be valid hostnames, except
13627+-- * will match any string of ([a-z0-9-.]*). In that case, * must be the
13628+-- first character and must be followed in the pattern by either - or ..
1318213629hrHosts :: Lens' HostRule [Text]
1318313630hrHosts
1318413631 = lens _hrHosts (\ s a -> s{_hrHosts = a}) . _Default
@@ -13190,8 +13637,8 @@ hrDescription
1319013637 = lens _hrDescription
1319113638 (\ s a -> s{_hrDescription = a})
1319213639
13193−-- | The name of the PathMatcher to match the path portion of the URL, if the
13194−-- this hostRule matches the URL\'s host portion.
13640+-- | The name of the PathMatcher to use to match the path portion of the URL
13641+-- if the hostRule matches the URL\'s host portion.
1319513642hrPathMatcher :: Lens' HostRule (Maybe Text)
1319613643hrPathMatcher
1319713644 = lens _hrPathMatcher
@@ -13334,25 +13781,25 @@ ig1Size = lens _ig1Size (\ s a -> s{_ig1Size = a})
1333413781ig1Kind :: Lens' InstanceGroup Text
1333513782ig1Kind = lens _ig1Kind (\ s a -> s{_ig1Kind = a})
1333613783
13337−-- | [Output Only] The fingerprint of the named ports information. The system
13338−-- uses this fingerprint to detect conflicts when multiple users change the
13339−-- named ports information concurrently.
13784+-- | [Output Only] The fingerprint of the named ports. The system uses this
13785+-- fingerprint to detect conflicts when multiple users change the named
13786+-- ports concurrently.
1334013787ig1Fingerprint :: Lens' InstanceGroup (Maybe Word8)
1334113788ig1Fingerprint
1334213789 = lens _ig1Fingerprint
1334313790 (\ s a -> s{_ig1Fingerprint = a})
1334413791
13345−-- | The URL of the network to which all instances in the instance group
13346−-- belong.
13792+-- | [Output Only] The URL of the network to which all instances in the
13793+-- instance group belong.
1334713794ig1Network :: Lens' InstanceGroup (Maybe Text)
1334813795ig1Network
1334913796 = lens _ig1Network (\ s a -> s{_ig1Network = a})
1335013797
13351−-- | The URL of the zone where the instance group is located.
13798+-- | [Output Only] The URL of the zone where the instance group is located.
1335213799ig1Zone :: Lens' InstanceGroup (Maybe Text)
1335313800ig1Zone = lens _ig1Zone (\ s a -> s{_ig1Zone = a})
1335413801
13355−-- | [Output Only] The URL for this instance group. The server defines this
13802+-- | [Output Only] The URL for this instance group. The server generates this
1335613803-- URL.
1335713804ig1SelfLink :: Lens' InstanceGroup (Maybe Text)
1335813805ig1SelfLink
@@ -13370,8 +13817,8 @@ ig1CreationTimestamp
1337013817 = lens _ig1CreationTimestamp
1337113818 (\ s a -> s{_ig1CreationTimestamp = a})
1337213819
13373−-- | [Output Only] A unique identifier for this instance group. The server
13374−-- defines this identifier.
13820+-- | [Output Only] A unique identifier for this resource type. The server
13821+-- generates this identifier.
1337513822ig1Id :: Lens' InstanceGroup (Maybe Word64)
1337613823ig1Id = lens _ig1Id (\ s a -> s{_ig1Id = a})
1337713824
@@ -13381,10 +13828,10 @@ ig1Description
1338113828 = lens _ig1Description
1338213829 (\ s a -> s{_ig1Description = a})
1338313830
13384−-- | Assigns a name to a port number. For example: {name: ?http?, port: 80}
13831+-- | Assigns a name to a port number. For example: {name: \"http\", port: 80}
1338513832-- This allows the system to reference ports by the assigned name instead
1338613833-- of a port number. Named ports can also contain multiple ports. For
13387−-- example: [{name: ?http?, port: 80},{name: \"http\", port: 8080}] Named
13834+-- example: [{name: \"http\", port: 80},{name: \"http\", port: 8080}] Named
1338813835-- ports apply to all instances in this instance group.
1338913836ig1NamedPorts :: Lens' InstanceGroup [NamedPort]
1339013837ig1NamedPorts
@@ -13762,6 +14209,132 @@ instance ToJSON MetadataItemsItem where
1376214209 (catMaybes
1376314210 [("value" .=) <$> _miiValue, ("key" .=) <$> _miiKey])
1376414211
14212+-- | A TargetHttpsProxy resource. This resource defines an HTTPS proxy.
14213+--
14214+-- /See:/ 'targetHTTPSProxy' smart constructor.
14215+data TargetHTTPSProxy = TargetHTTPSProxy
14216+ { _thpURLMap :: !(Maybe Text)
14217+ , _thpSSLCertificates :: !(Maybe [Text])
14218+ , _thpKind :: !Text
14219+ , _thpSelfLink :: !(Maybe Text)
14220+ , _thpName :: !(Maybe Text)
14221+ , _thpCreationTimestamp :: !(Maybe Text)
14222+ , _thpId :: !(Maybe Word64)
14223+ , _thpDescription :: !(Maybe Text)
14224+ } deriving (Eq,Show,Data,Typeable,Generic)
14225+
14226+-- | Creates a value of 'TargetHTTPSProxy' with the minimum fields required to make a request.
14227+--
14228+-- Use one of the following lenses to modify other fields as desired:
14229+--
14230+-- * 'thpURLMap'
14231+--
14232+-- * 'thpSSLCertificates'
14233+--
14234+-- * 'thpKind'
14235+--
14236+-- * 'thpSelfLink'
14237+--
14238+-- * 'thpName'
14239+--
14240+-- * 'thpCreationTimestamp'
14241+--
14242+-- * 'thpId'
14243+--
14244+-- * 'thpDescription'
14245+targetHTTPSProxy
14246+ :: TargetHTTPSProxy
14247+targetHTTPSProxy =
14248+ TargetHTTPSProxy
14249+ { _thpURLMap = Nothing
14250+ , _thpSSLCertificates = Nothing
14251+ , _thpKind = "compute#targetHttpsProxy"
14252+ , _thpSelfLink = Nothing
14253+ , _thpName = Nothing
14254+ , _thpCreationTimestamp = Nothing
14255+ , _thpId = Nothing
14256+ , _thpDescription = Nothing
14257+ }
14258+
14259+-- | URL to the UrlMap resource that defines the mapping from URL to the
14260+-- BackendService.
14261+thpURLMap :: Lens' TargetHTTPSProxy (Maybe Text)
14262+thpURLMap
14263+ = lens _thpURLMap (\ s a -> s{_thpURLMap = a})
14264+
14265+-- | URLs to SslCertificate resources that are used to authenticate
14266+-- connections to Backends. Currently exactly one SSL certificate must be
14267+-- specified.
14268+thpSSLCertificates :: Lens' TargetHTTPSProxy [Text]
14269+thpSSLCertificates
14270+ = lens _thpSSLCertificates
14271+ (\ s a -> s{_thpSSLCertificates = a})
14272+ . _Default
14273+ . _Coerce
14274+
14275+-- | Type of the resource.
14276+thpKind :: Lens' TargetHTTPSProxy Text
14277+thpKind = lens _thpKind (\ s a -> s{_thpKind = a})
14278+
14279+-- | [Output Only] Server-defined URL for the resource.
14280+thpSelfLink :: Lens' TargetHTTPSProxy (Maybe Text)
14281+thpSelfLink
14282+ = lens _thpSelfLink (\ s a -> s{_thpSelfLink = a})
14283+
14284+-- | Name of the resource. Provided by the client when the resource is
14285+-- created. The name must be 1-63 characters long, and comply with RFC1035.
14286+-- Specifically, the name must be 1-63 characters long and match the
14287+-- regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
14288+-- character must be a lowercase letter, and all following characters must
14289+-- be a dash, lowercase letter, or digit, except the last character, which
14290+-- cannot be a dash.
14291+thpName :: Lens' TargetHTTPSProxy (Maybe Text)
14292+thpName = lens _thpName (\ s a -> s{_thpName = a})
14293+
14294+-- | [Output Only] Creation timestamp in RFC3339 text format.
14295+thpCreationTimestamp :: Lens' TargetHTTPSProxy (Maybe Text)
14296+thpCreationTimestamp
14297+ = lens _thpCreationTimestamp
14298+ (\ s a -> s{_thpCreationTimestamp = a})
14299+
14300+-- | [Output Only] Unique identifier for the resource; defined by the server.
14301+thpId :: Lens' TargetHTTPSProxy (Maybe Word64)
14302+thpId = lens _thpId (\ s a -> s{_thpId = a})
14303+
14304+-- | An optional textual description of the resource. Provided by the client
14305+-- when the resource is created.
14306+thpDescription :: Lens' TargetHTTPSProxy (Maybe Text)
14307+thpDescription
14308+ = lens _thpDescription
14309+ (\ s a -> s{_thpDescription = a})
14310+
14311+instance FromJSON TargetHTTPSProxy where
14312+ parseJSON
14313+ = withObject "TargetHTTPSProxy"
14314+ (\ o ->
14315+ TargetHTTPSProxy <$>
14316+ (o .:? "urlMap") <*>
14317+ (o .:? "sslCertificates" .!= mempty)
14318+ <*> (o .:? "kind" .!= "compute#targetHttpsProxy")
14319+ <*> (o .:? "selfLink")
14320+ <*> (o .:? "name")
14321+ <*> (o .:? "creationTimestamp")
14322+ <*> (o .:? "id")
14323+ <*> (o .:? "description"))
14324+
14325+instance ToJSON TargetHTTPSProxy where
14326+ toJSON TargetHTTPSProxy{..}
14327+ = object
14328+ (catMaybes
14329+ [("urlMap" .=) <$> _thpURLMap,
14330+ ("sslCertificates" .=) <$> _thpSSLCertificates,
14331+ Just ("kind" .= _thpKind),
14332+ ("selfLink" .=) <$> _thpSelfLink,
14333+ ("name" .=) <$> _thpName,
14334+ ("creationTimestamp" .=) <$> _thpCreationTimestamp,
14335+ ("id" .=) <$> _thpId,
14336+ ("description" .=) <$> _thpDescription])
14337+
1376514338--
1376614339-- /See:/ 'targetVPNGatewaysScopedList' smart constructor.
1376714340data TargetVPNGatewaysScopedList = TargetVPNGatewaysScopedList
@@ -14293,6 +14866,193 @@ instance ToJSON InstanceGroupsScopedList where
1429314866 [("warning" .=) <$> _igslWarning,
1429414867 ("instanceGroups" .=) <$> _igslInstanceGroups])
1429514868
14869+-- | An HttpsHealthCheck resource. This resource defines a template for how
14870+-- individual instances should be checked for health, via HTTPS.
14871+--
14872+-- /See:/ 'httpsHealthCheck' smart constructor.
14873+data HTTPSHealthCheck = HTTPSHealthCheck
14874+ { _hhcHealthyThreshold :: !(Maybe Int32)
14875+ , _hhcKind :: !Text
14876+ , _hhcRequestPath :: !(Maybe Text)
14877+ , _hhcSelfLink :: !(Maybe Text)
14878+ , _hhcCheckIntervalSec :: !(Maybe Int32)
14879+ , _hhcName :: !(Maybe Text)
14880+ , _hhcCreationTimestamp :: !(Maybe Text)
14881+ , _hhcId :: !(Maybe Word64)
14882+ , _hhcHost :: !(Maybe Text)
14883+ , _hhcTimeoutSec :: !(Maybe Int32)
14884+ , _hhcDescription :: !(Maybe Text)
14885+ , _hhcUnhealthyThreshold :: !(Maybe Int32)
14886+ , _hhcPort :: !(Maybe Int32)
14887+ } deriving (Eq,Show,Data,Typeable,Generic)
14888+
14889+-- | Creates a value of 'HTTPSHealthCheck' with the minimum fields required to make a request.
14890+--
14891+-- Use one of the following lenses to modify other fields as desired:
14892+--
14893+-- * 'hhcHealthyThreshold'
14894+--
14895+-- * 'hhcKind'
14896+--
14897+-- * 'hhcRequestPath'
14898+--
14899+-- * 'hhcSelfLink'
14900+--
14901+-- * 'hhcCheckIntervalSec'
14902+--
14903+-- * 'hhcName'
14904+--
14905+-- * 'hhcCreationTimestamp'
14906+--
14907+-- * 'hhcId'
14908+--
14909+-- * 'hhcHost'
14910+--
14911+-- * 'hhcTimeoutSec'
14912+--
14913+-- * 'hhcDescription'
14914+--
14915+-- * 'hhcUnhealthyThreshold'
14916+--
14917+-- * 'hhcPort'
14918+httpsHealthCheck
14919+ :: HTTPSHealthCheck
14920+httpsHealthCheck =
14921+ HTTPSHealthCheck
14922+ { _hhcHealthyThreshold = Nothing
14923+ , _hhcKind = "compute#httpsHealthCheck"
14924+ , _hhcRequestPath = Nothing
14925+ , _hhcSelfLink = Nothing
14926+ , _hhcCheckIntervalSec = Nothing
14927+ , _hhcName = Nothing
14928+ , _hhcCreationTimestamp = Nothing
14929+ , _hhcId = Nothing
14930+ , _hhcHost = Nothing
14931+ , _hhcTimeoutSec = Nothing
14932+ , _hhcDescription = Nothing
14933+ , _hhcUnhealthyThreshold = Nothing
14934+ , _hhcPort = Nothing
14935+ }
14936+
14937+-- | A so-far unhealthy instance will be marked healthy after this many
14938+-- consecutive successes. The default value is 2.
14939+hhcHealthyThreshold :: Lens' HTTPSHealthCheck (Maybe Int32)
14940+hhcHealthyThreshold
14941+ = lens _hhcHealthyThreshold
14942+ (\ s a -> s{_hhcHealthyThreshold = a})
14943+
14944+-- | Type of the resource.
14945+hhcKind :: Lens' HTTPSHealthCheck Text
14946+hhcKind = lens _hhcKind (\ s a -> s{_hhcKind = a})
14947+
14948+-- | The request path of the HTTPS health check request. The default value is
14949+-- \"\/\".
14950+hhcRequestPath :: Lens' HTTPSHealthCheck (Maybe Text)
14951+hhcRequestPath
14952+ = lens _hhcRequestPath
14953+ (\ s a -> s{_hhcRequestPath = a})
14954+
14955+-- | [Output Only] Server-defined URL for the resource.
14956+hhcSelfLink :: Lens' HTTPSHealthCheck (Maybe Text)
14957+hhcSelfLink
14958+ = lens _hhcSelfLink (\ s a -> s{_hhcSelfLink = a})
14959+
14960+-- | How often (in seconds) to send a health check. The default value is 5
14961+-- seconds.
14962+hhcCheckIntervalSec :: Lens' HTTPSHealthCheck (Maybe Int32)
14963+hhcCheckIntervalSec
14964+ = lens _hhcCheckIntervalSec
14965+ (\ s a -> s{_hhcCheckIntervalSec = a})
14966+
14967+-- | Name of the resource. Provided by the client when the resource is
14968+-- created. The name must be 1-63 characters long, and comply with RFC1035.
14969+-- Specifically, the name must be 1-63 characters long and match the
14970+-- regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
14971+-- character must be a lowercase letter, and all following characters must
14972+-- be a dash, lowercase letter, or digit, except the last character, which
14973+-- cannot be a dash.
14974+hhcName :: Lens' HTTPSHealthCheck (Maybe Text)
14975+hhcName = lens _hhcName (\ s a -> s{_hhcName = a})
14976+
14977+-- | [Output Only] Creation timestamp in RFC3339 text format.
14978+hhcCreationTimestamp :: Lens' HTTPSHealthCheck (Maybe Text)
14979+hhcCreationTimestamp
14980+ = lens _hhcCreationTimestamp
14981+ (\ s a -> s{_hhcCreationTimestamp = a})
14982+
14983+-- | [Output Only] Unique identifier for the resource; defined by the server.
14984+hhcId :: Lens' HTTPSHealthCheck (Maybe Word64)
14985+hhcId = lens _hhcId (\ s a -> s{_hhcId = a})
14986+
14987+-- | The value of the host header in the HTTPS health check request. If left
14988+-- empty (default value), the public IP on behalf of which this health
14989+-- check is performed will be used.
14990+hhcHost :: Lens' HTTPSHealthCheck (Maybe Text)
14991+hhcHost = lens _hhcHost (\ s a -> s{_hhcHost = a})
14992+
14993+-- | How long (in seconds) to wait before claiming failure. The default value
14994+-- is 5 seconds. It is invalid for timeoutSec to have a greater value than
14995+-- checkIntervalSec.
14996+hhcTimeoutSec :: Lens' HTTPSHealthCheck (Maybe Int32)
14997+hhcTimeoutSec
14998+ = lens _hhcTimeoutSec
14999+ (\ s a -> s{_hhcTimeoutSec = a})
15000+
15001+-- | An optional textual description of the resource; provided by the client
15002+-- when the resource is created.
15003+hhcDescription :: Lens' HTTPSHealthCheck (Maybe Text)
15004+hhcDescription
15005+ = lens _hhcDescription
15006+ (\ s a -> s{_hhcDescription = a})
15007+
15008+-- | A so-far healthy instance will be marked unhealthy after this many
15009+-- consecutive failures. The default value is 2.
15010+hhcUnhealthyThreshold :: Lens' HTTPSHealthCheck (Maybe Int32)
15011+hhcUnhealthyThreshold
15012+ = lens _hhcUnhealthyThreshold
15013+ (\ s a -> s{_hhcUnhealthyThreshold = a})
15014+
15015+-- | The TCP port number for the HTTPS health check request. The default
15016+-- value is 443.
15017+hhcPort :: Lens' HTTPSHealthCheck (Maybe Int32)
15018+hhcPort = lens _hhcPort (\ s a -> s{_hhcPort = a})
15019+
15020+instance FromJSON HTTPSHealthCheck where
15021+ parseJSON
15022+ = withObject "HTTPSHealthCheck"
15023+ (\ o ->
15024+ HTTPSHealthCheck <$>
15025+ (o .:? "healthyThreshold") <*>
15026+ (o .:? "kind" .!= "compute#httpsHealthCheck")
15027+ <*> (o .:? "requestPath")
15028+ <*> (o .:? "selfLink")
15029+ <*> (o .:? "checkIntervalSec")
15030+ <*> (o .:? "name")
15031+ <*> (o .:? "creationTimestamp")
15032+ <*> (o .:? "id")
15033+ <*> (o .:? "host")
15034+ <*> (o .:? "timeoutSec")
15035+ <*> (o .:? "description")
15036+ <*> (o .:? "unhealthyThreshold")
15037+ <*> (o .:? "port"))
15038+
15039+instance ToJSON HTTPSHealthCheck where
15040+ toJSON HTTPSHealthCheck{..}
15041+ = object
15042+ (catMaybes
15043+ [("healthyThreshold" .=) <$> _hhcHealthyThreshold,
15044+ Just ("kind" .= _hhcKind),
15045+ ("requestPath" .=) <$> _hhcRequestPath,
15046+ ("selfLink" .=) <$> _hhcSelfLink,
15047+ ("checkIntervalSec" .=) <$> _hhcCheckIntervalSec,
15048+ ("name" .=) <$> _hhcName,
15049+ ("creationTimestamp" .=) <$> _hhcCreationTimestamp,
15050+ ("id" .=) <$> _hhcId, ("host" .=) <$> _hhcHost,
15051+ ("timeoutSec" .=) <$> _hhcTimeoutSec,
15052+ ("description" .=) <$> _hhcDescription,
15053+ ("unhealthyThreshold" .=) <$> _hhcUnhealthyThreshold,
15054+ ("port" .=) <$> _hhcPort])
15055+
1429615056-- | [Output Only] A map of scoped vpn tunnel lists.
1429715057--
1429815058-- /See:/ 'vpnTunnelAggregatedListItems' smart constructor.
@@ -14842,7 +15602,7 @@ instance ToJSON Instance where
1484215602
1484315603-- | A matcher for the path portion of the URL. The BackendService from the
1484415604-- longest-matched rule will serve the URL. If no rule was matched, the
14845−-- default_service will be used.
15605+-- default service will be used.
1484615606--
1484715607-- /See:/ 'pathMatcher' smart constructor.
1484815608data PathMatcher = PathMatcher
gogol-compute/gen/Network/Google/Compute/Types/Sum.hs+25−5
@@ -157,6 +157,8 @@ instance ToJSON OperationWarningsItemCode where
157157data BackendServiceProtocol
158158 = HTTP
159159 -- ^ @HTTP@
160+ | HTTPS
161+ -- ^ @HTTPS@
160162 deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
161163
162164instance Hashable BackendServiceProtocol
@@ -164,11 +166,13 @@ instance Hashable BackendServiceProtocol
164166instance FromText BackendServiceProtocol where
165167 fromText = \case
166168 "HTTP" -> Just HTTP
169+ "HTTPS" -> Just HTTPS
167170 _ -> Nothing
168171
169172instance ToText BackendServiceProtocol where
170173 toText = \case
171174 HTTP -> "HTTP"
175+ HTTPS -> "HTTPS"
172176
173177instance FromJSON BackendServiceProtocol where
174178 parseJSON = parseJSONText "BackendServiceProtocol"
@@ -1027,8 +1031,20 @@ instance FromJSON DeprecationStatusState where
10271031instance ToJSON DeprecationStatusState where
10281032 toJSON = toJSONText
10291033
1030−-- | The current action that the managed instance group has scheduled for the
1031−-- instance.
1034+-- | [Output Only] The current action that the managed instance group has
1035+-- scheduled for the instance. Possible values: - NONE The instance is
1036+-- running, and the managed instance group does not have any scheduled
1037+-- actions for this instance. - CREATING The managed instance group is
1038+-- creating this instance. - RECREATING The managed instance group is
1039+-- recreating this instance. - DELETING The managed instance group is
1040+-- permanently deleting this instance. - ABANDONING The managed instance
1041+-- group is abandoning this instance. The instance will be removed from the
1042+-- instance group and from any target pools that are associated with this
1043+-- group. - RESTARTING The managed instance group is restarting the
1044+-- instance. - REFRESHING The managed instance group is applying
1045+-- configuration changes to the instance without stopping it. For example,
1046+-- the group can update the target pool list for an instance without
1047+-- stopping that instance.
10321048data ManagedInstanceCurrentAction
10331049 = MICAAbandoning
10341050 -- ^ @ABANDONING@
@@ -1266,7 +1282,8 @@ instance FromJSON DiskStatus where
12661282instance ToJSON DiskStatus where
12671283 toJSON = toJSONText
12681284
1269−-- | The status of the instance (empty when instance does not exist).
1285+-- | [Output Only] The status of the instance. This field is empty when the
1286+-- instance does not exist.
12701287data ManagedInstanceInstanceStatus
12711288 = MIISProvisioning
12721289 -- ^ @PROVISIONING@
@@ -1562,6 +1579,9 @@ instance FromJSON InstanceGroupsListInstancesRequestInstanceState where
15621579instance ToJSON InstanceGroupsListInstancesRequestInstanceState where
15631580 toJSON = toJSONText
15641581
1582+-- | Specifies the disk interface to use for attaching this disk, either SCSI
1583+-- or NVME. The default is SCSI. For performance characteristics of SCSI
1584+-- over NVMe, see Local SSD performance.
15651585data AttachedDiskInterface
15661586 = Nvme
15671587 -- ^ @NVME@
@@ -2157,7 +2177,7 @@ instance FromJSON InstanceGroupsScopedListWarningCode where
21572177instance ToJSON InstanceGroupsScopedListWarningCode where
21582178 toJSON = toJSONText
21592179
2160−-- | The status of the instance.
2180+-- | [Output Only] The status of the instance.
21612181data InstanceWithNamedPortsStatus
21622182 = IWNPSProvisioning
21632183 -- ^ @PROVISIONING@
@@ -2284,7 +2304,7 @@ instance ToJSON InstancesScopedListWarningCode where
22842304 toJSON = toJSONText
22852305
22862306-- | Sesssion affinity option, must be one of the following values: NONE:
2287−-- Connections from the same client IP may go to any instance in the pool;
2307+-- Connections from the same client IP may go to any instance in the pool.
22882308-- CLIENT_IP: Connections from the same client IP will go to the same
22892309-- instance in the pool while that instance remains healthy.
22902310-- CLIENT_IP_PROTO: Connections from the same client IP with the same IP
gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Delete.hsnew file+97
@@ -0,0 +1,97 @@
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.Compute.HTTPSHealthChecks.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes the specified HttpsHealthCheck resource.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeHTTPSHealthChecksDelete@.
26+module Network.Google.Resource.Compute.HTTPSHealthChecks.Delete
27+ (
28+ -- * REST Resource
29+ HTTPSHealthChecksDeleteResource
30+
31+ -- * Creating a Request
32+ , httpsHealthChecksDelete'
33+ , HTTPSHealthChecksDelete'
34+
35+ -- * Request Lenses
36+ , hhcdProject
37+ , hhcdHTTPSHealthCheck
38+ ) where
39+
40+import Network.Google.Compute.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @ComputeHTTPSHealthChecksDelete@ method which the
44+-- 'HTTPSHealthChecksDelete'' request conforms to.
45+type HTTPSHealthChecksDeleteResource =
46+ Capture "project" Text :>
47+ "global" :>
48+ "httpsHealthChecks" :>
49+ Capture "httpsHealthCheck" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] Operation
51+
52+-- | Deletes the specified HttpsHealthCheck resource.
53+--
54+-- /See:/ 'httpsHealthChecksDelete'' smart constructor.
55+data HTTPSHealthChecksDelete' = HTTPSHealthChecksDelete'
56+ { _hhcdProject :: !Text
57+ , _hhcdHTTPSHealthCheck :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'HTTPSHealthChecksDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'hhcdProject'
65+--
66+-- * 'hhcdHTTPSHealthCheck'
67+httpsHealthChecksDelete'
68+ :: Text -- ^ 'project'
69+ -> Text -- ^ 'httpsHealthCheck'
70+ -> HTTPSHealthChecksDelete'
71+httpsHealthChecksDelete' pHhcdProject_ pHhcdHTTPSHealthCheck_ =
72+ HTTPSHealthChecksDelete'
73+ { _hhcdProject = pHhcdProject_
74+ , _hhcdHTTPSHealthCheck = pHhcdHTTPSHealthCheck_
75+ }
76+
77+-- | Name of the project scoping this request.
78+hhcdProject :: Lens' HTTPSHealthChecksDelete' Text
79+hhcdProject
80+ = lens _hhcdProject (\ s a -> s{_hhcdProject = a})
81+
82+-- | Name of the HttpsHealthCheck resource to delete.
83+hhcdHTTPSHealthCheck :: Lens' HTTPSHealthChecksDelete' Text
84+hhcdHTTPSHealthCheck
85+ = lens _hhcdHTTPSHealthCheck
86+ (\ s a -> s{_hhcdHTTPSHealthCheck = a})
87+
88+instance GoogleRequest HTTPSHealthChecksDelete' where
89+ type Rs HTTPSHealthChecksDelete' = Operation
90+ requestClient HTTPSHealthChecksDelete'{..}
91+ = go _hhcdProject _hhcdHTTPSHealthCheck
92+ (Just AltJSON)
93+ computeService
94+ where go
95+ = buildClient
96+ (Proxy :: Proxy HTTPSHealthChecksDeleteResource)
97+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Get.hsnew file+98
@@ -0,0 +1,98 @@
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.Compute.HTTPSHealthChecks.Get
17+-- Copyright : (c) 2015 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+-- | Returns the specified HttpsHealthCheck resource.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeHTTPSHealthChecksGet@.
26+module Network.Google.Resource.Compute.HTTPSHealthChecks.Get
27+ (
28+ -- * REST Resource
29+ HTTPSHealthChecksGetResource
30+
31+ -- * Creating a Request
32+ , httpsHealthChecksGet'
33+ , HTTPSHealthChecksGet'
34+
35+ -- * Request Lenses
36+ , hhcgProject
37+ , hhcgHTTPSHealthCheck
38+ ) where
39+
40+import Network.Google.Compute.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @ComputeHTTPSHealthChecksGet@ method which the
44+-- 'HTTPSHealthChecksGet'' request conforms to.
45+type HTTPSHealthChecksGetResource =
46+ Capture "project" Text :>
47+ "global" :>
48+ "httpsHealthChecks" :>
49+ Capture "httpsHealthCheck" Text :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] HTTPSHealthCheck
52+
53+-- | Returns the specified HttpsHealthCheck resource.
54+--
55+-- /See:/ 'httpsHealthChecksGet'' smart constructor.
56+data HTTPSHealthChecksGet' = HTTPSHealthChecksGet'
57+ { _hhcgProject :: !Text
58+ , _hhcgHTTPSHealthCheck :: !Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'HTTPSHealthChecksGet'' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'hhcgProject'
66+--
67+-- * 'hhcgHTTPSHealthCheck'
68+httpsHealthChecksGet'
69+ :: Text -- ^ 'project'
70+ -> Text -- ^ 'httpsHealthCheck'
71+ -> HTTPSHealthChecksGet'
72+httpsHealthChecksGet' pHhcgProject_ pHhcgHTTPSHealthCheck_ =
73+ HTTPSHealthChecksGet'
74+ { _hhcgProject = pHhcgProject_
75+ , _hhcgHTTPSHealthCheck = pHhcgHTTPSHealthCheck_
76+ }
77+
78+-- | Name of the project scoping this request.
79+hhcgProject :: Lens' HTTPSHealthChecksGet' Text
80+hhcgProject
81+ = lens _hhcgProject (\ s a -> s{_hhcgProject = a})
82+
83+-- | Name of the HttpsHealthCheck resource to return.
84+hhcgHTTPSHealthCheck :: Lens' HTTPSHealthChecksGet' Text
85+hhcgHTTPSHealthCheck
86+ = lens _hhcgHTTPSHealthCheck
87+ (\ s a -> s{_hhcgHTTPSHealthCheck = a})
88+
89+instance GoogleRequest HTTPSHealthChecksGet' where
90+ type Rs HTTPSHealthChecksGet' = HTTPSHealthCheck
91+ requestClient HTTPSHealthChecksGet'{..}
92+ = go _hhcgProject _hhcgHTTPSHealthCheck
93+ (Just AltJSON)
94+ computeService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy HTTPSHealthChecksGetResource)
98+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Insert.hsnew file+98
@@ -0,0 +1,98 @@
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.Compute.HTTPSHealthChecks.Insert
17+-- Copyright : (c) 2015 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+-- | Creates a HttpsHealthCheck resource in the specified project using the
24+-- data included in the request.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeHTTPSHealthChecksInsert@.
27+module Network.Google.Resource.Compute.HTTPSHealthChecks.Insert
28+ (
29+ -- * REST Resource
30+ HTTPSHealthChecksInsertResource
31+
32+ -- * Creating a Request
33+ , httpsHealthChecksInsert'
34+ , HTTPSHealthChecksInsert'
35+
36+ -- * Request Lenses
37+ , hhciProject
38+ , hhciPayload
39+ ) where
40+
41+import Network.Google.Compute.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @ComputeHTTPSHealthChecksInsert@ method which the
45+-- 'HTTPSHealthChecksInsert'' request conforms to.
46+type HTTPSHealthChecksInsertResource =
47+ Capture "project" Text :>
48+ "global" :>
49+ "httpsHealthChecks" :>
50+ QueryParam "alt" AltJSON :>
51+ ReqBody '[JSON] HTTPSHealthCheck :>
52+ Post '[JSON] Operation
53+
54+-- | Creates a HttpsHealthCheck resource in the specified project using the
55+-- data included in the request.
56+--
57+-- /See:/ 'httpsHealthChecksInsert'' smart constructor.
58+data HTTPSHealthChecksInsert' = HTTPSHealthChecksInsert'
59+ { _hhciProject :: !Text
60+ , _hhciPayload :: !HTTPSHealthCheck
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'HTTPSHealthChecksInsert'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'hhciProject'
68+--
69+-- * 'hhciPayload'
70+httpsHealthChecksInsert'
71+ :: Text -- ^ 'project'
72+ -> HTTPSHealthCheck -- ^ 'payload'
73+ -> HTTPSHealthChecksInsert'
74+httpsHealthChecksInsert' pHhciProject_ pHhciPayload_ =
75+ HTTPSHealthChecksInsert'
76+ { _hhciProject = pHhciProject_
77+ , _hhciPayload = pHhciPayload_
78+ }
79+
80+-- | Name of the project scoping this request.
81+hhciProject :: Lens' HTTPSHealthChecksInsert' Text
82+hhciProject
83+ = lens _hhciProject (\ s a -> s{_hhciProject = a})
84+
85+-- | Multipart request metadata.
86+hhciPayload :: Lens' HTTPSHealthChecksInsert' HTTPSHealthCheck
87+hhciPayload
88+ = lens _hhciPayload (\ s a -> s{_hhciPayload = a})
89+
90+instance GoogleRequest HTTPSHealthChecksInsert' where
91+ type Rs HTTPSHealthChecksInsert' = Operation
92+ requestClient HTTPSHealthChecksInsert'{..}
93+ = go _hhciProject (Just AltJSON) _hhciPayload
94+ computeService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy HTTPSHealthChecksInsertResource)
98+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/List.hsnew file+135
@@ -0,0 +1,135 @@
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.Compute.HTTPSHealthChecks.List
17+-- Copyright : (c) 2015 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+-- | Retrieves the list of HttpsHealthCheck resources available to the
24+-- specified project.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeHTTPSHealthChecksList@.
27+module Network.Google.Resource.Compute.HTTPSHealthChecks.List
28+ (
29+ -- * REST Resource
30+ HTTPSHealthChecksListResource
31+
32+ -- * Creating a Request
33+ , httpsHealthChecksList'
34+ , HTTPSHealthChecksList'
35+
36+ -- * Request Lenses
37+ , hhclProject
38+ , hhclFilter
39+ , hhclPageToken
40+ , hhclMaxResults
41+ ) where
42+
43+import Network.Google.Compute.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @ComputeHTTPSHealthChecksList@ method which the
47+-- 'HTTPSHealthChecksList'' request conforms to.
48+type HTTPSHealthChecksListResource =
49+ Capture "project" Text :>
50+ "global" :>
51+ "httpsHealthChecks" :>
52+ QueryParam "filter" Text :>
53+ QueryParam "pageToken" Text :>
54+ QueryParam "maxResults" Word32 :>
55+ QueryParam "alt" AltJSON :>
56+ Get '[JSON] HTTPSHealthCheckList
57+
58+-- | Retrieves the list of HttpsHealthCheck resources available to the
59+-- specified project.
60+--
61+-- /See:/ 'httpsHealthChecksList'' smart constructor.
62+data HTTPSHealthChecksList' = HTTPSHealthChecksList'
63+ { _hhclProject :: !Text
64+ , _hhclFilter :: !(Maybe Text)
65+ , _hhclPageToken :: !(Maybe Text)
66+ , _hhclMaxResults :: !Word32
67+ } deriving (Eq,Show,Data,Typeable,Generic)
68+
69+-- | Creates a value of 'HTTPSHealthChecksList'' with the minimum fields required to make a request.
70+--
71+-- Use one of the following lenses to modify other fields as desired:
72+--
73+-- * 'hhclProject'
74+--
75+-- * 'hhclFilter'
76+--
77+-- * 'hhclPageToken'
78+--
79+-- * 'hhclMaxResults'
80+httpsHealthChecksList'
81+ :: Text -- ^ 'project'
82+ -> HTTPSHealthChecksList'
83+httpsHealthChecksList' pHhclProject_ =
84+ HTTPSHealthChecksList'
85+ { _hhclProject = pHhclProject_
86+ , _hhclFilter = Nothing
87+ , _hhclPageToken = Nothing
88+ , _hhclMaxResults = 500
89+ }
90+
91+-- | Name of the project scoping this request.
92+hhclProject :: Lens' HTTPSHealthChecksList' Text
93+hhclProject
94+ = lens _hhclProject (\ s a -> s{_hhclProject = a})
95+
96+-- | Sets a filter expression for filtering listed resources, in the form
97+-- filter={expression}. Your {expression} must be in the format: FIELD_NAME
98+-- COMPARISON_STRING LITERAL_STRING. The FIELD_NAME is the name of the
99+-- field you want to compare. Only atomic field types are supported
100+-- (string, number, boolean). The COMPARISON_STRING must be either eq
101+-- (equals) or ne (not equals). The LITERAL_STRING is the string value to
102+-- filter to. The literal value must be valid for the type of field
103+-- (string, number, boolean). For string fields, the literal value is
104+-- interpreted as a regular expression using RE2 syntax. The literal value
105+-- must match the entire field. For example, filter=name ne
106+-- example-instance.
107+hhclFilter :: Lens' HTTPSHealthChecksList' (Maybe Text)
108+hhclFilter
109+ = lens _hhclFilter (\ s a -> s{_hhclFilter = a})
110+
111+-- | Specifies a page token to use. Use this parameter if you want to list
112+-- the next page of results. Set pageToken to the nextPageToken returned by
113+-- a previous list request.
114+hhclPageToken :: Lens' HTTPSHealthChecksList' (Maybe Text)
115+hhclPageToken
116+ = lens _hhclPageToken
117+ (\ s a -> s{_hhclPageToken = a})
118+
119+-- | Maximum count of results to be returned.
120+hhclMaxResults :: Lens' HTTPSHealthChecksList' Word32
121+hhclMaxResults
122+ = lens _hhclMaxResults
123+ (\ s a -> s{_hhclMaxResults = a})
124+
125+instance GoogleRequest HTTPSHealthChecksList' where
126+ type Rs HTTPSHealthChecksList' = HTTPSHealthCheckList
127+ requestClient HTTPSHealthChecksList'{..}
128+ = go _hhclProject _hhclFilter _hhclPageToken
129+ (Just _hhclMaxResults)
130+ (Just AltJSON)
131+ computeService
132+ where go
133+ = buildClient
134+ (Proxy :: Proxy HTTPSHealthChecksListResource)
135+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Patch.hsnew file+113
@@ -0,0 +1,113 @@
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.Compute.HTTPSHealthChecks.Patch
17+-- Copyright : (c) 2015 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 a HttpsHealthCheck resource in the specified project using the
24+-- data included in the request. This method supports patch semantics.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeHTTPSHealthChecksPatch@.
27+module Network.Google.Resource.Compute.HTTPSHealthChecks.Patch
28+ (
29+ -- * REST Resource
30+ HTTPSHealthChecksPatchResource
31+
32+ -- * Creating a Request
33+ , httpsHealthChecksPatch'
34+ , HTTPSHealthChecksPatch'
35+
36+ -- * Request Lenses
37+ , hhcpProject
38+ , hhcpPayload
39+ , hhcpHTTPSHealthCheck
40+ ) where
41+
42+import Network.Google.Compute.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @ComputeHTTPSHealthChecksPatch@ method which the
46+-- 'HTTPSHealthChecksPatch'' request conforms to.
47+type HTTPSHealthChecksPatchResource =
48+ Capture "project" Text :>
49+ "global" :>
50+ "httpsHealthChecks" :>
51+ Capture "httpsHealthCheck" Text :>
52+ QueryParam "alt" AltJSON :>
53+ ReqBody '[JSON] HTTPSHealthCheck :>
54+ Patch '[JSON] Operation
55+
56+-- | Updates a HttpsHealthCheck resource in the specified project using the
57+-- data included in the request. This method supports patch semantics.
58+--
59+-- /See:/ 'httpsHealthChecksPatch'' smart constructor.
60+data HTTPSHealthChecksPatch' = HTTPSHealthChecksPatch'
61+ { _hhcpProject :: !Text
62+ , _hhcpPayload :: !HTTPSHealthCheck
63+ , _hhcpHTTPSHealthCheck :: !Text
64+ } deriving (Eq,Show,Data,Typeable,Generic)
65+
66+-- | Creates a value of 'HTTPSHealthChecksPatch'' with the minimum fields required to make a request.
67+--
68+-- Use one of the following lenses to modify other fields as desired:
69+--
70+-- * 'hhcpProject'
71+--
72+-- * 'hhcpPayload'
73+--
74+-- * 'hhcpHTTPSHealthCheck'
75+httpsHealthChecksPatch'
76+ :: Text -- ^ 'project'
77+ -> HTTPSHealthCheck -- ^ 'payload'
78+ -> Text -- ^ 'httpsHealthCheck'
79+ -> HTTPSHealthChecksPatch'
80+httpsHealthChecksPatch' pHhcpProject_ pHhcpPayload_ pHhcpHTTPSHealthCheck_ =
81+ HTTPSHealthChecksPatch'
82+ { _hhcpProject = pHhcpProject_
83+ , _hhcpPayload = pHhcpPayload_
84+ , _hhcpHTTPSHealthCheck = pHhcpHTTPSHealthCheck_
85+ }
86+
87+-- | Name of the project scoping this request.
88+hhcpProject :: Lens' HTTPSHealthChecksPatch' Text
89+hhcpProject
90+ = lens _hhcpProject (\ s a -> s{_hhcpProject = a})
91+
92+-- | Multipart request metadata.
93+hhcpPayload :: Lens' HTTPSHealthChecksPatch' HTTPSHealthCheck
94+hhcpPayload
95+ = lens _hhcpPayload (\ s a -> s{_hhcpPayload = a})
96+
97+-- | Name of the HttpsHealthCheck resource to update.
98+hhcpHTTPSHealthCheck :: Lens' HTTPSHealthChecksPatch' Text
99+hhcpHTTPSHealthCheck
100+ = lens _hhcpHTTPSHealthCheck
101+ (\ s a -> s{_hhcpHTTPSHealthCheck = a})
102+
103+instance GoogleRequest HTTPSHealthChecksPatch' where
104+ type Rs HTTPSHealthChecksPatch' = Operation
105+ requestClient HTTPSHealthChecksPatch'{..}
106+ = go _hhcpProject _hhcpHTTPSHealthCheck
107+ (Just AltJSON)
108+ _hhcpPayload
109+ computeService
110+ where go
111+ = buildClient
112+ (Proxy :: Proxy HTTPSHealthChecksPatchResource)
113+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Update.hsnew file+113
@@ -0,0 +1,113 @@
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.Compute.HTTPSHealthChecks.Update
17+-- Copyright : (c) 2015 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 a HttpsHealthCheck resource in the specified project using the
24+-- data included in the request.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeHTTPSHealthChecksUpdate@.
27+module Network.Google.Resource.Compute.HTTPSHealthChecks.Update
28+ (
29+ -- * REST Resource
30+ HTTPSHealthChecksUpdateResource
31+
32+ -- * Creating a Request
33+ , httpsHealthChecksUpdate'
34+ , HTTPSHealthChecksUpdate'
35+
36+ -- * Request Lenses
37+ , hhcuProject
38+ , hhcuPayload
39+ , hhcuHTTPSHealthCheck
40+ ) where
41+
42+import Network.Google.Compute.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @ComputeHTTPSHealthChecksUpdate@ method which the
46+-- 'HTTPSHealthChecksUpdate'' request conforms to.
47+type HTTPSHealthChecksUpdateResource =
48+ Capture "project" Text :>
49+ "global" :>
50+ "httpsHealthChecks" :>
51+ Capture "httpsHealthCheck" Text :>
52+ QueryParam "alt" AltJSON :>
53+ ReqBody '[JSON] HTTPSHealthCheck :>
54+ Put '[JSON] Operation
55+
56+-- | Updates a HttpsHealthCheck resource in the specified project using the
57+-- data included in the request.
58+--
59+-- /See:/ 'httpsHealthChecksUpdate'' smart constructor.
60+data HTTPSHealthChecksUpdate' = HTTPSHealthChecksUpdate'
61+ { _hhcuProject :: !Text
62+ , _hhcuPayload :: !HTTPSHealthCheck
63+ , _hhcuHTTPSHealthCheck :: !Text
64+ } deriving (Eq,Show,Data,Typeable,Generic)
65+
66+-- | Creates a value of 'HTTPSHealthChecksUpdate'' with the minimum fields required to make a request.
67+--
68+-- Use one of the following lenses to modify other fields as desired:
69+--
70+-- * 'hhcuProject'
71+--
72+-- * 'hhcuPayload'
73+--
74+-- * 'hhcuHTTPSHealthCheck'
75+httpsHealthChecksUpdate'
76+ :: Text -- ^ 'project'
77+ -> HTTPSHealthCheck -- ^ 'payload'
78+ -> Text -- ^ 'httpsHealthCheck'
79+ -> HTTPSHealthChecksUpdate'
80+httpsHealthChecksUpdate' pHhcuProject_ pHhcuPayload_ pHhcuHTTPSHealthCheck_ =
81+ HTTPSHealthChecksUpdate'
82+ { _hhcuProject = pHhcuProject_
83+ , _hhcuPayload = pHhcuPayload_
84+ , _hhcuHTTPSHealthCheck = pHhcuHTTPSHealthCheck_
85+ }
86+
87+-- | Name of the project scoping this request.
88+hhcuProject :: Lens' HTTPSHealthChecksUpdate' Text
89+hhcuProject
90+ = lens _hhcuProject (\ s a -> s{_hhcuProject = a})
91+
92+-- | Multipart request metadata.
93+hhcuPayload :: Lens' HTTPSHealthChecksUpdate' HTTPSHealthCheck
94+hhcuPayload
95+ = lens _hhcuPayload (\ s a -> s{_hhcuPayload = a})
96+
97+-- | Name of the HttpsHealthCheck resource to update.
98+hhcuHTTPSHealthCheck :: Lens' HTTPSHealthChecksUpdate' Text
99+hhcuHTTPSHealthCheck
100+ = lens _hhcuHTTPSHealthCheck
101+ (\ s a -> s{_hhcuHTTPSHealthCheck = a})
102+
103+instance GoogleRequest HTTPSHealthChecksUpdate' where
104+ type Rs HTTPSHealthChecksUpdate' = Operation
105+ requestClient HTTPSHealthChecksUpdate'{..}
106+ = go _hhcuProject _hhcuHTTPSHealthCheck
107+ (Just AltJSON)
108+ _hhcuPayload
109+ computeService
110+ where go
111+ = buildClient
112+ (Proxy :: Proxy HTTPSHealthChecksUpdateResource)
113+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/Images/List.hs+14−4
@@ -20,8 +20,13 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Retrieves the list of image resources available to the specified
24−-- project.
23+-- | Retrieves the list of private images available to the specified project.
24+-- Private images are images you create that belong to your project. This
25+-- method does not get any images that belong to other projects, including
26+-- publicly-available images, like Debian 7. If you want to get a list of
27+-- publicly-available images, use this method to make a request to the
28+-- respective image project, such as debian-cloud or windows-cloud. See
29+-- Accessing images for more information.
2530--
2631-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeImagesList@.
2732module Network.Google.Resource.Compute.Images.List
@@ -54,8 +59,13 @@ type ImagesListResource =
5459 QueryParam "maxResults" Word32 :>
5560 QueryParam "alt" AltJSON :> Get '[JSON] ImageList
5661
57−-- | Retrieves the list of image resources available to the specified
58−-- project.
62+-- | Retrieves the list of private images available to the specified project.
63+-- Private images are images you create that belong to your project. This
64+-- method does not get any images that belong to other projects, including
65+-- publicly-available images, like Debian 7. If you want to get a list of
66+-- publicly-available images, use this method to make a request to the
67+-- respective image project, such as debian-cloud or windows-cloud. See
68+-- Accessing images for more information.
5969--
6070-- /See:/ 'imagesList'' smart constructor.
6171data ImagesList' = ImagesList'
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/AbandonInstances.hs+20−10
@@ -20,10 +20,15 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Removes the specified instances from the managed instance group, and
24−-- from any target pools where they are a member. The instances are not
25−-- deleted. The managed instance group automatically reduces its targetSize
26−-- value by the number of instances that you abandon from the group.
23+-- | Schedules a group action to remove the specified instances from the
24+-- managed instance group. Abandoning an instance does not delete the
25+-- instance, but it does remove the instance from any target pools that are
26+-- applied by the managed instance group. This method reduces the
27+-- targetSize of the managed instance group by the number of instances that
28+-- you abandon. This operation is marked as DONE when the action is
29+-- scheduled even if the instances have not yet been removed from the
30+-- group. You must separately verify the status of the abandoning action
31+-- with the listmanagedinstances method.
2732--
2833-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersAbandonInstances@.
2934module Network.Google.Resource.Compute.InstanceGroupManagers.AbandonInstances
@@ -59,10 +64,15 @@ type InstanceGroupManagersAbandonInstancesResource =
5964 InstanceGroupManagersAbandonInstancesRequest
6065 :> Post '[JSON] Operation
6166
62−-- | Removes the specified instances from the managed instance group, and
63−-- from any target pools where they are a member. The instances are not
64−-- deleted. The managed instance group automatically reduces its targetSize
65−-- value by the number of instances that you abandon from the group.
67+-- | Schedules a group action to remove the specified instances from the
68+-- managed instance group. Abandoning an instance does not delete the
69+-- instance, but it does remove the instance from any target pools that are
70+-- applied by the managed instance group. This method reduces the
71+-- targetSize of the managed instance group by the number of instances that
72+-- you abandon. This operation is marked as DONE when the action is
73+-- scheduled even if the instances have not yet been removed from the
74+-- group. You must separately verify the status of the abandoning action
75+-- with the listmanagedinstances method.
6676--
6777-- /See:/ 'instanceGroupManagersAbandonInstances'' smart constructor.
6878data InstanceGroupManagersAbandonInstances' = InstanceGroupManagersAbandonInstances'
@@ -102,13 +112,13 @@ igmaiProject :: Lens' InstanceGroupManagersAbandonInstances' Text
102112igmaiProject
103113 = lens _igmaiProject (\ s a -> s{_igmaiProject = a})
104114
105−-- | The name of the instance group manager.
115+-- | The name of the managed instance group.
106116igmaiInstanceGroupManager :: Lens' InstanceGroupManagersAbandonInstances' Text
107117igmaiInstanceGroupManager
108118 = lens _igmaiInstanceGroupManager
109119 (\ s a -> s{_igmaiInstanceGroupManager = a})
110120
111−-- | The URL of the zone where the managed instance group is located.
121+-- | The name of the zone where the managed instance group is located.
112122igmaiZone :: Lens' InstanceGroupManagersAbandonInstances' Text
113123igmaiZone
114124 = lens _igmaiZone (\ s a -> s{_igmaiZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/AggregatedList.hs+2−4
@@ -20,8 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Retrieves the list of managed instance groups, and groups them by
24−-- project and zone.
23+-- | Retrieves the list of managed instance groups and groups them by zone.
2524--
2625-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersAggregatedList@.
2726module Network.Google.Resource.Compute.InstanceGroupManagers.AggregatedList
@@ -55,8 +54,7 @@ type InstanceGroupManagersAggregatedListResource =
5554 QueryParam "alt" AltJSON :>
5655 Get '[JSON] InstanceGroupManagerAggregatedList
5756
58−-- | Retrieves the list of managed instance groups, and groups them by
59−-- project and zone.
57+-- | Retrieves the list of managed instance groups and groups them by zone.
6058--
6159-- /See:/ 'instanceGroupManagersAggregatedList'' smart constructor.
6260data InstanceGroupManagersAggregatedList' = InstanceGroupManagersAggregatedList'
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Delete.hs+6−4
@@ -20,7 +20,8 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Deletes the specified managed instance group resource.
23+-- | Deletes the specified managed instance group and all of the instances in
24+-- that group.
2425--
2526-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersDelete@.
2627module Network.Google.Resource.Compute.InstanceGroupManagers.Delete
@@ -51,7 +52,8 @@ type InstanceGroupManagersDeleteResource =
5152 Capture "instanceGroupManager" Text :>
5253 QueryParam "alt" AltJSON :> Delete '[JSON] Operation
5354
54−-- | Deletes the specified managed instance group resource.
55+-- | Deletes the specified managed instance group and all of the instances in
56+-- that group.
5557--
5658-- /See:/ 'instanceGroupManagersDelete'' smart constructor.
5759data InstanceGroupManagersDelete' = InstanceGroupManagersDelete'
@@ -86,13 +88,13 @@ igmdProject :: Lens' InstanceGroupManagersDelete' Text
8688igmdProject
8789 = lens _igmdProject (\ s a -> s{_igmdProject = a})
8890
89−-- | The name of the instance group manager to delete.
91+-- | The name of the managed instance group to delete.
9092igmdInstanceGroupManager :: Lens' InstanceGroupManagersDelete' Text
9193igmdInstanceGroupManager
9294 = lens _igmdInstanceGroupManager
9395 (\ s a -> s{_igmdInstanceGroupManager = a})
9496
95−-- | The URL of the zone where the managed instance group is located.
97+-- | The name of the zone where the managed instance group is located.
9698igmdZone :: Lens' InstanceGroupManagersDelete' Text
9799igmdZone = lens _igmdZone (\ s a -> s{_igmdZone = a})
98100
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/DeleteInstances.hs+16−10
@@ -20,10 +20,13 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Deletes the specified instances. The instances are deleted and removed
24−-- from the instance group and any target pools where they are a member.
25−-- The managed instance group automatically reduces its targetSize value by
26−-- the number of instances that you delete.
23+-- | Schedules a group action to delete the specified instances in the
24+-- managed instance group. The instances are also removed from any target
25+-- pools of which they were a member. This method reduces the targetSize of
26+-- the managed instance group by the number of instances that you delete.
27+-- This operation is marked as DONE when the action is scheduled even if
28+-- the instances are still being deleted. You must separately verify the
29+-- status of the deleting action with the listmanagedinstances method.
2730--
2831-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersDeleteInstances@.
2932module Network.Google.Resource.Compute.InstanceGroupManagers.DeleteInstances
@@ -59,10 +62,13 @@ type InstanceGroupManagersDeleteInstancesResource =
5962 InstanceGroupManagersDeleteInstancesRequest
6063 :> Post '[JSON] Operation
6164
62−-- | Deletes the specified instances. The instances are deleted and removed
63−-- from the instance group and any target pools where they are a member.
64−-- The managed instance group automatically reduces its targetSize value by
65−-- the number of instances that you delete.
65+-- | Schedules a group action to delete the specified instances in the
66+-- managed instance group. The instances are also removed from any target
67+-- pools of which they were a member. This method reduces the targetSize of
68+-- the managed instance group by the number of instances that you delete.
69+-- This operation is marked as DONE when the action is scheduled even if
70+-- the instances are still being deleted. You must separately verify the
71+-- status of the deleting action with the listmanagedinstances method.
6672--
6773-- /See:/ 'instanceGroupManagersDeleteInstances'' smart constructor.
6874data InstanceGroupManagersDeleteInstances' = InstanceGroupManagersDeleteInstances'
@@ -102,13 +108,13 @@ igmdiProject :: Lens' InstanceGroupManagersDeleteInstances' Text
102108igmdiProject
103109 = lens _igmdiProject (\ s a -> s{_igmdiProject = a})
104110
105−-- | The name of the instance group manager.
111+-- | The name of the managed instance group.
106112igmdiInstanceGroupManager :: Lens' InstanceGroupManagersDeleteInstances' Text
107113igmdiInstanceGroupManager
108114 = lens _igmdiInstanceGroupManager
109115 (\ s a -> s{_igmdiInstanceGroupManager = a})
110116
111−-- | The URL of the zone where the managed instance group is located.
117+-- | The name of the zone where the managed instance group is located.
112118igmdiZone :: Lens' InstanceGroupManagersDeleteInstances' Text
113119igmdiZone
114120 = lens _igmdiZone (\ s a -> s{_igmdiZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Get.hs+4−4
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Returns the specified managed instance group resource.
23+-- | Returns all of the details about the specified managed instance group.
2424--
2525-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersGet@.
2626module Network.Google.Resource.Compute.InstanceGroupManagers.Get
@@ -52,7 +52,7 @@ type InstanceGroupManagersGetResource =
5252 QueryParam "alt" AltJSON :>
5353 Get '[JSON] InstanceGroupManager
5454
55−-- | Returns the specified managed instance group resource.
55+-- | Returns all of the details about the specified managed instance group.
5656--
5757-- /See:/ 'instanceGroupManagersGet'' smart constructor.
5858data InstanceGroupManagersGet' = InstanceGroupManagersGet'
@@ -87,13 +87,13 @@ igmgProject :: Lens' InstanceGroupManagersGet' Text
8787igmgProject
8888 = lens _igmgProject (\ s a -> s{_igmgProject = a})
8989
90−-- | The name of the instance group manager resource.
90+-- | The name of the managed instance group.
9191igmgInstanceGroupManager :: Lens' InstanceGroupManagersGet' Text
9292igmgInstanceGroupManager
9393 = lens _igmgInstanceGroupManager
9494 (\ s a -> s{_igmgInstanceGroupManager = a})
9595
96−-- | The URL of the zone where the managed instance group is located.
96+-- | The name of the zone where the managed instance group is located.
9797igmgZone :: Lens' InstanceGroupManagersGet' Text
9898igmgZone = lens _igmgZone (\ s a -> s{_igmgZone = a})
9999
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Insert.hs+16−5
@@ -20,8 +20,13 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Creates a managed instance group resource in the specified project using
24−-- the data that is included in the request.
23+-- | Creates a managed instance group using the information that you specify
24+-- in the request. After the group is created, it schedules an action to
25+-- create instances in the group using the specified instance template.
26+-- This operation is marked as DONE when the group is created even if the
27+-- instances in the group have not yet been created. You must separately
28+-- verify the status of the individual instances with the
29+-- listmanagedinstances method.
2530--
2631-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersInsert@.
2732module Network.Google.Resource.Compute.InstanceGroupManagers.Insert
@@ -53,8 +58,13 @@ type InstanceGroupManagersInsertResource =
5358 ReqBody '[JSON] InstanceGroupManager :>
5459 Post '[JSON] Operation
5560
56−-- | Creates a managed instance group resource in the specified project using
57−-- the data that is included in the request.
61+-- | Creates a managed instance group using the information that you specify
62+-- in the request. After the group is created, it schedules an action to
63+-- create instances in the group using the specified instance template.
64+-- This operation is marked as DONE when the group is created even if the
65+-- instances in the group have not yet been created. You must separately
66+-- verify the status of the individual instances with the
67+-- listmanagedinstances method.
5868--
5969-- /See:/ 'instanceGroupManagersInsert'' smart constructor.
6070data InstanceGroupManagersInsert' = InstanceGroupManagersInsert'
@@ -89,7 +99,8 @@ igmiProject :: Lens' InstanceGroupManagersInsert' Text
8999igmiProject
90100 = lens _igmiProject (\ s a -> s{_igmiProject = a})
91101
92−-- | The URL of the zone where the managed instance group is located.
102+-- | The name of the zone where you want to create the managed instance
103+-- group.
93104igmiZone :: Lens' InstanceGroupManagersInsert' Text
94105igmiZone = lens _igmiZone (\ s a -> s{_igmiZone = a})
95106
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/List.hs+1−1
@@ -100,7 +100,7 @@ igmlProject :: Lens' InstanceGroupManagersList' Text
100100igmlProject
101101 = lens _igmlProject (\ s a -> s{_igmlProject = a})
102102
103−-- | The URL of the zone where the managed instance group is located.
103+-- | The name of the zone where the managed instance group is located.
104104igmlZone :: Lens' InstanceGroupManagersList' Text
105105igmlZone = lens _igmlZone (\ s a -> s{_igmlZone = a})
106106
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/ListManagedInstances.hs+13−3
@@ -20,7 +20,12 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Lists managed instances.
23+-- | Lists all of the instances in the managed instance group. Each instance
24+-- in the list has a currentAction, which indicates the action that the
25+-- managed instance group is performing on the instance. For example, if
26+-- the group is still creating an instance, the currentAction is CREATING.
27+-- If a previous action failed, the list displays the errors for that
28+-- failed action.
2429--
2530-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersListManagedInstances@.
2631module Network.Google.Resource.Compute.InstanceGroupManagers.ListManagedInstances
@@ -55,7 +60,12 @@ type InstanceGroupManagersListManagedInstancesResource
5560 Post '[JSON]
5661 InstanceGroupManagersListManagedInstancesResponse
5762
58−-- | Lists managed instances.
63+-- | Lists all of the instances in the managed instance group. Each instance
64+-- in the list has a currentAction, which indicates the action that the
65+-- managed instance group is performing on the instance. For example, if
66+-- the group is still creating an instance, the currentAction is CREATING.
67+-- If a previous action failed, the list displays the errors for that
68+-- failed action.
5969--
6070-- /See:/ 'instanceGroupManagersListManagedInstances'' smart constructor.
6171data InstanceGroupManagersListManagedInstances' = InstanceGroupManagersListManagedInstances'
@@ -97,7 +107,7 @@ igmlmiInstanceGroupManager
97107 = lens _igmlmiInstanceGroupManager
98108 (\ s a -> s{_igmlmiInstanceGroupManager = a})
99109
100−-- | The URL of the zone where the managed instance group is located.
110+-- | The name of the zone where the managed instance group is located.
101111igmlmiZone :: Lens' InstanceGroupManagersListManagedInstances' Text
102112igmlmiZone
103113 = lens _igmlmiZone (\ s a -> s{_igmlmiZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/RecreateInstances.hs+14−6
@@ -20,8 +20,12 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Recreates the specified instances. The instances are deleted, then
24−-- recreated using the managed instance group\'s current instance template.
23+-- | Schedules a group action to recreate the specified instances in the
24+-- managed instance group. The instances are deleted and recreated using
25+-- the current instance template for the managed instance group. This
26+-- operation is marked as DONE when the action is scheduled even if the
27+-- instances have not yet been recreated. You must separately verify the
28+-- status of the recreating action with the listmanagedinstances method.
2529--
2630-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersRecreateInstances@.
2731module Network.Google.Resource.Compute.InstanceGroupManagers.RecreateInstances
@@ -57,8 +61,12 @@ type InstanceGroupManagersRecreateInstancesResource =
5761 InstanceGroupManagersRecreateInstancesRequest
5862 :> Post '[JSON] Operation
5963
60−-- | Recreates the specified instances. The instances are deleted, then
61−-- recreated using the managed instance group\'s current instance template.
64+-- | Schedules a group action to recreate the specified instances in the
65+-- managed instance group. The instances are deleted and recreated using
66+-- the current instance template for the managed instance group. This
67+-- operation is marked as DONE when the action is scheduled even if the
68+-- instances have not yet been recreated. You must separately verify the
69+-- status of the recreating action with the listmanagedinstances method.
6270--
6371-- /See:/ 'instanceGroupManagersRecreateInstances'' smart constructor.
6472data InstanceGroupManagersRecreateInstances' = InstanceGroupManagersRecreateInstances'
@@ -98,13 +106,13 @@ igmriProject :: Lens' InstanceGroupManagersRecreateInstances' Text
98106igmriProject
99107 = lens _igmriProject (\ s a -> s{_igmriProject = a})
100108
101−-- | The name of the instance group manager.
109+-- | The name of the managed instance group.
102110igmriInstanceGroupManager :: Lens' InstanceGroupManagersRecreateInstances' Text
103111igmriInstanceGroupManager
104112 = lens _igmriInstanceGroupManager
105113 (\ s a -> s{_igmriInstanceGroupManager = a})
106114
107−-- | The URL of the zone where the managed instance group is located.
115+-- | The name of the zone where the managed instance group is located.
108116igmriZone :: Lens' InstanceGroupManagersRecreateInstances' Text
109117igmriZone
110118 = lens _igmriZone (\ s a -> s{_igmriZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Resize.hs+12−6
@@ -22,8 +22,11 @@
2222--
2323-- | Resizes the managed instance group. If you increase the size, the group
2424-- creates new instances using the current instance template. If you
25−-- decrease the size, the group removes instances in the order that is
26−-- outlined in Resizing a managed instance group.
25+-- decrease the size, the group deletes instances. The resize operation is
26+-- marked DONE when the resize actions are scheduled even if the group has
27+-- not yet added or deleted any instances. You must separately verify the
28+-- status of the creating or deleting actions with the listmanagedinstances
29+-- method.
2730--
2831-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersResize@.
2932module Network.Google.Resource.Compute.InstanceGroupManagers.Resize
@@ -59,8 +62,11 @@ type InstanceGroupManagersResizeResource =
5962
6063-- | Resizes the managed instance group. If you increase the size, the group
6164-- creates new instances using the current instance template. If you
62−-- decrease the size, the group removes instances in the order that is
63−-- outlined in Resizing a managed instance group.
65+-- decrease the size, the group deletes instances. The resize operation is
66+-- marked DONE when the resize actions are scheduled even if the group has
67+-- not yet added or deleted any instances. You must separately verify the
68+-- status of the creating or deleting actions with the listmanagedinstances
69+-- method.
6470--
6571-- /See:/ 'instanceGroupManagersResize'' smart constructor.
6672data InstanceGroupManagersResize' = InstanceGroupManagersResize'
@@ -107,13 +113,13 @@ igmrProject
107113igmrSize :: Lens' InstanceGroupManagersResize' Int32
108114igmrSize = lens _igmrSize (\ s a -> s{_igmrSize = a})
109115
110−-- | The name of the instance group manager.
116+-- | The name of the managed instance group.
111117igmrInstanceGroupManager :: Lens' InstanceGroupManagersResize' Text
112118igmrInstanceGroupManager
113119 = lens _igmrInstanceGroupManager
114120 (\ s a -> s{_igmrInstanceGroupManager = a})
115121
116−-- | The URL of the zone where the managed instance group is located.
122+-- | The name of the zone where the managed instance group is located.
117123igmrZone :: Lens' InstanceGroupManagersResize' Text
118124igmrZone = lens _igmrZone (\ s a -> s{_igmrZone = a})
119125
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/SetInstanceTemplate.hs+2−2
@@ -102,13 +102,13 @@ igmsitProject
102102 = lens _igmsitProject
103103 (\ s a -> s{_igmsitProject = a})
104104
105−-- | The name of the instance group manager.
105+-- | The name of the managed instance group.
106106igmsitInstanceGroupManager :: Lens' InstanceGroupManagersSetInstanceTemplate' Text
107107igmsitInstanceGroupManager
108108 = lens _igmsitInstanceGroupManager
109109 (\ s a -> s{_igmsitInstanceGroupManager = a})
110110
111−-- | The URL of the zone where the managed instance group is located.
111+-- | The name of the zone where the managed instance group is located.
112112igmsitZone :: Lens' InstanceGroupManagersSetInstanceTemplate' Text
113113igmsitZone
114114 = lens _igmsitZone (\ s a -> s{_igmsitZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/SetTargetPools.hs+14−8
@@ -20,9 +20,12 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Modifies the target pools to which all new instances in this group are
24−-- assigned. The target pools for existing instances in the group do not
25−-- change unless you recreate them.
23+-- | Modifies the target pools to which all instances in this managed
24+-- instance group are assigned. The target pools automatically apply to all
25+-- of the instances in the managed instance group. This operation is marked
26+-- DONE when you make the request even if the instances have not yet been
27+-- added to their target pools. The change might take some time to apply to
28+-- all of the instances in the group depending on the size of the group.
2629--
2730-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupManagersSetTargetPools@.
2831module Network.Google.Resource.Compute.InstanceGroupManagers.SetTargetPools
@@ -58,9 +61,12 @@ type InstanceGroupManagersSetTargetPoolsResource =
5861 InstanceGroupManagersSetTargetPoolsRequest
5962 :> Post '[JSON] Operation
6063
61−-- | Modifies the target pools to which all new instances in this group are
62−-- assigned. The target pools for existing instances in the group do not
63−-- change unless you recreate them.
64+-- | Modifies the target pools to which all instances in this managed
65+-- instance group are assigned. The target pools automatically apply to all
66+-- of the instances in the managed instance group. This operation is marked
67+-- DONE when you make the request even if the instances have not yet been
68+-- added to their target pools. The change might take some time to apply to
69+-- all of the instances in the group depending on the size of the group.
6470--
6571-- /See:/ 'instanceGroupManagersSetTargetPools'' smart constructor.
6672data InstanceGroupManagersSetTargetPools' = InstanceGroupManagersSetTargetPools'
@@ -101,13 +107,13 @@ igmstpProject
101107 = lens _igmstpProject
102108 (\ s a -> s{_igmstpProject = a})
103109
104−-- | The name of the instance group manager.
110+-- | The name of the managed instance group.
105111igmstpInstanceGroupManager :: Lens' InstanceGroupManagersSetTargetPools' Text
106112igmstpInstanceGroupManager
107113 = lens _igmstpInstanceGroupManager
108114 (\ s a -> s{_igmstpInstanceGroupManager = a})
109115
110−-- | The URL of the zone where the managed instance group is located.
116+-- | The name of the zone where the managed instance group is located.
111117igmstpZone :: Lens' InstanceGroupManagersSetTargetPools' Text
112118igmstpZone
113119 = lens _igmstpZone (\ s a -> s{_igmstpZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/AddInstances.hs+7−5
@@ -20,8 +20,9 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Adds a list of instances to an instance group. All of the instances in
24−-- the instance group must be in the same network.
23+-- | Adds a list of instances to the specified instance group. All of the
24+-- instances in the instance group must be in the same network\/subnetwork.
25+-- TODO: Change to comment to state \"if IG is load balanced.\"
2526--
2627-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupsAddInstances@.
2728module Network.Google.Resource.Compute.InstanceGroups.AddInstances
@@ -56,8 +57,9 @@ type InstanceGroupsAddInstancesResource =
5657 ReqBody '[JSON] InstanceGroupsAddInstancesRequest :>
5758 Post '[JSON] Operation
5859
59−-- | Adds a list of instances to an instance group. All of the instances in
60−-- the instance group must be in the same network.
60+-- | Adds a list of instances to the specified instance group. All of the
61+-- instances in the instance group must be in the same network\/subnetwork.
62+-- TODO: Change to comment to state \"if IG is load balanced.\"
6163--
6264-- /See:/ 'instanceGroupsAddInstances'' smart constructor.
6365data InstanceGroupsAddInstances' = InstanceGroupsAddInstances'
@@ -97,7 +99,7 @@ igaiProject :: Lens' InstanceGroupsAddInstances' Text
9799igaiProject
98100 = lens _igaiProject (\ s a -> s{_igaiProject = a})
99101
100−-- | The URL of the zone where the instance group is located.
102+-- | The name of the zone where the instance group is located.
101103igaiZone :: Lens' InstanceGroupsAddInstances' Text
102104igaiZone = lens _igaiZone (\ s a -> s{_igaiZone = a})
103105
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/AggregatedList.hs+2−2
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Retrieves the list of instance groups, and sorts them by zone.
23+-- | Retrieves the list of instance groups and sorts them by zone.
2424--
2525-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupsAggregatedList@.
2626module Network.Google.Resource.Compute.InstanceGroups.AggregatedList
@@ -54,7 +54,7 @@ type InstanceGroupsAggregatedListResource =
5454 QueryParam "alt" AltJSON :>
5555 Get '[JSON] InstanceGroupAggregatedList
5656
57−-- | Retrieves the list of instance groups, and sorts them by zone.
57+-- | Retrieves the list of instance groups and sorts them by zone.
5858--
5959-- /See:/ 'instanceGroupsAggregatedList'' smart constructor.
6060data InstanceGroupsAggregatedList' = InstanceGroupsAggregatedList'
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Delete.hs+5−3
@@ -20,7 +20,8 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Deletes the specified instance group.
23+-- | Deletes the specified instance group. The instances in the group are not
24+-- deleted.
2425--
2526-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupsDelete@.
2627module Network.Google.Resource.Compute.InstanceGroups.Delete
@@ -51,7 +52,8 @@ type InstanceGroupsDeleteResource =
5152 Capture "instanceGroup" Text :>
5253 QueryParam "alt" AltJSON :> Delete '[JSON] Operation
5354
54−-- | Deletes the specified instance group.
55+-- | Deletes the specified instance group. The instances in the group are not
56+-- deleted.
5557--
5658-- /See:/ 'instanceGroupsDelete'' smart constructor.
5759data InstanceGroupsDelete' = InstanceGroupsDelete'
@@ -86,7 +88,7 @@ igdProject :: Lens' InstanceGroupsDelete' Text
8688igdProject
8789 = lens _igdProject (\ s a -> s{_igdProject = a})
8890
89−-- | The URL of the zone where the instance group is located.
91+-- | The name of the zone where the instance group is located.
9092igdZone :: Lens' InstanceGroupsDelete' Text
9193igdZone = lens _igdZone (\ s a -> s{_igdZone = a})
9294
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Get.hs+1−1
@@ -86,7 +86,7 @@ iggProject :: Lens' InstanceGroupsGet' Text
8686iggProject
8787 = lens _iggProject (\ s a -> s{_iggProject = a})
8888
89−-- | The URL of the zone where the instance group is located.
89+-- | The name of the zone where the instance group is located.
9090iggZone :: Lens' InstanceGroupsGet' Text
9191iggZone = lens _iggZone (\ s a -> s{_iggZone = a})
9292
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Insert.hs+1−1
@@ -89,7 +89,7 @@ igiProject :: Lens' InstanceGroupsInsert' Text
8989igiProject
9090 = lens _igiProject (\ s a -> s{_igiProject = a})
9191
92−-- | The URL of the zone where the instance group is located.
92+-- | The name of the zone where you want to create the instance group.
9393igiZone :: Lens' InstanceGroupsInsert' Text
9494igiZone = lens _igiZone (\ s a -> s{_igiZone = a})
9595
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/List.hs+1−1
@@ -100,7 +100,7 @@ iglProject :: Lens' InstanceGroupsList' Text
100100iglProject
101101 = lens _iglProject (\ s a -> s{_iglProject = a})
102102
103−-- | The URL of the zone where the instance group is located.
103+-- | The name of the zone where the instance group is located.
104104iglZone :: Lens' InstanceGroupsList' Text
105105iglZone = lens _iglZone (\ s a -> s{_iglZone = a})
106106
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/ListInstances.hs+3−7
@@ -20,9 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Lists instances in an instance group. The parameters for this method
24−-- specify whether the list filters instances by state and named ports
25−-- information.
23+-- | Lists the instances in the specified instance group.
2624--
2725-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupsListInstances@.
2826module Network.Google.Resource.Compute.InstanceGroups.ListInstances
@@ -63,9 +61,7 @@ type InstanceGroupsListInstancesResource =
6361 ReqBody '[JSON] InstanceGroupsListInstancesRequest :>
6462 Post '[JSON] InstanceGroupsListInstances
6563
66−-- | Lists instances in an instance group. The parameters for this method
67−-- specify whether the list filters instances by state and named ports
68−-- information.
64+-- | Lists the instances in the specified instance group.
6965--
7066-- /See:/ 'instanceGroupsListInstances'' smart constructor.
7167data InstanceGroupsListInstances' = InstanceGroupsListInstances'
@@ -117,7 +113,7 @@ igliProject :: Lens' InstanceGroupsListInstances' Text
117113igliProject
118114 = lens _igliProject (\ s a -> s{_igliProject = a})
119115
120−-- | The URL of the zone where the instance group is located.
116+-- | The name of the zone where the instance group is located.
121117igliZone :: Lens' InstanceGroupsListInstances' Text
122118igliZone = lens _igliZone (\ s a -> s{_igliZone = a})
123119
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/RemoveInstances.hs+5−3
@@ -20,7 +20,8 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Removes a list of instances from an instance group.
23+-- | Removes one or more instances from the specified instance group, but
24+-- does not delete those instances.
2425--
2526-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupsRemoveInstances@.
2627module Network.Google.Resource.Compute.InstanceGroups.RemoveInstances
@@ -55,7 +56,8 @@ type InstanceGroupsRemoveInstancesResource =
5556 ReqBody '[JSON] InstanceGroupsRemoveInstancesRequest
5657 :> Post '[JSON] Operation
5758
58−-- | Removes a list of instances from an instance group.
59+-- | Removes one or more instances from the specified instance group, but
60+-- does not delete those instances.
5961--
6062-- /See:/ 'instanceGroupsRemoveInstances'' smart constructor.
6163data InstanceGroupsRemoveInstances' = InstanceGroupsRemoveInstances'
@@ -95,7 +97,7 @@ igriProject :: Lens' InstanceGroupsRemoveInstances' Text
9597igriProject
9698 = lens _igriProject (\ s a -> s{_igriProject = a})
9799
98−-- | The URL of the zone where the instance group is located.
100+-- | The name of the zone where the instance group is located.
99101igriZone :: Lens' InstanceGroupsRemoveInstances' Text
100102igriZone = lens _igriZone (\ s a -> s{_igriZone = a})
101103
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/SetNamedPorts.hs+3−3
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Sets the named ports in an instance group.
23+-- | Sets the named ports for the specified instance group.
2424--
2525-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstanceGroupsSetNamedPorts@.
2626module Network.Google.Resource.Compute.InstanceGroups.SetNamedPorts
@@ -55,7 +55,7 @@ type InstanceGroupsSetNamedPortsResource =
5555 ReqBody '[JSON] InstanceGroupsSetNamedPortsRequest :>
5656 Post '[JSON] Operation
5757
58−-- | Sets the named ports in an instance group.
58+-- | Sets the named ports for the specified instance group.
5959--
6060-- /See:/ 'instanceGroupsSetNamedPorts'' smart constructor.
6161data InstanceGroupsSetNamedPorts' = InstanceGroupsSetNamedPorts'
@@ -95,7 +95,7 @@ igsnpProject :: Lens' InstanceGroupsSetNamedPorts' Text
9595igsnpProject
9696 = lens _igsnpProject (\ s a -> s{_igsnpProject = a})
9797
98−-- | The URL of the zone where the instance group is located.
98+-- | The name of the zone where the instance group is located.
9999igsnpZone :: Lens' InstanceGroupsSetNamedPorts' Text
100100igsnpZone
101101 = lens _igsnpZone (\ s a -> s{_igsnpZone = a})
gogol-compute/gen/Network/Google/Resource/Compute/Instances/AggregatedList.hs+2−1
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−
23+-- | Retrieves aggregated list of instance resources.
2424--
2525-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeInstancesAggregatedList@.
2626module Network.Google.Resource.Compute.Instances.AggregatedList
@@ -54,6 +54,7 @@ type InstancesAggregatedListResource =
5454 QueryParam "alt" AltJSON :>
5555 Get '[JSON] InstanceAggregatedList
5656
57+-- | Retrieves aggregated list of instance resources.
5758--
5859-- /See:/ 'instancesAggregatedList'' smart constructor.
5960data InstancesAggregatedList' = InstancesAggregatedList'
gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Delete.hsnew file+96
@@ -0,0 +1,96 @@
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.Compute.SSLCertificates.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes the specified SslCertificate resource.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeSSLCertificatesDelete@.
26+module Network.Google.Resource.Compute.SSLCertificates.Delete
27+ (
28+ -- * REST Resource
29+ SSLCertificatesDeleteResource
30+
31+ -- * Creating a Request
32+ , sslCertificatesDelete'
33+ , SSLCertificatesDelete'
34+
35+ -- * Request Lenses
36+ , scdProject
37+ , scdSSLCertificate
38+ ) where
39+
40+import Network.Google.Compute.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @ComputeSSLCertificatesDelete@ method which the
44+-- 'SSLCertificatesDelete'' request conforms to.
45+type SSLCertificatesDeleteResource =
46+ Capture "project" Text :>
47+ "global" :>
48+ "sslCertificates" :>
49+ Capture "sslCertificate" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] Operation
51+
52+-- | Deletes the specified SslCertificate resource.
53+--
54+-- /See:/ 'sslCertificatesDelete'' smart constructor.
55+data SSLCertificatesDelete' = SSLCertificatesDelete'
56+ { _scdProject :: !Text
57+ , _scdSSLCertificate :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'SSLCertificatesDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'scdProject'
65+--
66+-- * 'scdSSLCertificate'
67+sslCertificatesDelete'
68+ :: Text -- ^ 'project'
69+ -> Text -- ^ 'sslCertificate'
70+ -> SSLCertificatesDelete'
71+sslCertificatesDelete' pScdProject_ pScdSSLCertificate_ =
72+ SSLCertificatesDelete'
73+ { _scdProject = pScdProject_
74+ , _scdSSLCertificate = pScdSSLCertificate_
75+ }
76+
77+-- | Name of the project scoping this request.
78+scdProject :: Lens' SSLCertificatesDelete' Text
79+scdProject
80+ = lens _scdProject (\ s a -> s{_scdProject = a})
81+
82+-- | Name of the SslCertificate resource to delete.
83+scdSSLCertificate :: Lens' SSLCertificatesDelete' Text
84+scdSSLCertificate
85+ = lens _scdSSLCertificate
86+ (\ s a -> s{_scdSSLCertificate = a})
87+
88+instance GoogleRequest SSLCertificatesDelete' where
89+ type Rs SSLCertificatesDelete' = Operation
90+ requestClient SSLCertificatesDelete'{..}
91+ = go _scdProject _scdSSLCertificate (Just AltJSON)
92+ computeService
93+ where go
94+ = buildClient
95+ (Proxy :: Proxy SSLCertificatesDeleteResource)
96+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Get.hsnew file+97
@@ -0,0 +1,97 @@
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.Compute.SSLCertificates.Get
17+-- Copyright : (c) 2015 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+-- | Returns the specified SslCertificate resource.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeSSLCertificatesGet@.
26+module Network.Google.Resource.Compute.SSLCertificates.Get
27+ (
28+ -- * REST Resource
29+ SSLCertificatesGetResource
30+
31+ -- * Creating a Request
32+ , sslCertificatesGet'
33+ , SSLCertificatesGet'
34+
35+ -- * Request Lenses
36+ , scgProject
37+ , scgSSLCertificate
38+ ) where
39+
40+import Network.Google.Compute.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @ComputeSSLCertificatesGet@ method which the
44+-- 'SSLCertificatesGet'' request conforms to.
45+type SSLCertificatesGetResource =
46+ Capture "project" Text :>
47+ "global" :>
48+ "sslCertificates" :>
49+ Capture "sslCertificate" Text :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] SSLCertificate
52+
53+-- | Returns the specified SslCertificate resource.
54+--
55+-- /See:/ 'sslCertificatesGet'' smart constructor.
56+data SSLCertificatesGet' = SSLCertificatesGet'
57+ { _scgProject :: !Text
58+ , _scgSSLCertificate :: !Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'SSLCertificatesGet'' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'scgProject'
66+--
67+-- * 'scgSSLCertificate'
68+sslCertificatesGet'
69+ :: Text -- ^ 'project'
70+ -> Text -- ^ 'sslCertificate'
71+ -> SSLCertificatesGet'
72+sslCertificatesGet' pScgProject_ pScgSSLCertificate_ =
73+ SSLCertificatesGet'
74+ { _scgProject = pScgProject_
75+ , _scgSSLCertificate = pScgSSLCertificate_
76+ }
77+
78+-- | Name of the project scoping this request.
79+scgProject :: Lens' SSLCertificatesGet' Text
80+scgProject
81+ = lens _scgProject (\ s a -> s{_scgProject = a})
82+
83+-- | Name of the SslCertificate resource to return.
84+scgSSLCertificate :: Lens' SSLCertificatesGet' Text
85+scgSSLCertificate
86+ = lens _scgSSLCertificate
87+ (\ s a -> s{_scgSSLCertificate = a})
88+
89+instance GoogleRequest SSLCertificatesGet' where
90+ type Rs SSLCertificatesGet' = SSLCertificate
91+ requestClient SSLCertificatesGet'{..}
92+ = go _scgProject _scgSSLCertificate (Just AltJSON)
93+ computeService
94+ where go
95+ = buildClient
96+ (Proxy :: Proxy SSLCertificatesGetResource)
97+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Insert.hsnew file+98
@@ -0,0 +1,98 @@
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.Compute.SSLCertificates.Insert
17+-- Copyright : (c) 2015 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+-- | Creates a SslCertificate resource in the specified project using the
24+-- data included in the request.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeSSLCertificatesInsert@.
27+module Network.Google.Resource.Compute.SSLCertificates.Insert
28+ (
29+ -- * REST Resource
30+ SSLCertificatesInsertResource
31+
32+ -- * Creating a Request
33+ , sslCertificatesInsert'
34+ , SSLCertificatesInsert'
35+
36+ -- * Request Lenses
37+ , sciProject
38+ , sciPayload
39+ ) where
40+
41+import Network.Google.Compute.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @ComputeSSLCertificatesInsert@ method which the
45+-- 'SSLCertificatesInsert'' request conforms to.
46+type SSLCertificatesInsertResource =
47+ Capture "project" Text :>
48+ "global" :>
49+ "sslCertificates" :>
50+ QueryParam "alt" AltJSON :>
51+ ReqBody '[JSON] SSLCertificate :>
52+ Post '[JSON] Operation
53+
54+-- | Creates a SslCertificate resource in the specified project using the
55+-- data included in the request.
56+--
57+-- /See:/ 'sslCertificatesInsert'' smart constructor.
58+data SSLCertificatesInsert' = SSLCertificatesInsert'
59+ { _sciProject :: !Text
60+ , _sciPayload :: !SSLCertificate
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'SSLCertificatesInsert'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'sciProject'
68+--
69+-- * 'sciPayload'
70+sslCertificatesInsert'
71+ :: Text -- ^ 'project'
72+ -> SSLCertificate -- ^ 'payload'
73+ -> SSLCertificatesInsert'
74+sslCertificatesInsert' pSciProject_ pSciPayload_ =
75+ SSLCertificatesInsert'
76+ { _sciProject = pSciProject_
77+ , _sciPayload = pSciPayload_
78+ }
79+
80+-- | Name of the project scoping this request.
81+sciProject :: Lens' SSLCertificatesInsert' Text
82+sciProject
83+ = lens _sciProject (\ s a -> s{_sciProject = a})
84+
85+-- | Multipart request metadata.
86+sciPayload :: Lens' SSLCertificatesInsert' SSLCertificate
87+sciPayload
88+ = lens _sciPayload (\ s a -> s{_sciPayload = a})
89+
90+instance GoogleRequest SSLCertificatesInsert' where
91+ type Rs SSLCertificatesInsert' = Operation
92+ requestClient SSLCertificatesInsert'{..}
93+ = go _sciProject (Just AltJSON) _sciPayload
94+ computeService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy SSLCertificatesInsertResource)
98+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/List.hsnew file+134
@@ -0,0 +1,134 @@
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.Compute.SSLCertificates.List
17+-- Copyright : (c) 2015 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+-- | Retrieves the list of SslCertificate resources available to the
24+-- specified project.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeSSLCertificatesList@.
27+module Network.Google.Resource.Compute.SSLCertificates.List
28+ (
29+ -- * REST Resource
30+ SSLCertificatesListResource
31+
32+ -- * Creating a Request
33+ , sslCertificatesList'
34+ , SSLCertificatesList'
35+
36+ -- * Request Lenses
37+ , sclProject
38+ , sclFilter
39+ , sclPageToken
40+ , sclMaxResults
41+ ) where
42+
43+import Network.Google.Compute.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @ComputeSSLCertificatesList@ method which the
47+-- 'SSLCertificatesList'' request conforms to.
48+type SSLCertificatesListResource =
49+ Capture "project" Text :>
50+ "global" :>
51+ "sslCertificates" :>
52+ QueryParam "filter" Text :>
53+ QueryParam "pageToken" Text :>
54+ QueryParam "maxResults" Word32 :>
55+ QueryParam "alt" AltJSON :>
56+ Get '[JSON] SSLCertificateList
57+
58+-- | Retrieves the list of SslCertificate resources available to the
59+-- specified project.
60+--
61+-- /See:/ 'sslCertificatesList'' smart constructor.
62+data SSLCertificatesList' = SSLCertificatesList'
63+ { _sclProject :: !Text
64+ , _sclFilter :: !(Maybe Text)
65+ , _sclPageToken :: !(Maybe Text)
66+ , _sclMaxResults :: !Word32
67+ } deriving (Eq,Show,Data,Typeable,Generic)
68+
69+-- | Creates a value of 'SSLCertificatesList'' with the minimum fields required to make a request.
70+--
71+-- Use one of the following lenses to modify other fields as desired:
72+--
73+-- * 'sclProject'
74+--
75+-- * 'sclFilter'
76+--
77+-- * 'sclPageToken'
78+--
79+-- * 'sclMaxResults'
80+sslCertificatesList'
81+ :: Text -- ^ 'project'
82+ -> SSLCertificatesList'
83+sslCertificatesList' pSclProject_ =
84+ SSLCertificatesList'
85+ { _sclProject = pSclProject_
86+ , _sclFilter = Nothing
87+ , _sclPageToken = Nothing
88+ , _sclMaxResults = 500
89+ }
90+
91+-- | Name of the project scoping this request.
92+sclProject :: Lens' SSLCertificatesList' Text
93+sclProject
94+ = lens _sclProject (\ s a -> s{_sclProject = a})
95+
96+-- | Sets a filter expression for filtering listed resources, in the form
97+-- filter={expression}. Your {expression} must be in the format: FIELD_NAME
98+-- COMPARISON_STRING LITERAL_STRING. The FIELD_NAME is the name of the
99+-- field you want to compare. Only atomic field types are supported
100+-- (string, number, boolean). The COMPARISON_STRING must be either eq
101+-- (equals) or ne (not equals). The LITERAL_STRING is the string value to
102+-- filter to. The literal value must be valid for the type of field
103+-- (string, number, boolean). For string fields, the literal value is
104+-- interpreted as a regular expression using RE2 syntax. The literal value
105+-- must match the entire field. For example, filter=name ne
106+-- example-instance.
107+sclFilter :: Lens' SSLCertificatesList' (Maybe Text)
108+sclFilter
109+ = lens _sclFilter (\ s a -> s{_sclFilter = a})
110+
111+-- | Specifies a page token to use. Use this parameter if you want to list
112+-- the next page of results. Set pageToken to the nextPageToken returned by
113+-- a previous list request.
114+sclPageToken :: Lens' SSLCertificatesList' (Maybe Text)
115+sclPageToken
116+ = lens _sclPageToken (\ s a -> s{_sclPageToken = a})
117+
118+-- | Maximum count of results to be returned.
119+sclMaxResults :: Lens' SSLCertificatesList' Word32
120+sclMaxResults
121+ = lens _sclMaxResults
122+ (\ s a -> s{_sclMaxResults = a})
123+
124+instance GoogleRequest SSLCertificatesList' where
125+ type Rs SSLCertificatesList' = SSLCertificateList
126+ requestClient SSLCertificatesList'{..}
127+ = go _sclProject _sclFilter _sclPageToken
128+ (Just _sclMaxResults)
129+ (Just AltJSON)
130+ computeService
131+ where go
132+ = buildClient
133+ (Proxy :: Proxy SSLCertificatesListResource)
134+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Delete.hsnew file+98
@@ -0,0 +1,98 @@
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.Compute.TargetHTTPSProxies.Delete
17+-- Copyright : (c) 2015 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+-- | Deletes the specified TargetHttpsProxy resource.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeTargetHTTPSProxiesDelete@.
26+module Network.Google.Resource.Compute.TargetHTTPSProxies.Delete
27+ (
28+ -- * REST Resource
29+ TargetHTTPSProxiesDeleteResource
30+
31+ -- * Creating a Request
32+ , targetHTTPSProxiesDelete'
33+ , TargetHTTPSProxiesDelete'
34+
35+ -- * Request Lenses
36+ , thpdProject
37+ , thpdTargetHTTPSProxy
38+ ) where
39+
40+import Network.Google.Compute.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @ComputeTargetHTTPSProxiesDelete@ method which the
44+-- 'TargetHTTPSProxiesDelete'' request conforms to.
45+type TargetHTTPSProxiesDeleteResource =
46+ Capture "project" Text :>
47+ "global" :>
48+ "targetHttpsProxies" :>
49+ Capture "targetHttpsProxy" Text :>
50+ QueryParam "alt" AltJSON :> Delete '[JSON] Operation
51+
52+-- | Deletes the specified TargetHttpsProxy resource.
53+--
54+-- /See:/ 'targetHTTPSProxiesDelete'' smart constructor.
55+data TargetHTTPSProxiesDelete' = TargetHTTPSProxiesDelete'
56+ { _thpdProject :: !Text
57+ , _thpdTargetHTTPSProxy :: !Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'TargetHTTPSProxiesDelete'' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'thpdProject'
65+--
66+-- * 'thpdTargetHTTPSProxy'
67+targetHTTPSProxiesDelete'
68+ :: Text -- ^ 'project'
69+ -> Text -- ^ 'targetHttpsProxy'
70+ -> TargetHTTPSProxiesDelete'
71+targetHTTPSProxiesDelete' pThpdProject_ pThpdTargetHTTPSProxy_ =
72+ TargetHTTPSProxiesDelete'
73+ { _thpdProject = pThpdProject_
74+ , _thpdTargetHTTPSProxy = pThpdTargetHTTPSProxy_
75+ }
76+
77+-- | Name of the project scoping this request.
78+thpdProject :: Lens' TargetHTTPSProxiesDelete' Text
79+thpdProject
80+ = lens _thpdProject (\ s a -> s{_thpdProject = a})
81+
82+-- | Name of the TargetHttpsProxy resource to delete.
83+thpdTargetHTTPSProxy :: Lens' TargetHTTPSProxiesDelete' Text
84+thpdTargetHTTPSProxy
85+ = lens _thpdTargetHTTPSProxy
86+ (\ s a -> s{_thpdTargetHTTPSProxy = a})
87+
88+instance GoogleRequest TargetHTTPSProxiesDelete'
89+ where
90+ type Rs TargetHTTPSProxiesDelete' = Operation
91+ requestClient TargetHTTPSProxiesDelete'{..}
92+ = go _thpdProject _thpdTargetHTTPSProxy
93+ (Just AltJSON)
94+ computeService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy TargetHTTPSProxiesDeleteResource)
98+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Get.hsnew file+98
@@ -0,0 +1,98 @@
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.Compute.TargetHTTPSProxies.Get
17+-- Copyright : (c) 2015 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+-- | Returns the specified TargetHttpsProxy resource.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeTargetHTTPSProxiesGet@.
26+module Network.Google.Resource.Compute.TargetHTTPSProxies.Get
27+ (
28+ -- * REST Resource
29+ TargetHTTPSProxiesGetResource
30+
31+ -- * Creating a Request
32+ , targetHTTPSProxiesGet'
33+ , TargetHTTPSProxiesGet'
34+
35+ -- * Request Lenses
36+ , thpgProject
37+ , thpgTargetHTTPSProxy
38+ ) where
39+
40+import Network.Google.Compute.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @ComputeTargetHTTPSProxiesGet@ method which the
44+-- 'TargetHTTPSProxiesGet'' request conforms to.
45+type TargetHTTPSProxiesGetResource =
46+ Capture "project" Text :>
47+ "global" :>
48+ "targetHttpsProxies" :>
49+ Capture "targetHttpsProxy" Text :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] TargetHTTPSProxy
52+
53+-- | Returns the specified TargetHttpsProxy resource.
54+--
55+-- /See:/ 'targetHTTPSProxiesGet'' smart constructor.
56+data TargetHTTPSProxiesGet' = TargetHTTPSProxiesGet'
57+ { _thpgProject :: !Text
58+ , _thpgTargetHTTPSProxy :: !Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'TargetHTTPSProxiesGet'' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'thpgProject'
66+--
67+-- * 'thpgTargetHTTPSProxy'
68+targetHTTPSProxiesGet'
69+ :: Text -- ^ 'project'
70+ -> Text -- ^ 'targetHttpsProxy'
71+ -> TargetHTTPSProxiesGet'
72+targetHTTPSProxiesGet' pThpgProject_ pThpgTargetHTTPSProxy_ =
73+ TargetHTTPSProxiesGet'
74+ { _thpgProject = pThpgProject_
75+ , _thpgTargetHTTPSProxy = pThpgTargetHTTPSProxy_
76+ }
77+
78+-- | Name of the project scoping this request.
79+thpgProject :: Lens' TargetHTTPSProxiesGet' Text
80+thpgProject
81+ = lens _thpgProject (\ s a -> s{_thpgProject = a})
82+
83+-- | Name of the TargetHttpsProxy resource to return.
84+thpgTargetHTTPSProxy :: Lens' TargetHTTPSProxiesGet' Text
85+thpgTargetHTTPSProxy
86+ = lens _thpgTargetHTTPSProxy
87+ (\ s a -> s{_thpgTargetHTTPSProxy = a})
88+
89+instance GoogleRequest TargetHTTPSProxiesGet' where
90+ type Rs TargetHTTPSProxiesGet' = TargetHTTPSProxy
91+ requestClient TargetHTTPSProxiesGet'{..}
92+ = go _thpgProject _thpgTargetHTTPSProxy
93+ (Just AltJSON)
94+ computeService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy TargetHTTPSProxiesGetResource)
98+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Insert.hsnew file+99
@@ -0,0 +1,99 @@
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.Compute.TargetHTTPSProxies.Insert
17+-- Copyright : (c) 2015 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+-- | Creates a TargetHttpsProxy resource in the specified project using the
24+-- data included in the request.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeTargetHTTPSProxiesInsert@.
27+module Network.Google.Resource.Compute.TargetHTTPSProxies.Insert
28+ (
29+ -- * REST Resource
30+ TargetHTTPSProxiesInsertResource
31+
32+ -- * Creating a Request
33+ , targetHTTPSProxiesInsert'
34+ , TargetHTTPSProxiesInsert'
35+
36+ -- * Request Lenses
37+ , thpiProject
38+ , thpiPayload
39+ ) where
40+
41+import Network.Google.Compute.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @ComputeTargetHTTPSProxiesInsert@ method which the
45+-- 'TargetHTTPSProxiesInsert'' request conforms to.
46+type TargetHTTPSProxiesInsertResource =
47+ Capture "project" Text :>
48+ "global" :>
49+ "targetHttpsProxies" :>
50+ QueryParam "alt" AltJSON :>
51+ ReqBody '[JSON] TargetHTTPSProxy :>
52+ Post '[JSON] Operation
53+
54+-- | Creates a TargetHttpsProxy resource in the specified project using the
55+-- data included in the request.
56+--
57+-- /See:/ 'targetHTTPSProxiesInsert'' smart constructor.
58+data TargetHTTPSProxiesInsert' = TargetHTTPSProxiesInsert'
59+ { _thpiProject :: !Text
60+ , _thpiPayload :: !TargetHTTPSProxy
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'TargetHTTPSProxiesInsert'' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'thpiProject'
68+--
69+-- * 'thpiPayload'
70+targetHTTPSProxiesInsert'
71+ :: Text -- ^ 'project'
72+ -> TargetHTTPSProxy -- ^ 'payload'
73+ -> TargetHTTPSProxiesInsert'
74+targetHTTPSProxiesInsert' pThpiProject_ pThpiPayload_ =
75+ TargetHTTPSProxiesInsert'
76+ { _thpiProject = pThpiProject_
77+ , _thpiPayload = pThpiPayload_
78+ }
79+
80+-- | Name of the project scoping this request.
81+thpiProject :: Lens' TargetHTTPSProxiesInsert' Text
82+thpiProject
83+ = lens _thpiProject (\ s a -> s{_thpiProject = a})
84+
85+-- | Multipart request metadata.
86+thpiPayload :: Lens' TargetHTTPSProxiesInsert' TargetHTTPSProxy
87+thpiPayload
88+ = lens _thpiPayload (\ s a -> s{_thpiPayload = a})
89+
90+instance GoogleRequest TargetHTTPSProxiesInsert'
91+ where
92+ type Rs TargetHTTPSProxiesInsert' = Operation
93+ requestClient TargetHTTPSProxiesInsert'{..}
94+ = go _thpiProject (Just AltJSON) _thpiPayload
95+ computeService
96+ where go
97+ = buildClient
98+ (Proxy :: Proxy TargetHTTPSProxiesInsertResource)
99+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/List.hsnew file+136
@@ -0,0 +1,136 @@
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.Compute.TargetHTTPSProxies.List
17+-- Copyright : (c) 2015 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+-- | Retrieves the list of TargetHttpsProxy resources available to the
24+-- specified project.
25+--
26+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeTargetHTTPSProxiesList@.
27+module Network.Google.Resource.Compute.TargetHTTPSProxies.List
28+ (
29+ -- * REST Resource
30+ TargetHTTPSProxiesListResource
31+
32+ -- * Creating a Request
33+ , targetHTTPSProxiesList'
34+ , TargetHTTPSProxiesList'
35+
36+ -- * Request Lenses
37+ , thplProject
38+ , thplFilter
39+ , thplPageToken
40+ , thplMaxResults
41+ ) where
42+
43+import Network.Google.Compute.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @ComputeTargetHTTPSProxiesList@ method which the
47+-- 'TargetHTTPSProxiesList'' request conforms to.
48+type TargetHTTPSProxiesListResource =
49+ Capture "project" Text :>
50+ "global" :>
51+ "targetHttpsProxies" :>
52+ QueryParam "filter" Text :>
53+ QueryParam "pageToken" Text :>
54+ QueryParam "maxResults" Word32 :>
55+ QueryParam "alt" AltJSON :>
56+ Get '[JSON] TargetHTTPSProxyList
57+
58+-- | Retrieves the list of TargetHttpsProxy resources available to the
59+-- specified project.
60+--
61+-- /See:/ 'targetHTTPSProxiesList'' smart constructor.
62+data TargetHTTPSProxiesList' = TargetHTTPSProxiesList'
63+ { _thplProject :: !Text
64+ , _thplFilter :: !(Maybe Text)
65+ , _thplPageToken :: !(Maybe Text)
66+ , _thplMaxResults :: !Word32
67+ } deriving (Eq,Show,Data,Typeable,Generic)
68+
69+-- | Creates a value of 'TargetHTTPSProxiesList'' with the minimum fields required to make a request.
70+--
71+-- Use one of the following lenses to modify other fields as desired:
72+--
73+-- * 'thplProject'
74+--
75+-- * 'thplFilter'
76+--
77+-- * 'thplPageToken'
78+--
79+-- * 'thplMaxResults'
80+targetHTTPSProxiesList'
81+ :: Text -- ^ 'project'
82+ -> TargetHTTPSProxiesList'
83+targetHTTPSProxiesList' pThplProject_ =
84+ TargetHTTPSProxiesList'
85+ { _thplProject = pThplProject_
86+ , _thplFilter = Nothing
87+ , _thplPageToken = Nothing
88+ , _thplMaxResults = 500
89+ }
90+
91+-- | Name of the project scoping this request.
92+thplProject :: Lens' TargetHTTPSProxiesList' Text
93+thplProject
94+ = lens _thplProject (\ s a -> s{_thplProject = a})
95+
96+-- | Sets a filter expression for filtering listed resources, in the form
97+-- filter={expression}. Your {expression} must be in the format: FIELD_NAME
98+-- COMPARISON_STRING LITERAL_STRING. The FIELD_NAME is the name of the
99+-- field you want to compare. Only atomic field types are supported
100+-- (string, number, boolean). The COMPARISON_STRING must be either eq
101+-- (equals) or ne (not equals). The LITERAL_STRING is the string value to
102+-- filter to. The literal value must be valid for the type of field
103+-- (string, number, boolean). For string fields, the literal value is
104+-- interpreted as a regular expression using RE2 syntax. The literal value
105+-- must match the entire field. For example, filter=name ne
106+-- example-instance.
107+thplFilter :: Lens' TargetHTTPSProxiesList' (Maybe Text)
108+thplFilter
109+ = lens _thplFilter (\ s a -> s{_thplFilter = a})
110+
111+-- | Specifies a page token to use. Use this parameter if you want to list
112+-- the next page of results. Set pageToken to the nextPageToken returned by
113+-- a previous list request.
114+thplPageToken :: Lens' TargetHTTPSProxiesList' (Maybe Text)
115+thplPageToken
116+ = lens _thplPageToken
117+ (\ s a -> s{_thplPageToken = a})
118+
119+-- | Maximum count of results to be returned.
120+thplMaxResults :: Lens' TargetHTTPSProxiesList' Word32
121+thplMaxResults
122+ = lens _thplMaxResults
123+ (\ s a -> s{_thplMaxResults = a})
124+
125+instance GoogleRequest TargetHTTPSProxiesList' where
126+ type Rs TargetHTTPSProxiesList' =
127+ TargetHTTPSProxyList
128+ requestClient TargetHTTPSProxiesList'{..}
129+ = go _thplProject _thplFilter _thplPageToken
130+ (Just _thplMaxResults)
131+ (Just AltJSON)
132+ computeService
133+ where go
134+ = buildClient
135+ (Proxy :: Proxy TargetHTTPSProxiesListResource)
136+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetSSLCertificates.hsnew file+118
@@ -0,0 +1,118 @@
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.Compute.TargetHTTPSProxies.SetSSLCertificates
17+-- Copyright : (c) 2015 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+-- | Replaces SslCertificates for TargetHttpsProxy.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeTargetHTTPSProxiesSetSSLCertificates@.
26+module Network.Google.Resource.Compute.TargetHTTPSProxies.SetSSLCertificates
27+ (
28+ -- * REST Resource
29+ TargetHTTPSProxiesSetSSLCertificatesResource
30+
31+ -- * Creating a Request
32+ , targetHTTPSProxiesSetSSLCertificates'
33+ , TargetHTTPSProxiesSetSSLCertificates'
34+
35+ -- * Request Lenses
36+ , thpsscProject
37+ , thpsscPayload
38+ , thpsscTargetHTTPSProxy
39+ ) where
40+
41+import Network.Google.Compute.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @ComputeTargetHTTPSProxiesSetSSLCertificates@ method which the
45+-- 'TargetHTTPSProxiesSetSSLCertificates'' request conforms to.
46+type TargetHTTPSProxiesSetSSLCertificatesResource =
47+ Capture "project" Text :>
48+ "targetHttpsProxies" :>
49+ Capture "targetHttpsProxy" Text :>
50+ "setSslCertificates" :>
51+ QueryParam "alt" AltJSON :>
52+ ReqBody '[JSON]
53+ TargetHTTPSProxiesSetSSLCertificatesRequest
54+ :> Post '[JSON] Operation
55+
56+-- | Replaces SslCertificates for TargetHttpsProxy.
57+--
58+-- /See:/ 'targetHTTPSProxiesSetSSLCertificates'' smart constructor.
59+data TargetHTTPSProxiesSetSSLCertificates' = TargetHTTPSProxiesSetSSLCertificates'
60+ { _thpsscProject :: !Text
61+ , _thpsscPayload :: !TargetHTTPSProxiesSetSSLCertificatesRequest
62+ , _thpsscTargetHTTPSProxy :: !Text
63+ } deriving (Eq,Show,Data,Typeable,Generic)
64+
65+-- | Creates a value of 'TargetHTTPSProxiesSetSSLCertificates'' with the minimum fields required to make a request.
66+--
67+-- Use one of the following lenses to modify other fields as desired:
68+--
69+-- * 'thpsscProject'
70+--
71+-- * 'thpsscPayload'
72+--
73+-- * 'thpsscTargetHTTPSProxy'
74+targetHTTPSProxiesSetSSLCertificates'
75+ :: Text -- ^ 'project'
76+ -> TargetHTTPSProxiesSetSSLCertificatesRequest -- ^ 'payload'
77+ -> Text -- ^ 'targetHttpsProxy'
78+ -> TargetHTTPSProxiesSetSSLCertificates'
79+targetHTTPSProxiesSetSSLCertificates' pThpsscProject_ pThpsscPayload_ pThpsscTargetHTTPSProxy_ =
80+ TargetHTTPSProxiesSetSSLCertificates'
81+ { _thpsscProject = pThpsscProject_
82+ , _thpsscPayload = pThpsscPayload_
83+ , _thpsscTargetHTTPSProxy = pThpsscTargetHTTPSProxy_
84+ }
85+
86+-- | Name of the project scoping this request.
87+thpsscProject :: Lens' TargetHTTPSProxiesSetSSLCertificates' Text
88+thpsscProject
89+ = lens _thpsscProject
90+ (\ s a -> s{_thpsscProject = a})
91+
92+-- | Multipart request metadata.
93+thpsscPayload :: Lens' TargetHTTPSProxiesSetSSLCertificates' TargetHTTPSProxiesSetSSLCertificatesRequest
94+thpsscPayload
95+ = lens _thpsscPayload
96+ (\ s a -> s{_thpsscPayload = a})
97+
98+-- | Name of the TargetHttpsProxy resource whose URL map is to be set.
99+thpsscTargetHTTPSProxy :: Lens' TargetHTTPSProxiesSetSSLCertificates' Text
100+thpsscTargetHTTPSProxy
101+ = lens _thpsscTargetHTTPSProxy
102+ (\ s a -> s{_thpsscTargetHTTPSProxy = a})
103+
104+instance GoogleRequest
105+ TargetHTTPSProxiesSetSSLCertificates' where
106+ type Rs TargetHTTPSProxiesSetSSLCertificates' =
107+ Operation
108+ requestClient
109+ TargetHTTPSProxiesSetSSLCertificates'{..}
110+ = go _thpsscProject _thpsscTargetHTTPSProxy
111+ (Just AltJSON)
112+ _thpsscPayload
113+ computeService
114+ where go
115+ = buildClient
116+ (Proxy ::
117+ Proxy TargetHTTPSProxiesSetSSLCertificatesResource)
118+ mempty
gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetURLMap.hsnew file+114
@@ -0,0 +1,114 @@
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.Compute.TargetHTTPSProxies.SetURLMap
17+-- Copyright : (c) 2015 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+-- | Changes the URL map for TargetHttpsProxy.
24+--
25+-- /See:/ <https://developers.google.com/compute/docs/reference/latest/ Compute Engine API Reference> for @ComputeTargetHTTPSProxiesSetURLMap@.
26+module Network.Google.Resource.Compute.TargetHTTPSProxies.SetURLMap
27+ (
28+ -- * REST Resource
29+ TargetHTTPSProxiesSetURLMapResource
30+
31+ -- * Creating a Request
32+ , targetHTTPSProxiesSetURLMap'
33+ , TargetHTTPSProxiesSetURLMap'
34+
35+ -- * Request Lenses
36+ , thpsumProject
37+ , thpsumPayload
38+ , thpsumTargetHTTPSProxy
39+ ) where
40+
41+import Network.Google.Compute.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @ComputeTargetHTTPSProxiesSetURLMap@ method which the
45+-- 'TargetHTTPSProxiesSetURLMap'' request conforms to.
46+type TargetHTTPSProxiesSetURLMapResource =
47+ Capture "project" Text :>
48+ "targetHttpsProxies" :>
49+ Capture "targetHttpsProxy" Text :>
50+ "setUrlMap" :>
51+ QueryParam "alt" AltJSON :>
52+ ReqBody '[JSON] URLMapReference :>
53+ Post '[JSON] Operation
54+
55+-- | Changes the URL map for TargetHttpsProxy.
56+--
57+-- /See:/ 'targetHTTPSProxiesSetURLMap'' smart constructor.
58+data TargetHTTPSProxiesSetURLMap' = TargetHTTPSProxiesSetURLMap'
59+ { _thpsumProject :: !Text
60+ , _thpsumPayload :: !URLMapReference
61+ , _thpsumTargetHTTPSProxy :: !Text
62+ } deriving (Eq,Show,Data,Typeable,Generic)
63+
64+-- | Creates a value of 'TargetHTTPSProxiesSetURLMap'' with the minimum fields required to make a request.
65+--
66+-- Use one of the following lenses to modify other fields as desired:
67+--
68+-- * 'thpsumProject'
69+--
70+-- * 'thpsumPayload'
71+--
72+-- * 'thpsumTargetHTTPSProxy'
73+targetHTTPSProxiesSetURLMap'
74+ :: Text -- ^ 'project'
75+ -> URLMapReference -- ^ 'payload'
76+ -> Text -- ^ 'targetHttpsProxy'
77+ -> TargetHTTPSProxiesSetURLMap'
78+targetHTTPSProxiesSetURLMap' pThpsumProject_ pThpsumPayload_ pThpsumTargetHTTPSProxy_ =
79+ TargetHTTPSProxiesSetURLMap'
80+ { _thpsumProject = pThpsumProject_
81+ , _thpsumPayload = pThpsumPayload_
82+ , _thpsumTargetHTTPSProxy = pThpsumTargetHTTPSProxy_
83+ }
84+
85+-- | Name of the project scoping this request.
86+thpsumProject :: Lens' TargetHTTPSProxiesSetURLMap' Text
87+thpsumProject
88+ = lens _thpsumProject
89+ (\ s a -> s{_thpsumProject = a})
90+
91+-- | Multipart request metadata.
92+thpsumPayload :: Lens' TargetHTTPSProxiesSetURLMap' URLMapReference
93+thpsumPayload
94+ = lens _thpsumPayload
95+ (\ s a -> s{_thpsumPayload = a})
96+
97+-- | Name of the TargetHttpsProxy resource whose URL map is to be set.
98+thpsumTargetHTTPSProxy :: Lens' TargetHTTPSProxiesSetURLMap' Text
99+thpsumTargetHTTPSProxy
100+ = lens _thpsumTargetHTTPSProxy
101+ (\ s a -> s{_thpsumTargetHTTPSProxy = a})
102+
103+instance GoogleRequest TargetHTTPSProxiesSetURLMap'
104+ where
105+ type Rs TargetHTTPSProxiesSetURLMap' = Operation
106+ requestClient TargetHTTPSProxiesSetURLMap'{..}
107+ = go _thpsumProject _thpsumTargetHTTPSProxy
108+ (Just AltJSON)
109+ _thpsumPayload
110+ computeService
111+ where go
112+ = buildClient
113+ (Proxy :: Proxy TargetHTTPSProxiesSetURLMapResource)
114+ mempty
gogol-compute/gogol-compute.cabal+16
@@ -94,6 +94,12 @@ library
9494 , Network.Google.Resource.Compute.HTTPHealthChecks.List
9595 , Network.Google.Resource.Compute.HTTPHealthChecks.Patch
9696 , Network.Google.Resource.Compute.HTTPHealthChecks.Update
97+ , Network.Google.Resource.Compute.HTTPSHealthChecks.Delete
98+ , Network.Google.Resource.Compute.HTTPSHealthChecks.Get
99+ , Network.Google.Resource.Compute.HTTPSHealthChecks.Insert
100+ , Network.Google.Resource.Compute.HTTPSHealthChecks.List
101+ , Network.Google.Resource.Compute.HTTPSHealthChecks.Patch
102+ , Network.Google.Resource.Compute.HTTPSHealthChecks.Update
97103 , Network.Google.Resource.Compute.Images.Delete
98104 , Network.Google.Resource.Compute.Images.Deprecate
99105 , Network.Google.Resource.Compute.Images.Get
@@ -163,6 +169,10 @@ library
163169 , Network.Google.Resource.Compute.Routes.Get
164170 , Network.Google.Resource.Compute.Routes.Insert
165171 , Network.Google.Resource.Compute.Routes.List
172+ , Network.Google.Resource.Compute.SSLCertificates.Delete
173+ , Network.Google.Resource.Compute.SSLCertificates.Get
174+ , Network.Google.Resource.Compute.SSLCertificates.Insert
175+ , Network.Google.Resource.Compute.SSLCertificates.List
166176 , Network.Google.Resource.Compute.Snapshots.Delete
167177 , Network.Google.Resource.Compute.Snapshots.Get
168178 , Network.Google.Resource.Compute.Snapshots.List
@@ -171,6 +181,12 @@ library
171181 , Network.Google.Resource.Compute.TargetHTTPProxies.Insert
172182 , Network.Google.Resource.Compute.TargetHTTPProxies.List
173183 , Network.Google.Resource.Compute.TargetHTTPProxies.SetURLMap
184+ , Network.Google.Resource.Compute.TargetHTTPSProxies.Delete
185+ , Network.Google.Resource.Compute.TargetHTTPSProxies.Get
186+ , Network.Google.Resource.Compute.TargetHTTPSProxies.Insert
187+ , Network.Google.Resource.Compute.TargetHTTPSProxies.List
188+ , Network.Google.Resource.Compute.TargetHTTPSProxies.SetSSLCertificates
189+ , Network.Google.Resource.Compute.TargetHTTPSProxies.SetURLMap
174190 , Network.Google.Resource.Compute.TargetInstances.AggregatedList
175191 , Network.Google.Resource.Compute.TargetInstances.Delete
176192 , Network.Google.Resource.Compute.TargetInstances.Get
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids.hs+4
@@ -108,6 +108,7 @@ module Network.Google.DoubleClickBids
108108 , downloadLineItemsRequest
109109 , dlirFilterType
110110 , dlirFormat
111+ , dlirFileSpec
111112 , dlirFilterIds
112113
113114 -- ** ListQueriesResponse
@@ -155,6 +156,9 @@ module Network.Google.DoubleClickBids
155156 , rsErrors
156157 , rsEntityId
157158
159+ -- ** DownloadLineItemsRequestFileSpec
160+ , DownloadLineItemsRequestFileSpec (..)
161+
158162 -- ** ReportKey
159163 , ReportKey
160164 , reportKey
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types.hs+4
@@ -74,6 +74,7 @@ module Network.Google.DoubleClickBids.Types
7474 , downloadLineItemsRequest
7575 , dlirFilterType
7676 , dlirFormat
77+ , dlirFileSpec
7778 , dlirFilterIds
7879
7980 -- * ListQueriesResponse
@@ -121,6 +122,9 @@ module Network.Google.DoubleClickBids.Types
121122 , rsErrors
122123 , rsEntityId
123124
125+ -- * DownloadLineItemsRequestFileSpec
126+ , DownloadLineItemsRequestFileSpec (..)
127+
124128 -- * ReportKey
125129 , ReportKey
126130 , reportKey
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Product.hs+15−3
@@ -423,6 +423,7 @@ instance ToJSON UploadLineItemsRequest where
423423data DownloadLineItemsRequest = DownloadLineItemsRequest
424424 { _dlirFilterType :: !(Maybe DownloadLineItemsRequestFilterType)
425425 , _dlirFormat :: !(Maybe DownloadLineItemsRequestFormat)
426+ , _dlirFileSpec :: !(Maybe DownloadLineItemsRequestFileSpec)
426427 , _dlirFilterIds :: !(Maybe [Int64])
427428 } deriving (Eq,Show,Data,Typeable,Generic)
428429
@@ -434,6 +435,8 @@ data DownloadLineItemsRequest = DownloadLineItemsRequest
434435--
435436-- * 'dlirFormat'
436437--
438+-- * 'dlirFileSpec'
439+--
437440-- * 'dlirFilterIds'
438441downloadLineItemsRequest
439442 :: DownloadLineItemsRequest
@@ -441,6 +444,7 @@ downloadLineItemsRequest =
441444 DownloadLineItemsRequest
442445 { _dlirFilterType = Nothing
443446 , _dlirFormat = Nothing
447+ , _dlirFileSpec = Nothing
444448 , _dlirFilterIds = Nothing
445449 }
446450
@@ -455,6 +459,12 @@ dlirFormat :: Lens' DownloadLineItemsRequest (Maybe DownloadLineItemsRequestForm
455459dlirFormat
456460 = lens _dlirFormat (\ s a -> s{_dlirFormat = a})
457461
462+-- | File specification (column names, types, order) in which the line items
463+-- will be returned. Default to EWF.
464+dlirFileSpec :: Lens' DownloadLineItemsRequest (Maybe DownloadLineItemsRequestFileSpec)
465+dlirFileSpec
466+ = lens _dlirFileSpec (\ s a -> s{_dlirFileSpec = a})
467+
458468-- | Ids of the specified filter type used to filter line items to fetch. If
459469-- omitted, all the line items will be returned.
460470dlirFilterIds :: Lens' DownloadLineItemsRequest [Int64]
@@ -470,7 +480,8 @@ instance FromJSON DownloadLineItemsRequest where
470480 (\ o ->
471481 DownloadLineItemsRequest <$>
472482 (o .:? "filterType") <*> (o .:? "format") <*>
473− (o .:? "filterIds" .!= mempty))
483+ (o .:? "fileSpec")
484+ <*> (o .:? "filterIds" .!= mempty))
474485
475486instance ToJSON DownloadLineItemsRequest where
476487 toJSON DownloadLineItemsRequest{..}
@@ -478,6 +489,7 @@ instance ToJSON DownloadLineItemsRequest where
478489 (catMaybes
479490 [("filterType" .=) <$> _dlirFilterType,
480491 ("format" .=) <$> _dlirFormat,
492+ ("fileSpec" .=) <$> _dlirFileSpec,
481493 ("filterIds" .=) <$> _dlirFilterIds])
482494
483495-- | List queries response.
@@ -984,8 +996,8 @@ downloadLineItemsResponse =
984996 { _dlirLineItems = Nothing
985997 }
986998
987−-- | Retrieved line items in CSV format. Refer to Entity Write File Format
988−-- for more information on file format.
999+-- | Retrieved line items in CSV format. Refer to Entity Write File Format or
1000+-- Structured Data File Format for more information on file formats.
9891001dlirLineItems :: Lens' DownloadLineItemsResponse (Maybe Text)
9901002dlirLineItems
9911003 = lens _dlirLineItems
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+180
@@ -81,6 +81,8 @@ data ParametersType
8181 -- ^ @TYPE_NIELSEN_AUDIENCE_PROFILE@
8282 | TypeNielsenDailyReachBuild
8383 -- ^ @TYPE_NIELSEN_DAILY_REACH_BUILD@
84+ | TypeNielsenOnlineGlobalMarket
85+ -- ^ @TYPE_NIELSEN_ONLINE_GLOBAL_MARKET@
8486 | TypeNielsenSite
8587 -- ^ @TYPE_NIELSEN_SITE@
8688 | TypeOrderId
@@ -122,6 +124,7 @@ instance FromText ParametersType where
122124 "TYPE_KEYWORD" -> Just TypeKeyword
123125 "TYPE_NIELSEN_AUDIENCE_PROFILE" -> Just TypeNielsenAudienceProFile
124126 "TYPE_NIELSEN_DAILY_REACH_BUILD" -> Just TypeNielsenDailyReachBuild
127+ "TYPE_NIELSEN_ONLINE_GLOBAL_MARKET" -> Just TypeNielsenOnlineGlobalMarket
125128 "TYPE_NIELSEN_SITE" -> Just TypeNielsenSite
126129 "TYPE_ORDER_ID" -> Just TypeOrderId
127130 "TYPE_PAGE_CATEGORY" -> Just TypePageCategory
@@ -151,6 +154,7 @@ instance ToText ParametersType where
151154 TypeKeyword -> "TYPE_KEYWORD"
152155 TypeNielsenAudienceProFile -> "TYPE_NIELSEN_AUDIENCE_PROFILE"
153156 TypeNielsenDailyReachBuild -> "TYPE_NIELSEN_DAILY_REACH_BUILD"
157+ TypeNielsenOnlineGlobalMarket -> "TYPE_NIELSEN_ONLINE_GLOBAL_MARKET"
154158 TypeNielsenSite -> "TYPE_NIELSEN_SITE"
155159 TypeOrderId -> "TYPE_ORDER_ID"
156160 TypePageCategory -> "TYPE_PAGE_CATEGORY"
@@ -425,6 +429,18 @@ data ParametersMetricsItem
425429 -- ^ @METRIC_FEE20_PARTNER@
426430 | MetricFEE20Usd
427431 -- ^ @METRIC_FEE20_USD@
432+ | MetricFEE21Advertiser
433+ -- ^ @METRIC_FEE21_ADVERTISER@
434+ | MetricFEE21Partner
435+ -- ^ @METRIC_FEE21_PARTNER@
436+ | MetricFEE21Usd
437+ -- ^ @METRIC_FEE21_USD@
438+ | MetricFEE22Advertiser
439+ -- ^ @METRIC_FEE22_ADVERTISER@
440+ | MetricFEE22Partner
441+ -- ^ @METRIC_FEE22_PARTNER@
442+ | MetricFEE22Usd
443+ -- ^ @METRIC_FEE22_USD@
428444 | MetricFEE2Advertiser
429445 -- ^ @METRIC_FEE2_ADVERTISER@
430446 | MetricFEE2Partner
@@ -523,6 +539,12 @@ data ParametersMetricsItem
523539 -- ^ @METRIC_MEDIA_COST_PARTNER@
524540 | MetricMediaCostUsd
525541 -- ^ @METRIC_MEDIA_COST_USD@
542+ | MetricMediaCostViewableEcpmAdvertiser
543+ -- ^ @METRIC_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER@
544+ | MetricMediaCostViewableEcpmPartner
545+ -- ^ @METRIC_MEDIA_COST_VIEWABLE_ECPM_PARTNER@
546+ | MetricMediaCostViewableEcpmUsd
547+ -- ^ @METRIC_MEDIA_COST_VIEWABLE_ECPM_USD@
526548 | MetricMediaFEE1Advertiser
527549 -- ^ @METRIC_MEDIA_FEE1_ADVERTISER@
528550 | MetricMediaFEE1Partner
@@ -603,6 +625,12 @@ data ParametersMetricsItem
603625 -- ^ @METRIC_PROFIT_PARTNER@
604626 | MetricProfitUsd
605627 -- ^ @METRIC_PROFIT_USD@
628+ | MetricProfitViewableEcpmAdvertiser
629+ -- ^ @METRIC_PROFIT_VIEWABLE_ECPM_ADVERTISER@
630+ | MetricProfitViewableEcpmPartner
631+ -- ^ @METRIC_PROFIT_VIEWABLE_ECPM_PARTNER@
632+ | MetricProfitViewableEcpmUsd
633+ -- ^ @METRIC_PROFIT_VIEWABLE_ECPM_USD@
606634 | MetricRevenueAdvertiser
607635 -- ^ @METRIC_REVENUE_ADVERTISER@
608636 | MetricRevenueEcpapcAdvertiser
@@ -645,6 +673,12 @@ data ParametersMetricsItem
645673 -- ^ @METRIC_REVENUE_PARTNER@
646674 | MetricRevenueUsd
647675 -- ^ @METRIC_REVENUE_USD@
676+ | MetricRevenueViewableEcpmAdvertiser
677+ -- ^ @METRIC_REVENUE_VIEWABLE_ECPM_ADVERTISER@
678+ | MetricRevenueViewableEcpmPartner
679+ -- ^ @METRIC_REVENUE_VIEWABLE_ECPM_PARTNER@
680+ | MetricRevenueViewableEcpmUsd
681+ -- ^ @METRIC_REVENUE_VIEWABLE_ECPM_USD@
648682 | MetricRichMediaVideoCompletions
649683 -- ^ @METRIC_RICH_MEDIA_VIDEO_COMPLETIONS@
650684 | MetricRichMediaVideoFirstQuartileCompletes
@@ -713,12 +747,42 @@ data ParametersMetricsItem
713747 -- ^ @METRIC_TOTAL_MEDIA_COST_PARTNER@
714748 | MetricTotalMediaCostUsd
715749 -- ^ @METRIC_TOTAL_MEDIA_COST_USD@
750+ | MetricTotalMediaCostViewableEcpmAdvertiser
751+ -- ^ @METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER@
752+ | MetricTotalMediaCostViewableEcpmPartner
753+ -- ^ @METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER@
754+ | MetricTotalMediaCostViewableEcpmUsd
755+ -- ^ @METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD@
756+ | MetricTrueviewConversionCostManyPerViewAdvertiser
757+ -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER@
758+ | MetricTrueviewConversionCostManyPerViewPartner
759+ -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_PARTNER@
760+ | MetricTrueviewConversionCostManyPerViewUsd
761+ -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_USD@
762+ | MetricTrueviewConversionCostOnePerViewAdvertiser
763+ -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_ADVERTISER@
764+ | MetricTrueviewConversionCostOnePerViewPartner
765+ -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_PARTNER@
766+ | MetricTrueviewConversionCostOnePerViewUsd
767+ -- ^ @METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_USD@
716768 | MetricTrueviewConversionManyPerView
717769 -- ^ @METRIC_TRUEVIEW_CONVERSION_MANY_PER_VIEW@
718770 | MetricTrueviewConversionOnePerView
719771 -- ^ @METRIC_TRUEVIEW_CONVERSION_ONE_PER_VIEW@
720772 | MetricTrueviewConversionRateOnePerView
721773 -- ^ @METRIC_TRUEVIEW_CONVERSION_RATE_ONE_PER_VIEW@
774+ | MetricTrueviewConversionValueManyPerViewAdvertiser
775+ -- ^ @METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_ADVERTISER@
776+ | MetricTrueviewConversionValueManyPerViewPartner
777+ -- ^ @METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_PARTNER@
778+ | MetricTrueviewConversionValueManyPerViewUsd
779+ -- ^ @METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_USD@
780+ | MetricTrueviewConversionValueOnePerViewAdvertiser
781+ -- ^ @METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_ADVERTISER@
782+ | MetricTrueviewConversionValueOnePerViewPartner
783+ -- ^ @METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_PARTNER@
784+ | MetricTrueviewConversionValueOnePerViewUsd
785+ -- ^ @METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_USD@
722786 | MetricTrueviewCostConversionManyPerViewRatio
723787 -- ^ @METRIC_TRUEVIEW_COST_CONVERSION_MANY_PER_VIEW_RATIO@
724788 | MetricTrueviewCostConversionOnePerViewRatio
@@ -747,6 +811,12 @@ data ParametersMetricsItem
747811 -- ^ @METRIC_TRUEVIEW_LOST_IS_RANK@
748812 | MetricTrueviewTotalConversionValue
749813 -- ^ @METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUE@
814+ | MetricTrueviewTotalConversionValuesAdvertiser
815+ -- ^ @METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_ADVERTISER@
816+ | MetricTrueviewTotalConversionValuesPartner
817+ -- ^ @METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_PARTNER@
818+ | MetricTrueviewTotalConversionValuesUsd
819+ -- ^ @METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_USD@
750820 | MetricTrueviewUniqueViewers
751821 -- ^ @METRIC_TRUEVIEW_UNIQUE_VIEWERS@
752822 | MetricTrueviewValueConversionManyPerViewRatio
@@ -842,6 +912,12 @@ instance FromText ParametersMetricsItem where
842912 "METRIC_FEE20_ADVERTISER" -> Just MetricFEE20Advertiser
843913 "METRIC_FEE20_PARTNER" -> Just MetricFEE20Partner
844914 "METRIC_FEE20_USD" -> Just MetricFEE20Usd
915+ "METRIC_FEE21_ADVERTISER" -> Just MetricFEE21Advertiser
916+ "METRIC_FEE21_PARTNER" -> Just MetricFEE21Partner
917+ "METRIC_FEE21_USD" -> Just MetricFEE21Usd
918+ "METRIC_FEE22_ADVERTISER" -> Just MetricFEE22Advertiser
919+ "METRIC_FEE22_PARTNER" -> Just MetricFEE22Partner
920+ "METRIC_FEE22_USD" -> Just MetricFEE22Usd
845921 "METRIC_FEE2_ADVERTISER" -> Just MetricFEE2Advertiser
846922 "METRIC_FEE2_PARTNER" -> Just MetricFEE2Partner
847923 "METRIC_FEE2_USD" -> Just MetricFEE2Usd
@@ -891,6 +967,9 @@ instance FromText ParametersMetricsItem where
891967 "METRIC_MEDIA_COST_ECPM_USD" -> Just MetricMediaCostEcpmUsd
892968 "METRIC_MEDIA_COST_PARTNER" -> Just MetricMediaCostPartner
893969 "METRIC_MEDIA_COST_USD" -> Just MetricMediaCostUsd
970+ "METRIC_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER" -> Just MetricMediaCostViewableEcpmAdvertiser
971+ "METRIC_MEDIA_COST_VIEWABLE_ECPM_PARTNER" -> Just MetricMediaCostViewableEcpmPartner
972+ "METRIC_MEDIA_COST_VIEWABLE_ECPM_USD" -> Just MetricMediaCostViewableEcpmUsd
894973 "METRIC_MEDIA_FEE1_ADVERTISER" -> Just MetricMediaFEE1Advertiser
895974 "METRIC_MEDIA_FEE1_PARTNER" -> Just MetricMediaFEE1Partner
896975 "METRIC_MEDIA_FEE1_USD" -> Just MetricMediaFEE1Usd
@@ -931,6 +1010,9 @@ instance FromText ParametersMetricsItem where
9311010 "METRIC_PROFIT_MARGIN" -> Just MetricProfitMargin
9321011 "METRIC_PROFIT_PARTNER" -> Just MetricProfitPartner
9331012 "METRIC_PROFIT_USD" -> Just MetricProfitUsd
1013+ "METRIC_PROFIT_VIEWABLE_ECPM_ADVERTISER" -> Just MetricProfitViewableEcpmAdvertiser
1014+ "METRIC_PROFIT_VIEWABLE_ECPM_PARTNER" -> Just MetricProfitViewableEcpmPartner
1015+ "METRIC_PROFIT_VIEWABLE_ECPM_USD" -> Just MetricProfitViewableEcpmUsd
9341016 "METRIC_REVENUE_ADVERTISER" -> Just MetricRevenueAdvertiser
9351017 "METRIC_REVENUE_ECPAPC_ADVERTISER" -> Just MetricRevenueEcpapcAdvertiser
9361018 "METRIC_REVENUE_ECPAPC_PARTNER" -> Just MetricRevenueEcpapcPartner
@@ -952,6 +1034,9 @@ instance FromText ParametersMetricsItem where
9521034 "METRIC_REVENUE_ECPM_USD" -> Just MetricRevenueEcpmUsd
9531035 "METRIC_REVENUE_PARTNER" -> Just MetricRevenuePartner
9541036 "METRIC_REVENUE_USD" -> Just MetricRevenueUsd
1037+ "METRIC_REVENUE_VIEWABLE_ECPM_ADVERTISER" -> Just MetricRevenueViewableEcpmAdvertiser
1038+ "METRIC_REVENUE_VIEWABLE_ECPM_PARTNER" -> Just MetricRevenueViewableEcpmPartner
1039+ "METRIC_REVENUE_VIEWABLE_ECPM_USD" -> Just MetricRevenueViewableEcpmUsd
9551040 "METRIC_RICH_MEDIA_VIDEO_COMPLETIONS" -> Just MetricRichMediaVideoCompletions
9561041 "METRIC_RICH_MEDIA_VIDEO_FIRST_QUARTILE_COMPLETES" -> Just MetricRichMediaVideoFirstQuartileCompletes
9571042 "METRIC_RICH_MEDIA_VIDEO_FULL_SCREENS" -> Just MetricRichMediaVideoFullScreens
@@ -986,9 +1071,24 @@ instance FromText ParametersMetricsItem where
9861071 "METRIC_TOTAL_MEDIA_COST_ECPM_USD" -> Just MetricTotalMediaCostEcpmUsd
9871072 "METRIC_TOTAL_MEDIA_COST_PARTNER" -> Just MetricTotalMediaCostPartner
9881073 "METRIC_TOTAL_MEDIA_COST_USD" -> Just MetricTotalMediaCostUsd
1074+ "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER" -> Just MetricTotalMediaCostViewableEcpmAdvertiser
1075+ "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER" -> Just MetricTotalMediaCostViewableEcpmPartner
1076+ "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD" -> Just MetricTotalMediaCostViewableEcpmUsd
1077+ "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER" -> Just MetricTrueviewConversionCostManyPerViewAdvertiser
1078+ "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_PARTNER" -> Just MetricTrueviewConversionCostManyPerViewPartner
1079+ "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_USD" -> Just MetricTrueviewConversionCostManyPerViewUsd
1080+ "METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_ADVERTISER" -> Just MetricTrueviewConversionCostOnePerViewAdvertiser
1081+ "METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_PARTNER" -> Just MetricTrueviewConversionCostOnePerViewPartner
1082+ "METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_USD" -> Just MetricTrueviewConversionCostOnePerViewUsd
9891083 "METRIC_TRUEVIEW_CONVERSION_MANY_PER_VIEW" -> Just MetricTrueviewConversionManyPerView
9901084 "METRIC_TRUEVIEW_CONVERSION_ONE_PER_VIEW" -> Just MetricTrueviewConversionOnePerView
9911085 "METRIC_TRUEVIEW_CONVERSION_RATE_ONE_PER_VIEW" -> Just MetricTrueviewConversionRateOnePerView
1086+ "METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_ADVERTISER" -> Just MetricTrueviewConversionValueManyPerViewAdvertiser
1087+ "METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_PARTNER" -> Just MetricTrueviewConversionValueManyPerViewPartner
1088+ "METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_USD" -> Just MetricTrueviewConversionValueManyPerViewUsd
1089+ "METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_ADVERTISER" -> Just MetricTrueviewConversionValueOnePerViewAdvertiser
1090+ "METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_PARTNER" -> Just MetricTrueviewConversionValueOnePerViewPartner
1091+ "METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_USD" -> Just MetricTrueviewConversionValueOnePerViewUsd
9921092 "METRIC_TRUEVIEW_COST_CONVERSION_MANY_PER_VIEW_RATIO" -> Just MetricTrueviewCostConversionManyPerViewRatio
9931093 "METRIC_TRUEVIEW_COST_CONVERSION_ONE_PER_VIEW_RATIO" -> Just MetricTrueviewCostConversionOnePerViewRatio
9941094 "METRIC_TRUEVIEW_CPV_ADVERTISER" -> Just MetricTrueviewCpvAdvertiser
@@ -1003,6 +1103,9 @@ instance FromText ParametersMetricsItem where
10031103 "METRIC_TRUEVIEW_LOST_IS_BUDGET" -> Just MetricTrueviewLostIsBudget
10041104 "METRIC_TRUEVIEW_LOST_IS_RANK" -> Just MetricTrueviewLostIsRank
10051105 "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUE" -> Just MetricTrueviewTotalConversionValue
1106+ "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_ADVERTISER" -> Just MetricTrueviewTotalConversionValuesAdvertiser
1107+ "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_PARTNER" -> Just MetricTrueviewTotalConversionValuesPartner
1108+ "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_USD" -> Just MetricTrueviewTotalConversionValuesUsd
10061109 "METRIC_TRUEVIEW_UNIQUE_VIEWERS" -> Just MetricTrueviewUniqueViewers
10071110 "METRIC_TRUEVIEW_VALUE_CONVERSION_MANY_PER_VIEW_RATIO" -> Just MetricTrueviewValueConversionManyPerViewRatio
10081111 "METRIC_TRUEVIEW_VALUE_CONVERSION_ONE_PER_VIEW_RATIO" -> Just MetricTrueviewValueConversionOnePerViewRatio
@@ -1085,6 +1188,12 @@ instance ToText ParametersMetricsItem where
10851188 MetricFEE20Advertiser -> "METRIC_FEE20_ADVERTISER"
10861189 MetricFEE20Partner -> "METRIC_FEE20_PARTNER"
10871190 MetricFEE20Usd -> "METRIC_FEE20_USD"
1191+ MetricFEE21Advertiser -> "METRIC_FEE21_ADVERTISER"
1192+ MetricFEE21Partner -> "METRIC_FEE21_PARTNER"
1193+ MetricFEE21Usd -> "METRIC_FEE21_USD"
1194+ MetricFEE22Advertiser -> "METRIC_FEE22_ADVERTISER"
1195+ MetricFEE22Partner -> "METRIC_FEE22_PARTNER"
1196+ MetricFEE22Usd -> "METRIC_FEE22_USD"
10881197 MetricFEE2Advertiser -> "METRIC_FEE2_ADVERTISER"
10891198 MetricFEE2Partner -> "METRIC_FEE2_PARTNER"
10901199 MetricFEE2Usd -> "METRIC_FEE2_USD"
@@ -1134,6 +1243,9 @@ instance ToText ParametersMetricsItem where
11341243 MetricMediaCostEcpmUsd -> "METRIC_MEDIA_COST_ECPM_USD"
11351244 MetricMediaCostPartner -> "METRIC_MEDIA_COST_PARTNER"
11361245 MetricMediaCostUsd -> "METRIC_MEDIA_COST_USD"
1246+ MetricMediaCostViewableEcpmAdvertiser -> "METRIC_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER"
1247+ MetricMediaCostViewableEcpmPartner -> "METRIC_MEDIA_COST_VIEWABLE_ECPM_PARTNER"
1248+ MetricMediaCostViewableEcpmUsd -> "METRIC_MEDIA_COST_VIEWABLE_ECPM_USD"
11371249 MetricMediaFEE1Advertiser -> "METRIC_MEDIA_FEE1_ADVERTISER"
11381250 MetricMediaFEE1Partner -> "METRIC_MEDIA_FEE1_PARTNER"
11391251 MetricMediaFEE1Usd -> "METRIC_MEDIA_FEE1_USD"
@@ -1174,6 +1286,9 @@ instance ToText ParametersMetricsItem where
11741286 MetricProfitMargin -> "METRIC_PROFIT_MARGIN"
11751287 MetricProfitPartner -> "METRIC_PROFIT_PARTNER"
11761288 MetricProfitUsd -> "METRIC_PROFIT_USD"
1289+ MetricProfitViewableEcpmAdvertiser -> "METRIC_PROFIT_VIEWABLE_ECPM_ADVERTISER"
1290+ MetricProfitViewableEcpmPartner -> "METRIC_PROFIT_VIEWABLE_ECPM_PARTNER"
1291+ MetricProfitViewableEcpmUsd -> "METRIC_PROFIT_VIEWABLE_ECPM_USD"
11771292 MetricRevenueAdvertiser -> "METRIC_REVENUE_ADVERTISER"
11781293 MetricRevenueEcpapcAdvertiser -> "METRIC_REVENUE_ECPAPC_ADVERTISER"
11791294 MetricRevenueEcpapcPartner -> "METRIC_REVENUE_ECPAPC_PARTNER"
@@ -1195,6 +1310,9 @@ instance ToText ParametersMetricsItem where
11951310 MetricRevenueEcpmUsd -> "METRIC_REVENUE_ECPM_USD"
11961311 MetricRevenuePartner -> "METRIC_REVENUE_PARTNER"
11971312 MetricRevenueUsd -> "METRIC_REVENUE_USD"
1313+ MetricRevenueViewableEcpmAdvertiser -> "METRIC_REVENUE_VIEWABLE_ECPM_ADVERTISER"
1314+ MetricRevenueViewableEcpmPartner -> "METRIC_REVENUE_VIEWABLE_ECPM_PARTNER"
1315+ MetricRevenueViewableEcpmUsd -> "METRIC_REVENUE_VIEWABLE_ECPM_USD"
11981316 MetricRichMediaVideoCompletions -> "METRIC_RICH_MEDIA_VIDEO_COMPLETIONS"
11991317 MetricRichMediaVideoFirstQuartileCompletes -> "METRIC_RICH_MEDIA_VIDEO_FIRST_QUARTILE_COMPLETES"
12001318 MetricRichMediaVideoFullScreens -> "METRIC_RICH_MEDIA_VIDEO_FULL_SCREENS"
@@ -1229,9 +1347,24 @@ instance ToText ParametersMetricsItem where
12291347 MetricTotalMediaCostEcpmUsd -> "METRIC_TOTAL_MEDIA_COST_ECPM_USD"
12301348 MetricTotalMediaCostPartner -> "METRIC_TOTAL_MEDIA_COST_PARTNER"
12311349 MetricTotalMediaCostUsd -> "METRIC_TOTAL_MEDIA_COST_USD"
1350+ MetricTotalMediaCostViewableEcpmAdvertiser -> "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_ADVERTISER"
1351+ MetricTotalMediaCostViewableEcpmPartner -> "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_PARTNER"
1352+ MetricTotalMediaCostViewableEcpmUsd -> "METRIC_TOTAL_MEDIA_COST_VIEWABLE_ECPM_USD"
1353+ MetricTrueviewConversionCostManyPerViewAdvertiser -> "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_ADVERTISER"
1354+ MetricTrueviewConversionCostManyPerViewPartner -> "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_PARTNER"
1355+ MetricTrueviewConversionCostManyPerViewUsd -> "METRIC_TRUEVIEW_CONVERSION_COST_MANY_PER_VIEW_USD"
1356+ MetricTrueviewConversionCostOnePerViewAdvertiser -> "METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_ADVERTISER"
1357+ MetricTrueviewConversionCostOnePerViewPartner -> "METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_PARTNER"
1358+ MetricTrueviewConversionCostOnePerViewUsd -> "METRIC_TRUEVIEW_CONVERSION_COST_ONE_PER_VIEW_USD"
12321359 MetricTrueviewConversionManyPerView -> "METRIC_TRUEVIEW_CONVERSION_MANY_PER_VIEW"
12331360 MetricTrueviewConversionOnePerView -> "METRIC_TRUEVIEW_CONVERSION_ONE_PER_VIEW"
12341361 MetricTrueviewConversionRateOnePerView -> "METRIC_TRUEVIEW_CONVERSION_RATE_ONE_PER_VIEW"
1362+ MetricTrueviewConversionValueManyPerViewAdvertiser -> "METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_ADVERTISER"
1363+ MetricTrueviewConversionValueManyPerViewPartner -> "METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_PARTNER"
1364+ MetricTrueviewConversionValueManyPerViewUsd -> "METRIC_TRUEVIEW_CONVERSION_VALUE_MANY_PER_VIEW_USD"
1365+ MetricTrueviewConversionValueOnePerViewAdvertiser -> "METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_ADVERTISER"
1366+ MetricTrueviewConversionValueOnePerViewPartner -> "METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_PARTNER"
1367+ MetricTrueviewConversionValueOnePerViewUsd -> "METRIC_TRUEVIEW_CONVERSION_VALUE_ONE_PER_VIEW_USD"
12351368 MetricTrueviewCostConversionManyPerViewRatio -> "METRIC_TRUEVIEW_COST_CONVERSION_MANY_PER_VIEW_RATIO"
12361369 MetricTrueviewCostConversionOnePerViewRatio -> "METRIC_TRUEVIEW_COST_CONVERSION_ONE_PER_VIEW_RATIO"
12371370 MetricTrueviewCpvAdvertiser -> "METRIC_TRUEVIEW_CPV_ADVERTISER"
@@ -1246,6 +1379,9 @@ instance ToText ParametersMetricsItem where
12461379 MetricTrueviewLostIsBudget -> "METRIC_TRUEVIEW_LOST_IS_BUDGET"
12471380 MetricTrueviewLostIsRank -> "METRIC_TRUEVIEW_LOST_IS_RANK"
12481381 MetricTrueviewTotalConversionValue -> "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUE"
1382+ MetricTrueviewTotalConversionValuesAdvertiser -> "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_ADVERTISER"
1383+ MetricTrueviewTotalConversionValuesPartner -> "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_PARTNER"
1384+ MetricTrueviewTotalConversionValuesUsd -> "METRIC_TRUEVIEW_TOTAL_CONVERSION_VALUES_USD"
12491385 MetricTrueviewUniqueViewers -> "METRIC_TRUEVIEW_UNIQUE_VIEWERS"
12501386 MetricTrueviewValueConversionManyPerViewRatio -> "METRIC_TRUEVIEW_VALUE_CONVERSION_MANY_PER_VIEW_RATIO"
12511387 MetricTrueviewValueConversionOnePerViewRatio -> "METRIC_TRUEVIEW_VALUE_CONVERSION_ONE_PER_VIEW_RATIO"
@@ -1307,6 +1443,34 @@ instance FromJSON QueryScheduleFrequency where
13071443instance ToJSON QueryScheduleFrequency where
13081444 toJSON = toJSONText
13091445
1446+-- | File specification (column names, types, order) in which the line items
1447+-- will be returned. Default to EWF.
1448+data DownloadLineItemsRequestFileSpec
1449+ = Ewf
1450+ -- ^ @EWF@
1451+ | Sdf
1452+ -- ^ @SDF@
1453+ deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1454+
1455+instance Hashable DownloadLineItemsRequestFileSpec
1456+
1457+instance FromText DownloadLineItemsRequestFileSpec where
1458+ fromText = \case
1459+ "EWF" -> Just Ewf
1460+ "SDF" -> Just Sdf
1461+ _ -> Nothing
1462+
1463+instance ToText DownloadLineItemsRequestFileSpec where
1464+ toText = \case
1465+ Ewf -> "EWF"
1466+ Sdf -> "SDF"
1467+
1468+instance FromJSON DownloadLineItemsRequestFileSpec where
1469+ parseJSON = parseJSONText "DownloadLineItemsRequestFileSpec"
1470+
1471+instance ToJSON DownloadLineItemsRequestFileSpec where
1472+ toJSON = toJSONText
1473+
13101474-- | Format the line items are in. Default to CSV.
13111475data UploadLineItemsRequestFormat
13121476 = ULIRFCSV
@@ -1362,12 +1526,16 @@ data FilterPairType
13621526 -- ^ @FILTER_CONVERSION_DELAY@
13631527 | FilterCountry
13641528 -- ^ @FILTER_COUNTRY@
1529+ | FilterCreativeHeight
1530+ -- ^ @FILTER_CREATIVE_HEIGHT@
13651531 | FilterCreativeId
13661532 -- ^ @FILTER_CREATIVE_ID@
13671533 | FilterCreativeSize
13681534 -- ^ @FILTER_CREATIVE_SIZE@
13691535 | FilterCreativeType
13701536 -- ^ @FILTER_CREATIVE_TYPE@
1537+ | FilterCreativeWidth
1538+ -- ^ @FILTER_CREATIVE_WIDTH@
13711539 | FilterDataProvider
13721540 -- ^ @FILTER_DATA_PROVIDER@
13731541 | FilterDate
@@ -1511,9 +1679,11 @@ instance FromText FilterPairType where
15111679 "FILTER_CITY" -> Just FilterCity
15121680 "FILTER_CONVERSION_DELAY" -> Just FilterConversionDelay
15131681 "FILTER_COUNTRY" -> Just FilterCountry
1682+ "FILTER_CREATIVE_HEIGHT" -> Just FilterCreativeHeight
15141683 "FILTER_CREATIVE_ID" -> Just FilterCreativeId
15151684 "FILTER_CREATIVE_SIZE" -> Just FilterCreativeSize
15161685 "FILTER_CREATIVE_TYPE" -> Just FilterCreativeType
1686+ "FILTER_CREATIVE_WIDTH" -> Just FilterCreativeWidth
15171687 "FILTER_DATA_PROVIDER" -> Just FilterDataProvider
15181688 "FILTER_DATE" -> Just FilterDate
15191689 "FILTER_DAY_OF_WEEK" -> Just FilterDayOfWeek
@@ -1594,9 +1764,11 @@ instance ToText FilterPairType where
15941764 FilterCity -> "FILTER_CITY"
15951765 FilterConversionDelay -> "FILTER_CONVERSION_DELAY"
15961766 FilterCountry -> "FILTER_COUNTRY"
1767+ FilterCreativeHeight -> "FILTER_CREATIVE_HEIGHT"
15971768 FilterCreativeId -> "FILTER_CREATIVE_ID"
15981769 FilterCreativeSize -> "FILTER_CREATIVE_SIZE"
15991770 FilterCreativeType -> "FILTER_CREATIVE_TYPE"
1771+ FilterCreativeWidth -> "FILTER_CREATIVE_WIDTH"
16001772 FilterDataProvider -> "FILTER_DATA_PROVIDER"
16011773 FilterDate -> "FILTER_DATE"
16021774 FilterDayOfWeek -> "FILTER_DAY_OF_WEEK"
@@ -1818,12 +1990,16 @@ data ParametersGroupBysItem
18181990 -- ^ @FILTER_CONVERSION_DELAY@
18191991 | PGBIFilterCountry
18201992 -- ^ @FILTER_COUNTRY@
1993+ | PGBIFilterCreativeHeight
1994+ -- ^ @FILTER_CREATIVE_HEIGHT@
18211995 | PGBIFilterCreativeId
18221996 -- ^ @FILTER_CREATIVE_ID@
18231997 | PGBIFilterCreativeSize
18241998 -- ^ @FILTER_CREATIVE_SIZE@
18251999 | PGBIFilterCreativeType
18262000 -- ^ @FILTER_CREATIVE_TYPE@
2001+ | PGBIFilterCreativeWidth
2002+ -- ^ @FILTER_CREATIVE_WIDTH@
18272003 | PGBIFilterDataProvider
18282004 -- ^ @FILTER_DATA_PROVIDER@
18292005 | PGBIFilterDate
@@ -1967,9 +2143,11 @@ instance FromText ParametersGroupBysItem where
19672143 "FILTER_CITY" -> Just PGBIFilterCity
19682144 "FILTER_CONVERSION_DELAY" -> Just PGBIFilterConversionDelay
19692145 "FILTER_COUNTRY" -> Just PGBIFilterCountry
2146+ "FILTER_CREATIVE_HEIGHT" -> Just PGBIFilterCreativeHeight
19702147 "FILTER_CREATIVE_ID" -> Just PGBIFilterCreativeId
19712148 "FILTER_CREATIVE_SIZE" -> Just PGBIFilterCreativeSize
19722149 "FILTER_CREATIVE_TYPE" -> Just PGBIFilterCreativeType
2150+ "FILTER_CREATIVE_WIDTH" -> Just PGBIFilterCreativeWidth
19732151 "FILTER_DATA_PROVIDER" -> Just PGBIFilterDataProvider
19742152 "FILTER_DATE" -> Just PGBIFilterDate
19752153 "FILTER_DAY_OF_WEEK" -> Just PGBIFilterDayOfWeek
@@ -2050,9 +2228,11 @@ instance ToText ParametersGroupBysItem where
20502228 PGBIFilterCity -> "FILTER_CITY"
20512229 PGBIFilterConversionDelay -> "FILTER_CONVERSION_DELAY"
20522230 PGBIFilterCountry -> "FILTER_COUNTRY"
2231+ PGBIFilterCreativeHeight -> "FILTER_CREATIVE_HEIGHT"
20532232 PGBIFilterCreativeId -> "FILTER_CREATIVE_ID"
20542233 PGBIFilterCreativeSize -> "FILTER_CREATIVE_SIZE"
20552234 PGBIFilterCreativeType -> "FILTER_CREATIVE_TYPE"
2235+ PGBIFilterCreativeWidth -> "FILTER_CREATIVE_WIDTH"
20562236 PGBIFilterDataProvider -> "FILTER_DATA_PROVIDER"
20572237 PGBIFilterDate -> "FILTER_DATE"
20582238 PGBIFilterDayOfWeek -> "FILTER_DAY_OF_WEEK"
gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch.hs+1
@@ -149,6 +149,7 @@ module Network.Google.DoubleClickSearch
149149 , racsGroupByColumn
150150 , racsCustomMetricName
151151 , racsEndDate
152+ , racsProductReportPerspective
152153 , racsStartDate
153154 , racsHeaderText
154155 , racsPlatformSource
gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types.hs+1
@@ -111,6 +111,7 @@ module Network.Google.DoubleClickSearch.Types
111111 , racsGroupByColumn
112112 , racsCustomMetricName
113113 , racsEndDate
114+ , racsProductReportPerspective
114115 , racsStartDate
115116 , racsHeaderText
116117 , racsPlatformSource
gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types/Product.hs+24−10
@@ -805,15 +805,16 @@ instance ToJSON ConversionList where
805805--
806806-- /See:/ 'reportAPIColumnSpec' smart constructor.
807807data ReportAPIColumnSpec = ReportAPIColumnSpec
808− { _racsCustomDimensionName :: !(Maybe Text)
809− , _racsSavedColumnName :: !(Maybe Text)
810− , _racsGroupByColumn :: !Bool
811− , _racsCustomMetricName :: !(Maybe Text)
812− , _racsEndDate :: !(Maybe Text)
813− , _racsStartDate :: !(Maybe Text)
814− , _racsHeaderText :: !(Maybe Text)
815− , _racsPlatformSource :: !(Maybe Text)
816− , _racsColumnName :: !(Maybe Text)
808+ { _racsCustomDimensionName :: !(Maybe Text)
809+ , _racsSavedColumnName :: !(Maybe Text)
810+ , _racsGroupByColumn :: !Bool
811+ , _racsCustomMetricName :: !(Maybe Text)
812+ , _racsEndDate :: !(Maybe Text)
813+ , _racsProductReportPerspective :: !(Maybe Text)
814+ , _racsStartDate :: !(Maybe Text)
815+ , _racsHeaderText :: !(Maybe Text)
816+ , _racsPlatformSource :: !(Maybe Text)
817+ , _racsColumnName :: !(Maybe Text)
817818 } deriving (Eq,Show,Data,Typeable,Generic)
818819
819820-- | Creates a value of 'ReportAPIColumnSpec' with the minimum fields required to make a request.
@@ -830,6 +831,8 @@ data ReportAPIColumnSpec = ReportAPIColumnSpec
830831--
831832-- * 'racsEndDate'
832833--
834+-- * 'racsProductReportPerspective'
835+--
833836-- * 'racsStartDate'
834837--
835838-- * 'racsHeaderText'
@@ -846,6 +849,7 @@ reportAPIColumnSpec =
846849 , _racsGroupByColumn = False
847850 , _racsCustomMetricName = Nothing
848851 , _racsEndDate = Nothing
852+ , _racsProductReportPerspective = Nothing
849853 , _racsStartDate = Nothing
850854 , _racsHeaderText = Nothing
851855 , _racsPlatformSource = Nothing
@@ -894,6 +898,13 @@ racsEndDate :: Lens' ReportAPIColumnSpec (Maybe Text)
894898racsEndDate
895899 = lens _racsEndDate (\ s a -> s{_racsEndDate = a})
896900
901+-- | Provide different source for product items. Acceptable values are
902+-- \"advertised\" and \"sold\".
903+racsProductReportPerspective :: Lens' ReportAPIColumnSpec (Maybe Text)
904+racsProductReportPerspective
905+ = lens _racsProductReportPerspective
906+ (\ s a -> s{_racsProductReportPerspective = a})
907+
897908-- | Inclusive date in YYYY-MM-DD format. When provided, this overrides the
898909-- overall time range of the report for this column only. Must be provided
899910-- together with endDate.
@@ -912,7 +923,7 @@ racsHeaderText
912923 (\ s a -> s{_racsHeaderText = a})
913924
914925-- | The platform that is used to provide data for the custom dimension.
915−-- Acceptable values are \"Floodlight\".
926+-- Acceptable values are \"floodlight\".
916927racsPlatformSource :: Lens' ReportAPIColumnSpec (Maybe Text)
917928racsPlatformSource
918929 = lens _racsPlatformSource
@@ -934,6 +945,7 @@ instance FromJSON ReportAPIColumnSpec where
934945 <*> (o .:? "groupByColumn" .!= False)
935946 <*> (o .:? "customMetricName")
936947 <*> (o .:? "endDate")
948+ <*> (o .:? "productReportPerspective")
937949 <*> (o .:? "startDate")
938950 <*> (o .:? "headerText")
939951 <*> (o .:? "platformSource")
@@ -949,6 +961,8 @@ instance ToJSON ReportAPIColumnSpec where
949961 Just ("groupByColumn" .= _racsGroupByColumn),
950962 ("customMetricName" .=) <$> _racsCustomMetricName,
951963 ("endDate" .=) <$> _racsEndDate,
964+ ("productReportPerspective" .=) <$>
965+ _racsProductReportPerspective,
952966 ("startDate" .=) <$> _racsStartDate,
953967 ("headerText" .=) <$> _racsHeaderText,
954968 ("platformSource" .=) <$> _racsPlatformSource,
gogol-drive/gen/Network/Google/Drive/Types/Product.hs+1−2
@@ -3911,8 +3911,7 @@ fThumbnail :: Lens' File (Maybe FileThumbnail)
39113911fThumbnail
39123912 = lens _fThumbnail (\ s a -> s{_fThumbnail = a})
39133913
3914−-- | Time this file was explicitly marked viewed by the user (formatted RFC
3915−-- 3339 timestamp).
3914+-- | Deprecated.
39163915fMarkedViewedByMeDate :: Lens' File (Maybe UTCTime)
39173916fMarkedViewedByMeDate
39183917 = lens _fMarkedViewedByMeDate
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit.hs+1
@@ -291,6 +291,7 @@ module Network.Google.IdentityToolkit
291291 , varOAuthExpireIn
292292 , varAppInstallationURL
293293 , varAction
294+ , varNeedEmail
294295 , varFederatedId
295296 , varAppScheme
296297 , varInputEmail
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types.hs+1
@@ -245,6 +245,7 @@ module Network.Google.IdentityToolkit.Types
245245 , varOAuthExpireIn
246246 , varAppInstallationURL
247247 , varAction
248+ , varNeedEmail
248249 , varFederatedId
249250 , varAppScheme
250251 , varInputEmail
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs+12
@@ -2036,6 +2036,7 @@ data VerifyAssertionResponse = VerifyAssertionResponse
20362036 , _varOAuthExpireIn :: !(Maybe Int32)
20372037 , _varAppInstallationURL :: !(Maybe Text)
20382038 , _varAction :: !(Maybe Text)
2039+ , _varNeedEmail :: !(Maybe Bool)
20392040 , _varFederatedId :: !(Maybe Text)
20402041 , _varAppScheme :: !(Maybe Text)
20412042 , _varInputEmail :: !(Maybe Text)
@@ -2088,6 +2089,8 @@ data VerifyAssertionResponse = VerifyAssertionResponse
20882089--
20892090-- * 'varAction'
20902091--
2092+-- * 'varNeedEmail'
2093+--
20912094-- * 'varFederatedId'
20922095--
20932096-- * 'varAppScheme'
@@ -2135,6 +2138,7 @@ verifyAssertionResponse =
21352138 , _varOAuthExpireIn = Nothing
21362139 , _varAppInstallationURL = Nothing
21372140 , _varAction = Nothing
2141+ , _varNeedEmail = Nothing
21382142 , _varFederatedId = Nothing
21392143 , _varAppScheme = Nothing
21402144 , _varInputEmail = Nothing
@@ -2250,6 +2254,12 @@ varAction :: Lens' VerifyAssertionResponse (Maybe Text)
22502254varAction
22512255 = lens _varAction (\ s a -> s{_varAction = a})
22522256
2257+-- | Whether need client to supply email to complete the federated login
2258+-- flow.
2259+varNeedEmail :: Lens' VerifyAssertionResponse (Maybe Bool)
2260+varNeedEmail
2261+ = lens _varNeedEmail (\ s a -> s{_varNeedEmail = a})
2262+
22532263-- | The unique ID identifies the IdP account.
22542264varFederatedId :: Lens' VerifyAssertionResponse (Maybe Text)
22552265varFederatedId
@@ -2353,6 +2363,7 @@ instance FromJSON VerifyAssertionResponse where
23532363 <*> (o .:? "oauthExpireIn")
23542364 <*> (o .:? "appInstallationUrl")
23552365 <*> (o .:? "action")
2366+ <*> (o .:? "needEmail")
23562367 <*> (o .:? "federatedId")
23572368 <*> (o .:? "appScheme")
23582369 <*> (o .:? "inputEmail")
@@ -2388,6 +2399,7 @@ instance ToJSON VerifyAssertionResponse where
23882399 ("oauthExpireIn" .=) <$> _varOAuthExpireIn,
23892400 ("appInstallationUrl" .=) <$> _varAppInstallationURL,
23902401 ("action" .=) <$> _varAction,
2402+ ("needEmail" .=) <$> _varNeedEmail,
23912403 ("federatedId" .=) <$> _varFederatedId,
23922404 ("appScheme" .=) <$> _varAppScheme,
23932405 ("inputEmail" .=) <$> _varInputEmail,
gogol-logging/gen/Network/Google/Logging.hs+1−245
@@ -25,111 +25,8 @@ module Network.Google.Logging
2525 -- * API Declaration
2626 , LoggingAPI
2727
28− -- * Resources
29−
30− -- ** LoggingProjectsLogServicesIndexesList
31− , module Network.Google.Resource.Logging.Projects.LogServices.Indexes.List
32−
33− -- ** LoggingProjectsLogServicesList
34− , module Network.Google.Resource.Logging.Projects.LogServices.List
35−
36− -- ** LoggingProjectsLogServicesSinksCreate
37− , module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Create
38−
39− -- ** LoggingProjectsLogServicesSinksDelete
40− , module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Delete
41−
42− -- ** LoggingProjectsLogServicesSinksGet
43− , module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Get
44−
45− -- ** LoggingProjectsLogServicesSinksList
46− , module Network.Google.Resource.Logging.Projects.LogServices.Sinks.List
47−
48− -- ** LoggingProjectsLogServicesSinksUpdate
49− , module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Update
50−
51− -- ** LoggingProjectsLogsDelete
52− , module Network.Google.Resource.Logging.Projects.Logs.Delete
53−
54− -- ** LoggingProjectsLogsEntriesWrite
55− , module Network.Google.Resource.Logging.Projects.Logs.Entries.Write
56−
57− -- ** LoggingProjectsLogsList
58− , module Network.Google.Resource.Logging.Projects.Logs.List
59−
60− -- ** LoggingProjectsLogsSinksCreate
61− , module Network.Google.Resource.Logging.Projects.Logs.Sinks.Create
62−
63− -- ** LoggingProjectsLogsSinksDelete
64− , module Network.Google.Resource.Logging.Projects.Logs.Sinks.Delete
65−
66− -- ** LoggingProjectsLogsSinksGet
67− , module Network.Google.Resource.Logging.Projects.Logs.Sinks.Get
68−
69− -- ** LoggingProjectsLogsSinksList
70− , module Network.Google.Resource.Logging.Projects.Logs.Sinks.List
71−
72− -- ** LoggingProjectsLogsSinksUpdate
73− , module Network.Google.Resource.Logging.Projects.Logs.Sinks.Update
74−
75− -- ** LoggingProjectsSinksCreate
76− , module Network.Google.Resource.Logging.Projects.Sinks.Create
77−
78− -- ** LoggingProjectsSinksDelete
79− , module Network.Google.Resource.Logging.Projects.Sinks.Delete
80−
81− -- ** LoggingProjectsSinksGet
82− , module Network.Google.Resource.Logging.Projects.Sinks.Get
83−
84− -- ** LoggingProjectsSinksList
85− , module Network.Google.Resource.Logging.Projects.Sinks.List
86−
87− -- ** LoggingProjectsSinksUpdate
88− , module Network.Google.Resource.Logging.Projects.Sinks.Update
89−
9028 -- * Types
9129
92− -- ** Log
93− , Log
94− , log'
95− , lName
96− , lDisplayName
97− , lPayloadType
98−
99− -- ** LogError
100− , LogError
101− , logError
102− , leStatus
103− , leResource
104− , leTimeNanos
105−
106− -- ** Status
107− , Status
108− , status
109− , sDetails
110− , sCode
111− , sMessage
112−
113− -- ** WriteLogEntriesRequest
114− , WriteLogEntriesRequest
115− , writeLogEntriesRequest
116− , wlerEntries
117− , wlerCommonLabels
118−
119− -- ** WriteLogEntriesRequestCommonLabels
120− , WriteLogEntriesRequestCommonLabels
121− , writeLogEntriesRequestCommonLabels
122− , wlerclAddtional
123−
124− -- ** Empty
125− , Empty
126− , empty
127−
128− -- ** ListSinksResponse
129− , ListSinksResponse
130− , listSinksResponse
131− , lsrSinks
132−
13330 -- ** RequestLog
13431 , RequestLog
13532 , requestLog
@@ -165,86 +62,6 @@ module Network.Google.Logging
16562 , rlSourceReference
16663 , rlAppEngineRelease
16764
168− -- ** LogEntryMetadata
169− , LogEntryMetadata
170− , logEntryMetadata
171− , lemSeverity
172− , lemZone
173− , lemUserId
174− , lemServiceName
175− , lemLabels
176− , lemRegion
177− , lemProjectId
178− , lemTimestamp
179−
180− -- ** LogEntryProtoPayload
181− , LogEntryProtoPayload
182− , logEntryProtoPayload
183− , leppAddtional
184−
185− -- ** ListLogServiceIndexesResponse
186− , ListLogServiceIndexesResponse
187− , listLogServiceIndexesResponse
188− , llsirNextPageToken
189− , llsirServiceIndexPrefixes
190−
191− -- ** WriteLogEntriesResponse
192− , WriteLogEntriesResponse
193− , writeLogEntriesResponse
194−
195− -- ** LogSink
196− , LogSink
197− , logSink
198− , lsDestination
199− , lsName
200− , lsFilter
201− , lsErrors
202−
203− -- ** ListLogServicesResponse
204− , ListLogServicesResponse
205− , listLogServicesResponse
206− , llsrNextPageToken
207− , llsrLogServices
208−
209− -- ** StatusDetailsItem
210− , StatusDetailsItem
211− , statusDetailsItem
212− , sdiAddtional
213−
214− -- ** ListLogsResponse
215− , ListLogsResponse
216− , listLogsResponse
217− , llrNextPageToken
218− , llrLogs
219−
220− -- ** HTTPRequest
221− , HTTPRequest
222− , hTTPRequest
223− , httprStatus
224− , httprRequestURL
225− , httprRemoteIP
226− , httprRequestSize
227− , httprUserAgent
228− , httprResponseSize
229− , httprRequestMethod
230− , httprReferer
231−
232− -- ** ListLogSinksResponse
233− , ListLogSinksResponse
234− , listLogSinksResponse
235− , llsrSinks
236−
237− -- ** LogService
238− , LogService
239− , logService
240− , logName
241− , logIndexKeys
242−
243− -- ** ListLogServiceSinksResponse
244− , ListLogServiceSinksResponse
245− , listLogServiceSinksResponse
246− , llssrSinks
247−
24865 -- ** LogLine
24966 , LogLine
25067 , logLine
@@ -253,22 +70,6 @@ module Network.Google.Logging
25370 , llLogMessage
25471 , llSourceLocation
25572
256− -- ** LogEntry
257− , LogEntry
258− , logEntry
259− , leLog
260− , leTextPayload
261− , leHTTPRequest
262− , leStructPayload
263− , leInsertId
264− , leMetadata
265− , leProtoPayload
266−
267− -- ** LogEntryMetadataLabels
268− , LogEntryMetadataLabels
269− , logEntryMetadataLabels
270− , lemlAddtional
271−
27273 -- ** SourceLocation
27374 , SourceLocation
27475 , sourceLocation
@@ -281,59 +82,14 @@ module Network.Google.Logging
28182 , sourceReference
28283 , srRepository
28384 , srRevisionId
284−
285− -- ** LogEntryStructPayload
286− , LogEntryStructPayload
287− , logEntryStructPayload
288− , lespAddtional
28985 ) where
29086
29187import Network.Google.Logging.Types
29288import Network.Google.Prelude
293−import Network.Google.Resource.Logging.Projects.Logs.Delete
294−import Network.Google.Resource.Logging.Projects.Logs.Entries.Write
295−import Network.Google.Resource.Logging.Projects.Logs.List
296−import Network.Google.Resource.Logging.Projects.Logs.Sinks.Create
297−import Network.Google.Resource.Logging.Projects.Logs.Sinks.Delete
298−import Network.Google.Resource.Logging.Projects.Logs.Sinks.Get
299−import Network.Google.Resource.Logging.Projects.Logs.Sinks.List
300−import Network.Google.Resource.Logging.Projects.Logs.Sinks.Update
301−import Network.Google.Resource.Logging.Projects.LogServices.Indexes.List
302−import Network.Google.Resource.Logging.Projects.LogServices.List
303−import Network.Google.Resource.Logging.Projects.LogServices.Sinks.Create
304−import Network.Google.Resource.Logging.Projects.LogServices.Sinks.Delete
305−import Network.Google.Resource.Logging.Projects.LogServices.Sinks.Get
306−import Network.Google.Resource.Logging.Projects.LogServices.Sinks.List
307−import Network.Google.Resource.Logging.Projects.LogServices.Sinks.Update
308−import Network.Google.Resource.Logging.Projects.Sinks.Create
309−import Network.Google.Resource.Logging.Projects.Sinks.Delete
310−import Network.Google.Resource.Logging.Projects.Sinks.Get
311−import Network.Google.Resource.Logging.Projects.Sinks.List
312−import Network.Google.Resource.Logging.Projects.Sinks.Update
31389
31490{- $resources
31591TODO
31692-}
31793
31894-- | Represents the entirety of the methods and resources available for the Google Cloud Logging API service.
319−type LoggingAPI =
320− ProjectsSinksListResource :<|>
321− ProjectsSinksGetResource
322− :<|> ProjectsSinksCreateResource
323− :<|> ProjectsSinksDeleteResource
324− :<|> ProjectsSinksUpdateResource
325− :<|> ProjectsLogServicesSinksListResource
326− :<|> ProjectsLogServicesSinksGetResource
327− :<|> ProjectsLogServicesSinksCreateResource
328− :<|> ProjectsLogServicesSinksDeleteResource
329− :<|> ProjectsLogServicesSinksUpdateResource
330− :<|> ProjectsLogServicesIndexesListResource
331− :<|> ProjectsLogServicesListResource
332− :<|> ProjectsLogsSinksListResource
333− :<|> ProjectsLogsSinksGetResource
334− :<|> ProjectsLogsSinksCreateResource
335− :<|> ProjectsLogsSinksDeleteResource
336− :<|> ProjectsLogsSinksUpdateResource
337− :<|> ProjectsLogsEntriesWriteResource
338− :<|> ProjectsLogsListResource
339− :<|> ProjectsLogsDeleteResource
95+type LoggingAPI = ()
gogol-logging/gen/Network/Google/Logging/Types.hs+2−171
@@ -18,54 +18,6 @@ module Network.Google.Logging.Types
1818 -- * Service Configuration
1919 loggingService
2020
21− -- * OAuth Scopes
22− , loggingAdminScope
23− , loggingReadScope
24− , loggingWriteScope
25− , cloudPlatformReadOnlyScope
26− , cloudPlatformScope
27−
28− -- * Log
29− , Log
30− , log'
31− , lName
32− , lDisplayName
33− , lPayloadType
34−
35− -- * LogError
36− , LogError
37− , logError
38− , leStatus
39− , leResource
40− , leTimeNanos
41−
42− -- * Status
43− , Status
44− , status
45− , sDetails
46− , sCode
47− , sMessage
48−
49− -- * WriteLogEntriesRequest
50− , WriteLogEntriesRequest
51− , writeLogEntriesRequest
52− , wlerEntries
53− , wlerCommonLabels
54−
55− -- * WriteLogEntriesRequestCommonLabels
56− , WriteLogEntriesRequestCommonLabels
57− , writeLogEntriesRequestCommonLabels
58− , wlerclAddtional
59−
60− -- * Empty
61− , Empty
62− , empty
63−
64− -- * ListSinksResponse
65− , ListSinksResponse
66− , listSinksResponse
67− , lsrSinks
68−
6921 -- * RequestLog
7022 , RequestLog
7123 , requestLog
@@ -101,86 +53,6 @@ module Network.Google.Logging.Types
10153 , rlSourceReference
10254 , rlAppEngineRelease
10355
104− -- * LogEntryMetadata
105− , LogEntryMetadata
106− , logEntryMetadata
107− , lemSeverity
108− , lemZone
109− , lemUserId
110− , lemServiceName
111− , lemLabels
112− , lemRegion
113− , lemProjectId
114− , lemTimestamp
115−
116− -- * LogEntryProtoPayload
117− , LogEntryProtoPayload
118− , logEntryProtoPayload
119− , leppAddtional
120−
121− -- * ListLogServiceIndexesResponse
122− , ListLogServiceIndexesResponse
123− , listLogServiceIndexesResponse
124− , llsirNextPageToken
125− , llsirServiceIndexPrefixes
126−
127− -- * WriteLogEntriesResponse
128− , WriteLogEntriesResponse
129− , writeLogEntriesResponse
130−
131− -- * LogSink
132− , LogSink
133− , logSink
134− , lsDestination
135− , lsName
136− , lsFilter
137− , lsErrors
138−
139− -- * ListLogServicesResponse
140− , ListLogServicesResponse
141− , listLogServicesResponse
142− , llsrNextPageToken
143− , llsrLogServices
144−
145− -- * StatusDetailsItem
146− , StatusDetailsItem
147− , statusDetailsItem
148− , sdiAddtional
149−
150− -- * ListLogsResponse
151− , ListLogsResponse
152− , listLogsResponse
153− , llrNextPageToken
154− , llrLogs
155−
156− -- * HTTPRequest
157− , HTTPRequest
158− , hTTPRequest
159− , httprStatus
160− , httprRequestURL
161− , httprRemoteIP
162− , httprRequestSize
163− , httprUserAgent
164− , httprResponseSize
165− , httprRequestMethod
166− , httprReferer
167−
168− -- * ListLogSinksResponse
169− , ListLogSinksResponse
170− , listLogSinksResponse
171− , llsrSinks
172−
173− -- * LogService
174− , LogService
175− , logService
176− , logName
177− , logIndexKeys
178−
179− -- * ListLogServiceSinksResponse
180− , ListLogServiceSinksResponse
181− , listLogServiceSinksResponse
182− , llssrSinks
183−
18456 -- * LogLine
18557 , LogLine
18658 , logLine
@@ -189,22 +61,6 @@ module Network.Google.Logging.Types
18961 , llLogMessage
19062 , llSourceLocation
19163
192− -- * LogEntry
193− , LogEntry
194− , logEntry
195− , leLog
196− , leTextPayload
197− , leHTTPRequest
198− , leStructPayload
199− , leInsertId
200− , leMetadata
201− , leProtoPayload
202−
203− -- * LogEntryMetadataLabels
204− , LogEntryMetadataLabels
205− , logEntryMetadataLabels
206− , lemlAddtional
207−
20864 -- * SourceLocation
20965 , SourceLocation
21066 , sourceLocation
@@ -217,40 +73,15 @@ module Network.Google.Logging.Types
21773 , sourceReference
21874 , srRepository
21975 , srRevisionId
220−
221− -- * LogEntryStructPayload
222− , LogEntryStructPayload
223− , logEntryStructPayload
224− , lespAddtional
22576 ) where
22677
22778import Network.Google.Logging.Types.Product
22879import Network.Google.Logging.Types.Sum
22980import Network.Google.Prelude
23081
231−-- | Default request referring to version 'v1beta3' of the Google Cloud Logging API. This contains the host and root path used as a starting point for constructing service requests.
82+-- | Default request referring to version 'v2beta1' of the Google Cloud Logging API. This contains the host and root path used as a starting point for constructing service requests.
23283loggingService :: Service
23384loggingService
234− = defaultService (ServiceId "logging:v1beta3")
85+ = defaultService (ServiceId "logging:v2beta1")
23586 "logging.googleapis.com"
23687 ""
237−
238−-- | Administrate log data for your projects
239−loggingAdminScope :: OAuthScope
240−loggingAdminScope = "https://www.googleapis.com/auth/logging.admin";
241−
242−-- | View log data for your projects
243−loggingReadScope :: OAuthScope
244−loggingReadScope = "https://www.googleapis.com/auth/logging.read";
245−
246−-- | Submit log data for your projects
247−loggingWriteScope :: OAuthScope
248−loggingWriteScope = "https://www.googleapis.com/auth/logging.write";
249−
250−-- | View your data across Google Cloud Platform services
251−cloudPlatformReadOnlyScope :: OAuthScope
252−cloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only";
253−
254−-- | View and manage your data across Google Cloud Platform services
255−cloudPlatformScope :: OAuthScope
256−cloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
gogol-logging/gen/Network/Google/Logging/Types/Product.hs−1295
@@ -20,384 +20,6 @@ module Network.Google.Logging.Types.Product where
2020import Network.Google.Logging.Types.Sum
2121import Network.Google.Prelude
2222
23−-- | _Output only._ Describes a log, which is a named stream of log entries.
24−--
25−-- /See:/ 'log'' smart constructor.
26−data Log = Log
27− { _lName :: !(Maybe Text)
28− , _lDisplayName :: !(Maybe Text)
29− , _lPayloadType :: !(Maybe Text)
30− } deriving (Eq,Show,Data,Typeable,Generic)
31−
32−-- | Creates a value of 'Log' with the minimum fields required to make a request.
33−--
34−-- Use one of the following lenses to modify other fields as desired:
35−--
36−-- * 'lName'
37−--
38−-- * 'lDisplayName'
39−--
40−-- * 'lPayloadType'
41−log'
42− :: Log
43−log' =
44− Log
45− { _lName = Nothing
46− , _lDisplayName = Nothing
47− , _lPayloadType = Nothing
48− }
49−
50−-- | The resource name of the log. Example:
51−-- \`\"\/projects\/my-gcp-project-id\/logs\/LOG_NAME\"\`, where
52−-- \`LOG_NAME\` is the URL-encoded given name of the log. The log includes
53−-- those log entries whose \`LogEntry.log\` field contains this given name.
54−-- To avoid name collisions, it is a best practice to prefix the given log
55−-- name with the service name, but this is not required. Examples of log
56−-- given names: \`\"appengine.googleapis.com\/request_log\"\`,
57−-- \`\"apache-access\"\`.
58−lName :: Lens' Log (Maybe Text)
59−lName = lens _lName (\ s a -> s{_lName = a})
60−
61−-- | _Optional._ The common name of the log. Example: \`\"request_log\"\`.
62−lDisplayName :: Lens' Log (Maybe Text)
63−lDisplayName
64− = lens _lDisplayName (\ s a -> s{_lDisplayName = a})
65−
66−-- | _Optional_. A URI representing the expected payload type for log
67−-- entries.
68−lPayloadType :: Lens' Log (Maybe Text)
69−lPayloadType
70− = lens _lPayloadType (\ s a -> s{_lPayloadType = a})
71−
72−instance FromJSON Log where
73− parseJSON
74− = withObject "Log"
75− (\ o ->
76− Log <$>
77− (o .:? "name") <*> (o .:? "displayName") <*>
78− (o .:? "payloadType"))
79−
80−instance ToJSON Log where
81− toJSON Log{..}
82− = object
83− (catMaybes
84− [("name" .=) <$> _lName,
85− ("displayName" .=) <$> _lDisplayName,
86− ("payloadType" .=) <$> _lPayloadType])
87−
88−-- | Describes a problem with a logging resource or operation.
89−--
90−-- /See:/ 'logError' smart constructor.
91−data LogError = LogError
92− { _leStatus :: !(Maybe Status)
93− , _leResource :: !(Maybe Text)
94− , _leTimeNanos :: !(Maybe Int64)
95− } deriving (Eq,Show,Data,Typeable,Generic)
96−
97−-- | Creates a value of 'LogError' with the minimum fields required to make a request.
98−--
99−-- Use one of the following lenses to modify other fields as desired:
100−--
101−-- * 'leStatus'
102−--
103−-- * 'leResource'
104−--
105−-- * 'leTimeNanos'
106−logError
107− :: LogError
108−logError =
109− LogError
110− { _leStatus = Nothing
111− , _leResource = Nothing
112− , _leTimeNanos = Nothing
113− }
114−
115−-- | The error description, including a classification code, an error
116−-- message, and other details.
117−leStatus :: Lens' LogError (Maybe Status)
118−leStatus = lens _leStatus (\ s a -> s{_leStatus = a})
119−
120−-- | A resource name associated with this error. For example, the name of a
121−-- Cloud Storage bucket that has insufficient permissions to be a
122−-- destination for log entries.
123−leResource :: Lens' LogError (Maybe Text)
124−leResource
125− = lens _leResource (\ s a -> s{_leResource = a})
126−
127−-- | The time the error was observed, in nanoseconds since the Unix epoch.
128−leTimeNanos :: Lens' LogError (Maybe Int64)
129−leTimeNanos
130− = lens _leTimeNanos (\ s a -> s{_leTimeNanos = a})
131−
132−instance FromJSON LogError where
133− parseJSON
134− = withObject "LogError"
135− (\ o ->
136− LogError <$>
137− (o .:? "status") <*> (o .:? "resource") <*>
138− (o .:? "timeNanos"))
139−
140−instance ToJSON LogError where
141− toJSON LogError{..}
142− = object
143− (catMaybes
144− [("status" .=) <$> _leStatus,
145− ("resource" .=) <$> _leResource,
146− ("timeNanos" .=) <$> _leTimeNanos])
147−
148−-- | The \`Status\` type defines a logical error model that is suitable for
149−-- different programming environments, including REST APIs and RPC APIs. It
150−-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
151−-- designed to be: - Simple to use and understand for most users - Flexible
152−-- enough to meet unexpected needs # Overview The \`Status\` message
153−-- contains three pieces of data: error code, error message, and error
154−-- details. The error code should be an enum value of [google.rpc.Code][],
155−-- but it may accept additional error codes if needed. The error message
156−-- should be a developer-facing English message that helps developers
157−-- *understand* and *resolve* the error. If a localized user-facing error
158−-- message is needed, put the localized message in the error details or
159−-- localize it in the client. The optional error details may contain
160−-- arbitrary information about the error. There is a predefined set of
161−-- error detail types in the package \`google.rpc\` which can be used for
162−-- common error conditions. # Language mapping The \`Status\` message is
163−-- the logical representation of the error model, but it is not necessarily
164−-- the actual wire format. When the \`Status\` message is exposed in
165−-- different client libraries and different wire protocols, it can be
166−-- mapped differently. For example, it will likely be mapped to some
167−-- exceptions in Java, but more likely mapped to some error codes in C. #
168−-- Other uses The error model and the \`Status\` message can be used in a
169−-- variety of environments, either with or without APIs, to provide a
170−-- consistent developer experience across different environments. Example
171−-- uses of this error model include: - Partial errors. If a service needs
172−-- to return partial errors to the client, it may embed the \`Status\` in
173−-- the normal response to indicate the partial errors. - Workflow errors. A
174−-- typical workflow has multiple steps. Each step may have a \`Status\`
175−-- message for error reporting purpose. - Batch operations. If a client
176−-- uses batch request and batch response, the \`Status\` message should be
177−-- used directly inside batch response, one for each error sub-response. -
178−-- Asynchronous operations. If an API call embeds asynchronous operation
179−-- results in its response, the status of those operations should be
180−-- represented directly using the \`Status\` message. - Logging. If some
181−-- API errors are stored in logs, the message \`Status\` could be used
182−-- directly after any stripping needed for security\/privacy reasons.
183−--
184−-- /See:/ 'status' smart constructor.
185−data Status = Status
186− { _sDetails :: !(Maybe [StatusDetailsItem])
187− , _sCode :: !(Maybe Int32)
188− , _sMessage :: !(Maybe Text)
189− } deriving (Eq,Show,Data,Typeable,Generic)
190−
191−-- | Creates a value of 'Status' with the minimum fields required to make a request.
192−--
193−-- Use one of the following lenses to modify other fields as desired:
194−--
195−-- * 'sDetails'
196−--
197−-- * 'sCode'
198−--
199−-- * 'sMessage'
200−status
201− :: Status
202−status =
203− Status
204− { _sDetails = Nothing
205− , _sCode = Nothing
206− , _sMessage = Nothing
207− }
208−
209−-- | A list of messages that carry the error details. There will be a common
210−-- set of message types for APIs to use.
211−sDetails :: Lens' Status [StatusDetailsItem]
212−sDetails
213− = lens _sDetails (\ s a -> s{_sDetails = a}) .
214− _Default
215− . _Coerce
216−
217−-- | The status code, which should be an enum value of [google.rpc.Code][].
218−sCode :: Lens' Status (Maybe Int32)
219−sCode = lens _sCode (\ s a -> s{_sCode = a})
220−
221−-- | A developer-facing error message, which should be in English. Any
222−-- user-facing error message should be localized and sent in the
223−-- [google.rpc.Status.details][google.rpc.Status.details] field, or
224−-- localized by the client.
225−sMessage :: Lens' Status (Maybe Text)
226−sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
227−
228−instance FromJSON Status where
229− parseJSON
230− = withObject "Status"
231− (\ o ->
232− Status <$>
233− (o .:? "details" .!= mempty) <*> (o .:? "code") <*>
234− (o .:? "message"))
235−
236−instance ToJSON Status where
237− toJSON Status{..}
238− = object
239− (catMaybes
240− [("details" .=) <$> _sDetails,
241− ("code" .=) <$> _sCode,
242− ("message" .=) <$> _sMessage])
243−
244−-- | The parameters to WriteLogEntries.
245−--
246−-- /See:/ 'writeLogEntriesRequest' smart constructor.
247−data WriteLogEntriesRequest = WriteLogEntriesRequest
248− { _wlerEntries :: !(Maybe [LogEntry])
249− , _wlerCommonLabels :: !(Maybe WriteLogEntriesRequestCommonLabels)
250− } deriving (Eq,Show,Data,Typeable,Generic)
251−
252−-- | Creates a value of 'WriteLogEntriesRequest' with the minimum fields required to make a request.
253−--
254−-- Use one of the following lenses to modify other fields as desired:
255−--
256−-- * 'wlerEntries'
257−--
258−-- * 'wlerCommonLabels'
259−writeLogEntriesRequest
260− :: WriteLogEntriesRequest
261−writeLogEntriesRequest =
262− WriteLogEntriesRequest
263− { _wlerEntries = Nothing
264− , _wlerCommonLabels = Nothing
265− }
266−
267−-- | Log entries to insert.
268−wlerEntries :: Lens' WriteLogEntriesRequest [LogEntry]
269−wlerEntries
270− = lens _wlerEntries (\ s a -> s{_wlerEntries = a}) .
271− _Default
272− . _Coerce
273−
274−-- | Metadata labels that apply to all log entries in this request, so that
275−-- you don\'t have to repeat them in each log entry\'s \`metadata.labels\`
276−-- field. If any of the log entries contains a (key, value) with the same
277−-- key that is in \`commonLabels\`, then the entry\'s (key, value)
278−-- overrides the one in \`commonLabels\`.
279−wlerCommonLabels :: Lens' WriteLogEntriesRequest (Maybe WriteLogEntriesRequestCommonLabels)
280−wlerCommonLabels
281− = lens _wlerCommonLabels
282− (\ s a -> s{_wlerCommonLabels = a})
283−
284−instance FromJSON WriteLogEntriesRequest where
285− parseJSON
286− = withObject "WriteLogEntriesRequest"
287− (\ o ->
288− WriteLogEntriesRequest <$>
289− (o .:? "entries" .!= mempty) <*>
290− (o .:? "commonLabels"))
291−
292−instance ToJSON WriteLogEntriesRequest where
293− toJSON WriteLogEntriesRequest{..}
294− = object
295− (catMaybes
296− [("entries" .=) <$> _wlerEntries,
297− ("commonLabels" .=) <$> _wlerCommonLabels])
298−
299−-- | Metadata labels that apply to all log entries in this request, so that
300−-- you don\'t have to repeat them in each log entry\'s \`metadata.labels\`
301−-- field. If any of the log entries contains a (key, value) with the same
302−-- key that is in \`commonLabels\`, then the entry\'s (key, value)
303−-- overrides the one in \`commonLabels\`.
304−--
305−-- /See:/ 'writeLogEntriesRequestCommonLabels' smart constructor.
306−newtype WriteLogEntriesRequestCommonLabels = WriteLogEntriesRequestCommonLabels
307− { _wlerclAddtional :: HashMap Text Text
308− } deriving (Eq,Show,Data,Typeable,Generic)
309−
310−-- | Creates a value of 'WriteLogEntriesRequestCommonLabels' with the minimum fields required to make a request.
311−--
312−-- Use one of the following lenses to modify other fields as desired:
313−--
314−-- * 'wlerclAddtional'
315−writeLogEntriesRequestCommonLabels
316− :: HashMap Text Text -- ^ 'addtional'
317− -> WriteLogEntriesRequestCommonLabels
318−writeLogEntriesRequestCommonLabels pWlerclAddtional_ =
319− WriteLogEntriesRequestCommonLabels
320− { _wlerclAddtional = pWlerclAddtional_
321− }
322−
323−wlerclAddtional :: Lens' WriteLogEntriesRequestCommonLabels (HashMap Text Text)
324−wlerclAddtional
325− = lens _wlerclAddtional
326− (\ s a -> s{_wlerclAddtional = a})
327−
328−instance FromJSON WriteLogEntriesRequestCommonLabels
329− where
330− parseJSON
331− = withObject "WriteLogEntriesRequestCommonLabels"
332− (\ o ->
333− WriteLogEntriesRequestCommonLabels <$>
334− (parseJSONObject o))
335−
336−instance ToJSON WriteLogEntriesRequestCommonLabels
337− where
338− toJSON = toJSON . _wlerclAddtional
339−
340−-- | A generic empty message that you can re-use to avoid defining duplicated
341−-- empty messages in your APIs. A typical example is to use it as the
342−-- request or the response type of an API method. For instance: service Foo
343−-- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The
344−-- JSON representation for \`Empty\` is empty JSON object \`{}\`.
345−--
346−-- /See:/ 'empty' smart constructor.
347−data Empty =
348− Empty
349− deriving (Eq,Show,Data,Typeable,Generic)
350−
351−-- | Creates a value of 'Empty' with the minimum fields required to make a request.
352−--
353−empty
354− :: Empty
355−empty = Empty
356−
357−instance FromJSON Empty where
358− parseJSON = withObject "Empty" (\ o -> pure Empty)
359−
360−instance ToJSON Empty where
361− toJSON = const emptyObject
362−
363−-- | Result returned from \`ListSinks\`.
364−--
365−-- /See:/ 'listSinksResponse' smart constructor.
366−newtype ListSinksResponse = ListSinksResponse
367− { _lsrSinks :: Maybe [LogSink]
368− } deriving (Eq,Show,Data,Typeable,Generic)
369−
370−-- | Creates a value of 'ListSinksResponse' with the minimum fields required to make a request.
371−--
372−-- Use one of the following lenses to modify other fields as desired:
373−--
374−-- * 'lsrSinks'
375−listSinksResponse
376− :: ListSinksResponse
377−listSinksResponse =
378− ListSinksResponse
379− { _lsrSinks = Nothing
380− }
381−
382−-- | The requested sinks. If a returned \`LogSink\` object has an empty
383−-- \`destination\` field, the client can retrieve the complete \`LogSink\`
384−-- object by calling \`projects.sinks.get\`.
385−lsrSinks :: Lens' ListSinksResponse [LogSink]
386−lsrSinks
387− = lens _lsrSinks (\ s a -> s{_lsrSinks = a}) .
388− _Default
389− . _Coerce
390−
391−instance FromJSON ListSinksResponse where
392− parseJSON
393− = withObject "ListSinksResponse"
394− (\ o ->
395− ListSinksResponse <$> (o .:? "sinks" .!= mempty))
396−
397−instance ToJSON ListSinksResponse where
398− toJSON ListSinksResponse{..}
399− = object (catMaybes [("sinks" .=) <$> _lsrSinks])
400−
40123-- | Complete log information about a single request to an application.
40224--
40325-- /See:/ 'requestLog' smart constructor.
@@ -789,731 +411,6 @@ instance ToJSON RequestLog where
789411 ("sourceReference" .=) <$> _rlSourceReference,
790412 ("appEngineRelease" .=) <$> _rlAppEngineRelease])
791413
792−-- | Additional data that is associated with a log entry, set by the service
793−-- creating the log entry.
794−--
795−-- /See:/ 'logEntryMetadata' smart constructor.
796−data LogEntryMetadata = LogEntryMetadata
797− { _lemSeverity :: !(Maybe Text)
798− , _lemZone :: !(Maybe Text)
799− , _lemUserId :: !(Maybe Text)
800− , _lemServiceName :: !(Maybe Text)
801− , _lemLabels :: !(Maybe LogEntryMetadataLabels)
802− , _lemRegion :: !(Maybe Text)
803− , _lemProjectId :: !(Maybe Text)
804− , _lemTimestamp :: !(Maybe Text)
805− } deriving (Eq,Show,Data,Typeable,Generic)
806−
807−-- | Creates a value of 'LogEntryMetadata' with the minimum fields required to make a request.
808−--
809−-- Use one of the following lenses to modify other fields as desired:
810−--
811−-- * 'lemSeverity'
812−--
813−-- * 'lemZone'
814−--
815−-- * 'lemUserId'
816−--
817−-- * 'lemServiceName'
818−--
819−-- * 'lemLabels'
820−--
821−-- * 'lemRegion'
822−--
823−-- * 'lemProjectId'
824−--
825−-- * 'lemTimestamp'
826−logEntryMetadata
827− :: LogEntryMetadata
828−logEntryMetadata =
829− LogEntryMetadata
830− { _lemSeverity = Nothing
831− , _lemZone = Nothing
832− , _lemUserId = Nothing
833− , _lemServiceName = Nothing
834− , _lemLabels = Nothing
835− , _lemRegion = Nothing
836− , _lemProjectId = Nothing
837− , _lemTimestamp = Nothing
838− }
839−
840−-- | The severity of the log entry.
841−lemSeverity :: Lens' LogEntryMetadata (Maybe Text)
842−lemSeverity
843− = lens _lemSeverity (\ s a -> s{_lemSeverity = a})
844−
845−-- | The zone of the Google Cloud Platform service that created the log
846−-- entry. For example, \`\"us-central1-a\"\`.
847−lemZone :: Lens' LogEntryMetadata (Maybe Text)
848−lemZone = lens _lemZone (\ s a -> s{_lemZone = a})
849−
850−-- | The fully-qualified email address of the authenticated user that
851−-- performed or requested the action represented by the log entry. If the
852−-- log entry does not apply to an action taken by an authenticated user,
853−-- then the field should be empty.
854−lemUserId :: Lens' LogEntryMetadata (Maybe Text)
855−lemUserId
856− = lens _lemUserId (\ s a -> s{_lemUserId = a})
857−
858−-- | The API name of the Google Cloud Platform service that created the log
859−-- entry. For example, \`\"compute.googleapis.com\"\`.
860−lemServiceName :: Lens' LogEntryMetadata (Maybe Text)
861−lemServiceName
862− = lens _lemServiceName
863− (\ s a -> s{_lemServiceName = a})
864−
865−-- | A set of (key, value) data that provides additional information about
866−-- the log entry. If the log entry is from one of the Google Cloud Platform
867−-- sources listed below, the indicated (key, value) information must be
868−-- provided: Google App Engine, service_name \`appengine.googleapis.com\`:
869−-- \"appengine.googleapis.com\/module_id\",
870−-- \"appengine.googleapis.com\/version_id\", and one of:
871−-- \"appengine.googleapis.com\/replica_index\",
872−-- \"appengine.googleapis.com\/clone_id\", or else provide the following
873−-- Compute Engine labels: Google Compute Engine, service_name
874−-- \`compute.googleapis.com\`: \"compute.googleapis.com\/resource_type\",
875−-- \"instance\" \"compute.googleapis.com\/resource_id\",
876−lemLabels :: Lens' LogEntryMetadata (Maybe LogEntryMetadataLabels)
877−lemLabels
878− = lens _lemLabels (\ s a -> s{_lemLabels = a})
879−
880−-- | The region name of the Google Cloud Platform service that created the
881−-- log entry. For example, \`\"us-central1\"\`.
882−lemRegion :: Lens' LogEntryMetadata (Maybe Text)
883−lemRegion
884− = lens _lemRegion (\ s a -> s{_lemRegion = a})
885−
886−-- | The project ID of the Google Cloud Platform service that created the log
887−-- entry.
888−lemProjectId :: Lens' LogEntryMetadata (Maybe Text)
889−lemProjectId
890− = lens _lemProjectId (\ s a -> s{_lemProjectId = a})
891−
892−-- | The time the event described by the log entry occurred. Timestamps must
893−-- be later than January 1, 1970.
894−lemTimestamp :: Lens' LogEntryMetadata (Maybe Text)
895−lemTimestamp
896− = lens _lemTimestamp (\ s a -> s{_lemTimestamp = a})
897−
898−instance FromJSON LogEntryMetadata where
899− parseJSON
900− = withObject "LogEntryMetadata"
901− (\ o ->
902− LogEntryMetadata <$>
903− (o .:? "severity") <*> (o .:? "zone") <*>
904− (o .:? "userId")
905− <*> (o .:? "serviceName")
906− <*> (o .:? "labels")
907− <*> (o .:? "region")
908− <*> (o .:? "projectId")
909− <*> (o .:? "timestamp"))
910−
911−instance ToJSON LogEntryMetadata where
912− toJSON LogEntryMetadata{..}
913− = object
914− (catMaybes
915− [("severity" .=) <$> _lemSeverity,
916− ("zone" .=) <$> _lemZone,
917− ("userId" .=) <$> _lemUserId,
918− ("serviceName" .=) <$> _lemServiceName,
919− ("labels" .=) <$> _lemLabels,
920− ("region" .=) <$> _lemRegion,
921− ("projectId" .=) <$> _lemProjectId,
922− ("timestamp" .=) <$> _lemTimestamp])
923−
924−-- | The log entry payload, represented as a protocol buffer that is
925−-- expressed as a JSON object. You can only pass \`protoPayload\` values
926−-- that belong to a set of approved types.
927−--
928−-- /See:/ 'logEntryProtoPayload' smart constructor.
929−newtype LogEntryProtoPayload = LogEntryProtoPayload
930− { _leppAddtional :: HashMap Text JSONValue
931− } deriving (Eq,Show,Data,Typeable,Generic)
932−
933−-- | Creates a value of 'LogEntryProtoPayload' with the minimum fields required to make a request.
934−--
935−-- Use one of the following lenses to modify other fields as desired:
936−--
937−-- * 'leppAddtional'
938−logEntryProtoPayload
939− :: HashMap Text JSONValue -- ^ 'addtional'
940− -> LogEntryProtoPayload
941−logEntryProtoPayload pLeppAddtional_ =
942− LogEntryProtoPayload
943− { _leppAddtional = pLeppAddtional_
944− }
945−
946−-- | Properties of the object. Contains field \'ype with type URL.
947−leppAddtional :: Lens' LogEntryProtoPayload (HashMap Text JSONValue)
948−leppAddtional
949− = lens _leppAddtional
950− (\ s a -> s{_leppAddtional = a})
951−
952−instance FromJSON LogEntryProtoPayload where
953− parseJSON
954− = withObject "LogEntryProtoPayload"
955− (\ o -> LogEntryProtoPayload <$> (parseJSONObject o))
956−
957−instance ToJSON LogEntryProtoPayload where
958− toJSON = toJSON . _leppAddtional
959−
960−-- | Result returned from ListLogServiceIndexesRequest.
961−--
962−-- /See:/ 'listLogServiceIndexesResponse' smart constructor.
963−data ListLogServiceIndexesResponse = ListLogServiceIndexesResponse
964− { _llsirNextPageToken :: !(Maybe Text)
965− , _llsirServiceIndexPrefixes :: !(Maybe [Text])
966− } deriving (Eq,Show,Data,Typeable,Generic)
967−
968−-- | Creates a value of 'ListLogServiceIndexesResponse' with the minimum fields required to make a request.
969−--
970−-- Use one of the following lenses to modify other fields as desired:
971−--
972−-- * 'llsirNextPageToken'
973−--
974−-- * 'llsirServiceIndexPrefixes'
975−listLogServiceIndexesResponse
976− :: ListLogServiceIndexesResponse
977−listLogServiceIndexesResponse =
978− ListLogServiceIndexesResponse
979− { _llsirNextPageToken = Nothing
980− , _llsirServiceIndexPrefixes = Nothing
981− }
982−
983−-- | If there are more results, then \`nextPageToken\` is returned in the
984−-- response. To get the next batch of indexes, use the value of
985−-- \`nextPageToken\` as \`pageToken\` in the next call of
986−-- \`ListLogServiceIndexes\`. If \`nextPageToken\` is empty, then there are
987−-- no more results.
988−llsirNextPageToken :: Lens' ListLogServiceIndexesResponse (Maybe Text)
989−llsirNextPageToken
990− = lens _llsirNextPageToken
991− (\ s a -> s{_llsirNextPageToken = a})
992−
993−-- | A list of log service index values. Each index value has the form
994−-- \`\"\/value1\/value2\/...\"\`, where \`value1\` is a value in the
995−-- primary index, \`value2\` is a value in the secondary index, and so
996−-- forth.
997−llsirServiceIndexPrefixes :: Lens' ListLogServiceIndexesResponse [Text]
998−llsirServiceIndexPrefixes
999− = lens _llsirServiceIndexPrefixes
1000− (\ s a -> s{_llsirServiceIndexPrefixes = a})
1001− . _Default
1002− . _Coerce
1003−
1004−instance FromJSON ListLogServiceIndexesResponse where
1005− parseJSON
1006− = withObject "ListLogServiceIndexesResponse"
1007− (\ o ->
1008− ListLogServiceIndexesResponse <$>
1009− (o .:? "nextPageToken") <*>
1010− (o .:? "serviceIndexPrefixes" .!= mempty))
1011−
1012−instance ToJSON ListLogServiceIndexesResponse where
1013− toJSON ListLogServiceIndexesResponse{..}
1014− = object
1015− (catMaybes
1016− [("nextPageToken" .=) <$> _llsirNextPageToken,
1017− ("serviceIndexPrefixes" .=) <$>
1018− _llsirServiceIndexPrefixes])
1019−
1020−-- | Result returned from WriteLogEntries. empty
1021−--
1022−-- /See:/ 'writeLogEntriesResponse' smart constructor.
1023−data WriteLogEntriesResponse =
1024− WriteLogEntriesResponse
1025− deriving (Eq,Show,Data,Typeable,Generic)
1026−
1027−-- | Creates a value of 'WriteLogEntriesResponse' with the minimum fields required to make a request.
1028−--
1029−writeLogEntriesResponse
1030− :: WriteLogEntriesResponse
1031−writeLogEntriesResponse = WriteLogEntriesResponse
1032−
1033−instance FromJSON WriteLogEntriesResponse where
1034− parseJSON
1035− = withObject "WriteLogEntriesResponse"
1036− (\ o -> pure WriteLogEntriesResponse)
1037−
1038−instance ToJSON WriteLogEntriesResponse where
1039− toJSON = const emptyObject
1040−
1041−-- | Describes where log entries are written outside of Cloud Logging.
1042−--
1043−-- /See:/ 'logSink' smart constructor.
1044−data LogSink = LogSink
1045− { _lsDestination :: !(Maybe Text)
1046− , _lsName :: !(Maybe Text)
1047− , _lsFilter :: !(Maybe Text)
1048− , _lsErrors :: !(Maybe [LogError])
1049− } deriving (Eq,Show,Data,Typeable,Generic)
1050−
1051−-- | Creates a value of 'LogSink' with the minimum fields required to make a request.
1052−--
1053−-- Use one of the following lenses to modify other fields as desired:
1054−--
1055−-- * 'lsDestination'
1056−--
1057−-- * 'lsName'
1058−--
1059−-- * 'lsFilter'
1060−--
1061−-- * 'lsErrors'
1062−logSink
1063− :: LogSink
1064−logSink =
1065− LogSink
1066− { _lsDestination = Nothing
1067− , _lsName = Nothing
1068− , _lsFilter = Nothing
1069− , _lsErrors = Nothing
1070− }
1071−
1072−-- | The resource name of the destination. Cloud Logging writes designated
1073−-- log entries to this destination. For example,
1074−-- \`\"storage.googleapis.com\/my-output-bucket\"\`.
1075−lsDestination :: Lens' LogSink (Maybe Text)
1076−lsDestination
1077− = lens _lsDestination
1078− (\ s a -> s{_lsDestination = a})
1079−
1080−-- | The client-assigned name of this sink. For example,
1081−-- \`\"my-syslog-sink\"\`. The name must be unique among the sinks of a
1082−-- similar kind in the project.
1083−lsName :: Lens' LogSink (Maybe Text)
1084−lsName = lens _lsName (\ s a -> s{_lsName = a})
1085−
1086−-- | An advanced logs filter. If present, only log entries matching the
1087−-- filter are written. Only project sinks use this field; log sinks and log
1088−-- service sinks must not include a filter.
1089−lsFilter :: Lens' LogSink (Maybe Text)
1090−lsFilter = lens _lsFilter (\ s a -> s{_lsFilter = a})
1091−
1092−-- | _Output only._ If any errors occur when invoking a sink method, then
1093−-- this field contains descriptions of the errors.
1094−lsErrors :: Lens' LogSink [LogError]
1095−lsErrors
1096− = lens _lsErrors (\ s a -> s{_lsErrors = a}) .
1097− _Default
1098− . _Coerce
1099−
1100−instance FromJSON LogSink where
1101− parseJSON
1102− = withObject "LogSink"
1103− (\ o ->
1104− LogSink <$>
1105− (o .:? "destination") <*> (o .:? "name") <*>
1106− (o .:? "filter")
1107− <*> (o .:? "errors" .!= mempty))
1108−
1109−instance ToJSON LogSink where
1110− toJSON LogSink{..}
1111− = object
1112− (catMaybes
1113− [("destination" .=) <$> _lsDestination,
1114− ("name" .=) <$> _lsName, ("filter" .=) <$> _lsFilter,
1115− ("errors" .=) <$> _lsErrors])
1116−
1117−-- | Result returned from \`ListLogServicesRequest\`.
1118−--
1119−-- /See:/ 'listLogServicesResponse' smart constructor.
1120−data ListLogServicesResponse = ListLogServicesResponse
1121− { _llsrNextPageToken :: !(Maybe Text)
1122− , _llsrLogServices :: !(Maybe [LogService])
1123− } deriving (Eq,Show,Data,Typeable,Generic)
1124−
1125−-- | Creates a value of 'ListLogServicesResponse' with the minimum fields required to make a request.
1126−--
1127−-- Use one of the following lenses to modify other fields as desired:
1128−--
1129−-- * 'llsrNextPageToken'
1130−--
1131−-- * 'llsrLogServices'
1132−listLogServicesResponse
1133− :: ListLogServicesResponse
1134−listLogServicesResponse =
1135− ListLogServicesResponse
1136− { _llsrNextPageToken = Nothing
1137− , _llsrLogServices = Nothing
1138− }
1139−
1140−-- | If there are more results, then \`nextPageToken\` is returned in the
1141−-- response. To get the next batch of services, use the value of
1142−-- \`nextPageToken\` as \`pageToken\` in the next call of
1143−-- \`ListLogServices\`. If \`nextPageToken\` is empty, then there are no
1144−-- more results.
1145−llsrNextPageToken :: Lens' ListLogServicesResponse (Maybe Text)
1146−llsrNextPageToken
1147− = lens _llsrNextPageToken
1148− (\ s a -> s{_llsrNextPageToken = a})
1149−
1150−-- | A list of log services.
1151−llsrLogServices :: Lens' ListLogServicesResponse [LogService]
1152−llsrLogServices
1153− = lens _llsrLogServices
1154− (\ s a -> s{_llsrLogServices = a})
1155− . _Default
1156− . _Coerce
1157−
1158−instance FromJSON ListLogServicesResponse where
1159− parseJSON
1160− = withObject "ListLogServicesResponse"
1161− (\ o ->
1162− ListLogServicesResponse <$>
1163− (o .:? "nextPageToken") <*>
1164− (o .:? "logServices" .!= mempty))
1165−
1166−instance ToJSON ListLogServicesResponse where
1167− toJSON ListLogServicesResponse{..}
1168− = object
1169− (catMaybes
1170− [("nextPageToken" .=) <$> _llsrNextPageToken,
1171− ("logServices" .=) <$> _llsrLogServices])
1172−
1173−--
1174−-- /See:/ 'statusDetailsItem' smart constructor.
1175−newtype StatusDetailsItem = StatusDetailsItem
1176− { _sdiAddtional :: HashMap Text JSONValue
1177− } deriving (Eq,Show,Data,Typeable,Generic)
1178−
1179−-- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request.
1180−--
1181−-- Use one of the following lenses to modify other fields as desired:
1182−--
1183−-- * 'sdiAddtional'
1184−statusDetailsItem
1185− :: HashMap Text JSONValue -- ^ 'addtional'
1186− -> StatusDetailsItem
1187−statusDetailsItem pSdiAddtional_ =
1188− StatusDetailsItem
1189− { _sdiAddtional = pSdiAddtional_
1190− }
1191−
1192−-- | Properties of the object. Contains field \'ype with type URL.
1193−sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
1194−sdiAddtional
1195− = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
1196−
1197−instance FromJSON StatusDetailsItem where
1198− parseJSON
1199− = withObject "StatusDetailsItem"
1200− (\ o -> StatusDetailsItem <$> (parseJSONObject o))
1201−
1202−instance ToJSON StatusDetailsItem where
1203− toJSON = toJSON . _sdiAddtional
1204−
1205−-- | Result returned from ListLogs.
1206−--
1207−-- /See:/ 'listLogsResponse' smart constructor.
1208−data ListLogsResponse = ListLogsResponse
1209− { _llrNextPageToken :: !(Maybe Text)
1210− , _llrLogs :: !(Maybe [Log])
1211− } deriving (Eq,Show,Data,Typeable,Generic)
1212−
1213−-- | Creates a value of 'ListLogsResponse' with the minimum fields required to make a request.
1214−--
1215−-- Use one of the following lenses to modify other fields as desired:
1216−--
1217−-- * 'llrNextPageToken'
1218−--
1219−-- * 'llrLogs'
1220−listLogsResponse
1221− :: ListLogsResponse
1222−listLogsResponse =
1223− ListLogsResponse
1224− { _llrNextPageToken = Nothing
1225− , _llrLogs = Nothing
1226− }
1227−
1228−-- | If there are more results, then \`nextPageToken\` is returned in the
1229−-- response. To get the next batch of logs, use the value of
1230−-- \`nextPageToken\` as \`pageToken\` in the next call of \`ListLogs\`. If
1231−-- \`nextPageToken\` is empty, then there are no more results.
1232−llrNextPageToken :: Lens' ListLogsResponse (Maybe Text)
1233−llrNextPageToken
1234− = lens _llrNextPageToken
1235− (\ s a -> s{_llrNextPageToken = a})
1236−
1237−-- | A list of log descriptions matching the criteria.
1238−llrLogs :: Lens' ListLogsResponse [Log]
1239−llrLogs
1240− = lens _llrLogs (\ s a -> s{_llrLogs = a}) . _Default
1241− . _Coerce
1242−
1243−instance FromJSON ListLogsResponse where
1244− parseJSON
1245− = withObject "ListLogsResponse"
1246− (\ o ->
1247− ListLogsResponse <$>
1248− (o .:? "nextPageToken") <*>
1249− (o .:? "logs" .!= mempty))
1250−
1251−instance ToJSON ListLogsResponse where
1252− toJSON ListLogsResponse{..}
1253− = object
1254− (catMaybes
1255− [("nextPageToken" .=) <$> _llrNextPageToken,
1256− ("logs" .=) <$> _llrLogs])
1257−
1258−-- | A common proto for logging HTTP requests.
1259−--
1260−-- /See:/ 'hTTPRequest' smart constructor.
1261−data HTTPRequest = HTTPRequest
1262− { _httprStatus :: !(Maybe Int32)
1263− , _httprRequestURL :: !(Maybe Text)
1264− , _httprRemoteIP :: !(Maybe Text)
1265− , _httprRequestSize :: !(Maybe Int64)
1266− , _httprUserAgent :: !(Maybe Text)
1267− , _httprResponseSize :: !(Maybe Int64)
1268− , _httprRequestMethod :: !(Maybe Text)
1269− , _httprReferer :: !(Maybe Text)
1270− } deriving (Eq,Show,Data,Typeable,Generic)
1271−
1272−-- | Creates a value of 'HTTPRequest' with the minimum fields required to make a request.
1273−--
1274−-- Use one of the following lenses to modify other fields as desired:
1275−--
1276−-- * 'httprStatus'
1277−--
1278−-- * 'httprRequestURL'
1279−--
1280−-- * 'httprRemoteIP'
1281−--
1282−-- * 'httprRequestSize'
1283−--
1284−-- * 'httprUserAgent'
1285−--
1286−-- * 'httprResponseSize'
1287−--
1288−-- * 'httprRequestMethod'
1289−--
1290−-- * 'httprReferer'
1291−hTTPRequest
1292− :: HTTPRequest
1293−hTTPRequest =
1294− HTTPRequest
1295− { _httprStatus = Nothing
1296− , _httprRequestURL = Nothing
1297− , _httprRemoteIP = Nothing
1298− , _httprRequestSize = Nothing
1299− , _httprUserAgent = Nothing
1300− , _httprResponseSize = Nothing
1301− , _httprRequestMethod = Nothing
1302− , _httprReferer = Nothing
1303− }
1304−
1305−-- | A response code indicates the status of response, e.g., 200.
1306−httprStatus :: Lens' HTTPRequest (Maybe Int32)
1307−httprStatus
1308− = lens _httprStatus (\ s a -> s{_httprStatus = a})
1309−
1310−-- | Contains the scheme (http|https), the host name, the path and the query
1311−-- portion of the URL that was requested.
1312−httprRequestURL :: Lens' HTTPRequest (Maybe Text)
1313−httprRequestURL
1314− = lens _httprRequestURL
1315− (\ s a -> s{_httprRequestURL = a})
1316−
1317−-- | IP address of the client who issues the HTTP request. Could be either
1318−-- IPv4 or IPv6.
1319−httprRemoteIP :: Lens' HTTPRequest (Maybe Text)
1320−httprRemoteIP
1321− = lens _httprRemoteIP
1322− (\ s a -> s{_httprRemoteIP = a})
1323−
1324−-- | Size of the HTTP request message in bytes, including request headers and
1325−-- the request body.
1326−httprRequestSize :: Lens' HTTPRequest (Maybe Int64)
1327−httprRequestSize
1328− = lens _httprRequestSize
1329− (\ s a -> s{_httprRequestSize = a})
1330−
1331−-- | User agent sent by the client, e.g., \"Mozilla\/4.0 (compatible; MSIE
1332−-- 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\".
1333−httprUserAgent :: Lens' HTTPRequest (Maybe Text)
1334−httprUserAgent
1335− = lens _httprUserAgent
1336− (\ s a -> s{_httprUserAgent = a})
1337−
1338−-- | Size of the HTTP response message in bytes sent back to the client,
1339−-- including response headers and response body.
1340−httprResponseSize :: Lens' HTTPRequest (Maybe Int64)
1341−httprResponseSize
1342− = lens _httprResponseSize
1343− (\ s a -> s{_httprResponseSize = a})
1344−
1345−-- | Request method, such as \`GET\`, \`HEAD\`, \`PUT\` or \`POST\`.
1346−httprRequestMethod :: Lens' HTTPRequest (Maybe Text)
1347−httprRequestMethod
1348− = lens _httprRequestMethod
1349− (\ s a -> s{_httprRequestMethod = a})
1350−
1351−-- | Referer (a.k.a. referrer) URL of request, as defined in
1352−-- http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec14.html.
1353−httprReferer :: Lens' HTTPRequest (Maybe Text)
1354−httprReferer
1355− = lens _httprReferer (\ s a -> s{_httprReferer = a})
1356−
1357−instance FromJSON HTTPRequest where
1358− parseJSON
1359− = withObject "HTTPRequest"
1360− (\ o ->
1361− HTTPRequest <$>
1362− (o .:? "status") <*> (o .:? "requestUrl") <*>
1363− (o .:? "remoteIp")
1364− <*> (o .:? "requestSize")
1365− <*> (o .:? "userAgent")
1366− <*> (o .:? "responseSize")
1367− <*> (o .:? "requestMethod")
1368− <*> (o .:? "referer"))
1369−
1370−instance ToJSON HTTPRequest where
1371− toJSON HTTPRequest{..}
1372− = object
1373− (catMaybes
1374− [("status" .=) <$> _httprStatus,
1375− ("requestUrl" .=) <$> _httprRequestURL,
1376− ("remoteIp" .=) <$> _httprRemoteIP,
1377− ("requestSize" .=) <$> _httprRequestSize,
1378− ("userAgent" .=) <$> _httprUserAgent,
1379− ("responseSize" .=) <$> _httprResponseSize,
1380− ("requestMethod" .=) <$> _httprRequestMethod,
1381− ("referer" .=) <$> _httprReferer])
1382−
1383−-- | Result returned from \`ListLogSinks\`.
1384−--
1385−-- /See:/ 'listLogSinksResponse' smart constructor.
1386−newtype ListLogSinksResponse = ListLogSinksResponse
1387− { _llsrSinks :: Maybe [LogSink]
1388− } deriving (Eq,Show,Data,Typeable,Generic)
1389−
1390−-- | Creates a value of 'ListLogSinksResponse' with the minimum fields required to make a request.
1391−--
1392−-- Use one of the following lenses to modify other fields as desired:
1393−--
1394−-- * 'llsrSinks'
1395−listLogSinksResponse
1396− :: ListLogSinksResponse
1397−listLogSinksResponse =
1398− ListLogSinksResponse
1399− { _llsrSinks = Nothing
1400− }
1401−
1402−-- | The requested log sinks. If a returned \`LogSink\` object has an empty
1403−-- \`destination\` field, the client can retrieve the complete \`LogSink\`
1404−-- object by calling \`log.sinks.get\`.
1405−llsrSinks :: Lens' ListLogSinksResponse [LogSink]
1406−llsrSinks
1407− = lens _llsrSinks (\ s a -> s{_llsrSinks = a}) .
1408− _Default
1409− . _Coerce
1410−
1411−instance FromJSON ListLogSinksResponse where
1412− parseJSON
1413− = withObject "ListLogSinksResponse"
1414− (\ o ->
1415− ListLogSinksResponse <$> (o .:? "sinks" .!= mempty))
1416−
1417−instance ToJSON ListLogSinksResponse where
1418− toJSON ListLogSinksResponse{..}
1419− = object (catMaybes [("sinks" .=) <$> _llsrSinks])
1420−
1421−-- | _Output only._ Describes a service that writes log entries.
1422−--
1423−-- /See:/ 'logService' smart constructor.
1424−data LogService = LogService
1425− { _logName :: !(Maybe Text)
1426− , _logIndexKeys :: !(Maybe [Text])
1427− } deriving (Eq,Show,Data,Typeable,Generic)
1428−
1429−-- | Creates a value of 'LogService' with the minimum fields required to make a request.
1430−--
1431−-- Use one of the following lenses to modify other fields as desired:
1432−--
1433−-- * 'logName'
1434−--
1435−-- * 'logIndexKeys'
1436−logService
1437− :: LogService
1438−logService =
1439− LogService
1440− { _logName = Nothing
1441− , _logIndexKeys = Nothing
1442− }
1443−
1444−-- | The service\'s name. Example: \`\"appengine.googleapis.com\"\`. Log
1445−-- names beginning with this string are reserved for this service. This
1446−-- value can appear in the \`LogEntry.metadata.serviceName\` field of log
1447−-- entries associated with this log service.
1448−logName :: Lens' LogService (Maybe Text)
1449−logName = lens _logName (\ s a -> s{_logName = a})
1450−
1451−-- | A list of the names of the keys used to index and label individual log
1452−-- entries from this service. The first two keys are used as the primary
1453−-- and secondary index, respectively. Additional keys may be used to label
1454−-- the entries. For example, App Engine indexes its entries by module and
1455−-- by version, so its \`indexKeys\` field is the following: [
1456−-- \"appengine.googleapis.com\/module_id\",
1457−-- \"appengine.googleapis.com\/version_id\" ]
1458−logIndexKeys :: Lens' LogService [Text]
1459−logIndexKeys
1460− = lens _logIndexKeys (\ s a -> s{_logIndexKeys = a})
1461− . _Default
1462− . _Coerce
1463−
1464−instance FromJSON LogService where
1465− parseJSON
1466− = withObject "LogService"
1467− (\ o ->
1468− LogService <$>
1469− (o .:? "name") <*> (o .:? "indexKeys" .!= mempty))
1470−
1471−instance ToJSON LogService where
1472− toJSON LogService{..}
1473− = object
1474− (catMaybes
1475− [("name" .=) <$> _logName,
1476− ("indexKeys" .=) <$> _logIndexKeys])
1477−
1478−-- | Result returned from \`ListLogServiceSinks\`.
1479−--
1480−-- /See:/ 'listLogServiceSinksResponse' smart constructor.
1481−newtype ListLogServiceSinksResponse = ListLogServiceSinksResponse
1482− { _llssrSinks :: Maybe [LogSink]
1483− } deriving (Eq,Show,Data,Typeable,Generic)
1484−
1485−-- | Creates a value of 'ListLogServiceSinksResponse' with the minimum fields required to make a request.
1486−--
1487−-- Use one of the following lenses to modify other fields as desired:
1488−--
1489−-- * 'llssrSinks'
1490−listLogServiceSinksResponse
1491− :: ListLogServiceSinksResponse
1492−listLogServiceSinksResponse =
1493− ListLogServiceSinksResponse
1494− { _llssrSinks = Nothing
1495− }
1496−
1497−-- | The requested log service sinks. If a returned \`LogSink\` object has an
1498−-- empty \`destination\` field, the client can retrieve the complete
1499−-- \`LogSink\` object by calling \`logServices.sinks.get\`.
1500−llssrSinks :: Lens' ListLogServiceSinksResponse [LogSink]
1501−llssrSinks
1502− = lens _llssrSinks (\ s a -> s{_llssrSinks = a}) .
1503− _Default
1504− . _Coerce
1505−
1506−instance FromJSON ListLogServiceSinksResponse where
1507− parseJSON
1508− = withObject "ListLogServiceSinksResponse"
1509− (\ o ->
1510− ListLogServiceSinksResponse <$>
1511− (o .:? "sinks" .!= mempty))
1512−
1513−instance ToJSON ListLogServiceSinksResponse where
1514− toJSON ListLogServiceSinksResponse{..}
1515− = object (catMaybes [("sinks" .=) <$> _llssrSinks])
1516−
1517414-- | Application log line emitted while processing a request.
1518415--
1519416-- /See:/ 'logLine' smart constructor.
@@ -1583,162 +480,6 @@ instance ToJSON LogLine where
1583480 ("logMessage" .=) <$> _llLogMessage,
1584481 ("sourceLocation" .=) <$> _llSourceLocation])
1585482
1586−-- | An individual entry in a log.
1587−--
1588−-- /See:/ 'logEntry' smart constructor.
1589−data LogEntry = LogEntry
1590− { _leLog :: !(Maybe Text)
1591− , _leTextPayload :: !(Maybe Text)
1592− , _leHTTPRequest :: !(Maybe HTTPRequest)
1593− , _leStructPayload :: !(Maybe LogEntryStructPayload)
1594− , _leInsertId :: !(Maybe Text)
1595− , _leMetadata :: !(Maybe LogEntryMetadata)
1596− , _leProtoPayload :: !(Maybe LogEntryProtoPayload)
1597− } deriving (Eq,Show,Data,Typeable,Generic)
1598−
1599−-- | Creates a value of 'LogEntry' with the minimum fields required to make a request.
1600−--
1601−-- Use one of the following lenses to modify other fields as desired:
1602−--
1603−-- * 'leLog'
1604−--
1605−-- * 'leTextPayload'
1606−--
1607−-- * 'leHTTPRequest'
1608−--
1609−-- * 'leStructPayload'
1610−--
1611−-- * 'leInsertId'
1612−--
1613−-- * 'leMetadata'
1614−--
1615−-- * 'leProtoPayload'
1616−logEntry
1617− :: LogEntry
1618−logEntry =
1619− LogEntry
1620− { _leLog = Nothing
1621− , _leTextPayload = Nothing
1622− , _leHTTPRequest = Nothing
1623− , _leStructPayload = Nothing
1624− , _leInsertId = Nothing
1625− , _leMetadata = Nothing
1626− , _leProtoPayload = Nothing
1627− }
1628−
1629−-- | The log to which this entry belongs. When a log entry is ingested, the
1630−-- value of this field is set by the logging system.
1631−leLog :: Lens' LogEntry (Maybe Text)
1632−leLog = lens _leLog (\ s a -> s{_leLog = a})
1633−
1634−-- | The log entry payload, represented as a text string.
1635−leTextPayload :: Lens' LogEntry (Maybe Text)
1636−leTextPayload
1637− = lens _leTextPayload
1638− (\ s a -> s{_leTextPayload = a})
1639−
1640−-- | Information about the HTTP request associated with this log entry, if
1641−-- applicable.
1642−leHTTPRequest :: Lens' LogEntry (Maybe HTTPRequest)
1643−leHTTPRequest
1644− = lens _leHTTPRequest
1645− (\ s a -> s{_leHTTPRequest = a})
1646−
1647−-- | The log entry payload, represented as a structure that is expressed as a
1648−-- JSON object.
1649−leStructPayload :: Lens' LogEntry (Maybe LogEntryStructPayload)
1650−leStructPayload
1651− = lens _leStructPayload
1652− (\ s a -> s{_leStructPayload = a})
1653−
1654−-- | A unique ID for the log entry. If you provide this field, the logging
1655−-- service considers other log entries in the same log with the same ID as
1656−-- duplicates which can be removed.
1657−leInsertId :: Lens' LogEntry (Maybe Text)
1658−leInsertId
1659− = lens _leInsertId (\ s a -> s{_leInsertId = a})
1660−
1661−-- | Information about the log entry.
1662−leMetadata :: Lens' LogEntry (Maybe LogEntryMetadata)
1663−leMetadata
1664− = lens _leMetadata (\ s a -> s{_leMetadata = a})
1665−
1666−-- | The log entry payload, represented as a protocol buffer that is
1667−-- expressed as a JSON object. You can only pass \`protoPayload\` values
1668−-- that belong to a set of approved types.
1669−leProtoPayload :: Lens' LogEntry (Maybe LogEntryProtoPayload)
1670−leProtoPayload
1671− = lens _leProtoPayload
1672− (\ s a -> s{_leProtoPayload = a})
1673−
1674−instance FromJSON LogEntry where
1675− parseJSON
1676− = withObject "LogEntry"
1677− (\ o ->
1678− LogEntry <$>
1679− (o .:? "log") <*> (o .:? "textPayload") <*>
1680− (o .:? "httpRequest")
1681− <*> (o .:? "structPayload")
1682− <*> (o .:? "insertId")
1683− <*> (o .:? "metadata")
1684− <*> (o .:? "protoPayload"))
1685−
1686−instance ToJSON LogEntry where
1687− toJSON LogEntry{..}
1688− = object
1689− (catMaybes
1690− [("log" .=) <$> _leLog,
1691− ("textPayload" .=) <$> _leTextPayload,
1692− ("httpRequest" .=) <$> _leHTTPRequest,
1693− ("structPayload" .=) <$> _leStructPayload,
1694− ("insertId" .=) <$> _leInsertId,
1695− ("metadata" .=) <$> _leMetadata,
1696− ("protoPayload" .=) <$> _leProtoPayload])
1697−
1698−-- | A set of (key, value) data that provides additional information about
1699−-- the log entry. If the log entry is from one of the Google Cloud Platform
1700−-- sources listed below, the indicated (key, value) information must be
1701−-- provided: Google App Engine, service_name \`appengine.googleapis.com\`:
1702−-- \"appengine.googleapis.com\/module_id\",
1703−-- \"appengine.googleapis.com\/version_id\", and one of:
1704−-- \"appengine.googleapis.com\/replica_index\",
1705−-- \"appengine.googleapis.com\/clone_id\", or else provide the following
1706−-- Compute Engine labels: Google Compute Engine, service_name
1707−-- \`compute.googleapis.com\`: \"compute.googleapis.com\/resource_type\",
1708−-- \"instance\" \"compute.googleapis.com\/resource_id\",
1709−--
1710−-- /See:/ 'logEntryMetadataLabels' smart constructor.
1711−newtype LogEntryMetadataLabels = LogEntryMetadataLabels
1712− { _lemlAddtional :: HashMap Text Text
1713− } deriving (Eq,Show,Data,Typeable,Generic)
1714−
1715−-- | Creates a value of 'LogEntryMetadataLabels' with the minimum fields required to make a request.
1716−--
1717−-- Use one of the following lenses to modify other fields as desired:
1718−--
1719−-- * 'lemlAddtional'
1720−logEntryMetadataLabels
1721− :: HashMap Text Text -- ^ 'addtional'
1722− -> LogEntryMetadataLabels
1723−logEntryMetadataLabels pLemlAddtional_ =
1724− LogEntryMetadataLabels
1725− { _lemlAddtional = pLemlAddtional_
1726− }
1727−
1728−lemlAddtional :: Lens' LogEntryMetadataLabels (HashMap Text Text)
1729−lemlAddtional
1730− = lens _lemlAddtional
1731− (\ s a -> s{_lemlAddtional = a})
1732−
1733−instance FromJSON LogEntryMetadataLabels where
1734− parseJSON
1735− = withObject "LogEntryMetadataLabels"
1736− (\ o ->
1737− LogEntryMetadataLabels <$> (parseJSONObject o))
1738−
1739−instance ToJSON LogEntryMetadataLabels where
1740− toJSON = toJSON . _lemlAddtional
1741−
1742483-- | Specifies a location in a source file.
1743484--
1744485-- /See:/ 'sourceLocation' smart constructor.
@@ -1850,39 +591,3 @@ instance ToJSON SourceReference where
1850591 (catMaybes
1851592 [("repository" .=) <$> _srRepository,
1852593 ("revisionId" .=) <$> _srRevisionId])
1853−
1854−-- | The log entry payload, represented as a structure that is expressed as a
1855−-- JSON object.
1856−--
1857−-- /See:/ 'logEntryStructPayload' smart constructor.
1858−newtype LogEntryStructPayload = LogEntryStructPayload
1859− { _lespAddtional :: HashMap Text JSONValue
1860− } deriving (Eq,Show,Data,Typeable,Generic)
1861−
1862−-- | Creates a value of 'LogEntryStructPayload' with the minimum fields required to make a request.
1863−--
1864−-- Use one of the following lenses to modify other fields as desired:
1865−--
1866−-- * 'lespAddtional'
1867−logEntryStructPayload
1868− :: HashMap Text JSONValue -- ^ 'addtional'
1869− -> LogEntryStructPayload
1870−logEntryStructPayload pLespAddtional_ =
1871− LogEntryStructPayload
1872− { _lespAddtional = pLespAddtional_
1873− }
1874−
1875−-- | Properties of the object.
1876−lespAddtional :: Lens' LogEntryStructPayload (HashMap Text JSONValue)
1877−lespAddtional
1878− = lens _lespAddtional
1879− (\ s a -> s{_lespAddtional = a})
1880−
1881−instance FromJSON LogEntryStructPayload where
1882− parseJSON
1883− = withObject "LogEntryStructPayload"
1884− (\ o ->
1885− LogEntryStructPayload <$> (parseJSONObject o))
1886−
1887−instance ToJSON LogEntryStructPayload where
1888− toJSON = toJSON . _lespAddtional
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Indexes/List.hsdeleted−282
@@ -1,282 +0,0 @@
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.Logging.Projects.LogServices.Indexes.List
17−-- Copyright : (c) 2015 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−-- | Lists the current index values for a log service.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesIndexesList@.
26−module Network.Google.Resource.Logging.Projects.LogServices.Indexes.List
27− (
28− -- * REST Resource
29− ProjectsLogServicesIndexesListResource
30−
31− -- * Creating a Request
32− , projectsLogServicesIndexesList'
33− , ProjectsLogServicesIndexesList'
34−
35− -- * Request Lenses
36− , plsilLog
37− , plsilXgafv
38− , plsilUploadProtocol
39− , plsilPp
40− , plsilAccessToken
41− , plsilUploadType
42− , plsilBearerToken
43− , plsilLogServicesId
44− , plsilDepth
45− , plsilPageToken
46− , plsilProjectsId
47− , plsilPageSize
48− , plsilIndexPrefix
49− , plsilCallback
50− ) where
51−
52−import Network.Google.Logging.Types
53−import Network.Google.Prelude
54−
55−-- | A resource alias for @LoggingProjectsLogServicesIndexesList@ method which the
56−-- 'ProjectsLogServicesIndexesList'' request conforms to.
57−type ProjectsLogServicesIndexesListResource =
58− "v1beta3" :>
59− "projects" :>
60− Capture "projectsId" Text :>
61− "logServices" :>
62− Capture "logServicesId" Text :>
63− "indexes" :>
64− QueryParam "log" Text :>
65− QueryParam "$.xgafv" Text :>
66− QueryParam "upload_protocol" Text :>
67− QueryParam "pp" Bool :>
68− QueryParam "access_token" Text :>
69− QueryParam "uploadType" Text :>
70− QueryParam "bearer_token" Text :>
71− QueryParam "depth" Int32 :>
72− QueryParam "pageToken" Text :>
73− QueryParam "pageSize" Int32 :>
74− QueryParam "indexPrefix" Text :>
75− QueryParam "callback" Text :>
76− QueryParam "alt" AltJSON :>
77− Get '[JSON]
78− ListLogServiceIndexesResponse
79−
80−-- | Lists the current index values for a log service.
81−--
82−-- /See:/ 'projectsLogServicesIndexesList'' smart constructor.
83−data ProjectsLogServicesIndexesList' = ProjectsLogServicesIndexesList'
84− { _plsilLog :: !(Maybe Text)
85− , _plsilXgafv :: !(Maybe Text)
86− , _plsilUploadProtocol :: !(Maybe Text)
87− , _plsilPp :: !Bool
88− , _plsilAccessToken :: !(Maybe Text)
89− , _plsilUploadType :: !(Maybe Text)
90− , _plsilBearerToken :: !(Maybe Text)
91− , _plsilLogServicesId :: !Text
92− , _plsilDepth :: !(Maybe Int32)
93− , _plsilPageToken :: !(Maybe Text)
94− , _plsilProjectsId :: !Text
95− , _plsilPageSize :: !(Maybe Int32)
96− , _plsilIndexPrefix :: !(Maybe Text)
97− , _plsilCallback :: !(Maybe Text)
98− } deriving (Eq,Show,Data,Typeable,Generic)
99−
100−-- | Creates a value of 'ProjectsLogServicesIndexesList'' with the minimum fields required to make a request.
101−--
102−-- Use one of the following lenses to modify other fields as desired:
103−--
104−-- * 'plsilLog'
105−--
106−-- * 'plsilXgafv'
107−--
108−-- * 'plsilUploadProtocol'
109−--
110−-- * 'plsilPp'
111−--
112−-- * 'plsilAccessToken'
113−--
114−-- * 'plsilUploadType'
115−--
116−-- * 'plsilBearerToken'
117−--
118−-- * 'plsilLogServicesId'
119−--
120−-- * 'plsilDepth'
121−--
122−-- * 'plsilPageToken'
123−--
124−-- * 'plsilProjectsId'
125−--
126−-- * 'plsilPageSize'
127−--
128−-- * 'plsilIndexPrefix'
129−--
130−-- * 'plsilCallback'
131−projectsLogServicesIndexesList'
132− :: Text -- ^ 'logServicesId'
133− -> Text -- ^ 'projectsId'
134− -> ProjectsLogServicesIndexesList'
135−projectsLogServicesIndexesList' pPlsilLogServicesId_ pPlsilProjectsId_ =
136− ProjectsLogServicesIndexesList'
137− { _plsilLog = Nothing
138− , _plsilXgafv = Nothing
139− , _plsilUploadProtocol = Nothing
140− , _plsilPp = True
141− , _plsilAccessToken = Nothing
142− , _plsilUploadType = Nothing
143− , _plsilBearerToken = Nothing
144− , _plsilLogServicesId = pPlsilLogServicesId_
145− , _plsilDepth = Nothing
146− , _plsilPageToken = Nothing
147− , _plsilProjectsId = pPlsilProjectsId_
148− , _plsilPageSize = Nothing
149− , _plsilIndexPrefix = Nothing
150− , _plsilCallback = Nothing
151− }
152−
153−-- | _Optional_. The resource name of a log, such as
154−-- \`\"projects\/project_id\/logs\/log_name\"\`. If present, indexes are
155−-- returned for any service associated with entries in the log.
156−plsilLog :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
157−plsilLog = lens _plsilLog (\ s a -> s{_plsilLog = a})
158−
159−-- | V1 error format.
160−plsilXgafv :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
161−plsilXgafv
162− = lens _plsilXgafv (\ s a -> s{_plsilXgafv = a})
163−
164−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
165−plsilUploadProtocol :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
166−plsilUploadProtocol
167− = lens _plsilUploadProtocol
168− (\ s a -> s{_plsilUploadProtocol = a})
169−
170−-- | Pretty-print response.
171−plsilPp :: Lens' ProjectsLogServicesIndexesList' Bool
172−plsilPp = lens _plsilPp (\ s a -> s{_plsilPp = a})
173−
174−-- | OAuth access token.
175−plsilAccessToken :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
176−plsilAccessToken
177− = lens _plsilAccessToken
178− (\ s a -> s{_plsilAccessToken = a})
179−
180−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
181−plsilUploadType :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
182−plsilUploadType
183− = lens _plsilUploadType
184− (\ s a -> s{_plsilUploadType = a})
185−
186−-- | OAuth bearer token.
187−plsilBearerToken :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
188−plsilBearerToken
189− = lens _plsilBearerToken
190− (\ s a -> s{_plsilBearerToken = a})
191−
192−-- | Part of \`serviceName\`. See documentation of \`projectsId\`.
193−plsilLogServicesId :: Lens' ProjectsLogServicesIndexesList' Text
194−plsilLogServicesId
195− = lens _plsilLogServicesId
196− (\ s a -> s{_plsilLogServicesId = a})
197−
198−-- | A non-negative integer that limits the number of levels of the index
199−-- hierarchy that are returned. If \`depth\` is 1 (default), only the first
200−-- index key value is returned. If \`depth\` is 2, both primary and
201−-- secondary key values are returned. If \`depth\` is 0, the depth is the
202−-- number of slash-separators in the \`indexPrefix\` field, not counting a
203−-- slash appearing as the last character of the prefix. If the
204−-- \`indexPrefix\` field is empty, the default depth is 1. It is an error
205−-- for \`depth\` to be any positive value less than the number of
206−-- components in \`indexPrefix\`.
207−plsilDepth :: Lens' ProjectsLogServicesIndexesList' (Maybe Int32)
208−plsilDepth
209− = lens _plsilDepth (\ s a -> s{_plsilDepth = a})
210−
211−-- | An opaque token, returned as \`nextPageToken\` by a prior
212−-- \`ListLogServiceIndexes\` operation. If \`pageToken\` is supplied, then
213−-- the other fields of this request are ignored, and instead the previous
214−-- \`ListLogServiceIndexes\` operation is continued.
215−plsilPageToken :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
216−plsilPageToken
217− = lens _plsilPageToken
218− (\ s a -> s{_plsilPageToken = a})
219−
220−-- | Part of \`serviceName\`. The resource name of a log service whose
221−-- service indexes are requested. Example:
222−-- \`\"projects\/my-project-id\/logServices\/appengine.googleapis.com\"\`.
223−plsilProjectsId :: Lens' ProjectsLogServicesIndexesList' Text
224−plsilProjectsId
225− = lens _plsilProjectsId
226− (\ s a -> s{_plsilProjectsId = a})
227−
228−-- | The maximum number of log service index resources to return in one
229−-- operation.
230−plsilPageSize :: Lens' ProjectsLogServicesIndexesList' (Maybe Int32)
231−plsilPageSize
232− = lens _plsilPageSize
233− (\ s a -> s{_plsilPageSize = a})
234−
235−-- | Restricts the index values returned to be those with a specified prefix
236−-- for each index key. This field has the form
237−-- \`\"\/prefix1\/prefix2\/...\"\`, in order corresponding to the
238−-- [\`LogService indexKeys\`][google.logging.v1.LogService.index_keys].
239−-- Non-empty prefixes must begin with \`\/\`. For example, App Engine\'s
240−-- two keys are the module ID and the version ID. Following is the effect
241−-- of using various values for \`indexPrefix\`: + \`\"\/Mod\/\"\` retrieves
242−-- \`\/Mod\/10\` and \`\/Mod\/11\` but not \`\/ModA\/10\`. + \`\"\/Mod\`
243−-- retrieves \`\/Mod\/10\`, \`\/Mod\/11\` and \`\/ModA\/10\` but not
244−-- \`\/XXX\/33\`. + \`\"\/Mod\/1\"\` retrieves \`\/Mod\/10\` and
245−-- \`\/Mod\/11\` but not \`\/ModA\/10\`. + \`\"\/Mod\/10\/\"\` retrieves
246−-- \`\/Mod\/10\` only. + An empty prefix or \`\"\/\"\` retrieves all
247−-- values.
248−plsilIndexPrefix :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
249−plsilIndexPrefix
250− = lens _plsilIndexPrefix
251− (\ s a -> s{_plsilIndexPrefix = a})
252−
253−-- | JSONP
254−plsilCallback :: Lens' ProjectsLogServicesIndexesList' (Maybe Text)
255−plsilCallback
256− = lens _plsilCallback
257− (\ s a -> s{_plsilCallback = a})
258−
259−instance GoogleRequest
260− ProjectsLogServicesIndexesList' where
261− type Rs ProjectsLogServicesIndexesList' =
262− ListLogServiceIndexesResponse
263− requestClient ProjectsLogServicesIndexesList'{..}
264− = go _plsilProjectsId _plsilLogServicesId _plsilLog
265− _plsilXgafv
266− _plsilUploadProtocol
267− (Just _plsilPp)
268− _plsilAccessToken
269− _plsilUploadType
270− _plsilBearerToken
271− _plsilDepth
272− _plsilPageToken
273− _plsilPageSize
274− _plsilIndexPrefix
275− _plsilCallback
276− (Just AltJSON)
277− loggingService
278− where go
279− = buildClient
280− (Proxy ::
281− Proxy ProjectsLogServicesIndexesListResource)
282− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/List.hsdeleted−218
@@ -1,218 +0,0 @@
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.Logging.Projects.LogServices.List
17−-- Copyright : (c) 2015 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−-- | Lists the log services that have log entries in this project.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesList@.
26−module Network.Google.Resource.Logging.Projects.LogServices.List
27− (
28− -- * REST Resource
29− ProjectsLogServicesListResource
30−
31− -- * Creating a Request
32− , projectsLogServicesList'
33− , ProjectsLogServicesList'
34−
35− -- * Request Lenses
36− , plslLog
37− , plslXgafv
38− , plslUploadProtocol
39− , plslPp
40− , plslAccessToken
41− , plslUploadType
42− , plslBearerToken
43− , plslPageToken
44− , plslProjectsId
45− , plslPageSize
46− , plslCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogServicesList@ method which the
53−-- 'ProjectsLogServicesList'' request conforms to.
54−type ProjectsLogServicesListResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logServices" :>
59− QueryParam "log" Text :>
60− QueryParam "$.xgafv" Text :>
61− QueryParam "upload_protocol" Text :>
62− QueryParam "pp" Bool :>
63− QueryParam "access_token" Text :>
64− QueryParam "uploadType" Text :>
65− QueryParam "bearer_token" Text :>
66− QueryParam "pageToken" Text :>
67− QueryParam "pageSize" Int32 :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− Get '[JSON] ListLogServicesResponse
71−
72−-- | Lists the log services that have log entries in this project.
73−--
74−-- /See:/ 'projectsLogServicesList'' smart constructor.
75−data ProjectsLogServicesList' = ProjectsLogServicesList'
76− { _plslLog :: !(Maybe Text)
77− , _plslXgafv :: !(Maybe Text)
78− , _plslUploadProtocol :: !(Maybe Text)
79− , _plslPp :: !Bool
80− , _plslAccessToken :: !(Maybe Text)
81− , _plslUploadType :: !(Maybe Text)
82− , _plslBearerToken :: !(Maybe Text)
83− , _plslPageToken :: !(Maybe Text)
84− , _plslProjectsId :: !Text
85− , _plslPageSize :: !(Maybe Int32)
86− , _plslCallback :: !(Maybe Text)
87− } deriving (Eq,Show,Data,Typeable,Generic)
88−
89−-- | Creates a value of 'ProjectsLogServicesList'' with the minimum fields required to make a request.
90−--
91−-- Use one of the following lenses to modify other fields as desired:
92−--
93−-- * 'plslLog'
94−--
95−-- * 'plslXgafv'
96−--
97−-- * 'plslUploadProtocol'
98−--
99−-- * 'plslPp'
100−--
101−-- * 'plslAccessToken'
102−--
103−-- * 'plslUploadType'
104−--
105−-- * 'plslBearerToken'
106−--
107−-- * 'plslPageToken'
108−--
109−-- * 'plslProjectsId'
110−--
111−-- * 'plslPageSize'
112−--
113−-- * 'plslCallback'
114−projectsLogServicesList'
115− :: Text -- ^ 'projectsId'
116− -> ProjectsLogServicesList'
117−projectsLogServicesList' pPlslProjectsId_ =
118− ProjectsLogServicesList'
119− { _plslLog = Nothing
120− , _plslXgafv = Nothing
121− , _plslUploadProtocol = Nothing
122− , _plslPp = True
123− , _plslAccessToken = Nothing
124− , _plslUploadType = Nothing
125− , _plslBearerToken = Nothing
126− , _plslPageToken = Nothing
127− , _plslProjectsId = pPlslProjectsId_
128− , _plslPageSize = Nothing
129− , _plslCallback = Nothing
130− }
131−
132−-- | If empty, all log services contributing log entries to the project are
133−-- listed. Otherwise, this field must be the resource name of a log, such
134−-- as \`\"projects\/my-project\/appengine.googleapis.com%2Frequest_log\"\`,
135−-- and then the only services listed are those associated with entries in
136−-- the log. A service is associated with an entry if its name is in the
137−-- entry\'s \`LogEntryMetadata.serviceName\` field.
138−plslLog :: Lens' ProjectsLogServicesList' (Maybe Text)
139−plslLog = lens _plslLog (\ s a -> s{_plslLog = a})
140−
141−-- | V1 error format.
142−plslXgafv :: Lens' ProjectsLogServicesList' (Maybe Text)
143−plslXgafv
144− = lens _plslXgafv (\ s a -> s{_plslXgafv = a})
145−
146−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
147−plslUploadProtocol :: Lens' ProjectsLogServicesList' (Maybe Text)
148−plslUploadProtocol
149− = lens _plslUploadProtocol
150− (\ s a -> s{_plslUploadProtocol = a})
151−
152−-- | Pretty-print response.
153−plslPp :: Lens' ProjectsLogServicesList' Bool
154−plslPp = lens _plslPp (\ s a -> s{_plslPp = a})
155−
156−-- | OAuth access token.
157−plslAccessToken :: Lens' ProjectsLogServicesList' (Maybe Text)
158−plslAccessToken
159− = lens _plslAccessToken
160− (\ s a -> s{_plslAccessToken = a})
161−
162−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
163−plslUploadType :: Lens' ProjectsLogServicesList' (Maybe Text)
164−plslUploadType
165− = lens _plslUploadType
166− (\ s a -> s{_plslUploadType = a})
167−
168−-- | OAuth bearer token.
169−plslBearerToken :: Lens' ProjectsLogServicesList' (Maybe Text)
170−plslBearerToken
171− = lens _plslBearerToken
172− (\ s a -> s{_plslBearerToken = a})
173−
174−-- | An opaque token, returned as \`nextPageToken\` by a prior
175−-- \`ListLogServices\` operation. If \`pageToken\` is supplied, then the
176−-- other fields of this request are ignored, and instead the previous
177−-- \`ListLogServices\` operation is continued.
178−plslPageToken :: Lens' ProjectsLogServicesList' (Maybe Text)
179−plslPageToken
180− = lens _plslPageToken
181− (\ s a -> s{_plslPageToken = a})
182−
183−-- | Part of \`projectName\`. The resource name of the project whose services
184−-- are to be listed.
185−plslProjectsId :: Lens' ProjectsLogServicesList' Text
186−plslProjectsId
187− = lens _plslProjectsId
188− (\ s a -> s{_plslProjectsId = a})
189−
190−-- | The maximum number of \`LogService\` objects to return in one operation.
191−plslPageSize :: Lens' ProjectsLogServicesList' (Maybe Int32)
192−plslPageSize
193− = lens _plslPageSize (\ s a -> s{_plslPageSize = a})
194−
195−-- | JSONP
196−plslCallback :: Lens' ProjectsLogServicesList' (Maybe Text)
197−plslCallback
198− = lens _plslCallback (\ s a -> s{_plslCallback = a})
199−
200−instance GoogleRequest ProjectsLogServicesList' where
201− type Rs ProjectsLogServicesList' =
202− ListLogServicesResponse
203− requestClient ProjectsLogServicesList'{..}
204− = go _plslProjectsId _plslLog _plslXgafv
205− _plslUploadProtocol
206− (Just _plslPp)
207− _plslAccessToken
208− _plslUploadType
209− _plslBearerToken
210− _plslPageToken
211− _plslPageSize
212− _plslCallback
213− (Just AltJSON)
214− loggingService
215− where go
216− = buildClient
217− (Proxy :: Proxy ProjectsLogServicesListResource)
218− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Create.hsdeleted−205
@@ -1,205 +0,0 @@
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.Logging.Projects.LogServices.Sinks.Create
17−-- Copyright : (c) 2015 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−-- | Creates a log service sink. All log entries from a specified log service
24−-- are written to the destination.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesSinksCreate@.
27−module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Create
28− (
29− -- * REST Resource
30− ProjectsLogServicesSinksCreateResource
31−
32− -- * Creating a Request
33− , projectsLogServicesSinksCreate'
34− , ProjectsLogServicesSinksCreate'
35−
36− -- * Request Lenses
37− , plsscXgafv
38− , plsscUploadProtocol
39− , plsscPp
40− , plsscAccessToken
41− , plsscUploadType
42− , plsscPayload
43− , plsscBearerToken
44− , plsscLogServicesId
45− , plsscProjectsId
46− , plsscCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogServicesSinksCreate@ method which the
53−-- 'ProjectsLogServicesSinksCreate'' request conforms to.
54−type ProjectsLogServicesSinksCreateResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logServices" :>
59− Capture "logServicesId" Text :>
60− "sinks" :>
61− QueryParam "$.xgafv" Text :>
62− QueryParam "upload_protocol" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "bearer_token" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :>
69− ReqBody '[JSON] LogSink :> Post '[JSON] LogSink
70−
71−-- | Creates a log service sink. All log entries from a specified log service
72−-- are written to the destination.
73−--
74−-- /See:/ 'projectsLogServicesSinksCreate'' smart constructor.
75−data ProjectsLogServicesSinksCreate' = ProjectsLogServicesSinksCreate'
76− { _plsscXgafv :: !(Maybe Text)
77− , _plsscUploadProtocol :: !(Maybe Text)
78− , _plsscPp :: !Bool
79− , _plsscAccessToken :: !(Maybe Text)
80− , _plsscUploadType :: !(Maybe Text)
81− , _plsscPayload :: !LogSink
82− , _plsscBearerToken :: !(Maybe Text)
83− , _plsscLogServicesId :: !Text
84− , _plsscProjectsId :: !Text
85− , _plsscCallback :: !(Maybe Text)
86− } deriving (Eq,Show,Data,Typeable,Generic)
87−
88−-- | Creates a value of 'ProjectsLogServicesSinksCreate'' 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−-- * 'plsscXgafv'
93−--
94−-- * 'plsscUploadProtocol'
95−--
96−-- * 'plsscPp'
97−--
98−-- * 'plsscAccessToken'
99−--
100−-- * 'plsscUploadType'
101−--
102−-- * 'plsscPayload'
103−--
104−-- * 'plsscBearerToken'
105−--
106−-- * 'plsscLogServicesId'
107−--
108−-- * 'plsscProjectsId'
109−--
110−-- * 'plsscCallback'
111−projectsLogServicesSinksCreate'
112− :: LogSink -- ^ 'payload'
113− -> Text -- ^ 'logServicesId'
114− -> Text -- ^ 'projectsId'
115− -> ProjectsLogServicesSinksCreate'
116−projectsLogServicesSinksCreate' pPlsscPayload_ pPlsscLogServicesId_ pPlsscProjectsId_ =
117− ProjectsLogServicesSinksCreate'
118− { _plsscXgafv = Nothing
119− , _plsscUploadProtocol = Nothing
120− , _plsscPp = True
121− , _plsscAccessToken = Nothing
122− , _plsscUploadType = Nothing
123− , _plsscPayload = pPlsscPayload_
124− , _plsscBearerToken = Nothing
125− , _plsscLogServicesId = pPlsscLogServicesId_
126− , _plsscProjectsId = pPlsscProjectsId_
127− , _plsscCallback = Nothing
128− }
129−
130−-- | V1 error format.
131−plsscXgafv :: Lens' ProjectsLogServicesSinksCreate' (Maybe Text)
132−plsscXgafv
133− = lens _plsscXgafv (\ s a -> s{_plsscXgafv = a})
134−
135−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
136−plsscUploadProtocol :: Lens' ProjectsLogServicesSinksCreate' (Maybe Text)
137−plsscUploadProtocol
138− = lens _plsscUploadProtocol
139− (\ s a -> s{_plsscUploadProtocol = a})
140−
141−-- | Pretty-print response.
142−plsscPp :: Lens' ProjectsLogServicesSinksCreate' Bool
143−plsscPp = lens _plsscPp (\ s a -> s{_plsscPp = a})
144−
145−-- | OAuth access token.
146−plsscAccessToken :: Lens' ProjectsLogServicesSinksCreate' (Maybe Text)
147−plsscAccessToken
148− = lens _plsscAccessToken
149− (\ s a -> s{_plsscAccessToken = a})
150−
151−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
152−plsscUploadType :: Lens' ProjectsLogServicesSinksCreate' (Maybe Text)
153−plsscUploadType
154− = lens _plsscUploadType
155− (\ s a -> s{_plsscUploadType = a})
156−
157−-- | Multipart request metadata.
158−plsscPayload :: Lens' ProjectsLogServicesSinksCreate' LogSink
159−plsscPayload
160− = lens _plsscPayload (\ s a -> s{_plsscPayload = a})
161−
162−-- | OAuth bearer token.
163−plsscBearerToken :: Lens' ProjectsLogServicesSinksCreate' (Maybe Text)
164−plsscBearerToken
165− = lens _plsscBearerToken
166− (\ s a -> s{_plsscBearerToken = a})
167−
168−-- | Part of \`serviceName\`. See documentation of \`projectsId\`.
169−plsscLogServicesId :: Lens' ProjectsLogServicesSinksCreate' Text
170−plsscLogServicesId
171− = lens _plsscLogServicesId
172− (\ s a -> s{_plsscLogServicesId = a})
173−
174−-- | Part of \`serviceName\`. The resource name of the log service to which
175−-- the sink is bound.
176−plsscProjectsId :: Lens' ProjectsLogServicesSinksCreate' Text
177−plsscProjectsId
178− = lens _plsscProjectsId
179− (\ s a -> s{_plsscProjectsId = a})
180−
181−-- | JSONP
182−plsscCallback :: Lens' ProjectsLogServicesSinksCreate' (Maybe Text)
183−plsscCallback
184− = lens _plsscCallback
185− (\ s a -> s{_plsscCallback = a})
186−
187−instance GoogleRequest
188− ProjectsLogServicesSinksCreate' where
189− type Rs ProjectsLogServicesSinksCreate' = LogSink
190− requestClient ProjectsLogServicesSinksCreate'{..}
191− = go _plsscProjectsId _plsscLogServicesId _plsscXgafv
192− _plsscUploadProtocol
193− (Just _plsscPp)
194− _plsscAccessToken
195− _plsscUploadType
196− _plsscBearerToken
197− _plsscCallback
198− (Just AltJSON)
199− _plsscPayload
200− loggingService
201− where go
202− = buildClient
203− (Proxy ::
204− Proxy ProjectsLogServicesSinksCreateResource)
205− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Delete.hsdeleted−207
@@ -1,207 +0,0 @@
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.Logging.Projects.LogServices.Sinks.Delete
17−-- Copyright : (c) 2015 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−-- | Deletes a log service sink. After deletion, no new log entries are
24−-- written to the destination.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesSinksDelete@.
27−module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Delete
28− (
29− -- * REST Resource
30− ProjectsLogServicesSinksDeleteResource
31−
32− -- * Creating a Request
33− , projectsLogServicesSinksDelete'
34− , ProjectsLogServicesSinksDelete'
35−
36− -- * Request Lenses
37− , plssdXgafv
38− , plssdUploadProtocol
39− , plssdPp
40− , plssdAccessToken
41− , plssdUploadType
42− , plssdBearerToken
43− , plssdLogServicesId
44− , plssdProjectsId
45− , plssdSinksId
46− , plssdCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogServicesSinksDelete@ method which the
53−-- 'ProjectsLogServicesSinksDelete'' request conforms to.
54−type ProjectsLogServicesSinksDeleteResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logServices" :>
59− Capture "logServicesId" Text :>
60− "sinks" :>
61− Capture "sinksId" Text :>
62− QueryParam "$.xgafv" Text :>
63− QueryParam "upload_protocol" Text :>
64− QueryParam "pp" Bool :>
65− QueryParam "access_token" Text :>
66− QueryParam "uploadType" Text :>
67− QueryParam "bearer_token" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− Delete '[JSON] Empty
71−
72−-- | Deletes a log service sink. After deletion, no new log entries are
73−-- written to the destination.
74−--
75−-- /See:/ 'projectsLogServicesSinksDelete'' smart constructor.
76−data ProjectsLogServicesSinksDelete' = ProjectsLogServicesSinksDelete'
77− { _plssdXgafv :: !(Maybe Text)
78− , _plssdUploadProtocol :: !(Maybe Text)
79− , _plssdPp :: !Bool
80− , _plssdAccessToken :: !(Maybe Text)
81− , _plssdUploadType :: !(Maybe Text)
82− , _plssdBearerToken :: !(Maybe Text)
83− , _plssdLogServicesId :: !Text
84− , _plssdProjectsId :: !Text
85− , _plssdSinksId :: !Text
86− , _plssdCallback :: !(Maybe Text)
87− } deriving (Eq,Show,Data,Typeable,Generic)
88−
89−-- | Creates a value of 'ProjectsLogServicesSinksDelete'' with the minimum fields required to make a request.
90−--
91−-- Use one of the following lenses to modify other fields as desired:
92−--
93−-- * 'plssdXgafv'
94−--
95−-- * 'plssdUploadProtocol'
96−--
97−-- * 'plssdPp'
98−--
99−-- * 'plssdAccessToken'
100−--
101−-- * 'plssdUploadType'
102−--
103−-- * 'plssdBearerToken'
104−--
105−-- * 'plssdLogServicesId'
106−--
107−-- * 'plssdProjectsId'
108−--
109−-- * 'plssdSinksId'
110−--
111−-- * 'plssdCallback'
112−projectsLogServicesSinksDelete'
113− :: Text -- ^ 'logServicesId'
114− -> Text -- ^ 'projectsId'
115− -> Text -- ^ 'sinksId'
116− -> ProjectsLogServicesSinksDelete'
117−projectsLogServicesSinksDelete' pPlssdLogServicesId_ pPlssdProjectsId_ pPlssdSinksId_ =
118− ProjectsLogServicesSinksDelete'
119− { _plssdXgafv = Nothing
120− , _plssdUploadProtocol = Nothing
121− , _plssdPp = True
122− , _plssdAccessToken = Nothing
123− , _plssdUploadType = Nothing
124− , _plssdBearerToken = Nothing
125− , _plssdLogServicesId = pPlssdLogServicesId_
126− , _plssdProjectsId = pPlssdProjectsId_
127− , _plssdSinksId = pPlssdSinksId_
128− , _plssdCallback = Nothing
129− }
130−
131−-- | V1 error format.
132−plssdXgafv :: Lens' ProjectsLogServicesSinksDelete' (Maybe Text)
133−plssdXgafv
134− = lens _plssdXgafv (\ s a -> s{_plssdXgafv = a})
135−
136−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
137−plssdUploadProtocol :: Lens' ProjectsLogServicesSinksDelete' (Maybe Text)
138−plssdUploadProtocol
139− = lens _plssdUploadProtocol
140− (\ s a -> s{_plssdUploadProtocol = a})
141−
142−-- | Pretty-print response.
143−plssdPp :: Lens' ProjectsLogServicesSinksDelete' Bool
144−plssdPp = lens _plssdPp (\ s a -> s{_plssdPp = a})
145−
146−-- | OAuth access token.
147−plssdAccessToken :: Lens' ProjectsLogServicesSinksDelete' (Maybe Text)
148−plssdAccessToken
149− = lens _plssdAccessToken
150− (\ s a -> s{_plssdAccessToken = a})
151−
152−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
153−plssdUploadType :: Lens' ProjectsLogServicesSinksDelete' (Maybe Text)
154−plssdUploadType
155− = lens _plssdUploadType
156− (\ s a -> s{_plssdUploadType = a})
157−
158−-- | OAuth bearer token.
159−plssdBearerToken :: Lens' ProjectsLogServicesSinksDelete' (Maybe Text)
160−plssdBearerToken
161− = lens _plssdBearerToken
162− (\ s a -> s{_plssdBearerToken = a})
163−
164−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
165−plssdLogServicesId :: Lens' ProjectsLogServicesSinksDelete' Text
166−plssdLogServicesId
167− = lens _plssdLogServicesId
168− (\ s a -> s{_plssdLogServicesId = a})
169−
170−-- | Part of \`sinkName\`. The resource name of the log service sink to
171−-- delete.
172−plssdProjectsId :: Lens' ProjectsLogServicesSinksDelete' Text
173−plssdProjectsId
174− = lens _plssdProjectsId
175− (\ s a -> s{_plssdProjectsId = a})
176−
177−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
178−plssdSinksId :: Lens' ProjectsLogServicesSinksDelete' Text
179−plssdSinksId
180− = lens _plssdSinksId (\ s a -> s{_plssdSinksId = a})
181−
182−-- | JSONP
183−plssdCallback :: Lens' ProjectsLogServicesSinksDelete' (Maybe Text)
184−plssdCallback
185− = lens _plssdCallback
186− (\ s a -> s{_plssdCallback = a})
187−
188−instance GoogleRequest
189− ProjectsLogServicesSinksDelete' where
190− type Rs ProjectsLogServicesSinksDelete' = Empty
191− requestClient ProjectsLogServicesSinksDelete'{..}
192− = go _plssdProjectsId _plssdLogServicesId
193− _plssdSinksId
194− _plssdXgafv
195− _plssdUploadProtocol
196− (Just _plssdPp)
197− _plssdAccessToken
198− _plssdUploadType
199− _plssdBearerToken
200− _plssdCallback
201− (Just AltJSON)
202− loggingService
203− where go
204− = buildClient
205− (Proxy ::
206− Proxy ProjectsLogServicesSinksDeleteResource)
207− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Get.hsdeleted−203
@@ -1,203 +0,0 @@
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.Logging.Projects.LogServices.Sinks.Get
17−-- Copyright : (c) 2015 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 a log service sink.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesSinksGet@.
26−module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Get
27− (
28− -- * REST Resource
29− ProjectsLogServicesSinksGetResource
30−
31− -- * Creating a Request
32− , projectsLogServicesSinksGet'
33− , ProjectsLogServicesSinksGet'
34−
35− -- * Request Lenses
36− , plssgXgafv
37− , plssgUploadProtocol
38− , plssgPp
39− , plssgAccessToken
40− , plssgUploadType
41− , plssgBearerToken
42− , plssgLogServicesId
43− , plssgProjectsId
44− , plssgSinksId
45− , plssgCallback
46− ) where
47−
48−import Network.Google.Logging.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @LoggingProjectsLogServicesSinksGet@ method which the
52−-- 'ProjectsLogServicesSinksGet'' request conforms to.
53−type ProjectsLogServicesSinksGetResource =
54− "v1beta3" :>
55− "projects" :>
56− Capture "projectsId" Text :>
57− "logServices" :>
58− Capture "logServicesId" Text :>
59− "sinks" :>
60− Capture "sinksId" Text :>
61− QueryParam "$.xgafv" Text :>
62− QueryParam "upload_protocol" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "bearer_token" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :> Get '[JSON] LogSink
69−
70−-- | Gets a log service sink.
71−--
72−-- /See:/ 'projectsLogServicesSinksGet'' smart constructor.
73−data ProjectsLogServicesSinksGet' = ProjectsLogServicesSinksGet'
74− { _plssgXgafv :: !(Maybe Text)
75− , _plssgUploadProtocol :: !(Maybe Text)
76− , _plssgPp :: !Bool
77− , _plssgAccessToken :: !(Maybe Text)
78− , _plssgUploadType :: !(Maybe Text)
79− , _plssgBearerToken :: !(Maybe Text)
80− , _plssgLogServicesId :: !Text
81− , _plssgProjectsId :: !Text
82− , _plssgSinksId :: !Text
83− , _plssgCallback :: !(Maybe Text)
84− } deriving (Eq,Show,Data,Typeable,Generic)
85−
86−-- | Creates a value of 'ProjectsLogServicesSinksGet'' with the minimum fields required to make a request.
87−--
88−-- Use one of the following lenses to modify other fields as desired:
89−--
90−-- * 'plssgXgafv'
91−--
92−-- * 'plssgUploadProtocol'
93−--
94−-- * 'plssgPp'
95−--
96−-- * 'plssgAccessToken'
97−--
98−-- * 'plssgUploadType'
99−--
100−-- * 'plssgBearerToken'
101−--
102−-- * 'plssgLogServicesId'
103−--
104−-- * 'plssgProjectsId'
105−--
106−-- * 'plssgSinksId'
107−--
108−-- * 'plssgCallback'
109−projectsLogServicesSinksGet'
110− :: Text -- ^ 'logServicesId'
111− -> Text -- ^ 'projectsId'
112− -> Text -- ^ 'sinksId'
113− -> ProjectsLogServicesSinksGet'
114−projectsLogServicesSinksGet' pPlssgLogServicesId_ pPlssgProjectsId_ pPlssgSinksId_ =
115− ProjectsLogServicesSinksGet'
116− { _plssgXgafv = Nothing
117− , _plssgUploadProtocol = Nothing
118− , _plssgPp = True
119− , _plssgAccessToken = Nothing
120− , _plssgUploadType = Nothing
121− , _plssgBearerToken = Nothing
122− , _plssgLogServicesId = pPlssgLogServicesId_
123− , _plssgProjectsId = pPlssgProjectsId_
124− , _plssgSinksId = pPlssgSinksId_
125− , _plssgCallback = Nothing
126− }
127−
128−-- | V1 error format.
129−plssgXgafv :: Lens' ProjectsLogServicesSinksGet' (Maybe Text)
130−plssgXgafv
131− = lens _plssgXgafv (\ s a -> s{_plssgXgafv = a})
132−
133−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
134−plssgUploadProtocol :: Lens' ProjectsLogServicesSinksGet' (Maybe Text)
135−plssgUploadProtocol
136− = lens _plssgUploadProtocol
137− (\ s a -> s{_plssgUploadProtocol = a})
138−
139−-- | Pretty-print response.
140−plssgPp :: Lens' ProjectsLogServicesSinksGet' Bool
141−plssgPp = lens _plssgPp (\ s a -> s{_plssgPp = a})
142−
143−-- | OAuth access token.
144−plssgAccessToken :: Lens' ProjectsLogServicesSinksGet' (Maybe Text)
145−plssgAccessToken
146− = lens _plssgAccessToken
147− (\ s a -> s{_plssgAccessToken = a})
148−
149−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
150−plssgUploadType :: Lens' ProjectsLogServicesSinksGet' (Maybe Text)
151−plssgUploadType
152− = lens _plssgUploadType
153− (\ s a -> s{_plssgUploadType = a})
154−
155−-- | OAuth bearer token.
156−plssgBearerToken :: Lens' ProjectsLogServicesSinksGet' (Maybe Text)
157−plssgBearerToken
158− = lens _plssgBearerToken
159− (\ s a -> s{_plssgBearerToken = a})
160−
161−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
162−plssgLogServicesId :: Lens' ProjectsLogServicesSinksGet' Text
163−plssgLogServicesId
164− = lens _plssgLogServicesId
165− (\ s a -> s{_plssgLogServicesId = a})
166−
167−-- | Part of \`sinkName\`. The resource name of the log service sink to
168−-- return.
169−plssgProjectsId :: Lens' ProjectsLogServicesSinksGet' Text
170−plssgProjectsId
171− = lens _plssgProjectsId
172− (\ s a -> s{_plssgProjectsId = a})
173−
174−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
175−plssgSinksId :: Lens' ProjectsLogServicesSinksGet' Text
176−plssgSinksId
177− = lens _plssgSinksId (\ s a -> s{_plssgSinksId = a})
178−
179−-- | JSONP
180−plssgCallback :: Lens' ProjectsLogServicesSinksGet' (Maybe Text)
181−plssgCallback
182− = lens _plssgCallback
183− (\ s a -> s{_plssgCallback = a})
184−
185−instance GoogleRequest ProjectsLogServicesSinksGet'
186− where
187− type Rs ProjectsLogServicesSinksGet' = LogSink
188− requestClient ProjectsLogServicesSinksGet'{..}
189− = go _plssgProjectsId _plssgLogServicesId
190− _plssgSinksId
191− _plssgXgafv
192− _plssgUploadProtocol
193− (Just _plssgPp)
194− _plssgAccessToken
195− _plssgUploadType
196− _plssgBearerToken
197− _plssgCallback
198− (Just AltJSON)
199− loggingService
200− where go
201− = buildClient
202− (Proxy :: Proxy ProjectsLogServicesSinksGetResource)
203− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/List.hsdeleted−190
@@ -1,190 +0,0 @@
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.Logging.Projects.LogServices.Sinks.List
17−-- Copyright : (c) 2015 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−-- | Lists log service sinks associated with a log service.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesSinksList@.
26−module Network.Google.Resource.Logging.Projects.LogServices.Sinks.List
27− (
28− -- * REST Resource
29− ProjectsLogServicesSinksListResource
30−
31− -- * Creating a Request
32− , projectsLogServicesSinksList'
33− , ProjectsLogServicesSinksList'
34−
35− -- * Request Lenses
36− , plsslXgafv
37− , plsslUploadProtocol
38− , plsslPp
39− , plsslAccessToken
40− , plsslUploadType
41− , plsslBearerToken
42− , plsslLogServicesId
43− , plsslProjectsId
44− , plsslCallback
45− ) where
46−
47−import Network.Google.Logging.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @LoggingProjectsLogServicesSinksList@ method which the
51−-- 'ProjectsLogServicesSinksList'' request conforms to.
52−type ProjectsLogServicesSinksListResource =
53− "v1beta3" :>
54− "projects" :>
55− Capture "projectsId" Text :>
56− "logServices" :>
57− Capture "logServicesId" Text :>
58− "sinks" :>
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] ListLogServiceSinksResponse
68−
69−-- | Lists log service sinks associated with a log service.
70−--
71−-- /See:/ 'projectsLogServicesSinksList'' smart constructor.
72−data ProjectsLogServicesSinksList' = ProjectsLogServicesSinksList'
73− { _plsslXgafv :: !(Maybe Text)
74− , _plsslUploadProtocol :: !(Maybe Text)
75− , _plsslPp :: !Bool
76− , _plsslAccessToken :: !(Maybe Text)
77− , _plsslUploadType :: !(Maybe Text)
78− , _plsslBearerToken :: !(Maybe Text)
79− , _plsslLogServicesId :: !Text
80− , _plsslProjectsId :: !Text
81− , _plsslCallback :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'ProjectsLogServicesSinksList'' with the minimum fields required to make a request.
85−--
86−-- Use one of the following lenses to modify other fields as desired:
87−--
88−-- * 'plsslXgafv'
89−--
90−-- * 'plsslUploadProtocol'
91−--
92−-- * 'plsslPp'
93−--
94−-- * 'plsslAccessToken'
95−--
96−-- * 'plsslUploadType'
97−--
98−-- * 'plsslBearerToken'
99−--
100−-- * 'plsslLogServicesId'
101−--
102−-- * 'plsslProjectsId'
103−--
104−-- * 'plsslCallback'
105−projectsLogServicesSinksList'
106− :: Text -- ^ 'logServicesId'
107− -> Text -- ^ 'projectsId'
108− -> ProjectsLogServicesSinksList'
109−projectsLogServicesSinksList' pPlsslLogServicesId_ pPlsslProjectsId_ =
110− ProjectsLogServicesSinksList'
111− { _plsslXgafv = Nothing
112− , _plsslUploadProtocol = Nothing
113− , _plsslPp = True
114− , _plsslAccessToken = Nothing
115− , _plsslUploadType = Nothing
116− , _plsslBearerToken = Nothing
117− , _plsslLogServicesId = pPlsslLogServicesId_
118− , _plsslProjectsId = pPlsslProjectsId_
119− , _plsslCallback = Nothing
120− }
121−
122−-- | V1 error format.
123−plsslXgafv :: Lens' ProjectsLogServicesSinksList' (Maybe Text)
124−plsslXgafv
125− = lens _plsslXgafv (\ s a -> s{_plsslXgafv = a})
126−
127−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
128−plsslUploadProtocol :: Lens' ProjectsLogServicesSinksList' (Maybe Text)
129−plsslUploadProtocol
130− = lens _plsslUploadProtocol
131− (\ s a -> s{_plsslUploadProtocol = a})
132−
133−-- | Pretty-print response.
134−plsslPp :: Lens' ProjectsLogServicesSinksList' Bool
135−plsslPp = lens _plsslPp (\ s a -> s{_plsslPp = a})
136−
137−-- | OAuth access token.
138−plsslAccessToken :: Lens' ProjectsLogServicesSinksList' (Maybe Text)
139−plsslAccessToken
140− = lens _plsslAccessToken
141− (\ s a -> s{_plsslAccessToken = a})
142−
143−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
144−plsslUploadType :: Lens' ProjectsLogServicesSinksList' (Maybe Text)
145−plsslUploadType
146− = lens _plsslUploadType
147− (\ s a -> s{_plsslUploadType = a})
148−
149−-- | OAuth bearer token.
150−plsslBearerToken :: Lens' ProjectsLogServicesSinksList' (Maybe Text)
151−plsslBearerToken
152− = lens _plsslBearerToken
153− (\ s a -> s{_plsslBearerToken = a})
154−
155−-- | Part of \`serviceName\`. See documentation of \`projectsId\`.
156−plsslLogServicesId :: Lens' ProjectsLogServicesSinksList' Text
157−plsslLogServicesId
158− = lens _plsslLogServicesId
159− (\ s a -> s{_plsslLogServicesId = a})
160−
161−-- | Part of \`serviceName\`. The log service whose sinks are wanted.
162−plsslProjectsId :: Lens' ProjectsLogServicesSinksList' Text
163−plsslProjectsId
164− = lens _plsslProjectsId
165− (\ s a -> s{_plsslProjectsId = a})
166−
167−-- | JSONP
168−plsslCallback :: Lens' ProjectsLogServicesSinksList' (Maybe Text)
169−plsslCallback
170− = lens _plsslCallback
171− (\ s a -> s{_plsslCallback = a})
172−
173−instance GoogleRequest ProjectsLogServicesSinksList'
174− where
175− type Rs ProjectsLogServicesSinksList' =
176− ListLogServiceSinksResponse
177− requestClient ProjectsLogServicesSinksList'{..}
178− = go _plsslProjectsId _plsslLogServicesId _plsslXgafv
179− _plsslUploadProtocol
180− (Just _plsslPp)
181− _plsslAccessToken
182− _plsslUploadType
183− _plsslBearerToken
184− _plsslCallback
185− (Just AltJSON)
186− loggingService
187− where go
188− = buildClient
189− (Proxy :: Proxy ProjectsLogServicesSinksListResource)
190− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/LogServices/Sinks/Update.hsdeleted−218
@@ -1,218 +0,0 @@
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.Logging.Projects.LogServices.Sinks.Update
17−-- Copyright : (c) 2015 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 a log service sink. If the sink does not exist, it is created.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogServicesSinksUpdate@.
26−module Network.Google.Resource.Logging.Projects.LogServices.Sinks.Update
27− (
28− -- * REST Resource
29− ProjectsLogServicesSinksUpdateResource
30−
31− -- * Creating a Request
32− , projectsLogServicesSinksUpdate'
33− , ProjectsLogServicesSinksUpdate'
34−
35− -- * Request Lenses
36− , plssuXgafv
37− , plssuUploadProtocol
38− , plssuPp
39− , plssuAccessToken
40− , plssuUploadType
41− , plssuPayload
42− , plssuBearerToken
43− , plssuLogServicesId
44− , plssuProjectsId
45− , plssuSinksId
46− , plssuCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogServicesSinksUpdate@ method which the
53−-- 'ProjectsLogServicesSinksUpdate'' request conforms to.
54−type ProjectsLogServicesSinksUpdateResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logServices" :>
59− Capture "logServicesId" Text :>
60− "sinks" :>
61− Capture "sinksId" Text :>
62− QueryParam "$.xgafv" Text :>
63− QueryParam "upload_protocol" Text :>
64− QueryParam "pp" Bool :>
65− QueryParam "access_token" Text :>
66− QueryParam "uploadType" Text :>
67− QueryParam "bearer_token" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− ReqBody '[JSON] LogSink :>
71− Put '[JSON] LogSink
72−
73−-- | Updates a log service sink. If the sink does not exist, it is created.
74−--
75−-- /See:/ 'projectsLogServicesSinksUpdate'' smart constructor.
76−data ProjectsLogServicesSinksUpdate' = ProjectsLogServicesSinksUpdate'
77− { _plssuXgafv :: !(Maybe Text)
78− , _plssuUploadProtocol :: !(Maybe Text)
79− , _plssuPp :: !Bool
80− , _plssuAccessToken :: !(Maybe Text)
81− , _plssuUploadType :: !(Maybe Text)
82− , _plssuPayload :: !LogSink
83− , _plssuBearerToken :: !(Maybe Text)
84− , _plssuLogServicesId :: !Text
85− , _plssuProjectsId :: !Text
86− , _plssuSinksId :: !Text
87− , _plssuCallback :: !(Maybe Text)
88− } deriving (Eq,Show,Data,Typeable,Generic)
89−
90−-- | Creates a value of 'ProjectsLogServicesSinksUpdate'' with the minimum fields required to make a request.
91−--
92−-- Use one of the following lenses to modify other fields as desired:
93−--
94−-- * 'plssuXgafv'
95−--
96−-- * 'plssuUploadProtocol'
97−--
98−-- * 'plssuPp'
99−--
100−-- * 'plssuAccessToken'
101−--
102−-- * 'plssuUploadType'
103−--
104−-- * 'plssuPayload'
105−--
106−-- * 'plssuBearerToken'
107−--
108−-- * 'plssuLogServicesId'
109−--
110−-- * 'plssuProjectsId'
111−--
112−-- * 'plssuSinksId'
113−--
114−-- * 'plssuCallback'
115−projectsLogServicesSinksUpdate'
116− :: LogSink -- ^ 'payload'
117− -> Text -- ^ 'logServicesId'
118− -> Text -- ^ 'projectsId'
119− -> Text -- ^ 'sinksId'
120− -> ProjectsLogServicesSinksUpdate'
121−projectsLogServicesSinksUpdate' pPlssuPayload_ pPlssuLogServicesId_ pPlssuProjectsId_ pPlssuSinksId_ =
122− ProjectsLogServicesSinksUpdate'
123− { _plssuXgafv = Nothing
124− , _plssuUploadProtocol = Nothing
125− , _plssuPp = True
126− , _plssuAccessToken = Nothing
127− , _plssuUploadType = Nothing
128− , _plssuPayload = pPlssuPayload_
129− , _plssuBearerToken = Nothing
130− , _plssuLogServicesId = pPlssuLogServicesId_
131− , _plssuProjectsId = pPlssuProjectsId_
132− , _plssuSinksId = pPlssuSinksId_
133− , _plssuCallback = Nothing
134− }
135−
136−-- | V1 error format.
137−plssuXgafv :: Lens' ProjectsLogServicesSinksUpdate' (Maybe Text)
138−plssuXgafv
139− = lens _plssuXgafv (\ s a -> s{_plssuXgafv = a})
140−
141−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
142−plssuUploadProtocol :: Lens' ProjectsLogServicesSinksUpdate' (Maybe Text)
143−plssuUploadProtocol
144− = lens _plssuUploadProtocol
145− (\ s a -> s{_plssuUploadProtocol = a})
146−
147−-- | Pretty-print response.
148−plssuPp :: Lens' ProjectsLogServicesSinksUpdate' Bool
149−plssuPp = lens _plssuPp (\ s a -> s{_plssuPp = a})
150−
151−-- | OAuth access token.
152−plssuAccessToken :: Lens' ProjectsLogServicesSinksUpdate' (Maybe Text)
153−plssuAccessToken
154− = lens _plssuAccessToken
155− (\ s a -> s{_plssuAccessToken = a})
156−
157−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
158−plssuUploadType :: Lens' ProjectsLogServicesSinksUpdate' (Maybe Text)
159−plssuUploadType
160− = lens _plssuUploadType
161− (\ s a -> s{_plssuUploadType = a})
162−
163−-- | Multipart request metadata.
164−plssuPayload :: Lens' ProjectsLogServicesSinksUpdate' LogSink
165−plssuPayload
166− = lens _plssuPayload (\ s a -> s{_plssuPayload = a})
167−
168−-- | OAuth bearer token.
169−plssuBearerToken :: Lens' ProjectsLogServicesSinksUpdate' (Maybe Text)
170−plssuBearerToken
171− = lens _plssuBearerToken
172− (\ s a -> s{_plssuBearerToken = a})
173−
174−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
175−plssuLogServicesId :: Lens' ProjectsLogServicesSinksUpdate' Text
176−plssuLogServicesId
177− = lens _plssuLogServicesId
178− (\ s a -> s{_plssuLogServicesId = a})
179−
180−-- | Part of \`sinkName\`. The resource name of the log service sink to
181−-- update.
182−plssuProjectsId :: Lens' ProjectsLogServicesSinksUpdate' Text
183−plssuProjectsId
184− = lens _plssuProjectsId
185− (\ s a -> s{_plssuProjectsId = a})
186−
187−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
188−plssuSinksId :: Lens' ProjectsLogServicesSinksUpdate' Text
189−plssuSinksId
190− = lens _plssuSinksId (\ s a -> s{_plssuSinksId = a})
191−
192−-- | JSONP
193−plssuCallback :: Lens' ProjectsLogServicesSinksUpdate' (Maybe Text)
194−plssuCallback
195− = lens _plssuCallback
196− (\ s a -> s{_plssuCallback = a})
197−
198−instance GoogleRequest
199− ProjectsLogServicesSinksUpdate' where
200− type Rs ProjectsLogServicesSinksUpdate' = LogSink
201− requestClient ProjectsLogServicesSinksUpdate'{..}
202− = go _plssuProjectsId _plssuLogServicesId
203− _plssuSinksId
204− _plssuXgafv
205− _plssuUploadProtocol
206− (Just _plssuPp)
207− _plssuAccessToken
208− _plssuUploadType
209− _plssuBearerToken
210− _plssuCallback
211− (Just AltJSON)
212− _plssuPayload
213− loggingService
214− where go
215− = buildClient
216− (Proxy ::
217− Proxy ProjectsLogServicesSinksUpdateResource)
218− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Delete.hsdeleted−185
@@ -1,185 +0,0 @@
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.Logging.Projects.Logs.Delete
17−-- Copyright : (c) 2015 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−-- | Deletes a log and all its log entries. The log will reappear if it
24−-- receives new entries.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsDelete@.
27−module Network.Google.Resource.Logging.Projects.Logs.Delete
28− (
29− -- * REST Resource
30− ProjectsLogsDeleteResource
31−
32− -- * Creating a Request
33− , projectsLogsDelete'
34− , ProjectsLogsDelete'
35−
36− -- * Request Lenses
37− , pldXgafv
38− , pldUploadProtocol
39− , pldLogsId
40− , pldPp
41− , pldAccessToken
42− , pldUploadType
43− , pldBearerToken
44− , pldProjectsId
45− , pldCallback
46− ) where
47−
48−import Network.Google.Logging.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @LoggingProjectsLogsDelete@ method which the
52−-- 'ProjectsLogsDelete'' request conforms to.
53−type ProjectsLogsDeleteResource =
54− "v1beta3" :>
55− "projects" :>
56− Capture "projectsId" Text :>
57− "logs" :>
58− Capture "logsId" Text :>
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 :> Delete '[JSON] Empty
67−
68−-- | Deletes a log and all its log entries. The log will reappear if it
69−-- receives new entries.
70−--
71−-- /See:/ 'projectsLogsDelete'' smart constructor.
72−data ProjectsLogsDelete' = ProjectsLogsDelete'
73− { _pldXgafv :: !(Maybe Text)
74− , _pldUploadProtocol :: !(Maybe Text)
75− , _pldLogsId :: !Text
76− , _pldPp :: !Bool
77− , _pldAccessToken :: !(Maybe Text)
78− , _pldUploadType :: !(Maybe Text)
79− , _pldBearerToken :: !(Maybe Text)
80− , _pldProjectsId :: !Text
81− , _pldCallback :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'ProjectsLogsDelete'' with the minimum fields required to make a request.
85−--
86−-- Use one of the following lenses to modify other fields as desired:
87−--
88−-- * 'pldXgafv'
89−--
90−-- * 'pldUploadProtocol'
91−--
92−-- * 'pldLogsId'
93−--
94−-- * 'pldPp'
95−--
96−-- * 'pldAccessToken'
97−--
98−-- * 'pldUploadType'
99−--
100−-- * 'pldBearerToken'
101−--
102−-- * 'pldProjectsId'
103−--
104−-- * 'pldCallback'
105−projectsLogsDelete'
106− :: Text -- ^ 'logsId'
107− -> Text -- ^ 'projectsId'
108− -> ProjectsLogsDelete'
109−projectsLogsDelete' pPldLogsId_ pPldProjectsId_ =
110− ProjectsLogsDelete'
111− { _pldXgafv = Nothing
112− , _pldUploadProtocol = Nothing
113− , _pldLogsId = pPldLogsId_
114− , _pldPp = True
115− , _pldAccessToken = Nothing
116− , _pldUploadType = Nothing
117− , _pldBearerToken = Nothing
118− , _pldProjectsId = pPldProjectsId_
119− , _pldCallback = Nothing
120− }
121−
122−-- | V1 error format.
123−pldXgafv :: Lens' ProjectsLogsDelete' (Maybe Text)
124−pldXgafv = lens _pldXgafv (\ s a -> s{_pldXgafv = a})
125−
126−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
127−pldUploadProtocol :: Lens' ProjectsLogsDelete' (Maybe Text)
128−pldUploadProtocol
129− = lens _pldUploadProtocol
130− (\ s a -> s{_pldUploadProtocol = a})
131−
132−-- | Part of \`logName\`. See documentation of \`projectsId\`.
133−pldLogsId :: Lens' ProjectsLogsDelete' Text
134−pldLogsId
135− = lens _pldLogsId (\ s a -> s{_pldLogsId = a})
136−
137−-- | Pretty-print response.
138−pldPp :: Lens' ProjectsLogsDelete' Bool
139−pldPp = lens _pldPp (\ s a -> s{_pldPp = a})
140−
141−-- | OAuth access token.
142−pldAccessToken :: Lens' ProjectsLogsDelete' (Maybe Text)
143−pldAccessToken
144− = lens _pldAccessToken
145− (\ s a -> s{_pldAccessToken = a})
146−
147−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
148−pldUploadType :: Lens' ProjectsLogsDelete' (Maybe Text)
149−pldUploadType
150− = lens _pldUploadType
151− (\ s a -> s{_pldUploadType = a})
152−
153−-- | OAuth bearer token.
154−pldBearerToken :: Lens' ProjectsLogsDelete' (Maybe Text)
155−pldBearerToken
156− = lens _pldBearerToken
157− (\ s a -> s{_pldBearerToken = a})
158−
159−-- | Part of \`logName\`. The resource name of the log to be deleted.
160−pldProjectsId :: Lens' ProjectsLogsDelete' Text
161−pldProjectsId
162− = lens _pldProjectsId
163− (\ s a -> s{_pldProjectsId = a})
164−
165−-- | JSONP
166−pldCallback :: Lens' ProjectsLogsDelete' (Maybe Text)
167−pldCallback
168− = lens _pldCallback (\ s a -> s{_pldCallback = a})
169−
170−instance GoogleRequest ProjectsLogsDelete' where
171− type Rs ProjectsLogsDelete' = Empty
172− requestClient ProjectsLogsDelete'{..}
173− = go _pldProjectsId _pldLogsId _pldXgafv
174− _pldUploadProtocol
175− (Just _pldPp)
176− _pldAccessToken
177− _pldUploadType
178− _pldBearerToken
179− _pldCallback
180− (Just AltJSON)
181− loggingService
182− where go
183− = buildClient
184− (Proxy :: Proxy ProjectsLogsDeleteResource)
185− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Entries/Write.hsdeleted−212
@@ -1,212 +0,0 @@
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.Logging.Projects.Logs.Entries.Write
17−-- Copyright : (c) 2015 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−-- | Writes log entries to Cloud Logging. Each entry consists of a
24−-- \`LogEntry\` object. You must fill in all the fields of the object,
25−-- including one of the payload fields. You may supply a map,
26−-- \`commonLabels\`, that holds default (key, value) data for the
27−-- \`entries[].metadata.labels\` map in each entry, saving you the trouble
28−-- of creating identical copies for each entry.
29−--
30−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsEntriesWrite@.
31−module Network.Google.Resource.Logging.Projects.Logs.Entries.Write
32− (
33− -- * REST Resource
34− ProjectsLogsEntriesWriteResource
35−
36− -- * Creating a Request
37− , projectsLogsEntriesWrite'
38− , ProjectsLogsEntriesWrite'
39−
40− -- * Request Lenses
41− , plewXgafv
42− , plewUploadProtocol
43− , plewLogsId
44− , plewPp
45− , plewAccessToken
46− , plewUploadType
47− , plewPayload
48− , plewBearerToken
49− , plewProjectsId
50− , plewCallback
51− ) where
52−
53−import Network.Google.Logging.Types
54−import Network.Google.Prelude
55−
56−-- | A resource alias for @LoggingProjectsLogsEntriesWrite@ method which the
57−-- 'ProjectsLogsEntriesWrite'' request conforms to.
58−type ProjectsLogsEntriesWriteResource =
59− "v1beta3" :>
60− "projects" :>
61− Capture "projectsId" Text :>
62− "logs" :>
63− Capture "logsId" Text :>
64− "entries:write" :>
65− QueryParam "$.xgafv" Text :>
66− QueryParam "upload_protocol" Text :>
67− QueryParam "pp" Bool :>
68− QueryParam "access_token" Text :>
69− QueryParam "uploadType" Text :>
70− QueryParam "bearer_token" Text :>
71− QueryParam "callback" Text :>
72− QueryParam "alt" AltJSON :>
73− ReqBody '[JSON] WriteLogEntriesRequest :>
74− Post '[JSON] WriteLogEntriesResponse
75−
76−-- | Writes log entries to Cloud Logging. Each entry consists of a
77−-- \`LogEntry\` object. You must fill in all the fields of the object,
78−-- including one of the payload fields. You may supply a map,
79−-- \`commonLabels\`, that holds default (key, value) data for the
80−-- \`entries[].metadata.labels\` map in each entry, saving you the trouble
81−-- of creating identical copies for each entry.
82−--
83−-- /See:/ 'projectsLogsEntriesWrite'' smart constructor.
84−data ProjectsLogsEntriesWrite' = ProjectsLogsEntriesWrite'
85− { _plewXgafv :: !(Maybe Text)
86− , _plewUploadProtocol :: !(Maybe Text)
87− , _plewLogsId :: !Text
88− , _plewPp :: !Bool
89− , _plewAccessToken :: !(Maybe Text)
90− , _plewUploadType :: !(Maybe Text)
91− , _plewPayload :: !WriteLogEntriesRequest
92− , _plewBearerToken :: !(Maybe Text)
93− , _plewProjectsId :: !Text
94− , _plewCallback :: !(Maybe Text)
95− } deriving (Eq,Show,Data,Typeable,Generic)
96−
97−-- | Creates a value of 'ProjectsLogsEntriesWrite'' with the minimum fields required to make a request.
98−--
99−-- Use one of the following lenses to modify other fields as desired:
100−--
101−-- * 'plewXgafv'
102−--
103−-- * 'plewUploadProtocol'
104−--
105−-- * 'plewLogsId'
106−--
107−-- * 'plewPp'
108−--
109−-- * 'plewAccessToken'
110−--
111−-- * 'plewUploadType'
112−--
113−-- * 'plewPayload'
114−--
115−-- * 'plewBearerToken'
116−--
117−-- * 'plewProjectsId'
118−--
119−-- * 'plewCallback'
120−projectsLogsEntriesWrite'
121− :: Text -- ^ 'logsId'
122− -> WriteLogEntriesRequest -- ^ 'payload'
123− -> Text -- ^ 'projectsId'
124− -> ProjectsLogsEntriesWrite'
125−projectsLogsEntriesWrite' pPlewLogsId_ pPlewPayload_ pPlewProjectsId_ =
126− ProjectsLogsEntriesWrite'
127− { _plewXgafv = Nothing
128− , _plewUploadProtocol = Nothing
129− , _plewLogsId = pPlewLogsId_
130− , _plewPp = True
131− , _plewAccessToken = Nothing
132− , _plewUploadType = Nothing
133− , _plewPayload = pPlewPayload_
134− , _plewBearerToken = Nothing
135− , _plewProjectsId = pPlewProjectsId_
136− , _plewCallback = Nothing
137− }
138−
139−-- | V1 error format.
140−plewXgafv :: Lens' ProjectsLogsEntriesWrite' (Maybe Text)
141−plewXgafv
142− = lens _plewXgafv (\ s a -> s{_plewXgafv = a})
143−
144−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
145−plewUploadProtocol :: Lens' ProjectsLogsEntriesWrite' (Maybe Text)
146−plewUploadProtocol
147− = lens _plewUploadProtocol
148− (\ s a -> s{_plewUploadProtocol = a})
149−
150−-- | Part of \`logName\`. See documentation of \`projectsId\`.
151−plewLogsId :: Lens' ProjectsLogsEntriesWrite' Text
152−plewLogsId
153− = lens _plewLogsId (\ s a -> s{_plewLogsId = a})
154−
155−-- | Pretty-print response.
156−plewPp :: Lens' ProjectsLogsEntriesWrite' Bool
157−plewPp = lens _plewPp (\ s a -> s{_plewPp = a})
158−
159−-- | OAuth access token.
160−plewAccessToken :: Lens' ProjectsLogsEntriesWrite' (Maybe Text)
161−plewAccessToken
162− = lens _plewAccessToken
163− (\ s a -> s{_plewAccessToken = a})
164−
165−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
166−plewUploadType :: Lens' ProjectsLogsEntriesWrite' (Maybe Text)
167−plewUploadType
168− = lens _plewUploadType
169− (\ s a -> s{_plewUploadType = a})
170−
171−-- | Multipart request metadata.
172−plewPayload :: Lens' ProjectsLogsEntriesWrite' WriteLogEntriesRequest
173−plewPayload
174− = lens _plewPayload (\ s a -> s{_plewPayload = a})
175−
176−-- | OAuth bearer token.
177−plewBearerToken :: Lens' ProjectsLogsEntriesWrite' (Maybe Text)
178−plewBearerToken
179− = lens _plewBearerToken
180− (\ s a -> s{_plewBearerToken = a})
181−
182−-- | Part of \`logName\`. The resource name of the log that will receive the
183−-- log entries.
184−plewProjectsId :: Lens' ProjectsLogsEntriesWrite' Text
185−plewProjectsId
186− = lens _plewProjectsId
187− (\ s a -> s{_plewProjectsId = a})
188−
189−-- | JSONP
190−plewCallback :: Lens' ProjectsLogsEntriesWrite' (Maybe Text)
191−plewCallback
192− = lens _plewCallback (\ s a -> s{_plewCallback = a})
193−
194−instance GoogleRequest ProjectsLogsEntriesWrite'
195− where
196− type Rs ProjectsLogsEntriesWrite' =
197− WriteLogEntriesResponse
198− requestClient ProjectsLogsEntriesWrite'{..}
199− = go _plewProjectsId _plewLogsId _plewXgafv
200− _plewUploadProtocol
201− (Just _plewPp)
202− _plewAccessToken
203− _plewUploadType
204− _plewBearerToken
205− _plewCallback
206− (Just AltJSON)
207− _plewPayload
208− loggingService
209− where go
210− = buildClient
211− (Proxy :: Proxy ProjectsLogsEntriesWriteResource)
212− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/List.hsdeleted−235
@@ -1,235 +0,0 @@
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.Logging.Projects.Logs.List
17−-- Copyright : (c) 2015 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−-- | Lists the logs in the project. Only logs that have entries are listed.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsList@.
26−module Network.Google.Resource.Logging.Projects.Logs.List
27− (
28− -- * REST Resource
29− ProjectsLogsListResource
30−
31− -- * Creating a Request
32− , projectsLogsList'
33− , ProjectsLogsList'
34−
35− -- * Request Lenses
36− , pllXgafv
37− , pllUploadProtocol
38− , pllPp
39− , pllAccessToken
40− , pllUploadType
41− , pllBearerToken
42− , pllServiceName
43− , pllPageToken
44− , pllServiceIndexPrefix
45− , pllProjectsId
46− , pllPageSize
47− , pllCallback
48− ) where
49−
50−import Network.Google.Logging.Types
51−import Network.Google.Prelude
52−
53−-- | A resource alias for @LoggingProjectsLogsList@ method which the
54−-- 'ProjectsLogsList'' request conforms to.
55−type ProjectsLogsListResource =
56− "v1beta3" :>
57− "projects" :>
58− Capture "projectsId" Text :>
59− "logs" :>
60− QueryParam "$.xgafv" Text :>
61− QueryParam "upload_protocol" Text :>
62− QueryParam "pp" Bool :>
63− QueryParam "access_token" Text :>
64− QueryParam "uploadType" Text :>
65− QueryParam "bearer_token" Text :>
66− QueryParam "serviceName" Text :>
67− QueryParam "pageToken" Text :>
68− QueryParam "serviceIndexPrefix" Text :>
69− QueryParam "pageSize" Int32 :>
70− QueryParam "callback" Text :>
71− QueryParam "alt" AltJSON :>
72− Get '[JSON] ListLogsResponse
73−
74−-- | Lists the logs in the project. Only logs that have entries are listed.
75−--
76−-- /See:/ 'projectsLogsList'' smart constructor.
77−data ProjectsLogsList' = ProjectsLogsList'
78− { _pllXgafv :: !(Maybe Text)
79− , _pllUploadProtocol :: !(Maybe Text)
80− , _pllPp :: !Bool
81− , _pllAccessToken :: !(Maybe Text)
82− , _pllUploadType :: !(Maybe Text)
83− , _pllBearerToken :: !(Maybe Text)
84− , _pllServiceName :: !(Maybe Text)
85− , _pllPageToken :: !(Maybe Text)
86− , _pllServiceIndexPrefix :: !(Maybe Text)
87− , _pllProjectsId :: !Text
88− , _pllPageSize :: !(Maybe Int32)
89− , _pllCallback :: !(Maybe Text)
90− } deriving (Eq,Show,Data,Typeable,Generic)
91−
92−-- | Creates a value of 'ProjectsLogsList'' with the minimum fields required to make a request.
93−--
94−-- Use one of the following lenses to modify other fields as desired:
95−--
96−-- * 'pllXgafv'
97−--
98−-- * 'pllUploadProtocol'
99−--
100−-- * 'pllPp'
101−--
102−-- * 'pllAccessToken'
103−--
104−-- * 'pllUploadType'
105−--
106−-- * 'pllBearerToken'
107−--
108−-- * 'pllServiceName'
109−--
110−-- * 'pllPageToken'
111−--
112−-- * 'pllServiceIndexPrefix'
113−--
114−-- * 'pllProjectsId'
115−--
116−-- * 'pllPageSize'
117−--
118−-- * 'pllCallback'
119−projectsLogsList'
120− :: Text -- ^ 'projectsId'
121− -> ProjectsLogsList'
122−projectsLogsList' pPllProjectsId_ =
123− ProjectsLogsList'
124− { _pllXgafv = Nothing
125− , _pllUploadProtocol = Nothing
126− , _pllPp = True
127− , _pllAccessToken = Nothing
128− , _pllUploadType = Nothing
129− , _pllBearerToken = Nothing
130− , _pllServiceName = Nothing
131− , _pllPageToken = Nothing
132− , _pllServiceIndexPrefix = Nothing
133− , _pllProjectsId = pPllProjectsId_
134− , _pllPageSize = Nothing
135− , _pllCallback = Nothing
136− }
137−
138−-- | V1 error format.
139−pllXgafv :: Lens' ProjectsLogsList' (Maybe Text)
140−pllXgafv = lens _pllXgafv (\ s a -> s{_pllXgafv = a})
141−
142−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
143−pllUploadProtocol :: Lens' ProjectsLogsList' (Maybe Text)
144−pllUploadProtocol
145− = lens _pllUploadProtocol
146− (\ s a -> s{_pllUploadProtocol = a})
147−
148−-- | Pretty-print response.
149−pllPp :: Lens' ProjectsLogsList' Bool
150−pllPp = lens _pllPp (\ s a -> s{_pllPp = a})
151−
152−-- | OAuth access token.
153−pllAccessToken :: Lens' ProjectsLogsList' (Maybe Text)
154−pllAccessToken
155− = lens _pllAccessToken
156− (\ s a -> s{_pllAccessToken = a})
157−
158−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
159−pllUploadType :: Lens' ProjectsLogsList' (Maybe Text)
160−pllUploadType
161− = lens _pllUploadType
162− (\ s a -> s{_pllUploadType = a})
163−
164−-- | OAuth bearer token.
165−pllBearerToken :: Lens' ProjectsLogsList' (Maybe Text)
166−pllBearerToken
167− = lens _pllBearerToken
168− (\ s a -> s{_pllBearerToken = a})
169−
170−-- | If not empty, this field must be a log service name such as
171−-- \`\"compute.googleapis.com\"\`. Only logs associated with that that log
172−-- service are listed.
173−pllServiceName :: Lens' ProjectsLogsList' (Maybe Text)
174−pllServiceName
175− = lens _pllServiceName
176− (\ s a -> s{_pllServiceName = a})
177−
178−-- | An opaque token, returned as \`nextPageToken\` by a prior \`ListLogs\`
179−-- operation. If \`pageToken\` is supplied, then the other fields of this
180−-- request are ignored, and instead the previous \`ListLogs\` operation is
181−-- continued.
182−pllPageToken :: Lens' ProjectsLogsList' (Maybe Text)
183−pllPageToken
184− = lens _pllPageToken (\ s a -> s{_pllPageToken = a})
185−
186−-- | The purpose of this field is to restrict the listed logs to those with
187−-- entries of a certain kind. If \`serviceName\` is the name of a log
188−-- service, then this field may contain values for the log service\'s
189−-- indexes. Only logs that have entries whose indexes include the values
190−-- are listed. The format for this field is \`\"\/val1\/val2...\/valN\"\`,
191−-- where \`val1\` is a value for the first index, \`val2\` for the second
192−-- index, etc. An empty value (a single slash) for an index matches all
193−-- values, and you can omit values for later indexes entirely.
194−pllServiceIndexPrefix :: Lens' ProjectsLogsList' (Maybe Text)
195−pllServiceIndexPrefix
196− = lens _pllServiceIndexPrefix
197− (\ s a -> s{_pllServiceIndexPrefix = a})
198−
199−-- | Part of \`projectName\`. The resource name of the project whose logs are
200−-- requested. If both \`serviceName\` and \`serviceIndexPrefix\` are empty,
201−-- then all logs with entries in this project are listed.
202−pllProjectsId :: Lens' ProjectsLogsList' Text
203−pllProjectsId
204− = lens _pllProjectsId
205− (\ s a -> s{_pllProjectsId = a})
206−
207−-- | The maximum number of results to return.
208−pllPageSize :: Lens' ProjectsLogsList' (Maybe Int32)
209−pllPageSize
210− = lens _pllPageSize (\ s a -> s{_pllPageSize = a})
211−
212−-- | JSONP
213−pllCallback :: Lens' ProjectsLogsList' (Maybe Text)
214−pllCallback
215− = lens _pllCallback (\ s a -> s{_pllCallback = a})
216−
217−instance GoogleRequest ProjectsLogsList' where
218− type Rs ProjectsLogsList' = ListLogsResponse
219− requestClient ProjectsLogsList'{..}
220− = go _pllProjectsId _pllXgafv _pllUploadProtocol
221− (Just _pllPp)
222− _pllAccessToken
223− _pllUploadType
224− _pllBearerToken
225− _pllServiceName
226− _pllPageToken
227− _pllServiceIndexPrefix
228− _pllPageSize
229− _pllCallback
230− (Just AltJSON)
231− loggingService
232− where go
233− = buildClient
234− (Proxy :: Proxy ProjectsLogsListResource)
235− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Create.hsdeleted−201
@@ -1,201 +0,0 @@
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.Logging.Projects.Logs.Sinks.Create
17−-- Copyright : (c) 2015 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−-- | Creates a log sink. All log entries for a specified log are written to
24−-- the destination.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsSinksCreate@.
27−module Network.Google.Resource.Logging.Projects.Logs.Sinks.Create
28− (
29− -- * REST Resource
30− ProjectsLogsSinksCreateResource
31−
32− -- * Creating a Request
33− , projectsLogsSinksCreate'
34− , ProjectsLogsSinksCreate'
35−
36− -- * Request Lenses
37− , plscXgafv
38− , plscUploadProtocol
39− , plscLogsId
40− , plscPp
41− , plscAccessToken
42− , plscUploadType
43− , plscPayload
44− , plscBearerToken
45− , plscProjectsId
46− , plscCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogsSinksCreate@ method which the
53−-- 'ProjectsLogsSinksCreate'' request conforms to.
54−type ProjectsLogsSinksCreateResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logs" :>
59− Capture "logsId" Text :>
60− "sinks" :>
61− QueryParam "$.xgafv" Text :>
62− QueryParam "upload_protocol" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "bearer_token" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :>
69− ReqBody '[JSON] LogSink :> Post '[JSON] LogSink
70−
71−-- | Creates a log sink. All log entries for a specified log are written to
72−-- the destination.
73−--
74−-- /See:/ 'projectsLogsSinksCreate'' smart constructor.
75−data ProjectsLogsSinksCreate' = ProjectsLogsSinksCreate'
76− { _plscXgafv :: !(Maybe Text)
77− , _plscUploadProtocol :: !(Maybe Text)
78− , _plscLogsId :: !Text
79− , _plscPp :: !Bool
80− , _plscAccessToken :: !(Maybe Text)
81− , _plscUploadType :: !(Maybe Text)
82− , _plscPayload :: !LogSink
83− , _plscBearerToken :: !(Maybe Text)
84− , _plscProjectsId :: !Text
85− , _plscCallback :: !(Maybe Text)
86− } deriving (Eq,Show,Data,Typeable,Generic)
87−
88−-- | Creates a value of 'ProjectsLogsSinksCreate'' 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−-- * 'plscXgafv'
93−--
94−-- * 'plscUploadProtocol'
95−--
96−-- * 'plscLogsId'
97−--
98−-- * 'plscPp'
99−--
100−-- * 'plscAccessToken'
101−--
102−-- * 'plscUploadType'
103−--
104−-- * 'plscPayload'
105−--
106−-- * 'plscBearerToken'
107−--
108−-- * 'plscProjectsId'
109−--
110−-- * 'plscCallback'
111−projectsLogsSinksCreate'
112− :: Text -- ^ 'logsId'
113− -> LogSink -- ^ 'payload'
114− -> Text -- ^ 'projectsId'
115− -> ProjectsLogsSinksCreate'
116−projectsLogsSinksCreate' pPlscLogsId_ pPlscPayload_ pPlscProjectsId_ =
117− ProjectsLogsSinksCreate'
118− { _plscXgafv = Nothing
119− , _plscUploadProtocol = Nothing
120− , _plscLogsId = pPlscLogsId_
121− , _plscPp = True
122− , _plscAccessToken = Nothing
123− , _plscUploadType = Nothing
124− , _plscPayload = pPlscPayload_
125− , _plscBearerToken = Nothing
126− , _plscProjectsId = pPlscProjectsId_
127− , _plscCallback = Nothing
128− }
129−
130−-- | V1 error format.
131−plscXgafv :: Lens' ProjectsLogsSinksCreate' (Maybe Text)
132−plscXgafv
133− = lens _plscXgafv (\ s a -> s{_plscXgafv = a})
134−
135−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
136−plscUploadProtocol :: Lens' ProjectsLogsSinksCreate' (Maybe Text)
137−plscUploadProtocol
138− = lens _plscUploadProtocol
139− (\ s a -> s{_plscUploadProtocol = a})
140−
141−-- | Part of \`logName\`. See documentation of \`projectsId\`.
142−plscLogsId :: Lens' ProjectsLogsSinksCreate' Text
143−plscLogsId
144− = lens _plscLogsId (\ s a -> s{_plscLogsId = a})
145−
146−-- | Pretty-print response.
147−plscPp :: Lens' ProjectsLogsSinksCreate' Bool
148−plscPp = lens _plscPp (\ s a -> s{_plscPp = a})
149−
150−-- | OAuth access token.
151−plscAccessToken :: Lens' ProjectsLogsSinksCreate' (Maybe Text)
152−plscAccessToken
153− = lens _plscAccessToken
154− (\ s a -> s{_plscAccessToken = a})
155−
156−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
157−plscUploadType :: Lens' ProjectsLogsSinksCreate' (Maybe Text)
158−plscUploadType
159− = lens _plscUploadType
160− (\ s a -> s{_plscUploadType = a})
161−
162−-- | Multipart request metadata.
163−plscPayload :: Lens' ProjectsLogsSinksCreate' LogSink
164−plscPayload
165− = lens _plscPayload (\ s a -> s{_plscPayload = a})
166−
167−-- | OAuth bearer token.
168−plscBearerToken :: Lens' ProjectsLogsSinksCreate' (Maybe Text)
169−plscBearerToken
170− = lens _plscBearerToken
171− (\ s a -> s{_plscBearerToken = a})
172−
173−-- | Part of \`logName\`. The resource name of the log to which to the sink
174−-- is bound.
175−plscProjectsId :: Lens' ProjectsLogsSinksCreate' Text
176−plscProjectsId
177− = lens _plscProjectsId
178− (\ s a -> s{_plscProjectsId = a})
179−
180−-- | JSONP
181−plscCallback :: Lens' ProjectsLogsSinksCreate' (Maybe Text)
182−plscCallback
183− = lens _plscCallback (\ s a -> s{_plscCallback = a})
184−
185−instance GoogleRequest ProjectsLogsSinksCreate' where
186− type Rs ProjectsLogsSinksCreate' = LogSink
187− requestClient ProjectsLogsSinksCreate'{..}
188− = go _plscProjectsId _plscLogsId _plscXgafv
189− _plscUploadProtocol
190− (Just _plscPp)
191− _plscAccessToken
192− _plscUploadType
193− _plscBearerToken
194− _plscCallback
195− (Just AltJSON)
196− _plscPayload
197− loggingService
198− where go
199− = buildClient
200− (Proxy :: Proxy ProjectsLogsSinksCreateResource)
201− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Delete.hsdeleted−201
@@ -1,201 +0,0 @@
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.Logging.Projects.Logs.Sinks.Delete
17−-- Copyright : (c) 2015 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−-- | Deletes a log sink. After deletion, no new log entries are written to
24−-- the destination.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsSinksDelete@.
27−module Network.Google.Resource.Logging.Projects.Logs.Sinks.Delete
28− (
29− -- * REST Resource
30− ProjectsLogsSinksDeleteResource
31−
32− -- * Creating a Request
33− , projectsLogsSinksDelete'
34− , ProjectsLogsSinksDelete'
35−
36− -- * Request Lenses
37− , plsdXgafv
38− , plsdUploadProtocol
39− , plsdLogsId
40− , plsdPp
41− , plsdAccessToken
42− , plsdUploadType
43− , plsdBearerToken
44− , plsdProjectsId
45− , plsdSinksId
46− , plsdCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogsSinksDelete@ method which the
53−-- 'ProjectsLogsSinksDelete'' request conforms to.
54−type ProjectsLogsSinksDeleteResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logs" :>
59− Capture "logsId" Text :>
60− "sinks" :>
61− Capture "sinksId" Text :>
62− QueryParam "$.xgafv" Text :>
63− QueryParam "upload_protocol" Text :>
64− QueryParam "pp" Bool :>
65− QueryParam "access_token" Text :>
66− QueryParam "uploadType" Text :>
67− QueryParam "bearer_token" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− Delete '[JSON] Empty
71−
72−-- | Deletes a log sink. After deletion, no new log entries are written to
73−-- the destination.
74−--
75−-- /See:/ 'projectsLogsSinksDelete'' smart constructor.
76−data ProjectsLogsSinksDelete' = ProjectsLogsSinksDelete'
77− { _plsdXgafv :: !(Maybe Text)
78− , _plsdUploadProtocol :: !(Maybe Text)
79− , _plsdLogsId :: !Text
80− , _plsdPp :: !Bool
81− , _plsdAccessToken :: !(Maybe Text)
82− , _plsdUploadType :: !(Maybe Text)
83− , _plsdBearerToken :: !(Maybe Text)
84− , _plsdProjectsId :: !Text
85− , _plsdSinksId :: !Text
86− , _plsdCallback :: !(Maybe Text)
87− } deriving (Eq,Show,Data,Typeable,Generic)
88−
89−-- | Creates a value of 'ProjectsLogsSinksDelete'' with the minimum fields required to make a request.
90−--
91−-- Use one of the following lenses to modify other fields as desired:
92−--
93−-- * 'plsdXgafv'
94−--
95−-- * 'plsdUploadProtocol'
96−--
97−-- * 'plsdLogsId'
98−--
99−-- * 'plsdPp'
100−--
101−-- * 'plsdAccessToken'
102−--
103−-- * 'plsdUploadType'
104−--
105−-- * 'plsdBearerToken'
106−--
107−-- * 'plsdProjectsId'
108−--
109−-- * 'plsdSinksId'
110−--
111−-- * 'plsdCallback'
112−projectsLogsSinksDelete'
113− :: Text -- ^ 'logsId'
114− -> Text -- ^ 'projectsId'
115− -> Text -- ^ 'sinksId'
116− -> ProjectsLogsSinksDelete'
117−projectsLogsSinksDelete' pPlsdLogsId_ pPlsdProjectsId_ pPlsdSinksId_ =
118− ProjectsLogsSinksDelete'
119− { _plsdXgafv = Nothing
120− , _plsdUploadProtocol = Nothing
121− , _plsdLogsId = pPlsdLogsId_
122− , _plsdPp = True
123− , _plsdAccessToken = Nothing
124− , _plsdUploadType = Nothing
125− , _plsdBearerToken = Nothing
126− , _plsdProjectsId = pPlsdProjectsId_
127− , _plsdSinksId = pPlsdSinksId_
128− , _plsdCallback = Nothing
129− }
130−
131−-- | V1 error format.
132−plsdXgafv :: Lens' ProjectsLogsSinksDelete' (Maybe Text)
133−plsdXgafv
134− = lens _plsdXgafv (\ s a -> s{_plsdXgafv = a})
135−
136−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
137−plsdUploadProtocol :: Lens' ProjectsLogsSinksDelete' (Maybe Text)
138−plsdUploadProtocol
139− = lens _plsdUploadProtocol
140− (\ s a -> s{_plsdUploadProtocol = a})
141−
142−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
143−plsdLogsId :: Lens' ProjectsLogsSinksDelete' Text
144−plsdLogsId
145− = lens _plsdLogsId (\ s a -> s{_plsdLogsId = a})
146−
147−-- | Pretty-print response.
148−plsdPp :: Lens' ProjectsLogsSinksDelete' Bool
149−plsdPp = lens _plsdPp (\ s a -> s{_plsdPp = a})
150−
151−-- | OAuth access token.
152−plsdAccessToken :: Lens' ProjectsLogsSinksDelete' (Maybe Text)
153−plsdAccessToken
154− = lens _plsdAccessToken
155− (\ s a -> s{_plsdAccessToken = a})
156−
157−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
158−plsdUploadType :: Lens' ProjectsLogsSinksDelete' (Maybe Text)
159−plsdUploadType
160− = lens _plsdUploadType
161− (\ s a -> s{_plsdUploadType = a})
162−
163−-- | OAuth bearer token.
164−plsdBearerToken :: Lens' ProjectsLogsSinksDelete' (Maybe Text)
165−plsdBearerToken
166− = lens _plsdBearerToken
167− (\ s a -> s{_plsdBearerToken = a})
168−
169−-- | Part of \`sinkName\`. The resource name of the log sink to delete.
170−plsdProjectsId :: Lens' ProjectsLogsSinksDelete' Text
171−plsdProjectsId
172− = lens _plsdProjectsId
173− (\ s a -> s{_plsdProjectsId = a})
174−
175−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
176−plsdSinksId :: Lens' ProjectsLogsSinksDelete' Text
177−plsdSinksId
178− = lens _plsdSinksId (\ s a -> s{_plsdSinksId = a})
179−
180−-- | JSONP
181−plsdCallback :: Lens' ProjectsLogsSinksDelete' (Maybe Text)
182−plsdCallback
183− = lens _plsdCallback (\ s a -> s{_plsdCallback = a})
184−
185−instance GoogleRequest ProjectsLogsSinksDelete' where
186− type Rs ProjectsLogsSinksDelete' = Empty
187− requestClient ProjectsLogsSinksDelete'{..}
188− = go _plsdProjectsId _plsdLogsId _plsdSinksId
189− _plsdXgafv
190− _plsdUploadProtocol
191− (Just _plsdPp)
192− _plsdAccessToken
193− _plsdUploadType
194− _plsdBearerToken
195− _plsdCallback
196− (Just AltJSON)
197− loggingService
198− where go
199− = buildClient
200− (Proxy :: Proxy ProjectsLogsSinksDeleteResource)
201− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Get.hsdeleted−198
@@ -1,198 +0,0 @@
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.Logging.Projects.Logs.Sinks.Get
17−-- Copyright : (c) 2015 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 a log sink.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsSinksGet@.
26−module Network.Google.Resource.Logging.Projects.Logs.Sinks.Get
27− (
28− -- * REST Resource
29− ProjectsLogsSinksGetResource
30−
31− -- * Creating a Request
32− , projectsLogsSinksGet'
33− , ProjectsLogsSinksGet'
34−
35− -- * Request Lenses
36− , plsgXgafv
37− , plsgUploadProtocol
38− , plsgLogsId
39− , plsgPp
40− , plsgAccessToken
41− , plsgUploadType
42− , plsgBearerToken
43− , plsgProjectsId
44− , plsgSinksId
45− , plsgCallback
46− ) where
47−
48−import Network.Google.Logging.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @LoggingProjectsLogsSinksGet@ method which the
52−-- 'ProjectsLogsSinksGet'' request conforms to.
53−type ProjectsLogsSinksGetResource =
54− "v1beta3" :>
55− "projects" :>
56− Capture "projectsId" Text :>
57− "logs" :>
58− Capture "logsId" Text :>
59− "sinks" :>
60− Capture "sinksId" Text :>
61− QueryParam "$.xgafv" Text :>
62− QueryParam "upload_protocol" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "bearer_token" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :> Get '[JSON] LogSink
69−
70−-- | Gets a log sink.
71−--
72−-- /See:/ 'projectsLogsSinksGet'' smart constructor.
73−data ProjectsLogsSinksGet' = ProjectsLogsSinksGet'
74− { _plsgXgafv :: !(Maybe Text)
75− , _plsgUploadProtocol :: !(Maybe Text)
76− , _plsgLogsId :: !Text
77− , _plsgPp :: !Bool
78− , _plsgAccessToken :: !(Maybe Text)
79− , _plsgUploadType :: !(Maybe Text)
80− , _plsgBearerToken :: !(Maybe Text)
81− , _plsgProjectsId :: !Text
82− , _plsgSinksId :: !Text
83− , _plsgCallback :: !(Maybe Text)
84− } deriving (Eq,Show,Data,Typeable,Generic)
85−
86−-- | Creates a value of 'ProjectsLogsSinksGet'' with the minimum fields required to make a request.
87−--
88−-- Use one of the following lenses to modify other fields as desired:
89−--
90−-- * 'plsgXgafv'
91−--
92−-- * 'plsgUploadProtocol'
93−--
94−-- * 'plsgLogsId'
95−--
96−-- * 'plsgPp'
97−--
98−-- * 'plsgAccessToken'
99−--
100−-- * 'plsgUploadType'
101−--
102−-- * 'plsgBearerToken'
103−--
104−-- * 'plsgProjectsId'
105−--
106−-- * 'plsgSinksId'
107−--
108−-- * 'plsgCallback'
109−projectsLogsSinksGet'
110− :: Text -- ^ 'logsId'
111− -> Text -- ^ 'projectsId'
112− -> Text -- ^ 'sinksId'
113− -> ProjectsLogsSinksGet'
114−projectsLogsSinksGet' pPlsgLogsId_ pPlsgProjectsId_ pPlsgSinksId_ =
115− ProjectsLogsSinksGet'
116− { _plsgXgafv = Nothing
117− , _plsgUploadProtocol = Nothing
118− , _plsgLogsId = pPlsgLogsId_
119− , _plsgPp = True
120− , _plsgAccessToken = Nothing
121− , _plsgUploadType = Nothing
122− , _plsgBearerToken = Nothing
123− , _plsgProjectsId = pPlsgProjectsId_
124− , _plsgSinksId = pPlsgSinksId_
125− , _plsgCallback = Nothing
126− }
127−
128−-- | V1 error format.
129−plsgXgafv :: Lens' ProjectsLogsSinksGet' (Maybe Text)
130−plsgXgafv
131− = lens _plsgXgafv (\ s a -> s{_plsgXgafv = a})
132−
133−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
134−plsgUploadProtocol :: Lens' ProjectsLogsSinksGet' (Maybe Text)
135−plsgUploadProtocol
136− = lens _plsgUploadProtocol
137− (\ s a -> s{_plsgUploadProtocol = a})
138−
139−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
140−plsgLogsId :: Lens' ProjectsLogsSinksGet' Text
141−plsgLogsId
142− = lens _plsgLogsId (\ s a -> s{_plsgLogsId = a})
143−
144−-- | Pretty-print response.
145−plsgPp :: Lens' ProjectsLogsSinksGet' Bool
146−plsgPp = lens _plsgPp (\ s a -> s{_plsgPp = a})
147−
148−-- | OAuth access token.
149−plsgAccessToken :: Lens' ProjectsLogsSinksGet' (Maybe Text)
150−plsgAccessToken
151− = lens _plsgAccessToken
152− (\ s a -> s{_plsgAccessToken = a})
153−
154−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
155−plsgUploadType :: Lens' ProjectsLogsSinksGet' (Maybe Text)
156−plsgUploadType
157− = lens _plsgUploadType
158− (\ s a -> s{_plsgUploadType = a})
159−
160−-- | OAuth bearer token.
161−plsgBearerToken :: Lens' ProjectsLogsSinksGet' (Maybe Text)
162−plsgBearerToken
163− = lens _plsgBearerToken
164− (\ s a -> s{_plsgBearerToken = a})
165−
166−-- | Part of \`sinkName\`. The resource name of the log sink to return.
167−plsgProjectsId :: Lens' ProjectsLogsSinksGet' Text
168−plsgProjectsId
169− = lens _plsgProjectsId
170− (\ s a -> s{_plsgProjectsId = a})
171−
172−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
173−plsgSinksId :: Lens' ProjectsLogsSinksGet' Text
174−plsgSinksId
175− = lens _plsgSinksId (\ s a -> s{_plsgSinksId = a})
176−
177−-- | JSONP
178−plsgCallback :: Lens' ProjectsLogsSinksGet' (Maybe Text)
179−plsgCallback
180− = lens _plsgCallback (\ s a -> s{_plsgCallback = a})
181−
182−instance GoogleRequest ProjectsLogsSinksGet' where
183− type Rs ProjectsLogsSinksGet' = LogSink
184− requestClient ProjectsLogsSinksGet'{..}
185− = go _plsgProjectsId _plsgLogsId _plsgSinksId
186− _plsgXgafv
187− _plsgUploadProtocol
188− (Just _plsgPp)
189− _plsgAccessToken
190− _plsgUploadType
191− _plsgBearerToken
192− _plsgCallback
193− (Just AltJSON)
194− loggingService
195− where go
196− = buildClient
197− (Proxy :: Proxy ProjectsLogsSinksGetResource)
198− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/List.hsdeleted−180
@@ -1,180 +0,0 @@
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.Logging.Projects.Logs.Sinks.List
17−-- Copyright : (c) 2015 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−-- | Lists log sinks associated with a log.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsSinksList@.
26−module Network.Google.Resource.Logging.Projects.Logs.Sinks.List
27− (
28− -- * REST Resource
29− ProjectsLogsSinksListResource
30−
31− -- * Creating a Request
32− , projectsLogsSinksList'
33− , ProjectsLogsSinksList'
34−
35− -- * Request Lenses
36− , pXgafv
37− , pUploadProtocol
38− , pLogsId
39− , pPp
40− , pAccessToken
41− , pUploadType
42− , pBearerToken
43− , pProjectsId
44− , pCallback
45− ) where
46−
47−import Network.Google.Logging.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @LoggingProjectsLogsSinksList@ method which the
51−-- 'ProjectsLogsSinksList'' request conforms to.
52−type ProjectsLogsSinksListResource =
53− "v1beta3" :>
54− "projects" :>
55− Capture "projectsId" Text :>
56− "logs" :>
57− Capture "logsId" Text :>
58− "sinks" :>
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] ListLogSinksResponse
68−
69−-- | Lists log sinks associated with a log.
70−--
71−-- /See:/ 'projectsLogsSinksList'' smart constructor.
72−data ProjectsLogsSinksList' = ProjectsLogsSinksList'
73− { _pXgafv :: !(Maybe Text)
74− , _pUploadProtocol :: !(Maybe Text)
75− , _pLogsId :: !Text
76− , _pPp :: !Bool
77− , _pAccessToken :: !(Maybe Text)
78− , _pUploadType :: !(Maybe Text)
79− , _pBearerToken :: !(Maybe Text)
80− , _pProjectsId :: !Text
81− , _pCallback :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'ProjectsLogsSinksList'' with the minimum fields required to make a request.
85−--
86−-- Use one of the following lenses to modify other fields as desired:
87−--
88−-- * 'pXgafv'
89−--
90−-- * 'pUploadProtocol'
91−--
92−-- * 'pLogsId'
93−--
94−-- * 'pPp'
95−--
96−-- * 'pAccessToken'
97−--
98−-- * 'pUploadType'
99−--
100−-- * 'pBearerToken'
101−--
102−-- * 'pProjectsId'
103−--
104−-- * 'pCallback'
105−projectsLogsSinksList'
106− :: Text -- ^ 'logsId'
107− -> Text -- ^ 'projectsId'
108− -> ProjectsLogsSinksList'
109−projectsLogsSinksList' pPLogsId_ pPProjectsId_ =
110− ProjectsLogsSinksList'
111− { _pXgafv = Nothing
112− , _pUploadProtocol = Nothing
113− , _pLogsId = pPLogsId_
114− , _pPp = True
115− , _pAccessToken = Nothing
116− , _pUploadType = Nothing
117− , _pBearerToken = Nothing
118− , _pProjectsId = pPProjectsId_
119− , _pCallback = Nothing
120− }
121−
122−-- | V1 error format.
123−pXgafv :: Lens' ProjectsLogsSinksList' (Maybe Text)
124−pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})
125−
126−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
127−pUploadProtocol :: Lens' ProjectsLogsSinksList' (Maybe Text)
128−pUploadProtocol
129− = lens _pUploadProtocol
130− (\ s a -> s{_pUploadProtocol = a})
131−
132−-- | Part of \`logName\`. See documentation of \`projectsId\`.
133−pLogsId :: Lens' ProjectsLogsSinksList' Text
134−pLogsId = lens _pLogsId (\ s a -> s{_pLogsId = a})
135−
136−-- | Pretty-print response.
137−pPp :: Lens' ProjectsLogsSinksList' Bool
138−pPp = lens _pPp (\ s a -> s{_pPp = a})
139−
140−-- | OAuth access token.
141−pAccessToken :: Lens' ProjectsLogsSinksList' (Maybe Text)
142−pAccessToken
143− = lens _pAccessToken (\ s a -> s{_pAccessToken = a})
144−
145−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
146−pUploadType :: Lens' ProjectsLogsSinksList' (Maybe Text)
147−pUploadType
148− = lens _pUploadType (\ s a -> s{_pUploadType = a})
149−
150−-- | OAuth bearer token.
151−pBearerToken :: Lens' ProjectsLogsSinksList' (Maybe Text)
152−pBearerToken
153− = lens _pBearerToken (\ s a -> s{_pBearerToken = a})
154−
155−-- | Part of \`logName\`. The log whose sinks are wanted. For example,
156−-- \`\"compute.google.com\/syslog\"\`.
157−pProjectsId :: Lens' ProjectsLogsSinksList' Text
158−pProjectsId
159− = lens _pProjectsId (\ s a -> s{_pProjectsId = a})
160−
161−-- | JSONP
162−pCallback :: Lens' ProjectsLogsSinksList' (Maybe Text)
163−pCallback
164− = lens _pCallback (\ s a -> s{_pCallback = a})
165−
166−instance GoogleRequest ProjectsLogsSinksList' where
167− type Rs ProjectsLogsSinksList' = ListLogSinksResponse
168− requestClient ProjectsLogsSinksList'{..}
169− = go _pProjectsId _pLogsId _pXgafv _pUploadProtocol
170− (Just _pPp)
171− _pAccessToken
172− _pUploadType
173− _pBearerToken
174− _pCallback
175− (Just AltJSON)
176− loggingService
177− where go
178− = buildClient
179− (Proxy :: Proxy ProjectsLogsSinksListResource)
180− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Sinks/Update.hsdeleted−212
@@ -1,212 +0,0 @@
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.Logging.Projects.Logs.Sinks.Update
17−-- Copyright : (c) 2015 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 a log sink. If the sink does not exist, it is created.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsLogsSinksUpdate@.
26−module Network.Google.Resource.Logging.Projects.Logs.Sinks.Update
27− (
28− -- * REST Resource
29− ProjectsLogsSinksUpdateResource
30−
31− -- * Creating a Request
32− , projectsLogsSinksUpdate'
33− , ProjectsLogsSinksUpdate'
34−
35− -- * Request Lenses
36− , plsuXgafv
37− , plsuUploadProtocol
38− , plsuLogsId
39− , plsuPp
40− , plsuAccessToken
41− , plsuUploadType
42− , plsuPayload
43− , plsuBearerToken
44− , plsuProjectsId
45− , plsuSinksId
46− , plsuCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsLogsSinksUpdate@ method which the
53−-- 'ProjectsLogsSinksUpdate'' request conforms to.
54−type ProjectsLogsSinksUpdateResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "logs" :>
59− Capture "logsId" Text :>
60− "sinks" :>
61− Capture "sinksId" Text :>
62− QueryParam "$.xgafv" Text :>
63− QueryParam "upload_protocol" Text :>
64− QueryParam "pp" Bool :>
65− QueryParam "access_token" Text :>
66− QueryParam "uploadType" Text :>
67− QueryParam "bearer_token" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :>
70− ReqBody '[JSON] LogSink :>
71− Put '[JSON] LogSink
72−
73−-- | Updates a log sink. If the sink does not exist, it is created.
74−--
75−-- /See:/ 'projectsLogsSinksUpdate'' smart constructor.
76−data ProjectsLogsSinksUpdate' = ProjectsLogsSinksUpdate'
77− { _plsuXgafv :: !(Maybe Text)
78− , _plsuUploadProtocol :: !(Maybe Text)
79− , _plsuLogsId :: !Text
80− , _plsuPp :: !Bool
81− , _plsuAccessToken :: !(Maybe Text)
82− , _plsuUploadType :: !(Maybe Text)
83− , _plsuPayload :: !LogSink
84− , _plsuBearerToken :: !(Maybe Text)
85− , _plsuProjectsId :: !Text
86− , _plsuSinksId :: !Text
87− , _plsuCallback :: !(Maybe Text)
88− } deriving (Eq,Show,Data,Typeable,Generic)
89−
90−-- | Creates a value of 'ProjectsLogsSinksUpdate'' with the minimum fields required to make a request.
91−--
92−-- Use one of the following lenses to modify other fields as desired:
93−--
94−-- * 'plsuXgafv'
95−--
96−-- * 'plsuUploadProtocol'
97−--
98−-- * 'plsuLogsId'
99−--
100−-- * 'plsuPp'
101−--
102−-- * 'plsuAccessToken'
103−--
104−-- * 'plsuUploadType'
105−--
106−-- * 'plsuPayload'
107−--
108−-- * 'plsuBearerToken'
109−--
110−-- * 'plsuProjectsId'
111−--
112−-- * 'plsuSinksId'
113−--
114−-- * 'plsuCallback'
115−projectsLogsSinksUpdate'
116− :: Text -- ^ 'logsId'
117− -> LogSink -- ^ 'payload'
118− -> Text -- ^ 'projectsId'
119− -> Text -- ^ 'sinksId'
120− -> ProjectsLogsSinksUpdate'
121−projectsLogsSinksUpdate' pPlsuLogsId_ pPlsuPayload_ pPlsuProjectsId_ pPlsuSinksId_ =
122− ProjectsLogsSinksUpdate'
123− { _plsuXgafv = Nothing
124− , _plsuUploadProtocol = Nothing
125− , _plsuLogsId = pPlsuLogsId_
126− , _plsuPp = True
127− , _plsuAccessToken = Nothing
128− , _plsuUploadType = Nothing
129− , _plsuPayload = pPlsuPayload_
130− , _plsuBearerToken = Nothing
131− , _plsuProjectsId = pPlsuProjectsId_
132− , _plsuSinksId = pPlsuSinksId_
133− , _plsuCallback = Nothing
134− }
135−
136−-- | V1 error format.
137−plsuXgafv :: Lens' ProjectsLogsSinksUpdate' (Maybe Text)
138−plsuXgafv
139− = lens _plsuXgafv (\ s a -> s{_plsuXgafv = a})
140−
141−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
142−plsuUploadProtocol :: Lens' ProjectsLogsSinksUpdate' (Maybe Text)
143−plsuUploadProtocol
144− = lens _plsuUploadProtocol
145− (\ s a -> s{_plsuUploadProtocol = a})
146−
147−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
148−plsuLogsId :: Lens' ProjectsLogsSinksUpdate' Text
149−plsuLogsId
150− = lens _plsuLogsId (\ s a -> s{_plsuLogsId = a})
151−
152−-- | Pretty-print response.
153−plsuPp :: Lens' ProjectsLogsSinksUpdate' Bool
154−plsuPp = lens _plsuPp (\ s a -> s{_plsuPp = a})
155−
156−-- | OAuth access token.
157−plsuAccessToken :: Lens' ProjectsLogsSinksUpdate' (Maybe Text)
158−plsuAccessToken
159− = lens _plsuAccessToken
160− (\ s a -> s{_plsuAccessToken = a})
161−
162−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
163−plsuUploadType :: Lens' ProjectsLogsSinksUpdate' (Maybe Text)
164−plsuUploadType
165− = lens _plsuUploadType
166− (\ s a -> s{_plsuUploadType = a})
167−
168−-- | Multipart request metadata.
169−plsuPayload :: Lens' ProjectsLogsSinksUpdate' LogSink
170−plsuPayload
171− = lens _plsuPayload (\ s a -> s{_plsuPayload = a})
172−
173−-- | OAuth bearer token.
174−plsuBearerToken :: Lens' ProjectsLogsSinksUpdate' (Maybe Text)
175−plsuBearerToken
176− = lens _plsuBearerToken
177− (\ s a -> s{_plsuBearerToken = a})
178−
179−-- | Part of \`sinkName\`. The resource name of the sink to update.
180−plsuProjectsId :: Lens' ProjectsLogsSinksUpdate' Text
181−plsuProjectsId
182− = lens _plsuProjectsId
183− (\ s a -> s{_plsuProjectsId = a})
184−
185−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
186−plsuSinksId :: Lens' ProjectsLogsSinksUpdate' Text
187−plsuSinksId
188− = lens _plsuSinksId (\ s a -> s{_plsuSinksId = a})
189−
190−-- | JSONP
191−plsuCallback :: Lens' ProjectsLogsSinksUpdate' (Maybe Text)
192−plsuCallback
193− = lens _plsuCallback (\ s a -> s{_plsuCallback = a})
194−
195−instance GoogleRequest ProjectsLogsSinksUpdate' where
196− type Rs ProjectsLogsSinksUpdate' = LogSink
197− requestClient ProjectsLogsSinksUpdate'{..}
198− = go _plsuProjectsId _plsuLogsId _plsuSinksId
199− _plsuXgafv
200− _plsuUploadProtocol
201− (Just _plsuPp)
202− _plsuAccessToken
203− _plsuUploadType
204− _plsuBearerToken
205− _plsuCallback
206− (Just AltJSON)
207− _plsuPayload
208− loggingService
209− where go
210− = buildClient
211− (Proxy :: Proxy ProjectsLogsSinksUpdateResource)
212− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Create.hsdeleted−186
@@ -1,186 +0,0 @@
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.Logging.Projects.Sinks.Create
17−-- Copyright : (c) 2015 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−-- | Creates a project sink. A logs filter determines which log entries are
24−-- written to the destination.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsSinksCreate@.
27−module Network.Google.Resource.Logging.Projects.Sinks.Create
28− (
29− -- * REST Resource
30− ProjectsSinksCreateResource
31−
32− -- * Creating a Request
33− , projectsSinksCreate'
34− , ProjectsSinksCreate'
35−
36− -- * Request Lenses
37− , pscXgafv
38− , pscUploadProtocol
39− , pscPp
40− , pscAccessToken
41− , pscUploadType
42− , pscPayload
43− , pscBearerToken
44− , pscProjectsId
45− , pscCallback
46− ) where
47−
48−import Network.Google.Logging.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @LoggingProjectsSinksCreate@ method which the
52−-- 'ProjectsSinksCreate'' request conforms to.
53−type ProjectsSinksCreateResource =
54− "v1beta3" :>
55− "projects" :>
56− Capture "projectsId" Text :>
57− "sinks" :>
58− QueryParam "$.xgafv" Text :>
59− QueryParam "upload_protocol" Text :>
60− QueryParam "pp" Bool :>
61− QueryParam "access_token" Text :>
62− QueryParam "uploadType" Text :>
63− QueryParam "bearer_token" Text :>
64− QueryParam "callback" Text :>
65− QueryParam "alt" AltJSON :>
66− ReqBody '[JSON] LogSink :> Post '[JSON] LogSink
67−
68−-- | Creates a project sink. A logs filter determines which log entries are
69−-- written to the destination.
70−--
71−-- /See:/ 'projectsSinksCreate'' smart constructor.
72−data ProjectsSinksCreate' = ProjectsSinksCreate'
73− { _pscXgafv :: !(Maybe Text)
74− , _pscUploadProtocol :: !(Maybe Text)
75− , _pscPp :: !Bool
76− , _pscAccessToken :: !(Maybe Text)
77− , _pscUploadType :: !(Maybe Text)
78− , _pscPayload :: !LogSink
79− , _pscBearerToken :: !(Maybe Text)
80− , _pscProjectsId :: !Text
81− , _pscCallback :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'ProjectsSinksCreate'' with the minimum fields required to make a request.
85−--
86−-- Use one of the following lenses to modify other fields as desired:
87−--
88−-- * 'pscXgafv'
89−--
90−-- * 'pscUploadProtocol'
91−--
92−-- * 'pscPp'
93−--
94−-- * 'pscAccessToken'
95−--
96−-- * 'pscUploadType'
97−--
98−-- * 'pscPayload'
99−--
100−-- * 'pscBearerToken'
101−--
102−-- * 'pscProjectsId'
103−--
104−-- * 'pscCallback'
105−projectsSinksCreate'
106− :: LogSink -- ^ 'payload'
107− -> Text -- ^ 'projectsId'
108− -> ProjectsSinksCreate'
109−projectsSinksCreate' pPscPayload_ pPscProjectsId_ =
110− ProjectsSinksCreate'
111− { _pscXgafv = Nothing
112− , _pscUploadProtocol = Nothing
113− , _pscPp = True
114− , _pscAccessToken = Nothing
115− , _pscUploadType = Nothing
116− , _pscPayload = pPscPayload_
117− , _pscBearerToken = Nothing
118− , _pscProjectsId = pPscProjectsId_
119− , _pscCallback = Nothing
120− }
121−
122−-- | V1 error format.
123−pscXgafv :: Lens' ProjectsSinksCreate' (Maybe Text)
124−pscXgafv = lens _pscXgafv (\ s a -> s{_pscXgafv = a})
125−
126−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
127−pscUploadProtocol :: Lens' ProjectsSinksCreate' (Maybe Text)
128−pscUploadProtocol
129− = lens _pscUploadProtocol
130− (\ s a -> s{_pscUploadProtocol = a})
131−
132−-- | Pretty-print response.
133−pscPp :: Lens' ProjectsSinksCreate' Bool
134−pscPp = lens _pscPp (\ s a -> s{_pscPp = a})
135−
136−-- | OAuth access token.
137−pscAccessToken :: Lens' ProjectsSinksCreate' (Maybe Text)
138−pscAccessToken
139− = lens _pscAccessToken
140− (\ s a -> s{_pscAccessToken = a})
141−
142−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
143−pscUploadType :: Lens' ProjectsSinksCreate' (Maybe Text)
144−pscUploadType
145− = lens _pscUploadType
146− (\ s a -> s{_pscUploadType = a})
147−
148−-- | Multipart request metadata.
149−pscPayload :: Lens' ProjectsSinksCreate' LogSink
150−pscPayload
151− = lens _pscPayload (\ s a -> s{_pscPayload = a})
152−
153−-- | OAuth bearer token.
154−pscBearerToken :: Lens' ProjectsSinksCreate' (Maybe Text)
155−pscBearerToken
156− = lens _pscBearerToken
157− (\ s a -> s{_pscBearerToken = a})
158−
159−-- | Part of \`projectName\`. The resource name of the project to which the
160−-- sink is bound.
161−pscProjectsId :: Lens' ProjectsSinksCreate' Text
162−pscProjectsId
163− = lens _pscProjectsId
164− (\ s a -> s{_pscProjectsId = a})
165−
166−-- | JSONP
167−pscCallback :: Lens' ProjectsSinksCreate' (Maybe Text)
168−pscCallback
169− = lens _pscCallback (\ s a -> s{_pscCallback = a})
170−
171−instance GoogleRequest ProjectsSinksCreate' where
172− type Rs ProjectsSinksCreate' = LogSink
173− requestClient ProjectsSinksCreate'{..}
174− = go _pscProjectsId _pscXgafv _pscUploadProtocol
175− (Just _pscPp)
176− _pscAccessToken
177− _pscUploadType
178− _pscBearerToken
179− _pscCallback
180− (Just AltJSON)
181− _pscPayload
182− loggingService
183− where go
184− = buildClient
185− (Proxy :: Proxy ProjectsSinksCreateResource)
186− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Delete.hsdeleted−185
@@ -1,185 +0,0 @@
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.Logging.Projects.Sinks.Delete
17−-- Copyright : (c) 2015 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−-- | Deletes a project sink. After deletion, no new log entries are written
24−-- to the destination.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsSinksDelete@.
27−module Network.Google.Resource.Logging.Projects.Sinks.Delete
28− (
29− -- * REST Resource
30− ProjectsSinksDeleteResource
31−
32− -- * Creating a Request
33− , projectsSinksDelete'
34− , ProjectsSinksDelete'
35−
36− -- * Request Lenses
37− , psdXgafv
38− , psdUploadProtocol
39− , psdPp
40− , psdAccessToken
41− , psdUploadType
42− , psdBearerToken
43− , psdProjectsId
44− , psdSinksId
45− , psdCallback
46− ) where
47−
48−import Network.Google.Logging.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @LoggingProjectsSinksDelete@ method which the
52−-- 'ProjectsSinksDelete'' request conforms to.
53−type ProjectsSinksDeleteResource =
54− "v1beta3" :>
55− "projects" :>
56− Capture "projectsId" Text :>
57− "sinks" :>
58− Capture "sinksId" Text :>
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 :> Delete '[JSON] Empty
67−
68−-- | Deletes a project sink. After deletion, no new log entries are written
69−-- to the destination.
70−--
71−-- /See:/ 'projectsSinksDelete'' smart constructor.
72−data ProjectsSinksDelete' = ProjectsSinksDelete'
73− { _psdXgafv :: !(Maybe Text)
74− , _psdUploadProtocol :: !(Maybe Text)
75− , _psdPp :: !Bool
76− , _psdAccessToken :: !(Maybe Text)
77− , _psdUploadType :: !(Maybe Text)
78− , _psdBearerToken :: !(Maybe Text)
79− , _psdProjectsId :: !Text
80− , _psdSinksId :: !Text
81− , _psdCallback :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'ProjectsSinksDelete'' with the minimum fields required to make a request.
85−--
86−-- Use one of the following lenses to modify other fields as desired:
87−--
88−-- * 'psdXgafv'
89−--
90−-- * 'psdUploadProtocol'
91−--
92−-- * 'psdPp'
93−--
94−-- * 'psdAccessToken'
95−--
96−-- * 'psdUploadType'
97−--
98−-- * 'psdBearerToken'
99−--
100−-- * 'psdProjectsId'
101−--
102−-- * 'psdSinksId'
103−--
104−-- * 'psdCallback'
105−projectsSinksDelete'
106− :: Text -- ^ 'projectsId'
107− -> Text -- ^ 'sinksId'
108− -> ProjectsSinksDelete'
109−projectsSinksDelete' pPsdProjectsId_ pPsdSinksId_ =
110− ProjectsSinksDelete'
111− { _psdXgafv = Nothing
112− , _psdUploadProtocol = Nothing
113− , _psdPp = True
114− , _psdAccessToken = Nothing
115− , _psdUploadType = Nothing
116− , _psdBearerToken = Nothing
117− , _psdProjectsId = pPsdProjectsId_
118− , _psdSinksId = pPsdSinksId_
119− , _psdCallback = Nothing
120− }
121−
122−-- | V1 error format.
123−psdXgafv :: Lens' ProjectsSinksDelete' (Maybe Text)
124−psdXgafv = lens _psdXgafv (\ s a -> s{_psdXgafv = a})
125−
126−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
127−psdUploadProtocol :: Lens' ProjectsSinksDelete' (Maybe Text)
128−psdUploadProtocol
129− = lens _psdUploadProtocol
130− (\ s a -> s{_psdUploadProtocol = a})
131−
132−-- | Pretty-print response.
133−psdPp :: Lens' ProjectsSinksDelete' Bool
134−psdPp = lens _psdPp (\ s a -> s{_psdPp = a})
135−
136−-- | OAuth access token.
137−psdAccessToken :: Lens' ProjectsSinksDelete' (Maybe Text)
138−psdAccessToken
139− = lens _psdAccessToken
140− (\ s a -> s{_psdAccessToken = a})
141−
142−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
143−psdUploadType :: Lens' ProjectsSinksDelete' (Maybe Text)
144−psdUploadType
145− = lens _psdUploadType
146− (\ s a -> s{_psdUploadType = a})
147−
148−-- | OAuth bearer token.
149−psdBearerToken :: Lens' ProjectsSinksDelete' (Maybe Text)
150−psdBearerToken
151− = lens _psdBearerToken
152− (\ s a -> s{_psdBearerToken = a})
153−
154−-- | Part of \`sinkName\`. The resource name of the project sink to delete.
155−psdProjectsId :: Lens' ProjectsSinksDelete' Text
156−psdProjectsId
157− = lens _psdProjectsId
158− (\ s a -> s{_psdProjectsId = a})
159−
160−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
161−psdSinksId :: Lens' ProjectsSinksDelete' Text
162−psdSinksId
163− = lens _psdSinksId (\ s a -> s{_psdSinksId = a})
164−
165−-- | JSONP
166−psdCallback :: Lens' ProjectsSinksDelete' (Maybe Text)
167−psdCallback
168− = lens _psdCallback (\ s a -> s{_psdCallback = a})
169−
170−instance GoogleRequest ProjectsSinksDelete' where
171− type Rs ProjectsSinksDelete' = Empty
172− requestClient ProjectsSinksDelete'{..}
173− = go _psdProjectsId _psdSinksId _psdXgafv
174− _psdUploadProtocol
175− (Just _psdPp)
176− _psdAccessToken
177− _psdUploadType
178− _psdBearerToken
179− _psdCallback
180− (Just AltJSON)
181− loggingService
182− where go
183− = buildClient
184− (Proxy :: Proxy ProjectsSinksDeleteResource)
185− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Get.hsdeleted−183
@@ -1,183 +0,0 @@
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.Logging.Projects.Sinks.Get
17−-- Copyright : (c) 2015 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 a project sink.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsSinksGet@.
26−module Network.Google.Resource.Logging.Projects.Sinks.Get
27− (
28− -- * REST Resource
29− ProjectsSinksGetResource
30−
31− -- * Creating a Request
32− , projectsSinksGet'
33− , ProjectsSinksGet'
34−
35− -- * Request Lenses
36− , psgXgafv
37− , psgUploadProtocol
38− , psgPp
39− , psgAccessToken
40− , psgUploadType
41− , psgBearerToken
42− , psgProjectsId
43− , psgSinksId
44− , psgCallback
45− ) where
46−
47−import Network.Google.Logging.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @LoggingProjectsSinksGet@ method which the
51−-- 'ProjectsSinksGet'' request conforms to.
52−type ProjectsSinksGetResource =
53− "v1beta3" :>
54− "projects" :>
55− Capture "projectsId" Text :>
56− "sinks" :>
57− Capture "sinksId" Text :>
58− QueryParam "$.xgafv" Text :>
59− QueryParam "upload_protocol" Text :>
60− QueryParam "pp" Bool :>
61− QueryParam "access_token" Text :>
62− QueryParam "uploadType" Text :>
63− QueryParam "bearer_token" Text :>
64− QueryParam "callback" Text :>
65− QueryParam "alt" AltJSON :> Get '[JSON] LogSink
66−
67−-- | Gets a project sink.
68−--
69−-- /See:/ 'projectsSinksGet'' smart constructor.
70−data ProjectsSinksGet' = ProjectsSinksGet'
71− { _psgXgafv :: !(Maybe Text)
72− , _psgUploadProtocol :: !(Maybe Text)
73− , _psgPp :: !Bool
74− , _psgAccessToken :: !(Maybe Text)
75− , _psgUploadType :: !(Maybe Text)
76− , _psgBearerToken :: !(Maybe Text)
77− , _psgProjectsId :: !Text
78− , _psgSinksId :: !Text
79− , _psgCallback :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'ProjectsSinksGet'' with the minimum fields required to make a request.
83−--
84−-- Use one of the following lenses to modify other fields as desired:
85−--
86−-- * 'psgXgafv'
87−--
88−-- * 'psgUploadProtocol'
89−--
90−-- * 'psgPp'
91−--
92−-- * 'psgAccessToken'
93−--
94−-- * 'psgUploadType'
95−--
96−-- * 'psgBearerToken'
97−--
98−-- * 'psgProjectsId'
99−--
100−-- * 'psgSinksId'
101−--
102−-- * 'psgCallback'
103−projectsSinksGet'
104− :: Text -- ^ 'projectsId'
105− -> Text -- ^ 'sinksId'
106− -> ProjectsSinksGet'
107−projectsSinksGet' pPsgProjectsId_ pPsgSinksId_ =
108− ProjectsSinksGet'
109− { _psgXgafv = Nothing
110− , _psgUploadProtocol = Nothing
111− , _psgPp = True
112− , _psgAccessToken = Nothing
113− , _psgUploadType = Nothing
114− , _psgBearerToken = Nothing
115− , _psgProjectsId = pPsgProjectsId_
116− , _psgSinksId = pPsgSinksId_
117− , _psgCallback = Nothing
118− }
119−
120−-- | V1 error format.
121−psgXgafv :: Lens' ProjectsSinksGet' (Maybe Text)
122−psgXgafv = lens _psgXgafv (\ s a -> s{_psgXgafv = a})
123−
124−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125−psgUploadProtocol :: Lens' ProjectsSinksGet' (Maybe Text)
126−psgUploadProtocol
127− = lens _psgUploadProtocol
128− (\ s a -> s{_psgUploadProtocol = a})
129−
130−-- | Pretty-print response.
131−psgPp :: Lens' ProjectsSinksGet' Bool
132−psgPp = lens _psgPp (\ s a -> s{_psgPp = a})
133−
134−-- | OAuth access token.
135−psgAccessToken :: Lens' ProjectsSinksGet' (Maybe Text)
136−psgAccessToken
137− = lens _psgAccessToken
138− (\ s a -> s{_psgAccessToken = a})
139−
140−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141−psgUploadType :: Lens' ProjectsSinksGet' (Maybe Text)
142−psgUploadType
143− = lens _psgUploadType
144− (\ s a -> s{_psgUploadType = a})
145−
146−-- | OAuth bearer token.
147−psgBearerToken :: Lens' ProjectsSinksGet' (Maybe Text)
148−psgBearerToken
149− = lens _psgBearerToken
150− (\ s a -> s{_psgBearerToken = a})
151−
152−-- | Part of \`sinkName\`. The resource name of the project sink to return.
153−psgProjectsId :: Lens' ProjectsSinksGet' Text
154−psgProjectsId
155− = lens _psgProjectsId
156− (\ s a -> s{_psgProjectsId = a})
157−
158−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
159−psgSinksId :: Lens' ProjectsSinksGet' Text
160−psgSinksId
161− = lens _psgSinksId (\ s a -> s{_psgSinksId = a})
162−
163−-- | JSONP
164−psgCallback :: Lens' ProjectsSinksGet' (Maybe Text)
165−psgCallback
166− = lens _psgCallback (\ s a -> s{_psgCallback = a})
167−
168−instance GoogleRequest ProjectsSinksGet' where
169− type Rs ProjectsSinksGet' = LogSink
170− requestClient ProjectsSinksGet'{..}
171− = go _psgProjectsId _psgSinksId _psgXgafv
172− _psgUploadProtocol
173− (Just _psgPp)
174− _psgAccessToken
175− _psgUploadType
176− _psgBearerToken
177− _psgCallback
178− (Just AltJSON)
179− loggingService
180− where go
181− = buildClient
182− (Proxy :: Proxy ProjectsSinksGetResource)
183− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/List.hsdeleted−171
@@ -1,171 +0,0 @@
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.Logging.Projects.Sinks.List
17−-- Copyright : (c) 2015 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−-- | Lists project sinks associated with a project.
24−--
25−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsSinksList@.
26−module Network.Google.Resource.Logging.Projects.Sinks.List
27− (
28− -- * REST Resource
29− ProjectsSinksListResource
30−
31− -- * Creating a Request
32− , projectsSinksList'
33− , ProjectsSinksList'
34−
35− -- * Request Lenses
36− , pslXgafv
37− , pslUploadProtocol
38− , pslPp
39− , pslAccessToken
40− , pslUploadType
41− , pslBearerToken
42− , pslProjectsId
43− , pslCallback
44− ) where
45−
46−import Network.Google.Logging.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @LoggingProjectsSinksList@ method which the
50−-- 'ProjectsSinksList'' request conforms to.
51−type ProjectsSinksListResource =
52− "v1beta3" :>
53− "projects" :>
54− Capture "projectsId" Text :>
55− "sinks" :>
56− QueryParam "$.xgafv" Text :>
57− QueryParam "upload_protocol" Text :>
58− QueryParam "pp" Bool :>
59− QueryParam "access_token" Text :>
60− QueryParam "uploadType" Text :>
61− QueryParam "bearer_token" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− Get '[JSON] ListSinksResponse
65−
66−-- | Lists project sinks associated with a project.
67−--
68−-- /See:/ 'projectsSinksList'' smart constructor.
69−data ProjectsSinksList' = ProjectsSinksList'
70− { _pslXgafv :: !(Maybe Text)
71− , _pslUploadProtocol :: !(Maybe Text)
72− , _pslPp :: !Bool
73− , _pslAccessToken :: !(Maybe Text)
74− , _pslUploadType :: !(Maybe Text)
75− , _pslBearerToken :: !(Maybe Text)
76− , _pslProjectsId :: !Text
77− , _pslCallback :: !(Maybe Text)
78− } deriving (Eq,Show,Data,Typeable,Generic)
79−
80−-- | Creates a value of 'ProjectsSinksList'' with the minimum fields required to make a request.
81−--
82−-- Use one of the following lenses to modify other fields as desired:
83−--
84−-- * 'pslXgafv'
85−--
86−-- * 'pslUploadProtocol'
87−--
88−-- * 'pslPp'
89−--
90−-- * 'pslAccessToken'
91−--
92−-- * 'pslUploadType'
93−--
94−-- * 'pslBearerToken'
95−--
96−-- * 'pslProjectsId'
97−--
98−-- * 'pslCallback'
99−projectsSinksList'
100− :: Text -- ^ 'projectsId'
101− -> ProjectsSinksList'
102−projectsSinksList' pPslProjectsId_ =
103− ProjectsSinksList'
104− { _pslXgafv = Nothing
105− , _pslUploadProtocol = Nothing
106− , _pslPp = True
107− , _pslAccessToken = Nothing
108− , _pslUploadType = Nothing
109− , _pslBearerToken = Nothing
110− , _pslProjectsId = pPslProjectsId_
111− , _pslCallback = Nothing
112− }
113−
114−-- | V1 error format.
115−pslXgafv :: Lens' ProjectsSinksList' (Maybe Text)
116−pslXgafv = lens _pslXgafv (\ s a -> s{_pslXgafv = a})
117−
118−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−pslUploadProtocol :: Lens' ProjectsSinksList' (Maybe Text)
120−pslUploadProtocol
121− = lens _pslUploadProtocol
122− (\ s a -> s{_pslUploadProtocol = a})
123−
124−-- | Pretty-print response.
125−pslPp :: Lens' ProjectsSinksList' Bool
126−pslPp = lens _pslPp (\ s a -> s{_pslPp = a})
127−
128−-- | OAuth access token.
129−pslAccessToken :: Lens' ProjectsSinksList' (Maybe Text)
130−pslAccessToken
131− = lens _pslAccessToken
132− (\ s a -> s{_pslAccessToken = a})
133−
134−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
135−pslUploadType :: Lens' ProjectsSinksList' (Maybe Text)
136−pslUploadType
137− = lens _pslUploadType
138− (\ s a -> s{_pslUploadType = a})
139−
140−-- | OAuth bearer token.
141−pslBearerToken :: Lens' ProjectsSinksList' (Maybe Text)
142−pslBearerToken
143− = lens _pslBearerToken
144− (\ s a -> s{_pslBearerToken = a})
145−
146−-- | Part of \`projectName\`. The project whose sinks are wanted.
147−pslProjectsId :: Lens' ProjectsSinksList' Text
148−pslProjectsId
149− = lens _pslProjectsId
150− (\ s a -> s{_pslProjectsId = a})
151−
152−-- | JSONP
153−pslCallback :: Lens' ProjectsSinksList' (Maybe Text)
154−pslCallback
155− = lens _pslCallback (\ s a -> s{_pslCallback = a})
156−
157−instance GoogleRequest ProjectsSinksList' where
158− type Rs ProjectsSinksList' = ListSinksResponse
159− requestClient ProjectsSinksList'{..}
160− = go _pslProjectsId _pslXgafv _pslUploadProtocol
161− (Just _pslPp)
162− _pslAccessToken
163− _pslUploadType
164− _pslBearerToken
165− _pslCallback
166− (Just AltJSON)
167− loggingService
168− where go
169− = buildClient
170− (Proxy :: Proxy ProjectsSinksListResource)
171− mempty
gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Update.hsdeleted−198
@@ -1,198 +0,0 @@
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.Logging.Projects.Sinks.Update
17−-- Copyright : (c) 2015 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 a project sink. If the sink does not exist, it is created. The
24−-- destination, filter, or both may be updated.
25−--
26−-- /See:/ <https://cloud.google.com/logging/docs/ Google Cloud Logging API Reference> for @LoggingProjectsSinksUpdate@.
27−module Network.Google.Resource.Logging.Projects.Sinks.Update
28− (
29− -- * REST Resource
30− ProjectsSinksUpdateResource
31−
32− -- * Creating a Request
33− , projectsSinksUpdate'
34− , ProjectsSinksUpdate'
35−
36− -- * Request Lenses
37− , psuXgafv
38− , psuUploadProtocol
39− , psuPp
40− , psuAccessToken
41− , psuUploadType
42− , psuPayload
43− , psuBearerToken
44− , psuProjectsId
45− , psuSinksId
46− , psuCallback
47− ) where
48−
49−import Network.Google.Logging.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @LoggingProjectsSinksUpdate@ method which the
53−-- 'ProjectsSinksUpdate'' request conforms to.
54−type ProjectsSinksUpdateResource =
55− "v1beta3" :>
56− "projects" :>
57− Capture "projectsId" Text :>
58− "sinks" :>
59− Capture "sinksId" Text :>
60− QueryParam "$.xgafv" Text :>
61− QueryParam "upload_protocol" Text :>
62− QueryParam "pp" Bool :>
63− QueryParam "access_token" Text :>
64− QueryParam "uploadType" Text :>
65− QueryParam "bearer_token" Text :>
66− QueryParam "callback" Text :>
67− QueryParam "alt" AltJSON :>
68− ReqBody '[JSON] LogSink :> Put '[JSON] LogSink
69−
70−-- | Updates a project sink. If the sink does not exist, it is created. The
71−-- destination, filter, or both may be updated.
72−--
73−-- /See:/ 'projectsSinksUpdate'' smart constructor.
74−data ProjectsSinksUpdate' = ProjectsSinksUpdate'
75− { _psuXgafv :: !(Maybe Text)
76− , _psuUploadProtocol :: !(Maybe Text)
77− , _psuPp :: !Bool
78− , _psuAccessToken :: !(Maybe Text)
79− , _psuUploadType :: !(Maybe Text)
80− , _psuPayload :: !LogSink
81− , _psuBearerToken :: !(Maybe Text)
82− , _psuProjectsId :: !Text
83− , _psuSinksId :: !Text
84− , _psuCallback :: !(Maybe Text)
85− } deriving (Eq,Show,Data,Typeable,Generic)
86−
87−-- | Creates a value of 'ProjectsSinksUpdate'' with the minimum fields required to make a request.
88−--
89−-- Use one of the following lenses to modify other fields as desired:
90−--
91−-- * 'psuXgafv'
92−--
93−-- * 'psuUploadProtocol'
94−--
95−-- * 'psuPp'
96−--
97−-- * 'psuAccessToken'
98−--
99−-- * 'psuUploadType'
100−--
101−-- * 'psuPayload'
102−--
103−-- * 'psuBearerToken'
104−--
105−-- * 'psuProjectsId'
106−--
107−-- * 'psuSinksId'
108−--
109−-- * 'psuCallback'
110−projectsSinksUpdate'
111− :: LogSink -- ^ 'payload'
112− -> Text -- ^ 'projectsId'
113− -> Text -- ^ 'sinksId'
114− -> ProjectsSinksUpdate'
115−projectsSinksUpdate' pPsuPayload_ pPsuProjectsId_ pPsuSinksId_ =
116− ProjectsSinksUpdate'
117− { _psuXgafv = Nothing
118− , _psuUploadProtocol = Nothing
119− , _psuPp = True
120− , _psuAccessToken = Nothing
121− , _psuUploadType = Nothing
122− , _psuPayload = pPsuPayload_
123− , _psuBearerToken = Nothing
124− , _psuProjectsId = pPsuProjectsId_
125− , _psuSinksId = pPsuSinksId_
126− , _psuCallback = Nothing
127− }
128−
129−-- | V1 error format.
130−psuXgafv :: Lens' ProjectsSinksUpdate' (Maybe Text)
131−psuXgafv = lens _psuXgafv (\ s a -> s{_psuXgafv = a})
132−
133−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
134−psuUploadProtocol :: Lens' ProjectsSinksUpdate' (Maybe Text)
135−psuUploadProtocol
136− = lens _psuUploadProtocol
137− (\ s a -> s{_psuUploadProtocol = a})
138−
139−-- | Pretty-print response.
140−psuPp :: Lens' ProjectsSinksUpdate' Bool
141−psuPp = lens _psuPp (\ s a -> s{_psuPp = a})
142−
143−-- | OAuth access token.
144−psuAccessToken :: Lens' ProjectsSinksUpdate' (Maybe Text)
145−psuAccessToken
146− = lens _psuAccessToken
147− (\ s a -> s{_psuAccessToken = a})
148−
149−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
150−psuUploadType :: Lens' ProjectsSinksUpdate' (Maybe Text)
151−psuUploadType
152− = lens _psuUploadType
153− (\ s a -> s{_psuUploadType = a})
154−
155−-- | Multipart request metadata.
156−psuPayload :: Lens' ProjectsSinksUpdate' LogSink
157−psuPayload
158− = lens _psuPayload (\ s a -> s{_psuPayload = a})
159−
160−-- | OAuth bearer token.
161−psuBearerToken :: Lens' ProjectsSinksUpdate' (Maybe Text)
162−psuBearerToken
163− = lens _psuBearerToken
164− (\ s a -> s{_psuBearerToken = a})
165−
166−-- | Part of \`sinkName\`. The resource name of the project sink to update.
167−psuProjectsId :: Lens' ProjectsSinksUpdate' Text
168−psuProjectsId
169− = lens _psuProjectsId
170− (\ s a -> s{_psuProjectsId = a})
171−
172−-- | Part of \`sinkName\`. See documentation of \`projectsId\`.
173−psuSinksId :: Lens' ProjectsSinksUpdate' Text
174−psuSinksId
175− = lens _psuSinksId (\ s a -> s{_psuSinksId = a})
176−
177−-- | JSONP
178−psuCallback :: Lens' ProjectsSinksUpdate' (Maybe Text)
179−psuCallback
180− = lens _psuCallback (\ s a -> s{_psuCallback = a})
181−
182−instance GoogleRequest ProjectsSinksUpdate' where
183− type Rs ProjectsSinksUpdate' = LogSink
184− requestClient ProjectsSinksUpdate'{..}
185− = go _psuProjectsId _psuSinksId _psuXgafv
186− _psuUploadProtocol
187− (Just _psuPp)
188− _psuAccessToken
189− _psuUploadType
190− _psuBearerToken
191− _psuCallback
192− (Just AltJSON)
193− _psuPayload
194− loggingService
195− where go
196− = buildClient
197− (Proxy :: Proxy ProjectsSinksUpdateResource)
198− mempty
gogol-logging/gogol-logging.cabal+1−21
@@ -20,7 +20,7 @@ description:
2020 /Warning:/ This is an experimental prototype/preview release which is still
2121 under exploratory development and not intended for public use, caveat emptor!
2222 .
23− This library is compatible with version @v1beta3@
23+ This library is compatible with version @v2beta1@
2424 of the API.
2525
2626source-repository head
@@ -36,26 +36,6 @@ library
3636 exposed-modules:
3737 Network.Google.Logging
3838 , Network.Google.Logging.Types
39− , Network.Google.Resource.Logging.Projects.LogServices.Indexes.List
40− , Network.Google.Resource.Logging.Projects.LogServices.List
41− , Network.Google.Resource.Logging.Projects.LogServices.Sinks.Create
42− , Network.Google.Resource.Logging.Projects.LogServices.Sinks.Delete
43− , Network.Google.Resource.Logging.Projects.LogServices.Sinks.Get
44− , Network.Google.Resource.Logging.Projects.LogServices.Sinks.List
45− , Network.Google.Resource.Logging.Projects.LogServices.Sinks.Update
46− , Network.Google.Resource.Logging.Projects.Logs.Delete
47− , Network.Google.Resource.Logging.Projects.Logs.Entries.Write
48− , Network.Google.Resource.Logging.Projects.Logs.List
49− , Network.Google.Resource.Logging.Projects.Logs.Sinks.Create
50− , Network.Google.Resource.Logging.Projects.Logs.Sinks.Delete
51− , Network.Google.Resource.Logging.Projects.Logs.Sinks.Get
52− , Network.Google.Resource.Logging.Projects.Logs.Sinks.List
53− , Network.Google.Resource.Logging.Projects.Logs.Sinks.Update
54− , Network.Google.Resource.Logging.Projects.Sinks.Create
55− , Network.Google.Resource.Logging.Projects.Sinks.Delete
56− , Network.Google.Resource.Logging.Projects.Sinks.Get
57− , Network.Google.Resource.Logging.Projects.Sinks.List
58− , Network.Google.Resource.Logging.Projects.Sinks.Update
5939
6040 other-modules:
6141 Network.Google.Logging.Types.Product
gogol-plus-domains/gen/Network/Google/PlusDomains.hs+33
@@ -114,6 +114,16 @@ module Network.Google.PlusDomains
114114 , commentPlusoners
115115 , cpTotalItems
116116
117+ -- ** CommentActorClientSpecificActorInfo
118+ , CommentActorClientSpecificActorInfo
119+ , commentActorClientSpecificActorInfo
120+ , cacsaiYouTubeActorInfo
121+
122+ -- ** ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
123+ , ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
124+ , activityObjectActorClientSpecificActorInfoYouTubeActorInfo
125+ , aoacsaiytaiChannelId
126+
117127 -- ** ActivityObjectPlusoners
118128 , ActivityObjectPlusoners
119129 , activityObjectPlusoners
@@ -162,6 +172,11 @@ module Network.Google.PlusDomains
162172 , cId
163173 , cDescription
164174
175+ -- ** ActivityActorClientSpecificActorInfo
176+ , ActivityActorClientSpecificActorInfo
177+ , activityActorClientSpecificActorInfo
178+ , aacsaiYouTubeActorInfo
179+
165180 -- ** Person
166181 , Person
167182 , person
@@ -228,6 +243,7 @@ module Network.Google.PlusDomains
228243 -- ** CommentActor
229244 , CommentActor
230245 , commentActor
246+ , caClientSpecificActorInfo
231247 , caImage
232248 , caURL
233249 , caDisplayName
@@ -252,6 +268,7 @@ module Network.Google.PlusDomains
252268 -- ** ActivityObjectActor
253269 , ActivityObjectActor
254270 , activityObjectActor
271+ , aoaClientSpecificActorInfo
255272 , aoaImage
256273 , aoaURL
257274 , aoaDisplayName
@@ -322,6 +339,11 @@ module Network.Google.PlusDomains
322339 , activityObjectActorImage
323340 , aoaiURL
324341
342+ -- ** CommentActorClientSpecificActorInfoYouTubeActorInfo
343+ , CommentActorClientSpecificActorInfoYouTubeActorInfo
344+ , commentActorClientSpecificActorInfoYouTubeActorInfo
345+ , cacsaiytaiChannelId
346+
325347 -- ** Media
326348 , Media
327349 , media
@@ -366,6 +388,11 @@ module Network.Google.PlusDomains
366388 , activityActorVerification
367389 , aavAdHocVerified
368390
391+ -- ** ActivityObjectActorClientSpecificActorInfo
392+ , ActivityObjectActorClientSpecificActorInfo
393+ , activityObjectActorClientSpecificActorInfo
394+ , aoacsaiYouTubeActorInfo
395+
369396 -- ** PeopleListCollection
370397 , PeopleListCollection (..)
371398
@@ -417,6 +444,11 @@ module Network.Google.PlusDomains
417444 , piURL
418445 , piIsDefault
419446
447+ -- ** ActivityActorClientSpecificActorInfoYouTubeActorInfo
448+ , ActivityActorClientSpecificActorInfoYouTubeActorInfo
449+ , activityActorClientSpecificActorInfoYouTubeActorInfo
450+ , aacsaiytaiChannelId
451+
420452 -- ** ActivityObjectStatusForViewer
421453 , ActivityObjectStatusForViewer
422454 , activityObjectStatusForViewer
@@ -556,6 +588,7 @@ module Network.Google.PlusDomains
556588 -- ** ActivityActor
557589 , ActivityActor
558590 , activityActor
591+ , aaClientSpecificActorInfo
559592 , aaImage
560593 , aaURL
561594 , aaName
gogol-plus-domains/gen/Network/Google/PlusDomains/Types.hs+33
@@ -55,6 +55,16 @@ module Network.Google.PlusDomains.Types
5555 , commentPlusoners
5656 , cpTotalItems
5757
58+ -- * CommentActorClientSpecificActorInfo
59+ , CommentActorClientSpecificActorInfo
60+ , commentActorClientSpecificActorInfo
61+ , cacsaiYouTubeActorInfo
62+
63+ -- * ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
64+ , ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
65+ , activityObjectActorClientSpecificActorInfoYouTubeActorInfo
66+ , aoacsaiytaiChannelId
67+
5868 -- * ActivityObjectPlusoners
5969 , ActivityObjectPlusoners
6070 , activityObjectPlusoners
@@ -103,6 +113,11 @@ module Network.Google.PlusDomains.Types
103113 , cId
104114 , cDescription
105115
116+ -- * ActivityActorClientSpecificActorInfo
117+ , ActivityActorClientSpecificActorInfo
118+ , activityActorClientSpecificActorInfo
119+ , aacsaiYouTubeActorInfo
120+
106121 -- * Person
107122 , Person
108123 , person
@@ -169,6 +184,7 @@ module Network.Google.PlusDomains.Types
169184 -- * CommentActor
170185 , CommentActor
171186 , commentActor
187+ , caClientSpecificActorInfo
172188 , caImage
173189 , caURL
174190 , caDisplayName
@@ -193,6 +209,7 @@ module Network.Google.PlusDomains.Types
193209 -- * ActivityObjectActor
194210 , ActivityObjectActor
195211 , activityObjectActor
212+ , aoaClientSpecificActorInfo
196213 , aoaImage
197214 , aoaURL
198215 , aoaDisplayName
@@ -263,6 +280,11 @@ module Network.Google.PlusDomains.Types
263280 , activityObjectActorImage
264281 , aoaiURL
265282
283+ -- * CommentActorClientSpecificActorInfoYouTubeActorInfo
284+ , CommentActorClientSpecificActorInfoYouTubeActorInfo
285+ , commentActorClientSpecificActorInfoYouTubeActorInfo
286+ , cacsaiytaiChannelId
287+
266288 -- * Media
267289 , Media
268290 , media
@@ -307,6 +329,11 @@ module Network.Google.PlusDomains.Types
307329 , activityActorVerification
308330 , aavAdHocVerified
309331
332+ -- * ActivityObjectActorClientSpecificActorInfo
333+ , ActivityObjectActorClientSpecificActorInfo
334+ , activityObjectActorClientSpecificActorInfo
335+ , aoacsaiYouTubeActorInfo
336+
310337 -- * PeopleListCollection
311338 , PeopleListCollection (..)
312339
@@ -358,6 +385,11 @@ module Network.Google.PlusDomains.Types
358385 , piURL
359386 , piIsDefault
360387
388+ -- * ActivityActorClientSpecificActorInfoYouTubeActorInfo
389+ , ActivityActorClientSpecificActorInfoYouTubeActorInfo
390+ , activityActorClientSpecificActorInfoYouTubeActorInfo
391+ , aacsaiytaiChannelId
392+
361393 -- * ActivityObjectStatusForViewer
362394 , ActivityObjectStatusForViewer
363395 , activityObjectStatusForViewer
@@ -497,6 +529,7 @@ module Network.Google.PlusDomains.Types
497529 -- * ActivityActor
498530 , ActivityActor
499531 , activityActor
532+ , aaClientSpecificActorInfo
500533 , aaImage
501534 , aaURL
502535 , aaName
gogol-plus-domains/gen/Network/Google/PlusDomains/Types/Product.hs+323−27
@@ -214,6 +214,91 @@ instance ToJSON CommentPlusoners where
214214 = object
215215 (catMaybes [("totalItems" .=) <$> _cpTotalItems])
216216
217+-- | Actor info specific to particular clients.
218+--
219+-- /See:/ 'commentActorClientSpecificActorInfo' smart constructor.
220+newtype CommentActorClientSpecificActorInfo = CommentActorClientSpecificActorInfo
221+ { _cacsaiYouTubeActorInfo :: Maybe CommentActorClientSpecificActorInfoYouTubeActorInfo
222+ } deriving (Eq,Show,Data,Typeable,Generic)
223+
224+-- | Creates a value of 'CommentActorClientSpecificActorInfo' with the minimum fields required to make a request.
225+--
226+-- Use one of the following lenses to modify other fields as desired:
227+--
228+-- * 'cacsaiYouTubeActorInfo'
229+commentActorClientSpecificActorInfo
230+ :: CommentActorClientSpecificActorInfo
231+commentActorClientSpecificActorInfo =
232+ CommentActorClientSpecificActorInfo
233+ { _cacsaiYouTubeActorInfo = Nothing
234+ }
235+
236+-- | Actor info specific to YouTube clients.
237+cacsaiYouTubeActorInfo :: Lens' CommentActorClientSpecificActorInfo (Maybe CommentActorClientSpecificActorInfoYouTubeActorInfo)
238+cacsaiYouTubeActorInfo
239+ = lens _cacsaiYouTubeActorInfo
240+ (\ s a -> s{_cacsaiYouTubeActorInfo = a})
241+
242+instance FromJSON CommentActorClientSpecificActorInfo
243+ where
244+ parseJSON
245+ = withObject "CommentActorClientSpecificActorInfo"
246+ (\ o ->
247+ CommentActorClientSpecificActorInfo <$>
248+ (o .:? "youtubeActorInfo"))
249+
250+instance ToJSON CommentActorClientSpecificActorInfo
251+ where
252+ toJSON CommentActorClientSpecificActorInfo{..}
253+ = object
254+ (catMaybes
255+ [("youtubeActorInfo" .=) <$>
256+ _cacsaiYouTubeActorInfo])
257+
258+-- | Actor info specific to YouTube clients.
259+--
260+-- /See:/ 'activityObjectActorClientSpecificActorInfoYouTubeActorInfo' smart constructor.
261+newtype ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo = ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
262+ { _aoacsaiytaiChannelId :: Maybe Text
263+ } deriving (Eq,Show,Data,Typeable,Generic)
264+
265+-- | Creates a value of 'ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo' with the minimum fields required to make a request.
266+--
267+-- Use one of the following lenses to modify other fields as desired:
268+--
269+-- * 'aoacsaiytaiChannelId'
270+activityObjectActorClientSpecificActorInfoYouTubeActorInfo
271+ :: ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
272+activityObjectActorClientSpecificActorInfoYouTubeActorInfo =
273+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
274+ { _aoacsaiytaiChannelId = Nothing
275+ }
276+
277+-- | ID of the YouTube channel owned by the Actor.
278+aoacsaiytaiChannelId :: Lens' ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo (Maybe Text)
279+aoacsaiytaiChannelId
280+ = lens _aoacsaiytaiChannelId
281+ (\ s a -> s{_aoacsaiytaiChannelId = a})
282+
283+instance FromJSON
284+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
285+ where
286+ parseJSON
287+ = withObject
288+ "ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo"
289+ (\ o ->
290+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
291+ <$> (o .:? "channelId"))
292+
293+instance ToJSON
294+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
295+ where
296+ toJSON
297+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo{..}
298+ = object
299+ (catMaybes
300+ [("channelId" .=) <$> _aoacsaiytaiChannelId])
301+
217302-- | People who +1\'d this activity.
218303--
219304-- /See:/ 'activityObjectPlusoners' smart constructor.
@@ -610,6 +695,47 @@ instance ToJSON Circle where
610695 ("id" .=) <$> _cId,
611696 ("description" .=) <$> _cDescription])
612697
698+-- | Actor info specific to particular clients.
699+--
700+-- /See:/ 'activityActorClientSpecificActorInfo' smart constructor.
701+newtype ActivityActorClientSpecificActorInfo = ActivityActorClientSpecificActorInfo
702+ { _aacsaiYouTubeActorInfo :: Maybe ActivityActorClientSpecificActorInfoYouTubeActorInfo
703+ } deriving (Eq,Show,Data,Typeable,Generic)
704+
705+-- | Creates a value of 'ActivityActorClientSpecificActorInfo' with the minimum fields required to make a request.
706+--
707+-- Use one of the following lenses to modify other fields as desired:
708+--
709+-- * 'aacsaiYouTubeActorInfo'
710+activityActorClientSpecificActorInfo
711+ :: ActivityActorClientSpecificActorInfo
712+activityActorClientSpecificActorInfo =
713+ ActivityActorClientSpecificActorInfo
714+ { _aacsaiYouTubeActorInfo = Nothing
715+ }
716+
717+-- | Actor info specific to YouTube clients.
718+aacsaiYouTubeActorInfo :: Lens' ActivityActorClientSpecificActorInfo (Maybe ActivityActorClientSpecificActorInfoYouTubeActorInfo)
719+aacsaiYouTubeActorInfo
720+ = lens _aacsaiYouTubeActorInfo
721+ (\ s a -> s{_aacsaiYouTubeActorInfo = a})
722+
723+instance FromJSON
724+ ActivityActorClientSpecificActorInfo where
725+ parseJSON
726+ = withObject "ActivityActorClientSpecificActorInfo"
727+ (\ o ->
728+ ActivityActorClientSpecificActorInfo <$>
729+ (o .:? "youtubeActorInfo"))
730+
731+instance ToJSON ActivityActorClientSpecificActorInfo
732+ where
733+ toJSON ActivityActorClientSpecificActorInfo{..}
734+ = object
735+ (catMaybes
736+ [("youtubeActorInfo" .=) <$>
737+ _aacsaiYouTubeActorInfo])
738+
613739--
614740-- /See:/ 'person' smart constructor.
615741data Person = Person
@@ -1206,17 +1332,20 @@ instance ToJSON ActivityObjectAttachmentsItemImage
12061332--
12071333-- /See:/ 'commentActor' smart constructor.
12081334data CommentActor = CommentActor
1209− { _caImage :: !(Maybe CommentActorImage)
1210− , _caURL :: !(Maybe Text)
1211− , _caDisplayName :: !(Maybe Text)
1212− , _caId :: !(Maybe Text)
1213− , _caVerification :: !(Maybe CommentActorVerification)
1335+ { _caClientSpecificActorInfo :: !(Maybe CommentActorClientSpecificActorInfo)
1336+ , _caImage :: !(Maybe CommentActorImage)
1337+ , _caURL :: !(Maybe Text)
1338+ , _caDisplayName :: !(Maybe Text)
1339+ , _caId :: !(Maybe Text)
1340+ , _caVerification :: !(Maybe CommentActorVerification)
12141341 } deriving (Eq,Show,Data,Typeable,Generic)
12151342
12161343-- | Creates a value of 'CommentActor' with the minimum fields required to make a request.
12171344--
12181345-- Use one of the following lenses to modify other fields as desired:
12191346--
1347+-- * 'caClientSpecificActorInfo'
1348+--
12201349-- * 'caImage'
12211350--
12221351-- * 'caURL'
@@ -1230,13 +1359,20 @@ commentActor
12301359 :: CommentActor
12311360commentActor =
12321361 CommentActor
1233− { _caImage = Nothing
1362+ { _caClientSpecificActorInfo = Nothing
1363+ , _caImage = Nothing
12341364 , _caURL = Nothing
12351365 , _caDisplayName = Nothing
12361366 , _caId = Nothing
12371367 , _caVerification = Nothing
12381368 }
12391369
1370+-- | Actor info specific to particular clients.
1371+caClientSpecificActorInfo :: Lens' CommentActor (Maybe CommentActorClientSpecificActorInfo)
1372+caClientSpecificActorInfo
1373+ = lens _caClientSpecificActorInfo
1374+ (\ s a -> s{_caClientSpecificActorInfo = a})
1375+
12401376-- | The image representation of this actor.
12411377caImage :: Lens' CommentActor (Maybe CommentActorImage)
12421378caImage = lens _caImage (\ s a -> s{_caImage = a})
@@ -1266,8 +1402,9 @@ instance FromJSON CommentActor where
12661402 = withObject "CommentActor"
12671403 (\ o ->
12681404 CommentActor <$>
1269− (o .:? "image") <*> (o .:? "url") <*>
1270− (o .:? "displayName")
1405+ (o .:? "clientSpecificActorInfo") <*> (o .:? "image")
1406+ <*> (o .:? "url")
1407+ <*> (o .:? "displayName")
12711408 <*> (o .:? "id")
12721409 <*> (o .:? "verification"))
12731410
@@ -1275,7 +1412,9 @@ instance ToJSON CommentActor where
12751412 toJSON CommentActor{..}
12761413 = object
12771414 (catMaybes
1278− [("image" .=) <$> _caImage, ("url" .=) <$> _caURL,
1415+ [("clientSpecificActorInfo" .=) <$>
1416+ _caClientSpecificActorInfo,
1417+ ("image" .=) <$> _caImage, ("url" .=) <$> _caURL,
12791418 ("displayName" .=) <$> _caDisplayName,
12801419 ("id" .=) <$> _caId,
12811420 ("verification" .=) <$> _caVerification])
@@ -1440,17 +1579,20 @@ instance ToJSON ActivityObject where
14401579--
14411580-- /See:/ 'activityObjectActor' smart constructor.
14421581data ActivityObjectActor = ActivityObjectActor
1443− { _aoaImage :: !(Maybe ActivityObjectActorImage)
1444− , _aoaURL :: !(Maybe Text)
1445− , _aoaDisplayName :: !(Maybe Text)
1446− , _aoaId :: !(Maybe Text)
1447− , _aoaVerification :: !(Maybe ActivityObjectActorVerification)
1582+ { _aoaClientSpecificActorInfo :: !(Maybe ActivityObjectActorClientSpecificActorInfo)
1583+ , _aoaImage :: !(Maybe ActivityObjectActorImage)
1584+ , _aoaURL :: !(Maybe Text)
1585+ , _aoaDisplayName :: !(Maybe Text)
1586+ , _aoaId :: !(Maybe Text)
1587+ , _aoaVerification :: !(Maybe ActivityObjectActorVerification)
14481588 } deriving (Eq,Show,Data,Typeable,Generic)
14491589
14501590-- | Creates a value of 'ActivityObjectActor' with the minimum fields required to make a request.
14511591--
14521592-- Use one of the following lenses to modify other fields as desired:
14531593--
1594+-- * 'aoaClientSpecificActorInfo'
1595+--
14541596-- * 'aoaImage'
14551597--
14561598-- * 'aoaURL'
@@ -1464,13 +1606,20 @@ activityObjectActor
14641606 :: ActivityObjectActor
14651607activityObjectActor =
14661608 ActivityObjectActor
1467− { _aoaImage = Nothing
1609+ { _aoaClientSpecificActorInfo = Nothing
1610+ , _aoaImage = Nothing
14681611 , _aoaURL = Nothing
14691612 , _aoaDisplayName = Nothing
14701613 , _aoaId = Nothing
14711614 , _aoaVerification = Nothing
14721615 }
14731616
1617+-- | Actor info specific to particular clients.
1618+aoaClientSpecificActorInfo :: Lens' ActivityObjectActor (Maybe ActivityObjectActorClientSpecificActorInfo)
1619+aoaClientSpecificActorInfo
1620+ = lens _aoaClientSpecificActorInfo
1621+ (\ s a -> s{_aoaClientSpecificActorInfo = a})
1622+
14741623-- | The image representation of the original actor.
14751624aoaImage :: Lens' ActivityObjectActor (Maybe ActivityObjectActorImage)
14761625aoaImage = lens _aoaImage (\ s a -> s{_aoaImage = a})
@@ -1500,8 +1649,9 @@ instance FromJSON ActivityObjectActor where
15001649 = withObject "ActivityObjectActor"
15011650 (\ o ->
15021651 ActivityObjectActor <$>
1503− (o .:? "image") <*> (o .:? "url") <*>
1504− (o .:? "displayName")
1652+ (o .:? "clientSpecificActorInfo") <*> (o .:? "image")
1653+ <*> (o .:? "url")
1654+ <*> (o .:? "displayName")
15051655 <*> (o .:? "id")
15061656 <*> (o .:? "verification"))
15071657
@@ -1509,7 +1659,9 @@ instance ToJSON ActivityObjectActor where
15091659 toJSON ActivityObjectActor{..}
15101660 = object
15111661 (catMaybes
1512− [("image" .=) <$> _aoaImage, ("url" .=) <$> _aoaURL,
1662+ [("clientSpecificActorInfo" .=) <$>
1663+ _aoaClientSpecificActorInfo,
1664+ ("image" .=) <$> _aoaImage, ("url" .=) <$> _aoaURL,
15131665 ("displayName" .=) <$> _aoaDisplayName,
15141666 ("id" .=) <$> _aoaId,
15151667 ("verification" .=) <$> _aoaVerification])
@@ -2010,6 +2162,50 @@ instance ToJSON ActivityObjectActorImage where
20102162 toJSON ActivityObjectActorImage{..}
20112163 = object (catMaybes [("url" .=) <$> _aoaiURL])
20122164
2165+-- | Actor info specific to YouTube clients.
2166+--
2167+-- /See:/ 'commentActorClientSpecificActorInfoYouTubeActorInfo' smart constructor.
2168+newtype CommentActorClientSpecificActorInfoYouTubeActorInfo = CommentActorClientSpecificActorInfoYouTubeActorInfo
2169+ { _cacsaiytaiChannelId :: Maybe Text
2170+ } deriving (Eq,Show,Data,Typeable,Generic)
2171+
2172+-- | Creates a value of 'CommentActorClientSpecificActorInfoYouTubeActorInfo' with the minimum fields required to make a request.
2173+--
2174+-- Use one of the following lenses to modify other fields as desired:
2175+--
2176+-- * 'cacsaiytaiChannelId'
2177+commentActorClientSpecificActorInfoYouTubeActorInfo
2178+ :: CommentActorClientSpecificActorInfoYouTubeActorInfo
2179+commentActorClientSpecificActorInfoYouTubeActorInfo =
2180+ CommentActorClientSpecificActorInfoYouTubeActorInfo
2181+ { _cacsaiytaiChannelId = Nothing
2182+ }
2183+
2184+-- | ID of the YouTube channel owned by the Actor.
2185+cacsaiytaiChannelId :: Lens' CommentActorClientSpecificActorInfoYouTubeActorInfo (Maybe Text)
2186+cacsaiytaiChannelId
2187+ = lens _cacsaiytaiChannelId
2188+ (\ s a -> s{_cacsaiytaiChannelId = a})
2189+
2190+instance FromJSON
2191+ CommentActorClientSpecificActorInfoYouTubeActorInfo
2192+ where
2193+ parseJSON
2194+ = withObject
2195+ "CommentActorClientSpecificActorInfoYouTubeActorInfo"
2196+ (\ o ->
2197+ CommentActorClientSpecificActorInfoYouTubeActorInfo
2198+ <$> (o .:? "channelId"))
2199+
2200+instance ToJSON
2201+ CommentActorClientSpecificActorInfoYouTubeActorInfo
2202+ where
2203+ toJSON
2204+ CommentActorClientSpecificActorInfoYouTubeActorInfo{..}
2205+ = object
2206+ (catMaybes
2207+ [("channelId" .=) <$> _cacsaiytaiChannelId])
2208+
20132209--
20142210-- /See:/ 'media' smart constructor.
20152211data Media = Media
@@ -2362,6 +2558,48 @@ instance ToJSON ActivityActorVerification where
23622558 (catMaybes
23632559 [("adHocVerified" .=) <$> _aavAdHocVerified])
23642560
2561+-- | Actor info specific to particular clients.
2562+--
2563+-- /See:/ 'activityObjectActorClientSpecificActorInfo' smart constructor.
2564+newtype ActivityObjectActorClientSpecificActorInfo = ActivityObjectActorClientSpecificActorInfo
2565+ { _aoacsaiYouTubeActorInfo :: Maybe ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
2566+ } deriving (Eq,Show,Data,Typeable,Generic)
2567+
2568+-- | Creates a value of 'ActivityObjectActorClientSpecificActorInfo' with the minimum fields required to make a request.
2569+--
2570+-- Use one of the following lenses to modify other fields as desired:
2571+--
2572+-- * 'aoacsaiYouTubeActorInfo'
2573+activityObjectActorClientSpecificActorInfo
2574+ :: ActivityObjectActorClientSpecificActorInfo
2575+activityObjectActorClientSpecificActorInfo =
2576+ ActivityObjectActorClientSpecificActorInfo
2577+ { _aoacsaiYouTubeActorInfo = Nothing
2578+ }
2579+
2580+-- | Actor info specific to YouTube clients.
2581+aoacsaiYouTubeActorInfo :: Lens' ActivityObjectActorClientSpecificActorInfo (Maybe ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo)
2582+aoacsaiYouTubeActorInfo
2583+ = lens _aoacsaiYouTubeActorInfo
2584+ (\ s a -> s{_aoacsaiYouTubeActorInfo = a})
2585+
2586+instance FromJSON
2587+ ActivityObjectActorClientSpecificActorInfo where
2588+ parseJSON
2589+ = withObject
2590+ "ActivityObjectActorClientSpecificActorInfo"
2591+ (\ o ->
2592+ ActivityObjectActorClientSpecificActorInfo <$>
2593+ (o .:? "youtubeActorInfo"))
2594+
2595+instance ToJSON
2596+ ActivityObjectActorClientSpecificActorInfo where
2597+ toJSON ActivityObjectActorClientSpecificActorInfo{..}
2598+ = object
2599+ (catMaybes
2600+ [("youtubeActorInfo" .=) <$>
2601+ _aoacsaiYouTubeActorInfo])
2602+
23652603--
23662604-- /See:/ 'activityObjectAttachmentsItem' smart constructor.
23672605data ActivityObjectAttachmentsItem = ActivityObjectAttachmentsItem
@@ -2809,6 +3047,50 @@ instance ToJSON PersonImage where
28093047 [("url" .=) <$> _piURL,
28103048 ("isDefault" .=) <$> _piIsDefault])
28113049
3050+-- | Actor info specific to YouTube clients.
3051+--
3052+-- /See:/ 'activityActorClientSpecificActorInfoYouTubeActorInfo' smart constructor.
3053+newtype ActivityActorClientSpecificActorInfoYouTubeActorInfo = ActivityActorClientSpecificActorInfoYouTubeActorInfo
3054+ { _aacsaiytaiChannelId :: Maybe Text
3055+ } deriving (Eq,Show,Data,Typeable,Generic)
3056+
3057+-- | Creates a value of 'ActivityActorClientSpecificActorInfoYouTubeActorInfo' with the minimum fields required to make a request.
3058+--
3059+-- Use one of the following lenses to modify other fields as desired:
3060+--
3061+-- * 'aacsaiytaiChannelId'
3062+activityActorClientSpecificActorInfoYouTubeActorInfo
3063+ :: ActivityActorClientSpecificActorInfoYouTubeActorInfo
3064+activityActorClientSpecificActorInfoYouTubeActorInfo =
3065+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3066+ { _aacsaiytaiChannelId = Nothing
3067+ }
3068+
3069+-- | ID of the YouTube channel owned by the Actor.
3070+aacsaiytaiChannelId :: Lens' ActivityActorClientSpecificActorInfoYouTubeActorInfo (Maybe Text)
3071+aacsaiytaiChannelId
3072+ = lens _aacsaiytaiChannelId
3073+ (\ s a -> s{_aacsaiytaiChannelId = a})
3074+
3075+instance FromJSON
3076+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3077+ where
3078+ parseJSON
3079+ = withObject
3080+ "ActivityActorClientSpecificActorInfoYouTubeActorInfo"
3081+ (\ o ->
3082+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3083+ <$> (o .:? "channelId"))
3084+
3085+instance ToJSON
3086+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3087+ where
3088+ toJSON
3089+ ActivityActorClientSpecificActorInfoYouTubeActorInfo{..}
3090+ = object
3091+ (catMaybes
3092+ [("channelId" .=) <$> _aacsaiytaiChannelId])
3093+
28123094-- | Status of the activity as seen by the viewer.
28133095--
28143096-- /See:/ 'activityObjectStatusForViewer' smart constructor.
@@ -4039,18 +4321,21 @@ instance ToJSON MediaExif where
40394321--
40404322-- /See:/ 'activityActor' smart constructor.
40414323data ActivityActor = ActivityActor
4042− { _aaImage :: !(Maybe ActivityActorImage)
4043− , _aaURL :: !(Maybe Text)
4044− , _aaName :: !(Maybe ActivityActorName)
4045− , _aaDisplayName :: !(Maybe Text)
4046− , _aaId :: !(Maybe Text)
4047− , _aaVerification :: !(Maybe ActivityActorVerification)
4324+ { _aaClientSpecificActorInfo :: !(Maybe ActivityActorClientSpecificActorInfo)
4325+ , _aaImage :: !(Maybe ActivityActorImage)
4326+ , _aaURL :: !(Maybe Text)
4327+ , _aaName :: !(Maybe ActivityActorName)
4328+ , _aaDisplayName :: !(Maybe Text)
4329+ , _aaId :: !(Maybe Text)
4330+ , _aaVerification :: !(Maybe ActivityActorVerification)
40484331 } deriving (Eq,Show,Data,Typeable,Generic)
40494332
40504333-- | Creates a value of 'ActivityActor' with the minimum fields required to make a request.
40514334--
40524335-- Use one of the following lenses to modify other fields as desired:
40534336--
4337+-- * 'aaClientSpecificActorInfo'
4338+--
40544339-- * 'aaImage'
40554340--
40564341-- * 'aaURL'
@@ -4066,7 +4351,8 @@ activityActor
40664351 :: ActivityActor
40674352activityActor =
40684353 ActivityActor
4069− { _aaImage = Nothing
4354+ { _aaClientSpecificActorInfo = Nothing
4355+ , _aaImage = Nothing
40704356 , _aaURL = Nothing
40714357 , _aaName = Nothing
40724358 , _aaDisplayName = Nothing
@@ -4074,6 +4360,12 @@ activityActor =
40744360 , _aaVerification = Nothing
40754361 }
40764362
4363+-- | Actor info specific to particular clients.
4364+aaClientSpecificActorInfo :: Lens' ActivityActor (Maybe ActivityActorClientSpecificActorInfo)
4365+aaClientSpecificActorInfo
4366+ = lens _aaClientSpecificActorInfo
4367+ (\ s a -> s{_aaClientSpecificActorInfo = a})
4368+
40774369-- | The image representation of the actor.
40784370aaImage :: Lens' ActivityActor (Maybe ActivityActorImage)
40794371aaImage = lens _aaImage (\ s a -> s{_aaImage = a})
@@ -4107,7 +4399,9 @@ instance FromJSON ActivityActor where
41074399 = withObject "ActivityActor"
41084400 (\ o ->
41094401 ActivityActor <$>
4110− (o .:? "image") <*> (o .:? "url") <*> (o .:? "name")
4402+ (o .:? "clientSpecificActorInfo") <*> (o .:? "image")
4403+ <*> (o .:? "url")
4404+ <*> (o .:? "name")
41114405 <*> (o .:? "displayName")
41124406 <*> (o .:? "id")
41134407 <*> (o .:? "verification"))
@@ -4116,7 +4410,9 @@ instance ToJSON ActivityActor where
41164410 toJSON ActivityActor{..}
41174411 = object
41184412 (catMaybes
4119− [("image" .=) <$> _aaImage, ("url" .=) <$> _aaURL,
4413+ [("clientSpecificActorInfo" .=) <$>
4414+ _aaClientSpecificActorInfo,
4415+ ("image" .=) <$> _aaImage, ("url" .=) <$> _aaURL,
41204416 ("name" .=) <$> _aaName,
41214417 ("displayName" .=) <$> _aaDisplayName,
41224418 ("id" .=) <$> _aaId,
gogol-plus/gen/Network/Google/Plus.hs+33
@@ -78,6 +78,16 @@ module Network.Google.Plus
7878 , commentPlusoners
7979 , cpTotalItems
8080
81+ -- ** CommentActorClientSpecificActorInfo
82+ , CommentActorClientSpecificActorInfo
83+ , commentActorClientSpecificActorInfo
84+ , cacsaiYouTubeActorInfo
85+
86+ -- ** ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
87+ , ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
88+ , activityObjectActorClientSpecificActorInfoYouTubeActorInfo
89+ , aoacsaiytaiChannelId
90+
8191 -- ** ActivityObjectPlusoners
8292 , ActivityObjectPlusoners
8393 , activityObjectPlusoners
@@ -121,6 +131,11 @@ module Network.Google.Plus
121131 , ppliValue
122132 , ppliPrimary
123133
134+ -- ** ActivityActorClientSpecificActorInfo
135+ , ActivityActorClientSpecificActorInfo
136+ , activityActorClientSpecificActorInfo
137+ , aacsaiYouTubeActorInfo
138+
124139 -- ** Person
125140 , Person
126141 , person
@@ -166,6 +181,7 @@ module Network.Google.Plus
166181 -- ** CommentActor
167182 , CommentActor
168183 , commentActor
184+ , caClientSpecificActorInfo
169185 , caImage
170186 , caURL
171187 , caDisplayName
@@ -200,6 +216,7 @@ module Network.Google.Plus
200216 -- ** ActivityObjectActor
201217 , ActivityObjectActor
202218 , activityObjectActor
219+ , aoaClientSpecificActorInfo
203220 , aoaImage
204221 , aoaURL
205222 , aoaDisplayName
@@ -251,6 +268,11 @@ module Network.Google.Plus
251268 , activityObjectActorImage
252269 , aoaiURL
253270
271+ -- ** CommentActorClientSpecificActorInfoYouTubeActorInfo
272+ , CommentActorClientSpecificActorInfoYouTubeActorInfo
273+ , commentActorClientSpecificActorInfoYouTubeActorInfo
274+ , cacsaiytaiChannelId
275+
254276 -- ** PeopleListOrderBy
255277 , PeopleListOrderBy (..)
256278
@@ -327,6 +349,11 @@ module Network.Google.Plus
327349 , isDescription
328350 , isBirthDate
329351
352+ -- ** ActivityObjectActorClientSpecificActorInfo
353+ , ActivityObjectActorClientSpecificActorInfo
354+ , activityObjectActorClientSpecificActorInfo
355+ , aoacsaiYouTubeActorInfo
356+
330357 -- ** PeopleListCollection
331358 , PeopleListCollection (..)
332359
@@ -377,6 +404,11 @@ module Network.Google.Plus
377404 , piURL
378405 , piIsDefault
379406
407+ -- ** ActivityActorClientSpecificActorInfoYouTubeActorInfo
408+ , ActivityActorClientSpecificActorInfoYouTubeActorInfo
409+ , activityActorClientSpecificActorInfoYouTubeActorInfo
410+ , aacsaiytaiChannelId
411+
380412 -- ** PlusACLentryResource
381413 , PlusACLentryResource
382414 , plusACLentryResource
@@ -502,6 +534,7 @@ module Network.Google.Plus
502534 -- ** ActivityActor
503535 , ActivityActor
504536 , activityActor
537+ , aaClientSpecificActorInfo
505538 , aaImage
506539 , aaURL
507540 , aaName
gogol-plus/gen/Network/Google/Plus/Types.hs+33
@@ -40,6 +40,16 @@ module Network.Google.Plus.Types
4040 , commentPlusoners
4141 , cpTotalItems
4242
43+ -- * CommentActorClientSpecificActorInfo
44+ , CommentActorClientSpecificActorInfo
45+ , commentActorClientSpecificActorInfo
46+ , cacsaiYouTubeActorInfo
47+
48+ -- * ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
49+ , ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
50+ , activityObjectActorClientSpecificActorInfoYouTubeActorInfo
51+ , aoacsaiytaiChannelId
52+
4353 -- * ActivityObjectPlusoners
4454 , ActivityObjectPlusoners
4555 , activityObjectPlusoners
@@ -83,6 +93,11 @@ module Network.Google.Plus.Types
8393 , ppliValue
8494 , ppliPrimary
8595
96+ -- * ActivityActorClientSpecificActorInfo
97+ , ActivityActorClientSpecificActorInfo
98+ , activityActorClientSpecificActorInfo
99+ , aacsaiYouTubeActorInfo
100+
86101 -- * Person
87102 , Person
88103 , person
@@ -128,6 +143,7 @@ module Network.Google.Plus.Types
128143 -- * CommentActor
129144 , CommentActor
130145 , commentActor
146+ , caClientSpecificActorInfo
131147 , caImage
132148 , caURL
133149 , caDisplayName
@@ -162,6 +178,7 @@ module Network.Google.Plus.Types
162178 -- * ActivityObjectActor
163179 , ActivityObjectActor
164180 , activityObjectActor
181+ , aoaClientSpecificActorInfo
165182 , aoaImage
166183 , aoaURL
167184 , aoaDisplayName
@@ -213,6 +230,11 @@ module Network.Google.Plus.Types
213230 , activityObjectActorImage
214231 , aoaiURL
215232
233+ -- * CommentActorClientSpecificActorInfoYouTubeActorInfo
234+ , CommentActorClientSpecificActorInfoYouTubeActorInfo
235+ , commentActorClientSpecificActorInfoYouTubeActorInfo
236+ , cacsaiytaiChannelId
237+
216238 -- * PeopleListOrderBy
217239 , PeopleListOrderBy (..)
218240
@@ -289,6 +311,11 @@ module Network.Google.Plus.Types
289311 , isDescription
290312 , isBirthDate
291313
314+ -- * ActivityObjectActorClientSpecificActorInfo
315+ , ActivityObjectActorClientSpecificActorInfo
316+ , activityObjectActorClientSpecificActorInfo
317+ , aoacsaiYouTubeActorInfo
318+
292319 -- * PeopleListCollection
293320 , PeopleListCollection (..)
294321
@@ -339,6 +366,11 @@ module Network.Google.Plus.Types
339366 , piURL
340367 , piIsDefault
341368
369+ -- * ActivityActorClientSpecificActorInfoYouTubeActorInfo
370+ , ActivityActorClientSpecificActorInfoYouTubeActorInfo
371+ , activityActorClientSpecificActorInfoYouTubeActorInfo
372+ , aacsaiytaiChannelId
373+
342374 -- * PlusACLentryResource
343375 , PlusACLentryResource
344376 , plusACLentryResource
@@ -464,6 +496,7 @@ module Network.Google.Plus.Types
464496 -- * ActivityActor
465497 , ActivityActor
466498 , activityActor
499+ , aaClientSpecificActorInfo
467500 , aaImage
468501 , aaURL
469502 , aaName
gogol-plus/gen/Network/Google/Plus/Types/Product.hs+323−27
@@ -134,6 +134,91 @@ instance ToJSON CommentPlusoners where
134134 = object
135135 (catMaybes [("totalItems" .=) <$> _cpTotalItems])
136136
137+-- | Actor info specific to particular clients.
138+--
139+-- /See:/ 'commentActorClientSpecificActorInfo' smart constructor.
140+newtype CommentActorClientSpecificActorInfo = CommentActorClientSpecificActorInfo
141+ { _cacsaiYouTubeActorInfo :: Maybe CommentActorClientSpecificActorInfoYouTubeActorInfo
142+ } deriving (Eq,Show,Data,Typeable,Generic)
143+
144+-- | Creates a value of 'CommentActorClientSpecificActorInfo' with the minimum fields required to make a request.
145+--
146+-- Use one of the following lenses to modify other fields as desired:
147+--
148+-- * 'cacsaiYouTubeActorInfo'
149+commentActorClientSpecificActorInfo
150+ :: CommentActorClientSpecificActorInfo
151+commentActorClientSpecificActorInfo =
152+ CommentActorClientSpecificActorInfo
153+ { _cacsaiYouTubeActorInfo = Nothing
154+ }
155+
156+-- | Actor info specific to YouTube clients.
157+cacsaiYouTubeActorInfo :: Lens' CommentActorClientSpecificActorInfo (Maybe CommentActorClientSpecificActorInfoYouTubeActorInfo)
158+cacsaiYouTubeActorInfo
159+ = lens _cacsaiYouTubeActorInfo
160+ (\ s a -> s{_cacsaiYouTubeActorInfo = a})
161+
162+instance FromJSON CommentActorClientSpecificActorInfo
163+ where
164+ parseJSON
165+ = withObject "CommentActorClientSpecificActorInfo"
166+ (\ o ->
167+ CommentActorClientSpecificActorInfo <$>
168+ (o .:? "youtubeActorInfo"))
169+
170+instance ToJSON CommentActorClientSpecificActorInfo
171+ where
172+ toJSON CommentActorClientSpecificActorInfo{..}
173+ = object
174+ (catMaybes
175+ [("youtubeActorInfo" .=) <$>
176+ _cacsaiYouTubeActorInfo])
177+
178+-- | Actor info specific to YouTube clients.
179+--
180+-- /See:/ 'activityObjectActorClientSpecificActorInfoYouTubeActorInfo' smart constructor.
181+newtype ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo = ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
182+ { _aoacsaiytaiChannelId :: Maybe Text
183+ } deriving (Eq,Show,Data,Typeable,Generic)
184+
185+-- | Creates a value of 'ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo' with the minimum fields required to make a request.
186+--
187+-- Use one of the following lenses to modify other fields as desired:
188+--
189+-- * 'aoacsaiytaiChannelId'
190+activityObjectActorClientSpecificActorInfoYouTubeActorInfo
191+ :: ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
192+activityObjectActorClientSpecificActorInfoYouTubeActorInfo =
193+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
194+ { _aoacsaiytaiChannelId = Nothing
195+ }
196+
197+-- | ID of the YouTube channel owned by the Actor.
198+aoacsaiytaiChannelId :: Lens' ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo (Maybe Text)
199+aoacsaiytaiChannelId
200+ = lens _aoacsaiytaiChannelId
201+ (\ s a -> s{_aoacsaiytaiChannelId = a})
202+
203+instance FromJSON
204+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
205+ where
206+ parseJSON
207+ = withObject
208+ "ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo"
209+ (\ o ->
210+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
211+ <$> (o .:? "channelId"))
212+
213+instance ToJSON
214+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
215+ where
216+ toJSON
217+ ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo{..}
218+ = object
219+ (catMaybes
220+ [("channelId" .=) <$> _aoacsaiytaiChannelId])
221+
137222-- | People who +1\'d this activity.
138223--
139224-- /See:/ 'activityObjectPlusoners' smart constructor.
@@ -434,6 +519,47 @@ instance ToJSON PersonPlacesLivedItem where
434519 [("value" .=) <$> _ppliValue,
435520 ("primary" .=) <$> _ppliPrimary])
436521
522+-- | Actor info specific to particular clients.
523+--
524+-- /See:/ 'activityActorClientSpecificActorInfo' smart constructor.
525+newtype ActivityActorClientSpecificActorInfo = ActivityActorClientSpecificActorInfo
526+ { _aacsaiYouTubeActorInfo :: Maybe ActivityActorClientSpecificActorInfoYouTubeActorInfo
527+ } deriving (Eq,Show,Data,Typeable,Generic)
528+
529+-- | Creates a value of 'ActivityActorClientSpecificActorInfo' with the minimum fields required to make a request.
530+--
531+-- Use one of the following lenses to modify other fields as desired:
532+--
533+-- * 'aacsaiYouTubeActorInfo'
534+activityActorClientSpecificActorInfo
535+ :: ActivityActorClientSpecificActorInfo
536+activityActorClientSpecificActorInfo =
537+ ActivityActorClientSpecificActorInfo
538+ { _aacsaiYouTubeActorInfo = Nothing
539+ }
540+
541+-- | Actor info specific to YouTube clients.
542+aacsaiYouTubeActorInfo :: Lens' ActivityActorClientSpecificActorInfo (Maybe ActivityActorClientSpecificActorInfoYouTubeActorInfo)
543+aacsaiYouTubeActorInfo
544+ = lens _aacsaiYouTubeActorInfo
545+ (\ s a -> s{_aacsaiYouTubeActorInfo = a})
546+
547+instance FromJSON
548+ ActivityActorClientSpecificActorInfo where
549+ parseJSON
550+ = withObject "ActivityActorClientSpecificActorInfo"
551+ (\ o ->
552+ ActivityActorClientSpecificActorInfo <$>
553+ (o .:? "youtubeActorInfo"))
554+
555+instance ToJSON ActivityActorClientSpecificActorInfo
556+ where
557+ toJSON ActivityActorClientSpecificActorInfo{..}
558+ = object
559+ (catMaybes
560+ [("youtubeActorInfo" .=) <$>
561+ _aacsaiYouTubeActorInfo])
562+
437563--
438564-- /See:/ 'person' smart constructor.
439565data Person = Person
@@ -878,17 +1004,20 @@ instance ToJSON ActivityObjectAttachmentsItemImage
8781004--
8791005-- /See:/ 'commentActor' smart constructor.
8801006data CommentActor = CommentActor
881− { _caImage :: !(Maybe CommentActorImage)
882− , _caURL :: !(Maybe Text)
883− , _caDisplayName :: !(Maybe Text)
884− , _caId :: !(Maybe Text)
885− , _caVerification :: !(Maybe CommentActorVerification)
1007+ { _caClientSpecificActorInfo :: !(Maybe CommentActorClientSpecificActorInfo)
1008+ , _caImage :: !(Maybe CommentActorImage)
1009+ , _caURL :: !(Maybe Text)
1010+ , _caDisplayName :: !(Maybe Text)
1011+ , _caId :: !(Maybe Text)
1012+ , _caVerification :: !(Maybe CommentActorVerification)
8861013 } deriving (Eq,Show,Data,Typeable,Generic)
8871014
8881015-- | Creates a value of 'CommentActor' with the minimum fields required to make a request.
8891016--
8901017-- Use one of the following lenses to modify other fields as desired:
8911018--
1019+-- * 'caClientSpecificActorInfo'
1020+--
8921021-- * 'caImage'
8931022--
8941023-- * 'caURL'
@@ -902,13 +1031,20 @@ commentActor
9021031 :: CommentActor
9031032commentActor =
9041033 CommentActor
905− { _caImage = Nothing
1034+ { _caClientSpecificActorInfo = Nothing
1035+ , _caImage = Nothing
9061036 , _caURL = Nothing
9071037 , _caDisplayName = Nothing
9081038 , _caId = Nothing
9091039 , _caVerification = Nothing
9101040 }
9111041
1042+-- | Actor info specific to particular clients.
1043+caClientSpecificActorInfo :: Lens' CommentActor (Maybe CommentActorClientSpecificActorInfo)
1044+caClientSpecificActorInfo
1045+ = lens _caClientSpecificActorInfo
1046+ (\ s a -> s{_caClientSpecificActorInfo = a})
1047+
9121048-- | The image representation of this actor.
9131049caImage :: Lens' CommentActor (Maybe CommentActorImage)
9141050caImage = lens _caImage (\ s a -> s{_caImage = a})
@@ -938,8 +1074,9 @@ instance FromJSON CommentActor where
9381074 = withObject "CommentActor"
9391075 (\ o ->
9401076 CommentActor <$>
941− (o .:? "image") <*> (o .:? "url") <*>
942− (o .:? "displayName")
1077+ (o .:? "clientSpecificActorInfo") <*> (o .:? "image")
1078+ <*> (o .:? "url")
1079+ <*> (o .:? "displayName")
9431080 <*> (o .:? "id")
9441081 <*> (o .:? "verification"))
9451082
@@ -947,7 +1084,9 @@ instance ToJSON CommentActor where
9471084 toJSON CommentActor{..}
9481085 = object
9491086 (catMaybes
950− [("image" .=) <$> _caImage, ("url" .=) <$> _caURL,
1087+ [("clientSpecificActorInfo" .=) <$>
1088+ _caClientSpecificActorInfo,
1089+ ("image" .=) <$> _caImage, ("url" .=) <$> _caURL,
9511090 ("displayName" .=) <$> _caDisplayName,
9521091 ("id" .=) <$> _caId,
9531092 ("verification" .=) <$> _caVerification])
@@ -1201,17 +1340,20 @@ instance ToJSON ActivityObject where
12011340--
12021341-- /See:/ 'activityObjectActor' smart constructor.
12031342data ActivityObjectActor = ActivityObjectActor
1204− { _aoaImage :: !(Maybe ActivityObjectActorImage)
1205− , _aoaURL :: !(Maybe Text)
1206− , _aoaDisplayName :: !(Maybe Text)
1207− , _aoaId :: !(Maybe Text)
1208− , _aoaVerification :: !(Maybe ActivityObjectActorVerification)
1343+ { _aoaClientSpecificActorInfo :: !(Maybe ActivityObjectActorClientSpecificActorInfo)
1344+ , _aoaImage :: !(Maybe ActivityObjectActorImage)
1345+ , _aoaURL :: !(Maybe Text)
1346+ , _aoaDisplayName :: !(Maybe Text)
1347+ , _aoaId :: !(Maybe Text)
1348+ , _aoaVerification :: !(Maybe ActivityObjectActorVerification)
12091349 } deriving (Eq,Show,Data,Typeable,Generic)
12101350
12111351-- | Creates a value of 'ActivityObjectActor' with the minimum fields required to make a request.
12121352--
12131353-- Use one of the following lenses to modify other fields as desired:
12141354--
1355+-- * 'aoaClientSpecificActorInfo'
1356+--
12151357-- * 'aoaImage'
12161358--
12171359-- * 'aoaURL'
@@ -1225,13 +1367,20 @@ activityObjectActor
12251367 :: ActivityObjectActor
12261368activityObjectActor =
12271369 ActivityObjectActor
1228− { _aoaImage = Nothing
1370+ { _aoaClientSpecificActorInfo = Nothing
1371+ , _aoaImage = Nothing
12291372 , _aoaURL = Nothing
12301373 , _aoaDisplayName = Nothing
12311374 , _aoaId = Nothing
12321375 , _aoaVerification = Nothing
12331376 }
12341377
1378+-- | Actor info specific to particular clients.
1379+aoaClientSpecificActorInfo :: Lens' ActivityObjectActor (Maybe ActivityObjectActorClientSpecificActorInfo)
1380+aoaClientSpecificActorInfo
1381+ = lens _aoaClientSpecificActorInfo
1382+ (\ s a -> s{_aoaClientSpecificActorInfo = a})
1383+
12351384-- | The image representation of the original actor.
12361385aoaImage :: Lens' ActivityObjectActor (Maybe ActivityObjectActorImage)
12371386aoaImage = lens _aoaImage (\ s a -> s{_aoaImage = a})
@@ -1261,8 +1410,9 @@ instance FromJSON ActivityObjectActor where
12611410 = withObject "ActivityObjectActor"
12621411 (\ o ->
12631412 ActivityObjectActor <$>
1264− (o .:? "image") <*> (o .:? "url") <*>
1265− (o .:? "displayName")
1413+ (o .:? "clientSpecificActorInfo") <*> (o .:? "image")
1414+ <*> (o .:? "url")
1415+ <*> (o .:? "displayName")
12661416 <*> (o .:? "id")
12671417 <*> (o .:? "verification"))
12681418
@@ -1270,7 +1420,9 @@ instance ToJSON ActivityObjectActor where
12701420 toJSON ActivityObjectActor{..}
12711421 = object
12721422 (catMaybes
1273− [("image" .=) <$> _aoaImage, ("url" .=) <$> _aoaURL,
1423+ [("clientSpecificActorInfo" .=) <$>
1424+ _aoaClientSpecificActorInfo,
1425+ ("image" .=) <$> _aoaImage, ("url" .=) <$> _aoaURL,
12741426 ("displayName" .=) <$> _aoaDisplayName,
12751427 ("id" .=) <$> _aoaId,
12761428 ("verification" .=) <$> _aoaVerification])
@@ -1624,6 +1776,50 @@ instance ToJSON ActivityObjectActorImage where
16241776 toJSON ActivityObjectActorImage{..}
16251777 = object (catMaybes [("url" .=) <$> _aoaiURL])
16261778
1779+-- | Actor info specific to YouTube clients.
1780+--
1781+-- /See:/ 'commentActorClientSpecificActorInfoYouTubeActorInfo' smart constructor.
1782+newtype CommentActorClientSpecificActorInfoYouTubeActorInfo = CommentActorClientSpecificActorInfoYouTubeActorInfo
1783+ { _cacsaiytaiChannelId :: Maybe Text
1784+ } deriving (Eq,Show,Data,Typeable,Generic)
1785+
1786+-- | Creates a value of 'CommentActorClientSpecificActorInfoYouTubeActorInfo' with the minimum fields required to make a request.
1787+--
1788+-- Use one of the following lenses to modify other fields as desired:
1789+--
1790+-- * 'cacsaiytaiChannelId'
1791+commentActorClientSpecificActorInfoYouTubeActorInfo
1792+ :: CommentActorClientSpecificActorInfoYouTubeActorInfo
1793+commentActorClientSpecificActorInfoYouTubeActorInfo =
1794+ CommentActorClientSpecificActorInfoYouTubeActorInfo
1795+ { _cacsaiytaiChannelId = Nothing
1796+ }
1797+
1798+-- | ID of the YouTube channel owned by the Actor.
1799+cacsaiytaiChannelId :: Lens' CommentActorClientSpecificActorInfoYouTubeActorInfo (Maybe Text)
1800+cacsaiytaiChannelId
1801+ = lens _cacsaiytaiChannelId
1802+ (\ s a -> s{_cacsaiytaiChannelId = a})
1803+
1804+instance FromJSON
1805+ CommentActorClientSpecificActorInfoYouTubeActorInfo
1806+ where
1807+ parseJSON
1808+ = withObject
1809+ "CommentActorClientSpecificActorInfoYouTubeActorInfo"
1810+ (\ o ->
1811+ CommentActorClientSpecificActorInfoYouTubeActorInfo
1812+ <$> (o .:? "channelId"))
1813+
1814+instance ToJSON
1815+ CommentActorClientSpecificActorInfoYouTubeActorInfo
1816+ where
1817+ toJSON
1818+ CommentActorClientSpecificActorInfoYouTubeActorInfo{..}
1819+ = object
1820+ (catMaybes
1821+ [("channelId" .=) <$> _cacsaiytaiChannelId])
1822+
16271823-- | Comments in reply to this activity.
16281824--
16291825-- /See:/ 'activityObjectReplies' smart constructor.
@@ -2388,6 +2584,48 @@ instance ToJSON ItemScope where
23882584 ("description" .=) <$> _isDescription,
23892585 ("birthDate" .=) <$> _isBirthDate])
23902586
2587+-- | Actor info specific to particular clients.
2588+--
2589+-- /See:/ 'activityObjectActorClientSpecificActorInfo' smart constructor.
2590+newtype ActivityObjectActorClientSpecificActorInfo = ActivityObjectActorClientSpecificActorInfo
2591+ { _aoacsaiYouTubeActorInfo :: Maybe ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo
2592+ } deriving (Eq,Show,Data,Typeable,Generic)
2593+
2594+-- | Creates a value of 'ActivityObjectActorClientSpecificActorInfo' with the minimum fields required to make a request.
2595+--
2596+-- Use one of the following lenses to modify other fields as desired:
2597+--
2598+-- * 'aoacsaiYouTubeActorInfo'
2599+activityObjectActorClientSpecificActorInfo
2600+ :: ActivityObjectActorClientSpecificActorInfo
2601+activityObjectActorClientSpecificActorInfo =
2602+ ActivityObjectActorClientSpecificActorInfo
2603+ { _aoacsaiYouTubeActorInfo = Nothing
2604+ }
2605+
2606+-- | Actor info specific to YouTube clients.
2607+aoacsaiYouTubeActorInfo :: Lens' ActivityObjectActorClientSpecificActorInfo (Maybe ActivityObjectActorClientSpecificActorInfoYouTubeActorInfo)
2608+aoacsaiYouTubeActorInfo
2609+ = lens _aoacsaiYouTubeActorInfo
2610+ (\ s a -> s{_aoacsaiYouTubeActorInfo = a})
2611+
2612+instance FromJSON
2613+ ActivityObjectActorClientSpecificActorInfo where
2614+ parseJSON
2615+ = withObject
2616+ "ActivityObjectActorClientSpecificActorInfo"
2617+ (\ o ->
2618+ ActivityObjectActorClientSpecificActorInfo <$>
2619+ (o .:? "youtubeActorInfo"))
2620+
2621+instance ToJSON
2622+ ActivityObjectActorClientSpecificActorInfo where
2623+ toJSON ActivityObjectActorClientSpecificActorInfo{..}
2624+ = object
2625+ (catMaybes
2626+ [("youtubeActorInfo" .=) <$>
2627+ _aoacsaiYouTubeActorInfo])
2628+
23912629--
23922630-- /See:/ 'activityObjectAttachmentsItem' smart constructor.
23932631data ActivityObjectAttachmentsItem = ActivityObjectAttachmentsItem
@@ -2819,6 +3057,50 @@ instance ToJSON PersonImage where
28193057 [("url" .=) <$> _piURL,
28203058 ("isDefault" .=) <$> _piIsDefault])
28213059
3060+-- | Actor info specific to YouTube clients.
3061+--
3062+-- /See:/ 'activityActorClientSpecificActorInfoYouTubeActorInfo' smart constructor.
3063+newtype ActivityActorClientSpecificActorInfoYouTubeActorInfo = ActivityActorClientSpecificActorInfoYouTubeActorInfo
3064+ { _aacsaiytaiChannelId :: Maybe Text
3065+ } deriving (Eq,Show,Data,Typeable,Generic)
3066+
3067+-- | Creates a value of 'ActivityActorClientSpecificActorInfoYouTubeActorInfo' with the minimum fields required to make a request.
3068+--
3069+-- Use one of the following lenses to modify other fields as desired:
3070+--
3071+-- * 'aacsaiytaiChannelId'
3072+activityActorClientSpecificActorInfoYouTubeActorInfo
3073+ :: ActivityActorClientSpecificActorInfoYouTubeActorInfo
3074+activityActorClientSpecificActorInfoYouTubeActorInfo =
3075+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3076+ { _aacsaiytaiChannelId = Nothing
3077+ }
3078+
3079+-- | ID of the YouTube channel owned by the Actor.
3080+aacsaiytaiChannelId :: Lens' ActivityActorClientSpecificActorInfoYouTubeActorInfo (Maybe Text)
3081+aacsaiytaiChannelId
3082+ = lens _aacsaiytaiChannelId
3083+ (\ s a -> s{_aacsaiytaiChannelId = a})
3084+
3085+instance FromJSON
3086+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3087+ where
3088+ parseJSON
3089+ = withObject
3090+ "ActivityActorClientSpecificActorInfoYouTubeActorInfo"
3091+ (\ o ->
3092+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3093+ <$> (o .:? "channelId"))
3094+
3095+instance ToJSON
3096+ ActivityActorClientSpecificActorInfoYouTubeActorInfo
3097+ where
3098+ toJSON
3099+ ActivityActorClientSpecificActorInfoYouTubeActorInfo{..}
3100+ = object
3101+ (catMaybes
3102+ [("channelId" .=) <$> _aacsaiytaiChannelId])
3103+
28223104--
28233105-- /See:/ 'plusACLentryResource' smart constructor.
28243106data PlusACLentryResource = PlusACLentryResource
@@ -3891,18 +4173,21 @@ instance ToJSON ACL where
38914173--
38924174-- /See:/ 'activityActor' smart constructor.
38934175data ActivityActor = ActivityActor
3894− { _aaImage :: !(Maybe ActivityActorImage)
3895− , _aaURL :: !(Maybe Text)
3896− , _aaName :: !(Maybe ActivityActorName)
3897− , _aaDisplayName :: !(Maybe Text)
3898− , _aaId :: !(Maybe Text)
3899− , _aaVerification :: !(Maybe ActivityActorVerification)
4176+ { _aaClientSpecificActorInfo :: !(Maybe ActivityActorClientSpecificActorInfo)
4177+ , _aaImage :: !(Maybe ActivityActorImage)
4178+ , _aaURL :: !(Maybe Text)
4179+ , _aaName :: !(Maybe ActivityActorName)
4180+ , _aaDisplayName :: !(Maybe Text)
4181+ , _aaId :: !(Maybe Text)
4182+ , _aaVerification :: !(Maybe ActivityActorVerification)
39004183 } deriving (Eq,Show,Data,Typeable,Generic)
39014184
39024185-- | Creates a value of 'ActivityActor' with the minimum fields required to make a request.
39034186--
39044187-- Use one of the following lenses to modify other fields as desired:
39054188--
4189+-- * 'aaClientSpecificActorInfo'
4190+--
39064191-- * 'aaImage'
39074192--
39084193-- * 'aaURL'
@@ -3918,7 +4203,8 @@ activityActor
39184203 :: ActivityActor
39194204activityActor =
39204205 ActivityActor
3921− { _aaImage = Nothing
4206+ { _aaClientSpecificActorInfo = Nothing
4207+ , _aaImage = Nothing
39224208 , _aaURL = Nothing
39234209 , _aaName = Nothing
39244210 , _aaDisplayName = Nothing
@@ -3926,6 +4212,12 @@ activityActor =
39264212 , _aaVerification = Nothing
39274213 }
39284214
4215+-- | Actor info specific to particular clients.
4216+aaClientSpecificActorInfo :: Lens' ActivityActor (Maybe ActivityActorClientSpecificActorInfo)
4217+aaClientSpecificActorInfo
4218+ = lens _aaClientSpecificActorInfo
4219+ (\ s a -> s{_aaClientSpecificActorInfo = a})
4220+
39294221-- | The image representation of the actor.
39304222aaImage :: Lens' ActivityActor (Maybe ActivityActorImage)
39314223aaImage = lens _aaImage (\ s a -> s{_aaImage = a})
@@ -3959,7 +4251,9 @@ instance FromJSON ActivityActor where
39594251 = withObject "ActivityActor"
39604252 (\ o ->
39614253 ActivityActor <$>
3962− (o .:? "image") <*> (o .:? "url") <*> (o .:? "name")
4254+ (o .:? "clientSpecificActorInfo") <*> (o .:? "image")
4255+ <*> (o .:? "url")
4256+ <*> (o .:? "name")
39634257 <*> (o .:? "displayName")
39644258 <*> (o .:? "id")
39654259 <*> (o .:? "verification"))
@@ -3968,7 +4262,9 @@ instance ToJSON ActivityActor where
39684262 toJSON ActivityActor{..}
39694263 = object
39704264 (catMaybes
3971− [("image" .=) <$> _aaImage, ("url" .=) <$> _aaURL,
4265+ [("clientSpecificActorInfo" .=) <$>
4266+ _aaClientSpecificActorInfo,
4267+ ("image" .=) <$> _aaImage, ("url" .=) <$> _aaURL,
39724268 ("name" .=) <$> _aaName,
39734269 ("displayName" .=) <$> _aaDisplayName,
39744270 ("id" .=) <$> _aaId,
gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+86−81

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Acknowledge.hs+12−10

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Create.hs+6−6

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Delete.hs+10−8

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/GetIAMPolicy.hs+5−5

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/List.hs+3−3

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyPushConfig.hs+10−8

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Pull.hs+4−4

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/SetIAMPolicy.hs+3−3

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs+2−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Delete.hs+12−10

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/GetIAMPolicy.hs+5−5

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/List.hs+3−3

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Publish.hs+6−6

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/SetIAMPolicy.hs+3−3

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Subscriptions/List.hs+4−3

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/TestIAMPermissions.hs+2−1

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/Resource/SQL/BackupRuns/Delete.hs+2−1

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/Resource/SQL/Instances/Failover.hsnew file+109

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/SQLAdmin.hs+18

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/SQLAdmin/Types.hs+13

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs+125−8

This diff is too big to show here.

gogol-sqladmin/gogol-sqladmin.cabal+1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage.hs+2

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage/Types.hs+2

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage/Types/Product.hs+27−5

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Create.hsdeleted−113

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Delete.hsdeleted−113

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Get.hsdeleted−112

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/List.hsdeleted−101

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Macros/Update.hsdeleted−140

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Create.hsdeleted−113

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Delete.hsdeleted−113

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Get.hsdeleted−112

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/List.hsdeleted−101

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Rules/Update.hsdeleted−140

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Versions/Restore.hs+2−2

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager.hs+2−62

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types.hs−10

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types/Product.hs+5−77

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types/Sum.hs+10−2

This diff is too big to show here.

gogol-tagmanager/gogol-tagmanager.cabal−10

This diff is too big to show here.

gogol-youtube-reporting/LICENSEnew file+367

This diff is too big to show here.

gogol-youtube-reporting/Makefilenew file+1

This diff is too big to show here.

gogol-youtube-reporting/README.mdnew file+28

This diff is too big to show here.

gogol-youtube-reporting/Setup.hsnew file+2

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Create.hsnew file+180

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Delete.hsnew file+178

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Get.hsnew file+177

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/List.hsnew file+195

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Reports/Get.hsnew file+194

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Reports/List.hsnew file+212

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Media/Download.hsnew file+199

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/ReportTypes/List.hsnew file+198

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting.hsnew file+131

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types.hsnew file+95

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types/Product.hsnew file+440

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types/Sum.hsnew file+19

This diff is too big to show here.

gogol-youtube-reporting/gogol-youtube-reporting.cabalnew file+54

This diff is too big to show here.

gogol-youtube-reporting/src/.gitkeepnew file

No changes to the content.

gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+2−1

This diff is too big to show here.