on develop help sign in
Regenerating all services
commitb29abb1eee00f052f7e336c3fa9e6a4c88549f46 authorBrendan Hay <brendan.g.hay@gmail.com> dateWed 7 Oct 2015, 14:59 (11 years ago) parented48a51
228 files changed+28993−12000
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types.hs+2−2 gogol-apps-reseller/gogol-apps-reseller.cabal+1−1 gogol-container/gen/Network/Google/Container.hs+37−46 gogol-container/gen/Network/Google/Container/Types.hs+29−38 gogol-container/gen/Network/Google/Container/Types/Product.hs+317−302 gogol-container/gen/Network/Google/Container/Types/Sum.hs−93 gogol-container/gen/Network/Google/Resource/Container/Projects/Clusters/List.hs−166 gogol-container/gen/Network/Google/Resource/Container/Projects/Operations/List.hs−166 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Create.hs+139−60 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Delete.hs+129−51 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Get.hs+122−44 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/List.hs+126−46 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Update.hs+287 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/GetServerConfig.hs+262 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Operations/Get.hs+123−47 gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Operations/List.hs+124−46 gogol-container/gogol-container.cabal+3−3 gogol-deploymentmanager/gen/Network/Google/DeploymentManager.hs+69−13 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types.hs+60−14 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Product.hs+520−123 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs−54 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/CancelPreview.hs+196 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Delete.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Get.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Insert.hs+29−10 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/List.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Patch.hs+24−18 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Stop.hs+191 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Update.hs+24−18 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/Get.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/List.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/Get.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/List.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/Get.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/List.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Types/List.hs+1−1 gogol-deploymentmanager/gogol-deploymentmanager.cabal+3−1 gogol-dns/gen/Network/Google/DNS.hs+3 gogol-dns/gen/Network/Google/DNS/Types.hs+5−2 gogol-dns/gen/Network/Google/DNS/Types/Product.hs+2−2 gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+27 gogol-dns/gogol-dns.cabal+1−1 gogol-genomics/gen/Network/Google/Genomics.hs+184−486 gogol-genomics/gen/Network/Google/Genomics/Types.hs+142−360 gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs+1331−2986 gogol-genomics/gen/Network/Google/Genomics/Types/Sum.hs−613 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Create.hs−166 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Delete.hs−167 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Get.hs−167 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Patch.hs−185 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Search.hs−170 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Update.hs−183 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/BatchCreate.hs−179 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Delete.hs−164 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Get.hs−163 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Patch.hs−182 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Search.hs−169 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Update.hs−179 gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Create.hs+102−27 gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Delete.hs+104−29 gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Get.hs+103−28 gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Patch.hs+119−30 gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Search.hs+105−31 gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Update.hs−172 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Create.hs+102−27 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Delete.hs+104−29 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Get.hs+103−28 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/GetIAMPolicy.hs+257 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/List.hs+116−43 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Patch.hs+119−30 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/SetIAMPolicy.hs+255 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/TestIAMPermissions.hs+257 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Undelete.hs+118−31 gogol-genomics/gen/Network/Google/Resource/Genomics/Experimental/Jobs/Create.hs−169 gogol-genomics/gen/Network/Google/Resource/Genomics/Jobs/Cancel.hs−160 gogol-genomics/gen/Network/Google/Resource/Genomics/Jobs/Get.hs−157 gogol-genomics/gen/Network/Google/Resource/Genomics/Jobs/Search.hs−160 gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Cancel.hs+253 gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Delete.hs+234 gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Get.hs+235 gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/List.hs+273 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Align.hs−167 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Call.hs−167 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Coveragebuckets/List.hs+148−72 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Delete.hs+98−24 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Export.hs+131−43 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Get.hs+97−23 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Import.hs+122−46 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Patch.hs+113−25 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Search.hs+107−32 gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Update.hs−177 gogol-genomics/gen/Network/Google/Resource/Genomics/Reads/Search.hs+105−31 gogol-genomics/gen/Network/Google/Resource/Genomics/References/Bases/List.hs+120−42 gogol-genomics/gen/Network/Google/Resource/Genomics/References/Get.hs+108−32 gogol-genomics/gen/Network/Google/Resource/Genomics/References/Search.hs+106−32 gogol-genomics/gen/Network/Google/Resource/Genomics/Referencesets/Get.hs+98−24 gogol-genomics/gen/Network/Google/Resource/Genomics/Referencesets/Search.hs+107−32 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Create.hs+103−28 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Delete.hs+104−29 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Get.hs+103−29 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Import.hs+256 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Patch.hs+267 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Search.hs+105−31 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Update.hs−174 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Create.hs+109−36 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Delete.hs+104−30 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Export.hs+105−33 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Get.hs+102−28 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/ImportVariants.hs−198 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/MergeVariants.hs−191 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Patch.hs+121−36 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Search.hs+103−31 gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Update.hs−180 gogol-genomics/gogol-genomics.cabal+12−28 gogol-pubsub/gen/Network/Google/PubSub.hs−1 gogol-pubsub/gen/Network/Google/PubSub/Types.hs+1−2 gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+1−12 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Acknowledge.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Create.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Delete.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Get.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/GetIAMPolicy.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/List.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyAckDeadline.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/ModifyPushConfig.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/Pull.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/SetIAMPolicy.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Create.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Delete.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Get.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/GetIAMPolicy.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/List.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Publish.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/SetIAMPolicy.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Subscriptions/List.hs+1−1 gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/TestIAMPermissions.hs+1−1 gogol-pubsub/gogol-pubsub.cabal+1−1 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/AuthInfo.hs+152 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Custombatch.hs+180 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Delete.hs+183 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Get.hs+175 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Insert.hs+188 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/List.hs+185 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Patch.hs+201 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Update.hs+196 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Custombatch.hs+181 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Get.hs+175 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/List.hs+194 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Patch.hs+201 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Update.hs+204 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountstatuses/Custombatch.hs+163 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountstatuses/Get.hs+177 gogol-shopping-content/gen/Network/Google/Resource/Content/Accountstatuses/List.hs+194 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Create.hs → gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Custombatch.hs+62−48 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Get.hs+178 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/List.hs+192 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Patch.hs+205 gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Update.hs+194 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Custombatch.hs+177 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Delete.hs+182 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Get.hs+170 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Insert.hs+183 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/List.hs+185 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Patch.hs+196 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Update.hs+195 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeedstatuses/Custombatch.hs+164 gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Update.hs → gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeedstatuses/Get.hs+65−64 gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeedstatuses/List.hs+192 gogol-shopping-content/gen/Network/Google/Resource/Content/Inventory/Custombatch.hs+178 gogol-shopping-content/gen/Network/Google/Resource/Content/Inventory/Set.hs+216 gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Custombatch.hs+172 gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Delete.hs+183 gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Get.hs+171 gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Insert.hs+183 gogol-shopping-content/gen/Network/Google/Resource/Content/Products/List.hs+190 gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/Custombatch.hs+164 gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/Get.hs+177 gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/List.hs+187 gogol-shopping-content/gen/Network/Google/ShoppingContent.hs+956−2 gogol-shopping-content/gen/Network/Google/ShoppingContent/Types.hs+752−2 gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Product.hs+7190−244 gogol-shopping-content/gogol-shopping-content.cabal+43−2 gogol-storage/README.md+1−1 gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Delete.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Get.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Insert.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/List.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Patch.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Update.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Delete.hs+11−11 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Get.hs+7−7 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Insert.hs+50−20 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/List.hs+23−12 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Patch.hs+54−25 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Update.hs+54−25 gogol-storage/gen/Network/Google/Resource/Storage/Channels/Stop.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Delete.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Get.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Insert.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/List.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Patch.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Update.hs+1−1 gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Delete.hs+6−5 gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Get.hs+6−5 gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Insert.hs+6−5 gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/List.hs+6−5 gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Patch.hs+6−5 gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Update.hs+6−5 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Compose.hs+57−37 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Copy.hs+112−82 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Delete.hs+20−19 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Get.hs+25−24 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Insert.hs+81−42 gogol-storage/gen/Network/Google/Resource/Storage/Objects/List.hs+5−3 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Patch.hs+44−31 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Rewrite.hs+440 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Update.hs+59−41 gogol-storage/gen/Network/Google/Resource/Storage/Objects/WatchAll.hs+5−3 gogol-storage/gen/Network/Google/Storage.hs+71−2 gogol-storage/gen/Network/Google/Storage/Types.hs+66−2 gogol-storage/gen/Network/Google/Storage/Types/Product.hs+299−62 gogol-storage/gen/Network/Google/Storage/Types/Sum.hs+642 gogol-storage/gogol-storage.cabal+3−2 gogol-useraccounts/gen/Network/Google/UserAccounts/Types.hs+2−2 gogol-useraccounts/gogol-useraccounts.cabal+1−1 gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types.hs+2−2 gogol-youtube-analytics/gogol-youtube-analytics.cabal+1−5
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types.hs+2−2
@@ -124,8 +124,8 @@ import Network.Google.AppsReseller.Types.Product
124124import Network.Google.AppsReseller.Types.Sum
125125import Network.Google.Prelude
126126
127−-- | Default request referring to version 'v1sandbox' of the Enterprise Apps Reseller API. This contains the host and root path used as a starting point for constructing service requests.
127+-- | Default request referring to version 'v1' of the Enterprise Apps Reseller API. This contains the host and root path used as a starting point for constructing service requests.
128128appsResellerRequest :: RequestBuilder
129129appsResellerRequest
130130 = defaultRequest "https://www.googleapis.com/"
131− "apps/reseller/v1sandbox/"
131+ "apps/reseller/v1/"
gogol-apps-reseller/gogol-apps-reseller.cabal+1−1
@@ -19,7 +19,7 @@ description:
1919 /Warning:/ This is an experimental prototype/preview release which is still
2020 under exploratory development and not intended for public use, caveat emptor!
2121 .
22− This library is compatible with version @v1sandbox@
22+ This library is compatible with version @v1@
2323 of the API.
2424 .
2525 Labels:
gogol-container/gen/Network/Google/Container.hs+37−46
@@ -17,7 +17,7 @@
1717-- container based applications, powered by the open source Kubernetes
1818-- technology.
1919--
20−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference>
20+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference>
2121module Network.Google.Container
2222 (
2323 -- * API Declaration
@@ -25,12 +25,6 @@ module Network.Google.Container
2525
2626 -- * Resources
2727
28− -- ** ContainerProjectsClustersList
29− , module Network.Google.Resource.Container.Projects.Clusters.List
30−
31− -- ** ContainerProjectsOperationsList
32− , module Network.Google.Resource.Container.Projects.Operations.List
33−
3428 -- ** ContainerProjectsZonesClustersCreate
3529 , module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
3630
@@ -43,6 +37,12 @@ module Network.Google.Container
4337 -- ** ContainerProjectsZonesClustersList
4438 , module Network.Google.Resource.Container.Projects.Zones.Clusters.List
4539
40+ -- ** ContainerProjectsZonesClustersUpdate
41+ , module Network.Google.Resource.Container.Projects.Zones.Clusters.Update
42+
43+ -- ** ContainerProjectsZonesGetServerConfig
44+ , module Network.Google.Resource.Container.Projects.Zones.GetServerConfig
45+
4646 -- ** ContainerProjectsZonesOperationsGet
4747 , module Network.Google.Resource.Container.Projects.Zones.Operations.Get
4848
@@ -66,34 +66,36 @@ module Network.Google.Container
6666 , cluster
6767 , cStatus
6868 , cNodeConfig
69− , cNumNodes
70− , cClusterAPIVersion
69+ , cNodeIPv4CIdRSize
70+ , cClusterIPv4CIdR
71+ , cInitialNodeCount
72+ , cCurrentNodeVersion
7173 , cNetwork
74+ , cInitialClusterVersion
7275 , cZone
7376 , cServicesIPv4CIdR
7477 , cMasterAuth
7578 , cSelfLink
76− , cEnableCloudMonitoring
7779 , cName
80+ , cCurrentMasterVersion
7881 , cStatusMessage
79− , cCreationTimestamp
80− , cContainerIPv4CIdR
8182 , cEndpoint
82− , cEnableCloudLogging
83+ , cLoggingService
8384 , cDescription
8485 , cInstanceGroupURLs
85− , cNodeRoutingPrefixSize
86+ , cMonitoringService
87+ , cCreateTime
8688
87− -- ** ListAggregatedOperationsResponse
88− , ListAggregatedOperationsResponse
89− , listAggregatedOperationsResponse
90− , laorOperations
89+ -- ** UpdateClusterRequest
90+ , UpdateClusterRequest
91+ , updateClusterRequest
92+ , ucrUpdate
9193
9294 -- ** NodeConfig
9395 , NodeConfig
9496 , nodeConfig
95− , ncServiceAccounts
96− , ncSourceImage
97+ , ncDiskSizeGb
98+ , ncOAuthScopes
9799 , ncMachineType
98100
99101 -- ** Operation
@@ -103,55 +105,44 @@ module Network.Google.Container
103105 , oZone
104106 , oSelfLink
105107 , oName
108+ , oStatusMessage
106109 , oOperationType
107− , oErrorMessage
108110 , oTargetLink
109− , oTarget
110−
111− -- ** OperationOperationType
112− , OperationOperationType (..)
113−
114− -- ** OperationStatus
115− , OperationStatus (..)
116−
117− -- ** ServiceAccount
118− , ServiceAccount
119− , serviceAccount
120− , saEmail
121− , saScopes
122111
123112 -- ** MasterAuth
124113 , MasterAuth
125114 , masterAuth
126− , maBearerToken
127115 , maClientKey
128− , maUser
116+ , maUsername
129117 , maClientCertificate
130118 , maPassword
131119 , maClusterCaCertificate
132120
133− -- ** ListAggregatedClustersResponse
134− , ListAggregatedClustersResponse
135− , listAggregatedClustersResponse
136− , lacrClusters
121+ -- ** ServerConfig
122+ , ServerConfig
123+ , serverConfig
124+ , scValidNodeVersions
125+ , scDefaultClusterVersion
137126
138127 -- ** ListClustersResponse
139128 , ListClustersResponse
140129 , listClustersResponse
141130 , lcrClusters
142131
143− -- ** ClusterStatus
144− , ClusterStatus (..)
132+ -- ** ClusterUpdate
133+ , ClusterUpdate
134+ , clusterUpdate
135+ , cuDesiredNodeVersion
145136 ) where
146137
147138import Network.Google.Container.Types
148139import Network.Google.Prelude
149−import Network.Google.Resource.Container.Projects.Clusters.List
150−import Network.Google.Resource.Container.Projects.Operations.List
151140import Network.Google.Resource.Container.Projects.Zones.Clusters.Create
152141import Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
153142import Network.Google.Resource.Container.Projects.Zones.Clusters.Get
154143import Network.Google.Resource.Container.Projects.Zones.Clusters.List
144+import Network.Google.Resource.Container.Projects.Zones.Clusters.Update
145+import Network.Google.Resource.Container.Projects.Zones.GetServerConfig
155146import Network.Google.Resource.Container.Projects.Zones.Operations.Get
156147import Network.Google.Resource.Container.Projects.Zones.Operations.List
157148
@@ -167,5 +158,5 @@ type ContainerAPI =
167158 :<|> ProjectsZonesClustersGetResource
168159 :<|> ProjectsZonesClustersCreateResource
169160 :<|> ProjectsZonesClustersDeleteResource
170− :<|> ProjectsOperationsListResource
171− :<|> ProjectsClustersListResource
161+ :<|> ProjectsZonesClustersUpdateResource
162+ :<|> ProjectsZonesGetServerConfigResource
gogol-container/gen/Network/Google/Container/Types.hs+29−38
@@ -33,34 +33,36 @@ module Network.Google.Container.Types
3333 , cluster
3434 , cStatus
3535 , cNodeConfig
36− , cNumNodes
37− , cClusterAPIVersion
36+ , cNodeIPv4CIdRSize
37+ , cClusterIPv4CIdR
38+ , cInitialNodeCount
39+ , cCurrentNodeVersion
3840 , cNetwork
41+ , cInitialClusterVersion
3942 , cZone
4043 , cServicesIPv4CIdR
4144 , cMasterAuth
4245 , cSelfLink
43− , cEnableCloudMonitoring
4446 , cName
47+ , cCurrentMasterVersion
4548 , cStatusMessage
46− , cCreationTimestamp
47− , cContainerIPv4CIdR
4849 , cEndpoint
49− , cEnableCloudLogging
50+ , cLoggingService
5051 , cDescription
5152 , cInstanceGroupURLs
52− , cNodeRoutingPrefixSize
53+ , cMonitoringService
54+ , cCreateTime
5355
54− -- * ListAggregatedOperationsResponse
55− , ListAggregatedOperationsResponse
56− , listAggregatedOperationsResponse
57− , laorOperations
56+ -- * UpdateClusterRequest
57+ , UpdateClusterRequest
58+ , updateClusterRequest
59+ , ucrUpdate
5860
5961 -- * NodeConfig
6062 , NodeConfig
6163 , nodeConfig
62− , ncServiceAccounts
63− , ncSourceImage
64+ , ncDiskSizeGb
65+ , ncOAuthScopes
6466 , ncMachineType
6567
6668 -- * Operation
@@ -70,53 +72,42 @@ module Network.Google.Container.Types
7072 , oZone
7173 , oSelfLink
7274 , oName
75+ , oStatusMessage
7376 , oOperationType
74− , oErrorMessage
7577 , oTargetLink
76− , oTarget
77−
78− -- * OperationOperationType
79− , OperationOperationType (..)
80−
81− -- * OperationStatus
82− , OperationStatus (..)
83−
84− -- * ServiceAccount
85− , ServiceAccount
86− , serviceAccount
87− , saEmail
88− , saScopes
8978
9079 -- * MasterAuth
9180 , MasterAuth
9281 , masterAuth
93− , maBearerToken
9482 , maClientKey
95− , maUser
83+ , maUsername
9684 , maClientCertificate
9785 , maPassword
9886 , maClusterCaCertificate
9987
100− -- * ListAggregatedClustersResponse
101− , ListAggregatedClustersResponse
102− , listAggregatedClustersResponse
103− , lacrClusters
88+ -- * ServerConfig
89+ , ServerConfig
90+ , serverConfig
91+ , scValidNodeVersions
92+ , scDefaultClusterVersion
10493
10594 -- * ListClustersResponse
10695 , ListClustersResponse
10796 , listClustersResponse
10897 , lcrClusters
10998
110− -- * ClusterStatus
111− , ClusterStatus (..)
99+ -- * ClusterUpdate
100+ , ClusterUpdate
101+ , clusterUpdate
102+ , cuDesiredNodeVersion
112103 ) where
113104
114105import Network.Google.Container.Types.Product
115106import Network.Google.Container.Types.Sum
116107import Network.Google.Prelude
117108
118−-- | Default request referring to version 'v1beta1' of the Google Container Engine API. This contains the host and root path used as a starting point for constructing service requests.
109+-- | Default request referring to version 'v1' of the Google Container Engine API. This contains the host and root path used as a starting point for constructing service requests.
119110containerRequest :: RequestBuilder
120111containerRequest
121− = defaultRequest "https://www.googleapis.com/"
122− "container/v1beta1/projects/"
112+ = defaultRequest "https://container.googleapis.com/"
113+ ""
gogol-container/gen/Network/Google/Container/Types/Product.hs+317−302
@@ -20,6 +20,7 @@ module Network.Google.Container.Types.Product where
2020import Network.Google.Container.Types.Sum
2121import Network.Google.Prelude
2222
23+-- | ListOperationsResponse is the result of ListOperationsRequest.
2324--
2425-- /See:/ 'listOperationsResponse' smart constructor.
2526newtype ListOperationsResponse = ListOperationsResponse
@@ -58,6 +59,7 @@ instance ToJSON ListOperationsResponse where
5859 = object
5960 (catMaybes [("operations" .=) <$> _lorOperations])
6061
62+-- | CreateClusterRequest creates a cluster.
6163--
6264-- /See:/ 'createClusterRequest' smart constructor.
6365newtype CreateClusterRequest = CreateClusterRequest
@@ -76,7 +78,8 @@ createClusterRequest =
7678 { _ccrCluster = Nothing
7779 }
7880
79−-- | A cluster resource.
81+-- | A [cluster
82+-- resource](\/container-engine\/reference\/rest\/v1\/projects.zones.clusters)
8083ccrCluster :: Lens' CreateClusterRequest (Maybe Cluster)
8184ccrCluster
8285 = lens _ccrCluster (\ s a -> s{_ccrCluster = a})
@@ -90,28 +93,31 @@ instance ToJSON CreateClusterRequest where
9093 toJSON CreateClusterRequest{..}
9194 = object (catMaybes [("cluster" .=) <$> _ccrCluster])
9295
96+-- | A Google Container Engine cluster.
9397--
9498-- /See:/ 'cluster' smart constructor.
9599data Cluster = Cluster
96− { _cStatus :: !(Maybe ClusterStatus)
100+ { _cStatus :: !(Maybe Text)
97101 , _cNodeConfig :: !(Maybe NodeConfig)
98− , _cNumNodes :: !(Maybe Int32)
99− , _cClusterAPIVersion :: !(Maybe Text)
102+ , _cNodeIPv4CIdRSize :: !(Maybe Int32)
103+ , _cClusterIPv4CIdR :: !(Maybe Text)
104+ , _cInitialNodeCount :: !(Maybe Int32)
105+ , _cCurrentNodeVersion :: !(Maybe Text)
100106 , _cNetwork :: !(Maybe Text)
107+ , _cInitialClusterVersion :: !(Maybe Text)
101108 , _cZone :: !(Maybe Text)
102109 , _cServicesIPv4CIdR :: !(Maybe Text)
103110 , _cMasterAuth :: !(Maybe MasterAuth)
104111 , _cSelfLink :: !(Maybe Text)
105− , _cEnableCloudMonitoring :: !(Maybe Bool)
106112 , _cName :: !(Maybe Text)
113+ , _cCurrentMasterVersion :: !(Maybe Text)
107114 , _cStatusMessage :: !(Maybe Text)
108− , _cCreationTimestamp :: !(Maybe Text)
109− , _cContainerIPv4CIdR :: !(Maybe Text)
110115 , _cEndpoint :: !(Maybe Text)
111− , _cEnableCloudLogging :: !(Maybe Bool)
116+ , _cLoggingService :: !(Maybe Text)
112117 , _cDescription :: !(Maybe Text)
113118 , _cInstanceGroupURLs :: !(Maybe [Text])
114− , _cNodeRoutingPrefixSize :: !(Maybe Int32)
119+ , _cMonitoringService :: !(Maybe Text)
120+ , _cCreateTime :: !(Maybe Text)
115121 } deriving (Eq,Show,Data,Typeable,Generic)
116122
117123-- | Creates a value of 'Cluster' with the minimum fields required to make a request.
@@ -122,12 +128,18 @@ data Cluster = Cluster
122128--
123129-- * 'cNodeConfig'
124130--
125−-- * 'cNumNodes'
131+-- * 'cNodeIPv4CIdRSize'
126132--
127−-- * 'cClusterAPIVersion'
133+-- * 'cClusterIPv4CIdR'
134+--
135+-- * 'cInitialNodeCount'
136+--
137+-- * 'cCurrentNodeVersion'
128138--
129139-- * 'cNetwork'
130140--
141+-- * 'cInitialClusterVersion'
142+--
131143-- * 'cZone'
132144--
133145-- * 'cServicesIPv4CIdR'
@@ -136,92 +148,119 @@ data Cluster = Cluster
136148--
137149-- * 'cSelfLink'
138150--
139−-- * 'cEnableCloudMonitoring'
140−--
141151-- * 'cName'
142152--
143−-- * 'cStatusMessage'
153+-- * 'cCurrentMasterVersion'
144154--
145−-- * 'cCreationTimestamp'
146−--
147−-- * 'cContainerIPv4CIdR'
155+-- * 'cStatusMessage'
148156--
149157-- * 'cEndpoint'
150158--
151−-- * 'cEnableCloudLogging'
159+-- * 'cLoggingService'
152160--
153161-- * 'cDescription'
154162--
155163-- * 'cInstanceGroupURLs'
156164--
157−-- * 'cNodeRoutingPrefixSize'
165+-- * 'cMonitoringService'
166+--
167+-- * 'cCreateTime'
158168cluster
159169 :: Cluster
160170cluster =
161171 Cluster
162172 { _cStatus = Nothing
163173 , _cNodeConfig = Nothing
164− , _cNumNodes = Nothing
165− , _cClusterAPIVersion = Nothing
174+ , _cNodeIPv4CIdRSize = Nothing
175+ , _cClusterIPv4CIdR = Nothing
176+ , _cInitialNodeCount = Nothing
177+ , _cCurrentNodeVersion = Nothing
166178 , _cNetwork = Nothing
179+ , _cInitialClusterVersion = Nothing
167180 , _cZone = Nothing
168181 , _cServicesIPv4CIdR = Nothing
169182 , _cMasterAuth = Nothing
170183 , _cSelfLink = Nothing
171− , _cEnableCloudMonitoring = Nothing
172184 , _cName = Nothing
185+ , _cCurrentMasterVersion = Nothing
173186 , _cStatusMessage = Nothing
174− , _cCreationTimestamp = Nothing
175− , _cContainerIPv4CIdR = Nothing
176187 , _cEndpoint = Nothing
177− , _cEnableCloudLogging = Nothing
188+ , _cLoggingService = Nothing
178189 , _cDescription = Nothing
179190 , _cInstanceGroupURLs = Nothing
180− , _cNodeRoutingPrefixSize = Nothing
191+ , _cMonitoringService = Nothing
192+ , _cCreateTime = Nothing
181193 }
182194
183195-- | [Output only] The current status of this cluster.
184−cStatus :: Lens' Cluster (Maybe ClusterStatus)
196+cStatus :: Lens' Cluster (Maybe Text)
185197cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
186198
187−-- | The machine type and image to use for all nodes in this cluster. See the
188−-- descriptions of the child properties of nodeConfig.
199+-- | Parameters used in creating the cluster\'s nodes. See the descriptions
200+-- of the child properties of \`nodeConfig\`. If unspecified, the defaults
201+-- for all child properties are used.
189202cNodeConfig :: Lens' Cluster (Maybe NodeConfig)
190203cNodeConfig
191204 = lens _cNodeConfig (\ s a -> s{_cNodeConfig = a})
192205
206+-- | [Output only] The size of the address space on each node for hosting
207+-- containers. This is provisioned from within the container_ipv4_cidr
208+-- range.
209+cNodeIPv4CIdRSize :: Lens' Cluster (Maybe Int32)
210+cNodeIPv4CIdRSize
211+ = lens _cNodeIPv4CIdRSize
212+ (\ s a -> s{_cNodeIPv4CIdRSize = a})
213+
214+-- | The IP address range of the container pods in this cluster, in
215+-- [CIDR](http:\/\/en.wikipedia.org\/wiki\/Classless_Inter-Domain_Routing)
216+-- notation (e.g. \`10.96.0.0\/14\`). Leave blank to have one automatically
217+-- chosen or specify a \`\/14\` block in \`10.0.0.0\/8\`.
218+cClusterIPv4CIdR :: Lens' Cluster (Maybe Text)
219+cClusterIPv4CIdR
220+ = lens _cClusterIPv4CIdR
221+ (\ s a -> s{_cClusterIPv4CIdR = a})
222+
193223-- | The number of nodes to create in this cluster. You must ensure that your
194−-- Compute Engine resource quota is sufficient for this number of instances
195−-- plus one (to include the master). You must also have available firewall
196−-- and routes quota.
197−cNumNodes :: Lens' Cluster (Maybe Int32)
198−cNumNodes
199− = lens _cNumNodes (\ s a -> s{_cNumNodes = a})
200−
201−-- | The API version of the Kubernetes master and kubelets running in this
202−-- cluster. Leave blank to pick up the latest stable release, or specify a
203−-- version of the form \"x.y.z\". The Google Container Engine release notes
204−-- lists the currently supported versions. If an incorrect version is
205−-- specified, the server returns an error listing the currently supported
206−-- versions.
207−cClusterAPIVersion :: Lens' Cluster (Maybe Text)
208−cClusterAPIVersion
209− = lens _cClusterAPIVersion
210− (\ s a -> s{_cClusterAPIVersion = a})
211−
212−-- | The name of the Google Compute Engine network to which the cluster is
213−-- connected.
224+-- Compute Engine [resource quota](\/compute\/docs\/resource-quotas) is
225+-- sufficient for this number of instances. You must also have available
226+-- firewall and routes quota.
227+cInitialNodeCount :: Lens' Cluster (Maybe Int32)
228+cInitialNodeCount
229+ = lens _cInitialNodeCount
230+ (\ s a -> s{_cInitialNodeCount = a})
231+
232+-- | [Output only] The current version of the node software components. If
233+-- they are currently at different versions because they\'re in the process
234+-- of being upgraded, this reflects the minimum version of any of them.
235+cCurrentNodeVersion :: Lens' Cluster (Maybe Text)
236+cCurrentNodeVersion
237+ = lens _cCurrentNodeVersion
238+ (\ s a -> s{_cCurrentNodeVersion = a})
239+
240+-- | The name of the Google Compute Engine
241+-- [network](\/compute\/docs\/networking#networks_1) to which the cluster
242+-- is connected. If left unspecified, the \"default\" network will be used.
214243cNetwork :: Lens' Cluster (Maybe Text)
215244cNetwork = lens _cNetwork (\ s a -> s{_cNetwork = a})
216245
217−-- | [Output only] The name of the Google Compute Engine zone in which the
218−-- cluster resides.
246+-- | [Output only] The software version of Kubernetes master and kubelets
247+-- used in the cluster when it was first created. The version can be
248+-- upgraded over time.
249+cInitialClusterVersion :: Lens' Cluster (Maybe Text)
250+cInitialClusterVersion
251+ = lens _cInitialClusterVersion
252+ (\ s a -> s{_cInitialClusterVersion = a})
253+
254+-- | [Output only] The name of the Google Compute Engine
255+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
219256cZone :: Lens' Cluster (Maybe Text)
220257cZone = lens _cZone (\ s a -> s{_cZone = a})
221258
222259-- | [Output only] The IP address range of the Kubernetes services in this
223−-- cluster, in CIDR notation (e.g. 1.2.3.4\/29). Service addresses are
224−-- typically put in the last \/16 from the container CIDR.
260+-- cluster, in
261+-- [CIDR](http:\/\/en.wikipedia.org\/wiki\/Classless_Inter-Domain_Routing)
262+-- notation (e.g. \`1.2.3.4\/29\`). Service addresses are typically put in
263+-- the last \/16 from the container CIDR.
225264cServicesIPv4CIdR :: Lens' Cluster (Maybe Text)
226265cServicesIPv4CIdR
227266 = lens _cServicesIPv4CIdR
@@ -237,20 +276,19 @@ cSelfLink :: Lens' Cluster (Maybe Text)
237276cSelfLink
238277 = lens _cSelfLink (\ s a -> s{_cSelfLink = a})
239278
240−-- | Whether metrics from the cluster should be made available via the Google
241−-- Cloud Monitoring service.
242−cEnableCloudMonitoring :: Lens' Cluster (Maybe Bool)
243−cEnableCloudMonitoring
244− = lens _cEnableCloudMonitoring
245− (\ s a -> s{_cEnableCloudMonitoring = a})
246−
247279-- | The name of this cluster. The name must be unique within this project
248280-- and zone, and can be up to 40 characters with the following
249−-- restrictions: - Lowercase letters, numbers, and hyphens only. - Must
250−-- start with a letter. - Must end with a number or a letter.
281+-- restrictions: * Lowercase letters, numbers, and hyphens only. * Must
282+-- start with a letter. * Must end with a number or a letter.
251283cName :: Lens' Cluster (Maybe Text)
252284cName = lens _cName (\ s a -> s{_cName = a})
253285
286+-- | [Output only] The current software version of the master endpoint.
287+cCurrentMasterVersion :: Lens' Cluster (Maybe Text)
288+cCurrentMasterVersion
289+ = lens _cCurrentMasterVersion
290+ (\ s a -> s{_cCurrentMasterVersion = a})
291+
254292-- | [Output only] Additional information about the current status of this
255293-- cluster, if available.
256294cStatusMessage :: Lens' Cluster (Maybe Text)
@@ -258,36 +296,22 @@ cStatusMessage
258296 = lens _cStatusMessage
259297 (\ s a -> s{_cStatusMessage = a})
260298
261−-- | [Output only] The time the cluster was created, in RFC3339 text format.
262−cCreationTimestamp :: Lens' Cluster (Maybe Text)
263−cCreationTimestamp
264− = lens _cCreationTimestamp
265− (\ s a -> s{_cCreationTimestamp = a})
266−
267−-- | The IP address range of the container pods in this cluster, in CIDR
268−-- notation (e.g. 10.96.0.0\/14). Leave blank to have one automatically
269−-- chosen or specify a \/14 block in 10.0.0.0\/8.
270−cContainerIPv4CIdR :: Lens' Cluster (Maybe Text)
271−cContainerIPv4CIdR
272− = lens _cContainerIPv4CIdR
273− (\ s a -> s{_cContainerIPv4CIdR = a})
274−
275−-- | [Output only] The IP address of this cluster\'s Kubernetes master. The
276−-- endpoint can be accessed from the internet at
277−-- https:\/\/username:password\'endpoint\/. See the masterAuth property of
278−-- this resource for username and password information.
299+-- | [Output only] The IP address of this cluster\'s Kubernetes master
300+-- endpoint. The endpoint can be accessed from the internet at
301+-- \`https:\/\/username:password\'endpoint\/\`. See the \`masterAuth\`
302+-- property of this resource for username and password information.
279303cEndpoint :: Lens' Cluster (Maybe Text)
280304cEndpoint
281305 = lens _cEndpoint (\ s a -> s{_cEndpoint = a})
282306
283−-- | Whether logs from the cluster should be made available via the Google
284−-- Cloud Logging service. This includes both logs from your applications
285−-- running in the cluster as well as logs from the Kubernetes components
286−-- themselves.
287−cEnableCloudLogging :: Lens' Cluster (Maybe Bool)
288−cEnableCloudLogging
289− = lens _cEnableCloudLogging
290− (\ s a -> s{_cEnableCloudLogging = a})
307+-- | The logging service that the cluster should write logs to. Currently
308+-- available options: * \"logging.googleapis.com\" - the Google Cloud
309+-- Logging service * \"none\" - no logs will be exported from the cluster *
310+-- \"\" - default value; the default is \"logging.googleapis.com\"
311+cLoggingService :: Lens' Cluster (Maybe Text)
312+cLoggingService
313+ = lens _cLoggingService
314+ (\ s a -> s{_cLoggingService = a})
291315
292316-- | An optional description of this cluster.
293317cDescription :: Lens' Cluster (Maybe Text)
@@ -304,12 +328,21 @@ cInstanceGroupURLs
304328 . _Default
305329 . _Coerce
306330
307−-- | [Output only] The size of the address space on each node for hosting
308−-- containers.
309−cNodeRoutingPrefixSize :: Lens' Cluster (Maybe Int32)
310−cNodeRoutingPrefixSize
311− = lens _cNodeRoutingPrefixSize
312− (\ s a -> s{_cNodeRoutingPrefixSize = a})
331+-- | The monitoring service that the cluster should write metrics to.
332+-- Currently available options: * \"monitoring.googleapis.com\" - the
333+-- Google Cloud Monitoring service * \"none\" - no metrics will be exported
334+-- from the cluster * \"\" - default value; the default is
335+-- \"monitoring.googleapis.com\"
336+cMonitoringService :: Lens' Cluster (Maybe Text)
337+cMonitoringService
338+ = lens _cMonitoringService
339+ (\ s a -> s{_cMonitoringService = a})
340+
341+-- | [Output only] The time the cluster was created, in
342+-- [RFC3339](https:\/\/www.ietf.org\/rfc\/rfc3339.txt) text format.
343+cCreateTime :: Lens' Cluster (Maybe Text)
344+cCreateTime
345+ = lens _cCreateTime (\ s a -> s{_cCreateTime = a})
313346
314347instance FromJSON Cluster where
315348 parseJSON
@@ -317,23 +350,25 @@ instance FromJSON Cluster where
317350 (\ o ->
318351 Cluster <$>
319352 (o .:? "status") <*> (o .:? "nodeConfig") <*>
320− (o .:? "numNodes")
321− <*> (o .:? "clusterApiVersion")
353+ (o .:? "nodeIpv4CidrSize")
354+ <*> (o .:? "clusterIpv4Cidr")
355+ <*> (o .:? "initialNodeCount")
356+ <*> (o .:? "currentNodeVersion")
322357 <*> (o .:? "network")
358+ <*> (o .:? "initialClusterVersion")
323359 <*> (o .:? "zone")
324360 <*> (o .:? "servicesIpv4Cidr")
325361 <*> (o .:? "masterAuth")
326362 <*> (o .:? "selfLink")
327− <*> (o .:? "enableCloudMonitoring")
328363 <*> (o .:? "name")
364+ <*> (o .:? "currentMasterVersion")
329365 <*> (o .:? "statusMessage")
330− <*> (o .:? "creationTimestamp")
331− <*> (o .:? "containerIpv4Cidr")
332366 <*> (o .:? "endpoint")
333− <*> (o .:? "enableCloudLogging")
367+ <*> (o .:? "loggingService")
334368 <*> (o .:? "description")
335369 <*> (o .:? "instanceGroupUrls" .!= mempty)
336− <*> (o .:? "nodeRoutingPrefixSize"))
370+ <*> (o .:? "monitoringService")
371+ <*> (o .:? "createTime"))
337372
338373instance ToJSON Cluster where
339374 toJSON Cluster{..}
@@ -341,117 +376,112 @@ instance ToJSON Cluster where
341376 (catMaybes
342377 [("status" .=) <$> _cStatus,
343378 ("nodeConfig" .=) <$> _cNodeConfig,
344− ("numNodes" .=) <$> _cNumNodes,
345− ("clusterApiVersion" .=) <$> _cClusterAPIVersion,
346− ("network" .=) <$> _cNetwork, ("zone" .=) <$> _cZone,
379+ ("nodeIpv4CidrSize" .=) <$> _cNodeIPv4CIdRSize,
380+ ("clusterIpv4Cidr" .=) <$> _cClusterIPv4CIdR,
381+ ("initialNodeCount" .=) <$> _cInitialNodeCount,
382+ ("currentNodeVersion" .=) <$> _cCurrentNodeVersion,
383+ ("network" .=) <$> _cNetwork,
384+ ("initialClusterVersion" .=) <$>
385+ _cInitialClusterVersion,
386+ ("zone" .=) <$> _cZone,
347387 ("servicesIpv4Cidr" .=) <$> _cServicesIPv4CIdR,
348388 ("masterAuth" .=) <$> _cMasterAuth,
349389 ("selfLink" .=) <$> _cSelfLink,
350− ("enableCloudMonitoring" .=) <$>
351− _cEnableCloudMonitoring,
352390 ("name" .=) <$> _cName,
391+ ("currentMasterVersion" .=) <$>
392+ _cCurrentMasterVersion,
353393 ("statusMessage" .=) <$> _cStatusMessage,
354− ("creationTimestamp" .=) <$> _cCreationTimestamp,
355− ("containerIpv4Cidr" .=) <$> _cContainerIPv4CIdR,
356394 ("endpoint" .=) <$> _cEndpoint,
357− ("enableCloudLogging" .=) <$> _cEnableCloudLogging,
395+ ("loggingService" .=) <$> _cLoggingService,
358396 ("description" .=) <$> _cDescription,
359397 ("instanceGroupUrls" .=) <$> _cInstanceGroupURLs,
360− ("nodeRoutingPrefixSize" .=) <$>
361− _cNodeRoutingPrefixSize])
398+ ("monitoringService" .=) <$> _cMonitoringService,
399+ ("createTime" .=) <$> _cCreateTime])
362400
401+-- | UpdateClusterRequest updates a cluster.
363402--
364−-- /See:/ 'listAggregatedOperationsResponse' smart constructor.
365−newtype ListAggregatedOperationsResponse = ListAggregatedOperationsResponse
366− { _laorOperations :: Maybe [Operation]
403+-- /See:/ 'updateClusterRequest' smart constructor.
404+newtype UpdateClusterRequest = UpdateClusterRequest
405+ { _ucrUpdate :: Maybe ClusterUpdate
367406 } deriving (Eq,Show,Data,Typeable,Generic)
368407
369−-- | Creates a value of 'ListAggregatedOperationsResponse' with the minimum fields required to make a request.
408+-- | Creates a value of 'UpdateClusterRequest' with the minimum fields required to make a request.
370409--
371410-- Use one of the following lenses to modify other fields as desired:
372411--
373−-- * 'laorOperations'
374−listAggregatedOperationsResponse
375− :: ListAggregatedOperationsResponse
376−listAggregatedOperationsResponse =
377− ListAggregatedOperationsResponse
378− { _laorOperations = Nothing
412+-- * 'ucrUpdate'
413+updateClusterRequest
414+ :: UpdateClusterRequest
415+updateClusterRequest =
416+ UpdateClusterRequest
417+ { _ucrUpdate = Nothing
379418 }
380419
381−-- | A list of operations in the project, across all zones.
382−laorOperations :: Lens' ListAggregatedOperationsResponse [Operation]
383−laorOperations
384− = lens _laorOperations
385− (\ s a -> s{_laorOperations = a})
386− . _Default
387− . _Coerce
420+-- | A description of the update.
421+ucrUpdate :: Lens' UpdateClusterRequest (Maybe ClusterUpdate)
422+ucrUpdate
423+ = lens _ucrUpdate (\ s a -> s{_ucrUpdate = a})
388424
389−instance FromJSON ListAggregatedOperationsResponse
390− where
425+instance FromJSON UpdateClusterRequest where
391426 parseJSON
392− = withObject "ListAggregatedOperationsResponse"
393− (\ o ->
394− ListAggregatedOperationsResponse <$>
395− (o .:? "operations" .!= mempty))
427+ = withObject "UpdateClusterRequest"
428+ (\ o -> UpdateClusterRequest <$> (o .:? "update"))
396429
397−instance ToJSON ListAggregatedOperationsResponse
398− where
399− toJSON ListAggregatedOperationsResponse{..}
400− = object
401− (catMaybes [("operations" .=) <$> _laorOperations])
430+instance ToJSON UpdateClusterRequest where
431+ toJSON UpdateClusterRequest{..}
432+ = object (catMaybes [("update" .=) <$> _ucrUpdate])
402433
434+-- | Per-node parameters.
403435--
404436-- /See:/ 'nodeConfig' smart constructor.
405437data NodeConfig = NodeConfig
406− { _ncServiceAccounts :: !(Maybe [ServiceAccount])
407− , _ncSourceImage :: !(Maybe Text)
408− , _ncMachineType :: !(Maybe Text)
438+ { _ncDiskSizeGb :: !(Maybe Int32)
439+ , _ncOAuthScopes :: !(Maybe [Text])
440+ , _ncMachineType :: !(Maybe Text)
409441 } deriving (Eq,Show,Data,Typeable,Generic)
410442
411443-- | Creates a value of 'NodeConfig' with the minimum fields required to make a request.
412444--
413445-- Use one of the following lenses to modify other fields as desired:
414446--
415−-- * 'ncServiceAccounts'
447+-- * 'ncDiskSizeGb'
416448--
417−-- * 'ncSourceImage'
449+-- * 'ncOAuthScopes'
418450--
419451-- * 'ncMachineType'
420452nodeConfig
421453 :: NodeConfig
422454nodeConfig =
423455 NodeConfig
424− { _ncServiceAccounts = Nothing
425− , _ncSourceImage = Nothing
456+ { _ncDiskSizeGb = Nothing
457+ , _ncOAuthScopes = Nothing
426458 , _ncMachineType = Nothing
427459 }
428460
429−-- | The optional list of ServiceAccounts, each with their specified scopes,
430−-- to be made available on all of the node VMs. In addition to the service
431−-- accounts and scopes specified, the \"default\" account will always be
432−-- created with the following scopes to ensure the correct functioning of
433−-- the cluster: - https:\/\/www.googleapis.com\/auth\/compute, -
434−-- https:\/\/www.googleapis.com\/auth\/devstorage.read_only
435−ncServiceAccounts :: Lens' NodeConfig [ServiceAccount]
436−ncServiceAccounts
437− = lens _ncServiceAccounts
438− (\ s a -> s{_ncServiceAccounts = a})
461+-- | Size of the disk attached to each node, specified in GB. The smallest
462+-- allowed disk size is 10GB. If unspecified, the default disk size is
463+-- 100GB.
464+ncDiskSizeGb :: Lens' NodeConfig (Maybe Int32)
465+ncDiskSizeGb
466+ = lens _ncDiskSizeGb (\ s a -> s{_ncDiskSizeGb = a})
467+
468+-- | The set of Google API scopes to be made available on all of the node VMs
469+-- under the \"default\" service account. The following scopes are
470+-- recommended, but not required, and by default are not included: *
471+-- \`https:\/\/www.googleapis.com\/auth\/compute\` is required for mounting
472+-- persistent storage on your nodes. *
473+-- \`https:\/\/www.googleapis.com\/auth\/devstorage.read_only\` is required
474+-- for communicating with *gcr.io*. If unspecified, no scopes are added.
475+ncOAuthScopes :: Lens' NodeConfig [Text]
476+ncOAuthScopes
477+ = lens _ncOAuthScopes
478+ (\ s a -> s{_ncOAuthScopes = a})
439479 . _Default
440480 . _Coerce
441481
442−-- | The fully-specified name of a Google Compute Engine image. For example:
443−-- https:\/\/www.googleapis.com\/compute\/v1\/projects\/debian-cloud\/global\/images\/backports-debian-7-wheezy-vYYYYMMDD
444−-- (where YYYMMDD is the version date). If specifying an image, you are
445−-- responsible for ensuring its compatibility with the Debian 7 backports
446−-- image. We recommend leaving this field blank to accept the default
447−-- backports-debian-7-wheezy value.
448−ncSourceImage :: Lens' NodeConfig (Maybe Text)
449−ncSourceImage
450− = lens _ncSourceImage
451− (\ s a -> s{_ncSourceImage = a})
452−
453−-- | The name of a Google Compute Engine machine type (e.g. n1-standard-1).
454−-- If unspecified, the default machine type is n1-standard-1.
482+-- | The name of a Google Compute Engine [machine
483+-- type](\/compute\/docs\/machine-types) (e.g. \`n1-standard-1\`). If
484+-- unspecified, the default machine type is \`n1-standard-1\`.
455485ncMachineType :: Lens' NodeConfig (Maybe Text)
456486ncMachineType
457487 = lens _ncMachineType
@@ -462,30 +492,29 @@ instance FromJSON NodeConfig where
462492 = withObject "NodeConfig"
463493 (\ o ->
464494 NodeConfig <$>
465− (o .:? "serviceAccounts" .!= mempty) <*>
466− (o .:? "sourceImage")
495+ (o .:? "diskSizeGb") <*>
496+ (o .:? "oauthScopes" .!= mempty)
467497 <*> (o .:? "machineType"))
468498
469499instance ToJSON NodeConfig where
470500 toJSON NodeConfig{..}
471501 = object
472502 (catMaybes
473− [("serviceAccounts" .=) <$> _ncServiceAccounts,
474− ("sourceImage" .=) <$> _ncSourceImage,
503+ [("diskSizeGb" .=) <$> _ncDiskSizeGb,
504+ ("oauthScopes" .=) <$> _ncOAuthScopes,
475505 ("machineType" .=) <$> _ncMachineType])
476506
477507-- | Defines the operation resource. All fields are output only.
478508--
479509-- /See:/ 'operation' smart constructor.
480510data Operation = Operation
481− { _oStatus :: !(Maybe OperationStatus)
511+ { _oStatus :: !(Maybe Text)
482512 , _oZone :: !(Maybe Text)
483513 , _oSelfLink :: !(Maybe Text)
484514 , _oName :: !(Maybe Text)
485− , _oOperationType :: !(Maybe OperationOperationType)
486− , _oErrorMessage :: !(Maybe Text)
515+ , _oStatusMessage :: !(Maybe Text)
516+ , _oOperationType :: !(Maybe Text)
487517 , _oTargetLink :: !(Maybe Text)
488− , _oTarget :: !(Maybe Text)
489518 } deriving (Eq,Show,Data,Typeable,Generic)
490519
491520-- | Creates a value of 'Operation' with the minimum fields required to make a request.
@@ -500,13 +529,11 @@ data Operation = Operation
500529--
501530-- * 'oName'
502531--
503−-- * 'oOperationType'
532+-- * 'oStatusMessage'
504533--
505−-- * 'oErrorMessage'
534+-- * 'oOperationType'
506535--
507536-- * 'oTargetLink'
508−--
509−-- * 'oTarget'
510537operation
511538 :: Operation
512539operation =
@@ -515,17 +542,17 @@ operation =
515542 , _oZone = Nothing
516543 , _oSelfLink = Nothing
517544 , _oName = Nothing
545+ , _oStatusMessage = Nothing
518546 , _oOperationType = Nothing
519− , _oErrorMessage = Nothing
520547 , _oTargetLink = Nothing
521− , _oTarget = Nothing
522548 }
523549
524550-- | The current status of the operation.
525−oStatus :: Lens' Operation (Maybe OperationStatus)
551+oStatus :: Lens' Operation (Maybe Text)
526552oStatus = lens _oStatus (\ s a -> s{_oStatus = a})
527553
528−-- | The name of the Google Compute Engine zone in which the operation is
554+-- | The name of the Google Compute Engine
555+-- [zone](\/compute\/docs\/zones#available) in which the operation is
529556-- taking place.
530557oZone :: Lens' Operation (Maybe Text)
531558oZone = lens _oZone (\ s a -> s{_oZone = a})
@@ -539,28 +566,23 @@ oSelfLink
539566oName :: Lens' Operation (Maybe Text)
540567oName = lens _oName (\ s a -> s{_oName = a})
541568
569+-- | If an error has occurred, a textual description of the error.
570+oStatusMessage :: Lens' Operation (Maybe Text)
571+oStatusMessage
572+ = lens _oStatusMessage
573+ (\ s a -> s{_oStatusMessage = a})
574+
542575-- | The operation type.
543−oOperationType :: Lens' Operation (Maybe OperationOperationType)
576+oOperationType :: Lens' Operation (Maybe Text)
544577oOperationType
545578 = lens _oOperationType
546579 (\ s a -> s{_oOperationType = a})
547580
548−-- | If an error has occurred, a textual description of the error.
549−oErrorMessage :: Lens' Operation (Maybe Text)
550−oErrorMessage
551− = lens _oErrorMessage
552− (\ s a -> s{_oErrorMessage = a})
553−
554581-- | Server-defined URL for the target of the operation.
555582oTargetLink :: Lens' Operation (Maybe Text)
556583oTargetLink
557584 = lens _oTargetLink (\ s a -> s{_oTargetLink = a})
558585
559−-- | [Optional] The URL of the cluster resource that this operation is
560−-- associated with.
561−oTarget :: Lens' Operation (Maybe Text)
562−oTarget = lens _oTarget (\ s a -> s{_oTarget = a})
563−
564586instance FromJSON Operation where
565587 parseJSON
566588 = withObject "Operation"
@@ -569,10 +591,9 @@ instance FromJSON Operation where
569591 (o .:? "status") <*> (o .:? "zone") <*>
570592 (o .:? "selfLink")
571593 <*> (o .:? "name")
594+ <*> (o .:? "statusMessage")
572595 <*> (o .:? "operationType")
573− <*> (o .:? "errorMessage")
574− <*> (o .:? "targetLink")
575− <*> (o .:? "target"))
596+ <*> (o .:? "targetLink"))
576597
577598instance ToJSON Operation where
578599 toJSON Operation{..}
@@ -581,67 +602,18 @@ instance ToJSON Operation where
581602 [("status" .=) <$> _oStatus, ("zone" .=) <$> _oZone,
582603 ("selfLink" .=) <$> _oSelfLink,
583604 ("name" .=) <$> _oName,
605+ ("statusMessage" .=) <$> _oStatusMessage,
584606 ("operationType" .=) <$> _oOperationType,
585− ("errorMessage" .=) <$> _oErrorMessage,
586− ("targetLink" .=) <$> _oTargetLink,
587− ("target" .=) <$> _oTarget])
588−
589−-- | A Compute Engine service account.
590−--
591−-- /See:/ 'serviceAccount' smart constructor.
592−data ServiceAccount = ServiceAccount
593− { _saEmail :: !(Maybe Text)
594− , _saScopes :: !(Maybe [Text])
595− } deriving (Eq,Show,Data,Typeable,Generic)
596−
597−-- | Creates a value of 'ServiceAccount' with the minimum fields required to make a request.
598−--
599−-- Use one of the following lenses to modify other fields as desired:
600−--
601−-- * 'saEmail'
602−--
603−-- * 'saScopes'
604−serviceAccount
605− :: ServiceAccount
606−serviceAccount =
607− ServiceAccount
608− { _saEmail = Nothing
609− , _saScopes = Nothing
610− }
607+ ("targetLink" .=) <$> _oTargetLink])
611608
612−-- | Email address of the service account.
613−saEmail :: Lens' ServiceAccount (Maybe Text)
614−saEmail = lens _saEmail (\ s a -> s{_saEmail = a})
615−
616−-- | The list of scopes to be made available for this service account.
617−saScopes :: Lens' ServiceAccount [Text]
618−saScopes
619− = lens _saScopes (\ s a -> s{_saScopes = a}) .
620− _Default
621− . _Coerce
622−
623−instance FromJSON ServiceAccount where
624− parseJSON
625− = withObject "ServiceAccount"
626− (\ o ->
627− ServiceAccount <$>
628− (o .:? "email") <*> (o .:? "scopes" .!= mempty))
629−
630−instance ToJSON ServiceAccount where
631− toJSON ServiceAccount{..}
632− = object
633− (catMaybes
634− [("email" .=) <$> _saEmail,
635− ("scopes" .=) <$> _saScopes])
636−
637−-- | The authentication information for accessing the master. Authentication
638−-- is either done using HTTP basic authentication or using a bearer token.
609+-- | The authentication information for accessing the master endpoint.
610+-- Authentication can be done using HTTP basic auth or using client
611+-- certificates.
639612--
640613-- /See:/ 'masterAuth' smart constructor.
641614data MasterAuth = MasterAuth
642− { _maBearerToken :: !(Maybe Text)
643− , _maClientKey :: !(Maybe Text)
644− , _maUser :: !(Maybe Text)
615+ { _maClientKey :: !(Maybe Text)
616+ , _maUsername :: !(Maybe Text)
645617 , _maClientCertificate :: !(Maybe Text)
646618 , _maPassword :: !(Maybe Text)
647619 , _maClusterCaCertificate :: !(Maybe Text)
@@ -651,11 +623,9 @@ data MasterAuth = MasterAuth
651623--
652624-- Use one of the following lenses to modify other fields as desired:
653625--
654−-- * 'maBearerToken'
655−--
656626-- * 'maClientKey'
657627--
658−-- * 'maUser'
628+-- * 'maUsername'
659629--
660630-- * 'maClientCertificate'
661631--
@@ -666,23 +636,13 @@ masterAuth
666636 :: MasterAuth
667637masterAuth =
668638 MasterAuth
669− { _maBearerToken = Nothing
670− , _maClientKey = Nothing
671− , _maUser = Nothing
639+ { _maClientKey = Nothing
640+ , _maUsername = Nothing
672641 , _maClientCertificate = Nothing
673642 , _maPassword = Nothing
674643 , _maClusterCaCertificate = Nothing
675644 }
676645
677−-- | The token used to authenticate API requests to the master. The token is
678−-- to be included in an HTTP Authorization Header in all requests to the
679−-- master endpoint. The format of the header is: \"Authorization: Bearer
680−-- \".
681−maBearerToken :: Lens' MasterAuth (Maybe Text)
682−maBearerToken
683− = lens _maBearerToken
684− (\ s a -> s{_maBearerToken = a})
685−
686646-- | [Output only] Base64 encoded private key used by clients to authenticate
687647-- to the cluster endpoint.
688648maClientKey :: Lens' MasterAuth (Maybe Text)
@@ -691,8 +651,9 @@ maClientKey
691651
692652-- | The username to use for HTTP basic authentication when accessing the
693653-- Kubernetes master endpoint.
694−maUser :: Lens' MasterAuth (Maybe Text)
695−maUser = lens _maUser (\ s a -> s{_maUser = a})
654+maUsername :: Lens' MasterAuth (Maybe Text)
655+maUsername
656+ = lens _maUsername (\ s a -> s{_maUsername = a})
696657
697658-- | [Output only] Base64 encoded public certificate used by clients to
698659-- authenticate to the cluster endpoint.
@@ -720,9 +681,8 @@ instance FromJSON MasterAuth where
720681 = withObject "MasterAuth"
721682 (\ o ->
722683 MasterAuth <$>
723− (o .:? "bearerToken") <*> (o .:? "clientKey") <*>
724− (o .:? "user")
725− <*> (o .:? "clientCertificate")
684+ (o .:? "clientKey") <*> (o .:? "username") <*>
685+ (o .:? "clientCertificate")
726686 <*> (o .:? "password")
727687 <*> (o .:? "clusterCaCertificate"))
728688
@@ -730,52 +690,67 @@ instance ToJSON MasterAuth where
730690 toJSON MasterAuth{..}
731691 = object
732692 (catMaybes
733− [("bearerToken" .=) <$> _maBearerToken,
734− ("clientKey" .=) <$> _maClientKey,
735− ("user" .=) <$> _maUser,
693+ [("clientKey" .=) <$> _maClientKey,
694+ ("username" .=) <$> _maUsername,
736695 ("clientCertificate" .=) <$> _maClientCertificate,
737696 ("password" .=) <$> _maPassword,
738697 ("clusterCaCertificate" .=) <$>
739698 _maClusterCaCertificate])
740699
700+-- | Container Engine Server configuration.
741701--
742−-- /See:/ 'listAggregatedClustersResponse' smart constructor.
743−newtype ListAggregatedClustersResponse = ListAggregatedClustersResponse
744− { _lacrClusters :: Maybe [Cluster]
702+-- /See:/ 'serverConfig' smart constructor.
703+data ServerConfig = ServerConfig
704+ { _scValidNodeVersions :: !(Maybe [Text])
705+ , _scDefaultClusterVersion :: !(Maybe Text)
745706 } deriving (Eq,Show,Data,Typeable,Generic)
746707
747−-- | Creates a value of 'ListAggregatedClustersResponse' with the minimum fields required to make a request.
708+-- | Creates a value of 'ServerConfig' with the minimum fields required to make a request.
748709--
749710-- Use one of the following lenses to modify other fields as desired:
750711--
751−-- * 'lacrClusters'
752−listAggregatedClustersResponse
753− :: ListAggregatedClustersResponse
754−listAggregatedClustersResponse =
755− ListAggregatedClustersResponse
756− { _lacrClusters = Nothing
712+-- * 'scValidNodeVersions'
713+--
714+-- * 'scDefaultClusterVersion'
715+serverConfig
716+ :: ServerConfig
717+serverConfig =
718+ ServerConfig
719+ { _scValidNodeVersions = Nothing
720+ , _scDefaultClusterVersion = Nothing
757721 }
758722
759−-- | A list of clusters in the project, across all zones.
760−lacrClusters :: Lens' ListAggregatedClustersResponse [Cluster]
761−lacrClusters
762− = lens _lacrClusters (\ s a -> s{_lacrClusters = a})
723+-- | List of valid node upgrade target versions.
724+scValidNodeVersions :: Lens' ServerConfig [Text]
725+scValidNodeVersions
726+ = lens _scValidNodeVersions
727+ (\ s a -> s{_scValidNodeVersions = a})
763728 . _Default
764729 . _Coerce
765730
766−instance FromJSON ListAggregatedClustersResponse
767− where
731+-- | What version this server deploys by default.
732+scDefaultClusterVersion :: Lens' ServerConfig (Maybe Text)
733+scDefaultClusterVersion
734+ = lens _scDefaultClusterVersion
735+ (\ s a -> s{_scDefaultClusterVersion = a})
736+
737+instance FromJSON ServerConfig where
768738 parseJSON
769− = withObject "ListAggregatedClustersResponse"
739+ = withObject "ServerConfig"
770740 (\ o ->
771− ListAggregatedClustersResponse <$>
772− (o .:? "clusters" .!= mempty))
741+ ServerConfig <$>
742+ (o .:? "validNodeVersions" .!= mempty) <*>
743+ (o .:? "defaultClusterVersion"))
773744
774−instance ToJSON ListAggregatedClustersResponse where
775− toJSON ListAggregatedClustersResponse{..}
745+instance ToJSON ServerConfig where
746+ toJSON ServerConfig{..}
776747 = object
777− (catMaybes [("clusters" .=) <$> _lacrClusters])
748+ (catMaybes
749+ [("validNodeVersions" .=) <$> _scValidNodeVersions,
750+ ("defaultClusterVersion" .=) <$>
751+ _scDefaultClusterVersion])
778752
753+-- | ListClustersResponse is the result of ListClustersRequest.
779754--
780755-- /See:/ 'listClustersResponse' smart constructor.
781756newtype ListClustersResponse = ListClustersResponse
@@ -794,7 +769,8 @@ listClustersResponse =
794769 { _lcrClusters = Nothing
795770 }
796771
797−-- | A list of clusters in the project in the specified zone.
772+-- | A list of clusters in the project in the specified zone, or across all
773+-- ones.
798774lcrClusters :: Lens' ListClustersResponse [Cluster]
799775lcrClusters
800776 = lens _lcrClusters (\ s a -> s{_lcrClusters = a}) .
@@ -812,3 +788,42 @@ instance ToJSON ListClustersResponse where
812788 toJSON ListClustersResponse{..}
813789 = object
814790 (catMaybes [("clusters" .=) <$> _lcrClusters])
791+
792+-- | ClusterUpdate describes an update to the cluster.
793+--
794+-- /See:/ 'clusterUpdate' smart constructor.
795+newtype ClusterUpdate = ClusterUpdate
796+ { _cuDesiredNodeVersion :: Maybe Text
797+ } deriving (Eq,Show,Data,Typeable,Generic)
798+
799+-- | Creates a value of 'ClusterUpdate' with the minimum fields required to make a request.
800+--
801+-- Use one of the following lenses to modify other fields as desired:
802+--
803+-- * 'cuDesiredNodeVersion'
804+clusterUpdate
805+ :: ClusterUpdate
806+clusterUpdate =
807+ ClusterUpdate
808+ { _cuDesiredNodeVersion = Nothing
809+ }
810+
811+-- | The Kubernetes version to change the nodes to (typically an upgrade).
812+-- Use \"-\" to upgrade to the latest version supported by the server.
813+cuDesiredNodeVersion :: Lens' ClusterUpdate (Maybe Text)
814+cuDesiredNodeVersion
815+ = lens _cuDesiredNodeVersion
816+ (\ s a -> s{_cuDesiredNodeVersion = a})
817+
818+instance FromJSON ClusterUpdate where
819+ parseJSON
820+ = withObject "ClusterUpdate"
821+ (\ o ->
822+ ClusterUpdate <$> (o .:? "desiredNodeVersion"))
823+
824+instance ToJSON ClusterUpdate where
825+ toJSON ClusterUpdate{..}
826+ = object
827+ (catMaybes
828+ [("desiredNodeVersion" .=) <$>
829+ _cuDesiredNodeVersion])
gogol-container/gen/Network/Google/Container/Types/Sum.hs−93
@@ -17,96 +17,3 @@
1717module Network.Google.Container.Types.Sum where
1818
1919import Network.Google.Prelude
20−
21−-- | The operation type.
22−data OperationOperationType
23− = CreateCluster
24− -- ^ @createCluster@
25− | DeleteCluster
26− -- ^ @deleteCluster@
27− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
28−
29−instance Hashable OperationOperationType
30−
31−instance FromText OperationOperationType where
32− fromText = \case
33− "createCluster" -> Just CreateCluster
34− "deleteCluster" -> Just DeleteCluster
35− _ -> Nothing
36−
37−instance ToText OperationOperationType where
38− toText = \case
39− CreateCluster -> "createCluster"
40− DeleteCluster -> "deleteCluster"
41−
42−instance FromJSON OperationOperationType where
43− parseJSON = parseJSONText "OperationOperationType"
44−
45−instance ToJSON OperationOperationType where
46− toJSON = toJSONText
47−
48−-- | The current status of the operation.
49−data OperationStatus
50− = Done
51− -- ^ @done@
52− | Pending
53− -- ^ @pending@
54− | Running
55− -- ^ @running@
56− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
57−
58−instance Hashable OperationStatus
59−
60−instance FromText OperationStatus where
61− fromText = \case
62− "done" -> Just Done
63− "pending" -> Just Pending
64− "running" -> Just Running
65− _ -> Nothing
66−
67−instance ToText OperationStatus where
68− toText = \case
69− Done -> "done"
70− Pending -> "pending"
71− Running -> "running"
72−
73−instance FromJSON OperationStatus where
74− parseJSON = parseJSONText "OperationStatus"
75−
76−instance ToJSON OperationStatus where
77− toJSON = toJSONText
78−
79−-- | [Output only] The current status of this cluster.
80−data ClusterStatus
81− = CSError'
82− -- ^ @error@
83− | CSProvisioning
84− -- ^ @provisioning@
85− | CSRunning
86− -- ^ @running@
87− | CSStopping
88− -- ^ @stopping@
89− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
90−
91−instance Hashable ClusterStatus
92−
93−instance FromText ClusterStatus where
94− fromText = \case
95− "error" -> Just CSError'
96− "provisioning" -> Just CSProvisioning
97− "running" -> Just CSRunning
98− "stopping" -> Just CSStopping
99− _ -> Nothing
100−
101−instance ToText ClusterStatus where
102− toText = \case
103− CSError' -> "error"
104− CSProvisioning -> "provisioning"
105− CSRunning -> "running"
106− CSStopping -> "stopping"
107−
108−instance FromJSON ClusterStatus where
109− parseJSON = parseJSONText "ClusterStatus"
110−
111−instance ToJSON ClusterStatus where
112− toJSON = toJSONText
gogol-container/gen/Network/Google/Resource/Container/Projects/Clusters/List.hsdeleted−166
@@ -1,166 +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.Container.Projects.Clusters.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 all clusters owned by a project across all zones.
24−--
25−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsClustersList@.
26−module Network.Google.Resource.Container.Projects.Clusters.List
27− (
28− -- * REST Resource
29− ProjectsClustersListResource
30−
31− -- * Creating a Request
32− , projectsClustersList'
33− , ProjectsClustersList'
34−
35− -- * Request Lenses
36− , pclQuotaUser
37− , pclPrettyPrint
38− , pclUserIP
39− , pclKey
40− , pclProjectId
41− , pclOAuthToken
42− , pclFields
43− ) where
44−
45−import Network.Google.Container.Types
46−import Network.Google.Prelude
47−
48−-- | A resource alias for @ContainerProjectsClustersList@ method which the
49−-- 'ProjectsClustersList'' request conforms to.
50−type ProjectsClustersListResource =
51− Capture "projectId" Text :>
52− "clusters" :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :>
60− Get '[JSON] ListAggregatedClustersResponse
61−
62−-- | Lists all clusters owned by a project across all zones.
63−--
64−-- /See:/ 'projectsClustersList'' smart constructor.
65−data ProjectsClustersList' = ProjectsClustersList'
66− { _pclQuotaUser :: !(Maybe Text)
67− , _pclPrettyPrint :: !Bool
68− , _pclUserIP :: !(Maybe Text)
69− , _pclKey :: !(Maybe AuthKey)
70− , _pclProjectId :: !Text
71− , _pclOAuthToken :: !(Maybe OAuthToken)
72− , _pclFields :: !(Maybe Text)
73− } deriving (Eq,Show,Data,Typeable,Generic)
74−
75−-- | Creates a value of 'ProjectsClustersList'' with the minimum fields required to make a request.
76−--
77−-- Use one of the following lenses to modify other fields as desired:
78−--
79−-- * 'pclQuotaUser'
80−--
81−-- * 'pclPrettyPrint'
82−--
83−-- * 'pclUserIP'
84−--
85−-- * 'pclKey'
86−--
87−-- * 'pclProjectId'
88−--
89−-- * 'pclOAuthToken'
90−--
91−-- * 'pclFields'
92−projectsClustersList'
93− :: Text -- ^ 'projectId'
94− -> ProjectsClustersList'
95−projectsClustersList' pPclProjectId_ =
96− ProjectsClustersList'
97− { _pclQuotaUser = Nothing
98− , _pclPrettyPrint = True
99− , _pclUserIP = Nothing
100− , _pclKey = Nothing
101− , _pclProjectId = pPclProjectId_
102− , _pclOAuthToken = Nothing
103− , _pclFields = Nothing
104− }
105−
106−-- | Available to use for quota purposes for server-side applications. Can be
107−-- any arbitrary string assigned to a user, but should not exceed 40
108−-- characters. Overrides userIp if both are provided.
109−pclQuotaUser :: Lens' ProjectsClustersList' (Maybe Text)
110−pclQuotaUser
111− = lens _pclQuotaUser (\ s a -> s{_pclQuotaUser = a})
112−
113−-- | Returns response with indentations and line breaks.
114−pclPrettyPrint :: Lens' ProjectsClustersList' Bool
115−pclPrettyPrint
116− = lens _pclPrettyPrint
117− (\ s a -> s{_pclPrettyPrint = a})
118−
119−-- | IP address of the site where the request originates. Use this if you
120−-- want to enforce per-user limits.
121−pclUserIP :: Lens' ProjectsClustersList' (Maybe Text)
122−pclUserIP
123− = lens _pclUserIP (\ s a -> s{_pclUserIP = a})
124−
125−-- | API key. Your API key identifies your project and provides you with API
126−-- access, quota, and reports. Required unless you provide an OAuth 2.0
127−-- token.
128−pclKey :: Lens' ProjectsClustersList' (Maybe AuthKey)
129−pclKey = lens _pclKey (\ s a -> s{_pclKey = a})
130−
131−-- | The Google Developers Console project ID or project number.
132−pclProjectId :: Lens' ProjectsClustersList' Text
133−pclProjectId
134− = lens _pclProjectId (\ s a -> s{_pclProjectId = a})
135−
136−-- | OAuth 2.0 token for the current user.
137−pclOAuthToken :: Lens' ProjectsClustersList' (Maybe OAuthToken)
138−pclOAuthToken
139− = lens _pclOAuthToken
140− (\ s a -> s{_pclOAuthToken = a})
141−
142−-- | Selector specifying which fields to include in a partial response.
143−pclFields :: Lens' ProjectsClustersList' (Maybe Text)
144−pclFields
145− = lens _pclFields (\ s a -> s{_pclFields = a})
146−
147−instance GoogleAuth ProjectsClustersList' where
148− _AuthKey = pclKey . _Just
149− _AuthToken = pclOAuthToken . _Just
150−
151−instance GoogleRequest ProjectsClustersList' where
152− type Rs ProjectsClustersList' =
153− ListAggregatedClustersResponse
154− request = requestWith containerRequest
155− requestWith rq ProjectsClustersList'{..}
156− = go _pclProjectId _pclQuotaUser
157− (Just _pclPrettyPrint)
158− _pclUserIP
159− _pclFields
160− _pclKey
161− _pclOAuthToken
162− (Just AltJSON)
163− where go
164− = clientBuild
165− (Proxy :: Proxy ProjectsClustersListResource)
166− rq
gogol-container/gen/Network/Google/Resource/Container/Projects/Operations/List.hsdeleted−166
@@ -1,166 +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.Container.Projects.Operations.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 all operations in a project, across all zones.
24−--
25−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsOperationsList@.
26−module Network.Google.Resource.Container.Projects.Operations.List
27− (
28− -- * REST Resource
29− ProjectsOperationsListResource
30−
31− -- * Creating a Request
32− , projectsOperationsList'
33− , ProjectsOperationsList'
34−
35− -- * Request Lenses
36− , polQuotaUser
37− , polPrettyPrint
38− , polUserIP
39− , polKey
40− , polProjectId
41− , polOAuthToken
42− , polFields
43− ) where
44−
45−import Network.Google.Container.Types
46−import Network.Google.Prelude
47−
48−-- | A resource alias for @ContainerProjectsOperationsList@ method which the
49−-- 'ProjectsOperationsList'' request conforms to.
50−type ProjectsOperationsListResource =
51− Capture "projectId" Text :>
52− "operations" :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :>
60− Get '[JSON] ListAggregatedOperationsResponse
61−
62−-- | Lists all operations in a project, across all zones.
63−--
64−-- /See:/ 'projectsOperationsList'' smart constructor.
65−data ProjectsOperationsList' = ProjectsOperationsList'
66− { _polQuotaUser :: !(Maybe Text)
67− , _polPrettyPrint :: !Bool
68− , _polUserIP :: !(Maybe Text)
69− , _polKey :: !(Maybe AuthKey)
70− , _polProjectId :: !Text
71− , _polOAuthToken :: !(Maybe OAuthToken)
72− , _polFields :: !(Maybe Text)
73− } deriving (Eq,Show,Data,Typeable,Generic)
74−
75−-- | Creates a value of 'ProjectsOperationsList'' with the minimum fields required to make a request.
76−--
77−-- Use one of the following lenses to modify other fields as desired:
78−--
79−-- * 'polQuotaUser'
80−--
81−-- * 'polPrettyPrint'
82−--
83−-- * 'polUserIP'
84−--
85−-- * 'polKey'
86−--
87−-- * 'polProjectId'
88−--
89−-- * 'polOAuthToken'
90−--
91−-- * 'polFields'
92−projectsOperationsList'
93− :: Text -- ^ 'projectId'
94− -> ProjectsOperationsList'
95−projectsOperationsList' pPolProjectId_ =
96− ProjectsOperationsList'
97− { _polQuotaUser = Nothing
98− , _polPrettyPrint = True
99− , _polUserIP = Nothing
100− , _polKey = Nothing
101− , _polProjectId = pPolProjectId_
102− , _polOAuthToken = Nothing
103− , _polFields = Nothing
104− }
105−
106−-- | Available to use for quota purposes for server-side applications. Can be
107−-- any arbitrary string assigned to a user, but should not exceed 40
108−-- characters. Overrides userIp if both are provided.
109−polQuotaUser :: Lens' ProjectsOperationsList' (Maybe Text)
110−polQuotaUser
111− = lens _polQuotaUser (\ s a -> s{_polQuotaUser = a})
112−
113−-- | Returns response with indentations and line breaks.
114−polPrettyPrint :: Lens' ProjectsOperationsList' Bool
115−polPrettyPrint
116− = lens _polPrettyPrint
117− (\ s a -> s{_polPrettyPrint = a})
118−
119−-- | IP address of the site where the request originates. Use this if you
120−-- want to enforce per-user limits.
121−polUserIP :: Lens' ProjectsOperationsList' (Maybe Text)
122−polUserIP
123− = lens _polUserIP (\ s a -> s{_polUserIP = a})
124−
125−-- | API key. Your API key identifies your project and provides you with API
126−-- access, quota, and reports. Required unless you provide an OAuth 2.0
127−-- token.
128−polKey :: Lens' ProjectsOperationsList' (Maybe AuthKey)
129−polKey = lens _polKey (\ s a -> s{_polKey = a})
130−
131−-- | The Google Developers Console project ID or project number.
132−polProjectId :: Lens' ProjectsOperationsList' Text
133−polProjectId
134− = lens _polProjectId (\ s a -> s{_polProjectId = a})
135−
136−-- | OAuth 2.0 token for the current user.
137−polOAuthToken :: Lens' ProjectsOperationsList' (Maybe OAuthToken)
138−polOAuthToken
139− = lens _polOAuthToken
140− (\ s a -> s{_polOAuthToken = a})
141−
142−-- | Selector specifying which fields to include in a partial response.
143−polFields :: Lens' ProjectsOperationsList' (Maybe Text)
144−polFields
145− = lens _polFields (\ s a -> s{_polFields = a})
146−
147−instance GoogleAuth ProjectsOperationsList' where
148− _AuthKey = polKey . _Just
149− _AuthToken = polOAuthToken . _Just
150−
151−instance GoogleRequest ProjectsOperationsList' where
152− type Rs ProjectsOperationsList' =
153− ListAggregatedOperationsResponse
154− request = requestWith containerRequest
155− requestWith rq ProjectsOperationsList'{..}
156− = go _polProjectId _polQuotaUser
157− (Just _polPrettyPrint)
158− _polUserIP
159− _polFields
160− _polKey
161− _polOAuthToken
162− (Just AltJSON)
163− where go
164− = clientBuild
165− (Proxy :: Proxy ProjectsOperationsListResource)
166− rq
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Create.hs+139−60
@@ -21,15 +21,16 @@
2121-- Portability : non-portable (GHC extensions)
2222--
2323-- | Creates a cluster, consisting of the specified number and type of Google
24−-- Compute Engine instances, plus a Kubernetes master instance. The cluster
25−-- is created in the project\'s default network. A firewall is added that
26−-- allows traffic into port 443 on the master, which enables HTTPS. A
27−-- firewall and a route is added for each node to allow the containers on
28−-- that node to communicate with all other instances in the cluster.
29−-- Finally, an entry is added to the project\'s global metadata indicating
30−-- which CIDR range is being used by the cluster.
31−--
32−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersCreate@.
24+-- Compute Engine instances, plus a Kubernetes master endpoint. By default,
25+-- the cluster is created in the project\'s [default
26+-- network](\/compute\/docs\/networking#networks_1). One firewall is added
27+-- for the cluster. After cluster creation, the cluster creates routes for
28+-- each node to allow the containers on that node to communicate with all
29+-- other instances in the cluster. Finally, an entry is added to the
30+-- project\'s global metadata indicating which CIDR range is being used by
31+-- the cluster.
32+--
33+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersCreate@.
3334module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
3435 (
3536 -- * REST Resource
@@ -40,15 +41,21 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
4041 , ProjectsZonesClustersCreate'
4142
4243 -- * Request Lenses
44+ , pzccXgafv
4345 , pzccQuotaUser
4446 , pzccPrettyPrint
45− , pzccUserIP
46− , pzccZoneId
47+ , pzccUploadProtocol
48+ , pzccPp
49+ , pzccAccessToken
50+ , pzccUploadType
51+ , pzccZone
4752 , pzccPayload
53+ , pzccBearerToken
4854 , pzccKey
4955 , pzccProjectId
5056 , pzccOAuthToken
5157 , pzccFields
58+ , pzccCallback
5259 ) where
5360
5461import Network.Google.Container.Types
@@ -57,56 +64,81 @@ import Network.Google.Prelude
5764-- | A resource alias for @ContainerProjectsZonesClustersCreate@ method which the
5865-- 'ProjectsZonesClustersCreate'' request conforms to.
5966type ProjectsZonesClustersCreateResource =
60− Capture "projectId" Text :>
61− "zones" :>
62− Capture "zoneId" Text :>
63− "clusters" :>
64− QueryParam "quotaUser" Text :>
65− QueryParam "prettyPrint" Bool :>
66− QueryParam "userIp" Text :>
67− QueryParam "fields" Text :>
68− QueryParam "key" AuthKey :>
69− QueryParam "oauth_token" OAuthToken :>
70− QueryParam "alt" AltJSON :>
71− ReqBody '[JSON] CreateClusterRequest :>
72− Post '[JSON] Operation
67+ "v1" :>
68+ "projects" :>
69+ Capture "projectId" Text :>
70+ "zones" :>
71+ Capture "zone" Text :>
72+ "clusters" :>
73+ QueryParam "$.xgafv" Text :>
74+ QueryParam "upload_protocol" Text :>
75+ QueryParam "pp" Bool :>
76+ QueryParam "access_token" Text :>
77+ QueryParam "uploadType" Text :>
78+ QueryParam "bearer_token" Text :>
79+ QueryParam "callback" Text :>
80+ QueryParam "quotaUser" Text :>
81+ QueryParam "prettyPrint" Bool :>
82+ QueryParam "fields" Text :>
83+ QueryParam "key" AuthKey :>
84+ QueryParam "oauth_token" OAuthToken :>
85+ QueryParam "alt" AltJSON :>
86+ ReqBody '[JSON] CreateClusterRequest
87+ :> Post '[JSON] Operation
7388
7489-- | Creates a cluster, consisting of the specified number and type of Google
75−-- Compute Engine instances, plus a Kubernetes master instance. The cluster
76−-- is created in the project\'s default network. A firewall is added that
77−-- allows traffic into port 443 on the master, which enables HTTPS. A
78−-- firewall and a route is added for each node to allow the containers on
79−-- that node to communicate with all other instances in the cluster.
80−-- Finally, an entry is added to the project\'s global metadata indicating
81−-- which CIDR range is being used by the cluster.
90+-- Compute Engine instances, plus a Kubernetes master endpoint. By default,
91+-- the cluster is created in the project\'s [default
92+-- network](\/compute\/docs\/networking#networks_1). One firewall is added
93+-- for the cluster. After cluster creation, the cluster creates routes for
94+-- each node to allow the containers on that node to communicate with all
95+-- other instances in the cluster. Finally, an entry is added to the
96+-- project\'s global metadata indicating which CIDR range is being used by
97+-- the cluster.
8298--
8399-- /See:/ 'projectsZonesClustersCreate'' smart constructor.
84100data ProjectsZonesClustersCreate' = ProjectsZonesClustersCreate'
85− { _pzccQuotaUser :: !(Maybe Text)
86− , _pzccPrettyPrint :: !Bool
87− , _pzccUserIP :: !(Maybe Text)
88− , _pzccZoneId :: !Text
89− , _pzccPayload :: !CreateClusterRequest
90− , _pzccKey :: !(Maybe AuthKey)
91− , _pzccProjectId :: !Text
92− , _pzccOAuthToken :: !(Maybe OAuthToken)
93− , _pzccFields :: !(Maybe Text)
101+ { _pzccXgafv :: !(Maybe Text)
102+ , _pzccQuotaUser :: !(Maybe Text)
103+ , _pzccPrettyPrint :: !Bool
104+ , _pzccUploadProtocol :: !(Maybe Text)
105+ , _pzccPp :: !Bool
106+ , _pzccAccessToken :: !(Maybe Text)
107+ , _pzccUploadType :: !(Maybe Text)
108+ , _pzccZone :: !Text
109+ , _pzccPayload :: !CreateClusterRequest
110+ , _pzccBearerToken :: !(Maybe Text)
111+ , _pzccKey :: !(Maybe AuthKey)
112+ , _pzccProjectId :: !Text
113+ , _pzccOAuthToken :: !(Maybe OAuthToken)
114+ , _pzccFields :: !(Maybe Text)
115+ , _pzccCallback :: !(Maybe Text)
94116 } deriving (Eq,Show,Data,Typeable,Generic)
95117
96118-- | Creates a value of 'ProjectsZonesClustersCreate'' with the minimum fields required to make a request.
97119--
98120-- Use one of the following lenses to modify other fields as desired:
99121--
122+-- * 'pzccXgafv'
123+--
100124-- * 'pzccQuotaUser'
101125--
102126-- * 'pzccPrettyPrint'
103127--
104−-- * 'pzccUserIP'
128+-- * 'pzccUploadProtocol'
129+--
130+-- * 'pzccPp'
131+--
132+-- * 'pzccAccessToken'
105133--
106−-- * 'pzccZoneId'
134+-- * 'pzccUploadType'
135+--
136+-- * 'pzccZone'
107137--
108138-- * 'pzccPayload'
109139--
140+-- * 'pzccBearerToken'
141+--
110142-- * 'pzccKey'
111143--
112144-- * 'pzccProjectId'
@@ -114,27 +146,40 @@ data ProjectsZonesClustersCreate' = ProjectsZonesClustersCreate'
114146-- * 'pzccOAuthToken'
115147--
116148-- * 'pzccFields'
149+--
150+-- * 'pzccCallback'
117151projectsZonesClustersCreate'
118− :: Text -- ^ 'zoneId'
152+ :: Text -- ^ 'zone'
119153 -> CreateClusterRequest -- ^ 'payload'
120154 -> Text -- ^ 'projectId'
121155 -> ProjectsZonesClustersCreate'
122−projectsZonesClustersCreate' pPzccZoneId_ pPzccPayload_ pPzccProjectId_ =
156+projectsZonesClustersCreate' pPzccZone_ pPzccPayload_ pPzccProjectId_ =
123157 ProjectsZonesClustersCreate'
124− { _pzccQuotaUser = Nothing
158+ { _pzccXgafv = Nothing
159+ , _pzccQuotaUser = Nothing
125160 , _pzccPrettyPrint = True
126− , _pzccUserIP = Nothing
127− , _pzccZoneId = pPzccZoneId_
161+ , _pzccUploadProtocol = Nothing
162+ , _pzccPp = True
163+ , _pzccAccessToken = Nothing
164+ , _pzccUploadType = Nothing
165+ , _pzccZone = pPzccZone_
128166 , _pzccPayload = pPzccPayload_
167+ , _pzccBearerToken = Nothing
129168 , _pzccKey = Nothing
130169 , _pzccProjectId = pPzccProjectId_
131170 , _pzccOAuthToken = Nothing
132171 , _pzccFields = Nothing
172+ , _pzccCallback = Nothing
133173 }
134174
175+-- | V1 error format.
176+pzccXgafv :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
177+pzccXgafv
178+ = lens _pzccXgafv (\ s a -> s{_pzccXgafv = a})
179+
135180-- | Available to use for quota purposes for server-side applications. Can be
136181-- any arbitrary string assigned to a user, but should not exceed 40
137−-- characters. Overrides userIp if both are provided.
182+-- characters.
138183pzccQuotaUser :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
139184pzccQuotaUser
140185 = lens _pzccQuotaUser
@@ -146,29 +191,52 @@ pzccPrettyPrint
146191 = lens _pzccPrettyPrint
147192 (\ s a -> s{_pzccPrettyPrint = a})
148193
149−-- | IP address of the site where the request originates. Use this if you
150−-- want to enforce per-user limits.
151−pzccUserIP :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
152−pzccUserIP
153− = lens _pzccUserIP (\ s a -> s{_pzccUserIP = a})
194+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
195+pzccUploadProtocol :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
196+pzccUploadProtocol
197+ = lens _pzccUploadProtocol
198+ (\ s a -> s{_pzccUploadProtocol = a})
199+
200+-- | Pretty-print response.
201+pzccPp :: Lens' ProjectsZonesClustersCreate' Bool
202+pzccPp = lens _pzccPp (\ s a -> s{_pzccPp = a})
203+
204+-- | OAuth access token.
205+pzccAccessToken :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
206+pzccAccessToken
207+ = lens _pzccAccessToken
208+ (\ s a -> s{_pzccAccessToken = a})
154209
155−-- | The name of the Google Compute Engine zone in which the cluster resides.
156−pzccZoneId :: Lens' ProjectsZonesClustersCreate' Text
157−pzccZoneId
158− = lens _pzccZoneId (\ s a -> s{_pzccZoneId = a})
210+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
211+pzccUploadType :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
212+pzccUploadType
213+ = lens _pzccUploadType
214+ (\ s a -> s{_pzccUploadType = a})
215+
216+-- | The name of the Google Compute Engine
217+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
218+pzccZone :: Lens' ProjectsZonesClustersCreate' Text
219+pzccZone = lens _pzccZone (\ s a -> s{_pzccZone = a})
159220
160221-- | Multipart request metadata.
161222pzccPayload :: Lens' ProjectsZonesClustersCreate' CreateClusterRequest
162223pzccPayload
163224 = lens _pzccPayload (\ s a -> s{_pzccPayload = a})
164225
226+-- | OAuth bearer token.
227+pzccBearerToken :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
228+pzccBearerToken
229+ = lens _pzccBearerToken
230+ (\ s a -> s{_pzccBearerToken = a})
231+
165232-- | API key. Your API key identifies your project and provides you with API
166233-- access, quota, and reports. Required unless you provide an OAuth 2.0
167234-- token.
168235pzccKey :: Lens' ProjectsZonesClustersCreate' (Maybe AuthKey)
169236pzccKey = lens _pzccKey (\ s a -> s{_pzccKey = a})
170237
171−-- | The Google Developers Console project ID or project number.
238+-- | The Google Developers Console [project ID or project
239+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
172240pzccProjectId :: Lens' ProjectsZonesClustersCreate' Text
173241pzccProjectId
174242 = lens _pzccProjectId
@@ -185,6 +253,11 @@ pzccFields :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
185253pzccFields
186254 = lens _pzccFields (\ s a -> s{_pzccFields = a})
187255
256+-- | JSONP
257+pzccCallback :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
258+pzccCallback
259+ = lens _pzccCallback (\ s a -> s{_pzccCallback = a})
260+
188261instance GoogleAuth ProjectsZonesClustersCreate'
189262 where
190263 _AuthKey = pzccKey . _Just
@@ -195,9 +268,15 @@ instance GoogleRequest ProjectsZonesClustersCreate'
195268 type Rs ProjectsZonesClustersCreate' = Operation
196269 request = requestWith containerRequest
197270 requestWith rq ProjectsZonesClustersCreate'{..}
198− = go _pzccProjectId _pzccZoneId _pzccQuotaUser
271+ = go _pzccProjectId _pzccZone _pzccXgafv
272+ _pzccUploadProtocol
273+ (Just _pzccPp)
274+ _pzccAccessToken
275+ _pzccUploadType
276+ _pzccBearerToken
277+ _pzccCallback
278+ _pzccQuotaUser
199279 (Just _pzccPrettyPrint)
200− _pzccUserIP
201280 _pzccFields
202281 _pzccKey
203282 _pzccOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Delete.hs+129−51
@@ -20,11 +20,11 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Deletes the cluster, including the Kubernetes master and all worker
24−-- nodes. Firewalls and routes that were configured at cluster creation are
25−-- also deleted.
23+-- | Deletes the cluster, including the Kubernetes endpoint and all worker
24+-- nodes. Firewalls and routes that were configured during cluster creation
25+-- are also deleted.
2626--
27−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersDelete@.
27+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersDelete@.
2828module Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
2929 (
3030 -- * REST Resource
@@ -35,15 +35,21 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
3535 , ProjectsZonesClustersDelete'
3636
3737 -- * Request Lenses
38+ , pzcdXgafv
3839 , pzcdQuotaUser
3940 , pzcdPrettyPrint
40− , pzcdUserIP
41− , pzcdZoneId
41+ , pzcdUploadProtocol
42+ , pzcdPp
43+ , pzcdAccessToken
44+ , pzcdUploadType
45+ , pzcdZone
46+ , pzcdBearerToken
4247 , pzcdKey
4348 , pzcdClusterId
4449 , pzcdProjectId
4550 , pzcdOAuthToken
4651 , pzcdFields
52+ , pzcdCallback
4753 ) where
4854
4955import Network.Google.Container.Types
@@ -52,47 +58,72 @@ import Network.Google.Prelude
5258-- | A resource alias for @ContainerProjectsZonesClustersDelete@ method which the
5359-- 'ProjectsZonesClustersDelete'' request conforms to.
5460type ProjectsZonesClustersDeleteResource =
55− Capture "projectId" Text :>
56− "zones" :>
57− Capture "zoneId" Text :>
58− "clusters" :>
59− Capture "clusterId" Text :>
60− QueryParam "quotaUser" Text :>
61− QueryParam "prettyPrint" Bool :>
62− QueryParam "userIp" Text :>
63− QueryParam "fields" Text :>
64− QueryParam "key" AuthKey :>
65− QueryParam "oauth_token" OAuthToken :>
66− QueryParam "alt" AltJSON :> Delete '[JSON] Operation
67−
68−-- | Deletes the cluster, including the Kubernetes master and all worker
69−-- nodes. Firewalls and routes that were configured at cluster creation are
70−-- also deleted.
61+ "v1" :>
62+ "projects" :>
63+ Capture "projectId" Text :>
64+ "zones" :>
65+ Capture "zone" Text :>
66+ "clusters" :>
67+ Capture "clusterId" Text :>
68+ QueryParam "$.xgafv" Text :>
69+ QueryParam "upload_protocol" Text :>
70+ QueryParam "pp" Bool :>
71+ QueryParam "access_token" Text :>
72+ QueryParam "uploadType" Text :>
73+ QueryParam "bearer_token" Text :>
74+ QueryParam "callback" Text :>
75+ QueryParam "quotaUser" Text :>
76+ QueryParam "prettyPrint" Bool :>
77+ QueryParam "fields" Text :>
78+ QueryParam "key" AuthKey :>
79+ QueryParam "oauth_token" OAuthToken :>
80+ QueryParam "alt" AltJSON :>
81+ Delete '[JSON] Operation
82+
83+-- | Deletes the cluster, including the Kubernetes endpoint and all worker
84+-- nodes. Firewalls and routes that were configured during cluster creation
85+-- are also deleted.
7186--
7287-- /See:/ 'projectsZonesClustersDelete'' smart constructor.
7388data ProjectsZonesClustersDelete' = ProjectsZonesClustersDelete'
74− { _pzcdQuotaUser :: !(Maybe Text)
75− , _pzcdPrettyPrint :: !Bool
76− , _pzcdUserIP :: !(Maybe Text)
77− , _pzcdZoneId :: !Text
78− , _pzcdKey :: !(Maybe AuthKey)
79− , _pzcdClusterId :: !Text
80− , _pzcdProjectId :: !Text
81− , _pzcdOAuthToken :: !(Maybe OAuthToken)
82− , _pzcdFields :: !(Maybe Text)
89+ { _pzcdXgafv :: !(Maybe Text)
90+ , _pzcdQuotaUser :: !(Maybe Text)
91+ , _pzcdPrettyPrint :: !Bool
92+ , _pzcdUploadProtocol :: !(Maybe Text)
93+ , _pzcdPp :: !Bool
94+ , _pzcdAccessToken :: !(Maybe Text)
95+ , _pzcdUploadType :: !(Maybe Text)
96+ , _pzcdZone :: !Text
97+ , _pzcdBearerToken :: !(Maybe Text)
98+ , _pzcdKey :: !(Maybe AuthKey)
99+ , _pzcdClusterId :: !Text
100+ , _pzcdProjectId :: !Text
101+ , _pzcdOAuthToken :: !(Maybe OAuthToken)
102+ , _pzcdFields :: !(Maybe Text)
103+ , _pzcdCallback :: !(Maybe Text)
83104 } deriving (Eq,Show,Data,Typeable,Generic)
84105
85106-- | Creates a value of 'ProjectsZonesClustersDelete'' with the minimum fields required to make a request.
86107--
87108-- Use one of the following lenses to modify other fields as desired:
88109--
110+-- * 'pzcdXgafv'
111+--
89112-- * 'pzcdQuotaUser'
90113--
91114-- * 'pzcdPrettyPrint'
92115--
93−-- * 'pzcdUserIP'
116+-- * 'pzcdUploadProtocol'
117+--
118+-- * 'pzcdPp'
119+--
120+-- * 'pzcdAccessToken'
94121--
95−-- * 'pzcdZoneId'
122+-- * 'pzcdUploadType'
123+--
124+-- * 'pzcdZone'
125+--
126+-- * 'pzcdBearerToken'
96127--
97128-- * 'pzcdKey'
98129--
@@ -103,27 +134,40 @@ data ProjectsZonesClustersDelete' = ProjectsZonesClustersDelete'
103134-- * 'pzcdOAuthToken'
104135--
105136-- * 'pzcdFields'
137+--
138+-- * 'pzcdCallback'
106139projectsZonesClustersDelete'
107− :: Text -- ^ 'zoneId'
140+ :: Text -- ^ 'zone'
108141 -> Text -- ^ 'clusterId'
109142 -> Text -- ^ 'projectId'
110143 -> ProjectsZonesClustersDelete'
111−projectsZonesClustersDelete' pPzcdZoneId_ pPzcdClusterId_ pPzcdProjectId_ =
144+projectsZonesClustersDelete' pPzcdZone_ pPzcdClusterId_ pPzcdProjectId_ =
112145 ProjectsZonesClustersDelete'
113− { _pzcdQuotaUser = Nothing
146+ { _pzcdXgafv = Nothing
147+ , _pzcdQuotaUser = Nothing
114148 , _pzcdPrettyPrint = True
115− , _pzcdUserIP = Nothing
116− , _pzcdZoneId = pPzcdZoneId_
149+ , _pzcdUploadProtocol = Nothing
150+ , _pzcdPp = True
151+ , _pzcdAccessToken = Nothing
152+ , _pzcdUploadType = Nothing
153+ , _pzcdZone = pPzcdZone_
154+ , _pzcdBearerToken = Nothing
117155 , _pzcdKey = Nothing
118156 , _pzcdClusterId = pPzcdClusterId_
119157 , _pzcdProjectId = pPzcdProjectId_
120158 , _pzcdOAuthToken = Nothing
121159 , _pzcdFields = Nothing
160+ , _pzcdCallback = Nothing
122161 }
123162
163+-- | V1 error format.
164+pzcdXgafv :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
165+pzcdXgafv
166+ = lens _pzcdXgafv (\ s a -> s{_pzcdXgafv = a})
167+
124168-- | Available to use for quota purposes for server-side applications. Can be
125169-- any arbitrary string assigned to a user, but should not exceed 40
126−-- characters. Overrides userIp if both are provided.
170+-- characters.
127171pzcdQuotaUser :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
128172pzcdQuotaUser
129173 = lens _pzcdQuotaUser
@@ -135,16 +179,38 @@ pzcdPrettyPrint
135179 = lens _pzcdPrettyPrint
136180 (\ s a -> s{_pzcdPrettyPrint = a})
137181
138−-- | IP address of the site where the request originates. Use this if you
139−-- want to enforce per-user limits.
140−pzcdUserIP :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
141−pzcdUserIP
142− = lens _pzcdUserIP (\ s a -> s{_pzcdUserIP = a})
182+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
183+pzcdUploadProtocol :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
184+pzcdUploadProtocol
185+ = lens _pzcdUploadProtocol
186+ (\ s a -> s{_pzcdUploadProtocol = a})
187+
188+-- | Pretty-print response.
189+pzcdPp :: Lens' ProjectsZonesClustersDelete' Bool
190+pzcdPp = lens _pzcdPp (\ s a -> s{_pzcdPp = a})
191+
192+-- | OAuth access token.
193+pzcdAccessToken :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
194+pzcdAccessToken
195+ = lens _pzcdAccessToken
196+ (\ s a -> s{_pzcdAccessToken = a})
143197
144−-- | The name of the Google Compute Engine zone in which the cluster resides.
145−pzcdZoneId :: Lens' ProjectsZonesClustersDelete' Text
146−pzcdZoneId
147− = lens _pzcdZoneId (\ s a -> s{_pzcdZoneId = a})
198+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
199+pzcdUploadType :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
200+pzcdUploadType
201+ = lens _pzcdUploadType
202+ (\ s a -> s{_pzcdUploadType = a})
203+
204+-- | The name of the Google Compute Engine
205+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
206+pzcdZone :: Lens' ProjectsZonesClustersDelete' Text
207+pzcdZone = lens _pzcdZone (\ s a -> s{_pzcdZone = a})
208+
209+-- | OAuth bearer token.
210+pzcdBearerToken :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
211+pzcdBearerToken
212+ = lens _pzcdBearerToken
213+ (\ s a -> s{_pzcdBearerToken = a})
148214
149215-- | API key. Your API key identifies your project and provides you with API
150216-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -158,7 +224,8 @@ pzcdClusterId
158224 = lens _pzcdClusterId
159225 (\ s a -> s{_pzcdClusterId = a})
160226
161−-- | The Google Developers Console project ID or project number.
227+-- | The Google Developers Console [project ID or project
228+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
162229pzcdProjectId :: Lens' ProjectsZonesClustersDelete' Text
163230pzcdProjectId
164231 = lens _pzcdProjectId
@@ -175,6 +242,11 @@ pzcdFields :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
175242pzcdFields
176243 = lens _pzcdFields (\ s a -> s{_pzcdFields = a})
177244
245+-- | JSONP
246+pzcdCallback :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
247+pzcdCallback
248+ = lens _pzcdCallback (\ s a -> s{_pzcdCallback = a})
249+
178250instance GoogleAuth ProjectsZonesClustersDelete'
179251 where
180252 _AuthKey = pzcdKey . _Just
@@ -185,10 +257,16 @@ instance GoogleRequest ProjectsZonesClustersDelete'
185257 type Rs ProjectsZonesClustersDelete' = Operation
186258 request = requestWith containerRequest
187259 requestWith rq ProjectsZonesClustersDelete'{..}
188− = go _pzcdProjectId _pzcdZoneId _pzcdClusterId
260+ = go _pzcdProjectId _pzcdZone _pzcdClusterId
261+ _pzcdXgafv
262+ _pzcdUploadProtocol
263+ (Just _pzcdPp)
264+ _pzcdAccessToken
265+ _pzcdUploadType
266+ _pzcdBearerToken
267+ _pzcdCallback
189268 _pzcdQuotaUser
190269 (Just _pzcdPrettyPrint)
191− _pzcdUserIP
192270 _pzcdFields
193271 _pzcdKey
194272 _pzcdOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Get.hs+122−44
@@ -22,7 +22,7 @@
2222--
2323-- | Gets a specific cluster.
2424--
25−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersGet@.
25+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersGet@.
2626module Network.Google.Resource.Container.Projects.Zones.Clusters.Get
2727 (
2828 -- * REST Resource
@@ -33,15 +33,21 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.Get
3333 , ProjectsZonesClustersGet'
3434
3535 -- * Request Lenses
36+ , pzcgXgafv
3637 , pzcgQuotaUser
3738 , pzcgPrettyPrint
38− , pzcgUserIP
39− , pzcgZoneId
39+ , pzcgUploadProtocol
40+ , pzcgPp
41+ , pzcgAccessToken
42+ , pzcgUploadType
43+ , pzcgZone
44+ , pzcgBearerToken
4045 , pzcgKey
4146 , pzcgClusterId
4247 , pzcgProjectId
4348 , pzcgOAuthToken
4449 , pzcgFields
50+ , pzcgCallback
4551 ) where
4652
4753import Network.Google.Container.Types
@@ -50,45 +56,70 @@ import Network.Google.Prelude
5056-- | A resource alias for @ContainerProjectsZonesClustersGet@ method which the
5157-- 'ProjectsZonesClustersGet'' request conforms to.
5258type ProjectsZonesClustersGetResource =
53− Capture "projectId" Text :>
54− "zones" :>
55− Capture "zoneId" Text :>
56− "clusters" :>
57− Capture "clusterId" Text :>
58− QueryParam "quotaUser" Text :>
59− QueryParam "prettyPrint" Bool :>
60− QueryParam "userIp" Text :>
61− QueryParam "fields" Text :>
62− QueryParam "key" AuthKey :>
63− QueryParam "oauth_token" OAuthToken :>
64− QueryParam "alt" AltJSON :> Get '[JSON] Cluster
59+ "v1" :>
60+ "projects" :>
61+ Capture "projectId" Text :>
62+ "zones" :>
63+ Capture "zone" Text :>
64+ "clusters" :>
65+ Capture "clusterId" Text :>
66+ QueryParam "$.xgafv" Text :>
67+ QueryParam "upload_protocol" Text :>
68+ QueryParam "pp" Bool :>
69+ QueryParam "access_token" Text :>
70+ QueryParam "uploadType" Text :>
71+ QueryParam "bearer_token" Text :>
72+ QueryParam "callback" Text :>
73+ QueryParam "quotaUser" Text :>
74+ QueryParam "prettyPrint" Bool :>
75+ QueryParam "fields" Text :>
76+ QueryParam "key" AuthKey :>
77+ QueryParam "oauth_token" OAuthToken :>
78+ QueryParam "alt" AltJSON :>
79+ Get '[JSON] Cluster
6580
6681-- | Gets a specific cluster.
6782--
6883-- /See:/ 'projectsZonesClustersGet'' smart constructor.
6984data ProjectsZonesClustersGet' = ProjectsZonesClustersGet'
70− { _pzcgQuotaUser :: !(Maybe Text)
71− , _pzcgPrettyPrint :: !Bool
72− , _pzcgUserIP :: !(Maybe Text)
73− , _pzcgZoneId :: !Text
74− , _pzcgKey :: !(Maybe AuthKey)
75− , _pzcgClusterId :: !Text
76− , _pzcgProjectId :: !Text
77− , _pzcgOAuthToken :: !(Maybe OAuthToken)
78− , _pzcgFields :: !(Maybe Text)
85+ { _pzcgXgafv :: !(Maybe Text)
86+ , _pzcgQuotaUser :: !(Maybe Text)
87+ , _pzcgPrettyPrint :: !Bool
88+ , _pzcgUploadProtocol :: !(Maybe Text)
89+ , _pzcgPp :: !Bool
90+ , _pzcgAccessToken :: !(Maybe Text)
91+ , _pzcgUploadType :: !(Maybe Text)
92+ , _pzcgZone :: !Text
93+ , _pzcgBearerToken :: !(Maybe Text)
94+ , _pzcgKey :: !(Maybe AuthKey)
95+ , _pzcgClusterId :: !Text
96+ , _pzcgProjectId :: !Text
97+ , _pzcgOAuthToken :: !(Maybe OAuthToken)
98+ , _pzcgFields :: !(Maybe Text)
99+ , _pzcgCallback :: !(Maybe Text)
79100 } deriving (Eq,Show,Data,Typeable,Generic)
80101
81102-- | Creates a value of 'ProjectsZonesClustersGet'' with the minimum fields required to make a request.
82103--
83104-- Use one of the following lenses to modify other fields as desired:
84105--
106+-- * 'pzcgXgafv'
107+--
85108-- * 'pzcgQuotaUser'
86109--
87110-- * 'pzcgPrettyPrint'
88111--
89−-- * 'pzcgUserIP'
112+-- * 'pzcgUploadProtocol'
113+--
114+-- * 'pzcgPp'
115+--
116+-- * 'pzcgAccessToken'
90117--
91−-- * 'pzcgZoneId'
118+-- * 'pzcgUploadType'
119+--
120+-- * 'pzcgZone'
121+--
122+-- * 'pzcgBearerToken'
92123--
93124-- * 'pzcgKey'
94125--
@@ -99,27 +130,40 @@ data ProjectsZonesClustersGet' = ProjectsZonesClustersGet'
99130-- * 'pzcgOAuthToken'
100131--
101132-- * 'pzcgFields'
133+--
134+-- * 'pzcgCallback'
102135projectsZonesClustersGet'
103− :: Text -- ^ 'zoneId'
136+ :: Text -- ^ 'zone'
104137 -> Text -- ^ 'clusterId'
105138 -> Text -- ^ 'projectId'
106139 -> ProjectsZonesClustersGet'
107−projectsZonesClustersGet' pPzcgZoneId_ pPzcgClusterId_ pPzcgProjectId_ =
140+projectsZonesClustersGet' pPzcgZone_ pPzcgClusterId_ pPzcgProjectId_ =
108141 ProjectsZonesClustersGet'
109− { _pzcgQuotaUser = Nothing
142+ { _pzcgXgafv = Nothing
143+ , _pzcgQuotaUser = Nothing
110144 , _pzcgPrettyPrint = True
111− , _pzcgUserIP = Nothing
112− , _pzcgZoneId = pPzcgZoneId_
145+ , _pzcgUploadProtocol = Nothing
146+ , _pzcgPp = True
147+ , _pzcgAccessToken = Nothing
148+ , _pzcgUploadType = Nothing
149+ , _pzcgZone = pPzcgZone_
150+ , _pzcgBearerToken = Nothing
113151 , _pzcgKey = Nothing
114152 , _pzcgClusterId = pPzcgClusterId_
115153 , _pzcgProjectId = pPzcgProjectId_
116154 , _pzcgOAuthToken = Nothing
117155 , _pzcgFields = Nothing
156+ , _pzcgCallback = Nothing
118157 }
119158
159+-- | V1 error format.
160+pzcgXgafv :: Lens' ProjectsZonesClustersGet' (Maybe Text)
161+pzcgXgafv
162+ = lens _pzcgXgafv (\ s a -> s{_pzcgXgafv = a})
163+
120164-- | Available to use for quota purposes for server-side applications. Can be
121165-- any arbitrary string assigned to a user, but should not exceed 40
122−-- characters. Overrides userIp if both are provided.
166+-- characters.
123167pzcgQuotaUser :: Lens' ProjectsZonesClustersGet' (Maybe Text)
124168pzcgQuotaUser
125169 = lens _pzcgQuotaUser
@@ -131,16 +175,38 @@ pzcgPrettyPrint
131175 = lens _pzcgPrettyPrint
132176 (\ s a -> s{_pzcgPrettyPrint = a})
133177
134−-- | IP address of the site where the request originates. Use this if you
135−-- want to enforce per-user limits.
136−pzcgUserIP :: Lens' ProjectsZonesClustersGet' (Maybe Text)
137−pzcgUserIP
138− = lens _pzcgUserIP (\ s a -> s{_pzcgUserIP = a})
178+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
179+pzcgUploadProtocol :: Lens' ProjectsZonesClustersGet' (Maybe Text)
180+pzcgUploadProtocol
181+ = lens _pzcgUploadProtocol
182+ (\ s a -> s{_pzcgUploadProtocol = a})
183+
184+-- | Pretty-print response.
185+pzcgPp :: Lens' ProjectsZonesClustersGet' Bool
186+pzcgPp = lens _pzcgPp (\ s a -> s{_pzcgPp = a})
187+
188+-- | OAuth access token.
189+pzcgAccessToken :: Lens' ProjectsZonesClustersGet' (Maybe Text)
190+pzcgAccessToken
191+ = lens _pzcgAccessToken
192+ (\ s a -> s{_pzcgAccessToken = a})
139193
140−-- | The name of the Google Compute Engine zone in which the cluster resides.
141−pzcgZoneId :: Lens' ProjectsZonesClustersGet' Text
142−pzcgZoneId
143− = lens _pzcgZoneId (\ s a -> s{_pzcgZoneId = a})
194+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
195+pzcgUploadType :: Lens' ProjectsZonesClustersGet' (Maybe Text)
196+pzcgUploadType
197+ = lens _pzcgUploadType
198+ (\ s a -> s{_pzcgUploadType = a})
199+
200+-- | The name of the Google Compute Engine
201+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
202+pzcgZone :: Lens' ProjectsZonesClustersGet' Text
203+pzcgZone = lens _pzcgZone (\ s a -> s{_pzcgZone = a})
204+
205+-- | OAuth bearer token.
206+pzcgBearerToken :: Lens' ProjectsZonesClustersGet' (Maybe Text)
207+pzcgBearerToken
208+ = lens _pzcgBearerToken
209+ (\ s a -> s{_pzcgBearerToken = a})
144210
145211-- | API key. Your API key identifies your project and provides you with API
146212-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -154,7 +220,8 @@ pzcgClusterId
154220 = lens _pzcgClusterId
155221 (\ s a -> s{_pzcgClusterId = a})
156222
157−-- | The Google Developers Console project ID or project number.
223+-- | The Google Developers Console [project ID or project
224+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
158225pzcgProjectId :: Lens' ProjectsZonesClustersGet' Text
159226pzcgProjectId
160227 = lens _pzcgProjectId
@@ -171,6 +238,11 @@ pzcgFields :: Lens' ProjectsZonesClustersGet' (Maybe Text)
171238pzcgFields
172239 = lens _pzcgFields (\ s a -> s{_pzcgFields = a})
173240
241+-- | JSONP
242+pzcgCallback :: Lens' ProjectsZonesClustersGet' (Maybe Text)
243+pzcgCallback
244+ = lens _pzcgCallback (\ s a -> s{_pzcgCallback = a})
245+
174246instance GoogleAuth ProjectsZonesClustersGet' where
175247 _AuthKey = pzcgKey . _Just
176248 _AuthToken = pzcgOAuthToken . _Just
@@ -180,10 +252,16 @@ instance GoogleRequest ProjectsZonesClustersGet'
180252 type Rs ProjectsZonesClustersGet' = Cluster
181253 request = requestWith containerRequest
182254 requestWith rq ProjectsZonesClustersGet'{..}
183− = go _pzcgProjectId _pzcgZoneId _pzcgClusterId
255+ = go _pzcgProjectId _pzcgZone _pzcgClusterId
256+ _pzcgXgafv
257+ _pzcgUploadProtocol
258+ (Just _pzcgPp)
259+ _pzcgAccessToken
260+ _pzcgUploadType
261+ _pzcgBearerToken
262+ _pzcgCallback
184263 _pzcgQuotaUser
185264 (Just _pzcgPrettyPrint)
186− _pzcgUserIP
187265 _pzcgFields
188266 _pzcgKey
189267 _pzcgOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/List.hs+126−46
@@ -20,9 +20,10 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Lists all clusters owned by a project in the specified zone.
23+-- | Lists all clusters owned by a project in either the specified zone or
24+-- all zones.
2425--
25−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersList@.
26+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersList@.
2627module Network.Google.Resource.Container.Projects.Zones.Clusters.List
2728 (
2829 -- * REST Resource
@@ -33,14 +34,20 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.List
3334 , ProjectsZonesClustersList'
3435
3536 -- * Request Lenses
37+ , pzclXgafv
3638 , pzclQuotaUser
3739 , pzclPrettyPrint
38− , pzclUserIP
39− , pzclZoneId
40+ , pzclUploadProtocol
41+ , pzclPp
42+ , pzclAccessToken
43+ , pzclUploadType
44+ , pzclZone
45+ , pzclBearerToken
4046 , pzclKey
4147 , pzclProjectId
4248 , pzclOAuthToken
4349 , pzclFields
50+ , pzclCallback
4451 ) where
4552
4653import Network.Google.Container.Types
@@ -49,44 +56,69 @@ import Network.Google.Prelude
4956-- | A resource alias for @ContainerProjectsZonesClustersList@ method which the
5057-- 'ProjectsZonesClustersList'' request conforms to.
5158type ProjectsZonesClustersListResource =
52− Capture "projectId" Text :>
53− "zones" :>
54− Capture "zoneId" Text :>
55− "clusters" :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
63− Get '[JSON] ListClustersResponse
64−
65−-- | Lists all clusters owned by a project in the specified zone.
59+ "v1" :>
60+ "projects" :>
61+ Capture "projectId" Text :>
62+ "zones" :>
63+ Capture "zone" Text :>
64+ "clusters" :>
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 "quotaUser" Text :>
73+ QueryParam "prettyPrint" Bool :>
74+ QueryParam "fields" Text :>
75+ QueryParam "key" AuthKey :>
76+ QueryParam "oauth_token" OAuthToken :>
77+ QueryParam "alt" AltJSON :>
78+ Get '[JSON] ListClustersResponse
79+
80+-- | Lists all clusters owned by a project in either the specified zone or
81+-- all zones.
6682--
6783-- /See:/ 'projectsZonesClustersList'' smart constructor.
6884data ProjectsZonesClustersList' = ProjectsZonesClustersList'
69− { _pzclQuotaUser :: !(Maybe Text)
70− , _pzclPrettyPrint :: !Bool
71− , _pzclUserIP :: !(Maybe Text)
72− , _pzclZoneId :: !Text
73− , _pzclKey :: !(Maybe AuthKey)
74− , _pzclProjectId :: !Text
75− , _pzclOAuthToken :: !(Maybe OAuthToken)
76− , _pzclFields :: !(Maybe Text)
85+ { _pzclXgafv :: !(Maybe Text)
86+ , _pzclQuotaUser :: !(Maybe Text)
87+ , _pzclPrettyPrint :: !Bool
88+ , _pzclUploadProtocol :: !(Maybe Text)
89+ , _pzclPp :: !Bool
90+ , _pzclAccessToken :: !(Maybe Text)
91+ , _pzclUploadType :: !(Maybe Text)
92+ , _pzclZone :: !Text
93+ , _pzclBearerToken :: !(Maybe Text)
94+ , _pzclKey :: !(Maybe AuthKey)
95+ , _pzclProjectId :: !Text
96+ , _pzclOAuthToken :: !(Maybe OAuthToken)
97+ , _pzclFields :: !(Maybe Text)
98+ , _pzclCallback :: !(Maybe Text)
7799 } deriving (Eq,Show,Data,Typeable,Generic)
78100
79101-- | Creates a value of 'ProjectsZonesClustersList'' with the minimum fields required to make a request.
80102--
81103-- Use one of the following lenses to modify other fields as desired:
82104--
105+-- * 'pzclXgafv'
106+--
83107-- * 'pzclQuotaUser'
84108--
85109-- * 'pzclPrettyPrint'
86110--
87−-- * 'pzclUserIP'
111+-- * 'pzclUploadProtocol'
112+--
113+-- * 'pzclPp'
114+--
115+-- * 'pzclAccessToken'
88116--
89−-- * 'pzclZoneId'
117+-- * 'pzclUploadType'
118+--
119+-- * 'pzclZone'
120+--
121+-- * 'pzclBearerToken'
90122--
91123-- * 'pzclKey'
92124--
@@ -95,25 +127,38 @@ data ProjectsZonesClustersList' = ProjectsZonesClustersList'
95127-- * 'pzclOAuthToken'
96128--
97129-- * 'pzclFields'
130+--
131+-- * 'pzclCallback'
98132projectsZonesClustersList'
99− :: Text -- ^ 'zoneId'
133+ :: Text -- ^ 'zone'
100134 -> Text -- ^ 'projectId'
101135 -> ProjectsZonesClustersList'
102−projectsZonesClustersList' pPzclZoneId_ pPzclProjectId_ =
136+projectsZonesClustersList' pPzclZone_ pPzclProjectId_ =
103137 ProjectsZonesClustersList'
104− { _pzclQuotaUser = Nothing
138+ { _pzclXgafv = Nothing
139+ , _pzclQuotaUser = Nothing
105140 , _pzclPrettyPrint = True
106− , _pzclUserIP = Nothing
107− , _pzclZoneId = pPzclZoneId_
141+ , _pzclUploadProtocol = Nothing
142+ , _pzclPp = True
143+ , _pzclAccessToken = Nothing
144+ , _pzclUploadType = Nothing
145+ , _pzclZone = pPzclZone_
146+ , _pzclBearerToken = Nothing
108147 , _pzclKey = Nothing
109148 , _pzclProjectId = pPzclProjectId_
110149 , _pzclOAuthToken = Nothing
111150 , _pzclFields = Nothing
151+ , _pzclCallback = Nothing
112152 }
113153
154+-- | V1 error format.
155+pzclXgafv :: Lens' ProjectsZonesClustersList' (Maybe Text)
156+pzclXgafv
157+ = lens _pzclXgafv (\ s a -> s{_pzclXgafv = a})
158+
114159-- | Available to use for quota purposes for server-side applications. Can be
115160-- any arbitrary string assigned to a user, but should not exceed 40
116−-- characters. Overrides userIp if both are provided.
161+-- characters.
117162pzclQuotaUser :: Lens' ProjectsZonesClustersList' (Maybe Text)
118163pzclQuotaUser
119164 = lens _pzclQuotaUser
@@ -125,16 +170,39 @@ pzclPrettyPrint
125170 = lens _pzclPrettyPrint
126171 (\ s a -> s{_pzclPrettyPrint = a})
127172
128−-- | IP address of the site where the request originates. Use this if you
129−-- want to enforce per-user limits.
130−pzclUserIP :: Lens' ProjectsZonesClustersList' (Maybe Text)
131−pzclUserIP
132− = lens _pzclUserIP (\ s a -> s{_pzclUserIP = a})
173+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
174+pzclUploadProtocol :: Lens' ProjectsZonesClustersList' (Maybe Text)
175+pzclUploadProtocol
176+ = lens _pzclUploadProtocol
177+ (\ s a -> s{_pzclUploadProtocol = a})
178+
179+-- | Pretty-print response.
180+pzclPp :: Lens' ProjectsZonesClustersList' Bool
181+pzclPp = lens _pzclPp (\ s a -> s{_pzclPp = a})
182+
183+-- | OAuth access token.
184+pzclAccessToken :: Lens' ProjectsZonesClustersList' (Maybe Text)
185+pzclAccessToken
186+ = lens _pzclAccessToken
187+ (\ s a -> s{_pzclAccessToken = a})
133188
134−-- | The name of the Google Compute Engine zone in which the cluster resides.
135−pzclZoneId :: Lens' ProjectsZonesClustersList' Text
136−pzclZoneId
137− = lens _pzclZoneId (\ s a -> s{_pzclZoneId = a})
189+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
190+pzclUploadType :: Lens' ProjectsZonesClustersList' (Maybe Text)
191+pzclUploadType
192+ = lens _pzclUploadType
193+ (\ s a -> s{_pzclUploadType = a})
194+
195+-- | The name of the Google Compute Engine
196+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides,
197+-- or \"-\" for all zones.
198+pzclZone :: Lens' ProjectsZonesClustersList' Text
199+pzclZone = lens _pzclZone (\ s a -> s{_pzclZone = a})
200+
201+-- | OAuth bearer token.
202+pzclBearerToken :: Lens' ProjectsZonesClustersList' (Maybe Text)
203+pzclBearerToken
204+ = lens _pzclBearerToken
205+ (\ s a -> s{_pzclBearerToken = a})
138206
139207-- | API key. Your API key identifies your project and provides you with API
140208-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -142,7 +210,8 @@ pzclZoneId
142210pzclKey :: Lens' ProjectsZonesClustersList' (Maybe AuthKey)
143211pzclKey = lens _pzclKey (\ s a -> s{_pzclKey = a})
144212
145−-- | The Google Developers Console project ID or project number.
213+-- | The Google Developers Console [project ID or project
214+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
146215pzclProjectId :: Lens' ProjectsZonesClustersList' Text
147216pzclProjectId
148217 = lens _pzclProjectId
@@ -159,6 +228,11 @@ pzclFields :: Lens' ProjectsZonesClustersList' (Maybe Text)
159228pzclFields
160229 = lens _pzclFields (\ s a -> s{_pzclFields = a})
161230
231+-- | JSONP
232+pzclCallback :: Lens' ProjectsZonesClustersList' (Maybe Text)
233+pzclCallback
234+ = lens _pzclCallback (\ s a -> s{_pzclCallback = a})
235+
162236instance GoogleAuth ProjectsZonesClustersList' where
163237 _AuthKey = pzclKey . _Just
164238 _AuthToken = pzclOAuthToken . _Just
@@ -169,9 +243,15 @@ instance GoogleRequest ProjectsZonesClustersList'
169243 ListClustersResponse
170244 request = requestWith containerRequest
171245 requestWith rq ProjectsZonesClustersList'{..}
172− = go _pzclProjectId _pzclZoneId _pzclQuotaUser
246+ = go _pzclProjectId _pzclZone _pzclXgafv
247+ _pzclUploadProtocol
248+ (Just _pzclPp)
249+ _pzclAccessToken
250+ _pzclUploadType
251+ _pzclBearerToken
252+ _pzclCallback
253+ _pzclQuotaUser
173254 (Just _pzclPrettyPrint)
174− _pzclUserIP
175255 _pzclFields
176256 _pzclKey
177257 _pzclOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Update.hsnew file+287
@@ -0,0 +1,287 @@
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.Container.Projects.Zones.Clusters.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+-- | Update settings of a specific cluster.
24+--
25+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersUpdate@.
26+module Network.Google.Resource.Container.Projects.Zones.Clusters.Update
27+ (
28+ -- * REST Resource
29+ ProjectsZonesClustersUpdateResource
30+
31+ -- * Creating a Request
32+ , projectsZonesClustersUpdate'
33+ , ProjectsZonesClustersUpdate'
34+
35+ -- * Request Lenses
36+ , pzcuXgafv
37+ , pzcuQuotaUser
38+ , pzcuPrettyPrint
39+ , pzcuUploadProtocol
40+ , pzcuPp
41+ , pzcuAccessToken
42+ , pzcuUploadType
43+ , pzcuZone
44+ , pzcuPayload
45+ , pzcuBearerToken
46+ , pzcuKey
47+ , pzcuClusterId
48+ , pzcuProjectId
49+ , pzcuOAuthToken
50+ , pzcuFields
51+ , pzcuCallback
52+ ) where
53+
54+import Network.Google.Container.Types
55+import Network.Google.Prelude
56+
57+-- | A resource alias for @ContainerProjectsZonesClustersUpdate@ method which the
58+-- 'ProjectsZonesClustersUpdate'' request conforms to.
59+type ProjectsZonesClustersUpdateResource =
60+ "v1" :>
61+ "projects" :>
62+ Capture "projectId" Text :>
63+ "zones" :>
64+ Capture "zone" Text :>
65+ "clusters" :>
66+ Capture "clusterId" Text :>
67+ QueryParam "$.xgafv" Text :>
68+ QueryParam "upload_protocol" Text :>
69+ QueryParam "pp" Bool :>
70+ QueryParam "access_token" Text :>
71+ QueryParam "uploadType" Text :>
72+ QueryParam "bearer_token" Text :>
73+ QueryParam "callback" Text :>
74+ QueryParam "quotaUser" Text :>
75+ QueryParam "prettyPrint" Bool :>
76+ QueryParam "fields" Text :>
77+ QueryParam "key" AuthKey :>
78+ QueryParam "oauth_token" OAuthToken :>
79+ QueryParam "alt" AltJSON :>
80+ ReqBody '[JSON]
81+ UpdateClusterRequest
82+ :> Put '[JSON] Operation
83+
84+-- | Update settings of a specific cluster.
85+--
86+-- /See:/ 'projectsZonesClustersUpdate'' smart constructor.
87+data ProjectsZonesClustersUpdate' = ProjectsZonesClustersUpdate'
88+ { _pzcuXgafv :: !(Maybe Text)
89+ , _pzcuQuotaUser :: !(Maybe Text)
90+ , _pzcuPrettyPrint :: !Bool
91+ , _pzcuUploadProtocol :: !(Maybe Text)
92+ , _pzcuPp :: !Bool
93+ , _pzcuAccessToken :: !(Maybe Text)
94+ , _pzcuUploadType :: !(Maybe Text)
95+ , _pzcuZone :: !Text
96+ , _pzcuPayload :: !UpdateClusterRequest
97+ , _pzcuBearerToken :: !(Maybe Text)
98+ , _pzcuKey :: !(Maybe AuthKey)
99+ , _pzcuClusterId :: !Text
100+ , _pzcuProjectId :: !Text
101+ , _pzcuOAuthToken :: !(Maybe OAuthToken)
102+ , _pzcuFields :: !(Maybe Text)
103+ , _pzcuCallback :: !(Maybe Text)
104+ } deriving (Eq,Show,Data,Typeable,Generic)
105+
106+-- | Creates a value of 'ProjectsZonesClustersUpdate'' with the minimum fields required to make a request.
107+--
108+-- Use one of the following lenses to modify other fields as desired:
109+--
110+-- * 'pzcuXgafv'
111+--
112+-- * 'pzcuQuotaUser'
113+--
114+-- * 'pzcuPrettyPrint'
115+--
116+-- * 'pzcuUploadProtocol'
117+--
118+-- * 'pzcuPp'
119+--
120+-- * 'pzcuAccessToken'
121+--
122+-- * 'pzcuUploadType'
123+--
124+-- * 'pzcuZone'
125+--
126+-- * 'pzcuPayload'
127+--
128+-- * 'pzcuBearerToken'
129+--
130+-- * 'pzcuKey'
131+--
132+-- * 'pzcuClusterId'
133+--
134+-- * 'pzcuProjectId'
135+--
136+-- * 'pzcuOAuthToken'
137+--
138+-- * 'pzcuFields'
139+--
140+-- * 'pzcuCallback'
141+projectsZonesClustersUpdate'
142+ :: Text -- ^ 'zone'
143+ -> UpdateClusterRequest -- ^ 'payload'
144+ -> Text -- ^ 'clusterId'
145+ -> Text -- ^ 'projectId'
146+ -> ProjectsZonesClustersUpdate'
147+projectsZonesClustersUpdate' pPzcuZone_ pPzcuPayload_ pPzcuClusterId_ pPzcuProjectId_ =
148+ ProjectsZonesClustersUpdate'
149+ { _pzcuXgafv = Nothing
150+ , _pzcuQuotaUser = Nothing
151+ , _pzcuPrettyPrint = True
152+ , _pzcuUploadProtocol = Nothing
153+ , _pzcuPp = True
154+ , _pzcuAccessToken = Nothing
155+ , _pzcuUploadType = Nothing
156+ , _pzcuZone = pPzcuZone_
157+ , _pzcuPayload = pPzcuPayload_
158+ , _pzcuBearerToken = Nothing
159+ , _pzcuKey = Nothing
160+ , _pzcuClusterId = pPzcuClusterId_
161+ , _pzcuProjectId = pPzcuProjectId_
162+ , _pzcuOAuthToken = Nothing
163+ , _pzcuFields = Nothing
164+ , _pzcuCallback = Nothing
165+ }
166+
167+-- | V1 error format.
168+pzcuXgafv :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
169+pzcuXgafv
170+ = lens _pzcuXgafv (\ s a -> s{_pzcuXgafv = a})
171+
172+-- | Available to use for quota purposes for server-side applications. Can be
173+-- any arbitrary string assigned to a user, but should not exceed 40
174+-- characters.
175+pzcuQuotaUser :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
176+pzcuQuotaUser
177+ = lens _pzcuQuotaUser
178+ (\ s a -> s{_pzcuQuotaUser = a})
179+
180+-- | Returns response with indentations and line breaks.
181+pzcuPrettyPrint :: Lens' ProjectsZonesClustersUpdate' Bool
182+pzcuPrettyPrint
183+ = lens _pzcuPrettyPrint
184+ (\ s a -> s{_pzcuPrettyPrint = a})
185+
186+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
187+pzcuUploadProtocol :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
188+pzcuUploadProtocol
189+ = lens _pzcuUploadProtocol
190+ (\ s a -> s{_pzcuUploadProtocol = a})
191+
192+-- | Pretty-print response.
193+pzcuPp :: Lens' ProjectsZonesClustersUpdate' Bool
194+pzcuPp = lens _pzcuPp (\ s a -> s{_pzcuPp = a})
195+
196+-- | OAuth access token.
197+pzcuAccessToken :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
198+pzcuAccessToken
199+ = lens _pzcuAccessToken
200+ (\ s a -> s{_pzcuAccessToken = a})
201+
202+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
203+pzcuUploadType :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
204+pzcuUploadType
205+ = lens _pzcuUploadType
206+ (\ s a -> s{_pzcuUploadType = a})
207+
208+-- | The name of the Google Compute Engine
209+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
210+pzcuZone :: Lens' ProjectsZonesClustersUpdate' Text
211+pzcuZone = lens _pzcuZone (\ s a -> s{_pzcuZone = a})
212+
213+-- | Multipart request metadata.
214+pzcuPayload :: Lens' ProjectsZonesClustersUpdate' UpdateClusterRequest
215+pzcuPayload
216+ = lens _pzcuPayload (\ s a -> s{_pzcuPayload = a})
217+
218+-- | OAuth bearer token.
219+pzcuBearerToken :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
220+pzcuBearerToken
221+ = lens _pzcuBearerToken
222+ (\ s a -> s{_pzcuBearerToken = a})
223+
224+-- | API key. Your API key identifies your project and provides you with API
225+-- access, quota, and reports. Required unless you provide an OAuth 2.0
226+-- token.
227+pzcuKey :: Lens' ProjectsZonesClustersUpdate' (Maybe AuthKey)
228+pzcuKey = lens _pzcuKey (\ s a -> s{_pzcuKey = a})
229+
230+-- | The name of the cluster to upgrade.
231+pzcuClusterId :: Lens' ProjectsZonesClustersUpdate' Text
232+pzcuClusterId
233+ = lens _pzcuClusterId
234+ (\ s a -> s{_pzcuClusterId = a})
235+
236+-- | The Google Developers Console [project ID or project
237+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
238+pzcuProjectId :: Lens' ProjectsZonesClustersUpdate' Text
239+pzcuProjectId
240+ = lens _pzcuProjectId
241+ (\ s a -> s{_pzcuProjectId = a})
242+
243+-- | OAuth 2.0 token for the current user.
244+pzcuOAuthToken :: Lens' ProjectsZonesClustersUpdate' (Maybe OAuthToken)
245+pzcuOAuthToken
246+ = lens _pzcuOAuthToken
247+ (\ s a -> s{_pzcuOAuthToken = a})
248+
249+-- | Selector specifying which fields to include in a partial response.
250+pzcuFields :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
251+pzcuFields
252+ = lens _pzcuFields (\ s a -> s{_pzcuFields = a})
253+
254+-- | JSONP
255+pzcuCallback :: Lens' ProjectsZonesClustersUpdate' (Maybe Text)
256+pzcuCallback
257+ = lens _pzcuCallback (\ s a -> s{_pzcuCallback = a})
258+
259+instance GoogleAuth ProjectsZonesClustersUpdate'
260+ where
261+ _AuthKey = pzcuKey . _Just
262+ _AuthToken = pzcuOAuthToken . _Just
263+
264+instance GoogleRequest ProjectsZonesClustersUpdate'
265+ where
266+ type Rs ProjectsZonesClustersUpdate' = Operation
267+ request = requestWith containerRequest
268+ requestWith rq ProjectsZonesClustersUpdate'{..}
269+ = go _pzcuProjectId _pzcuZone _pzcuClusterId
270+ _pzcuXgafv
271+ _pzcuUploadProtocol
272+ (Just _pzcuPp)
273+ _pzcuAccessToken
274+ _pzcuUploadType
275+ _pzcuBearerToken
276+ _pzcuCallback
277+ _pzcuQuotaUser
278+ (Just _pzcuPrettyPrint)
279+ _pzcuFields
280+ _pzcuKey
281+ _pzcuOAuthToken
282+ (Just AltJSON)
283+ _pzcuPayload
284+ where go
285+ = clientBuild
286+ (Proxy :: Proxy ProjectsZonesClustersUpdateResource)
287+ rq
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/GetServerConfig.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.Container.Projects.Zones.GetServerConfig
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 configuration info about the Container Engine service.
24+--
25+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesGetServerConfig@.
26+module Network.Google.Resource.Container.Projects.Zones.GetServerConfig
27+ (
28+ -- * REST Resource
29+ ProjectsZonesGetServerConfigResource
30+
31+ -- * Creating a Request
32+ , projectsZonesGetServerConfig'
33+ , ProjectsZonesGetServerConfig'
34+
35+ -- * Request Lenses
36+ , pzgscXgafv
37+ , pzgscQuotaUser
38+ , pzgscPrettyPrint
39+ , pzgscUploadProtocol
40+ , pzgscPp
41+ , pzgscAccessToken
42+ , pzgscUploadType
43+ , pzgscZone
44+ , pzgscBearerToken
45+ , pzgscKey
46+ , pzgscProjectId
47+ , pzgscOAuthToken
48+ , pzgscFields
49+ , pzgscCallback
50+ ) where
51+
52+import Network.Google.Container.Types
53+import Network.Google.Prelude
54+
55+-- | A resource alias for @ContainerProjectsZonesGetServerConfig@ method which the
56+-- 'ProjectsZonesGetServerConfig'' request conforms to.
57+type ProjectsZonesGetServerConfigResource =
58+ "v1" :>
59+ "projects" :>
60+ Capture "projectId" Text :>
61+ "zones" :>
62+ Capture "zone" Text :>
63+ "serverconfig" :>
64+ QueryParam "$.xgafv" Text :>
65+ QueryParam "upload_protocol" Text :>
66+ QueryParam "pp" Bool :>
67+ QueryParam "access_token" Text :>
68+ QueryParam "uploadType" Text :>
69+ QueryParam "bearer_token" Text :>
70+ QueryParam "callback" Text :>
71+ QueryParam "quotaUser" Text :>
72+ QueryParam "prettyPrint" Bool :>
73+ QueryParam "fields" Text :>
74+ QueryParam "key" AuthKey :>
75+ QueryParam "oauth_token" OAuthToken :>
76+ QueryParam "alt" AltJSON :>
77+ Get '[JSON] ServerConfig
78+
79+-- | Returns configuration info about the Container Engine service.
80+--
81+-- /See:/ 'projectsZonesGetServerConfig'' smart constructor.
82+data ProjectsZonesGetServerConfig' = ProjectsZonesGetServerConfig'
83+ { _pzgscXgafv :: !(Maybe Text)
84+ , _pzgscQuotaUser :: !(Maybe Text)
85+ , _pzgscPrettyPrint :: !Bool
86+ , _pzgscUploadProtocol :: !(Maybe Text)
87+ , _pzgscPp :: !Bool
88+ , _pzgscAccessToken :: !(Maybe Text)
89+ , _pzgscUploadType :: !(Maybe Text)
90+ , _pzgscZone :: !Text
91+ , _pzgscBearerToken :: !(Maybe Text)
92+ , _pzgscKey :: !(Maybe AuthKey)
93+ , _pzgscProjectId :: !Text
94+ , _pzgscOAuthToken :: !(Maybe OAuthToken)
95+ , _pzgscFields :: !(Maybe Text)
96+ , _pzgscCallback :: !(Maybe Text)
97+ } deriving (Eq,Show,Data,Typeable,Generic)
98+
99+-- | Creates a value of 'ProjectsZonesGetServerConfig'' with the minimum fields required to make a request.
100+--
101+-- Use one of the following lenses to modify other fields as desired:
102+--
103+-- * 'pzgscXgafv'
104+--
105+-- * 'pzgscQuotaUser'
106+--
107+-- * 'pzgscPrettyPrint'
108+--
109+-- * 'pzgscUploadProtocol'
110+--
111+-- * 'pzgscPp'
112+--
113+-- * 'pzgscAccessToken'
114+--
115+-- * 'pzgscUploadType'
116+--
117+-- * 'pzgscZone'
118+--
119+-- * 'pzgscBearerToken'
120+--
121+-- * 'pzgscKey'
122+--
123+-- * 'pzgscProjectId'
124+--
125+-- * 'pzgscOAuthToken'
126+--
127+-- * 'pzgscFields'
128+--
129+-- * 'pzgscCallback'
130+projectsZonesGetServerConfig'
131+ :: Text -- ^ 'zone'
132+ -> Text -- ^ 'projectId'
133+ -> ProjectsZonesGetServerConfig'
134+projectsZonesGetServerConfig' pPzgscZone_ pPzgscProjectId_ =
135+ ProjectsZonesGetServerConfig'
136+ { _pzgscXgafv = Nothing
137+ , _pzgscQuotaUser = Nothing
138+ , _pzgscPrettyPrint = True
139+ , _pzgscUploadProtocol = Nothing
140+ , _pzgscPp = True
141+ , _pzgscAccessToken = Nothing
142+ , _pzgscUploadType = Nothing
143+ , _pzgscZone = pPzgscZone_
144+ , _pzgscBearerToken = Nothing
145+ , _pzgscKey = Nothing
146+ , _pzgscProjectId = pPzgscProjectId_
147+ , _pzgscOAuthToken = Nothing
148+ , _pzgscFields = Nothing
149+ , _pzgscCallback = Nothing
150+ }
151+
152+-- | V1 error format.
153+pzgscXgafv :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
154+pzgscXgafv
155+ = lens _pzgscXgafv (\ s a -> s{_pzgscXgafv = a})
156+
157+-- | Available to use for quota purposes for server-side applications. Can be
158+-- any arbitrary string assigned to a user, but should not exceed 40
159+-- characters.
160+pzgscQuotaUser :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
161+pzgscQuotaUser
162+ = lens _pzgscQuotaUser
163+ (\ s a -> s{_pzgscQuotaUser = a})
164+
165+-- | Returns response with indentations and line breaks.
166+pzgscPrettyPrint :: Lens' ProjectsZonesGetServerConfig' Bool
167+pzgscPrettyPrint
168+ = lens _pzgscPrettyPrint
169+ (\ s a -> s{_pzgscPrettyPrint = a})
170+
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
172+pzgscUploadProtocol :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
173+pzgscUploadProtocol
174+ = lens _pzgscUploadProtocol
175+ (\ s a -> s{_pzgscUploadProtocol = a})
176+
177+-- | Pretty-print response.
178+pzgscPp :: Lens' ProjectsZonesGetServerConfig' Bool
179+pzgscPp = lens _pzgscPp (\ s a -> s{_pzgscPp = a})
180+
181+-- | OAuth access token.
182+pzgscAccessToken :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
183+pzgscAccessToken
184+ = lens _pzgscAccessToken
185+ (\ s a -> s{_pzgscAccessToken = a})
186+
187+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
188+pzgscUploadType :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
189+pzgscUploadType
190+ = lens _pzgscUploadType
191+ (\ s a -> s{_pzgscUploadType = a})
192+
193+-- | The name of the Google Compute Engine
194+-- [zone](\/compute\/docs\/zones#available) to return operations for, or
195+-- \"-\" for all zones.
196+pzgscZone :: Lens' ProjectsZonesGetServerConfig' Text
197+pzgscZone
198+ = lens _pzgscZone (\ s a -> s{_pzgscZone = a})
199+
200+-- | OAuth bearer token.
201+pzgscBearerToken :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
202+pzgscBearerToken
203+ = lens _pzgscBearerToken
204+ (\ s a -> s{_pzgscBearerToken = a})
205+
206+-- | API key. Your API key identifies your project and provides you with API
207+-- access, quota, and reports. Required unless you provide an OAuth 2.0
208+-- token.
209+pzgscKey :: Lens' ProjectsZonesGetServerConfig' (Maybe AuthKey)
210+pzgscKey = lens _pzgscKey (\ s a -> s{_pzgscKey = a})
211+
212+-- | The Google Developers Console [project ID or project
213+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
214+pzgscProjectId :: Lens' ProjectsZonesGetServerConfig' Text
215+pzgscProjectId
216+ = lens _pzgscProjectId
217+ (\ s a -> s{_pzgscProjectId = a})
218+
219+-- | OAuth 2.0 token for the current user.
220+pzgscOAuthToken :: Lens' ProjectsZonesGetServerConfig' (Maybe OAuthToken)
221+pzgscOAuthToken
222+ = lens _pzgscOAuthToken
223+ (\ s a -> s{_pzgscOAuthToken = a})
224+
225+-- | Selector specifying which fields to include in a partial response.
226+pzgscFields :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
227+pzgscFields
228+ = lens _pzgscFields (\ s a -> s{_pzgscFields = a})
229+
230+-- | JSONP
231+pzgscCallback :: Lens' ProjectsZonesGetServerConfig' (Maybe Text)
232+pzgscCallback
233+ = lens _pzgscCallback
234+ (\ s a -> s{_pzgscCallback = a})
235+
236+instance GoogleAuth ProjectsZonesGetServerConfig'
237+ where
238+ _AuthKey = pzgscKey . _Just
239+ _AuthToken = pzgscOAuthToken . _Just
240+
241+instance GoogleRequest ProjectsZonesGetServerConfig'
242+ where
243+ type Rs ProjectsZonesGetServerConfig' = ServerConfig
244+ request = requestWith containerRequest
245+ requestWith rq ProjectsZonesGetServerConfig'{..}
246+ = go _pzgscProjectId _pzgscZone _pzgscXgafv
247+ _pzgscUploadProtocol
248+ (Just _pzgscPp)
249+ _pzgscAccessToken
250+ _pzgscUploadType
251+ _pzgscBearerToken
252+ _pzgscCallback
253+ _pzgscQuotaUser
254+ (Just _pzgscPrettyPrint)
255+ _pzgscFields
256+ _pzgscKey
257+ _pzgscOAuthToken
258+ (Just AltJSON)
259+ where go
260+ = clientBuild
261+ (Proxy :: Proxy ProjectsZonesGetServerConfigResource)
262+ rq
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Operations/Get.hs+123−47
@@ -22,7 +22,7 @@
2222--
2323-- | Gets the specified operation.
2424--
25−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesOperationsGet@.
25+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesOperationsGet@.
2626module Network.Google.Resource.Container.Projects.Zones.Operations.Get
2727 (
2828 -- * REST Resource
@@ -33,15 +33,21 @@ module Network.Google.Resource.Container.Projects.Zones.Operations.Get
3333 , ProjectsZonesOperationsGet'
3434
3535 -- * Request Lenses
36+ , pzogXgafv
3637 , pzogQuotaUser
3738 , pzogPrettyPrint
38− , pzogUserIP
39− , pzogZoneId
39+ , pzogUploadProtocol
40+ , pzogPp
41+ , pzogAccessToken
42+ , pzogUploadType
43+ , pzogZone
44+ , pzogBearerToken
4045 , pzogKey
4146 , pzogProjectId
4247 , pzogOperationId
4348 , pzogOAuthToken
4449 , pzogFields
50+ , pzogCallback
4551 ) where
4652
4753import Network.Google.Container.Types
@@ -50,45 +56,70 @@ import Network.Google.Prelude
5056-- | A resource alias for @ContainerProjectsZonesOperationsGet@ method which the
5157-- 'ProjectsZonesOperationsGet'' request conforms to.
5258type ProjectsZonesOperationsGetResource =
53− Capture "projectId" Text :>
54− "zones" :>
55− Capture "zoneId" Text :>
56− "operations" :>
57− Capture "operationId" Text :>
58− QueryParam "quotaUser" Text :>
59− QueryParam "prettyPrint" Bool :>
60− QueryParam "userIp" Text :>
61− QueryParam "fields" Text :>
62− QueryParam "key" AuthKey :>
63− QueryParam "oauth_token" OAuthToken :>
64− QueryParam "alt" AltJSON :> Get '[JSON] Operation
59+ "v1" :>
60+ "projects" :>
61+ Capture "projectId" Text :>
62+ "zones" :>
63+ Capture "zone" Text :>
64+ "operations" :>
65+ Capture "operationId" Text :>
66+ QueryParam "$.xgafv" Text :>
67+ QueryParam "upload_protocol" Text :>
68+ QueryParam "pp" Bool :>
69+ QueryParam "access_token" Text :>
70+ QueryParam "uploadType" Text :>
71+ QueryParam "bearer_token" Text :>
72+ QueryParam "callback" Text :>
73+ QueryParam "quotaUser" Text :>
74+ QueryParam "prettyPrint" Bool :>
75+ QueryParam "fields" Text :>
76+ QueryParam "key" AuthKey :>
77+ QueryParam "oauth_token" OAuthToken :>
78+ QueryParam "alt" AltJSON :>
79+ Get '[JSON] Operation
6580
6681-- | Gets the specified operation.
6782--
6883-- /See:/ 'projectsZonesOperationsGet'' smart constructor.
6984data ProjectsZonesOperationsGet' = ProjectsZonesOperationsGet'
70− { _pzogQuotaUser :: !(Maybe Text)
71− , _pzogPrettyPrint :: !Bool
72− , _pzogUserIP :: !(Maybe Text)
73− , _pzogZoneId :: !Text
74− , _pzogKey :: !(Maybe AuthKey)
75− , _pzogProjectId :: !Text
76− , _pzogOperationId :: !Text
77− , _pzogOAuthToken :: !(Maybe OAuthToken)
78− , _pzogFields :: !(Maybe Text)
85+ { _pzogXgafv :: !(Maybe Text)
86+ , _pzogQuotaUser :: !(Maybe Text)
87+ , _pzogPrettyPrint :: !Bool
88+ , _pzogUploadProtocol :: !(Maybe Text)
89+ , _pzogPp :: !Bool
90+ , _pzogAccessToken :: !(Maybe Text)
91+ , _pzogUploadType :: !(Maybe Text)
92+ , _pzogZone :: !Text
93+ , _pzogBearerToken :: !(Maybe Text)
94+ , _pzogKey :: !(Maybe AuthKey)
95+ , _pzogProjectId :: !Text
96+ , _pzogOperationId :: !Text
97+ , _pzogOAuthToken :: !(Maybe OAuthToken)
98+ , _pzogFields :: !(Maybe Text)
99+ , _pzogCallback :: !(Maybe Text)
79100 } deriving (Eq,Show,Data,Typeable,Generic)
80101
81102-- | Creates a value of 'ProjectsZonesOperationsGet'' with the minimum fields required to make a request.
82103--
83104-- Use one of the following lenses to modify other fields as desired:
84105--
106+-- * 'pzogXgafv'
107+--
85108-- * 'pzogQuotaUser'
86109--
87110-- * 'pzogPrettyPrint'
88111--
89−-- * 'pzogUserIP'
112+-- * 'pzogUploadProtocol'
113+--
114+-- * 'pzogPp'
115+--
116+-- * 'pzogAccessToken'
90117--
91−-- * 'pzogZoneId'
118+-- * 'pzogUploadType'
119+--
120+-- * 'pzogZone'
121+--
122+-- * 'pzogBearerToken'
92123--
93124-- * 'pzogKey'
94125--
@@ -99,27 +130,40 @@ data ProjectsZonesOperationsGet' = ProjectsZonesOperationsGet'
99130-- * 'pzogOAuthToken'
100131--
101132-- * 'pzogFields'
133+--
134+-- * 'pzogCallback'
102135projectsZonesOperationsGet'
103− :: Text -- ^ 'zoneId'
136+ :: Text -- ^ 'zone'
104137 -> Text -- ^ 'projectId'
105138 -> Text -- ^ 'operationId'
106139 -> ProjectsZonesOperationsGet'
107−projectsZonesOperationsGet' pPzogZoneId_ pPzogProjectId_ pPzogOperationId_ =
140+projectsZonesOperationsGet' pPzogZone_ pPzogProjectId_ pPzogOperationId_ =
108141 ProjectsZonesOperationsGet'
109− { _pzogQuotaUser = Nothing
142+ { _pzogXgafv = Nothing
143+ , _pzogQuotaUser = Nothing
110144 , _pzogPrettyPrint = True
111− , _pzogUserIP = Nothing
112− , _pzogZoneId = pPzogZoneId_
145+ , _pzogUploadProtocol = Nothing
146+ , _pzogPp = True
147+ , _pzogAccessToken = Nothing
148+ , _pzogUploadType = Nothing
149+ , _pzogZone = pPzogZone_
150+ , _pzogBearerToken = Nothing
113151 , _pzogKey = Nothing
114152 , _pzogProjectId = pPzogProjectId_
115153 , _pzogOperationId = pPzogOperationId_
116154 , _pzogOAuthToken = Nothing
117155 , _pzogFields = Nothing
156+ , _pzogCallback = Nothing
118157 }
119158
159+-- | V1 error format.
160+pzogXgafv :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
161+pzogXgafv
162+ = lens _pzogXgafv (\ s a -> s{_pzogXgafv = a})
163+
120164-- | Available to use for quota purposes for server-side applications. Can be
121165-- any arbitrary string assigned to a user, but should not exceed 40
122−-- characters. Overrides userIp if both are provided.
166+-- characters.
123167pzogQuotaUser :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
124168pzogQuotaUser
125169 = lens _pzogQuotaUser
@@ -131,18 +175,38 @@ pzogPrettyPrint
131175 = lens _pzogPrettyPrint
132176 (\ s a -> s{_pzogPrettyPrint = a})
133177
134−-- | IP address of the site where the request originates. Use this if you
135−-- want to enforce per-user limits.
136−pzogUserIP :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
137−pzogUserIP
138− = lens _pzogUserIP (\ s a -> s{_pzogUserIP = a})
178+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
179+pzogUploadProtocol :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
180+pzogUploadProtocol
181+ = lens _pzogUploadProtocol
182+ (\ s a -> s{_pzogUploadProtocol = a})
183+
184+-- | Pretty-print response.
185+pzogPp :: Lens' ProjectsZonesOperationsGet' Bool
186+pzogPp = lens _pzogPp (\ s a -> s{_pzogPp = a})
187+
188+-- | OAuth access token.
189+pzogAccessToken :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
190+pzogAccessToken
191+ = lens _pzogAccessToken
192+ (\ s a -> s{_pzogAccessToken = a})
139193
140−-- | The name of the Google Compute Engine zone in which the operation
141−-- resides. This is always the same zone as the cluster with which the
142−-- operation is associated.
143−pzogZoneId :: Lens' ProjectsZonesOperationsGet' Text
144−pzogZoneId
145− = lens _pzogZoneId (\ s a -> s{_pzogZoneId = a})
194+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
195+pzogUploadType :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
196+pzogUploadType
197+ = lens _pzogUploadType
198+ (\ s a -> s{_pzogUploadType = a})
199+
200+-- | The name of the Google Compute Engine
201+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
202+pzogZone :: Lens' ProjectsZonesOperationsGet' Text
203+pzogZone = lens _pzogZone (\ s a -> s{_pzogZone = a})
204+
205+-- | OAuth bearer token.
206+pzogBearerToken :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
207+pzogBearerToken
208+ = lens _pzogBearerToken
209+ (\ s a -> s{_pzogBearerToken = a})
146210
147211-- | API key. Your API key identifies your project and provides you with API
148212-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -150,13 +214,14 @@ pzogZoneId
150214pzogKey :: Lens' ProjectsZonesOperationsGet' (Maybe AuthKey)
151215pzogKey = lens _pzogKey (\ s a -> s{_pzogKey = a})
152216
153−-- | The Google Developers Console project ID or project number.
217+-- | The Google Developers Console [project ID or project
218+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
154219pzogProjectId :: Lens' ProjectsZonesOperationsGet' Text
155220pzogProjectId
156221 = lens _pzogProjectId
157222 (\ s a -> s{_pzogProjectId = a})
158223
159−-- | The server-assigned name of the operation.
224+-- | The server-assigned \`name\` of the operation.
160225pzogOperationId :: Lens' ProjectsZonesOperationsGet' Text
161226pzogOperationId
162227 = lens _pzogOperationId
@@ -173,6 +238,11 @@ pzogFields :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
173238pzogFields
174239 = lens _pzogFields (\ s a -> s{_pzogFields = a})
175240
241+-- | JSONP
242+pzogCallback :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
243+pzogCallback
244+ = lens _pzogCallback (\ s a -> s{_pzogCallback = a})
245+
176246instance GoogleAuth ProjectsZonesOperationsGet' where
177247 _AuthKey = pzogKey . _Just
178248 _AuthToken = pzogOAuthToken . _Just
@@ -182,10 +252,16 @@ instance GoogleRequest ProjectsZonesOperationsGet'
182252 type Rs ProjectsZonesOperationsGet' = Operation
183253 request = requestWith containerRequest
184254 requestWith rq ProjectsZonesOperationsGet'{..}
185− = go _pzogProjectId _pzogZoneId _pzogOperationId
255+ = go _pzogProjectId _pzogZone _pzogOperationId
256+ _pzogXgafv
257+ _pzogUploadProtocol
258+ (Just _pzogPp)
259+ _pzogAccessToken
260+ _pzogUploadType
261+ _pzogBearerToken
262+ _pzogCallback
186263 _pzogQuotaUser
187264 (Just _pzogPrettyPrint)
188− _pzogUserIP
189265 _pzogFields
190266 _pzogKey
191267 _pzogOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Operations/List.hs+124−46
@@ -20,9 +20,9 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- | Lists all operations in a project in a specific zone.
23+-- | Lists all operations in a project in a specific zone or all zones.
2424--
25−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesOperationsList@.
25+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesOperationsList@.
2626module Network.Google.Resource.Container.Projects.Zones.Operations.List
2727 (
2828 -- * REST Resource
@@ -33,14 +33,20 @@ module Network.Google.Resource.Container.Projects.Zones.Operations.List
3333 , ProjectsZonesOperationsList'
3434
3535 -- * Request Lenses
36+ , pzolXgafv
3637 , pzolQuotaUser
3738 , pzolPrettyPrint
38− , pzolUserIP
39− , pzolZoneId
39+ , pzolUploadProtocol
40+ , pzolPp
41+ , pzolAccessToken
42+ , pzolUploadType
43+ , pzolZone
44+ , pzolBearerToken
4045 , pzolKey
4146 , pzolProjectId
4247 , pzolOAuthToken
4348 , pzolFields
49+ , pzolCallback
4450 ) where
4551
4652import Network.Google.Container.Types
@@ -49,44 +55,68 @@ import Network.Google.Prelude
4955-- | A resource alias for @ContainerProjectsZonesOperationsList@ method which the
5056-- 'ProjectsZonesOperationsList'' request conforms to.
5157type ProjectsZonesOperationsListResource =
52− Capture "projectId" Text :>
53− "zones" :>
54− Capture "zoneId" Text :>
55− "operations" :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
63− Get '[JSON] ListOperationsResponse
64−
65−-- | Lists all operations in a project in a specific zone.
58+ "v1" :>
59+ "projects" :>
60+ Capture "projectId" Text :>
61+ "zones" :>
62+ Capture "zone" Text :>
63+ "operations" :>
64+ QueryParam "$.xgafv" Text :>
65+ QueryParam "upload_protocol" Text :>
66+ QueryParam "pp" Bool :>
67+ QueryParam "access_token" Text :>
68+ QueryParam "uploadType" Text :>
69+ QueryParam "bearer_token" Text :>
70+ QueryParam "callback" Text :>
71+ QueryParam "quotaUser" Text :>
72+ QueryParam "prettyPrint" Bool :>
73+ QueryParam "fields" Text :>
74+ QueryParam "key" AuthKey :>
75+ QueryParam "oauth_token" OAuthToken :>
76+ QueryParam "alt" AltJSON :>
77+ Get '[JSON] ListOperationsResponse
78+
79+-- | Lists all operations in a project in a specific zone or all zones.
6680--
6781-- /See:/ 'projectsZonesOperationsList'' smart constructor.
6882data ProjectsZonesOperationsList' = ProjectsZonesOperationsList'
69− { _pzolQuotaUser :: !(Maybe Text)
70− , _pzolPrettyPrint :: !Bool
71− , _pzolUserIP :: !(Maybe Text)
72− , _pzolZoneId :: !Text
73− , _pzolKey :: !(Maybe AuthKey)
74− , _pzolProjectId :: !Text
75− , _pzolOAuthToken :: !(Maybe OAuthToken)
76− , _pzolFields :: !(Maybe Text)
83+ { _pzolXgafv :: !(Maybe Text)
84+ , _pzolQuotaUser :: !(Maybe Text)
85+ , _pzolPrettyPrint :: !Bool
86+ , _pzolUploadProtocol :: !(Maybe Text)
87+ , _pzolPp :: !Bool
88+ , _pzolAccessToken :: !(Maybe Text)
89+ , _pzolUploadType :: !(Maybe Text)
90+ , _pzolZone :: !Text
91+ , _pzolBearerToken :: !(Maybe Text)
92+ , _pzolKey :: !(Maybe AuthKey)
93+ , _pzolProjectId :: !Text
94+ , _pzolOAuthToken :: !(Maybe OAuthToken)
95+ , _pzolFields :: !(Maybe Text)
96+ , _pzolCallback :: !(Maybe Text)
7797 } deriving (Eq,Show,Data,Typeable,Generic)
7898
7999-- | Creates a value of 'ProjectsZonesOperationsList'' with the minimum fields required to make a request.
80100--
81101-- Use one of the following lenses to modify other fields as desired:
82102--
103+-- * 'pzolXgafv'
104+--
83105-- * 'pzolQuotaUser'
84106--
85107-- * 'pzolPrettyPrint'
86108--
87−-- * 'pzolUserIP'
109+-- * 'pzolUploadProtocol'
110+--
111+-- * 'pzolPp'
112+--
113+-- * 'pzolAccessToken'
88114--
89−-- * 'pzolZoneId'
115+-- * 'pzolUploadType'
116+--
117+-- * 'pzolZone'
118+--
119+-- * 'pzolBearerToken'
90120--
91121-- * 'pzolKey'
92122--
@@ -95,25 +125,38 @@ data ProjectsZonesOperationsList' = ProjectsZonesOperationsList'
95125-- * 'pzolOAuthToken'
96126--
97127-- * 'pzolFields'
128+--
129+-- * 'pzolCallback'
98130projectsZonesOperationsList'
99− :: Text -- ^ 'zoneId'
131+ :: Text -- ^ 'zone'
100132 -> Text -- ^ 'projectId'
101133 -> ProjectsZonesOperationsList'
102−projectsZonesOperationsList' pPzolZoneId_ pPzolProjectId_ =
134+projectsZonesOperationsList' pPzolZone_ pPzolProjectId_ =
103135 ProjectsZonesOperationsList'
104− { _pzolQuotaUser = Nothing
136+ { _pzolXgafv = Nothing
137+ , _pzolQuotaUser = Nothing
105138 , _pzolPrettyPrint = True
106− , _pzolUserIP = Nothing
107− , _pzolZoneId = pPzolZoneId_
139+ , _pzolUploadProtocol = Nothing
140+ , _pzolPp = True
141+ , _pzolAccessToken = Nothing
142+ , _pzolUploadType = Nothing
143+ , _pzolZone = pPzolZone_
144+ , _pzolBearerToken = Nothing
108145 , _pzolKey = Nothing
109146 , _pzolProjectId = pPzolProjectId_
110147 , _pzolOAuthToken = Nothing
111148 , _pzolFields = Nothing
149+ , _pzolCallback = Nothing
112150 }
113151
152+-- | V1 error format.
153+pzolXgafv :: Lens' ProjectsZonesOperationsList' (Maybe Text)
154+pzolXgafv
155+ = lens _pzolXgafv (\ s a -> s{_pzolXgafv = a})
156+
114157-- | Available to use for quota purposes for server-side applications. Can be
115158-- any arbitrary string assigned to a user, but should not exceed 40
116−-- characters. Overrides userIp if both are provided.
159+-- characters.
117160pzolQuotaUser :: Lens' ProjectsZonesOperationsList' (Maybe Text)
118161pzolQuotaUser
119162 = lens _pzolQuotaUser
@@ -125,16 +168,39 @@ pzolPrettyPrint
125168 = lens _pzolPrettyPrint
126169 (\ s a -> s{_pzolPrettyPrint = a})
127170
128−-- | IP address of the site where the request originates. Use this if you
129−-- want to enforce per-user limits.
130−pzolUserIP :: Lens' ProjectsZonesOperationsList' (Maybe Text)
131−pzolUserIP
132− = lens _pzolUserIP (\ s a -> s{_pzolUserIP = a})
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
172+pzolUploadProtocol :: Lens' ProjectsZonesOperationsList' (Maybe Text)
173+pzolUploadProtocol
174+ = lens _pzolUploadProtocol
175+ (\ s a -> s{_pzolUploadProtocol = a})
176+
177+-- | Pretty-print response.
178+pzolPp :: Lens' ProjectsZonesOperationsList' Bool
179+pzolPp = lens _pzolPp (\ s a -> s{_pzolPp = a})
180+
181+-- | OAuth access token.
182+pzolAccessToken :: Lens' ProjectsZonesOperationsList' (Maybe Text)
183+pzolAccessToken
184+ = lens _pzolAccessToken
185+ (\ s a -> s{_pzolAccessToken = a})
133186
134−-- | The name of the Google Compute Engine zone to return operations for.
135−pzolZoneId :: Lens' ProjectsZonesOperationsList' Text
136−pzolZoneId
137− = lens _pzolZoneId (\ s a -> s{_pzolZoneId = a})
187+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
188+pzolUploadType :: Lens' ProjectsZonesOperationsList' (Maybe Text)
189+pzolUploadType
190+ = lens _pzolUploadType
191+ (\ s a -> s{_pzolUploadType = a})
192+
193+-- | The name of the Google Compute Engine
194+-- [zone](\/compute\/docs\/zones#available) to return operations for, or
195+-- \"-\" for all zones.
196+pzolZone :: Lens' ProjectsZonesOperationsList' Text
197+pzolZone = lens _pzolZone (\ s a -> s{_pzolZone = a})
198+
199+-- | OAuth bearer token.
200+pzolBearerToken :: Lens' ProjectsZonesOperationsList' (Maybe Text)
201+pzolBearerToken
202+ = lens _pzolBearerToken
203+ (\ s a -> s{_pzolBearerToken = a})
138204
139205-- | API key. Your API key identifies your project and provides you with API
140206-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -142,7 +208,8 @@ pzolZoneId
142208pzolKey :: Lens' ProjectsZonesOperationsList' (Maybe AuthKey)
143209pzolKey = lens _pzolKey (\ s a -> s{_pzolKey = a})
144210
145−-- | The Google Developers Console project ID or project number.
211+-- | The Google Developers Console [project ID or project
212+-- number](https:\/\/developers.google.com\/console\/help\/new\/#projectnumber).
146213pzolProjectId :: Lens' ProjectsZonesOperationsList' Text
147214pzolProjectId
148215 = lens _pzolProjectId
@@ -159,6 +226,11 @@ pzolFields :: Lens' ProjectsZonesOperationsList' (Maybe Text)
159226pzolFields
160227 = lens _pzolFields (\ s a -> s{_pzolFields = a})
161228
229+-- | JSONP
230+pzolCallback :: Lens' ProjectsZonesOperationsList' (Maybe Text)
231+pzolCallback
232+ = lens _pzolCallback (\ s a -> s{_pzolCallback = a})
233+
162234instance GoogleAuth ProjectsZonesOperationsList'
163235 where
164236 _AuthKey = pzolKey . _Just
@@ -170,9 +242,15 @@ instance GoogleRequest ProjectsZonesOperationsList'
170242 ListOperationsResponse
171243 request = requestWith containerRequest
172244 requestWith rq ProjectsZonesOperationsList'{..}
173− = go _pzolProjectId _pzolZoneId _pzolQuotaUser
245+ = go _pzolProjectId _pzolZone _pzolXgafv
246+ _pzolUploadProtocol
247+ (Just _pzolPp)
248+ _pzolAccessToken
249+ _pzolUploadType
250+ _pzolBearerToken
251+ _pzolCallback
252+ _pzolQuotaUser
174253 (Just _pzolPrettyPrint)
175− _pzolUserIP
176254 _pzolFields
177255 _pzolKey
178256 _pzolOAuthToken
gogol-container/gogol-container.cabal+3−3
@@ -21,7 +21,7 @@ description:
2121 /Warning:/ This is an experimental prototype/preview release which is still
2222 under exploratory development and not intended for public use, caveat emptor!
2323 .
24− This library is compatible with version @v1beta1@
24+ This library is compatible with version @v1@
2525 of the API.
2626
2727source-repository head
@@ -37,12 +37,12 @@ library
3737 exposed-modules:
3838 Network.Google.Container
3939 , Network.Google.Container.Types
40− , Network.Google.Resource.Container.Projects.Clusters.List
41− , Network.Google.Resource.Container.Projects.Operations.List
4240 , Network.Google.Resource.Container.Projects.Zones.Clusters.Create
4341 , Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
4442 , Network.Google.Resource.Container.Projects.Zones.Clusters.Get
4543 , Network.Google.Resource.Container.Projects.Zones.Clusters.List
44+ , Network.Google.Resource.Container.Projects.Zones.Clusters.Update
45+ , Network.Google.Resource.Container.Projects.Zones.GetServerConfig
4646 , Network.Google.Resource.Container.Projects.Zones.Operations.Get
4747 , Network.Google.Resource.Container.Projects.Zones.Operations.List
4848
gogol-deploymentmanager/gen/Network/Google/DeploymentManager.hs+69−13
@@ -16,7 +16,7 @@
1616-- | The Deployment Manager API allows users to declaratively configure,
1717-- deploy and run complex solutions on the Google Cloud Platform.
1818--
19−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference>
19+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference>
2020module Network.Google.DeploymentManager
2121 (
2222 -- * API Declaration
@@ -24,6 +24,9 @@ module Network.Google.DeploymentManager
2424
2525 -- * Resources
2626
27+ -- ** DeploymentManagerDeploymentsCancelPreview
28+ , module Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
29+
2730 -- ** DeploymentManagerDeploymentsDelete
2831 , module Network.Google.Resource.DeploymentManager.Deployments.Delete
2932
@@ -39,6 +42,9 @@ module Network.Google.DeploymentManager
3942 -- ** DeploymentManagerDeploymentsPatch
4043 , module Network.Google.Resource.DeploymentManager.Deployments.Patch
4144
45+ -- ** DeploymentManagerDeploymentsStop
46+ , module Network.Google.Resource.DeploymentManager.Deployments.Stop
47+
4248 -- ** DeploymentManagerDeploymentsUpdate
4349 , module Network.Google.Resource.DeploymentManager.Deployments.Update
4450
@@ -71,6 +77,11 @@ module Network.Google.DeploymentManager
7177 , owidiValue
7278 , owidiKey
7379
80+ -- ** ConfigFile
81+ , ConfigFile
82+ , configFile
83+ , cfContent
84+
7485 -- ** DeploymentsUpdateCreatePolicy
7586 , DeploymentsUpdateCreatePolicy (..)
7687
@@ -80,15 +91,18 @@ module Network.Google.DeploymentManager
8091 , olrNextPageToken
8192 , olrOperations
8293
94+ -- ** ResourceUpdateWarningsItemDataItem
95+ , ResourceUpdateWarningsItemDataItem
96+ , resourceUpdateWarningsItemDataItem
97+ , ruwidiValue
98+ , ruwidiKey
99+
83100 -- ** TypesListResponse
84101 , TypesListResponse
85102 , typesListResponse
86103 , tlrNextPageToken
87104 , tlrTypes
88105
89− -- ** DeploymentsUpdateUpdatePolicy
90− , DeploymentsUpdateUpdatePolicy (..)
91−
92106 -- ** DeploymentsUpdateDeletePolicy
93107 , DeploymentsUpdateDeletePolicy (..)
94108
@@ -121,9 +135,6 @@ module Network.Google.DeploymentManager
121135 , oTargetLink
122136 , oClientOperationId
123137
124− -- ** DeploymentsPatchUpdatePolicy
125− , DeploymentsPatchUpdatePolicy (..)
126−
127138 -- ** DeploymentsPatchCreatePolicy
128139 , DeploymentsPatchCreatePolicy (..)
129140
@@ -137,16 +148,16 @@ module Network.Google.DeploymentManager
137148 , DeploymentUpdate
138149 , deploymentUpdate
139150 , duManifest
140− , duErrors
141151
142152 -- ** ResourceUpdate
143153 , ResourceUpdate
144154 , resourceUpdate
145155 , ruState
156+ , ruError
157+ , ruWarnings
146158 , ruIntent
147159 , ruManifest
148160 , ruFinalProperties
149− , ruErrors
150161 , ruProperties
151162
152163 -- ** Manifest
@@ -155,17 +166,30 @@ module Network.Google.DeploymentManager
155166 , mInsertTime
156167 , mLayout
157168 , mConfig
169+ , mExpandedConfig
158170 , mImports
159171 , mSelfLink
160172 , mName
161− , mEvaluatedConfig
162173 , mId
163174
175+ -- ** ResourceUpdateWarningsItem
176+ , ResourceUpdateWarningsItem
177+ , resourceUpdateWarningsItem
178+ , ruwiData
179+ , ruwiCode
180+ , ruwiMessage
181+
182+ -- ** DeploymentsCancelPreviewRequest
183+ , DeploymentsCancelPreviewRequest
184+ , deploymentsCancelPreviewRequest
185+ , dcprFingerprint
186+
164187 -- ** Resource
165188 , Resource
166189 , resource
167190 , rInsertTime
168191 , rURL
192+ , rWarnings
169193 , rUpdateTime
170194 , rName
171195 , rManifest
@@ -175,6 +199,13 @@ module Network.Google.DeploymentManager
175199 , rUpdate
176200 , rProperties
177201
202+ -- ** ResourceUpdateErrorErrorsItem
203+ , ResourceUpdateErrorErrorsItem
204+ , resourceUpdateErrorErrorsItem
205+ , rueeiLocation
206+ , rueeiCode
207+ , rueeiMessage
208+
178209 -- ** ManifestsListResponse
179210 , ManifestsListResponse
180211 , manifestsListResponse
@@ -207,12 +238,35 @@ module Network.Google.DeploymentManager
207238 , oeeiCode
208239 , oeeiMessage
209240
241+ -- ** DeploymentsStopRequest
242+ , DeploymentsStopRequest
243+ , deploymentsStopRequest
244+ , dsrFingerprint
245+
246+ -- ** ResourceWarningsItemDataItem
247+ , ResourceWarningsItemDataItem
248+ , resourceWarningsItemDataItem
249+ , rwidiValue
250+ , rwidiKey
251+
252+ -- ** ResourceUpdateError
253+ , ResourceUpdateError
254+ , resourceUpdateError
255+ , rueErrors
256+
210257 -- ** DeploymentsListResponse
211258 , DeploymentsListResponse
212259 , deploymentsListResponse
213260 , dlrNextPageToken
214261 , dlrDeployments
215262
263+ -- ** ResourceWarningsItem
264+ , ResourceWarningsItem
265+ , resourceWarningsItem
266+ , rwiData
267+ , rwiCode
268+ , rwiMessage
269+
216270 -- ** TargetConfiguration
217271 , TargetConfiguration
218272 , targetConfiguration
@@ -229,11 +283,9 @@ module Network.Google.DeploymentManager
229283 -- ** Deployment
230284 , Deployment
231285 , deployment
232− , dState
233286 , dInsertTime
287+ , dOperation
234288 , dFingerprint
235− , dIntent
236− , dUpdateTime
237289 , dName
238290 , dManifest
239291 , dId
@@ -244,11 +296,13 @@ module Network.Google.DeploymentManager
244296
245297import Network.Google.DeploymentManager.Types
246298import Network.Google.Prelude
299+import Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
247300import Network.Google.Resource.DeploymentManager.Deployments.Delete
248301import Network.Google.Resource.DeploymentManager.Deployments.Get
249302import Network.Google.Resource.DeploymentManager.Deployments.Insert
250303import Network.Google.Resource.DeploymentManager.Deployments.List
251304import Network.Google.Resource.DeploymentManager.Deployments.Patch
305+import Network.Google.Resource.DeploymentManager.Deployments.Stop
252306import Network.Google.Resource.DeploymentManager.Deployments.Update
253307import Network.Google.Resource.DeploymentManager.Manifests.Get
254308import Network.Google.Resource.DeploymentManager.Manifests.List
@@ -272,6 +326,8 @@ type DeploymentManagerAPI =
272326 :<|> DeploymentsListResource
273327 :<|> DeploymentsPatchResource
274328 :<|> DeploymentsGetResource
329+ :<|> DeploymentsCancelPreviewResource
330+ :<|> DeploymentsStopResource
275331 :<|> DeploymentsDeleteResource
276332 :<|> DeploymentsUpdateResource
277333 :<|> OperationsListResource
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types.hs+60−14
@@ -24,6 +24,11 @@ module Network.Google.DeploymentManager.Types
2424 , owidiValue
2525 , owidiKey
2626
27+ -- * ConfigFile
28+ , ConfigFile
29+ , configFile
30+ , cfContent
31+
2732 -- * DeploymentsUpdateCreatePolicy
2833 , DeploymentsUpdateCreatePolicy (..)
2934
@@ -33,15 +38,18 @@ module Network.Google.DeploymentManager.Types
3338 , olrNextPageToken
3439 , olrOperations
3540
41+ -- * ResourceUpdateWarningsItemDataItem
42+ , ResourceUpdateWarningsItemDataItem
43+ , resourceUpdateWarningsItemDataItem
44+ , ruwidiValue
45+ , ruwidiKey
46+
3647 -- * TypesListResponse
3748 , TypesListResponse
3849 , typesListResponse
3950 , tlrNextPageToken
4051 , tlrTypes
4152
42− -- * DeploymentsUpdateUpdatePolicy
43− , DeploymentsUpdateUpdatePolicy (..)
44−
4553 -- * DeploymentsUpdateDeletePolicy
4654 , DeploymentsUpdateDeletePolicy (..)
4755
@@ -74,9 +82,6 @@ module Network.Google.DeploymentManager.Types
7482 , oTargetLink
7583 , oClientOperationId
7684
77− -- * DeploymentsPatchUpdatePolicy
78− , DeploymentsPatchUpdatePolicy (..)
79−
8085 -- * DeploymentsPatchCreatePolicy
8186 , DeploymentsPatchCreatePolicy (..)
8287
@@ -90,16 +95,16 @@ module Network.Google.DeploymentManager.Types
9095 , DeploymentUpdate
9196 , deploymentUpdate
9297 , duManifest
93− , duErrors
9498
9599 -- * ResourceUpdate
96100 , ResourceUpdate
97101 , resourceUpdate
98102 , ruState
103+ , ruError
104+ , ruWarnings
99105 , ruIntent
100106 , ruManifest
101107 , ruFinalProperties
102− , ruErrors
103108 , ruProperties
104109
105110 -- * Manifest
@@ -108,17 +113,30 @@ module Network.Google.DeploymentManager.Types
108113 , mInsertTime
109114 , mLayout
110115 , mConfig
116+ , mExpandedConfig
111117 , mImports
112118 , mSelfLink
113119 , mName
114− , mEvaluatedConfig
115120 , mId
116121
122+ -- * ResourceUpdateWarningsItem
123+ , ResourceUpdateWarningsItem
124+ , resourceUpdateWarningsItem
125+ , ruwiData
126+ , ruwiCode
127+ , ruwiMessage
128+
129+ -- * DeploymentsCancelPreviewRequest
130+ , DeploymentsCancelPreviewRequest
131+ , deploymentsCancelPreviewRequest
132+ , dcprFingerprint
133+
117134 -- * Resource
118135 , Resource
119136 , resource
120137 , rInsertTime
121138 , rURL
139+ , rWarnings
122140 , rUpdateTime
123141 , rName
124142 , rManifest
@@ -128,6 +146,13 @@ module Network.Google.DeploymentManager.Types
128146 , rUpdate
129147 , rProperties
130148
149+ -- * ResourceUpdateErrorErrorsItem
150+ , ResourceUpdateErrorErrorsItem
151+ , resourceUpdateErrorErrorsItem
152+ , rueeiLocation
153+ , rueeiCode
154+ , rueeiMessage
155+
131156 -- * ManifestsListResponse
132157 , ManifestsListResponse
133158 , manifestsListResponse
@@ -160,12 +185,35 @@ module Network.Google.DeploymentManager.Types
160185 , oeeiCode
161186 , oeeiMessage
162187
188+ -- * DeploymentsStopRequest
189+ , DeploymentsStopRequest
190+ , deploymentsStopRequest
191+ , dsrFingerprint
192+
193+ -- * ResourceWarningsItemDataItem
194+ , ResourceWarningsItemDataItem
195+ , resourceWarningsItemDataItem
196+ , rwidiValue
197+ , rwidiKey
198+
199+ -- * ResourceUpdateError
200+ , ResourceUpdateError
201+ , resourceUpdateError
202+ , rueErrors
203+
163204 -- * DeploymentsListResponse
164205 , DeploymentsListResponse
165206 , deploymentsListResponse
166207 , dlrNextPageToken
167208 , dlrDeployments
168209
210+ -- * ResourceWarningsItem
211+ , ResourceWarningsItem
212+ , resourceWarningsItem
213+ , rwiData
214+ , rwiCode
215+ , rwiMessage
216+
169217 -- * TargetConfiguration
170218 , TargetConfiguration
171219 , targetConfiguration
@@ -182,11 +230,9 @@ module Network.Google.DeploymentManager.Types
182230 -- * Deployment
183231 , Deployment
184232 , deployment
185− , dState
186233 , dInsertTime
234+ , dOperation
187235 , dFingerprint
188− , dIntent
189− , dUpdateTime
190236 , dName
191237 , dManifest
192238 , dId
@@ -199,8 +245,8 @@ import Network.Google.DeploymentManager.Types.Product
199245import Network.Google.DeploymentManager.Types.Sum
200246import Network.Google.Prelude
201247
202−-- | Default request referring to version 'v2beta2' of the Google Cloud Deployment Manager API. This contains the host and root path used as a starting point for constructing service requests.
248+-- | Default request referring to version 'v2' of the Google Cloud Deployment Manager API. This contains the host and root path used as a starting point for constructing service requests.
203249deploymentManagerRequest :: RequestBuilder
204250deploymentManagerRequest
205251 = defaultRequest "https://www.googleapis.com/"
206− "deploymentmanager/v2beta2/projects/"
252+ "deploymentmanager/v2/projects/"
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Product.hs+520−123
@@ -65,6 +65,39 @@ instance ToJSON OperationWarningsItemDataItem where
6565 [("value" .=) <$> _owidiValue,
6666 ("key" .=) <$> _owidiKey])
6767
68+-- |
69+--
70+-- /See:/ 'configFile' smart constructor.
71+newtype ConfigFile = ConfigFile
72+ { _cfContent :: Maybe Text
73+ } deriving (Eq,Show,Data,Typeable,Generic)
74+
75+-- | Creates a value of 'ConfigFile' with the minimum fields required to make a request.
76+--
77+-- Use one of the following lenses to modify other fields as desired:
78+--
79+-- * 'cfContent'
80+configFile
81+ :: ConfigFile
82+configFile =
83+ ConfigFile
84+ { _cfContent = Nothing
85+ }
86+
87+-- | The contents of the file.
88+cfContent :: Lens' ConfigFile (Maybe Text)
89+cfContent
90+ = lens _cfContent (\ s a -> s{_cfContent = a})
91+
92+instance FromJSON ConfigFile where
93+ parseJSON
94+ = withObject "ConfigFile"
95+ (\ o -> ConfigFile <$> (o .:? "content"))
96+
97+instance ToJSON ConfigFile where
98+ toJSON ConfigFile{..}
99+ = object (catMaybes [("content" .=) <$> _cfContent])
100+
68101-- | A response containing a partial list of operations and a page token used
69102-- to build the next request if the request has been truncated.
70103--
@@ -118,6 +151,54 @@ instance ToJSON OperationsListResponse where
118151 [("nextPageToken" .=) <$> _olrNextPageToken,
119152 ("operations" .=) <$> _olrOperations])
120153
154+--
155+-- /See:/ 'resourceUpdateWarningsItemDataItem' smart constructor.
156+data ResourceUpdateWarningsItemDataItem = ResourceUpdateWarningsItemDataItem
157+ { _ruwidiValue :: !(Maybe Text)
158+ , _ruwidiKey :: !(Maybe Text)
159+ } deriving (Eq,Show,Data,Typeable,Generic)
160+
161+-- | Creates a value of 'ResourceUpdateWarningsItemDataItem' with the minimum fields required to make a request.
162+--
163+-- Use one of the following lenses to modify other fields as desired:
164+--
165+-- * 'ruwidiValue'
166+--
167+-- * 'ruwidiKey'
168+resourceUpdateWarningsItemDataItem
169+ :: ResourceUpdateWarningsItemDataItem
170+resourceUpdateWarningsItemDataItem =
171+ ResourceUpdateWarningsItemDataItem
172+ { _ruwidiValue = Nothing
173+ , _ruwidiKey = Nothing
174+ }
175+
176+-- | [Output Only] A warning data value corresponding to the key.
177+ruwidiValue :: Lens' ResourceUpdateWarningsItemDataItem (Maybe Text)
178+ruwidiValue
179+ = lens _ruwidiValue (\ s a -> s{_ruwidiValue = a})
180+
181+-- | [Output Only] A key for the warning data.
182+ruwidiKey :: Lens' ResourceUpdateWarningsItemDataItem (Maybe Text)
183+ruwidiKey
184+ = lens _ruwidiKey (\ s a -> s{_ruwidiKey = a})
185+
186+instance FromJSON ResourceUpdateWarningsItemDataItem
187+ where
188+ parseJSON
189+ = withObject "ResourceUpdateWarningsItemDataItem"
190+ (\ o ->
191+ ResourceUpdateWarningsItemDataItem <$>
192+ (o .:? "value") <*> (o .:? "key"))
193+
194+instance ToJSON ResourceUpdateWarningsItemDataItem
195+ where
196+ toJSON ResourceUpdateWarningsItemDataItem{..}
197+ = object
198+ (catMaybes
199+ [("value" .=) <$> _ruwidiValue,
200+ ("key" .=) <$> _ruwidiKey])
201+
121202-- | A response that returns all Types supported by Deployment Manager
122203--
123204-- /See:/ 'typesListResponse' smart constructor.
@@ -507,9 +588,8 @@ instance ToJSON ResourcesListResponse where
507588-- |
508589--
509590-- /See:/ 'deploymentUpdate' smart constructor.
510−data DeploymentUpdate = DeploymentUpdate
511− { _duManifest :: !(Maybe Text)
512− , _duErrors :: !(Maybe [Text])
591+newtype DeploymentUpdate = DeploymentUpdate
592+ { _duManifest :: Maybe Text
513593 } deriving (Eq,Show,Data,Typeable,Generic)
514594
515595-- | Creates a value of 'DeploymentUpdate' with the minimum fields required to make a request.
@@ -517,14 +597,11 @@ data DeploymentUpdate = DeploymentUpdate
517597-- Use one of the following lenses to modify other fields as desired:
518598--
519599-- * 'duManifest'
520−--
521−-- * 'duErrors'
522600deploymentUpdate
523601 :: DeploymentUpdate
524602deploymentUpdate =
525603 DeploymentUpdate
526604 { _duManifest = Nothing
527− , _duErrors = Nothing
528605 }
529606
530607-- | [Output Only] URL of the manifest representing the update configuration
@@ -533,37 +610,26 @@ duManifest :: Lens' DeploymentUpdate (Maybe Text)
533610duManifest
534611 = lens _duManifest (\ s a -> s{_duManifest = a})
535612
536−-- | [Output Only] List of all errors encountered while trying to enact the
537−-- update.
538−duErrors :: Lens' DeploymentUpdate [Text]
539−duErrors
540− = lens _duErrors (\ s a -> s{_duErrors = a}) .
541− _Default
542− . _Coerce
543−
544613instance FromJSON DeploymentUpdate where
545614 parseJSON
546615 = withObject "DeploymentUpdate"
547− (\ o ->
548− DeploymentUpdate <$>
549− (o .:? "manifest") <*> (o .:? "errors" .!= mempty))
616+ (\ o -> DeploymentUpdate <$> (o .:? "manifest"))
550617
551618instance ToJSON DeploymentUpdate where
552619 toJSON DeploymentUpdate{..}
553620 = object
554− (catMaybes
555− [("manifest" .=) <$> _duManifest,
556− ("errors" .=) <$> _duErrors])
621+ (catMaybes [("manifest" .=) <$> _duManifest])
557622
558623-- |
559624--
560625-- /See:/ 'resourceUpdate' smart constructor.
561626data ResourceUpdate = ResourceUpdate
562627 { _ruState :: !(Maybe Text)
628+ , _ruError :: !(Maybe ResourceUpdateError)
629+ , _ruWarnings :: !(Maybe [ResourceUpdateWarningsItem])
563630 , _ruIntent :: !(Maybe Text)
564631 , _ruManifest :: !(Maybe Text)
565632 , _ruFinalProperties :: !(Maybe Text)
566− , _ruErrors :: !(Maybe [Text])
567633 , _ruProperties :: !(Maybe Text)
568634 } deriving (Eq,Show,Data,Typeable,Generic)
569635
@@ -573,24 +639,27 @@ data ResourceUpdate = ResourceUpdate
573639--
574640-- * 'ruState'
575641--
642+-- * 'ruError'
643+--
644+-- * 'ruWarnings'
645+--
576646-- * 'ruIntent'
577647--
578648-- * 'ruManifest'
579649--
580650-- * 'ruFinalProperties'
581651--
582−-- * 'ruErrors'
583−--
584652-- * 'ruProperties'
585653resourceUpdate
586654 :: ResourceUpdate
587655resourceUpdate =
588656 ResourceUpdate
589657 { _ruState = Nothing
658+ , _ruError = Nothing
659+ , _ruWarnings = Nothing
590660 , _ruIntent = Nothing
591661 , _ruManifest = Nothing
592662 , _ruFinalProperties = Nothing
593− , _ruErrors = Nothing
594663 , _ruProperties = Nothing
595664 }
596665
@@ -598,6 +667,19 @@ resourceUpdate =
598667ruState :: Lens' ResourceUpdate (Maybe Text)
599668ruState = lens _ruState (\ s a -> s{_ruState = a})
600669
670+-- | [Output Only] If errors are generated during update of the resource,
671+-- this field will be populated.
672+ruError :: Lens' ResourceUpdate (Maybe ResourceUpdateError)
673+ruError = lens _ruError (\ s a -> s{_ruError = a})
674+
675+-- | [Output Only] If warning messages are generated during processing of
676+-- this resource, this field will be populated.
677+ruWarnings :: Lens' ResourceUpdate [ResourceUpdateWarningsItem]
678+ruWarnings
679+ = lens _ruWarnings (\ s a -> s{_ruWarnings = a}) .
680+ _Default
681+ . _Coerce
682+
601683-- | [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
602684ruIntent :: Lens' ResourceUpdate (Maybe Text)
603685ruIntent = lens _ruIntent (\ s a -> s{_ruIntent = a})
@@ -615,14 +697,6 @@ ruFinalProperties
615697 = lens _ruFinalProperties
616698 (\ s a -> s{_ruFinalProperties = a})
617699
618−-- | [Output Only] List of all errors encountered while trying to enact
619−-- update.intent.
620−ruErrors :: Lens' ResourceUpdate [Text]
621−ruErrors
622− = lens _ruErrors (\ s a -> s{_ruErrors = a}) .
623− _Default
624− . _Coerce
625−
626700-- | [Output Only] The set of updated properties for this resource, before
627701-- references are expanded. Returned as serialized YAML.
628702ruProperties :: Lens' ResourceUpdate (Maybe Text)
@@ -634,10 +708,11 @@ instance FromJSON ResourceUpdate where
634708 = withObject "ResourceUpdate"
635709 (\ o ->
636710 ResourceUpdate <$>
637− (o .:? "state") <*> (o .:? "intent") <*>
638− (o .:? "manifest")
711+ (o .:? "state") <*> (o .:? "error") <*>
712+ (o .:? "warnings" .!= mempty)
713+ <*> (o .:? "intent")
714+ <*> (o .:? "manifest")
639715 <*> (o .:? "finalProperties")
640− <*> (o .:? "errors" .!= mempty)
641716 <*> (o .:? "properties"))
642717
643718instance ToJSON ResourceUpdate where
@@ -645,24 +720,25 @@ instance ToJSON ResourceUpdate where
645720 = object
646721 (catMaybes
647722 [("state" .=) <$> _ruState,
723+ ("error" .=) <$> _ruError,
724+ ("warnings" .=) <$> _ruWarnings,
648725 ("intent" .=) <$> _ruIntent,
649726 ("manifest" .=) <$> _ruManifest,
650727 ("finalProperties" .=) <$> _ruFinalProperties,
651− ("errors" .=) <$> _ruErrors,
652728 ("properties" .=) <$> _ruProperties])
653729
654730-- |
655731--
656732-- /See:/ 'manifest' smart constructor.
657733data Manifest = Manifest
658− { _mInsertTime :: !(Maybe Text)
659− , _mLayout :: !(Maybe Text)
660− , _mConfig :: !(Maybe Text)
661− , _mImports :: !(Maybe [ImportFile])
662− , _mSelfLink :: !(Maybe Text)
663− , _mName :: !(Maybe Text)
664− , _mEvaluatedConfig :: !(Maybe Text)
665− , _mId :: !(Maybe Word64)
734+ { _mInsertTime :: !(Maybe Text)
735+ , _mLayout :: !(Maybe Text)
736+ , _mConfig :: !(Maybe ConfigFile)
737+ , _mExpandedConfig :: !(Maybe Text)
738+ , _mImports :: !(Maybe [ImportFile])
739+ , _mSelfLink :: !(Maybe Text)
740+ , _mName :: !(Maybe Text)
741+ , _mId :: !(Maybe Word64)
666742 } deriving (Eq,Show,Data,Typeable,Generic)
667743
668744-- | Creates a value of 'Manifest' with the minimum fields required to make a request.
@@ -675,14 +751,14 @@ data Manifest = Manifest
675751--
676752-- * 'mConfig'
677753--
754+-- * 'mExpandedConfig'
755+--
678756-- * 'mImports'
679757--
680758-- * 'mSelfLink'
681759--
682760-- * 'mName'
683761--
684−-- * 'mEvaluatedConfig'
685−--
686762-- * 'mId'
687763manifest
688764 :: Manifest
@@ -691,10 +767,10 @@ manifest =
691767 { _mInsertTime = Nothing
692768 , _mLayout = Nothing
693769 , _mConfig = Nothing
770+ , _mExpandedConfig = Nothing
694771 , _mImports = Nothing
695772 , _mSelfLink = Nothing
696773 , _mName = Nothing
697− , _mEvaluatedConfig = Nothing
698774 , _mId = Nothing
699775 }
700776
@@ -709,9 +785,16 @@ mLayout :: Lens' Manifest (Maybe Text)
709785mLayout = lens _mLayout (\ s a -> s{_mLayout = a})
710786
711787-- | [Output Only] The YAML configuration for this manifest.
712−mConfig :: Lens' Manifest (Maybe Text)
788+mConfig :: Lens' Manifest (Maybe ConfigFile)
713789mConfig = lens _mConfig (\ s a -> s{_mConfig = a})
714790
791+-- | [Output Only] The fully-expanded configuration file, including any
792+-- templates and references.
793+mExpandedConfig :: Lens' Manifest (Maybe Text)
794+mExpandedConfig
795+ = lens _mExpandedConfig
796+ (\ s a -> s{_mExpandedConfig = a})
797+
715798-- | [Output Only] The imported files for this manifest.
716799mImports :: Lens' Manifest [ImportFile]
717800mImports
@@ -728,13 +811,6 @@ mSelfLink
728811mName :: Lens' Manifest (Maybe Text)
729812mName = lens _mName (\ s a -> s{_mName = a})
730813
731−-- | [Output Only] The fully-expanded configuration file, including any
732−-- templates and references.
733−mEvaluatedConfig :: Lens' Manifest (Maybe Text)
734−mEvaluatedConfig
735− = lens _mEvaluatedConfig
736− (\ s a -> s{_mEvaluatedConfig = a})
737−
738814-- | [Output Only] Unique identifier for the resource; defined by the server.
739815mId :: Lens' Manifest (Maybe Word64)
740816mId = lens _mId (\ s a -> s{_mId = a})
@@ -746,10 +822,10 @@ instance FromJSON Manifest where
746822 Manifest <$>
747823 (o .:? "insertTime") <*> (o .:? "layout") <*>
748824 (o .:? "config")
825+ <*> (o .:? "expandedConfig")
749826 <*> (o .:? "imports" .!= mempty)
750827 <*> (o .:? "selfLink")
751828 <*> (o .:? "name")
752− <*> (o .:? "evaluatedConfig")
753829 <*> (o .:? "id"))
754830
755831instance ToJSON Manifest where
@@ -759,11 +835,114 @@ instance ToJSON Manifest where
759835 [("insertTime" .=) <$> _mInsertTime,
760836 ("layout" .=) <$> _mLayout,
761837 ("config" .=) <$> _mConfig,
838+ ("expandedConfig" .=) <$> _mExpandedConfig,
762839 ("imports" .=) <$> _mImports,
763840 ("selfLink" .=) <$> _mSelfLink,
764− ("name" .=) <$> _mName,
765− ("evaluatedConfig" .=) <$> _mEvaluatedConfig,
766− ("id" .=) <$> _mId])
841+ ("name" .=) <$> _mName, ("id" .=) <$> _mId])
842+
843+--
844+-- /See:/ 'resourceUpdateWarningsItem' smart constructor.
845+data ResourceUpdateWarningsItem = ResourceUpdateWarningsItem
846+ { _ruwiData :: !(Maybe [ResourceUpdateWarningsItemDataItem])
847+ , _ruwiCode :: !(Maybe Text)
848+ , _ruwiMessage :: !(Maybe Text)
849+ } deriving (Eq,Show,Data,Typeable,Generic)
850+
851+-- | Creates a value of 'ResourceUpdateWarningsItem' with the minimum fields required to make a request.
852+--
853+-- Use one of the following lenses to modify other fields as desired:
854+--
855+-- * 'ruwiData'
856+--
857+-- * 'ruwiCode'
858+--
859+-- * 'ruwiMessage'
860+resourceUpdateWarningsItem
861+ :: ResourceUpdateWarningsItem
862+resourceUpdateWarningsItem =
863+ ResourceUpdateWarningsItem
864+ { _ruwiData = Nothing
865+ , _ruwiCode = Nothing
866+ , _ruwiMessage = Nothing
867+ }
868+
869+-- | [Output Only] Metadata for this warning in key: value format.
870+ruwiData :: Lens' ResourceUpdateWarningsItem [ResourceUpdateWarningsItemDataItem]
871+ruwiData
872+ = lens _ruwiData (\ s a -> s{_ruwiData = a}) .
873+ _Default
874+ . _Coerce
875+
876+-- | [Output Only] The warning type identifier for this warning.
877+ruwiCode :: Lens' ResourceUpdateWarningsItem (Maybe Text)
878+ruwiCode = lens _ruwiCode (\ s a -> s{_ruwiCode = a})
879+
880+-- | [Output Only] Optional human-readable details for this warning.
881+ruwiMessage :: Lens' ResourceUpdateWarningsItem (Maybe Text)
882+ruwiMessage
883+ = lens _ruwiMessage (\ s a -> s{_ruwiMessage = a})
884+
885+instance FromJSON ResourceUpdateWarningsItem where
886+ parseJSON
887+ = withObject "ResourceUpdateWarningsItem"
888+ (\ o ->
889+ ResourceUpdateWarningsItem <$>
890+ (o .:? "data" .!= mempty) <*> (o .:? "code") <*>
891+ (o .:? "message"))
892+
893+instance ToJSON ResourceUpdateWarningsItem where
894+ toJSON ResourceUpdateWarningsItem{..}
895+ = object
896+ (catMaybes
897+ [("data" .=) <$> _ruwiData,
898+ ("code" .=) <$> _ruwiCode,
899+ ("message" .=) <$> _ruwiMessage])
900+
901+-- |
902+--
903+-- /See:/ 'deploymentsCancelPreviewRequest' smart constructor.
904+newtype DeploymentsCancelPreviewRequest = DeploymentsCancelPreviewRequest
905+ { _dcprFingerprint :: Maybe Word8
906+ } deriving (Eq,Show,Data,Typeable,Generic)
907+
908+-- | Creates a value of 'DeploymentsCancelPreviewRequest' with the minimum fields required to make a request.
909+--
910+-- Use one of the following lenses to modify other fields as desired:
911+--
912+-- * 'dcprFingerprint'
913+deploymentsCancelPreviewRequest
914+ :: DeploymentsCancelPreviewRequest
915+deploymentsCancelPreviewRequest =
916+ DeploymentsCancelPreviewRequest
917+ { _dcprFingerprint = Nothing
918+ }
919+
920+-- | Specifies a fingerprint for cancelPreview() requests. A fingerprint is a
921+-- randomly generated value that must be provided in cancelPreview()
922+-- requests to perform optimistic locking. This ensures optimistic
923+-- concurrency so that the deployment does not have conflicting requests
924+-- (e.g. if someone attempts to make a new update request while another
925+-- user attempts to cancel a preview, this would prevent one of the
926+-- requests). The fingerprint is initially generated by Deployment Manager
927+-- and changes after every request to modify a deployment. To get the
928+-- latest fingerprint value, perform a get() request to a deployment.
929+dcprFingerprint :: Lens' DeploymentsCancelPreviewRequest (Maybe Word8)
930+dcprFingerprint
931+ = lens _dcprFingerprint
932+ (\ s a -> s{_dcprFingerprint = a})
933+
934+instance FromJSON DeploymentsCancelPreviewRequest
935+ where
936+ parseJSON
937+ = withObject "DeploymentsCancelPreviewRequest"
938+ (\ o ->
939+ DeploymentsCancelPreviewRequest <$>
940+ (o .:? "fingerprint"))
941+
942+instance ToJSON DeploymentsCancelPreviewRequest where
943+ toJSON DeploymentsCancelPreviewRequest{..}
944+ = object
945+ (catMaybes [("fingerprint" .=) <$> _dcprFingerprint])
767946
768947-- |
769948--
@@ -771,6 +950,7 @@ instance ToJSON Manifest where
771950data Resource = Resource
772951 { _rInsertTime :: !(Maybe Text)
773952 , _rURL :: !(Maybe Text)
953+ , _rWarnings :: !(Maybe [ResourceWarningsItem])
774954 , _rUpdateTime :: !(Maybe Text)
775955 , _rName :: !(Maybe Text)
776956 , _rManifest :: !(Maybe Text)
@@ -789,6 +969,8 @@ data Resource = Resource
789969--
790970-- * 'rURL'
791971--
972+-- * 'rWarnings'
973+--
792974-- * 'rUpdateTime'
793975--
794976-- * 'rName'
@@ -810,6 +992,7 @@ resource =
810992 Resource
811993 { _rInsertTime = Nothing
812994 , _rURL = Nothing
995+ , _rWarnings = Nothing
813996 , _rUpdateTime = Nothing
814997 , _rName = Nothing
815998 , _rManifest = Nothing
@@ -830,6 +1013,14 @@ rInsertTime
8301013rURL :: Lens' Resource (Maybe Text)
8311014rURL = lens _rURL (\ s a -> s{_rURL = a})
8321015
1016+-- | [Output Only] If warning messages are generated during processing of
1017+-- this resource, this field will be populated.
1018+rWarnings :: Lens' Resource [ResourceWarningsItem]
1019+rWarnings
1020+ = lens _rWarnings (\ s a -> s{_rWarnings = a}) .
1021+ _Default
1022+ . _Coerce
1023+
8331024-- | [Output Only] Timestamp when the resource was updated, in RFC3339 text
8341025-- format .
8351026rUpdateTime :: Lens' Resource (Maybe Text)
@@ -879,7 +1070,8 @@ instance FromJSON Resource where
8791070 (\ o ->
8801071 Resource <$>
8811072 (o .:? "insertTime") <*> (o .:? "url") <*>
882− (o .:? "updateTime")
1073+ (o .:? "warnings" .!= mempty)
1074+ <*> (o .:? "updateTime")
8831075 <*> (o .:? "name")
8841076 <*> (o .:? "manifest")
8851077 <*> (o .:? "finalProperties")
@@ -893,7 +1085,7 @@ instance ToJSON Resource where
8931085 = object
8941086 (catMaybes
8951087 [("insertTime" .=) <$> _rInsertTime,
896− ("url" .=) <$> _rURL,
1088+ ("url" .=) <$> _rURL, ("warnings" .=) <$> _rWarnings,
8971089 ("updateTime" .=) <$> _rUpdateTime,
8981090 ("name" .=) <$> _rName,
8991091 ("manifest" .=) <$> _rManifest,
@@ -902,6 +1094,65 @@ instance ToJSON Resource where
9021094 ("update" .=) <$> _rUpdate,
9031095 ("properties" .=) <$> _rProperties])
9041096
1097+--
1098+-- /See:/ 'resourceUpdateErrorErrorsItem' smart constructor.
1099+data ResourceUpdateErrorErrorsItem = ResourceUpdateErrorErrorsItem
1100+ { _rueeiLocation :: !(Maybe Text)
1101+ , _rueeiCode :: !(Maybe Text)
1102+ , _rueeiMessage :: !(Maybe Text)
1103+ } deriving (Eq,Show,Data,Typeable,Generic)
1104+
1105+-- | Creates a value of 'ResourceUpdateErrorErrorsItem' with the minimum fields required to make a request.
1106+--
1107+-- Use one of the following lenses to modify other fields as desired:
1108+--
1109+-- * 'rueeiLocation'
1110+--
1111+-- * 'rueeiCode'
1112+--
1113+-- * 'rueeiMessage'
1114+resourceUpdateErrorErrorsItem
1115+ :: ResourceUpdateErrorErrorsItem
1116+resourceUpdateErrorErrorsItem =
1117+ ResourceUpdateErrorErrorsItem
1118+ { _rueeiLocation = Nothing
1119+ , _rueeiCode = Nothing
1120+ , _rueeiMessage = Nothing
1121+ }
1122+
1123+-- | [Output Only] Indicates the field in the request which caused the error.
1124+-- This property is optional.
1125+rueeiLocation :: Lens' ResourceUpdateErrorErrorsItem (Maybe Text)
1126+rueeiLocation
1127+ = lens _rueeiLocation
1128+ (\ s a -> s{_rueeiLocation = a})
1129+
1130+-- | [Output Only] The error type identifier for this error.
1131+rueeiCode :: Lens' ResourceUpdateErrorErrorsItem (Maybe Text)
1132+rueeiCode
1133+ = lens _rueeiCode (\ s a -> s{_rueeiCode = a})
1134+
1135+-- | [Output Only] An optional, human-readable error message.
1136+rueeiMessage :: Lens' ResourceUpdateErrorErrorsItem (Maybe Text)
1137+rueeiMessage
1138+ = lens _rueeiMessage (\ s a -> s{_rueeiMessage = a})
1139+
1140+instance FromJSON ResourceUpdateErrorErrorsItem where
1141+ parseJSON
1142+ = withObject "ResourceUpdateErrorErrorsItem"
1143+ (\ o ->
1144+ ResourceUpdateErrorErrorsItem <$>
1145+ (o .:? "location") <*> (o .:? "code") <*>
1146+ (o .:? "message"))
1147+
1148+instance ToJSON ResourceUpdateErrorErrorsItem where
1149+ toJSON ResourceUpdateErrorErrorsItem{..}
1150+ = object
1151+ (catMaybes
1152+ [("location" .=) <$> _rueeiLocation,
1153+ ("code" .=) <$> _rueeiCode,
1154+ ("message" .=) <$> _rueeiMessage])
1155+
9051156-- | A response containing a partial list of manifests and a page token used
9061157-- to build the next request if the request has been truncated.
9071158--
@@ -1161,6 +1412,133 @@ instance ToJSON OperationErrorErrorsItem where
11611412 ("code" .=) <$> _oeeiCode,
11621413 ("message" .=) <$> _oeeiMessage])
11631414
1415+-- |
1416+--
1417+-- /See:/ 'deploymentsStopRequest' smart constructor.
1418+newtype DeploymentsStopRequest = DeploymentsStopRequest
1419+ { _dsrFingerprint :: Maybe Word8
1420+ } deriving (Eq,Show,Data,Typeable,Generic)
1421+
1422+-- | Creates a value of 'DeploymentsStopRequest' with the minimum fields required to make a request.
1423+--
1424+-- Use one of the following lenses to modify other fields as desired:
1425+--
1426+-- * 'dsrFingerprint'
1427+deploymentsStopRequest
1428+ :: DeploymentsStopRequest
1429+deploymentsStopRequest =
1430+ DeploymentsStopRequest
1431+ { _dsrFingerprint = Nothing
1432+ }
1433+
1434+-- | Specifies a fingerprint for stop() requests. A fingerprint is a randomly
1435+-- generated value that must be provided in stop() requests to perform
1436+-- optimistic locking. This ensures optimistic concurrency so that the
1437+-- deployment does not have conflicting requests (e.g. if someone attempts
1438+-- to make a new update request while another user attempts to stop an
1439+-- ongoing update request, this would prevent a collision). The fingerprint
1440+-- is initially generated by Deployment Manager and changes after every
1441+-- request to modify a deployment. To get the latest fingerprint value,
1442+-- perform a get() request to a deployment.
1443+dsrFingerprint :: Lens' DeploymentsStopRequest (Maybe Word8)
1444+dsrFingerprint
1445+ = lens _dsrFingerprint
1446+ (\ s a -> s{_dsrFingerprint = a})
1447+
1448+instance FromJSON DeploymentsStopRequest where
1449+ parseJSON
1450+ = withObject "DeploymentsStopRequest"
1451+ (\ o ->
1452+ DeploymentsStopRequest <$> (o .:? "fingerprint"))
1453+
1454+instance ToJSON DeploymentsStopRequest where
1455+ toJSON DeploymentsStopRequest{..}
1456+ = object
1457+ (catMaybes [("fingerprint" .=) <$> _dsrFingerprint])
1458+
1459+--
1460+-- /See:/ 'resourceWarningsItemDataItem' smart constructor.
1461+data ResourceWarningsItemDataItem = ResourceWarningsItemDataItem
1462+ { _rwidiValue :: !(Maybe Text)
1463+ , _rwidiKey :: !(Maybe Text)
1464+ } deriving (Eq,Show,Data,Typeable,Generic)
1465+
1466+-- | Creates a value of 'ResourceWarningsItemDataItem' with the minimum fields required to make a request.
1467+--
1468+-- Use one of the following lenses to modify other fields as desired:
1469+--
1470+-- * 'rwidiValue'
1471+--
1472+-- * 'rwidiKey'
1473+resourceWarningsItemDataItem
1474+ :: ResourceWarningsItemDataItem
1475+resourceWarningsItemDataItem =
1476+ ResourceWarningsItemDataItem
1477+ { _rwidiValue = Nothing
1478+ , _rwidiKey = Nothing
1479+ }
1480+
1481+-- | [Output Only] A warning data value corresponding to the key.
1482+rwidiValue :: Lens' ResourceWarningsItemDataItem (Maybe Text)
1483+rwidiValue
1484+ = lens _rwidiValue (\ s a -> s{_rwidiValue = a})
1485+
1486+-- | [Output Only] A key for the warning data.
1487+rwidiKey :: Lens' ResourceWarningsItemDataItem (Maybe Text)
1488+rwidiKey = lens _rwidiKey (\ s a -> s{_rwidiKey = a})
1489+
1490+instance FromJSON ResourceWarningsItemDataItem where
1491+ parseJSON
1492+ = withObject "ResourceWarningsItemDataItem"
1493+ (\ o ->
1494+ ResourceWarningsItemDataItem <$>
1495+ (o .:? "value") <*> (o .:? "key"))
1496+
1497+instance ToJSON ResourceWarningsItemDataItem where
1498+ toJSON ResourceWarningsItemDataItem{..}
1499+ = object
1500+ (catMaybes
1501+ [("value" .=) <$> _rwidiValue,
1502+ ("key" .=) <$> _rwidiKey])
1503+
1504+-- | [Output Only] If errors are generated during update of the resource,
1505+-- this field will be populated.
1506+--
1507+-- /See:/ 'resourceUpdateError' smart constructor.
1508+newtype ResourceUpdateError = ResourceUpdateError
1509+ { _rueErrors :: Maybe [ResourceUpdateErrorErrorsItem]
1510+ } deriving (Eq,Show,Data,Typeable,Generic)
1511+
1512+-- | Creates a value of 'ResourceUpdateError' with the minimum fields required to make a request.
1513+--
1514+-- Use one of the following lenses to modify other fields as desired:
1515+--
1516+-- * 'rueErrors'
1517+resourceUpdateError
1518+ :: ResourceUpdateError
1519+resourceUpdateError =
1520+ ResourceUpdateError
1521+ { _rueErrors = Nothing
1522+ }
1523+
1524+-- | [Output Only] The array of errors encountered while processing this
1525+-- operation.
1526+rueErrors :: Lens' ResourceUpdateError [ResourceUpdateErrorErrorsItem]
1527+rueErrors
1528+ = lens _rueErrors (\ s a -> s{_rueErrors = a}) .
1529+ _Default
1530+ . _Coerce
1531+
1532+instance FromJSON ResourceUpdateError where
1533+ parseJSON
1534+ = withObject "ResourceUpdateError"
1535+ (\ o ->
1536+ ResourceUpdateError <$> (o .:? "errors" .!= mempty))
1537+
1538+instance ToJSON ResourceUpdateError where
1539+ toJSON ResourceUpdateError{..}
1540+ = object (catMaybes [("errors" .=) <$> _rueErrors])
1541+
11641542-- | A response containing a partial list of deployments and a page token
11651543-- used to build the next request if the request has been truncated.
11661544--
@@ -1214,11 +1592,67 @@ instance ToJSON DeploymentsListResponse where
12141592 [("nextPageToken" .=) <$> _dlrNextPageToken,
12151593 ("deployments" .=) <$> _dlrDeployments])
12161594
1595+--
1596+-- /See:/ 'resourceWarningsItem' smart constructor.
1597+data ResourceWarningsItem = ResourceWarningsItem
1598+ { _rwiData :: !(Maybe [ResourceWarningsItemDataItem])
1599+ , _rwiCode :: !(Maybe Text)
1600+ , _rwiMessage :: !(Maybe Text)
1601+ } deriving (Eq,Show,Data,Typeable,Generic)
1602+
1603+-- | Creates a value of 'ResourceWarningsItem' with the minimum fields required to make a request.
1604+--
1605+-- Use one of the following lenses to modify other fields as desired:
1606+--
1607+-- * 'rwiData'
1608+--
1609+-- * 'rwiCode'
1610+--
1611+-- * 'rwiMessage'
1612+resourceWarningsItem
1613+ :: ResourceWarningsItem
1614+resourceWarningsItem =
1615+ ResourceWarningsItem
1616+ { _rwiData = Nothing
1617+ , _rwiCode = Nothing
1618+ , _rwiMessage = Nothing
1619+ }
1620+
1621+-- | [Output Only] Metadata for this warning in key: value format.
1622+rwiData :: Lens' ResourceWarningsItem [ResourceWarningsItemDataItem]
1623+rwiData
1624+ = lens _rwiData (\ s a -> s{_rwiData = a}) . _Default
1625+ . _Coerce
1626+
1627+-- | [Output Only] The warning type identifier for this warning.
1628+rwiCode :: Lens' ResourceWarningsItem (Maybe Text)
1629+rwiCode = lens _rwiCode (\ s a -> s{_rwiCode = a})
1630+
1631+-- | [Output Only] Optional human-readable details for this warning.
1632+rwiMessage :: Lens' ResourceWarningsItem (Maybe Text)
1633+rwiMessage
1634+ = lens _rwiMessage (\ s a -> s{_rwiMessage = a})
1635+
1636+instance FromJSON ResourceWarningsItem where
1637+ parseJSON
1638+ = withObject "ResourceWarningsItem"
1639+ (\ o ->
1640+ ResourceWarningsItem <$>
1641+ (o .:? "data" .!= mempty) <*> (o .:? "code") <*>
1642+ (o .:? "message"))
1643+
1644+instance ToJSON ResourceWarningsItem where
1645+ toJSON ResourceWarningsItem{..}
1646+ = object
1647+ (catMaybes
1648+ [("data" .=) <$> _rwiData, ("code" .=) <$> _rwiCode,
1649+ ("message" .=) <$> _rwiMessage])
1650+
12171651-- |
12181652--
12191653-- /See:/ 'targetConfiguration' smart constructor.
12201654data TargetConfiguration = TargetConfiguration
1221− { _tcConfig :: !(Maybe Text)
1655+ { _tcConfig :: !(Maybe ConfigFile)
12221656 , _tcImports :: !(Maybe [ImportFile])
12231657 } deriving (Eq,Show,Data,Typeable,Generic)
12241658
@@ -1238,7 +1672,7 @@ targetConfiguration =
12381672 }
12391673
12401674-- | The configuration to use for this deployment.
1241−tcConfig :: Lens' TargetConfiguration (Maybe Text)
1675+tcConfig :: Lens' TargetConfiguration (Maybe ConfigFile)
12421676tcConfig = lens _tcConfig (\ s a -> s{_tcConfig = a})
12431677
12441678-- | Specifies any files to import for this configuration. This can be used
@@ -1324,11 +1758,9 @@ instance ToJSON OperationWarningsItem where
13241758--
13251759-- /See:/ 'deployment' smart constructor.
13261760data Deployment = Deployment
1327− { _dState :: !(Maybe Text)
1328− , _dInsertTime :: !(Maybe Text)
1761+ { _dInsertTime :: !(Maybe Text)
1762+ , _dOperation :: !(Maybe Operation)
13291763 , _dFingerprint :: !(Maybe Word8)
1330− , _dIntent :: !(Maybe Text)
1331− , _dUpdateTime :: !(Maybe Text)
13321764 , _dName :: !(Maybe Text)
13331765 , _dManifest :: !(Maybe Text)
13341766 , _dId :: !(Maybe Word64)
@@ -1341,15 +1773,11 @@ data Deployment = Deployment
13411773--
13421774-- Use one of the following lenses to modify other fields as desired:
13431775--
1344−-- * 'dState'
1345−--
13461776-- * 'dInsertTime'
13471777--
1348−-- * 'dFingerprint'
1349−--
1350−-- * 'dIntent'
1778+-- * 'dOperation'
13511779--
1352−-- * 'dUpdateTime'
1780+-- * 'dFingerprint'
13531781--
13541782-- * 'dName'
13551783--
@@ -1366,11 +1794,9 @@ deployment
13661794 :: Deployment
13671795deployment =
13681796 Deployment
1369− { _dState = Nothing
1370− , _dInsertTime = Nothing
1797+ { _dInsertTime = Nothing
1798+ , _dOperation = Nothing
13711799 , _dFingerprint = Nothing
1372− , _dIntent = Nothing
1373− , _dUpdateTime = Nothing
13741800 , _dName = Nothing
13751801 , _dManifest = Nothing
13761802 , _dId = Nothing
@@ -1379,55 +1805,30 @@ deployment =
13791805 , _dTarget = Nothing
13801806 }
13811807
1382−-- | [Output Only] The current state of the deployment. This can be DEPLOYED,
1383−-- DEPLOYMENT_FAILED, PREVIEWING, UPDATING, and CANCELING.
1384−dState :: Lens' Deployment (Maybe Text)
1385−dState = lens _dState (\ s a -> s{_dState = a})
1386−
13871808-- | [Output Only] Timestamp when the deployment was created, in RFC3339 text
13881809-- format .
13891810dInsertTime :: Lens' Deployment (Maybe Text)
13901811dInsertTime
13911812 = lens _dInsertTime (\ s a -> s{_dInsertTime = a})
13921813
1393−-- | Specifies a fingerprint for update() requests. A fingerprint is a
1394−-- randomly generated value that must be provided in update() requests to
1395−-- perform optimistic locking. This ensures optimistic concurrency so that
1396−-- only one update can be performed at a time. The fingerprint is initially
1397−-- generated by Deployment Manager and changes after every request to
1398−-- modify data. To get the latest fingerprint value, perform a get()
1399−-- request to a deployment.
1814+-- | [Output Only] The Operation that most recently ran, or is currently
1815+-- running, on this deployment.
1816+dOperation :: Lens' Deployment (Maybe Operation)
1817+dOperation
1818+ = lens _dOperation (\ s a -> s{_dOperation = a})
1819+
1820+-- | Provides a fingerprint to use in requests to modify a deployment, such
1821+-- as update(), stop(), and cancelPreview() requests. A fingerprint is a
1822+-- randomly generated value that must be provided with update(), stop(),
1823+-- and cancelPreview() requests to perform optimistic locking. This ensures
1824+-- optimistic concurrency so that only one request happens at a time. The
1825+-- fingerprint is initially generated by Deployment Manager and changes
1826+-- after every request to modify data. To get the latest fingerprint value,
1827+-- perform a get() request to a deployment.
14001828dFingerprint :: Lens' Deployment (Maybe Word8)
14011829dFingerprint
14021830 = lens _dFingerprint (\ s a -> s{_dFingerprint = a})
14031831
1404−-- | [Input Only] Specifies how Deployment Manager should apply this
1405−-- template. Possible options are PREVIEW, UPDATE, and CANCEL. PREVIEW
1406−-- creates a deployment and creates \"shell\" resources but does not
1407−-- actually instantiate these resources. This allows you to preview what
1408−-- your deployment looks like. You can use this intent to preview updates
1409−-- to deployments or preview new deployments. You must provide a
1410−-- target.config with a configuration for this intent. After previewing a
1411−-- deployment, you can deploy your resources by making a request with the
1412−-- UPDATE intent or you can CANCEL the preview altogether. Note that the
1413−-- deployment will still exist after you cancel the preview and you must
1414−-- separately delete this deployment if you want to remove it. UPDATE
1415−-- performs an update to the underlying resources in a deployment. If you
1416−-- provide a populated target.config field with this request, Deployment
1417−-- Manager uses that configuration to perform an update. If you had
1418−-- previewed this update beforehand, and do not supply a target.config or
1419−-- provide an empty target.config, Deployment Manager uses the last
1420−-- previewed configuration. CANCEL cancels an update that is in PREVIEW or
1421−-- UPDATE but does not undo any changes already made.
1422−dIntent :: Lens' Deployment (Maybe Text)
1423−dIntent = lens _dIntent (\ s a -> s{_dIntent = a})
1424−
1425−-- | [Output Only] Timestamp when the deployment was updated, in RFC3339 text
1426−-- format .
1427−dUpdateTime :: Lens' Deployment (Maybe Text)
1428−dUpdateTime
1429− = lens _dUpdateTime (\ s a -> s{_dUpdateTime = a})
1430−
14311832-- | Name of the resource; provided by the client when the resource is
14321833-- created. The name must be 1-63 characters long, and comply with RFC1035.
14331834-- Specifically, the name must be 1-63 characters long and match the
@@ -1468,10 +1869,8 @@ instance FromJSON Deployment where
14681869 = withObject "Deployment"
14691870 (\ o ->
14701871 Deployment <$>
1471− (o .:? "state") <*> (o .:? "insertTime") <*>
1872+ (o .:? "insertTime") <*> (o .:? "operation") <*>
14721873 (o .:? "fingerprint")
1473− <*> (o .:? "intent")
1474− <*> (o .:? "updateTime")
14751874 <*> (o .:? "name")
14761875 <*> (o .:? "manifest")
14771876 <*> (o .:? "id")
@@ -1483,11 +1882,9 @@ instance ToJSON Deployment where
14831882 toJSON Deployment{..}
14841883 = object
14851884 (catMaybes
1486− [("state" .=) <$> _dState,
1487− ("insertTime" .=) <$> _dInsertTime,
1885+ [("insertTime" .=) <$> _dInsertTime,
1886+ ("operation" .=) <$> _dOperation,
14881887 ("fingerprint" .=) <$> _dFingerprint,
1489− ("intent" .=) <$> _dIntent,
1490− ("updateTime" .=) <$> _dUpdateTime,
14911888 ("name" .=) <$> _dName,
14921889 ("manifest" .=) <$> _dManifest, ("id" .=) <$> _dId,
14931890 ("description" .=) <$> _dDescription,
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs−54
@@ -45,33 +45,6 @@ instance FromJSON DeploymentsUpdateCreatePolicy where
4545instance ToJSON DeploymentsUpdateCreatePolicy where
4646 toJSON = toJSONText
4747
48−-- | Sets the policy to use for updating resources.
49−data DeploymentsUpdateUpdatePolicy
50− = Patch'
51− -- ^ @PATCH@
52− | Update
53− -- ^ @UPDATE@
54− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
55−
56−instance Hashable DeploymentsUpdateUpdatePolicy
57−
58−instance FromText DeploymentsUpdateUpdatePolicy where
59− fromText = \case
60− "PATCH" -> Just Patch'
61− "UPDATE" -> Just Update
62− _ -> Nothing
63−
64−instance ToText DeploymentsUpdateUpdatePolicy where
65− toText = \case
66− Patch' -> "PATCH"
67− Update -> "UPDATE"
68−
69−instance FromJSON DeploymentsUpdateUpdatePolicy where
70− parseJSON = parseJSONText "DeploymentsUpdateUpdatePolicy"
71−
72−instance ToJSON DeploymentsUpdateUpdatePolicy where
73− toJSON = toJSONText
74−
7548-- | Sets the policy to use for deleting resources.
7649data DeploymentsUpdateDeletePolicy
7750 = Abandon
@@ -126,33 +99,6 @@ instance FromJSON DeploymentsPatchDeletePolicy where
12699instance ToJSON DeploymentsPatchDeletePolicy where
127100 toJSON = toJSONText
128101
129−-- | Sets the policy to use for updating resources.
130−data DeploymentsPatchUpdatePolicy
131− = DPUPPatch'
132− -- ^ @PATCH@
133− | DPUPUpdate
134− -- ^ @UPDATE@
135− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
136−
137−instance Hashable DeploymentsPatchUpdatePolicy
138−
139−instance FromText DeploymentsPatchUpdatePolicy where
140− fromText = \case
141− "PATCH" -> Just DPUPPatch'
142− "UPDATE" -> Just DPUPUpdate
143− _ -> Nothing
144−
145−instance ToText DeploymentsPatchUpdatePolicy where
146− toText = \case
147− DPUPPatch' -> "PATCH"
148− DPUPUpdate -> "UPDATE"
149−
150−instance FromJSON DeploymentsPatchUpdatePolicy where
151− parseJSON = parseJSONText "DeploymentsPatchUpdatePolicy"
152−
153−instance ToJSON DeploymentsPatchUpdatePolicy where
154− toJSON = toJSONText
155−
156102-- | Sets the policy to use for creating new resources.
157103data DeploymentsPatchCreatePolicy
158104 = DPCPAcquire
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/CancelPreview.hsnew file+196
@@ -0,0 +1,196 @@
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.DeploymentManager.Deployments.CancelPreview
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+-- | Cancels and removes the preview currently associated with the
24+-- deployment.
25+--
26+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsCancelPreview@.
27+module Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
28+ (
29+ -- * REST Resource
30+ DeploymentsCancelPreviewResource
31+
32+ -- * Creating a Request
33+ , deploymentsCancelPreview'
34+ , DeploymentsCancelPreview'
35+
36+ -- * Request Lenses
37+ , dcpQuotaUser
38+ , dcpPrettyPrint
39+ , dcpProject
40+ , dcpUserIP
41+ , dcpPayload
42+ , dcpKey
43+ , dcpOAuthToken
44+ , dcpFields
45+ , dcpDeployment
46+ ) where
47+
48+import Network.Google.DeploymentManager.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @DeploymentManagerDeploymentsCancelPreview@ method which the
52+-- 'DeploymentsCancelPreview'' request conforms to.
53+type DeploymentsCancelPreviewResource =
54+ Capture "project" Text :>
55+ "global" :>
56+ "deployments" :>
57+ Capture "deployment" Text :>
58+ "cancelPreview" :>
59+ QueryParam "quotaUser" Text :>
60+ QueryParam "prettyPrint" Bool :>
61+ QueryParam "userIp" Text :>
62+ QueryParam "fields" Text :>
63+ QueryParam "key" AuthKey :>
64+ QueryParam "oauth_token" OAuthToken :>
65+ QueryParam "alt" AltJSON :>
66+ ReqBody '[JSON] DeploymentsCancelPreviewRequest :>
67+ Post '[JSON] Operation
68+
69+-- | Cancels and removes the preview currently associated with the
70+-- deployment.
71+--
72+-- /See:/ 'deploymentsCancelPreview'' smart constructor.
73+data DeploymentsCancelPreview' = DeploymentsCancelPreview'
74+ { _dcpQuotaUser :: !(Maybe Text)
75+ , _dcpPrettyPrint :: !Bool
76+ , _dcpProject :: !Text
77+ , _dcpUserIP :: !(Maybe Text)
78+ , _dcpPayload :: !DeploymentsCancelPreviewRequest
79+ , _dcpKey :: !(Maybe AuthKey)
80+ , _dcpOAuthToken :: !(Maybe OAuthToken)
81+ , _dcpFields :: !(Maybe Text)
82+ , _dcpDeployment :: !Text
83+ } deriving (Eq,Show,Data,Typeable,Generic)
84+
85+-- | Creates a value of 'DeploymentsCancelPreview'' 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+-- * 'dcpQuotaUser'
90+--
91+-- * 'dcpPrettyPrint'
92+--
93+-- * 'dcpProject'
94+--
95+-- * 'dcpUserIP'
96+--
97+-- * 'dcpPayload'
98+--
99+-- * 'dcpKey'
100+--
101+-- * 'dcpOAuthToken'
102+--
103+-- * 'dcpFields'
104+--
105+-- * 'dcpDeployment'
106+deploymentsCancelPreview'
107+ :: Text -- ^ 'project'
108+ -> DeploymentsCancelPreviewRequest -- ^ 'payload'
109+ -> Text -- ^ 'deployment'
110+ -> DeploymentsCancelPreview'
111+deploymentsCancelPreview' pDcpProject_ pDcpPayload_ pDcpDeployment_ =
112+ DeploymentsCancelPreview'
113+ { _dcpQuotaUser = Nothing
114+ , _dcpPrettyPrint = True
115+ , _dcpProject = pDcpProject_
116+ , _dcpUserIP = Nothing
117+ , _dcpPayload = pDcpPayload_
118+ , _dcpKey = Nothing
119+ , _dcpOAuthToken = Nothing
120+ , _dcpFields = Nothing
121+ , _dcpDeployment = pDcpDeployment_
122+ }
123+
124+-- | Available to use for quota purposes for server-side applications. Can be
125+-- any arbitrary string assigned to a user, but should not exceed 40
126+-- characters. Overrides userIp if both are provided.
127+dcpQuotaUser :: Lens' DeploymentsCancelPreview' (Maybe Text)
128+dcpQuotaUser
129+ = lens _dcpQuotaUser (\ s a -> s{_dcpQuotaUser = a})
130+
131+-- | Returns response with indentations and line breaks.
132+dcpPrettyPrint :: Lens' DeploymentsCancelPreview' Bool
133+dcpPrettyPrint
134+ = lens _dcpPrettyPrint
135+ (\ s a -> s{_dcpPrettyPrint = a})
136+
137+-- | The project ID for this request.
138+dcpProject :: Lens' DeploymentsCancelPreview' Text
139+dcpProject
140+ = lens _dcpProject (\ s a -> s{_dcpProject = a})
141+
142+-- | IP address of the site where the request originates. Use this if you
143+-- want to enforce per-user limits.
144+dcpUserIP :: Lens' DeploymentsCancelPreview' (Maybe Text)
145+dcpUserIP
146+ = lens _dcpUserIP (\ s a -> s{_dcpUserIP = a})
147+
148+-- | Multipart request metadata.
149+dcpPayload :: Lens' DeploymentsCancelPreview' DeploymentsCancelPreviewRequest
150+dcpPayload
151+ = lens _dcpPayload (\ s a -> s{_dcpPayload = a})
152+
153+-- | API key. Your API key identifies your project and provides you with API
154+-- access, quota, and reports. Required unless you provide an OAuth 2.0
155+-- token.
156+dcpKey :: Lens' DeploymentsCancelPreview' (Maybe AuthKey)
157+dcpKey = lens _dcpKey (\ s a -> s{_dcpKey = a})
158+
159+-- | OAuth 2.0 token for the current user.
160+dcpOAuthToken :: Lens' DeploymentsCancelPreview' (Maybe OAuthToken)
161+dcpOAuthToken
162+ = lens _dcpOAuthToken
163+ (\ s a -> s{_dcpOAuthToken = a})
164+
165+-- | Selector specifying which fields to include in a partial response.
166+dcpFields :: Lens' DeploymentsCancelPreview' (Maybe Text)
167+dcpFields
168+ = lens _dcpFields (\ s a -> s{_dcpFields = a})
169+
170+-- | The name of the deployment for this request.
171+dcpDeployment :: Lens' DeploymentsCancelPreview' Text
172+dcpDeployment
173+ = lens _dcpDeployment
174+ (\ s a -> s{_dcpDeployment = a})
175+
176+instance GoogleAuth DeploymentsCancelPreview' where
177+ _AuthKey = dcpKey . _Just
178+ _AuthToken = dcpOAuthToken . _Just
179+
180+instance GoogleRequest DeploymentsCancelPreview'
181+ where
182+ type Rs DeploymentsCancelPreview' = Operation
183+ request = requestWith deploymentManagerRequest
184+ requestWith rq DeploymentsCancelPreview'{..}
185+ = go _dcpProject _dcpDeployment _dcpQuotaUser
186+ (Just _dcpPrettyPrint)
187+ _dcpUserIP
188+ _dcpFields
189+ _dcpKey
190+ _dcpOAuthToken
191+ (Just AltJSON)
192+ _dcpPayload
193+ where go
194+ = clientBuild
195+ (Proxy :: Proxy DeploymentsCancelPreviewResource)
196+ rq
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Delete.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Deletes a deployment and all of the resources in the deployment.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsDelete@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsDelete@.
2626module Network.Google.Resource.DeploymentManager.Deployments.Delete
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Get.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Gets information about a specific deployment.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsGet@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsGet@.
2626module Network.Google.Resource.DeploymentManager.Deployments.Get
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Insert.hs+29−10
@@ -23,7 +23,7 @@
2323-- | Creates a deployment and all of the resources described by the
2424-- deployment manifest.
2525--
26−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsInsert@.
26+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsInsert@.
2727module Network.Google.Resource.DeploymentManager.Deployments.Insert
2828 (
2929 -- * REST Resource
@@ -40,6 +40,7 @@ module Network.Google.Resource.DeploymentManager.Deployments.Insert
4040 , diUserIP
4141 , diPayload
4242 , diKey
43+ , diPreview
4344 , diOAuthToken
4445 , diFields
4546 ) where
@@ -53,14 +54,15 @@ type DeploymentsInsertResource =
5354 Capture "project" Text :>
5455 "global" :>
5556 "deployments" :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] Deployment :> Post '[JSON] Operation
57+ QueryParam "preview" Bool :>
58+ QueryParam "quotaUser" Text :>
59+ QueryParam "prettyPrint" Bool :>
60+ QueryParam "userIp" Text :>
61+ QueryParam "fields" Text :>
62+ QueryParam "key" AuthKey :>
63+ QueryParam "oauth_token" OAuthToken :>
64+ QueryParam "alt" AltJSON :>
65+ ReqBody '[JSON] Deployment :> Post '[JSON] Operation
6466
6567-- | Creates a deployment and all of the resources described by the
6668-- deployment manifest.
@@ -73,6 +75,7 @@ data DeploymentsInsert' = DeploymentsInsert'
7375 , _diUserIP :: !(Maybe Text)
7476 , _diPayload :: !Deployment
7577 , _diKey :: !(Maybe AuthKey)
78+ , _diPreview :: !(Maybe Bool)
7679 , _diOAuthToken :: !(Maybe OAuthToken)
7780 , _diFields :: !(Maybe Text)
7881 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -93,6 +96,8 @@ data DeploymentsInsert' = DeploymentsInsert'
9396--
9497-- * 'diKey'
9598--
99+-- * 'diPreview'
100+--
96101-- * 'diOAuthToken'
97102--
98103-- * 'diFields'
@@ -108,6 +113,7 @@ deploymentsInsert' pDiProject_ pDiPayload_ =
108113 , _diUserIP = Nothing
109114 , _diPayload = pDiPayload_
110115 , _diKey = Nothing
116+ , _diPreview = Nothing
111117 , _diOAuthToken = Nothing
112118 , _diFields = Nothing
113119 }
@@ -146,6 +152,18 @@ diPayload
146152diKey :: Lens' DeploymentsInsert' (Maybe AuthKey)
147153diKey = lens _diKey (\ s a -> s{_diKey = a})
148154
155+-- | If set to true, creates a deployment and creates \"shell\" resources but
156+-- does not actually instantiate these resources. This allows you to
157+-- preview what your deployment looks like. After previewing a deployment,
158+-- you can deploy your resources by making a request with the update()
159+-- method or you can use the cancelPreview() method to cancel the preview
160+-- altogether. Note that the deployment will still exist after you cancel
161+-- the preview and you must separately delete this deployment if you want
162+-- to remove it.
163+diPreview :: Lens' DeploymentsInsert' (Maybe Bool)
164+diPreview
165+ = lens _diPreview (\ s a -> s{_diPreview = a})
166+
149167-- | OAuth 2.0 token for the current user.
150168diOAuthToken :: Lens' DeploymentsInsert' (Maybe OAuthToken)
151169diOAuthToken
@@ -163,7 +181,8 @@ instance GoogleRequest DeploymentsInsert' where
163181 type Rs DeploymentsInsert' = Operation
164182 request = requestWith deploymentManagerRequest
165183 requestWith rq DeploymentsInsert'{..}
166− = go _diProject _diQuotaUser (Just _diPrettyPrint)
184+ = go _diProject _diPreview _diQuotaUser
185+ (Just _diPrettyPrint)
167186 _diUserIP
168187 _diFields
169188 _diKey
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/List.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Lists all deployments for a given project.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsList@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsList@.
2626module Network.Google.Resource.DeploymentManager.Deployments.List
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Patch.hs+24−18
@@ -23,7 +23,7 @@
2323-- | Updates a deployment and all of the resources described by the
2424-- deployment manifest. This method supports patch semantics.
2525--
26−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsPatch@.
26+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsPatch@.
2727module Network.Google.Resource.DeploymentManager.Deployments.Patch
2828 (
2929 -- * REST Resource
@@ -40,9 +40,9 @@ module Network.Google.Resource.DeploymentManager.Deployments.Patch
4040 , dpProject
4141 , dpUserIP
4242 , dpPayload
43− , dpUpdatePolicy
4443 , dpDeletePolicy
4544 , dpKey
45+ , dpPreview
4646 , dpOAuthToken
4747 , dpFields
4848 , dpDeployment
@@ -61,12 +61,10 @@ type DeploymentsPatchResource =
6161 QueryParam "createPolicy"
6262 DeploymentsPatchCreatePolicy
6363 :>
64− QueryParam "updatePolicy"
65− DeploymentsPatchUpdatePolicy
64+ QueryParam "deletePolicy"
65+ DeploymentsPatchDeletePolicy
6666 :>
67− QueryParam "deletePolicy"
68− DeploymentsPatchDeletePolicy
69− :>
67+ QueryParam "preview" Bool :>
7068 QueryParam "quotaUser" Text :>
7169 QueryParam "prettyPrint" Bool :>
7270 QueryParam "userIp" Text :>
@@ -88,9 +86,9 @@ data DeploymentsPatch' = DeploymentsPatch'
8886 , _dpProject :: !Text
8987 , _dpUserIP :: !(Maybe Text)
9088 , _dpPayload :: !Deployment
91− , _dpUpdatePolicy :: !DeploymentsPatchUpdatePolicy
9289 , _dpDeletePolicy :: !DeploymentsPatchDeletePolicy
9390 , _dpKey :: !(Maybe AuthKey)
91+ , _dpPreview :: !Bool
9492 , _dpOAuthToken :: !(Maybe OAuthToken)
9593 , _dpFields :: !(Maybe Text)
9694 , _dpDeployment :: !Text
@@ -112,12 +110,12 @@ data DeploymentsPatch' = DeploymentsPatch'
112110--
113111-- * 'dpPayload'
114112--
115−-- * 'dpUpdatePolicy'
116−--
117113-- * 'dpDeletePolicy'
118114--
119115-- * 'dpKey'
120116--
117+-- * 'dpPreview'
118+--
121119-- * 'dpOAuthToken'
122120--
123121-- * 'dpFields'
@@ -136,9 +134,9 @@ deploymentsPatch' pDpProject_ pDpPayload_ pDpDeployment_ =
136134 , _dpProject = pDpProject_
137135 , _dpUserIP = Nothing
138136 , _dpPayload = pDpPayload_
139− , _dpUpdatePolicy = DPUPPatch'
140137 , _dpDeletePolicy = DPDPDelete'
141138 , _dpKey = Nothing
139+ , _dpPreview = False
142140 , _dpOAuthToken = Nothing
143141 , _dpFields = Nothing
144142 , _dpDeployment = pDpDeployment_
@@ -178,12 +176,6 @@ dpPayload :: Lens' DeploymentsPatch' Deployment
178176dpPayload
179177 = lens _dpPayload (\ s a -> s{_dpPayload = a})
180178
181−-- | Sets the policy to use for updating resources.
182−dpUpdatePolicy :: Lens' DeploymentsPatch' DeploymentsPatchUpdatePolicy
183−dpUpdatePolicy
184− = lens _dpUpdatePolicy
185− (\ s a -> s{_dpUpdatePolicy = a})
186−
187179-- | Sets the policy to use for deleting resources.
188180dpDeletePolicy :: Lens' DeploymentsPatch' DeploymentsPatchDeletePolicy
189181dpDeletePolicy
@@ -196,6 +188,20 @@ dpDeletePolicy
196188dpKey :: Lens' DeploymentsPatch' (Maybe AuthKey)
197189dpKey = lens _dpKey (\ s a -> s{_dpKey = a})
198190
191+-- | If set to true, updates the deployment and creates and updates the
192+-- \"shell\" resources but does not actually alter or instantiate these
193+-- resources. This allows you to preview what your deployment looks like.
194+-- You can use this intent to preview how an update would affect your
195+-- deployment. You must provide a target.config with a configuration if
196+-- this is set to true. After previewing a deployment, you can deploy your
197+-- resources by making a request with the update() or you can
198+-- cancelPreview() to remove the preview altogether. Note that the
199+-- deployment will still exist after you cancel the preview and you must
200+-- separately delete this deployment if you want to remove it.
201+dpPreview :: Lens' DeploymentsPatch' Bool
202+dpPreview
203+ = lens _dpPreview (\ s a -> s{_dpPreview = a})
204+
199205-- | OAuth 2.0 token for the current user.
200206dpOAuthToken :: Lens' DeploymentsPatch' (Maybe OAuthToken)
201207dpOAuthToken
@@ -219,8 +225,8 @@ instance GoogleRequest DeploymentsPatch' where
219225 request = requestWith deploymentManagerRequest
220226 requestWith rq DeploymentsPatch'{..}
221227 = go _dpProject _dpDeployment (Just _dpCreatePolicy)
222− (Just _dpUpdatePolicy)
223228 (Just _dpDeletePolicy)
229+ (Just _dpPreview)
224230 _dpQuotaUser
225231 (Just _dpPrettyPrint)
226232 _dpUserIP
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Stop.hsnew file+191
@@ -0,0 +1,191 @@
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.DeploymentManager.Deployments.Stop
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+-- | Stops an ongoing operation. This does not roll back any work that has
24+-- already been completed, but prevents any new work from being started.
25+--
26+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsStop@.
27+module Network.Google.Resource.DeploymentManager.Deployments.Stop
28+ (
29+ -- * REST Resource
30+ DeploymentsStopResource
31+
32+ -- * Creating a Request
33+ , deploymentsStop'
34+ , DeploymentsStop'
35+
36+ -- * Request Lenses
37+ , dsQuotaUser
38+ , dsPrettyPrint
39+ , dsProject
40+ , dsUserIP
41+ , dsPayload
42+ , dsKey
43+ , dsOAuthToken
44+ , dsFields
45+ , dsDeployment
46+ ) where
47+
48+import Network.Google.DeploymentManager.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @DeploymentManagerDeploymentsStop@ method which the
52+-- 'DeploymentsStop'' request conforms to.
53+type DeploymentsStopResource =
54+ Capture "project" Text :>
55+ "global" :>
56+ "deployments" :>
57+ Capture "deployment" Text :>
58+ "stop" :>
59+ QueryParam "quotaUser" Text :>
60+ QueryParam "prettyPrint" Bool :>
61+ QueryParam "userIp" Text :>
62+ QueryParam "fields" Text :>
63+ QueryParam "key" AuthKey :>
64+ QueryParam "oauth_token" OAuthToken :>
65+ QueryParam "alt" AltJSON :>
66+ ReqBody '[JSON] DeploymentsStopRequest :>
67+ Post '[JSON] Operation
68+
69+-- | Stops an ongoing operation. This does not roll back any work that has
70+-- already been completed, but prevents any new work from being started.
71+--
72+-- /See:/ 'deploymentsStop'' smart constructor.
73+data DeploymentsStop' = DeploymentsStop'
74+ { _dsQuotaUser :: !(Maybe Text)
75+ , _dsPrettyPrint :: !Bool
76+ , _dsProject :: !Text
77+ , _dsUserIP :: !(Maybe Text)
78+ , _dsPayload :: !DeploymentsStopRequest
79+ , _dsKey :: !(Maybe AuthKey)
80+ , _dsOAuthToken :: !(Maybe OAuthToken)
81+ , _dsFields :: !(Maybe Text)
82+ , _dsDeployment :: !Text
83+ } deriving (Eq,Show,Data,Typeable,Generic)
84+
85+-- | Creates a value of 'DeploymentsStop'' 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+-- * 'dsQuotaUser'
90+--
91+-- * 'dsPrettyPrint'
92+--
93+-- * 'dsProject'
94+--
95+-- * 'dsUserIP'
96+--
97+-- * 'dsPayload'
98+--
99+-- * 'dsKey'
100+--
101+-- * 'dsOAuthToken'
102+--
103+-- * 'dsFields'
104+--
105+-- * 'dsDeployment'
106+deploymentsStop'
107+ :: Text -- ^ 'project'
108+ -> DeploymentsStopRequest -- ^ 'payload'
109+ -> Text -- ^ 'deployment'
110+ -> DeploymentsStop'
111+deploymentsStop' pDsProject_ pDsPayload_ pDsDeployment_ =
112+ DeploymentsStop'
113+ { _dsQuotaUser = Nothing
114+ , _dsPrettyPrint = True
115+ , _dsProject = pDsProject_
116+ , _dsUserIP = Nothing
117+ , _dsPayload = pDsPayload_
118+ , _dsKey = Nothing
119+ , _dsOAuthToken = Nothing
120+ , _dsFields = Nothing
121+ , _dsDeployment = pDsDeployment_
122+ }
123+
124+-- | Available to use for quota purposes for server-side applications. Can be
125+-- any arbitrary string assigned to a user, but should not exceed 40
126+-- characters. Overrides userIp if both are provided.
127+dsQuotaUser :: Lens' DeploymentsStop' (Maybe Text)
128+dsQuotaUser
129+ = lens _dsQuotaUser (\ s a -> s{_dsQuotaUser = a})
130+
131+-- | Returns response with indentations and line breaks.
132+dsPrettyPrint :: Lens' DeploymentsStop' Bool
133+dsPrettyPrint
134+ = lens _dsPrettyPrint
135+ (\ s a -> s{_dsPrettyPrint = a})
136+
137+-- | The project ID for this request.
138+dsProject :: Lens' DeploymentsStop' Text
139+dsProject
140+ = lens _dsProject (\ s a -> s{_dsProject = a})
141+
142+-- | IP address of the site where the request originates. Use this if you
143+-- want to enforce per-user limits.
144+dsUserIP :: Lens' DeploymentsStop' (Maybe Text)
145+dsUserIP = lens _dsUserIP (\ s a -> s{_dsUserIP = a})
146+
147+-- | Multipart request metadata.
148+dsPayload :: Lens' DeploymentsStop' DeploymentsStopRequest
149+dsPayload
150+ = lens _dsPayload (\ s a -> s{_dsPayload = a})
151+
152+-- | API key. Your API key identifies your project and provides you with API
153+-- access, quota, and reports. Required unless you provide an OAuth 2.0
154+-- token.
155+dsKey :: Lens' DeploymentsStop' (Maybe AuthKey)
156+dsKey = lens _dsKey (\ s a -> s{_dsKey = a})
157+
158+-- | OAuth 2.0 token for the current user.
159+dsOAuthToken :: Lens' DeploymentsStop' (Maybe OAuthToken)
160+dsOAuthToken
161+ = lens _dsOAuthToken (\ s a -> s{_dsOAuthToken = a})
162+
163+-- | Selector specifying which fields to include in a partial response.
164+dsFields :: Lens' DeploymentsStop' (Maybe Text)
165+dsFields = lens _dsFields (\ s a -> s{_dsFields = a})
166+
167+-- | The name of the deployment for this request.
168+dsDeployment :: Lens' DeploymentsStop' Text
169+dsDeployment
170+ = lens _dsDeployment (\ s a -> s{_dsDeployment = a})
171+
172+instance GoogleAuth DeploymentsStop' where
173+ _AuthKey = dsKey . _Just
174+ _AuthToken = dsOAuthToken . _Just
175+
176+instance GoogleRequest DeploymentsStop' where
177+ type Rs DeploymentsStop' = Operation
178+ request = requestWith deploymentManagerRequest
179+ requestWith rq DeploymentsStop'{..}
180+ = go _dsProject _dsDeployment _dsQuotaUser
181+ (Just _dsPrettyPrint)
182+ _dsUserIP
183+ _dsFields
184+ _dsKey
185+ _dsOAuthToken
186+ (Just AltJSON)
187+ _dsPayload
188+ where go
189+ = clientBuild
190+ (Proxy :: Proxy DeploymentsStopResource)
191+ rq
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Update.hs+24−18
@@ -23,7 +23,7 @@
2323-- | Updates a deployment and all of the resources described by the
2424-- deployment manifest.
2525--
26−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsUpdate@.
26+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerDeploymentsUpdate@.
2727module Network.Google.Resource.DeploymentManager.Deployments.Update
2828 (
2929 -- * REST Resource
@@ -40,9 +40,9 @@ module Network.Google.Resource.DeploymentManager.Deployments.Update
4040 , duProject
4141 , duUserIP
4242 , duPayload
43− , duUpdatePolicy
4443 , duDeletePolicy
4544 , duKey
45+ , duPreview
4646 , duOAuthToken
4747 , duFields
4848 , duDeployment
@@ -61,12 +61,10 @@ type DeploymentsUpdateResource =
6161 QueryParam "createPolicy"
6262 DeploymentsUpdateCreatePolicy
6363 :>
64− QueryParam "updatePolicy"
65− DeploymentsUpdateUpdatePolicy
64+ QueryParam "deletePolicy"
65+ DeploymentsUpdateDeletePolicy
6666 :>
67− QueryParam "deletePolicy"
68− DeploymentsUpdateDeletePolicy
69− :>
67+ QueryParam "preview" Bool :>
7068 QueryParam "quotaUser" Text :>
7169 QueryParam "prettyPrint" Bool :>
7270 QueryParam "userIp" Text :>
@@ -88,9 +86,9 @@ data DeploymentsUpdate' = DeploymentsUpdate'
8886 , _duProject :: !Text
8987 , _duUserIP :: !(Maybe Text)
9088 , _duPayload :: !Deployment
91− , _duUpdatePolicy :: !DeploymentsUpdateUpdatePolicy
9289 , _duDeletePolicy :: !DeploymentsUpdateDeletePolicy
9390 , _duKey :: !(Maybe AuthKey)
91+ , _duPreview :: !Bool
9492 , _duOAuthToken :: !(Maybe OAuthToken)
9593 , _duFields :: !(Maybe Text)
9694 , _duDeployment :: !Text
@@ -112,12 +110,12 @@ data DeploymentsUpdate' = DeploymentsUpdate'
112110--
113111-- * 'duPayload'
114112--
115−-- * 'duUpdatePolicy'
116−--
117113-- * 'duDeletePolicy'
118114--
119115-- * 'duKey'
120116--
117+-- * 'duPreview'
118+--
121119-- * 'duOAuthToken'
122120--
123121-- * 'duFields'
@@ -136,9 +134,9 @@ deploymentsUpdate' pDuProject_ pDuPayload_ pDuDeployment_ =
136134 , _duProject = pDuProject_
137135 , _duUserIP = Nothing
138136 , _duPayload = pDuPayload_
139− , _duUpdatePolicy = Patch'
140137 , _duDeletePolicy = Delete'
141138 , _duKey = Nothing
139+ , _duPreview = False
142140 , _duOAuthToken = Nothing
143141 , _duFields = Nothing
144142 , _duDeployment = pDuDeployment_
@@ -178,12 +176,6 @@ duPayload :: Lens' DeploymentsUpdate' Deployment
178176duPayload
179177 = lens _duPayload (\ s a -> s{_duPayload = a})
180178
181−-- | Sets the policy to use for updating resources.
182−duUpdatePolicy :: Lens' DeploymentsUpdate' DeploymentsUpdateUpdatePolicy
183−duUpdatePolicy
184− = lens _duUpdatePolicy
185− (\ s a -> s{_duUpdatePolicy = a})
186−
187179-- | Sets the policy to use for deleting resources.
188180duDeletePolicy :: Lens' DeploymentsUpdate' DeploymentsUpdateDeletePolicy
189181duDeletePolicy
@@ -196,6 +188,20 @@ duDeletePolicy
196188duKey :: Lens' DeploymentsUpdate' (Maybe AuthKey)
197189duKey = lens _duKey (\ s a -> s{_duKey = a})
198190
191+-- | If set to true, updates the deployment and creates and updates the
192+-- \"shell\" resources but does not actually alter or instantiate these
193+-- resources. This allows you to preview what your deployment looks like.
194+-- You can use this intent to preview how an update would affect your
195+-- deployment. You must provide a target.config with a configuration if
196+-- this is set to true. After previewing a deployment, you can deploy your
197+-- resources by making a request with the update() or you can
198+-- cancelPreview() to remove the preview altogether. Note that the
199+-- deployment will still exist after you cancel the preview and you must
200+-- separately delete this deployment if you want to remove it.
201+duPreview :: Lens' DeploymentsUpdate' Bool
202+duPreview
203+ = lens _duPreview (\ s a -> s{_duPreview = a})
204+
199205-- | OAuth 2.0 token for the current user.
200206duOAuthToken :: Lens' DeploymentsUpdate' (Maybe OAuthToken)
201207duOAuthToken
@@ -219,8 +225,8 @@ instance GoogleRequest DeploymentsUpdate' where
219225 request = requestWith deploymentManagerRequest
220226 requestWith rq DeploymentsUpdate'{..}
221227 = go _duProject _duDeployment (Just _duCreatePolicy)
222− (Just _duUpdatePolicy)
223228 (Just _duDeletePolicy)
229+ (Just _duPreview)
224230 _duQuotaUser
225231 (Just _duPrettyPrint)
226232 _duUserIP
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/Get.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Gets information about a specific manifest.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerManifestsGet@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerManifestsGet@.
2626module Network.Google.Resource.DeploymentManager.Manifests.Get
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/List.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Lists all manifests for a given deployment.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerManifestsList@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerManifestsList@.
2626module Network.Google.Resource.DeploymentManager.Manifests.List
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/Get.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Gets information about a specific operation.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerOperationsGet@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerOperationsGet@.
2626module Network.Google.Resource.DeploymentManager.Operations.Get
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/List.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Lists all operations for a project.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerOperationsList@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerOperationsList@.
2626module Network.Google.Resource.DeploymentManager.Operations.List
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/Get.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Gets information about a single resource.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerResourcesGet@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerResourcesGet@.
2626module Network.Google.Resource.DeploymentManager.Resources.Get
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/List.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Lists all resources in a given deployment.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerResourcesList@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerResourcesList@.
2626module Network.Google.Resource.DeploymentManager.Resources.List
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Types/List.hs+1−1
@@ -22,7 +22,7 @@
2222--
2323-- | Lists all resource types for Deployment Manager.
2424--
25−-- /See:/ <https://developers.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerTypesList@.
25+-- /See:/ <https://cloud.google.com/deployment-manager/ Google Cloud Deployment Manager API Reference> for @DeploymentManagerTypesList@.
2626module Network.Google.Resource.DeploymentManager.Types.List
2727 (
2828 -- * REST Resource
gogol-deploymentmanager/gogol-deploymentmanager.cabal+3−1
@@ -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 @v2beta2@
23+ This library is compatible with version @v2@
2424 of the API.
2525
2626source-repository head
@@ -36,11 +36,13 @@ library
3636 exposed-modules:
3737 Network.Google.DeploymentManager
3838 , Network.Google.DeploymentManager.Types
39+ , Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
3940 , Network.Google.Resource.DeploymentManager.Deployments.Delete
4041 , Network.Google.Resource.DeploymentManager.Deployments.Get
4142 , Network.Google.Resource.DeploymentManager.Deployments.Insert
4243 , Network.Google.Resource.DeploymentManager.Deployments.List
4344 , Network.Google.Resource.DeploymentManager.Deployments.Patch
45+ , Network.Google.Resource.DeploymentManager.Deployments.Stop
4446 , Network.Google.Resource.DeploymentManager.Deployments.Update
4547 , Network.Google.Resource.DeploymentManager.Manifests.Get
4648 , Network.Google.Resource.DeploymentManager.Manifests.List
gogol-dns/gen/Network/Google/DNS.hs+3
@@ -88,6 +88,9 @@ module Network.Google.DNS
8888 , rrslrKind
8989 , rrslrRrsets
9090
91+ -- ** ChangeStatus
92+ , ChangeStatus (..)
93+
9194 -- ** ResourceRecordSet
9295 , ResourceRecordSet
9396 , resourceRecordSet
gogol-dns/gen/Network/Google/DNS/Types.hs+5−2
@@ -53,6 +53,9 @@ module Network.Google.DNS.Types
5353 , rrslrKind
5454 , rrslrRrsets
5555
56+ -- * ChangeStatus
57+ , ChangeStatus (..)
58+
5659 -- * ResourceRecordSet
5760 , ResourceRecordSet
5861 , resourceRecordSet
@@ -97,8 +100,8 @@ import Network.Google.DNS.Types.Product
97100import Network.Google.DNS.Types.Sum
98101import Network.Google.Prelude
99102
100−-- | Default request referring to version 'v1beta1' of the Google Cloud DNS API. This contains the host and root path used as a starting point for constructing service requests.
103+-- | Default request referring to version 'v1' of the Google Cloud DNS API. This contains the host and root path used as a starting point for constructing service requests.
101104dNSRequest :: RequestBuilder
102105dNSRequest
103106 = defaultRequest "https://www.googleapis.com/"
104− "dns/v1beta1/projects/"
107+ "dns/v1/projects/"
gogol-dns/gen/Network/Google/DNS/Types/Product.hs+2−2
@@ -162,7 +162,7 @@ instance ToJSON Project where
162162--
163163-- /See:/ 'change' smart constructor.
164164data Change = Change
165− { _cStatus :: !(Maybe Text)
165+ { _cStatus :: !(Maybe ChangeStatus)
166166 , _cAdditions :: !(Maybe [ResourceRecordSet])
167167 , _cStartTime :: !(Maybe Text)
168168 , _cKind :: !Text
@@ -198,7 +198,7 @@ change =
198198 }
199199
200200-- | Status of the operation (output only).
201−cStatus :: Lens' Change (Maybe Text)
201+cStatus :: Lens' Change (Maybe ChangeStatus)
202202cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
203203
204204-- | Which ResourceRecordSets to add?
gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+27
@@ -40,3 +40,30 @@ instance FromJSON ChangesListSortBy where
4040
4141instance ToJSON ChangesListSortBy where
4242 toJSON = toJSONText
43+
44+-- | Status of the operation (output only).
45+data ChangeStatus
46+ = Done
47+ -- ^ @done@
48+ | Pending
49+ -- ^ @pending@
50+ deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
51+
52+instance Hashable ChangeStatus
53+
54+instance FromText ChangeStatus where
55+ fromText = \case
56+ "done" -> Just Done
57+ "pending" -> Just Pending
58+ _ -> Nothing
59+
60+instance ToText ChangeStatus where
61+ toText = \case
62+ Done -> "done"
63+ Pending -> "pending"
64+
65+instance FromJSON ChangeStatus where
66+ parseJSON = parseJSONText "ChangeStatus"
67+
68+instance ToJSON ChangeStatus where
69+ toJSON = toJSONText
gogol-dns/gogol-dns.cabal+1−1
@@ -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 @v1beta1@
23+ This library is compatible with version @v1@
2424 of the API.
2525
2626source-repository head
gogol-genomics/gen/Network/Google/Genomics.hs+184−486
@@ -13,9 +13,10 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- | Provides access to Genomics data.
16+-- | An API to store, process, explore, and share DNA sequence reads,
17+-- reference-based alignments, and variant calls.
1718--
18−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference>
19+-- /See:/ < Genomics API Reference>
1920module Network.Google.Genomics
2021 (
2122 -- * API Declaration
@@ -23,45 +24,6 @@ module Network.Google.Genomics
2324
2425 -- * Resources
2526
26− -- ** GenomicsAnnotationSetsCreate
27− , module Network.Google.Resource.Genomics.AnnotationSets.Create
28−
29− -- ** GenomicsAnnotationSetsDelete
30− , module Network.Google.Resource.Genomics.AnnotationSets.Delete
31−
32− -- ** GenomicsAnnotationSetsGet
33− , module Network.Google.Resource.Genomics.AnnotationSets.Get
34−
35− -- ** GenomicsAnnotationSetsPatch
36− , module Network.Google.Resource.Genomics.AnnotationSets.Patch
37−
38− -- ** GenomicsAnnotationSetsSearch
39− , module Network.Google.Resource.Genomics.AnnotationSets.Search
40−
41− -- ** GenomicsAnnotationSetsUpdate
42− , module Network.Google.Resource.Genomics.AnnotationSets.Update
43−
44− -- ** GenomicsAnnotationsBatchCreate
45− , module Network.Google.Resource.Genomics.Annotations.BatchCreate
46−
47− -- ** GenomicsAnnotationsCreate
48− , module Network.Google.Resource.Genomics.Annotations.Create
49−
50− -- ** GenomicsAnnotationsDelete
51− , module Network.Google.Resource.Genomics.Annotations.Delete
52−
53− -- ** GenomicsAnnotationsGet
54− , module Network.Google.Resource.Genomics.Annotations.Get
55−
56− -- ** GenomicsAnnotationsPatch
57− , module Network.Google.Resource.Genomics.Annotations.Patch
58−
59− -- ** GenomicsAnnotationsSearch
60− , module Network.Google.Resource.Genomics.Annotations.Search
61−
62− -- ** GenomicsAnnotationsUpdate
63− , module Network.Google.Resource.Genomics.Annotations.Update
64−
6527 -- ** GenomicsCallsetsCreate
6628 , module Network.Google.Resource.Genomics.Callsets.Create
6729
@@ -77,9 +39,6 @@ module Network.Google.Genomics
7739 -- ** GenomicsCallsetsSearch
7840 , module Network.Google.Resource.Genomics.Callsets.Search
7941
80− -- ** GenomicsCallsetsUpdate
81− , module Network.Google.Resource.Genomics.Callsets.Update
82−
8342 -- ** GenomicsDatasetsCreate
8443 , module Network.Google.Resource.Genomics.Datasets.Create
8544
@@ -89,35 +48,35 @@ module Network.Google.Genomics
8948 -- ** GenomicsDatasetsGet
9049 , module Network.Google.Resource.Genomics.Datasets.Get
9150
51+ -- ** GenomicsDatasetsGetIAMPolicy
52+ , module Network.Google.Resource.Genomics.Datasets.GetIAMPolicy
53+
9254 -- ** GenomicsDatasetsList
9355 , module Network.Google.Resource.Genomics.Datasets.List
9456
9557 -- ** GenomicsDatasetsPatch
9658 , module Network.Google.Resource.Genomics.Datasets.Patch
9759
98− -- ** GenomicsDatasetsUndelete
99− , module Network.Google.Resource.Genomics.Datasets.Undelete
100−
101− -- ** GenomicsDatasetsUpdate
102− , module Network.Google.Resource.Genomics.Datasets.Update
60+ -- ** GenomicsDatasetsSetIAMPolicy
61+ , module Network.Google.Resource.Genomics.Datasets.SetIAMPolicy
10362
104− -- ** GenomicsExperimentalJobsCreate
105− , module Network.Google.Resource.Genomics.Experimental.Jobs.Create
63+ -- ** GenomicsDatasetsTestIAMPermissions
64+ , module Network.Google.Resource.Genomics.Datasets.TestIAMPermissions
10665
107− -- ** GenomicsJobsCancel
108− , module Network.Google.Resource.Genomics.Jobs.Cancel
66+ -- ** GenomicsDatasetsUndelete
67+ , module Network.Google.Resource.Genomics.Datasets.Undelete
10968
110− -- ** GenomicsJobsGet
111− , module Network.Google.Resource.Genomics.Jobs.Get
69+ -- ** GenomicsOperationsCancel
70+ , module Network.Google.Resource.Genomics.Operations.Cancel
11271
113− -- ** GenomicsJobsSearch
114− , module Network.Google.Resource.Genomics.Jobs.Search
72+ -- ** GenomicsOperationsDelete
73+ , module Network.Google.Resource.Genomics.Operations.Delete
11574
116− -- ** GenomicsReadgroupsetsAlign
117− , module Network.Google.Resource.Genomics.Readgroupsets.Align
75+ -- ** GenomicsOperationsGet
76+ , module Network.Google.Resource.Genomics.Operations.Get
11877
119− -- ** GenomicsReadgroupsetsCall
120− , module Network.Google.Resource.Genomics.Readgroupsets.Call
78+ -- ** GenomicsOperationsList
79+ , module Network.Google.Resource.Genomics.Operations.List
12180
12281 -- ** GenomicsReadgroupsetsCoveragebucketsList
12382 , module Network.Google.Resource.Genomics.Readgroupsets.Coveragebuckets.List
@@ -140,9 +99,6 @@ module Network.Google.Genomics
14099 -- ** GenomicsReadgroupsetsSearch
141100 , module Network.Google.Resource.Genomics.Readgroupsets.Search
142101
143− -- ** GenomicsReadgroupsetsUpdate
144− , module Network.Google.Resource.Genomics.Readgroupsets.Update
145−
146102 -- ** GenomicsReadsSearch
147103 , module Network.Google.Resource.Genomics.Reads.Search
148104
@@ -170,12 +126,15 @@ module Network.Google.Genomics
170126 -- ** GenomicsVariantsGet
171127 , module Network.Google.Resource.Genomics.Variants.Get
172128
129+ -- ** GenomicsVariantsImport
130+ , module Network.Google.Resource.Genomics.Variants.Import
131+
132+ -- ** GenomicsVariantsPatch
133+ , module Network.Google.Resource.Genomics.Variants.Patch
134+
173135 -- ** GenomicsVariantsSearch
174136 , module Network.Google.Resource.Genomics.Variants.Search
175137
176− -- ** GenomicsVariantsUpdate
177− , module Network.Google.Resource.Genomics.Variants.Update
178−
179138 -- ** GenomicsVariantsetsCreate
180139 , module Network.Google.Resource.Genomics.Variantsets.Create
181140
@@ -188,59 +147,28 @@ module Network.Google.Genomics
188147 -- ** GenomicsVariantsetsGet
189148 , module Network.Google.Resource.Genomics.Variantsets.Get
190149
191− -- ** GenomicsVariantsetsImportVariants
192− , module Network.Google.Resource.Genomics.Variantsets.ImportVariants
193−
194− -- ** GenomicsVariantsetsMergeVariants
195− , module Network.Google.Resource.Genomics.Variantsets.MergeVariants
196−
197150 -- ** GenomicsVariantsetsPatch
198151 , module Network.Google.Resource.Genomics.Variantsets.Patch
199152
200153 -- ** GenomicsVariantsetsSearch
201154 , module Network.Google.Resource.Genomics.Variantsets.Search
202155
203− -- ** GenomicsVariantsetsUpdate
204− , module Network.Google.Resource.Genomics.Variantsets.Update
205−
206156 -- * Types
207157
208− -- ** FastqMetadata
209− , FastqMetadata
210− , fastqMetadata
211− , fmPlatformUnit
212− , fmReadGroupName
213− , fmLibraryName
214− , fmPlatformName
215− , fmSampleName
216−
217− -- ** CallInfo
218− , CallInfo
219− , callInfo
220−
221158 -- ** ReadInfo
222159 , ReadInfo
223160 , readInfo
224161
225− -- ** ReadGroupExperiment
226− , ReadGroupExperiment
227− , readGroupExperiment
228− , rgeInstrumentModel
229− , rgePlatformUnit
230− , rgeSequencingCenter
231− , rgeLibraryId
232−
233− -- ** KeyValue
234− , KeyValue
235− , keyValue
236− , kvValue
237− , kvKey
162+ -- ** Status
163+ , Status
164+ , status
165+ , sDetails
166+ , sCode
167+ , sMessage
238168
239− -- ** SearchAnnotationSetsRequestTypesItem
240− , SearchAnnotationSetsRequestTypesItem (..)
241−
242− -- ** VariantAnnotationEffect
243− , VariantAnnotationEffect (..)
169+ -- ** OperationSchema
170+ , OperationSchema
171+ , operationSchema
244172
245173 -- ** Variant
246174 , Variant
@@ -259,37 +187,6 @@ module Network.Google.Genomics
259187 , vInfo
260188 , vCalls
261189
262− -- ** Annotation
263− , Annotation
264− , annotation
265− , aVariant
266− , aAnnotationSetId
267− , aName
268− , aId
269− , aType
270− , aTranscript
271− , aInfo
272− , aPosition
273−
274− -- ** InterleavedFastqSource
275− , InterleavedFastqSource
276− , interleavedFastqSource
277− , ifsMetadata
278− , ifsSourceURIs
279−
280− -- ** CallReadGroupSetsRequest
281− , CallReadGroupSetsRequest
282− , callReadGroupSetsRequest
283− , crgsrReadGroupSetId
284− , crgsrDatasetId
285− , crgsrSourceURIs
286−
287− -- ** BatchAnnotationsResponseEntry
288− , BatchAnnotationsResponseEntry
289− , batchAnnotationsResponseEntry
290− , bareStatus
291− , bareAnnotation
292−
293190 -- ** ListBasesResponse
294191 , ListBasesResponse
295192 , listBasesResponse
@@ -297,13 +194,26 @@ module Network.Google.Genomics
297194 , lbrOffset
298195 , lbrSequence
299196
197+ -- ** ListOperationsResponse
198+ , ListOperationsResponse
199+ , listOperationsResponse
200+ , lorNextPageToken
201+ , lorOperations
202+
203+ -- ** GetIAMPolicyRequest
204+ , GetIAMPolicyRequest
205+ , getIAMPolicyRequest
206+
207+ -- ** CancelOperationRequest
208+ , CancelOperationRequest
209+ , cancelOperationRequest
210+
300211 -- ** Dataset
301212 , Dataset
302213 , dataset
303− , dIsPublic
304− , dProjectNumber
305214 , dName
306215 , dId
216+ , dProjectId
307217 , dCreateTime
308218
309219 -- ** Read'
@@ -327,40 +237,15 @@ module Network.Google.Genomics
327237 , rReadNumber
328238 , rAlignedQuality
329239
330− -- ** TranscriptExon
331− , TranscriptExon
332− , transcriptExon
333− , teStart
334− , teEnd
335− , teFrame
336−
337− -- ** Call
338− , Call
339− , call
340− , cGenotypeLikelihood
341− , cCallSetName
342− , cPhaseset
343− , cCallSetId
344− , cGenotype
345− , cInfo
346−
347− -- ** QueryRange
348− , QueryRange
349− , queryRange
350− , qrStart
351− , qrReferenceId
352− , qrReferenceName
353− , qrEnd
354−
355− -- ** BatchCreateAnnotationsRequest
356− , BatchCreateAnnotationsRequest
357− , batchCreateAnnotationsRequest
358− , bcarAnnotations
359−
360− -- ** MergeVariantsRequest
361− , MergeVariantsRequest
362− , mergeVariantsRequest
363− , mvrVariants
240+ -- ** VariantCall
241+ , VariantCall
242+ , variantCall
243+ , vcGenotypeLikelihood
244+ , vcCallSetName
245+ , vcPhaseset
246+ , vcCallSetId
247+ , vcGenotype
248+ , vcInfo
364249
365250 -- ** ReadGroup
366251 , ReadGroup
@@ -376,8 +261,14 @@ module Network.Google.Genomics
376261 , rgDescription
377262 , rgInfo
378263
379− -- ** MetadataType
380− , MetadataType (..)
264+ -- ** Operation
265+ , Operation
266+ , operation
267+ , oDone
268+ , oError
269+ , oResponse
270+ , oName
271+ , oMetadata
381272
382273 -- ** SearchReferenceSetsRequest
383274 , SearchReferenceSetsRequest
@@ -388,8 +279,9 @@ module Network.Google.Genomics
388279 , srsrAssemblyId
389280 , srsrPageSize
390281
391− -- ** AnnotationSetType
392− , AnnotationSetType (..)
282+ -- ** Empty
283+ , Empty
284+ , empty
393285
394286 -- ** SearchReferencesResponse
395287 , SearchReferencesResponse
@@ -397,6 +289,17 @@ module Network.Google.Genomics
397289 , srrNextPageToken
398290 , srrReferences
399291
292+ -- ** VariantSetMetadata
293+ , VariantSetMetadata
294+ , variantSetMetadata
295+ , vsmValue
296+ , vsmKey
297+ , vsmId
298+ , vsmType
299+ , vsmNumber
300+ , vsmDescription
301+ , vsmInfo
302+
400303 -- ** CallSet
401304 , CallSet
402305 , callSet
@@ -413,20 +316,6 @@ module Network.Google.Genomics
413316 , cbRange
414317 , cbMeanCoverage
415318
416− -- ** VariantAnnotation
417− , VariantAnnotation
418− , variantAnnotation
419− , vaEffect
420− , vaClinicalSignificance
421− , vaAlternateBases
422− , vaGeneId
423− , vaConditions
424− , vaType
425− , vaTranscriptIds
426−
427− -- ** VariantAnnotationClinicalSignificance
428− , VariantAnnotationClinicalSignificance (..)
429−
430319 -- ** SearchReadGroupSetsRequest
431320 , SearchReadGroupSetsRequest
432321 , searchReadGroupSetsRequest
@@ -435,12 +324,6 @@ module Network.Google.Genomics
435324 , srgsrPageToken
436325 , srgsrPageSize
437326
438− -- ** BatchAnnotationsResponseEntryStatus
439− , BatchAnnotationsResponseEntryStatus
440− , batchAnnotationsResponseEntryStatus
441− , baresCode
442− , baresMessage
443−
444327 -- ** Reference
445328 , Reference
446329 , reference
@@ -452,24 +335,17 @@ module Network.Google.Genomics
452335 , refId
453336 , refSourceURI
454337
455− -- ** BatchAnnotationsResponse
456− , BatchAnnotationsResponse
457− , batchAnnotationsResponse
458− , barEntries
338+ -- ** VariantCallInfo
339+ , VariantCallInfo
340+ , variantCallInfo
459341
460342 -- ** ReadGroupInfo
461343 , ReadGroupInfo
462344 , readGroupInfo
463345
464− -- ** SearchJobsRequest
465− , SearchJobsRequest
466− , searchJobsRequest
467− , sjrCreatedAfter
468− , sjrStatus
469− , sjrProjectNumber
470− , sjrPageToken
471− , sjrPageSize
472− , sjrCreatedBefore
346+ -- ** StatusDetailsItem
347+ , StatusDetailsItem
348+ , statusDetailsItem
473349
474350 -- ** SearchCallSetsResponse
475351 , SearchCallSetsResponse
@@ -477,22 +353,10 @@ module Network.Google.Genomics
477353 , scsrNextPageToken
478354 , scsrCallSets
479355
480− -- ** ExperimentalCreateJobRequest
481− , ExperimentalCreateJobRequest
482− , experimentalCreateJobRequest
483− , ecjrGcsOutputPath
484− , ecjrProjectNumber
485− , ecjrAlign
486− , ecjrSourceURIs
487− , ecjrPairedSourceURIs
488− , ecjrCallVariants
489−
490− -- ** JobRequest
491− , JobRequest
492− , jobRequest
493− , jrDestination
494− , jrSource
495− , jrType
356+ -- ** SetIAMPolicyRequest
357+ , SetIAMPolicyRequest
358+ , setIAMPolicyRequest
359+ , siprPolicy
496360
497361 -- ** SearchReadsRequest
498362 , SearchReadsRequest
@@ -505,10 +369,22 @@ module Network.Google.Genomics
505369 , srrPageSize
506370 , srrReadGroupSetIds
507371
372+ -- ** OperationMetadataRequest
373+ , OperationMetadataRequest
374+ , operationMetadataRequest
375+
508376 -- ** VariantInfo
509377 , VariantInfo
510378 , variantInfo
511379
380+ -- ** Experiment
381+ , Experiment
382+ , experiment
383+ , eInstrumentModel
384+ , ePlatformUnit
385+ , eSequencingCenter
386+ , eLibraryId
387+
512388 -- ** SearchVariantSetsRequest
513389 , SearchVariantSetsRequest
514390 , searchVariantSetsRequest
@@ -516,62 +392,12 @@ module Network.Google.Genomics
516392 , svsrPageToken
517393 , svsrPageSize
518394
519− -- ** ReadGroupProgram
520− , ReadGroupProgram
521− , readGroupProgram
522− , rgpPrevProgramId
523− , rgpName
524− , rgpVersion
525− , rgpId
526− , rgpCommandLine
527−
528− -- ** Int32Value
529− , Int32Value
530− , int32Value
531− , ivValue
532−
533− -- ** AnnotationInfo
534− , AnnotationInfo
535− , annotationInfo
536−
537− -- ** ExportReadGroupSetsRequest
538− , ExportReadGroupSetsRequest
539− , exportReadGroupSetsRequest
540− , ergsrReferenceNames
541− , ergsrProjectNumber
542− , ergsrExportURI
543− , ergsrReadGroupSetIds
544−
545− -- ** SearchAnnotationsResponse
546− , SearchAnnotationsResponse
547− , searchAnnotationsResponse
548− , sarAnnotations
549− , sarNextPageToken
550−
551− -- ** SearchAnnotationSetsRequest
552− , SearchAnnotationSetsRequest
553− , searchAnnotationSetsRequest
554− , sasrReferenceSetId
555− , sasrTypes
556− , sasrDatasetIds
557− , sasrName
558− , sasrPageToken
559− , sasrPageSize
560−
561− -- ** ImportReadGroupSetsRequestPartitionStrategy
562− , ImportReadGroupSetsRequestPartitionStrategy (..)
563−
564395 -- ** SearchVariantsResponse
565396 , SearchVariantsResponse
566397 , searchVariantsResponse
567398 , svrVariants
568399 , svrNextPageToken
569400
570− -- ** ExperimentalCreateJobResponse
571− , ExperimentalCreateJobResponse
572− , experimentalCreateJobResponse
573− , ecjrJobId
574−
575401 -- ** SearchCallSetsRequest
576402 , SearchCallSetsRequest
577403 , searchCallSetsRequest
@@ -586,12 +412,14 @@ module Network.Google.Genomics
586412 , sNextPageToken
587413 , sAlignments
588414
589− -- ** PairedFastqSource
590− , PairedFastqSource
591− , pairedFastqSource
592− , pfsFirstSourceURIs
593− , pfsMetadata
594− , pfsSecondSourceURIs
415+ -- ** Program
416+ , Program
417+ , program
418+ , pPrevProgramId
419+ , pName
420+ , pVersion
421+ , pId
422+ , pCommandLine
595423
596424 -- ** SearchReferencesRequest
597425 , SearchReferencesRequest
@@ -602,9 +430,6 @@ module Network.Google.Genomics
602430 , sPageToken
603431 , sPageSize
604432
605− -- ** AnnotationType
606− , AnnotationType (..)
607−
608433 -- ** SearchReferenceSetsResponse
609434 , SearchReferenceSetsResponse
610435 , searchReferenceSetsResponse
@@ -629,36 +454,17 @@ module Network.Google.Genomics
629454 , rgsReadGroups
630455 , rgsFilename
631456
632− -- ** Job
633− , Job
634− , job
635− , jDetailedStatus
636− , jStatus
637− , jCreated
638− , jProjectNumber
639− , jWarnings
640− , jImportedIds
641− , jId
642− , jErrors
643− , jRequest
644−
645− -- ** ExportVariantSetResponse
646− , ExportVariantSetResponse
647− , exportVariantSetResponse
648− , evsrJobId
649−
650− -- ** AlignReadGroupSetsResponse
651− , AlignReadGroupSetsResponse
652− , alignReadGroupSetsResponse
653− , argsrJobId
654−
655− -- ** SearchJobsRequestStatusItem
656− , SearchJobsRequestStatusItem (..)
457+ -- ** ExportReadGroupSetRequest
458+ , ExportReadGroupSetRequest
459+ , exportReadGroupSetRequest
460+ , ergsrReferenceNames
461+ , ergsrExportURI
462+ , ergsrProjectId
657463
658464 -- ** ImportVariantsResponse
659465 , ImportVariantsResponse
660466 , importVariantsResponse
661− , ivrJobId
467+ , ivrCallSetIds
662468
663469 -- ** ListCoverageBucketsResponse
664470 , ListCoverageBucketsResponse
@@ -667,10 +473,15 @@ module Network.Google.Genomics
667473 , lcbrBucketWidth
668474 , lcbrCoverageBuckets
669475
476+ -- ** TestIAMPermissionsRequest
477+ , TestIAMPermissionsRequest
478+ , testIAMPermissionsRequest
479+ , tiprPermissions
480+
670481 -- ** ImportReadGroupSetsResponse
671482 , ImportReadGroupSetsResponse
672483 , importReadGroupSetsResponse
673− , irgsrJobId
484+ , irgsrReadGroupSetIds
674485
675486 -- ** LinearAlignment
676487 , LinearAlignment
@@ -679,33 +490,6 @@ module Network.Google.Genomics
679490 , laMAppingQuality
680491 , laPosition
681492
682− -- ** Metadata
683− , Metadata
684− , metadata
685− , mValue
686− , mKey
687− , mId
688− , mType
689− , mNumber
690− , mDescription
691− , mInfo
692−
693− -- ** CallReadGroupSetsResponse
694− , CallReadGroupSetsResponse
695− , callReadGroupSetsResponse
696− , crgsrJobId
697−
698− -- ** AnnotationSet
699− , AnnotationSet
700− , annotationSet
701− , asReferenceSetId
702− , asName
703− , asDatasetId
704− , asId
705− , asType
706− , asSourceURI
707− , asInfo
708−
709493 -- ** VariantSet
710494 , VariantSet
711495 , variantSet
@@ -714,8 +498,10 @@ module Network.Google.Genomics
714498 , vsMetadata
715499 , vsId
716500
717− -- ** CigarUnitOperation
718− , CigarUnitOperation (..)
501+ -- ** TestIAMPermissionsResponse
502+ , TestIAMPermissionsResponse
503+ , testIAMPermissionsResponse
504+ , tiamprPermissions
719505
720506 -- ** ListDatasetsResponse
721507 , ListDatasetsResponse
@@ -734,16 +520,11 @@ module Network.Google.Genomics
734520 -- ** ImportVariantsRequest
735521 , ImportVariantsRequest
736522 , importVariantsRequest
523+ , ivrVariantSetId
737524 , ivrFormat
738525 , ivrNormalizeReferenceNames
739526 , ivrSourceURIs
740527
741− -- ** ExternalId
742− , ExternalId
743− , externalId
744− , eiSourceName
745− , eiId
746−
747528 -- ** CigarUnit
748529 , CigarUnit
749530 , cigarUnit
@@ -751,14 +532,12 @@ module Network.Google.Genomics
751532 , cuOperationLength
752533 , cuReferenceSequence
753534
754− -- ** AlignReadGroupSetsRequest
755− , AlignReadGroupSetsRequest
756− , alignReadGroupSetsRequest
757− , argsrInterleavedFastqSource
758− , argsrReadGroupSetId
759− , argsrBamSourceURIs
760− , argsrPairedFastqSource
761− , argsrDatasetId
535+ -- ** Policy
536+ , Policy
537+ , policy
538+ , polEtag
539+ , polVersion
540+ , polBindings
762541
763542 -- ** ExportVariantSetRequest
764543 , ExportVariantSetRequest
@@ -766,34 +545,16 @@ module Network.Google.Genomics
766545 , evsrBigQueryDataset
767546 , evsrBigQueryTable
768547 , evsrFormat
769− , evsrProjectNumber
770548 , evsrCallSetIds
549+ , evsrProjectId
771550
772− -- ** VariantAnnotationType
773− , VariantAnnotationType (..)
774−
775− -- ** ExportReadGroupSetsResponse
776− , ExportReadGroupSetsResponse
777− , exportReadGroupSetsResponse
778− , ergsrJobId
779−
780− -- ** JobStatus
781− , JobStatus (..)
782−
783− -- ** ImportVariantsRequestFormat
784− , ImportVariantsRequestFormat (..)
785−
786− -- ** SearchAnnotationsRequest
787− , SearchAnnotationsRequest
788− , searchAnnotationsRequest
789− , sarRange
790− , sarPageToken
791− , sarAnnotationSetIds
792− , sarPageSize
793−
794− -- ** MetadataInfo
795− , MetadataInfo
796− , metadataInfo
551+ -- ** OperationMetadata
552+ , OperationMetadata
553+ , operationMetadata
554+ , omEvents
555+ , omProjectId
556+ , omCreateTime
557+ , omRequest
797558
798559 -- ** SearchVariantSetsResponse
799560 , SearchVariantSetsResponse
@@ -814,61 +575,22 @@ module Network.Google.Genomics
814575 , svrVariantSetIds
815576 , svrPageSize
816577
817− -- ** ExportVariantSetRequestFormat
818− , ExportVariantSetRequestFormat (..)
819−
820− -- ** AnnotationSetInfo
821− , AnnotationSetInfo
822− , annotationSetInfo
823−
824− -- ** VariantAnnotationCondition
825− , VariantAnnotationCondition
826− , variantAnnotationCondition
827− , vacExternalIds
828− , vacNames
829− , vacConceptId
830− , vacOmimId
831−
832− -- ** SearchAnnotationSetsResponse
833− , SearchAnnotationSetsResponse
834− , searchAnnotationSetsResponse
835− , sasrNextPageToken
836− , sasrAnnotationSets
837−
838578 -- ** CallSetInfo
839579 , CallSetInfo
840580 , callSetInfo
841581
842− -- ** JobRequestType
843− , JobRequestType (..)
844−
845− -- ** RangePosition
846− , RangePosition
847− , rangePosition
848− , rpStart
849− , rpReverseStrand
850− , rpReferenceId
851− , rpReferenceName
852− , rpEnd
853−
854− -- ** Transcript
855− , Transcript
856− , transcript
857− , tGeneId
858− , tCodingSequence
859− , tExons
860−
861− -- ** TranscriptCodingSequence
862− , TranscriptCodingSequence
863− , transcriptCodingSequence
864− , tcsStart
865− , tcsEnd
866−
867− -- ** SearchJobsResponse
868− , SearchJobsResponse
869− , searchJobsResponse
870− , sjrNextPageToken
871− , sjrJobs
582+ -- ** VariantSetMetadataInfo
583+ , VariantSetMetadataInfo
584+ , variantSetMetadataInfo
585+
586+ -- ** OperationResponse
587+ , OperationResponse
588+ , operationResponse
589+
590+ -- ** OperationEvent
591+ , OperationEvent
592+ , operationEvent
593+ , oeDescription
872594
873595 -- ** ReferenceBound
874596 , ReferenceBound
@@ -876,6 +598,16 @@ module Network.Google.Genomics
876598 , rbUpperBound
877599 , rbReferenceName
878600
601+ -- ** UndeleteDatasetRequest
602+ , UndeleteDatasetRequest
603+ , undeleteDatasetRequest
604+
605+ -- ** Binding
606+ , Binding
607+ , binding
608+ , bMembers
609+ , bRole
610+
879611 -- ** Position
880612 , Position
881613 , position
@@ -908,38 +640,24 @@ module Network.Google.Genomics
908640
909641import Network.Google.Genomics.Types
910642import Network.Google.Prelude
911−import Network.Google.Resource.Genomics.Annotations.BatchCreate
912−import Network.Google.Resource.Genomics.Annotations.Create
913−import Network.Google.Resource.Genomics.Annotations.Delete
914−import Network.Google.Resource.Genomics.Annotations.Get
915−import Network.Google.Resource.Genomics.Annotations.Patch
916−import Network.Google.Resource.Genomics.Annotations.Search
917−import Network.Google.Resource.Genomics.Annotations.Update
918−import Network.Google.Resource.Genomics.AnnotationSets.Create
919−import Network.Google.Resource.Genomics.AnnotationSets.Delete
920−import Network.Google.Resource.Genomics.AnnotationSets.Get
921−import Network.Google.Resource.Genomics.AnnotationSets.Patch
922−import Network.Google.Resource.Genomics.AnnotationSets.Search
923−import Network.Google.Resource.Genomics.AnnotationSets.Update
924643import Network.Google.Resource.Genomics.Callsets.Create
925644import Network.Google.Resource.Genomics.Callsets.Delete
926645import Network.Google.Resource.Genomics.Callsets.Get
927646import Network.Google.Resource.Genomics.Callsets.Patch
928647import Network.Google.Resource.Genomics.Callsets.Search
929−import Network.Google.Resource.Genomics.Callsets.Update
930648import Network.Google.Resource.Genomics.Datasets.Create
931649import Network.Google.Resource.Genomics.Datasets.Delete
932650import Network.Google.Resource.Genomics.Datasets.Get
651+import Network.Google.Resource.Genomics.Datasets.GetIAMPolicy
933652import Network.Google.Resource.Genomics.Datasets.List
934653import Network.Google.Resource.Genomics.Datasets.Patch
654+import Network.Google.Resource.Genomics.Datasets.SetIAMPolicy
655+import Network.Google.Resource.Genomics.Datasets.TestIAMPermissions
935656import Network.Google.Resource.Genomics.Datasets.Undelete
936−import Network.Google.Resource.Genomics.Datasets.Update
937−import Network.Google.Resource.Genomics.Experimental.Jobs.Create
938−import Network.Google.Resource.Genomics.Jobs.Cancel
939−import Network.Google.Resource.Genomics.Jobs.Get
940−import Network.Google.Resource.Genomics.Jobs.Search
941−import Network.Google.Resource.Genomics.Readgroupsets.Align
942−import Network.Google.Resource.Genomics.Readgroupsets.Call
657+import Network.Google.Resource.Genomics.Operations.Cancel
658+import Network.Google.Resource.Genomics.Operations.Delete
659+import Network.Google.Resource.Genomics.Operations.Get
660+import Network.Google.Resource.Genomics.Operations.List
943661import Network.Google.Resource.Genomics.Readgroupsets.Coveragebuckets.List
944662import Network.Google.Resource.Genomics.Readgroupsets.Delete
945663import Network.Google.Resource.Genomics.Readgroupsets.Export
@@ -947,7 +665,6 @@ import Network.Google.Resource.Genomics.Readgroupsets.Get
947665import Network.Google.Resource.Genomics.Readgroupsets.Import
948666import Network.Google.Resource.Genomics.Readgroupsets.Patch
949667import Network.Google.Resource.Genomics.Readgroupsets.Search
950−import Network.Google.Resource.Genomics.Readgroupsets.Update
951668import Network.Google.Resource.Genomics.Reads.Search
952669import Network.Google.Resource.Genomics.References.Bases.List
953670import Network.Google.Resource.Genomics.References.Get
@@ -957,17 +674,15 @@ import Network.Google.Resource.Genomics.Referencesets.Search
957674import Network.Google.Resource.Genomics.Variants.Create
958675import Network.Google.Resource.Genomics.Variants.Delete
959676import Network.Google.Resource.Genomics.Variants.Get
677+import Network.Google.Resource.Genomics.Variants.Import
678+import Network.Google.Resource.Genomics.Variants.Patch
960679import Network.Google.Resource.Genomics.Variants.Search
961−import Network.Google.Resource.Genomics.Variants.Update
962680import Network.Google.Resource.Genomics.Variantsets.Create
963681import Network.Google.Resource.Genomics.Variantsets.Delete
964682import Network.Google.Resource.Genomics.Variantsets.Export
965683import Network.Google.Resource.Genomics.Variantsets.Get
966−import Network.Google.Resource.Genomics.Variantsets.ImportVariants
967−import Network.Google.Resource.Genomics.Variantsets.MergeVariants
968684import Network.Google.Resource.Genomics.Variantsets.Patch
969685import Network.Google.Resource.Genomics.Variantsets.Search
970−import Network.Google.Resource.Genomics.Variantsets.Update
971686
972687{- $resources
973688TODO
@@ -975,49 +690,27 @@ TODO
975690
976691-- | Represents the entirety of the methods and resources available for the Genomics API service.
977692type GenomicsAPI =
978− AnnotationsPatchResource :<|> AnnotationsGetResource
979− :<|> AnnotationsCreateResource
980− :<|> AnnotationsBatchCreateResource
981− :<|> AnnotationsSearchResource
982− :<|> AnnotationsDeleteResource
983− :<|> AnnotationsUpdateResource
984− :<|> VariantsGetResource
985− :<|> VariantsCreateResource
693+ VariantsPatchResource :<|> VariantsGetResource :<|>
694+ VariantsCreateResource
695+ :<|> VariantsImportResource
986696 :<|> VariantsSearchResource
987697 :<|> VariantsDeleteResource
988− :<|> VariantsUpdateResource
989698 :<|> ReferencesBasesListResource
990699 :<|> ReferencesGetResource
991700 :<|> ReferencesSearchResource
992701 :<|> VariantsetsExportResource
993702 :<|> VariantsetsPatchResource
994703 :<|> VariantsetsGetResource
995− :<|> VariantsetsMergeVariantsResource
996704 :<|> VariantsetsCreateResource
997705 :<|> VariantsetsSearchResource
998706 :<|> VariantsetsDeleteResource
999− :<|> VariantsetsUpdateResource
1000− :<|> VariantsetsImportVariantsResource
1001− :<|> AnnotationSetsPatchResource
1002− :<|> AnnotationSetsGetResource
1003− :<|> AnnotationSetsCreateResource
1004− :<|> AnnotationSetsSearchResource
1005− :<|> AnnotationSetsDeleteResource
1006− :<|> AnnotationSetsUpdateResource
1007− :<|> ExperimentalJobsCreateResource
1008− :<|> JobsGetResource
1009− :<|> JobsCancelResource
1010− :<|> JobsSearchResource
1011707 :<|> ReadgroupsetsCoveragebucketsListResource
1012708 :<|> ReadgroupsetsExportResource
1013− :<|> ReadgroupsetsCallResource
1014709 :<|> ReadgroupsetsPatchResource
1015710 :<|> ReadgroupsetsGetResource
1016711 :<|> ReadgroupsetsImportResource
1017− :<|> ReadgroupsetsAlignResource
1018712 :<|> ReadgroupsetsSearchResource
1019713 :<|> ReadgroupsetsDeleteResource
1020− :<|> ReadgroupsetsUpdateResource
1021714 :<|> ReferencesetsGetResource
1022715 :<|> ReferencesetsSearchResource
1023716 :<|> CallsetsPatchResource
@@ -1025,12 +718,17 @@ type GenomicsAPI =
1025718 :<|> CallsetsCreateResource
1026719 :<|> CallsetsSearchResource
1027720 :<|> CallsetsDeleteResource
1028− :<|> CallsetsUpdateResource
721+ :<|> OperationsListResource
722+ :<|> OperationsGetResource
723+ :<|> OperationsCancelResource
724+ :<|> OperationsDeleteResource
1029725 :<|> ReadsSearchResource
1030726 :<|> DatasetsListResource
1031727 :<|> DatasetsUndeleteResource
728+ :<|> DatasetsGetIAMPolicyResource
1032729 :<|> DatasetsPatchResource
1033730 :<|> DatasetsGetResource
1034731 :<|> DatasetsCreateResource
732+ :<|> DatasetsSetIAMPolicyResource
733+ :<|> DatasetsTestIAMPermissionsResource
1035734 :<|> DatasetsDeleteResource
1036− :<|> DatasetsUpdateResource
gogol-genomics/gen/Network/Google/Genomics/Types.hs+142−360
@@ -18,42 +18,20 @@ module Network.Google.Genomics.Types
1818 -- * Service Request
1919 genomicsRequest
2020
21− -- * FastqMetadata
22− , FastqMetadata
23− , fastqMetadata
24− , fmPlatformUnit
25− , fmReadGroupName
26− , fmLibraryName
27− , fmPlatformName
28− , fmSampleName
29−
30− -- * CallInfo
31− , CallInfo
32− , callInfo
33−
3421 -- * ReadInfo
3522 , ReadInfo
3623 , readInfo
3724
38− -- * ReadGroupExperiment
39− , ReadGroupExperiment
40− , readGroupExperiment
41− , rgeInstrumentModel
42− , rgePlatformUnit
43− , rgeSequencingCenter
44− , rgeLibraryId
45−
46− -- * KeyValue
47− , KeyValue
48− , keyValue
49− , kvValue
50− , kvKey
51−
52− -- * SearchAnnotationSetsRequestTypesItem
53− , SearchAnnotationSetsRequestTypesItem (..)
25+ -- * Status
26+ , Status
27+ , status
28+ , sDetails
29+ , sCode
30+ , sMessage
5431
55− -- * VariantAnnotationEffect
56− , VariantAnnotationEffect (..)
32+ -- * OperationSchema
33+ , OperationSchema
34+ , operationSchema
5735
5836 -- * Variant
5937 , Variant
@@ -72,37 +50,6 @@ module Network.Google.Genomics.Types
7250 , vInfo
7351 , vCalls
7452
75− -- * Annotation
76− , Annotation
77− , annotation
78− , aVariant
79− , aAnnotationSetId
80− , aName
81− , aId
82− , aType
83− , aTranscript
84− , aInfo
85− , aPosition
86−
87− -- * InterleavedFastqSource
88− , InterleavedFastqSource
89− , interleavedFastqSource
90− , ifsMetadata
91− , ifsSourceURIs
92−
93− -- * CallReadGroupSetsRequest
94− , CallReadGroupSetsRequest
95− , callReadGroupSetsRequest
96− , crgsrReadGroupSetId
97− , crgsrDatasetId
98− , crgsrSourceURIs
99−
100− -- * BatchAnnotationsResponseEntry
101− , BatchAnnotationsResponseEntry
102− , batchAnnotationsResponseEntry
103− , bareStatus
104− , bareAnnotation
105−
10653 -- * ListBasesResponse
10754 , ListBasesResponse
10855 , listBasesResponse
@@ -110,13 +57,26 @@ module Network.Google.Genomics.Types
11057 , lbrOffset
11158 , lbrSequence
11259
60+ -- * ListOperationsResponse
61+ , ListOperationsResponse
62+ , listOperationsResponse
63+ , lorNextPageToken
64+ , lorOperations
65+
66+ -- * GetIAMPolicyRequest
67+ , GetIAMPolicyRequest
68+ , getIAMPolicyRequest
69+
70+ -- * CancelOperationRequest
71+ , CancelOperationRequest
72+ , cancelOperationRequest
73+
11374 -- * Dataset
11475 , Dataset
11576 , dataset
116− , dIsPublic
117− , dProjectNumber
11877 , dName
11978 , dId
79+ , dProjectId
12080 , dCreateTime
12181
12282 -- * Read'
@@ -140,40 +100,15 @@ module Network.Google.Genomics.Types
140100 , rReadNumber
141101 , rAlignedQuality
142102
143− -- * TranscriptExon
144− , TranscriptExon
145− , transcriptExon
146− , teStart
147− , teEnd
148− , teFrame
149−
150− -- * Call
151− , Call
152− , call
153− , cGenotypeLikelihood
154− , cCallSetName
155− , cPhaseset
156− , cCallSetId
157− , cGenotype
158− , cInfo
159−
160− -- * QueryRange
161− , QueryRange
162− , queryRange
163− , qrStart
164− , qrReferenceId
165− , qrReferenceName
166− , qrEnd
167−
168− -- * BatchCreateAnnotationsRequest
169− , BatchCreateAnnotationsRequest
170− , batchCreateAnnotationsRequest
171− , bcarAnnotations
172−
173− -- * MergeVariantsRequest
174− , MergeVariantsRequest
175− , mergeVariantsRequest
176− , mvrVariants
103+ -- * VariantCall
104+ , VariantCall
105+ , variantCall
106+ , vcGenotypeLikelihood
107+ , vcCallSetName
108+ , vcPhaseset
109+ , vcCallSetId
110+ , vcGenotype
111+ , vcInfo
177112
178113 -- * ReadGroup
179114 , ReadGroup
@@ -189,8 +124,14 @@ module Network.Google.Genomics.Types
189124 , rgDescription
190125 , rgInfo
191126
192− -- * MetadataType
193− , MetadataType (..)
127+ -- * Operation
128+ , Operation
129+ , operation
130+ , oDone
131+ , oError
132+ , oResponse
133+ , oName
134+ , oMetadata
194135
195136 -- * SearchReferenceSetsRequest
196137 , SearchReferenceSetsRequest
@@ -201,8 +142,9 @@ module Network.Google.Genomics.Types
201142 , srsrAssemblyId
202143 , srsrPageSize
203144
204− -- * AnnotationSetType
205− , AnnotationSetType (..)
145+ -- * Empty
146+ , Empty
147+ , empty
206148
207149 -- * SearchReferencesResponse
208150 , SearchReferencesResponse
@@ -210,6 +152,17 @@ module Network.Google.Genomics.Types
210152 , srrNextPageToken
211153 , srrReferences
212154
155+ -- * VariantSetMetadata
156+ , VariantSetMetadata
157+ , variantSetMetadata
158+ , vsmValue
159+ , vsmKey
160+ , vsmId
161+ , vsmType
162+ , vsmNumber
163+ , vsmDescription
164+ , vsmInfo
165+
213166 -- * CallSet
214167 , CallSet
215168 , callSet
@@ -226,20 +179,6 @@ module Network.Google.Genomics.Types
226179 , cbRange
227180 , cbMeanCoverage
228181
229− -- * VariantAnnotation
230− , VariantAnnotation
231− , variantAnnotation
232− , vaEffect
233− , vaClinicalSignificance
234− , vaAlternateBases
235− , vaGeneId
236− , vaConditions
237− , vaType
238− , vaTranscriptIds
239−
240− -- * VariantAnnotationClinicalSignificance
241− , VariantAnnotationClinicalSignificance (..)
242−
243182 -- * SearchReadGroupSetsRequest
244183 , SearchReadGroupSetsRequest
245184 , searchReadGroupSetsRequest
@@ -248,12 +187,6 @@ module Network.Google.Genomics.Types
248187 , srgsrPageToken
249188 , srgsrPageSize
250189
251− -- * BatchAnnotationsResponseEntryStatus
252− , BatchAnnotationsResponseEntryStatus
253− , batchAnnotationsResponseEntryStatus
254− , baresCode
255− , baresMessage
256−
257190 -- * Reference
258191 , Reference
259192 , reference
@@ -265,24 +198,17 @@ module Network.Google.Genomics.Types
265198 , refId
266199 , refSourceURI
267200
268− -- * BatchAnnotationsResponse
269− , BatchAnnotationsResponse
270− , batchAnnotationsResponse
271− , barEntries
201+ -- * VariantCallInfo
202+ , VariantCallInfo
203+ , variantCallInfo
272204
273205 -- * ReadGroupInfo
274206 , ReadGroupInfo
275207 , readGroupInfo
276208
277− -- * SearchJobsRequest
278− , SearchJobsRequest
279− , searchJobsRequest
280− , sjrCreatedAfter
281− , sjrStatus
282− , sjrProjectNumber
283− , sjrPageToken
284− , sjrPageSize
285− , sjrCreatedBefore
209+ -- * StatusDetailsItem
210+ , StatusDetailsItem
211+ , statusDetailsItem
286212
287213 -- * SearchCallSetsResponse
288214 , SearchCallSetsResponse
@@ -290,22 +216,10 @@ module Network.Google.Genomics.Types
290216 , scsrNextPageToken
291217 , scsrCallSets
292218
293− -- * ExperimentalCreateJobRequest
294− , ExperimentalCreateJobRequest
295− , experimentalCreateJobRequest
296− , ecjrGcsOutputPath
297− , ecjrProjectNumber
298− , ecjrAlign
299− , ecjrSourceURIs
300− , ecjrPairedSourceURIs
301− , ecjrCallVariants
302−
303− -- * JobRequest
304− , JobRequest
305− , jobRequest
306− , jrDestination
307− , jrSource
308− , jrType
219+ -- * SetIAMPolicyRequest
220+ , SetIAMPolicyRequest
221+ , setIAMPolicyRequest
222+ , siprPolicy
309223
310224 -- * SearchReadsRequest
311225 , SearchReadsRequest
@@ -318,10 +232,22 @@ module Network.Google.Genomics.Types
318232 , srrPageSize
319233 , srrReadGroupSetIds
320234
235+ -- * OperationMetadataRequest
236+ , OperationMetadataRequest
237+ , operationMetadataRequest
238+
321239 -- * VariantInfo
322240 , VariantInfo
323241 , variantInfo
324242
243+ -- * Experiment
244+ , Experiment
245+ , experiment
246+ , eInstrumentModel
247+ , ePlatformUnit
248+ , eSequencingCenter
249+ , eLibraryId
250+
325251 -- * SearchVariantSetsRequest
326252 , SearchVariantSetsRequest
327253 , searchVariantSetsRequest
@@ -329,62 +255,12 @@ module Network.Google.Genomics.Types
329255 , svsrPageToken
330256 , svsrPageSize
331257
332− -- * ReadGroupProgram
333− , ReadGroupProgram
334− , readGroupProgram
335− , rgpPrevProgramId
336− , rgpName
337− , rgpVersion
338− , rgpId
339− , rgpCommandLine
340−
341− -- * Int32Value
342− , Int32Value
343− , int32Value
344− , ivValue
345−
346− -- * AnnotationInfo
347− , AnnotationInfo
348− , annotationInfo
349−
350− -- * ExportReadGroupSetsRequest
351− , ExportReadGroupSetsRequest
352− , exportReadGroupSetsRequest
353− , ergsrReferenceNames
354− , ergsrProjectNumber
355− , ergsrExportURI
356− , ergsrReadGroupSetIds
357−
358− -- * SearchAnnotationsResponse
359− , SearchAnnotationsResponse
360− , searchAnnotationsResponse
361− , sarAnnotations
362− , sarNextPageToken
363−
364− -- * SearchAnnotationSetsRequest
365− , SearchAnnotationSetsRequest
366− , searchAnnotationSetsRequest
367− , sasrReferenceSetId
368− , sasrTypes
369− , sasrDatasetIds
370− , sasrName
371− , sasrPageToken
372− , sasrPageSize
373−
374− -- * ImportReadGroupSetsRequestPartitionStrategy
375− , ImportReadGroupSetsRequestPartitionStrategy (..)
376−
377258 -- * SearchVariantsResponse
378259 , SearchVariantsResponse
379260 , searchVariantsResponse
380261 , svrVariants
381262 , svrNextPageToken
382263
383− -- * ExperimentalCreateJobResponse
384− , ExperimentalCreateJobResponse
385− , experimentalCreateJobResponse
386− , ecjrJobId
387−
388264 -- * SearchCallSetsRequest
389265 , SearchCallSetsRequest
390266 , searchCallSetsRequest
@@ -399,12 +275,14 @@ module Network.Google.Genomics.Types
399275 , sNextPageToken
400276 , sAlignments
401277
402− -- * PairedFastqSource
403− , PairedFastqSource
404− , pairedFastqSource
405− , pfsFirstSourceURIs
406− , pfsMetadata
407− , pfsSecondSourceURIs
278+ -- * Program
279+ , Program
280+ , program
281+ , pPrevProgramId
282+ , pName
283+ , pVersion
284+ , pId
285+ , pCommandLine
408286
409287 -- * SearchReferencesRequest
410288 , SearchReferencesRequest
@@ -415,9 +293,6 @@ module Network.Google.Genomics.Types
415293 , sPageToken
416294 , sPageSize
417295
418− -- * AnnotationType
419− , AnnotationType (..)
420−
421296 -- * SearchReferenceSetsResponse
422297 , SearchReferenceSetsResponse
423298 , searchReferenceSetsResponse
@@ -442,36 +317,17 @@ module Network.Google.Genomics.Types
442317 , rgsReadGroups
443318 , rgsFilename
444319
445− -- * Job
446− , Job
447− , job
448− , jDetailedStatus
449− , jStatus
450− , jCreated
451− , jProjectNumber
452− , jWarnings
453− , jImportedIds
454− , jId
455− , jErrors
456− , jRequest
457−
458− -- * ExportVariantSetResponse
459− , ExportVariantSetResponse
460− , exportVariantSetResponse
461− , evsrJobId
462−
463− -- * AlignReadGroupSetsResponse
464− , AlignReadGroupSetsResponse
465− , alignReadGroupSetsResponse
466− , argsrJobId
467−
468− -- * SearchJobsRequestStatusItem
469− , SearchJobsRequestStatusItem (..)
320+ -- * ExportReadGroupSetRequest
321+ , ExportReadGroupSetRequest
322+ , exportReadGroupSetRequest
323+ , ergsrReferenceNames
324+ , ergsrExportURI
325+ , ergsrProjectId
470326
471327 -- * ImportVariantsResponse
472328 , ImportVariantsResponse
473329 , importVariantsResponse
474− , ivrJobId
330+ , ivrCallSetIds
475331
476332 -- * ListCoverageBucketsResponse
477333 , ListCoverageBucketsResponse
@@ -480,10 +336,15 @@ module Network.Google.Genomics.Types
480336 , lcbrBucketWidth
481337 , lcbrCoverageBuckets
482338
339+ -- * TestIAMPermissionsRequest
340+ , TestIAMPermissionsRequest
341+ , testIAMPermissionsRequest
342+ , tiprPermissions
343+
483344 -- * ImportReadGroupSetsResponse
484345 , ImportReadGroupSetsResponse
485346 , importReadGroupSetsResponse
486− , irgsrJobId
347+ , irgsrReadGroupSetIds
487348
488349 -- * LinearAlignment
489350 , LinearAlignment
@@ -492,33 +353,6 @@ module Network.Google.Genomics.Types
492353 , laMAppingQuality
493354 , laPosition
494355
495− -- * Metadata
496− , Metadata
497− , metadata
498− , mValue
499− , mKey
500− , mId
501− , mType
502− , mNumber
503− , mDescription
504− , mInfo
505−
506− -- * CallReadGroupSetsResponse
507− , CallReadGroupSetsResponse
508− , callReadGroupSetsResponse
509− , crgsrJobId
510−
511− -- * AnnotationSet
512− , AnnotationSet
513− , annotationSet
514− , asReferenceSetId
515− , asName
516− , asDatasetId
517− , asId
518− , asType
519− , asSourceURI
520− , asInfo
521−
522356 -- * VariantSet
523357 , VariantSet
524358 , variantSet
@@ -527,8 +361,10 @@ module Network.Google.Genomics.Types
527361 , vsMetadata
528362 , vsId
529363
530− -- * CigarUnitOperation
531− , CigarUnitOperation (..)
364+ -- * TestIAMPermissionsResponse
365+ , TestIAMPermissionsResponse
366+ , testIAMPermissionsResponse
367+ , tiamprPermissions
532368
533369 -- * ListDatasetsResponse
534370 , ListDatasetsResponse
@@ -547,16 +383,11 @@ module Network.Google.Genomics.Types
547383 -- * ImportVariantsRequest
548384 , ImportVariantsRequest
549385 , importVariantsRequest
386+ , ivrVariantSetId
550387 , ivrFormat
551388 , ivrNormalizeReferenceNames
552389 , ivrSourceURIs
553390
554− -- * ExternalId
555− , ExternalId
556− , externalId
557− , eiSourceName
558− , eiId
559−
560391 -- * CigarUnit
561392 , CigarUnit
562393 , cigarUnit
@@ -564,14 +395,12 @@ module Network.Google.Genomics.Types
564395 , cuOperationLength
565396 , cuReferenceSequence
566397
567− -- * AlignReadGroupSetsRequest
568− , AlignReadGroupSetsRequest
569− , alignReadGroupSetsRequest
570− , argsrInterleavedFastqSource
571− , argsrReadGroupSetId
572− , argsrBamSourceURIs
573− , argsrPairedFastqSource
574− , argsrDatasetId
398+ -- * Policy
399+ , Policy
400+ , policy
401+ , polEtag
402+ , polVersion
403+ , polBindings
575404
576405 -- * ExportVariantSetRequest
577406 , ExportVariantSetRequest
@@ -579,34 +408,16 @@ module Network.Google.Genomics.Types
579408 , evsrBigQueryDataset
580409 , evsrBigQueryTable
581410 , evsrFormat
582− , evsrProjectNumber
583411 , evsrCallSetIds
412+ , evsrProjectId
584413
585− -- * VariantAnnotationType
586− , VariantAnnotationType (..)
587−
588− -- * ExportReadGroupSetsResponse
589− , ExportReadGroupSetsResponse
590− , exportReadGroupSetsResponse
591− , ergsrJobId
592−
593− -- * JobStatus
594− , JobStatus (..)
595−
596− -- * ImportVariantsRequestFormat
597− , ImportVariantsRequestFormat (..)
598−
599− -- * SearchAnnotationsRequest
600− , SearchAnnotationsRequest
601− , searchAnnotationsRequest
602− , sarRange
603− , sarPageToken
604− , sarAnnotationSetIds
605− , sarPageSize
606−
607− -- * MetadataInfo
608− , MetadataInfo
609− , metadataInfo
414+ -- * OperationMetadata
415+ , OperationMetadata
416+ , operationMetadata
417+ , omEvents
418+ , omProjectId
419+ , omCreateTime
420+ , omRequest
610421
611422 -- * SearchVariantSetsResponse
612423 , SearchVariantSetsResponse
@@ -627,61 +438,22 @@ module Network.Google.Genomics.Types
627438 , svrVariantSetIds
628439 , svrPageSize
629440
630− -- * ExportVariantSetRequestFormat
631− , ExportVariantSetRequestFormat (..)
632−
633− -- * AnnotationSetInfo
634− , AnnotationSetInfo
635− , annotationSetInfo
636−
637− -- * VariantAnnotationCondition
638− , VariantAnnotationCondition
639− , variantAnnotationCondition
640− , vacExternalIds
641− , vacNames
642− , vacConceptId
643− , vacOmimId
644−
645− -- * SearchAnnotationSetsResponse
646− , SearchAnnotationSetsResponse
647− , searchAnnotationSetsResponse
648− , sasrNextPageToken
649− , sasrAnnotationSets
650−
651441 -- * CallSetInfo
652442 , CallSetInfo
653443 , callSetInfo
654444
655− -- * JobRequestType
656− , JobRequestType (..)
657−
658− -- * RangePosition
659− , RangePosition
660− , rangePosition
661− , rpStart
662− , rpReverseStrand
663− , rpReferenceId
664− , rpReferenceName
665− , rpEnd
666−
667− -- * Transcript
668− , Transcript
669− , transcript
670− , tGeneId
671− , tCodingSequence
672− , tExons
673−
674− -- * TranscriptCodingSequence
675− , TranscriptCodingSequence
676− , transcriptCodingSequence
677− , tcsStart
678− , tcsEnd
679−
680− -- * SearchJobsResponse
681− , SearchJobsResponse
682− , searchJobsResponse
683− , sjrNextPageToken
684− , sjrJobs
445+ -- * VariantSetMetadataInfo
446+ , VariantSetMetadataInfo
447+ , variantSetMetadataInfo
448+
449+ -- * OperationResponse
450+ , OperationResponse
451+ , operationResponse
452+
453+ -- * OperationEvent
454+ , OperationEvent
455+ , operationEvent
456+ , oeDescription
685457
686458 -- * ReferenceBound
687459 , ReferenceBound
@@ -689,6 +461,16 @@ module Network.Google.Genomics.Types
689461 , rbUpperBound
690462 , rbReferenceName
691463
464+ -- * UndeleteDatasetRequest
465+ , UndeleteDatasetRequest
466+ , undeleteDatasetRequest
467+
468+ -- * Binding
469+ , Binding
470+ , binding
471+ , bMembers
472+ , bRole
473+
692474 -- * Position
693475 , Position
694476 , position
@@ -723,8 +505,8 @@ import Network.Google.Genomics.Types.Product
723505import Network.Google.Genomics.Types.Sum
724506import Network.Google.Prelude
725507
726−-- | Default request referring to version 'v1beta2' of the Genomics API. This contains the host and root path used as a starting point for constructing service requests.
508+-- | Default request referring to version 'v1' of the Genomics API. This contains the host and root path used as a starting point for constructing service requests.
727509genomicsRequest :: RequestBuilder
728510genomicsRequest
729− = defaultRequest "https://www.googleapis.com/"
730− "genomics/v1beta2/"
511+ = defaultRequest "https://genomics.googleapis.com/"
512+ ""
gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs+1331−2986
@@ -20,112 +20,8 @@ module Network.Google.Genomics.Types.Product where
2020import Network.Google.Genomics.Types.Sum
2121import Network.Google.Prelude
2222
23−--
24−-- /See:/ 'fastqMetadata' smart constructor.
25−data FastqMetadata = FastqMetadata
26− { _fmPlatformUnit :: !(Maybe Text)
27− , _fmReadGroupName :: !(Maybe Text)
28− , _fmLibraryName :: !(Maybe Text)
29− , _fmPlatformName :: !(Maybe Text)
30− , _fmSampleName :: !(Maybe Text)
31− } deriving (Eq,Show,Data,Typeable,Generic)
32−
33−-- | Creates a value of 'FastqMetadata' with the minimum fields required to make a request.
34−--
35−-- Use one of the following lenses to modify other fields as desired:
36−--
37−-- * 'fmPlatformUnit'
38−--
39−-- * 'fmReadGroupName'
40−--
41−-- * 'fmLibraryName'
42−--
43−-- * 'fmPlatformName'
44−--
45−-- * 'fmSampleName'
46−fastqMetadata
47− :: FastqMetadata
48−fastqMetadata =
49− FastqMetadata
50− { _fmPlatformUnit = Nothing
51− , _fmReadGroupName = Nothing
52− , _fmLibraryName = Nothing
53− , _fmPlatformName = Nothing
54− , _fmSampleName = Nothing
55− }
56−
57−-- | Optionally specifies the platform unit for alignment from FASTQ. For
58−-- example: flowcell-barcode.lane for Illumina or slide for SOLID.
59−fmPlatformUnit :: Lens' FastqMetadata (Maybe Text)
60−fmPlatformUnit
61− = lens _fmPlatformUnit
62− (\ s a -> s{_fmPlatformUnit = a})
63−
64−-- | Optionally specifies the read group name for alignment from FASTQ.
65−fmReadGroupName :: Lens' FastqMetadata (Maybe Text)
66−fmReadGroupName
67− = lens _fmReadGroupName
68− (\ s a -> s{_fmReadGroupName = a})
69−
70−-- | Optionally specifies the library name for alignment from FASTQ.
71−fmLibraryName :: Lens' FastqMetadata (Maybe Text)
72−fmLibraryName
73− = lens _fmLibraryName
74− (\ s a -> s{_fmLibraryName = a})
75−
76−-- | Optionally specifies the platform name for alignment from FASTQ. For
77−-- example: CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT, PACBIO.
78−fmPlatformName :: Lens' FastqMetadata (Maybe Text)
79−fmPlatformName
80− = lens _fmPlatformName
81− (\ s a -> s{_fmPlatformName = a})
82−
83−-- | Optionally specifies the sample name for alignment from FASTQ.
84−fmSampleName :: Lens' FastqMetadata (Maybe Text)
85−fmSampleName
86− = lens _fmSampleName (\ s a -> s{_fmSampleName = a})
87−
88−instance FromJSON FastqMetadata where
89− parseJSON
90− = withObject "FastqMetadata"
91− (\ o ->
92− FastqMetadata <$>
93− (o .:? "platformUnit") <*> (o .:? "readGroupName")
94− <*> (o .:? "libraryName")
95− <*> (o .:? "platformName")
96− <*> (o .:? "sampleName"))
97−
98−instance ToJSON FastqMetadata where
99− toJSON FastqMetadata{..}
100− = object
101− (catMaybes
102− [("platformUnit" .=) <$> _fmPlatformUnit,
103− ("readGroupName" .=) <$> _fmReadGroupName,
104− ("libraryName" .=) <$> _fmLibraryName,
105− ("platformName" .=) <$> _fmPlatformName,
106− ("sampleName" .=) <$> _fmSampleName])
107−
108−-- | A string which maps to an array of values.
109−--
110−-- /See:/ 'callInfo' smart constructor.
111−data CallInfo =
112− CallInfo
113− deriving (Eq,Show,Data,Typeable,Generic)
114−
115−-- | Creates a value of 'CallInfo' with the minimum fields required to make a request.
116−--
117−callInfo
118− :: CallInfo
119−callInfo = CallInfo
120−
121−instance FromJSON CallInfo where
122− parseJSON
123− = withObject "CallInfo" (\ o -> pure CallInfo)
124−
125−instance ToJSON CallInfo where
126− toJSON = const emptyObject
127−
128−-- | A string which maps to an array of values.
23+-- | A map of additional read alignment information. This must be of the form
24+-- map (string key mapping to a list of string values).
12925--
13026-- /See:/ 'readInfo' smart constructor.
13127data ReadInfo =
@@ -145,127 +41,122 @@ instance FromJSON ReadInfo where
14541instance ToJSON ReadInfo where
14642 toJSON = const emptyObject
14743
148−--
149−-- /See:/ 'readGroupExperiment' smart constructor.
150−data ReadGroupExperiment = ReadGroupExperiment
151− { _rgeInstrumentModel :: !(Maybe Text)
152− , _rgePlatformUnit :: !(Maybe Text)
153− , _rgeSequencingCenter :: !(Maybe Text)
154− , _rgeLibraryId :: !(Maybe Text)
44+-- | The \`Status\` type defines a logical error model that is suitable for
45+-- different programming environments, including REST APIs and RPC APIs. It
46+-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
47+-- designed to be: - Simple to use and understand for most users - Flexible
48+-- enough to meet unexpected needs # Overview The \`Status\` message
49+-- contains three pieces of data: error code, error message, and error
50+-- details. The error code should be an enum value of google.rpc.Code, but
51+-- it may accept additional error codes if needed. The error message should
52+-- be a developer-facing English message that helps developers *understand*
53+-- and *resolve* the error. If a localized user-facing error message is
54+-- needed, put the localized message in the error details or localize it in
55+-- the client. The optional error details may contain arbitrary information
56+-- about the error. There is a predefined set of error detail types in the
57+-- package \`google.rpc\` which can be used for common error conditions. #
58+-- Language mapping The \`Status\` message is the logical representation of
59+-- the error model, but it is not necessarily the actual wire format. When
60+-- the \`Status\` message is exposed in different client libraries and
61+-- different wire protocols, it can be mapped differently. For example, it
62+-- will likely be mapped to some exceptions in Java, but more likely mapped
63+-- to some error codes in C. # Other uses The error model and the
64+-- \`Status\` message can be used in a variety of environments, either with
65+-- or without APIs, to provide a consistent developer experience across
66+-- different environments. Example uses of this error model include: -
67+-- Partial errors. If a service needs to return partial errors to the
68+-- client, it may embed the \`Status\` in the normal response to indicate
69+-- the partial errors. - Workflow errors. A typical workflow has multiple
70+-- steps. Each step may have a \`Status\` message for error reporting
71+-- purpose. - Batch operations. If a client uses batch request and batch
72+-- response, the \`Status\` message should be used directly inside batch
73+-- response, one for each error sub-response. - Asynchronous operations. If
74+-- an API call embeds asynchronous operation results in its response, the
75+-- status of those operations should be represented directly using the
76+-- \`Status\` message. - Logging. If some API errors are stored in logs,
77+-- the message \`Status\` could be used directly after any stripping needed
78+-- for security\/privacy reasons.
79+--
80+-- /See:/ 'status' smart constructor.
81+data Status = Status
82+ { _sDetails :: !(Maybe [StatusDetailsItem])
83+ , _sCode :: !(Maybe Int32)
84+ , _sMessage :: !(Maybe Text)
15585 } deriving (Eq,Show,Data,Typeable,Generic)
15686
157−-- | Creates a value of 'ReadGroupExperiment' with the minimum fields required to make a request.
87+-- | Creates a value of 'Status' with the minimum fields required to make a request.
15888--
15989-- Use one of the following lenses to modify other fields as desired:
16090--
161−-- * 'rgeInstrumentModel'
162−--
163−-- * 'rgePlatformUnit'
91+-- * 'sDetails'
16492--
165−-- * 'rgeSequencingCenter'
93+-- * 'sCode'
16694--
167−-- * 'rgeLibraryId'
168−readGroupExperiment
169− :: ReadGroupExperiment
170−readGroupExperiment =
171− ReadGroupExperiment
172− { _rgeInstrumentModel = Nothing
173− , _rgePlatformUnit = Nothing
174− , _rgeSequencingCenter = Nothing
175− , _rgeLibraryId = Nothing
95+-- * 'sMessage'
96+status
97+ :: Status
98+status =
99+ Status
100+ { _sDetails = Nothing
101+ , _sCode = Nothing
102+ , _sMessage = Nothing
176103 }
177104
178−-- | The instrument model used as part of this experiment. This maps to
179−-- sequencing technology in BAM.
180−rgeInstrumentModel :: Lens' ReadGroupExperiment (Maybe Text)
181−rgeInstrumentModel
182− = lens _rgeInstrumentModel
183− (\ s a -> s{_rgeInstrumentModel = a})
184−
185−-- | The platform unit used as part of this experiment e.g.
186−-- flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to
187−-- the
188−rgePlatformUnit :: Lens' ReadGroupExperiment (Maybe Text)
189−rgePlatformUnit
190− = lens _rgePlatformUnit
191− (\ s a -> s{_rgePlatformUnit = a})
105+-- | A list of messages that carry the error details. There will be a common
106+-- set of message types for APIs to use.
107+sDetails :: Lens' Status [StatusDetailsItem]
108+sDetails
109+ = lens _sDetails (\ s a -> s{_sDetails = a}) .
110+ _Default
111+ . _Coerce
192112
193−-- | The sequencing center used as part of this experiment.
194−rgeSequencingCenter :: Lens' ReadGroupExperiment (Maybe Text)
195−rgeSequencingCenter
196− = lens _rgeSequencingCenter
197− (\ s a -> s{_rgeSequencingCenter = a})
113+-- | The status code, which should be an enum value of google.rpc.Code.
114+sCode :: Lens' Status (Maybe Int32)
115+sCode = lens _sCode (\ s a -> s{_sCode = a})
198116
199−-- | The library used as part of this experiment. Note: This is not an actual
200−-- ID within this repository, but rather an identifier for a library which
201−-- may be meaningful to some external system.
202−rgeLibraryId :: Lens' ReadGroupExperiment (Maybe Text)
203−rgeLibraryId
204− = lens _rgeLibraryId (\ s a -> s{_rgeLibraryId = a})
117+-- | A developer-facing error message, which should be in English. Any
118+-- user-facing error message should be localized and sent in the
119+-- google.rpc.Status.details field, or localized by the client.
120+sMessage :: Lens' Status (Maybe Text)
121+sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
205122
206−instance FromJSON ReadGroupExperiment where
123+instance FromJSON Status where
207124 parseJSON
208− = withObject "ReadGroupExperiment"
125+ = withObject "Status"
209126 (\ o ->
210− ReadGroupExperiment <$>
211− (o .:? "instrumentModel") <*> (o .:? "platformUnit")
212− <*> (o .:? "sequencingCenter")
213− <*> (o .:? "libraryId"))
127+ Status <$>
128+ (o .:? "details" .!= mempty) <*> (o .:? "code") <*>
129+ (o .:? "message"))
214130
215−instance ToJSON ReadGroupExperiment where
216− toJSON ReadGroupExperiment{..}
131+instance ToJSON Status where
132+ toJSON Status{..}
217133 = object
218134 (catMaybes
219− [("instrumentModel" .=) <$> _rgeInstrumentModel,
220− ("platformUnit" .=) <$> _rgePlatformUnit,
221− ("sequencingCenter" .=) <$> _rgeSequencingCenter,
222− ("libraryId" .=) <$> _rgeLibraryId])
135+ [("details" .=) <$> _sDetails,
136+ ("code" .=) <$> _sCode,
137+ ("message" .=) <$> _sMessage])
223138
224−-- | Used to hold basic key value information.
139+-- | An OperationMetadata object. This will always be returned with the
140+-- Operation.
225141--
226−-- /See:/ 'keyValue' smart constructor.
227−data KeyValue = KeyValue
228− { _kvValue :: !(Maybe [Text])
229− , _kvKey :: !(Maybe Text)
230− } deriving (Eq,Show,Data,Typeable,Generic)
142+-- /See:/ 'operationSchema' smart constructor.
143+data OperationSchema =
144+ OperationSchema
145+ deriving (Eq,Show,Data,Typeable,Generic)
231146
232−-- | Creates a value of 'KeyValue' with the minimum fields required to make a request.
147+-- | Creates a value of 'OperationSchema' with the minimum fields required to make a request.
233148--
234−-- Use one of the following lenses to modify other fields as desired:
235−--
236−-- * 'kvValue'
237−--
238−-- * 'kvKey'
239−keyValue
240− :: KeyValue
241−keyValue =
242− KeyValue
243− { _kvValue = Nothing
244− , _kvKey = Nothing
245− }
149+operationSchema
150+ :: OperationSchema
151+operationSchema = OperationSchema
246152
247−-- | The string values.
248−kvValue :: Lens' KeyValue [Text]
249−kvValue
250− = lens _kvValue (\ s a -> s{_kvValue = a}) . _Default
251− . _Coerce
252−
253−-- | A string which maps to an array of values.
254−kvKey :: Lens' KeyValue (Maybe Text)
255−kvKey = lens _kvKey (\ s a -> s{_kvKey = a})
256−
257−instance FromJSON KeyValue where
153+instance FromJSON OperationSchema where
258154 parseJSON
259− = withObject "KeyValue"
260− (\ o ->
261− KeyValue <$>
262− (o .:? "value" .!= mempty) <*> (o .:? "key"))
155+ = withObject "OperationSchema"
156+ (\ o -> pure OperationSchema)
263157
264−instance ToJSON KeyValue where
265− toJSON KeyValue{..}
266− = object
267− (catMaybes
268− [("value" .=) <$> _kvValue, ("key" .=) <$> _kvKey])
158+instance ToJSON OperationSchema where
159+ toJSON = const emptyObject
269160
270161-- | A variant represents a change in DNA sequence relative to a reference
271162-- sequence. For example, a variant could represent a SNP or an insertion.
@@ -289,7 +180,7 @@ data Variant = Variant
289180 , _vQuality :: !(Maybe Double)
290181 , _vFilter :: !(Maybe [Text])
291182 , _vInfo :: !(Maybe VariantInfo)
292− , _vCalls :: !(Maybe [Call])
183+ , _vCalls :: !(Maybe [VariantCall])
293184 } deriving (Eq,Show,Data,Typeable,Generic)
294185
295186-- | Creates a value of 'Variant' with the minimum fields required to make a request.
@@ -363,7 +254,7 @@ vAlternateBases
363254 . _Default
364255 . _Coerce
365256
366−-- | The reference on which this variant occurs. (such as chr20 or X)
257+-- | The reference on which this variant occurs. (such as \`chr20\` or \`X\`)
367258vReferenceName :: Lens' Variant (Maybe Text)
368259vReferenceName
369260 = lens _vReferenceName
@@ -389,7 +280,7 @@ vReferenceBases
389280 = lens _vReferenceBases
390281 (\ s a -> s{_vReferenceBases = a})
391282
392−-- | The Google generated ID of the variant, immutable.
283+-- | The server-generated variant ID, unique across all variants.
393284vId :: Lens' Variant (Maybe Text)
394285vId = lens _vId (\ s a -> s{_vId = a})
395286
@@ -399,19 +290,20 @@ vQuality :: Lens' Variant (Maybe Double)
399290vQuality = lens _vQuality (\ s a -> s{_vQuality = a})
400291
401292-- | A list of filters (normally quality filters) this variant has failed.
402−-- PASS indicates this variant has passed all filters.
293+-- \`PASS\` indicates this variant has passed all filters.
403294vFilter :: Lens' Variant [Text]
404295vFilter
405296 = lens _vFilter (\ s a -> s{_vFilter = a}) . _Default
406297 . _Coerce
407298
408−-- | A string which maps to an array of values.
299+-- | A map of additional variant information. This must be of the form map
300+-- (string key mapping to a list of string values).
409301vInfo :: Lens' Variant (Maybe VariantInfo)
410302vInfo = lens _vInfo (\ s a -> s{_vInfo = a})
411303
412304-- | The variant calls for this particular variant. Each one represents the
413305-- determination of genotype with respect to this variant.
414−vCalls :: Lens' Variant [Call]
306+vCalls :: Lens' Variant [VariantCall]
415307vCalls
416308 = lens _vCalls (\ s a -> s{_vCalls = a}) . _Default .
417309 _Coerce
@@ -449,297 +341,6 @@ instance ToJSON Variant where
449341 ("filter" .=) <$> _vFilter, ("info" .=) <$> _vInfo,
450342 ("calls" .=) <$> _vCalls])
451343
452−-- | An annotation describes a region of reference genome. The value of an
453−-- annotation may be one of several canonical types, supplemented by
454−-- arbitrary info tags. A variant annotation is represented by one or more
455−-- of these canonical types. An annotation is not inherently associated
456−-- with a specific sample or individual (though a client could choose to
457−-- use annotations in this way). Example canonical annotation types are
458−-- \'Gene\' and \'Variant\'.
459−--
460−-- /See:/ 'annotation' smart constructor.
461−data Annotation = Annotation
462− { _aVariant :: !(Maybe VariantAnnotation)
463− , _aAnnotationSetId :: !(Maybe Text)
464− , _aName :: !(Maybe Text)
465− , _aId :: !(Maybe Text)
466− , _aType :: !(Maybe AnnotationType)
467− , _aTranscript :: !(Maybe Transcript)
468− , _aInfo :: !(Maybe AnnotationInfo)
469− , _aPosition :: !(Maybe RangePosition)
470− } deriving (Eq,Show,Data,Typeable,Generic)
471−
472−-- | Creates a value of 'Annotation' with the minimum fields required to make a request.
473−--
474−-- Use one of the following lenses to modify other fields as desired:
475−--
476−-- * 'aVariant'
477−--
478−-- * 'aAnnotationSetId'
479−--
480−-- * 'aName'
481−--
482−-- * 'aId'
483−--
484−-- * 'aType'
485−--
486−-- * 'aTranscript'
487−--
488−-- * 'aInfo'
489−--
490−-- * 'aPosition'
491−annotation
492− :: Annotation
493−annotation =
494− Annotation
495− { _aVariant = Nothing
496− , _aAnnotationSetId = Nothing
497− , _aName = Nothing
498− , _aId = Nothing
499− , _aType = Nothing
500− , _aTranscript = Nothing
501− , _aInfo = Nothing
502− , _aPosition = Nothing
503− }
504−
505−-- | A variant annotation, which describes the effect of a variant on the
506−-- genome, the coding sequence, and\/or higher level consequences at the
507−-- organism level e.g. pathogenicity. This field is only set for
508−-- annotations of type VARIANT.
509−aVariant :: Lens' Annotation (Maybe VariantAnnotation)
510−aVariant = lens _aVariant (\ s a -> s{_aVariant = a})
511−
512−-- | The ID of the containing annotation set.
513−aAnnotationSetId :: Lens' Annotation (Maybe Text)
514−aAnnotationSetId
515− = lens _aAnnotationSetId
516− (\ s a -> s{_aAnnotationSetId = a})
517−
518−-- | The display name of this annotation.
519−aName :: Lens' Annotation (Maybe Text)
520−aName = lens _aName (\ s a -> s{_aName = a})
521−
522−-- | The generated unique ID for this annotation.
523−aId :: Lens' Annotation (Maybe Text)
524−aId = lens _aId (\ s a -> s{_aId = a})
525−
526−-- | The data type for this annotation. Must match the containing annotation
527−-- set\'s type.
528−aType :: Lens' Annotation (Maybe AnnotationType)
529−aType = lens _aType (\ s a -> s{_aType = a})
530−
531−-- | A transcript value represents the assertion that a particular region of
532−-- the reference genome may be transcribed as RNA. An alternative splicing
533−-- pattern would be represented as a separate transcript object. This field
534−-- is only set for annotations of type TRANSCRIPT.
535−aTranscript :: Lens' Annotation (Maybe Transcript)
536−aTranscript
537− = lens _aTranscript (\ s a -> s{_aTranscript = a})
538−
539−-- | A string which maps to an array of values.
540−aInfo :: Lens' Annotation (Maybe AnnotationInfo)
541−aInfo = lens _aInfo (\ s a -> s{_aInfo = a})
542−
543−-- | The position of this annotation on the reference sequence.
544−aPosition :: Lens' Annotation (Maybe RangePosition)
545−aPosition
546− = lens _aPosition (\ s a -> s{_aPosition = a})
547−
548−instance FromJSON Annotation where
549− parseJSON
550− = withObject "Annotation"
551− (\ o ->
552− Annotation <$>
553− (o .:? "variant") <*> (o .:? "annotationSetId") <*>
554− (o .:? "name")
555− <*> (o .:? "id")
556− <*> (o .:? "type")
557− <*> (o .:? "transcript")
558− <*> (o .:? "info")
559− <*> (o .:? "position"))
560−
561−instance ToJSON Annotation where
562− toJSON Annotation{..}
563− = object
564− (catMaybes
565− [("variant" .=) <$> _aVariant,
566− ("annotationSetId" .=) <$> _aAnnotationSetId,
567− ("name" .=) <$> _aName, ("id" .=) <$> _aId,
568− ("type" .=) <$> _aType,
569− ("transcript" .=) <$> _aTranscript,
570− ("info" .=) <$> _aInfo,
571− ("position" .=) <$> _aPosition])
572−
573−-- | Describes an interleaved FASTQ file source for alignment.
574−--
575−-- /See:/ 'interleavedFastqSource' smart constructor.
576−data InterleavedFastqSource = InterleavedFastqSource
577− { _ifsMetadata :: !(Maybe FastqMetadata)
578− , _ifsSourceURIs :: !(Maybe [Text])
579− } deriving (Eq,Show,Data,Typeable,Generic)
580−
581−-- | Creates a value of 'InterleavedFastqSource' with the minimum fields required to make a request.
582−--
583−-- Use one of the following lenses to modify other fields as desired:
584−--
585−-- * 'ifsMetadata'
586−--
587−-- * 'ifsSourceURIs'
588−interleavedFastqSource
589− :: InterleavedFastqSource
590−interleavedFastqSource =
591− InterleavedFastqSource
592− { _ifsMetadata = Nothing
593− , _ifsSourceURIs = Nothing
594− }
595−
596−-- | Optionally specifies the metadata to be associated with the final
597−-- aligned read group set.
598−ifsMetadata :: Lens' InterleavedFastqSource (Maybe FastqMetadata)
599−ifsMetadata
600− = lens _ifsMetadata (\ s a -> s{_ifsMetadata = a})
601−
602−-- | A list of URIs pointing at interleaved FASTQ files in Google Cloud
603−-- Storage which will be aligned. The caller must have READ permissions for
604−-- these files.
605−ifsSourceURIs :: Lens' InterleavedFastqSource [Text]
606−ifsSourceURIs
607− = lens _ifsSourceURIs
608− (\ s a -> s{_ifsSourceURIs = a})
609− . _Default
610− . _Coerce
611−
612−instance FromJSON InterleavedFastqSource where
613− parseJSON
614− = withObject "InterleavedFastqSource"
615− (\ o ->
616− InterleavedFastqSource <$>
617− (o .:? "metadata") <*>
618− (o .:? "sourceUris" .!= mempty))
619−
620−instance ToJSON InterleavedFastqSource where
621− toJSON InterleavedFastqSource{..}
622− = object
623− (catMaybes
624− [("metadata" .=) <$> _ifsMetadata,
625− ("sourceUris" .=) <$> _ifsSourceURIs])
626−
627−-- | The read group set call request.
628−--
629−-- /See:/ 'callReadGroupSetsRequest' smart constructor.
630−data CallReadGroupSetsRequest = CallReadGroupSetsRequest
631− { _crgsrReadGroupSetId :: !(Maybe Text)
632− , _crgsrDatasetId :: !(Maybe Text)
633− , _crgsrSourceURIs :: !(Maybe [Text])
634− } deriving (Eq,Show,Data,Typeable,Generic)
635−
636−-- | Creates a value of 'CallReadGroupSetsRequest' with the minimum fields required to make a request.
637−--
638−-- Use one of the following lenses to modify other fields as desired:
639−--
640−-- * 'crgsrReadGroupSetId'
641−--
642−-- * 'crgsrDatasetId'
643−--
644−-- * 'crgsrSourceURIs'
645−callReadGroupSetsRequest
646− :: CallReadGroupSetsRequest
647−callReadGroupSetsRequest =
648− CallReadGroupSetsRequest
649− { _crgsrReadGroupSetId = Nothing
650− , _crgsrDatasetId = Nothing
651− , _crgsrSourceURIs = Nothing
652− }
653−
654−-- | The IDs of the read group sets which will be called. The caller must
655−-- have READ permissions for these read group sets. One of readGroupSetId
656−-- or sourceUris must be provided.
657−crgsrReadGroupSetId :: Lens' CallReadGroupSetsRequest (Maybe Text)
658−crgsrReadGroupSetId
659− = lens _crgsrReadGroupSetId
660− (\ s a -> s{_crgsrReadGroupSetId = a})
661−
662−-- | Required. The ID of the dataset the called variants will belong to. The
663−-- caller must have WRITE permissions to this dataset.
664−crgsrDatasetId :: Lens' CallReadGroupSetsRequest (Maybe Text)
665−crgsrDatasetId
666− = lens _crgsrDatasetId
667− (\ s a -> s{_crgsrDatasetId = a})
668−
669−-- | A list of URIs pointing at BAM files in Google Cloud Storage which will
670−-- be called. FASTQ files are not allowed. The caller must have READ
671−-- permissions for these files. One of readGroupSetId or sourceUris must be
672−-- provided.
673−crgsrSourceURIs :: Lens' CallReadGroupSetsRequest [Text]
674−crgsrSourceURIs
675− = lens _crgsrSourceURIs
676− (\ s a -> s{_crgsrSourceURIs = a})
677− . _Default
678− . _Coerce
679−
680−instance FromJSON CallReadGroupSetsRequest where
681− parseJSON
682− = withObject "CallReadGroupSetsRequest"
683− (\ o ->
684− CallReadGroupSetsRequest <$>
685− (o .:? "readGroupSetId") <*> (o .:? "datasetId") <*>
686− (o .:? "sourceUris" .!= mempty))
687−
688−instance ToJSON CallReadGroupSetsRequest where
689− toJSON CallReadGroupSetsRequest{..}
690− = object
691− (catMaybes
692− [("readGroupSetId" .=) <$> _crgsrReadGroupSetId,
693− ("datasetId" .=) <$> _crgsrDatasetId,
694− ("sourceUris" .=) <$> _crgsrSourceURIs])
695−
696−--
697−-- /See:/ 'batchAnnotationsResponseEntry' smart constructor.
698−data BatchAnnotationsResponseEntry = BatchAnnotationsResponseEntry
699− { _bareStatus :: !(Maybe BatchAnnotationsResponseEntryStatus)
700− , _bareAnnotation :: !(Maybe Annotation)
701− } deriving (Eq,Show,Data,Typeable,Generic)
702−
703−-- | Creates a value of 'BatchAnnotationsResponseEntry' with the minimum fields required to make a request.
704−--
705−-- Use one of the following lenses to modify other fields as desired:
706−--
707−-- * 'bareStatus'
708−--
709−-- * 'bareAnnotation'
710−batchAnnotationsResponseEntry
711− :: BatchAnnotationsResponseEntry
712−batchAnnotationsResponseEntry =
713− BatchAnnotationsResponseEntry
714− { _bareStatus = Nothing
715− , _bareAnnotation = Nothing
716− }
717−
718−-- | The resulting status for this annotation operation.
719−bareStatus :: Lens' BatchAnnotationsResponseEntry (Maybe BatchAnnotationsResponseEntryStatus)
720−bareStatus
721− = lens _bareStatus (\ s a -> s{_bareStatus = a})
722−
723−-- | The annotation, if any.
724−bareAnnotation :: Lens' BatchAnnotationsResponseEntry (Maybe Annotation)
725−bareAnnotation
726− = lens _bareAnnotation
727− (\ s a -> s{_bareAnnotation = a})
728−
729−instance FromJSON BatchAnnotationsResponseEntry where
730− parseJSON
731− = withObject "BatchAnnotationsResponseEntry"
732− (\ o ->
733− BatchAnnotationsResponseEntry <$>
734− (o .:? "status") <*> (o .:? "annotation"))
735−
736−instance ToJSON BatchAnnotationsResponseEntry where
737− toJSON BatchAnnotationsResponseEntry{..}
738− = object
739− (catMaybes
740− [("status" .=) <$> _bareStatus,
741− ("annotation" .=) <$> _bareAnnotation])
742−
743344--
744345-- /See:/ 'listBasesResponse' smart constructor.
745346data ListBasesResponse = ListBasesResponse
@@ -775,9 +376,9 @@ lbrNextPageToken
775376 = lens _lbrNextPageToken
776377 (\ s a -> s{_lbrNextPageToken = a})
777378
778−-- | The offset position (0-based) of the given sequence from the start of
779−-- this Reference. This value will differ for each page in a paginated
780−-- request.
379+-- | The offset position (0-based) of the given \`sequence\` from the start
380+-- of this \`Reference\`. This value will differ for each page in a
381+-- paginated request.
781382lbrOffset :: Lens' ListBasesResponse (Maybe Int64)
782383lbrOffset
783384 = lens _lbrOffset (\ s a -> s{_lbrOffset = a})
@@ -803,64 +404,146 @@ instance ToJSON ListBasesResponse where
803404 ("offset" .=) <$> _lbrOffset,
804405 ("sequence" .=) <$> _lbrSequence])
805406
407+-- | The response message for Operations.ListOperations.
408+--
409+-- /See:/ 'listOperationsResponse' smart constructor.
410+data ListOperationsResponse = ListOperationsResponse
411+ { _lorNextPageToken :: !(Maybe Text)
412+ , _lorOperations :: !(Maybe [Operation])
413+ } deriving (Eq,Show,Data,Typeable,Generic)
414+
415+-- | Creates a value of 'ListOperationsResponse' with the minimum fields required to make a request.
416+--
417+-- Use one of the following lenses to modify other fields as desired:
418+--
419+-- * 'lorNextPageToken'
420+--
421+-- * 'lorOperations'
422+listOperationsResponse
423+ :: ListOperationsResponse
424+listOperationsResponse =
425+ ListOperationsResponse
426+ { _lorNextPageToken = Nothing
427+ , _lorOperations = Nothing
428+ }
429+
430+-- | The standard List next-page token.
431+lorNextPageToken :: Lens' ListOperationsResponse (Maybe Text)
432+lorNextPageToken
433+ = lens _lorNextPageToken
434+ (\ s a -> s{_lorNextPageToken = a})
435+
436+-- | A list of operations that matches the specified filter in the request.
437+lorOperations :: Lens' ListOperationsResponse [Operation]
438+lorOperations
439+ = lens _lorOperations
440+ (\ s a -> s{_lorOperations = a})
441+ . _Default
442+ . _Coerce
443+
444+instance FromJSON ListOperationsResponse where
445+ parseJSON
446+ = withObject "ListOperationsResponse"
447+ (\ o ->
448+ ListOperationsResponse <$>
449+ (o .:? "nextPageToken") <*>
450+ (o .:? "operations" .!= mempty))
451+
452+instance ToJSON ListOperationsResponse where
453+ toJSON ListOperationsResponse{..}
454+ = object
455+ (catMaybes
456+ [("nextPageToken" .=) <$> _lorNextPageToken,
457+ ("operations" .=) <$> _lorOperations])
458+
459+-- | Request message for \`GetIamPolicy\` method.
460+--
461+-- /See:/ 'getIAMPolicyRequest' smart constructor.
462+data GetIAMPolicyRequest =
463+ GetIAMPolicyRequest
464+ deriving (Eq,Show,Data,Typeable,Generic)
465+
466+-- | Creates a value of 'GetIAMPolicyRequest' with the minimum fields required to make a request.
467+--
468+getIAMPolicyRequest
469+ :: GetIAMPolicyRequest
470+getIAMPolicyRequest = GetIAMPolicyRequest
471+
472+instance FromJSON GetIAMPolicyRequest where
473+ parseJSON
474+ = withObject "GetIAMPolicyRequest"
475+ (\ o -> pure GetIAMPolicyRequest)
476+
477+instance ToJSON GetIAMPolicyRequest where
478+ toJSON = const emptyObject
479+
480+-- | The request message for Operations.CancelOperation.
481+--
482+-- /See:/ 'cancelOperationRequest' smart constructor.
483+data CancelOperationRequest =
484+ CancelOperationRequest
485+ deriving (Eq,Show,Data,Typeable,Generic)
486+
487+-- | Creates a value of 'CancelOperationRequest' with the minimum fields required to make a request.
488+--
489+cancelOperationRequest
490+ :: CancelOperationRequest
491+cancelOperationRequest = CancelOperationRequest
492+
493+instance FromJSON CancelOperationRequest where
494+ parseJSON
495+ = withObject "CancelOperationRequest"
496+ (\ o -> pure CancelOperationRequest)
497+
498+instance ToJSON CancelOperationRequest where
499+ toJSON = const emptyObject
500+
806501-- | A Dataset is a collection of genomic data.
807502--
808503-- /See:/ 'dataset' smart constructor.
809504data Dataset = Dataset
810− { _dIsPublic :: !(Maybe Bool)
811− , _dProjectNumber :: !(Maybe Int64)
812− , _dName :: !(Maybe Text)
813− , _dId :: !(Maybe Text)
814− , _dCreateTime :: !(Maybe Int64)
505+ { _dName :: !(Maybe Text)
506+ , _dId :: !(Maybe Text)
507+ , _dProjectId :: !(Maybe Text)
508+ , _dCreateTime :: !(Maybe Text)
815509 } deriving (Eq,Show,Data,Typeable,Generic)
816510
817511-- | Creates a value of 'Dataset' with the minimum fields required to make a request.
818512--
819513-- Use one of the following lenses to modify other fields as desired:
820514--
821−-- * 'dIsPublic'
822−--
823−-- * 'dProjectNumber'
824−--
825515-- * 'dName'
826516--
827517-- * 'dId'
828518--
519+-- * 'dProjectId'
520+--
829521-- * 'dCreateTime'
830522dataset
831523 :: Dataset
832524dataset =
833525 Dataset
834− { _dIsPublic = Nothing
835− , _dProjectNumber = Nothing
836− , _dName = Nothing
526+ { _dName = Nothing
837527 , _dId = Nothing
528+ , _dProjectId = Nothing
838529 , _dCreateTime = Nothing
839530 }
840531
841−-- | Flag indicating whether or not a dataset is publicly viewable. If a
842−-- dataset is not public, it inherits viewing permissions from its project.
843−dIsPublic :: Lens' Dataset (Maybe Bool)
844−dIsPublic
845− = lens _dIsPublic (\ s a -> s{_dIsPublic = a})
846−
847−-- | The Google Developers Console project number that this dataset belongs
848−-- to.
849−dProjectNumber :: Lens' Dataset (Maybe Int64)
850−dProjectNumber
851− = lens _dProjectNumber
852− (\ s a -> s{_dProjectNumber = a})
853−
854532-- | The dataset name.
855533dName :: Lens' Dataset (Maybe Text)
856534dName = lens _dName (\ s a -> s{_dName = a})
857535
858−-- | The Google generated ID of the dataset, immutable.
536+-- | The server-generated dataset ID, unique across all datasets.
859537dId :: Lens' Dataset (Maybe Text)
860538dId = lens _dId (\ s a -> s{_dId = a})
861539
540+-- | The Google Developers Console project ID that this dataset belongs to.
541+dProjectId :: Lens' Dataset (Maybe Text)
542+dProjectId
543+ = lens _dProjectId (\ s a -> s{_dProjectId = a})
544+
862545-- | The time this dataset was created, in seconds from the epoch.
863−dCreateTime :: Lens' Dataset (Maybe Int64)
546+dCreateTime :: Lens' Dataset (Maybe Text)
864547dCreateTime
865548 = lens _dCreateTime (\ s a -> s{_dCreateTime = a})
866549
@@ -869,25 +552,23 @@ instance FromJSON Dataset where
869552 = withObject "Dataset"
870553 (\ o ->
871554 Dataset <$>
872− (o .:? "isPublic") <*> (o .:? "projectNumber") <*>
873− (o .:? "name")
874− <*> (o .:? "id")
555+ (o .:? "name") <*> (o .:? "id") <*>
556+ (o .:? "projectId")
875557 <*> (o .:? "createTime"))
876558
877559instance ToJSON Dataset where
878560 toJSON Dataset{..}
879561 = object
880562 (catMaybes
881− [("isPublic" .=) <$> _dIsPublic,
882− ("projectNumber" .=) <$> _dProjectNumber,
883− ("name" .=) <$> _dName, ("id" .=) <$> _dId,
563+ [("name" .=) <$> _dName, ("id" .=) <$> _dId,
564+ ("projectId" .=) <$> _dProjectId,
884565 ("createTime" .=) <$> _dCreateTime])
885566
886567-- | A read alignment describes a linear alignment of a string of DNA to a
887568-- reference sequence, in addition to metadata about the fragment (the
888569-- molecule of DNA sequenced) and the read (the bases which were read by
889570-- the sequencer). A read is equivalent to a line in a SAM file. A read
890−-- belongs to exactly one read group and exactly one read group set.
571+-- belongs to exactly one read group and exactly one read group set. ###
891572-- Generating a reference-aligned sequence string When interacting with
892573-- mapped reads, it\'s often useful to produce a string representing the
893574-- local alignment of the read to reference. The following pseudocode
@@ -899,10 +580,10 @@ instance ToJSON Dataset where
899580-- c.operationLength break case \"PAD\": out += repeat(\"*\",
900581-- c.operationLength) break case \"DELETE\": out += repeat(\"-\",
901582-- c.operationLength) break case \"SKIP\": out += repeat(\" \",
902−-- c.operationLength) break case \"CLIP_HARD\": break } } return out
583+-- c.operationLength) break case \"CLIP_HARD\": break } } return out ###
903584-- Converting to SAM\'s CIGAR string The following pseudocode generates a
904−-- SAM CIGAR string from the cigar field. Note that this is a lossy
905−-- conversion (cigar.referenceSequence is lost). cigarMap = {
585+-- SAM CIGAR string from the \`cigar\` field. Note that this is a lossy
586+-- conversion (\`cigar.referenceSequence\` is lost). cigarMap = {
906587-- \"ALIGNMENT_MATCH\": \"M\", \"INSERT\": \"I\", \"DELETE\": \"D\",
907588-- \"SKIP\": \"N\", \"CLIP_SOFT\": \"S\", \"CLIP_HARD\": \"H\", \"PAD\":
908589-- \"P\", \"SEQUENCE_MATCH\": \"=\", \"SEQUENCE_MISMATCH\": \"X\", }
@@ -1009,10 +690,9 @@ rReadGroupSetId
1009690 = lens _rReadGroupSetId
1010691 (\ s a -> s{_rReadGroupSetId = a})
1011692
1012−-- | The position of the primary alignment of the (readNumber+1)%numberReads
1013−-- read in the fragment. It replaces mate position and mate strand in SAM.
1014−-- This field will be unset if that read is unmapped or if the fragment
1015−-- only has a single read.
693+-- | The mapping of the primary alignment of the
694+-- \`(readNumber+1)%numberReads\` read in the fragment. It replaces mate
695+-- position and mate strand in SAM.
1016696rNextMatePosition :: Lens' Read' (Maybe Position)
1017697rNextMatePosition
1018698 = lens _rNextMatePosition
@@ -1024,7 +704,7 @@ rFailedVendorQualityChecks
1024704 = lens _rFailedVendorQualityChecks
1025705 (\ s a -> s{_rFailedVendorQualityChecks = a})
1026706
1027−-- | The linear alignment for this alignment record. This field will be unset
707+-- | The linear alignment for this alignment record. This field will be null
1028708-- if the read is unmapped.
1029709rAlignment :: Lens' Read' (Maybe LinearAlignment)
1030710rAlignment
@@ -1041,8 +721,8 @@ rNumberReads :: Lens' Read' (Maybe Int32)
1041721rNumberReads
1042722 = lens _rNumberReads (\ s a -> s{_rNumberReads = a})
1043723
1044−-- | The unique ID for this read. This is a generated unique ID, not to be
1045−-- confused with fragmentName.
724+-- | The server-generated read ID, unique across all reads. This is different
725+-- from the \`fragmentName\`.
1046726rId :: Lens' Read' (Maybe Text)
1047727rId = lens _rId (\ s a -> s{_rId = a})
1048728
@@ -1050,8 +730,8 @@ rId = lens _rId (\ s a -> s{_rId = a})
1050730-- secondary alignment represents an alternative to the primary alignment
1051731-- for this read. Aligners may return secondary alignments if a read can
1052732-- map ambiguously to multiple coordinates in the genome. By convention,
1053−-- each read has one and only one alignment where both secondaryAlignment
1054−-- and supplementaryAlignment are false.
733+-- each read has one and only one alignment where both
734+-- \`secondaryAlignment\` and \`supplementaryAlignment\` are false.
1055735rSecondaryAlignment :: Lens' Read' (Maybe Bool)
1056736rSecondaryAlignment
1057737 = lens _rSecondaryAlignment
@@ -1071,21 +751,21 @@ rReadGroupId
1071751-- alignment; the remaining linear alignments will be designated as
1072752-- supplementary alignments. These alignments may have different mapping
1073753-- quality scores. In each linear alignment in a chimeric alignment, the
1074−-- read will be hard clipped. The alignedSequence and alignedQuality fields
1075−-- in the alignment record will only represent the bases for its respective
1076−-- linear alignment.
754+-- read will be hard clipped. The \`alignedSequence\` and
755+-- \`alignedQuality\` fields in the alignment record will only represent
756+-- the bases for its respective linear alignment.
1077757rSupplementaryAlignment :: Lens' Read' (Maybe Bool)
1078758rSupplementaryAlignment
1079759 = lens _rSupplementaryAlignment
1080760 (\ s a -> s{_rSupplementaryAlignment = a})
1081761
1082762-- | The bases of the read sequence contained in this alignment record,
1083−-- without CIGAR operations applied. alignedSequence and alignedQuality may
1084−-- be shorter than the full read sequence and quality. This will occur if
1085−-- the alignment is part of a chimeric alignment, or if the read was
1086−-- trimmed. When this occurs, the CIGAR for this read will begin\/end with
1087−-- a hard clip operator that will indicate the length of the excised
1088−-- sequence.
763+-- *without CIGAR operations applied*. \`alignedSequence\` and
764+-- \`alignedQuality\` may be shorter than the full read sequence and
765+-- quality. This will occur if the alignment is part of a chimeric
766+-- alignment, or if the read was trimmed. When this occurs, the CIGAR for
767+-- this read will begin\/end with a hard clip operator that will indicate
768+-- the length of the excised sequence.
1089769rAlignedSequence :: Lens' Read' (Maybe Text)
1090770rAlignedSequence
1091771 = lens _rAlignedSequence
@@ -1098,7 +778,8 @@ rProperPlacement
1098778 = lens _rProperPlacement
1099779 (\ s a -> s{_rProperPlacement = a})
1100780
1101−-- | A string which maps to an array of values.
781+-- | A map of additional read alignment information. This must be of the form
782+-- map (string key mapping to a list of string values).
1102783rInfo :: Lens' Read' (Maybe ReadInfo)
1103784rInfo = lens _rInfo (\ s a -> s{_rInfo = a})
1104785
@@ -1109,8 +790,8 @@ rReadNumber
1109790 = lens _rReadNumber (\ s a -> s{_rReadNumber = a})
1110791
1111792-- | The quality of the read sequence contained in this alignment record.
1112−-- alignedSequence and alignedQuality may be shorter than the full read
1113−-- sequence and quality. This will occur if the alignment is part of a
793+-- \`alignedSequence\` and \`alignedQuality\` may be shorter than the full
794+-- read sequence and quality. This will occur if the alignment is part of a
1114795-- chimeric alignment, or if the read was trimmed. When this occurs, the
1115796-- CIGAR for this read will begin\/end with a hard clip operator that will
1116797-- indicate the length of the excised sequence.
@@ -1168,112 +849,47 @@ instance ToJSON Read' where
1168849 ("readNumber" .=) <$> _rReadNumber,
1169850 ("alignedQuality" .=) <$> _rAlignedQuality])
1170851
1171−--
1172−-- /See:/ 'transcriptExon' smart constructor.
1173−data TranscriptExon = TranscriptExon
1174− { _teStart :: !(Maybe Int64)
1175− , _teEnd :: !(Maybe Int64)
1176− , _teFrame :: !(Maybe Int32Value)
1177− } deriving (Eq,Show,Data,Typeable,Generic)
1178−
1179−-- | Creates a value of 'TranscriptExon' 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−-- * 'teStart'
1184−--
1185−-- * 'teEnd'
1186−--
1187−-- * 'teFrame'
1188−transcriptExon
1189− :: TranscriptExon
1190−transcriptExon =
1191− TranscriptExon
1192− { _teStart = Nothing
1193− , _teEnd = Nothing
1194− , _teFrame = Nothing
1195− }
1196−
1197−-- | The start position of the exon on this annotation\'s reference sequence,
1198−-- 0-based inclusive. Note that this is relative to the reference start,
1199−-- and not the containing annotation start.
1200−teStart :: Lens' TranscriptExon (Maybe Int64)
1201−teStart = lens _teStart (\ s a -> s{_teStart = a})
1202−
1203−-- | The end position of the exon on this annotation\'s reference sequence,
1204−-- 0-based exclusive. Note that this is relative to the reference start,
1205−-- and not the containing annotation start.
1206−teEnd :: Lens' TranscriptExon (Maybe Int64)
1207−teEnd = lens _teEnd (\ s a -> s{_teEnd = a})
1208−
1209−-- | The frame of this exon. Contains a value of 0, 1, or 2, which indicates
1210−-- the offset of the first coding base of the exon within the reading frame
1211−-- of the coding DNA sequence, if any. This field is dependent on the
1212−-- strandedness of this annotation (see Annotation.position.reverseStrand).
1213−-- For forward stranded annotations, this offset is relative to the
1214−-- exon.start. For reverse strand annotations, this offset is relative to
1215−-- the exon.end-1. Unset if this exon does not intersect the coding
1216−-- sequence. Upon creation of a transcript, the frame must be populated for
1217−-- all or none of the coding exons.
1218−teFrame :: Lens' TranscriptExon (Maybe Int32Value)
1219−teFrame = lens _teFrame (\ s a -> s{_teFrame = a})
1220−
1221−instance FromJSON TranscriptExon where
1222− parseJSON
1223− = withObject "TranscriptExon"
1224− (\ o ->
1225− TranscriptExon <$>
1226− (o .:? "start") <*> (o .:? "end") <*>
1227− (o .:? "frame"))
1228−
1229−instance ToJSON TranscriptExon where
1230− toJSON TranscriptExon{..}
1231− = object
1232− (catMaybes
1233− [("start" .=) <$> _teStart, ("end" .=) <$> _teEnd,
1234− ("frame" .=) <$> _teFrame])
1235−
1236852-- | A call represents the determination of genotype with respect to a
1237853-- particular variant. It may include associated information such as
1238854-- quality and phasing. For example, a call might assign a probability of
1239855-- 0.32 to the occurrence of a SNP named rs1234 in a call set with the name
1240856-- NA12345.
1241857--
1242−-- /See:/ 'call' smart constructor.
1243−data Call = Call
1244− { _cGenotypeLikelihood :: !(Maybe [Double])
1245− , _cCallSetName :: !(Maybe Text)
1246− , _cPhaseset :: !(Maybe Text)
1247− , _cCallSetId :: !(Maybe Text)
1248− , _cGenotype :: !(Maybe [Int32])
1249− , _cInfo :: !(Maybe CallInfo)
858+-- /See:/ 'variantCall' smart constructor.
859+data VariantCall = VariantCall
860+ { _vcGenotypeLikelihood :: !(Maybe [Double])
861+ , _vcCallSetName :: !(Maybe Text)
862+ , _vcPhaseset :: !(Maybe Text)
863+ , _vcCallSetId :: !(Maybe Text)
864+ , _vcGenotype :: !(Maybe [Int32])
865+ , _vcInfo :: !(Maybe VariantCallInfo)
1250866 } deriving (Eq,Show,Data,Typeable,Generic)
1251867
1252−-- | Creates a value of 'Call' with the minimum fields required to make a request.
868+-- | Creates a value of 'VariantCall' with the minimum fields required to make a request.
1253869--
1254870-- Use one of the following lenses to modify other fields as desired:
1255871--
1256−-- * 'cGenotypeLikelihood'
872+-- * 'vcGenotypeLikelihood'
1257873--
1258−-- * 'cCallSetName'
874+-- * 'vcCallSetName'
1259875--
1260−-- * 'cPhaseset'
876+-- * 'vcPhaseset'
1261877--
1262−-- * 'cCallSetId'
878+-- * 'vcCallSetId'
1263879--
1264−-- * 'cGenotype'
880+-- * 'vcGenotype'
1265881--
1266−-- * 'cInfo'
1267−call
1268− :: Call
1269−call =
1270− Call
1271− { _cGenotypeLikelihood = Nothing
1272− , _cCallSetName = Nothing
1273− , _cPhaseset = Nothing
1274− , _cCallSetId = Nothing
1275− , _cGenotype = Nothing
1276− , _cInfo = Nothing
882+-- * 'vcInfo'
883+variantCall
884+ :: VariantCall
885+variantCall =
886+ VariantCall
887+ { _vcGenotypeLikelihood = Nothing
888+ , _vcCallSetName = Nothing
889+ , _vcPhaseset = Nothing
890+ , _vcCallSetId = Nothing
891+ , _vcGenotype = Nothing
892+ , _vcInfo = Nothing
1277893 }
1278894
1279895-- | The genotype likelihoods for this variant call. Each array entry
@@ -1281,57 +897,60 @@ call =
1281897-- ordering is defined by the GL tag in the VCF spec. If Phred-scaled
1282898-- genotype likelihood scores (PL) are available and log10(P) genotype
1283899-- likelihood scores (GL) are not, PL scores are converted to GL scores. If
1284−-- both are available, PL scores are stored in info.
1285−cGenotypeLikelihood :: Lens' Call [Double]
1286−cGenotypeLikelihood
1287− = lens _cGenotypeLikelihood
1288− (\ s a -> s{_cGenotypeLikelihood = a})
900+-- both are available, PL scores are stored in \`info\`.
901+vcGenotypeLikelihood :: Lens' VariantCall [Double]
902+vcGenotypeLikelihood
903+ = lens _vcGenotypeLikelihood
904+ (\ s a -> s{_vcGenotypeLikelihood = a})
1289905 . _Default
1290906 . _Coerce
1291907
1292908-- | The name of the call set this variant call belongs to.
1293−cCallSetName :: Lens' Call (Maybe Text)
1294−cCallSetName
1295− = lens _cCallSetName (\ s a -> s{_cCallSetName = a})
909+vcCallSetName :: Lens' VariantCall (Maybe Text)
910+vcCallSetName
911+ = lens _vcCallSetName
912+ (\ s a -> s{_vcCallSetName = a})
1296913
1297914-- | If this field is present, this variant call\'s genotype ordering implies
1298915-- the phase of the bases and is consistent with any other variant calls in
1299916-- the same reference sequence which have the same phaseset value. When
1300917-- importing data from VCF, if the genotype data was phased but no phase
1301−-- set was specified this field will be set to *.
1302−cPhaseset :: Lens' Call (Maybe Text)
1303−cPhaseset
1304− = lens _cPhaseset (\ s a -> s{_cPhaseset = a})
918+-- set was specified this field will be set to \`*\`.
919+vcPhaseset :: Lens' VariantCall (Maybe Text)
920+vcPhaseset
921+ = lens _vcPhaseset (\ s a -> s{_vcPhaseset = a})
1305922
1306923-- | The ID of the call set this variant call belongs to.
1307−cCallSetId :: Lens' Call (Maybe Text)
1308−cCallSetId
1309− = lens _cCallSetId (\ s a -> s{_cCallSetId = a})
924+vcCallSetId :: Lens' VariantCall (Maybe Text)
925+vcCallSetId
926+ = lens _vcCallSetId (\ s a -> s{_vcCallSetId = a})
1310927
1311928-- | The genotype of this variant call. Each value represents either the
1312−-- value of the referenceBases field or a 1-based index into
1313−-- alternateBases. If a variant had a referenceBases value of T and an
1314−-- alternateBases value of [\"A\", \"C\"], and the genotype was [2, 1],
1315−-- that would mean the call represented the heterozygous value CA for this
1316−-- variant. If the genotype was instead [0, 1], the represented value would
1317−-- be TA. Ordering of the genotype values is important if the phaseset is
1318−-- present. If a genotype is not called (that is, a . is present in the GT
1319−-- string) -1 is returned.
1320−cGenotype :: Lens' Call [Int32]
1321−cGenotype
1322− = lens _cGenotype (\ s a -> s{_cGenotype = a}) .
929+-- value of the \`referenceBases\` field or a 1-based index into
930+-- \`alternateBases\`. If a variant had a \`referenceBases\` value of \`T\`
931+-- and an \`alternateBases\` value of \`[\"A\", \"C\"]\`, and the
932+-- \`genotype\` was \`[2, 1]\`, that would mean the call represented the
933+-- heterozygous value \`CA\` for this variant. If the \`genotype\` was
934+-- instead \`[0, 1]\`, the represented value would be \`TA\`. Ordering of
935+-- the genotype values is important if the \`phaseset\` is present. If a
936+-- genotype is not called (that is, a \`.\` is present in the GT string) -1
937+-- is returned.
938+vcGenotype :: Lens' VariantCall [Int32]
939+vcGenotype
940+ = lens _vcGenotype (\ s a -> s{_vcGenotype = a}) .
1323941 _Default
1324942 . _Coerce
1325943
1326−-- | A string which maps to an array of values.
1327−cInfo :: Lens' Call (Maybe CallInfo)
1328−cInfo = lens _cInfo (\ s a -> s{_cInfo = a})
944+-- | A map of additional variant call information. This must be of the form
945+-- map (string key mapping to a list of string values).
946+vcInfo :: Lens' VariantCall (Maybe VariantCallInfo)
947+vcInfo = lens _vcInfo (\ s a -> s{_vcInfo = a})
1329948
1330−instance FromJSON Call where
949+instance FromJSON VariantCall where
1331950 parseJSON
1332− = withObject "Call"
951+ = withObject "VariantCall"
1333952 (\ o ->
1334− Call <$>
953+ VariantCall <$>
1335954 (o .:? "genotypeLikelihood" .!= mempty) <*>
1336955 (o .:? "callSetName")
1337956 <*> (o .:? "phaseset")
@@ -1339,168 +958,16 @@ instance FromJSON Call where
1339958 <*> (o .:? "genotype" .!= mempty)
1340959 <*> (o .:? "info"))
1341960
1342−instance ToJSON Call where
1343− toJSON Call{..}
1344− = object
1345− (catMaybes
1346− [("genotypeLikelihood" .=) <$> _cGenotypeLikelihood,
1347− ("callSetName" .=) <$> _cCallSetName,
1348− ("phaseset" .=) <$> _cPhaseset,
1349− ("callSetId" .=) <$> _cCallSetId,
1350− ("genotype" .=) <$> _cGenotype,
1351− ("info" .=) <$> _cInfo])
1352−
1353−-- | A 0-based half-open genomic coordinate range for search requests.
1354−--
1355−-- /See:/ 'queryRange' smart constructor.
1356−data QueryRange = QueryRange
1357− { _qrStart :: !(Maybe Int64)
1358− , _qrReferenceId :: !(Maybe Text)
1359− , _qrReferenceName :: !(Maybe Text)
1360− , _qrEnd :: !(Maybe Int64)
1361− } deriving (Eq,Show,Data,Typeable,Generic)
1362−
1363−-- | Creates a value of 'QueryRange' with the minimum fields required to make a request.
1364−--
1365−-- Use one of the following lenses to modify other fields as desired:
1366−--
1367−-- * 'qrStart'
1368−--
1369−-- * 'qrReferenceId'
1370−--
1371−-- * 'qrReferenceName'
1372−--
1373−-- * 'qrEnd'
1374−queryRange
1375− :: QueryRange
1376−queryRange =
1377− QueryRange
1378− { _qrStart = Nothing
1379− , _qrReferenceId = Nothing
1380− , _qrReferenceName = Nothing
1381− , _qrEnd = Nothing
1382− }
1383−
1384−-- | The start position of the range on the reference, 0-based inclusive. If
1385−-- specified, referenceId or referenceName must also be specified. Defaults
1386−-- to 0.
1387−qrStart :: Lens' QueryRange (Maybe Int64)
1388−qrStart = lens _qrStart (\ s a -> s{_qrStart = a})
1389−
1390−-- | The ID of the reference to query. At most one of referenceId and
1391−-- referenceName should be specified.
1392−qrReferenceId :: Lens' QueryRange (Maybe Text)
1393−qrReferenceId
1394− = lens _qrReferenceId
1395− (\ s a -> s{_qrReferenceId = a})
1396−
1397−-- | The name of the reference to query, within the reference set associated
1398−-- with this query. At most one of referenceId and referenceName pshould be
1399−-- specified.
1400−qrReferenceName :: Lens' QueryRange (Maybe Text)
1401−qrReferenceName
1402− = lens _qrReferenceName
1403− (\ s a -> s{_qrReferenceName = a})
1404−
1405−-- | The end position of the range on the reference, 0-based exclusive. If
1406−-- specified, referenceId or referenceName must also be specified. If unset
1407−-- or 0, defaults to the length of the reference.
1408−qrEnd :: Lens' QueryRange (Maybe Int64)
1409−qrEnd = lens _qrEnd (\ s a -> s{_qrEnd = a})
1410−
1411−instance FromJSON QueryRange where
1412− parseJSON
1413− = withObject "QueryRange"
1414− (\ o ->
1415− QueryRange <$>
1416− (o .:? "start") <*> (o .:? "referenceId") <*>
1417− (o .:? "referenceName")
1418− <*> (o .:? "end"))
1419−
1420−instance ToJSON QueryRange where
1421− toJSON QueryRange{..}
961+instance ToJSON VariantCall where
962+ toJSON VariantCall{..}
1422963 = object
1423964 (catMaybes
1424− [("start" .=) <$> _qrStart,
1425− ("referenceId" .=) <$> _qrReferenceId,
1426− ("referenceName" .=) <$> _qrReferenceName,
1427− ("end" .=) <$> _qrEnd])
1428−
1429−--
1430−-- /See:/ 'batchCreateAnnotationsRequest' smart constructor.
1431−newtype BatchCreateAnnotationsRequest = BatchCreateAnnotationsRequest
1432− { _bcarAnnotations :: Maybe [Annotation]
1433− } deriving (Eq,Show,Data,Typeable,Generic)
1434−
1435−-- | Creates a value of 'BatchCreateAnnotationsRequest' with the minimum fields required to make a request.
1436−--
1437−-- Use one of the following lenses to modify other fields as desired:
1438−--
1439−-- * 'bcarAnnotations'
1440−batchCreateAnnotationsRequest
1441− :: BatchCreateAnnotationsRequest
1442−batchCreateAnnotationsRequest =
1443− BatchCreateAnnotationsRequest
1444− { _bcarAnnotations = Nothing
1445− }
1446−
1447−-- | The annotations to be created. At most 4096 can be specified in a single
1448−-- request.
1449−bcarAnnotations :: Lens' BatchCreateAnnotationsRequest [Annotation]
1450−bcarAnnotations
1451− = lens _bcarAnnotations
1452− (\ s a -> s{_bcarAnnotations = a})
1453− . _Default
1454− . _Coerce
1455−
1456−instance FromJSON BatchCreateAnnotationsRequest where
1457− parseJSON
1458− = withObject "BatchCreateAnnotationsRequest"
1459− (\ o ->
1460− BatchCreateAnnotationsRequest <$>
1461− (o .:? "annotations" .!= mempty))
1462−
1463−instance ToJSON BatchCreateAnnotationsRequest where
1464− toJSON BatchCreateAnnotationsRequest{..}
1465− = object
1466− (catMaybes [("annotations" .=) <$> _bcarAnnotations])
1467−
1468−--
1469−-- /See:/ 'mergeVariantsRequest' smart constructor.
1470−newtype MergeVariantsRequest = MergeVariantsRequest
1471− { _mvrVariants :: Maybe [Variant]
1472− } deriving (Eq,Show,Data,Typeable,Generic)
1473−
1474−-- | Creates a value of 'MergeVariantsRequest' with the minimum fields required to make a request.
1475−--
1476−-- Use one of the following lenses to modify other fields as desired:
1477−--
1478−-- * 'mvrVariants'
1479−mergeVariantsRequest
1480− :: MergeVariantsRequest
1481−mergeVariantsRequest =
1482− MergeVariantsRequest
1483− { _mvrVariants = Nothing
1484− }
1485−
1486−-- | The variants to be merged with existing variants.
1487−mvrVariants :: Lens' MergeVariantsRequest [Variant]
1488−mvrVariants
1489− = lens _mvrVariants (\ s a -> s{_mvrVariants = a}) .
1490− _Default
1491− . _Coerce
1492−
1493−instance FromJSON MergeVariantsRequest where
1494− parseJSON
1495− = withObject "MergeVariantsRequest"
1496− (\ o ->
1497− MergeVariantsRequest <$>
1498− (o .:? "variants" .!= mempty))
1499−
1500−instance ToJSON MergeVariantsRequest where
1501− toJSON MergeVariantsRequest{..}
1502− = object
1503− (catMaybes [("variants" .=) <$> _mvrVariants])
965+ [("genotypeLikelihood" .=) <$> _vcGenotypeLikelihood,
966+ ("callSetName" .=) <$> _vcCallSetName,
967+ ("phaseset" .=) <$> _vcPhaseset,
968+ ("callSetId" .=) <$> _vcCallSetId,
969+ ("genotype" .=) <$> _vcGenotype,
970+ ("info" .=) <$> _vcInfo])
1504971
1505972-- | A read group is all the data that\'s processed the same way by the
1506973-- sequencer.
@@ -1508,8 +975,8 @@ instance ToJSON MergeVariantsRequest where
1508975-- /See:/ 'readGroup' smart constructor.
1509976data ReadGroup = ReadGroup
1510977 { _rgReferenceSetId :: !(Maybe Text)
1511− , _rgPrograms :: !(Maybe [ReadGroupProgram])
1512− , _rgExperiment :: !(Maybe ReadGroupExperiment)
978+ , _rgPrograms :: !(Maybe [Program])
979+ , _rgExperiment :: !(Maybe Experiment)
1513980 , _rgName :: !(Maybe Text)
1514981 , _rgDatasetId :: !(Maybe Text)
1515982 , _rgId :: !(Maybe Text)
@@ -1569,14 +1036,14 @@ rgReferenceSetId
15691036-- identical for all read groups within a read group set. For this reason,
15701037-- only the first read group in a returned set will have this field
15711038-- populated.
1572−rgPrograms :: Lens' ReadGroup [ReadGroupProgram]
1039+rgPrograms :: Lens' ReadGroup [Program]
15731040rgPrograms
15741041 = lens _rgPrograms (\ s a -> s{_rgPrograms = a}) .
15751042 _Default
15761043 . _Coerce
15771044
15781045-- | The experiment used to generate this read group.
1579−rgExperiment :: Lens' ReadGroup (Maybe ReadGroupExperiment)
1046+rgExperiment :: Lens' ReadGroup (Maybe Experiment)
15801047rgExperiment
15811048 = lens _rgExperiment (\ s a -> s{_rgExperiment = a})
15821049
@@ -1590,8 +1057,9 @@ rgDatasetId :: Lens' ReadGroup (Maybe Text)
15901057rgDatasetId
15911058 = lens _rgDatasetId (\ s a -> s{_rgDatasetId = a})
15921059
1593−-- | The generated unique read group ID. Note: This is different than the
1594−-- \'RG ID field in the SAM spec. For that value, see the name field.
1060+-- | The server-generated read group ID, unique for all read groups. Note:
1061+-- This is different than the \`\'RG ID\` field in the SAM spec. For that
1062+-- value, see the \`name\` field.
15951063rgId :: Lens' ReadGroup (Maybe Text)
15961064rgId = lens _rgId (\ s a -> s{_rgId = a})
15971065
@@ -1616,7 +1084,8 @@ rgDescription
16161084 = lens _rgDescription
16171085 (\ s a -> s{_rgDescription = a})
16181086
1619−-- | A string which maps to an array of values.
1087+-- | A map of additional read group information. This must be of the form map
1088+-- (string key mapping to a list of string values).
16201089rgInfo :: Lens' ReadGroup (Maybe ReadGroupInfo)
16211090rgInfo = lens _rgInfo (\ s a -> s{_rgInfo = a})
16221091
@@ -1651,24 +1120,107 @@ instance ToJSON ReadGroup where
16511120 ("description" .=) <$> _rgDescription,
16521121 ("info" .=) <$> _rgInfo])
16531122
1654−-- |
1123+-- | This resource represents a long-running operation that is the result of
1124+-- a network API call.
16551125--
1656−-- /See:/ 'searchReferenceSetsRequest' smart constructor.
1657−data SearchReferenceSetsRequest = SearchReferenceSetsRequest
1658− { _srsrMD5checksums :: !(Maybe [Text])
1659− , _srsrAccessions :: !(Maybe [Text])
1660− , _srsrPageToken :: !(Maybe Text)
1661− , _srsrAssemblyId :: !(Maybe Text)
1662− , _srsrPageSize :: !(Maybe Int32)
1126+-- /See:/ 'operation' smart constructor.
1127+data Operation = Operation
1128+ { _oDone :: !(Maybe Bool)
1129+ , _oError :: !(Maybe Status)
1130+ , _oResponse :: !(Maybe OperationResponse)
1131+ , _oName :: !(Maybe Text)
1132+ , _oMetadata :: !(Maybe OperationSchema)
16631133 } deriving (Eq,Show,Data,Typeable,Generic)
16641134
1665−-- | Creates a value of 'SearchReferenceSetsRequest' with the minimum fields required to make a request.
1135+-- | Creates a value of 'Operation' with the minimum fields required to make a request.
16661136--
16671137-- Use one of the following lenses to modify other fields as desired:
16681138--
1669−-- * 'srsrMD5checksums'
1139+-- * 'oDone'
16701140--
1671−-- * 'srsrAccessions'
1141+-- * 'oError'
1142+--
1143+-- * 'oResponse'
1144+--
1145+-- * 'oName'
1146+--
1147+-- * 'oMetadata'
1148+operation
1149+ :: Operation
1150+operation =
1151+ Operation
1152+ { _oDone = Nothing
1153+ , _oError = Nothing
1154+ , _oResponse = Nothing
1155+ , _oName = Nothing
1156+ , _oMetadata = Nothing
1157+ }
1158+
1159+-- | If the value is \`false\`, it means the operation is still in progress.
1160+-- If true, the operation is completed, and either \`error\` or
1161+-- \`response\` is available.
1162+oDone :: Lens' Operation (Maybe Bool)
1163+oDone = lens _oDone (\ s a -> s{_oDone = a})
1164+
1165+-- | The error result of the operation in case of failure.
1166+oError :: Lens' Operation (Maybe Status)
1167+oError = lens _oError (\ s a -> s{_oError = a})
1168+
1169+-- | If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned.
1170+-- If importing Variants, an ImportVariantsResponse is returned. For
1171+-- exports, an empty response is returned.
1172+oResponse :: Lens' Operation (Maybe OperationResponse)
1173+oResponse
1174+ = lens _oResponse (\ s a -> s{_oResponse = a})
1175+
1176+-- | The server-assigned name, which is only unique within the same service
1177+-- that originally returns it. For example:
1178+-- \`operations\/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw\`
1179+oName :: Lens' Operation (Maybe Text)
1180+oName = lens _oName (\ s a -> s{_oName = a})
1181+
1182+-- | An OperationMetadata object. This will always be returned with the
1183+-- Operation.
1184+oMetadata :: Lens' Operation (Maybe OperationSchema)
1185+oMetadata
1186+ = lens _oMetadata (\ s a -> s{_oMetadata = a})
1187+
1188+instance FromJSON Operation where
1189+ parseJSON
1190+ = withObject "Operation"
1191+ (\ o ->
1192+ Operation <$>
1193+ (o .:? "done") <*> (o .:? "error") <*>
1194+ (o .:? "response")
1195+ <*> (o .:? "name")
1196+ <*> (o .:? "metadata"))
1197+
1198+instance ToJSON Operation where
1199+ toJSON Operation{..}
1200+ = object
1201+ (catMaybes
1202+ [("done" .=) <$> _oDone, ("error" .=) <$> _oError,
1203+ ("response" .=) <$> _oResponse,
1204+ ("name" .=) <$> _oName,
1205+ ("metadata" .=) <$> _oMetadata])
1206+
1207+--
1208+-- /See:/ 'searchReferenceSetsRequest' smart constructor.
1209+data SearchReferenceSetsRequest = SearchReferenceSetsRequest
1210+ { _srsrMD5checksums :: !(Maybe [Text])
1211+ , _srsrAccessions :: !(Maybe [Text])
1212+ , _srsrPageToken :: !(Maybe Text)
1213+ , _srsrAssemblyId :: !(Maybe Text)
1214+ , _srsrPageSize :: !(Maybe Int32)
1215+ } deriving (Eq,Show,Data,Typeable,Generic)
1216+
1217+-- | Creates a value of 'SearchReferenceSetsRequest' with the minimum fields required to make a request.
1218+--
1219+-- Use one of the following lenses to modify other fields as desired:
1220+--
1221+-- * 'srsrMD5checksums'
1222+--
1223+-- * 'srsrAccessions'
16721224--
16731225-- * 'srsrPageToken'
16741226--
@@ -1686,8 +1238,8 @@ searchReferenceSetsRequest =
16861238 , _srsrPageSize = Nothing
16871239 }
16881240
1689−-- | If present, return references for which the md5checksum matches. See
1690−-- ReferenceSet.md5checksum for details.
1241+-- | If present, return references for which the \`md5checksum\` matches. See
1242+-- \`ReferenceSet.md5checksum\` for details.
16911243srsrMD5checksums :: Lens' SearchReferenceSetsRequest [Text]
16921244srsrMD5checksums
16931245 = lens _srsrMD5checksums
@@ -1697,9 +1249,9 @@ srsrMD5checksums
16971249
16981250-- | If present, return references for which the accession matches any of
16991251-- these strings. Best to give a version number, for example
1700−-- GCF_000001405.26. If only the main accession number is given then all
1701−-- records with that main accession will be returned, whichever version.
1702−-- Note that different versions will have different sequences.
1252+-- \`GCF_000001405.26\`. If only the main accession number is given then
1253+-- all records with that main accession will be returned, whichever
1254+-- version. Note that different versions will have different sequences.
17031255srsrAccessions :: Lens' SearchReferenceSetsRequest [Text]
17041256srsrAccessions
17051257 = lens _srsrAccessions
@@ -1709,14 +1261,14 @@ srsrAccessions
17091261
17101262-- | The continuation token, which is used to page through large result sets.
17111263-- To get the next page of results, set this parameter to the value of
1712−-- nextPageToken from the previous response.
1264+-- \`nextPageToken\` from the previous response.
17131265srsrPageToken :: Lens' SearchReferenceSetsRequest (Maybe Text)
17141266srsrPageToken
17151267 = lens _srsrPageToken
17161268 (\ s a -> s{_srsrPageToken = a})
17171269
17181270-- | If present, return reference sets for which a substring of their
1719−-- assemblyId matches this string (case insensitive).
1271+-- \`assemblyId\` matches this string (case insensitive).
17201272srsrAssemblyId :: Lens' SearchReferenceSetsRequest (Maybe Text)
17211273srsrAssemblyId
17221274 = lens _srsrAssemblyId
@@ -1748,6 +1300,29 @@ instance ToJSON SearchReferenceSetsRequest where
17481300 ("assemblyId" .=) <$> _srsrAssemblyId,
17491301 ("pageSize" .=) <$> _srsrPageSize])
17501302
1303+-- | A generic empty message that you can re-use to avoid defining duplicated
1304+-- empty messages in your APIs. A typical example is to use it as the
1305+-- request or the response type of an API method. For instance: service Foo
1306+-- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The
1307+-- JSON representation for \`Empty\` is empty JSON object \`{}\`.
1308+--
1309+-- /See:/ 'empty' smart constructor.
1310+data Empty =
1311+ Empty
1312+ deriving (Eq,Show,Data,Typeable,Generic)
1313+
1314+-- | Creates a value of 'Empty' with the minimum fields required to make a request.
1315+--
1316+empty
1317+ :: Empty
1318+empty = Empty
1319+
1320+instance FromJSON Empty where
1321+ parseJSON = withObject "Empty" (\ o -> pure Empty)
1322+
1323+instance ToJSON Empty where
1324+ toJSON = const emptyObject
1325+
17511326--
17521327-- /See:/ 'searchReferencesResponse' smart constructor.
17531328data SearchReferencesResponse = SearchReferencesResponse
@@ -1802,6 +1377,108 @@ instance ToJSON SearchReferencesResponse where
18021377 [("nextPageToken" .=) <$> _srrNextPageToken,
18031378 ("references" .=) <$> _srrReferences])
18041379
1380+-- | Metadata describes a single piece of variant call metadata. These data
1381+-- include a top level key and either a single value string (value) or a
1382+-- list of key-value pairs (info.) Value and info are mutually exclusive.
1383+--
1384+-- /See:/ 'variantSetMetadata' smart constructor.
1385+data VariantSetMetadata = VariantSetMetadata
1386+ { _vsmValue :: !(Maybe Text)
1387+ , _vsmKey :: !(Maybe Text)
1388+ , _vsmId :: !(Maybe Text)
1389+ , _vsmType :: !(Maybe Text)
1390+ , _vsmNumber :: !(Maybe Text)
1391+ , _vsmDescription :: !(Maybe Text)
1392+ , _vsmInfo :: !(Maybe VariantSetMetadataInfo)
1393+ } deriving (Eq,Show,Data,Typeable,Generic)
1394+
1395+-- | Creates a value of 'VariantSetMetadata' with the minimum fields required to make a request.
1396+--
1397+-- Use one of the following lenses to modify other fields as desired:
1398+--
1399+-- * 'vsmValue'
1400+--
1401+-- * 'vsmKey'
1402+--
1403+-- * 'vsmId'
1404+--
1405+-- * 'vsmType'
1406+--
1407+-- * 'vsmNumber'
1408+--
1409+-- * 'vsmDescription'
1410+--
1411+-- * 'vsmInfo'
1412+variantSetMetadata
1413+ :: VariantSetMetadata
1414+variantSetMetadata =
1415+ VariantSetMetadata
1416+ { _vsmValue = Nothing
1417+ , _vsmKey = Nothing
1418+ , _vsmId = Nothing
1419+ , _vsmType = Nothing
1420+ , _vsmNumber = Nothing
1421+ , _vsmDescription = Nothing
1422+ , _vsmInfo = Nothing
1423+ }
1424+
1425+-- | The value field for simple metadata
1426+vsmValue :: Lens' VariantSetMetadata (Maybe Text)
1427+vsmValue = lens _vsmValue (\ s a -> s{_vsmValue = a})
1428+
1429+-- | The top-level key.
1430+vsmKey :: Lens' VariantSetMetadata (Maybe Text)
1431+vsmKey = lens _vsmKey (\ s a -> s{_vsmKey = a})
1432+
1433+-- | User-provided ID field, not enforced by this API. Two or more pieces of
1434+-- structured metadata with identical id and key fields are considered
1435+-- equivalent.
1436+vsmId :: Lens' VariantSetMetadata (Maybe Text)
1437+vsmId = lens _vsmId (\ s a -> s{_vsmId = a})
1438+
1439+-- | The type of data. Possible types include: Integer, Float, Flag,
1440+-- Character, and String.
1441+vsmType :: Lens' VariantSetMetadata (Maybe Text)
1442+vsmType = lens _vsmType (\ s a -> s{_vsmType = a})
1443+
1444+-- | The number of values that can be included in a field described by this
1445+-- metadata.
1446+vsmNumber :: Lens' VariantSetMetadata (Maybe Text)
1447+vsmNumber
1448+ = lens _vsmNumber (\ s a -> s{_vsmNumber = a})
1449+
1450+-- | A textual description of this metadata.
1451+vsmDescription :: Lens' VariantSetMetadata (Maybe Text)
1452+vsmDescription
1453+ = lens _vsmDescription
1454+ (\ s a -> s{_vsmDescription = a})
1455+
1456+-- | Remaining structured metadata key-value pairs. This must be of the form
1457+-- map (string key mapping to a list of string values).
1458+vsmInfo :: Lens' VariantSetMetadata (Maybe VariantSetMetadataInfo)
1459+vsmInfo = lens _vsmInfo (\ s a -> s{_vsmInfo = a})
1460+
1461+instance FromJSON VariantSetMetadata where
1462+ parseJSON
1463+ = withObject "VariantSetMetadata"
1464+ (\ o ->
1465+ VariantSetMetadata <$>
1466+ (o .:? "value") <*> (o .:? "key") <*> (o .:? "id")
1467+ <*> (o .:? "type")
1468+ <*> (o .:? "number")
1469+ <*> (o .:? "description")
1470+ <*> (o .:? "info"))
1471+
1472+instance ToJSON VariantSetMetadata where
1473+ toJSON VariantSetMetadata{..}
1474+ = object
1475+ (catMaybes
1476+ [("value" .=) <$> _vsmValue, ("key" .=) <$> _vsmKey,
1477+ ("id" .=) <$> _vsmId, ("type" .=) <$> _vsmType,
1478+ ("number" .=) <$> _vsmNumber,
1479+ ("description" .=) <$> _vsmDescription,
1480+ ("info" .=) <$> _vsmInfo])
1481+
18051482-- | A call set is a collection of variant calls, typically for one sample.
18061483-- It belongs to a variant set.
18071484--
@@ -1851,7 +1528,7 @@ csCreated
18511528csName :: Lens' CallSet (Maybe Text)
18521529csName = lens _csName (\ s a -> s{_csName = a})
18531530
1854−-- | The Google generated ID of the call set, immutable.
1531+-- | The server-generated call set ID, unique across all call sets.
18551532csId :: Lens' CallSet (Maybe Text)
18561533csId = lens _csId (\ s a -> s{_csId = a})
18571534
@@ -1860,7 +1537,10 @@ csSampleId :: Lens' CallSet (Maybe Text)
18601537csSampleId
18611538 = lens _csSampleId (\ s a -> s{_csSampleId = a})
18621539
1863−-- | The IDs of the variant sets this call set belongs to.
1540+-- | The IDs of the variant sets this call set belongs to. This field must
1541+-- have exactly length one, as a call set belongs to a single variant set.
1542+-- This field is repeated for compatibility with the [GA4GH 0.5.1
1543+-- API](https:\/\/github.com\/ga4gh\/schemas\/blob\/v0.5.1\/src\/main\/resources\/avro\/variants.avdl#L76).
18641544csVariantSetIds :: Lens' CallSet [Text]
18651545csVariantSetIds
18661546 = lens _csVariantSetIds
@@ -1868,7 +1548,8 @@ csVariantSetIds
18681548 . _Default
18691549 . _Coerce
18701550
1871−-- | A string which maps to an array of values.
1551+-- | A map of additional call set information. This must be of the form map
1552+-- (string key mapping to a list of string values).
18721553csInfo :: Lens' CallSet (Maybe CallSetInfo)
18731554csInfo = lens _csInfo (\ s a -> s{_csInfo = a})
18741555
@@ -1941,120 +1622,6 @@ instance ToJSON CoverageBucket where
19411622 [("range" .=) <$> _cbRange,
19421623 ("meanCoverage" .=) <$> _cbMeanCoverage])
19431624
1944−-- | A Variant annotation.
1945−--
1946−-- /See:/ 'variantAnnotation' smart constructor.
1947−data VariantAnnotation = VariantAnnotation
1948− { _vaEffect :: !(Maybe VariantAnnotationEffect)
1949− , _vaClinicalSignificance :: !(Maybe VariantAnnotationClinicalSignificance)
1950− , _vaAlternateBases :: !(Maybe Text)
1951− , _vaGeneId :: !(Maybe Text)
1952− , _vaConditions :: !(Maybe [VariantAnnotationCondition])
1953− , _vaType :: !(Maybe VariantAnnotationType)
1954− , _vaTranscriptIds :: !(Maybe [Text])
1955− } deriving (Eq,Show,Data,Typeable,Generic)
1956−
1957−-- | Creates a value of 'VariantAnnotation' with the minimum fields required to make a request.
1958−--
1959−-- Use one of the following lenses to modify other fields as desired:
1960−--
1961−-- * 'vaEffect'
1962−--
1963−-- * 'vaClinicalSignificance'
1964−--
1965−-- * 'vaAlternateBases'
1966−--
1967−-- * 'vaGeneId'
1968−--
1969−-- * 'vaConditions'
1970−--
1971−-- * 'vaType'
1972−--
1973−-- * 'vaTranscriptIds'
1974−variantAnnotation
1975− :: VariantAnnotation
1976−variantAnnotation =
1977− VariantAnnotation
1978− { _vaEffect = Nothing
1979− , _vaClinicalSignificance = Nothing
1980− , _vaAlternateBases = Nothing
1981− , _vaGeneId = Nothing
1982− , _vaConditions = Nothing
1983− , _vaType = Nothing
1984− , _vaTranscriptIds = Nothing
1985− }
1986−
1987−-- | Effect of the variant on the coding sequence.
1988−vaEffect :: Lens' VariantAnnotation (Maybe VariantAnnotationEffect)
1989−vaEffect = lens _vaEffect (\ s a -> s{_vaEffect = a})
1990−
1991−-- | Describes the clinical significance of a variant. It is adapted from the
1992−-- ClinVar controlled vocabulary for clinical significance described at:
1993−-- http:\/\/www.ncbi.nlm.nih.gov\/clinvar\/docs\/clinsig\/
1994−vaClinicalSignificance :: Lens' VariantAnnotation (Maybe VariantAnnotationClinicalSignificance)
1995−vaClinicalSignificance
1996− = lens _vaClinicalSignificance
1997− (\ s a -> s{_vaClinicalSignificance = a})
1998−
1999−-- | The alternate allele for this variant. If multiple alternate alleles
2000−-- exist at this location, create a separate variant for each one, as they
2001−-- may represent distinct conditions.
2002−vaAlternateBases :: Lens' VariantAnnotation (Maybe Text)
2003−vaAlternateBases
2004− = lens _vaAlternateBases
2005− (\ s a -> s{_vaAlternateBases = a})
2006−
2007−-- | Google annotation ID of the gene affected by this variant. This should
2008−-- be provided when the variant is created.
2009−vaGeneId :: Lens' VariantAnnotation (Maybe Text)
2010−vaGeneId = lens _vaGeneId (\ s a -> s{_vaGeneId = a})
2011−
2012−-- | The set of conditions associated with this variant. A condition
2013−-- describes the way a variant influences human health.
2014−vaConditions :: Lens' VariantAnnotation [VariantAnnotationCondition]
2015−vaConditions
2016− = lens _vaConditions (\ s a -> s{_vaConditions = a})
2017− . _Default
2018− . _Coerce
2019−
2020−-- | Type has been adapted from ClinVar\'s list of variant types.
2021−vaType :: Lens' VariantAnnotation (Maybe VariantAnnotationType)
2022−vaType = lens _vaType (\ s a -> s{_vaType = a})
2023−
2024−-- | Google annotation IDs of the transcripts affected by this variant. These
2025−-- should be provided when the variant is created.
2026−vaTranscriptIds :: Lens' VariantAnnotation [Text]
2027−vaTranscriptIds
2028− = lens _vaTranscriptIds
2029− (\ s a -> s{_vaTranscriptIds = a})
2030− . _Default
2031− . _Coerce
2032−
2033−instance FromJSON VariantAnnotation where
2034− parseJSON
2035− = withObject "VariantAnnotation"
2036− (\ o ->
2037− VariantAnnotation <$>
2038− (o .:? "effect") <*> (o .:? "clinicalSignificance")
2039− <*> (o .:? "alternateBases")
2040− <*> (o .:? "geneId")
2041− <*> (o .:? "conditions" .!= mempty)
2042− <*> (o .:? "type")
2043− <*> (o .:? "transcriptIds" .!= mempty))
2044−
2045−instance ToJSON VariantAnnotation where
2046− toJSON VariantAnnotation{..}
2047− = object
2048− (catMaybes
2049− [("effect" .=) <$> _vaEffect,
2050− ("clinicalSignificance" .=) <$>
2051− _vaClinicalSignificance,
2052− ("alternateBases" .=) <$> _vaAlternateBases,
2053− ("geneId" .=) <$> _vaGeneId,
2054− ("conditions" .=) <$> _vaConditions,
2055− ("type" .=) <$> _vaType,
2056− ("transcriptIds" .=) <$> _vaTranscriptIds])
2057−
20581625-- | The read group set search request.
20591626--
20601627-- /See:/ 'searchReadGroupSetsRequest' smart constructor.
@@ -2103,7 +1670,7 @@ srgsrName
21031670
21041671-- | The continuation token, which is used to page through large result sets.
21051672-- To get the next page of results, set this parameter to the value of
2106−-- nextPageToken from the previous response.
1673+-- \`nextPageToken\` from the previous response.
21071674srgsrPageToken :: Lens' SearchReadGroupSetsRequest (Maybe Text)
21081675srgsrPageToken
21091676 = lens _srgsrPageToken
@@ -2134,55 +1701,6 @@ instance ToJSON SearchReadGroupSetsRequest where
21341701 ("pageToken" .=) <$> _srgsrPageToken,
21351702 ("pageSize" .=) <$> _srgsrPageSize])
21361703
2137−-- |
2138−--
2139−-- /See:/ 'batchAnnotationsResponseEntryStatus' smart constructor.
2140−data BatchAnnotationsResponseEntryStatus = BatchAnnotationsResponseEntryStatus
2141− { _baresCode :: !(Maybe Int32)
2142− , _baresMessage :: !(Maybe Text)
2143− } deriving (Eq,Show,Data,Typeable,Generic)
2144−
2145−-- | Creates a value of 'BatchAnnotationsResponseEntryStatus' with the minimum fields required to make a request.
2146−--
2147−-- Use one of the following lenses to modify other fields as desired:
2148−--
2149−-- * 'baresCode'
2150−--
2151−-- * 'baresMessage'
2152−batchAnnotationsResponseEntryStatus
2153− :: BatchAnnotationsResponseEntryStatus
2154−batchAnnotationsResponseEntryStatus =
2155− BatchAnnotationsResponseEntryStatus
2156− { _baresCode = Nothing
2157− , _baresMessage = Nothing
2158− }
2159−
2160−-- | The HTTP status code for this operation.
2161−baresCode :: Lens' BatchAnnotationsResponseEntryStatus (Maybe Int32)
2162−baresCode
2163− = lens _baresCode (\ s a -> s{_baresCode = a})
2164−
2165−-- | Error message for this status, if any.
2166−baresMessage :: Lens' BatchAnnotationsResponseEntryStatus (Maybe Text)
2167−baresMessage
2168− = lens _baresMessage (\ s a -> s{_baresMessage = a})
2169−
2170−instance FromJSON BatchAnnotationsResponseEntryStatus
2171− where
2172− parseJSON
2173− = withObject "BatchAnnotationsResponseEntryStatus"
2174− (\ o ->
2175− BatchAnnotationsResponseEntryStatus <$>
2176− (o .:? "code") <*> (o .:? "message"))
2177−
2178−instance ToJSON BatchAnnotationsResponseEntryStatus
2179− where
2180− toJSON BatchAnnotationsResponseEntryStatus{..}
2181− = object
2182− (catMaybes
2183− [("code" .=) <$> _baresCode,
2184− ("message" .=) <$> _baresMessage])
2185−
21861704-- | A reference is a canonical assembled DNA sequence, intended to act as a
21871705-- reference coordinate space for other genomic annotations. A single
21881706-- reference might represent the human chromosome 1 or mitochandrial DNA,
@@ -2235,7 +1753,7 @@ refLength
22351753 = lens _refLength (\ s a -> s{_refLength = a})
22361754
22371755-- | All known corresponding accession IDs in INSDC (GenBank\/ENA\/DDBJ)
2238−-- ideally with a version number, for example GCF_000001405.26.
1756+-- ideally with a version number, for example \`GCF_000001405.26\`.
22391757refSourceAccessions :: Lens' Reference [Text]
22401758refSourceAccessions
22411759 = lens _refSourceAccessions
@@ -2251,7 +1769,7 @@ refMD5checksum
22511769 = lens _refMD5checksum
22521770 (\ s a -> s{_refMD5checksum = a})
22531771
2254−-- | The name of this reference, for example 22.
1772+-- | The name of this reference, for example \`22\`.
22551773refName :: Lens' Reference (Maybe Text)
22561774refName = lens _refName (\ s a -> s{_refName = a})
22571775
@@ -2262,7 +1780,7 @@ refNcbiTaxonId
22621780 = lens _refNcbiTaxonId
22631781 (\ s a -> s{_refNcbiTaxonId = a})
22641782
2265−-- | The Google generated immutable ID of the reference.
1783+-- | The server-generated reference ID, unique across all references.
22661784refId :: Lens' Reference (Maybe Text)
22671785refId = lens _refId (\ s a -> s{_refId = a})
22681786
@@ -2283,7 +1801,7 @@ instance FromJSON Reference where
22831801 <*> (o .:? "name")
22841802 <*> (o .:? "ncbiTaxonId")
22851803 <*> (o .:? "id")
2286− <*> (o .:? "sourceURI"))
1804+ <*> (o .:? "sourceUri"))
22871805
22881806instance ToJSON Reference where
22891807 toJSON Reference{..}
@@ -2295,46 +1813,32 @@ instance ToJSON Reference where
22951813 ("name" .=) <$> _refName,
22961814 ("ncbiTaxonId" .=) <$> _refNcbiTaxonId,
22971815 ("id" .=) <$> _refId,
2298− ("sourceURI" .=) <$> _refSourceURI])
1816+ ("sourceUri" .=) <$> _refSourceURI])
22991817
1818+-- | A map of additional variant call information. This must be of the form
1819+-- map (string key mapping to a list of string values).
23001820--
2301−-- /See:/ 'batchAnnotationsResponse' smart constructor.
2302−newtype BatchAnnotationsResponse = BatchAnnotationsResponse
2303− { _barEntries :: Maybe [BatchAnnotationsResponseEntry]
2304− } deriving (Eq,Show,Data,Typeable,Generic)
1821+-- /See:/ 'variantCallInfo' smart constructor.
1822+data VariantCallInfo =
1823+ VariantCallInfo
1824+ deriving (Eq,Show,Data,Typeable,Generic)
23051825
2306−-- | Creates a value of 'BatchAnnotationsResponse' with the minimum fields required to make a request.
2307−--
2308−-- Use one of the following lenses to modify other fields as desired:
1826+-- | Creates a value of 'VariantCallInfo' with the minimum fields required to make a request.
23091827--
2310−-- * 'barEntries'
2311−batchAnnotationsResponse
2312− :: BatchAnnotationsResponse
2313−batchAnnotationsResponse =
2314− BatchAnnotationsResponse
2315− { _barEntries = Nothing
2316− }
1828+variantCallInfo
1829+ :: VariantCallInfo
1830+variantCallInfo = VariantCallInfo
23171831
2318−-- | The resulting per-annotation entries, ordered consistently with the
2319−-- original request.
2320−barEntries :: Lens' BatchAnnotationsResponse [BatchAnnotationsResponseEntry]
2321−barEntries
2322− = lens _barEntries (\ s a -> s{_barEntries = a}) .
2323− _Default
2324− . _Coerce
2325−
2326−instance FromJSON BatchAnnotationsResponse where
1832+instance FromJSON VariantCallInfo where
23271833 parseJSON
2328− = withObject "BatchAnnotationsResponse"
2329− (\ o ->
2330− BatchAnnotationsResponse <$>
2331− (o .:? "entries" .!= mempty))
1834+ = withObject "VariantCallInfo"
1835+ (\ o -> pure VariantCallInfo)
23321836
2333−instance ToJSON BatchAnnotationsResponse where
2334− toJSON BatchAnnotationsResponse{..}
2335− = object (catMaybes [("entries" .=) <$> _barEntries])
1837+instance ToJSON VariantCallInfo where
1838+ toJSON = const emptyObject
23361839
2337−-- | A string which maps to an array of values.
1840+-- | A map of additional read group information. This must be of the form map
1841+-- (string key mapping to a list of string values).
23381842--
23391843-- /See:/ 'readGroupInfo' smart constructor.
23401844data ReadGroupInfo =
@@ -2355,108 +1859,25 @@ instance FromJSON ReadGroupInfo where
23551859instance ToJSON ReadGroupInfo where
23561860 toJSON = const emptyObject
23571861
2358−-- | The jobs search request.
23591862--
2360−-- /See:/ 'searchJobsRequest' smart constructor.
2361−data SearchJobsRequest = SearchJobsRequest
2362− { _sjrCreatedAfter :: !(Maybe Int64)
2363− , _sjrStatus :: !(Maybe [SearchJobsRequestStatusItem])
2364− , _sjrProjectNumber :: !(Maybe Int64)
2365− , _sjrPageToken :: !(Maybe Text)
2366− , _sjrPageSize :: !(Maybe Int32)
2367− , _sjrCreatedBefore :: !(Maybe Int64)
2368− } deriving (Eq,Show,Data,Typeable,Generic)
1863+-- /See:/ 'statusDetailsItem' smart constructor.
1864+data StatusDetailsItem =
1865+ StatusDetailsItem
1866+ deriving (Eq,Show,Data,Typeable,Generic)
23691867
2370−-- | Creates a value of 'SearchJobsRequest' with the minimum fields required to make a request.
2371−--
2372−-- Use one of the following lenses to modify other fields as desired:
2373−--
2374−-- * 'sjrCreatedAfter'
2375−--
2376−-- * 'sjrStatus'
2377−--
2378−-- * 'sjrProjectNumber'
1868+-- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request.
23791869--
2380−-- * 'sjrPageToken'
2381−--
2382−-- * 'sjrPageSize'
2383−--
2384−-- * 'sjrCreatedBefore'
2385−searchJobsRequest
2386− :: SearchJobsRequest
2387−searchJobsRequest =
2388− SearchJobsRequest
2389− { _sjrCreatedAfter = Nothing
2390− , _sjrStatus = Nothing
2391− , _sjrProjectNumber = Nothing
2392− , _sjrPageToken = Nothing
2393− , _sjrPageSize = Nothing
2394− , _sjrCreatedBefore = Nothing
2395− }
2396−
2397−-- | If specified, only jobs created on or after this date, given in
2398−-- milliseconds since Unix epoch, will be returned.
2399−sjrCreatedAfter :: Lens' SearchJobsRequest (Maybe Int64)
2400−sjrCreatedAfter
2401− = lens _sjrCreatedAfter
2402− (\ s a -> s{_sjrCreatedAfter = a})
2403−
2404−-- | Only return jobs which have a matching status.
2405−sjrStatus :: Lens' SearchJobsRequest [SearchJobsRequestStatusItem]
2406−sjrStatus
2407− = lens _sjrStatus (\ s a -> s{_sjrStatus = a}) .
2408− _Default
2409− . _Coerce
1870+statusDetailsItem
1871+ :: StatusDetailsItem
1872+statusDetailsItem = StatusDetailsItem
24101873
2411−-- | Required. Only return jobs which belong to this Google Developers
2412−-- Console project.
2413−sjrProjectNumber :: Lens' SearchJobsRequest (Maybe Int64)
2414−sjrProjectNumber
2415− = lens _sjrProjectNumber
2416− (\ s a -> s{_sjrProjectNumber = a})
2417−
2418−-- | The continuation token which is used to page through large result sets.
2419−-- To get the next page of results, set this parameter to the value of the
2420−-- nextPageToken from the previous response.
2421−sjrPageToken :: Lens' SearchJobsRequest (Maybe Text)
2422−sjrPageToken
2423− = lens _sjrPageToken (\ s a -> s{_sjrPageToken = a})
2424−
2425−-- | Specifies the number of results to return in a single page. Defaults to
2426−-- 128. The maximum value is 256.
2427−sjrPageSize :: Lens' SearchJobsRequest (Maybe Int32)
2428−sjrPageSize
2429− = lens _sjrPageSize (\ s a -> s{_sjrPageSize = a})
2430−
2431−-- | If specified, only jobs created prior to this date, given in
2432−-- milliseconds since Unix epoch, will be returned.
2433−sjrCreatedBefore :: Lens' SearchJobsRequest (Maybe Int64)
2434−sjrCreatedBefore
2435− = lens _sjrCreatedBefore
2436− (\ s a -> s{_sjrCreatedBefore = a})
2437−
2438−instance FromJSON SearchJobsRequest where
1874+instance FromJSON StatusDetailsItem where
24391875 parseJSON
2440− = withObject "SearchJobsRequest"
2441− (\ o ->
2442− SearchJobsRequest <$>
2443− (o .:? "createdAfter") <*>
2444− (o .:? "status" .!= mempty)
2445− <*> (o .:? "projectNumber")
2446− <*> (o .:? "pageToken")
2447− <*> (o .:? "pageSize")
2448− <*> (o .:? "createdBefore"))
1876+ = withObject "StatusDetailsItem"
1877+ (\ o -> pure StatusDetailsItem)
24491878
2450−instance ToJSON SearchJobsRequest where
2451− toJSON SearchJobsRequest{..}
2452− = object
2453− (catMaybes
2454− [("createdAfter" .=) <$> _sjrCreatedAfter,
2455− ("status" .=) <$> _sjrStatus,
2456− ("projectNumber" .=) <$> _sjrProjectNumber,
2457− ("pageToken" .=) <$> _sjrPageToken,
2458− ("pageSize" .=) <$> _sjrPageSize,
2459− ("createdBefore" .=) <$> _sjrCreatedBefore])
1879+instance ToJSON StatusDetailsItem where
1880+ toJSON = const emptyObject
24601881
24611882-- | The call set search response.
24621883--
@@ -2512,180 +1933,41 @@ instance ToJSON SearchCallSetsResponse where
25121933 [("nextPageToken" .=) <$> _scsrNextPageToken,
25131934 ("callSets" .=) <$> _scsrCallSets])
25141935
2515−-- | The job creation request.
2516−--
2517−-- /See:/ 'experimentalCreateJobRequest' smart constructor.
2518−data ExperimentalCreateJobRequest = ExperimentalCreateJobRequest
2519− { _ecjrGcsOutputPath :: !(Maybe Text)
2520− , _ecjrProjectNumber :: !(Maybe Int64)
2521− , _ecjrAlign :: !(Maybe Bool)
2522− , _ecjrSourceURIs :: !(Maybe [Text])
2523− , _ecjrPairedSourceURIs :: !(Maybe [Text])
2524− , _ecjrCallVariants :: !(Maybe Bool)
2525− } deriving (Eq,Show,Data,Typeable,Generic)
2526−
2527−-- | Creates a value of 'ExperimentalCreateJobRequest' with the minimum fields required to make a request.
2528−--
2529−-- Use one of the following lenses to modify other fields as desired:
2530−--
2531−-- * 'ecjrGcsOutputPath'
2532−--
2533−-- * 'ecjrProjectNumber'
2534−--
2535−-- * 'ecjrAlign'
1936+-- | Request message for \`SetIamPolicy\` method.
25361937--
2537−-- * 'ecjrSourceURIs'
2538−--
2539−-- * 'ecjrPairedSourceURIs'
2540−--
2541−-- * 'ecjrCallVariants'
2542−experimentalCreateJobRequest
2543− :: ExperimentalCreateJobRequest
2544−experimentalCreateJobRequest =
2545− ExperimentalCreateJobRequest
2546− { _ecjrGcsOutputPath = Nothing
2547− , _ecjrProjectNumber = Nothing
2548− , _ecjrAlign = Nothing
2549− , _ecjrSourceURIs = Nothing
2550− , _ecjrPairedSourceURIs = Nothing
2551− , _ecjrCallVariants = Nothing
2552− }
2553−
2554−-- | Specifies where to copy the results of certain pipelines. This should be
2555−-- in the form of gs:\/\/bucket\/path.
2556−ecjrGcsOutputPath :: Lens' ExperimentalCreateJobRequest (Maybe Text)
2557−ecjrGcsOutputPath
2558− = lens _ecjrGcsOutputPath
2559− (\ s a -> s{_ecjrGcsOutputPath = a})
2560−
2561−-- | Required. The Google Cloud Project ID with which to associate the
2562−-- request.
2563−ecjrProjectNumber :: Lens' ExperimentalCreateJobRequest (Maybe Int64)
2564−ecjrProjectNumber
2565− = lens _ecjrProjectNumber
2566− (\ s a -> s{_ecjrProjectNumber = a})
2567−
2568−-- | Specifies whether or not to run the alignment pipeline. Either align or
2569−-- callVariants must be set.
2570−ecjrAlign :: Lens' ExperimentalCreateJobRequest (Maybe Bool)
2571−ecjrAlign
2572− = lens _ecjrAlign (\ s a -> s{_ecjrAlign = a})
2573−
2574−-- | A list of Google Cloud Storage URIs of data files to operate upon. These
2575−-- can be .bam, interleaved .fastq, or paired .fastq. If specifying paired
2576−-- .fastq files, the first of each pair of files should be listed here, and
2577−-- the second of each pair should be listed in pairedSourceUris.
2578−ecjrSourceURIs :: Lens' ExperimentalCreateJobRequest [Text]
2579−ecjrSourceURIs
2580− = lens _ecjrSourceURIs
2581− (\ s a -> s{_ecjrSourceURIs = a})
2582− . _Default
2583− . _Coerce
2584−
2585−-- | A list of Google Cloud Storage URIs of paired end .fastq files to
2586−-- operate upon. If specified, this represents the second file of each
2587−-- paired .fastq file. The first file of each pair should be specified in
2588−-- sourceUris.
2589−ecjrPairedSourceURIs :: Lens' ExperimentalCreateJobRequest [Text]
2590−ecjrPairedSourceURIs
2591− = lens _ecjrPairedSourceURIs
2592− (\ s a -> s{_ecjrPairedSourceURIs = a})
2593− . _Default
2594− . _Coerce
2595−
2596−-- | Specifies whether or not to run the variant calling pipeline. Either
2597−-- align or callVariants must be set.
2598−ecjrCallVariants :: Lens' ExperimentalCreateJobRequest (Maybe Bool)
2599−ecjrCallVariants
2600− = lens _ecjrCallVariants
2601− (\ s a -> s{_ecjrCallVariants = a})
2602−
2603−instance FromJSON ExperimentalCreateJobRequest where
2604− parseJSON
2605− = withObject "ExperimentalCreateJobRequest"
2606− (\ o ->
2607− ExperimentalCreateJobRequest <$>
2608− (o .:? "gcsOutputPath") <*> (o .:? "projectNumber")
2609− <*> (o .:? "align")
2610− <*> (o .:? "sourceUris" .!= mempty)
2611− <*> (o .:? "pairedSourceUris" .!= mempty)
2612− <*> (o .:? "callVariants"))
2613−
2614−instance ToJSON ExperimentalCreateJobRequest where
2615− toJSON ExperimentalCreateJobRequest{..}
2616− = object
2617− (catMaybes
2618− [("gcsOutputPath" .=) <$> _ecjrGcsOutputPath,
2619− ("projectNumber" .=) <$> _ecjrProjectNumber,
2620− ("align" .=) <$> _ecjrAlign,
2621− ("sourceUris" .=) <$> _ecjrSourceURIs,
2622− ("pairedSourceUris" .=) <$> _ecjrPairedSourceURIs,
2623− ("callVariants" .=) <$> _ecjrCallVariants])
2624−
2625−-- | A summary representation of the service request that spawned the job.
2626−--
2627−-- /See:/ 'jobRequest' smart constructor.
2628−data JobRequest = JobRequest
2629− { _jrDestination :: !(Maybe [Text])
2630− , _jrSource :: !(Maybe [Text])
2631− , _jrType :: !(Maybe JobRequestType)
1938+-- /See:/ 'setIAMPolicyRequest' smart constructor.
1939+newtype SetIAMPolicyRequest = SetIAMPolicyRequest
1940+ { _siprPolicy :: Maybe Policy
26321941 } deriving (Eq,Show,Data,Typeable,Generic)
26331942
2634−-- | Creates a value of 'JobRequest' with the minimum fields required to make a request.
1943+-- | Creates a value of 'SetIAMPolicyRequest' with the minimum fields required to make a request.
26351944--
26361945-- Use one of the following lenses to modify other fields as desired:
26371946--
2638−-- * 'jrDestination'
2639−--
2640−-- * 'jrSource'
2641−--
2642−-- * 'jrType'
2643−jobRequest
2644− :: JobRequest
2645−jobRequest =
2646− JobRequest
2647− { _jrDestination = Nothing
2648− , _jrSource = Nothing
2649− , _jrType = Nothing
1947+-- * 'siprPolicy'
1948+setIAMPolicyRequest
1949+ :: SetIAMPolicyRequest
1950+setIAMPolicyRequest =
1951+ SetIAMPolicyRequest
1952+ { _siprPolicy = Nothing
26501953 }
26511954
2652−-- | The data destination of the request, for example, a Google BigQuery
2653−-- Table or Dataset ID.
2654−jrDestination :: Lens' JobRequest [Text]
2655−jrDestination
2656− = lens _jrDestination
2657− (\ s a -> s{_jrDestination = a})
2658− . _Default
2659− . _Coerce
2660−
2661−-- | The data source of the request, for example, a Google Cloud Storage
2662−-- object path or Readset ID.
2663−jrSource :: Lens' JobRequest [Text]
2664−jrSource
2665− = lens _jrSource (\ s a -> s{_jrSource = a}) .
2666− _Default
2667− . _Coerce
1955+-- | REQUIRED: The complete policy to be applied to the \`resource\`. The
1956+-- size of the policy is limited to a few 10s of KB. An empty policy is a
1957+-- valid policy but certain Cloud Platform services (such as Projects)
1958+-- might reject them.
1959+siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy)
1960+siprPolicy
1961+ = lens _siprPolicy (\ s a -> s{_siprPolicy = a})
26681962
2669−-- | The original request type.
2670−jrType :: Lens' JobRequest (Maybe JobRequestType)
2671−jrType = lens _jrType (\ s a -> s{_jrType = a})
2672−
2673−instance FromJSON JobRequest where
1963+instance FromJSON SetIAMPolicyRequest where
26741964 parseJSON
2675− = withObject "JobRequest"
2676− (\ o ->
2677− JobRequest <$>
2678− (o .:? "destination" .!= mempty) <*>
2679− (o .:? "source" .!= mempty)
2680− <*> (o .:? "type"))
1965+ = withObject "SetIAMPolicyRequest"
1966+ (\ o -> SetIAMPolicyRequest <$> (o .:? "policy"))
26811967
2682−instance ToJSON JobRequest where
2683− toJSON JobRequest{..}
2684− = object
2685− (catMaybes
2686− [("destination" .=) <$> _jrDestination,
2687− ("source" .=) <$> _jrSource,
2688− ("type" .=) <$> _jrType])
1968+instance ToJSON SetIAMPolicyRequest where
1969+ toJSON SetIAMPolicyRequest{..}
1970+ = object (catMaybes [("policy" .=) <$> _siprPolicy])
26891971
26901972-- | The read search request.
26911973--
@@ -2731,13 +2013,13 @@ searchReadsRequest =
27312013 }
27322014
27332015-- | The start position of the range on the reference, 0-based inclusive. If
2734−-- specified, referenceName must also be specified.
2016+-- specified, \`referenceName\` must also be specified.
27352017srrStart :: Lens' SearchReadsRequest (Maybe Int64)
27362018srrStart = lens _srrStart (\ s a -> s{_srrStart = a})
27372019
27382020-- | The IDs of the read groups within which to search for reads. All
27392021-- specified read groups must belong to the same read group sets. Must
2740−-- specify one of readGroupSetIds or readGroupIds.
2022+-- specify one of \`readGroupSetIds\` or \`readGroupIds\`.
27412023srrReadGroupIds :: Lens' SearchReadsRequest [Text]
27422024srrReadGroupIds
27432025 = lens _srrReadGroupIds
@@ -2745,21 +2027,21 @@ srrReadGroupIds
27452027 . _Default
27462028 . _Coerce
27472029
2748−-- | The reference sequence name, for example chr1, 1, or chrX. If set to *,
2749−-- only unmapped reads are returned.
2030+-- | The reference sequence name, for example \`chr1\`, \`1\`, or \`chrX\`.
2031+-- If set to *, only unmapped reads are returned.
27502032srrReferenceName :: Lens' SearchReadsRequest (Maybe Text)
27512033srrReferenceName
27522034 = lens _srrReferenceName
27532035 (\ s a -> s{_srrReferenceName = a})
27542036
27552037-- | The end position of the range on the reference, 0-based exclusive. If
2756−-- specified, referenceName must also be specified.
2038+-- specified, \`referenceName\` must also be specified.
27572039srrEnd :: Lens' SearchReadsRequest (Maybe Int64)
27582040srrEnd = lens _srrEnd (\ s a -> s{_srrEnd = a})
27592041
27602042-- | The continuation token, which is used to page through large result sets.
27612043-- To get the next page of results, set this parameter to the value of
2762−-- nextPageToken from the previous response.
2044+-- \`nextPageToken\` from the previous response.
27632045srrPageToken :: Lens' SearchReadsRequest (Maybe Text)
27642046srrPageToken
27652047 = lens _srrPageToken (\ s a -> s{_srrPageToken = a})
@@ -2773,7 +2055,7 @@ srrPageSize
27732055-- | The IDs of the read groups sets within which to search for reads. All
27742056-- specified read group sets must be aligned against a common set of
27752057-- reference sequences; this defines the genomic coordinates for the query.
2776−-- Must specify one of readGroupSetIds or readGroupIds.
2058+-- Must specify one of \`readGroupSetIds\` or \`readGroupIds\`.
27772059srrReadGroupSetIds :: Lens' SearchReadsRequest [Text]
27782060srrReadGroupSetIds
27792061 = lens _srrReadGroupSetIds
@@ -2805,7 +2087,32 @@ instance ToJSON SearchReadsRequest where
28052087 ("pageSize" .=) <$> _srrPageSize,
28062088 ("readGroupSetIds" .=) <$> _srrReadGroupSetIds])
28072089
2808−-- | A string which maps to an array of values.
2090+-- | The original request that started the operation. Note that this will be
2091+-- in current version of the API. If the operation was started with v1beta2
2092+-- API and a GetOperation is performed on v1 API, a v1 request will be
2093+-- returned.
2094+--
2095+-- /See:/ 'operationMetadataRequest' smart constructor.
2096+data OperationMetadataRequest =
2097+ OperationMetadataRequest
2098+ deriving (Eq,Show,Data,Typeable,Generic)
2099+
2100+-- | Creates a value of 'OperationMetadataRequest' with the minimum fields required to make a request.
2101+--
2102+operationMetadataRequest
2103+ :: OperationMetadataRequest
2104+operationMetadataRequest = OperationMetadataRequest
2105+
2106+instance FromJSON OperationMetadataRequest where
2107+ parseJSON
2108+ = withObject "OperationMetadataRequest"
2109+ (\ o -> pure OperationMetadataRequest)
2110+
2111+instance ToJSON OperationMetadataRequest where
2112+ toJSON = const emptyObject
2113+
2114+-- | A map of additional variant information. This must be of the form map
2115+-- (string key mapping to a list of string values).
28092116--
28102117-- /See:/ 'variantInfo' smart constructor.
28112118data VariantInfo =
@@ -2825,6 +2132,82 @@ instance FromJSON VariantInfo where
28252132instance ToJSON VariantInfo where
28262133 toJSON = const emptyObject
28272134
2135+--
2136+-- /See:/ 'experiment' smart constructor.
2137+data Experiment = Experiment
2138+ { _eInstrumentModel :: !(Maybe Text)
2139+ , _ePlatformUnit :: !(Maybe Text)
2140+ , _eSequencingCenter :: !(Maybe Text)
2141+ , _eLibraryId :: !(Maybe Text)
2142+ } deriving (Eq,Show,Data,Typeable,Generic)
2143+
2144+-- | Creates a value of 'Experiment' with the minimum fields required to make a request.
2145+--
2146+-- Use one of the following lenses to modify other fields as desired:
2147+--
2148+-- * 'eInstrumentModel'
2149+--
2150+-- * 'ePlatformUnit'
2151+--
2152+-- * 'eSequencingCenter'
2153+--
2154+-- * 'eLibraryId'
2155+experiment
2156+ :: Experiment
2157+experiment =
2158+ Experiment
2159+ { _eInstrumentModel = Nothing
2160+ , _ePlatformUnit = Nothing
2161+ , _eSequencingCenter = Nothing
2162+ , _eLibraryId = Nothing
2163+ }
2164+
2165+-- | The instrument model used as part of this experiment. This maps to
2166+-- sequencing technology in BAM.
2167+eInstrumentModel :: Lens' Experiment (Maybe Text)
2168+eInstrumentModel
2169+ = lens _eInstrumentModel
2170+ (\ s a -> s{_eInstrumentModel = a})
2171+
2172+-- | The platform unit used as part of this experiment e.g.
2173+-- flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to
2174+-- the \'RG PU field in the SAM spec.
2175+ePlatformUnit :: Lens' Experiment (Maybe Text)
2176+ePlatformUnit
2177+ = lens _ePlatformUnit
2178+ (\ s a -> s{_ePlatformUnit = a})
2179+
2180+-- | The sequencing center used as part of this experiment.
2181+eSequencingCenter :: Lens' Experiment (Maybe Text)
2182+eSequencingCenter
2183+ = lens _eSequencingCenter
2184+ (\ s a -> s{_eSequencingCenter = a})
2185+
2186+-- | The library used as part of this experiment. Note: This is not an actual
2187+-- ID within this repository, but rather an identifier for a library which
2188+-- may be meaningful to some external system.
2189+eLibraryId :: Lens' Experiment (Maybe Text)
2190+eLibraryId
2191+ = lens _eLibraryId (\ s a -> s{_eLibraryId = a})
2192+
2193+instance FromJSON Experiment where
2194+ parseJSON
2195+ = withObject "Experiment"
2196+ (\ o ->
2197+ Experiment <$>
2198+ (o .:? "instrumentModel") <*> (o .:? "platformUnit")
2199+ <*> (o .:? "sequencingCenter")
2200+ <*> (o .:? "libraryId"))
2201+
2202+instance ToJSON Experiment where
2203+ toJSON Experiment{..}
2204+ = object
2205+ (catMaybes
2206+ [("instrumentModel" .=) <$> _eInstrumentModel,
2207+ ("platformUnit" .=) <$> _ePlatformUnit,
2208+ ("sequencingCenter" .=) <$> _eSequencingCenter,
2209+ ("libraryId" .=) <$> _eLibraryId])
2210+
28282211-- | The search variant sets request.
28292212--
28302213-- /See:/ 'searchVariantSetsRequest' smart constructor.
@@ -2863,7 +2246,7 @@ svsrDatasetIds
28632246
28642247-- | The continuation token, which is used to page through large result sets.
28652248-- To get the next page of results, set this parameter to the value of
2866−-- nextPageToken from the previous response.
2249+-- \`nextPageToken\` from the previous response.
28672250svsrPageToken :: Lens' SearchVariantSetsRequest (Maybe Text)
28682251svsrPageToken
28692252 = lens _svsrPageToken
@@ -2891,409 +2274,35 @@ instance ToJSON SearchVariantSetsRequest where
28912274 ("pageToken" .=) <$> _svsrPageToken,
28922275 ("pageSize" .=) <$> _svsrPageSize])
28932276
2277+-- | The variant search response.
28942278--
2895−-- /See:/ 'readGroupProgram' smart constructor.
2896−data ReadGroupProgram = ReadGroupProgram
2897− { _rgpPrevProgramId :: !(Maybe Text)
2898− , _rgpName :: !(Maybe Text)
2899− , _rgpVersion :: !(Maybe Text)
2900− , _rgpId :: !(Maybe Text)
2901− , _rgpCommandLine :: !(Maybe Text)
2279+-- /See:/ 'searchVariantsResponse' smart constructor.
2280+data SearchVariantsResponse = SearchVariantsResponse
2281+ { _svrVariants :: !(Maybe [Variant])
2282+ , _svrNextPageToken :: !(Maybe Text)
29022283 } deriving (Eq,Show,Data,Typeable,Generic)
29032284
2904−-- | Creates a value of 'ReadGroupProgram' with the minimum fields required to make a request.
2285+-- | Creates a value of 'SearchVariantsResponse' with the minimum fields required to make a request.
29052286--
29062287-- Use one of the following lenses to modify other fields as desired:
29072288--
2908−-- * 'rgpPrevProgramId'
2909−--
2910−-- * 'rgpName'
2911−--
2912−-- * 'rgpVersion'
2913−--
2914−-- * 'rgpId'
2289+-- * 'svrVariants'
29152290--
2916−-- * 'rgpCommandLine'
2917−readGroupProgram
2918− :: ReadGroupProgram
2919−readGroupProgram =
2920− ReadGroupProgram
2921− { _rgpPrevProgramId = Nothing
2922− , _rgpName = Nothing
2923− , _rgpVersion = Nothing
2924− , _rgpId = Nothing
2925− , _rgpCommandLine = Nothing
2291+-- * 'svrNextPageToken'
2292+searchVariantsResponse
2293+ :: SearchVariantsResponse
2294+searchVariantsResponse =
2295+ SearchVariantsResponse
2296+ { _svrVariants = Nothing
2297+ , _svrNextPageToken = Nothing
29262298 }
29272299
2928−-- | The ID of the program run before this one.
2929−rgpPrevProgramId :: Lens' ReadGroupProgram (Maybe Text)
2930−rgpPrevProgramId
2931− = lens _rgpPrevProgramId
2932− (\ s a -> s{_rgpPrevProgramId = a})
2933−
2934−-- | The name of the program.
2935−rgpName :: Lens' ReadGroupProgram (Maybe Text)
2936−rgpName = lens _rgpName (\ s a -> s{_rgpName = a})
2937−
2938−-- | The version of the program run.
2939−rgpVersion :: Lens' ReadGroupProgram (Maybe Text)
2940−rgpVersion
2941− = lens _rgpVersion (\ s a -> s{_rgpVersion = a})
2942−
2943−-- | The user specified locally unique ID of the program. Used along with
2944−-- prevProgramId to define an ordering between programs.
2945−rgpId :: Lens' ReadGroupProgram (Maybe Text)
2946−rgpId = lens _rgpId (\ s a -> s{_rgpId = a})
2947−
2948−-- | The command line used to run this program.
2949−rgpCommandLine :: Lens' ReadGroupProgram (Maybe Text)
2950−rgpCommandLine
2951− = lens _rgpCommandLine
2952− (\ s a -> s{_rgpCommandLine = a})
2953−
2954−instance FromJSON ReadGroupProgram where
2955− parseJSON
2956− = withObject "ReadGroupProgram"
2957− (\ o ->
2958− ReadGroupProgram <$>
2959− (o .:? "prevProgramId") <*> (o .:? "name") <*>
2960− (o .:? "version")
2961− <*> (o .:? "id")
2962− <*> (o .:? "commandLine"))
2963−
2964−instance ToJSON ReadGroupProgram where
2965− toJSON ReadGroupProgram{..}
2966− = object
2967− (catMaybes
2968− [("prevProgramId" .=) <$> _rgpPrevProgramId,
2969− ("name" .=) <$> _rgpName,
2970− ("version" .=) <$> _rgpVersion, ("id" .=) <$> _rgpId,
2971− ("commandLine" .=) <$> _rgpCommandLine])
2972−
2973−-- | Wrapper message for \`int32\`. The JSON representation for
2974−-- \`Int32Value\` is JSON number.
2975−--
2976−-- /See:/ 'int32Value' smart constructor.
2977−newtype Int32Value = Int32Value
2978− { _ivValue :: Maybe Int32
2979− } deriving (Eq,Show,Data,Typeable,Generic)
2980−
2981−-- | Creates a value of 'Int32Value' with the minimum fields required to make a request.
2982−--
2983−-- Use one of the following lenses to modify other fields as desired:
2984−--
2985−-- * 'ivValue'
2986−int32Value
2987− :: Int32Value
2988−int32Value =
2989− Int32Value
2990− { _ivValue = Nothing
2991− }
2992−
2993−-- | The int32 value.
2994−ivValue :: Lens' Int32Value (Maybe Int32)
2995−ivValue = lens _ivValue (\ s a -> s{_ivValue = a})
2996−
2997−instance FromJSON Int32Value where
2998− parseJSON
2999− = withObject "Int32Value"
3000− (\ o -> Int32Value <$> (o .:? "value"))
3001−
3002−instance ToJSON Int32Value where
3003− toJSON Int32Value{..}
3004− = object (catMaybes [("value" .=) <$> _ivValue])
3005−
3006−-- | A string which maps to an array of values.
3007−--
3008−-- /See:/ 'annotationInfo' smart constructor.
3009−data AnnotationInfo =
3010− AnnotationInfo
3011− deriving (Eq,Show,Data,Typeable,Generic)
3012−
3013−-- | Creates a value of 'AnnotationInfo' with the minimum fields required to make a request.
3014−--
3015−annotationInfo
3016− :: AnnotationInfo
3017−annotationInfo = AnnotationInfo
3018−
3019−instance FromJSON AnnotationInfo where
3020− parseJSON
3021− = withObject "AnnotationInfo"
3022− (\ o -> pure AnnotationInfo)
3023−
3024−instance ToJSON AnnotationInfo where
3025− toJSON = const emptyObject
3026−
3027−-- | The read group set export request.
3028−--
3029−-- /See:/ 'exportReadGroupSetsRequest' smart constructor.
3030−data ExportReadGroupSetsRequest = ExportReadGroupSetsRequest
3031− { _ergsrReferenceNames :: !(Maybe [Text])
3032− , _ergsrProjectNumber :: !(Maybe Int64)
3033− , _ergsrExportURI :: !(Maybe Text)
3034− , _ergsrReadGroupSetIds :: !(Maybe [Text])
3035− } deriving (Eq,Show,Data,Typeable,Generic)
3036−
3037−-- | Creates a value of 'ExportReadGroupSetsRequest' with the minimum fields required to make a request.
3038−--
3039−-- Use one of the following lenses to modify other fields as desired:
3040−--
3041−-- * 'ergsrReferenceNames'
3042−--
3043−-- * 'ergsrProjectNumber'
3044−--
3045−-- * 'ergsrExportURI'
3046−--
3047−-- * 'ergsrReadGroupSetIds'
3048−exportReadGroupSetsRequest
3049− :: ExportReadGroupSetsRequest
3050−exportReadGroupSetsRequest =
3051− ExportReadGroupSetsRequest
3052− { _ergsrReferenceNames = Nothing
3053− , _ergsrProjectNumber = Nothing
3054− , _ergsrExportURI = Nothing
3055− , _ergsrReadGroupSetIds = Nothing
3056− }
3057−
3058−-- | The reference names to export. If this is not specified, all reference
3059−-- sequences, including unmapped reads, are exported. Use * to export only
3060−-- unmapped reads.
3061−ergsrReferenceNames :: Lens' ExportReadGroupSetsRequest [Text]
3062−ergsrReferenceNames
3063− = lens _ergsrReferenceNames
3064− (\ s a -> s{_ergsrReferenceNames = a})
3065− . _Default
3066− . _Coerce
3067−
3068−-- | Required. The Google Developers Console project number that owns this
3069−-- export.
3070−ergsrProjectNumber :: Lens' ExportReadGroupSetsRequest (Maybe Int64)
3071−ergsrProjectNumber
3072− = lens _ergsrProjectNumber
3073− (\ s a -> s{_ergsrProjectNumber = a})
3074−
3075−-- | Required. A Google Cloud Storage URI for the exported BAM file. The
3076−-- currently authenticated user must have write access to the new file. An
3077−-- error will be returned if the URI already contains data.
3078−ergsrExportURI :: Lens' ExportReadGroupSetsRequest (Maybe Text)
3079−ergsrExportURI
3080− = lens _ergsrExportURI
3081− (\ s a -> s{_ergsrExportURI = a})
3082−
3083−-- | Required. The IDs of the read group sets to export.
3084−ergsrReadGroupSetIds :: Lens' ExportReadGroupSetsRequest [Text]
3085−ergsrReadGroupSetIds
3086− = lens _ergsrReadGroupSetIds
3087− (\ s a -> s{_ergsrReadGroupSetIds = a})
3088− . _Default
3089− . _Coerce
3090−
3091−instance FromJSON ExportReadGroupSetsRequest where
3092− parseJSON
3093− = withObject "ExportReadGroupSetsRequest"
3094− (\ o ->
3095− ExportReadGroupSetsRequest <$>
3096− (o .:? "referenceNames" .!= mempty) <*>
3097− (o .:? "projectNumber")
3098− <*> (o .:? "exportUri")
3099− <*> (o .:? "readGroupSetIds" .!= mempty))
3100−
3101−instance ToJSON ExportReadGroupSetsRequest where
3102− toJSON ExportReadGroupSetsRequest{..}
3103− = object
3104− (catMaybes
3105− [("referenceNames" .=) <$> _ergsrReferenceNames,
3106− ("projectNumber" .=) <$> _ergsrProjectNumber,
3107− ("exportUri" .=) <$> _ergsrExportURI,
3108− ("readGroupSetIds" .=) <$> _ergsrReadGroupSetIds])
3109−
3110−--
3111−-- /See:/ 'searchAnnotationsResponse' smart constructor.
3112−data SearchAnnotationsResponse = SearchAnnotationsResponse
3113− { _sarAnnotations :: !(Maybe [Annotation])
3114− , _sarNextPageToken :: !(Maybe Text)
3115− } deriving (Eq,Show,Data,Typeable,Generic)
3116−
3117−-- | Creates a value of 'SearchAnnotationsResponse' with the minimum fields required to make a request.
3118−--
3119−-- Use one of the following lenses to modify other fields as desired:
3120−--
3121−-- * 'sarAnnotations'
3122−--
3123−-- * 'sarNextPageToken'
3124−searchAnnotationsResponse
3125− :: SearchAnnotationsResponse
3126−searchAnnotationsResponse =
3127− SearchAnnotationsResponse
3128− { _sarAnnotations = Nothing
3129− , _sarNextPageToken = Nothing
3130− }
3131−
3132−-- | The matching annotations.
3133−sarAnnotations :: Lens' SearchAnnotationsResponse [Annotation]
3134−sarAnnotations
3135− = lens _sarAnnotations
3136− (\ s a -> s{_sarAnnotations = a})
3137− . _Default
3138− . _Coerce
3139−
3140−-- | The continuation token, which is used to page through large result sets.
3141−-- Provide this value in a subsequent request to return the next page of
3142−-- results. This field will be empty if there aren\'t any additional
3143−-- results.
3144−sarNextPageToken :: Lens' SearchAnnotationsResponse (Maybe Text)
3145−sarNextPageToken
3146− = lens _sarNextPageToken
3147− (\ s a -> s{_sarNextPageToken = a})
3148−
3149−instance FromJSON SearchAnnotationsResponse where
3150− parseJSON
3151− = withObject "SearchAnnotationsResponse"
3152− (\ o ->
3153− SearchAnnotationsResponse <$>
3154− (o .:? "annotations" .!= mempty) <*>
3155− (o .:? "nextPageToken"))
3156−
3157−instance ToJSON SearchAnnotationsResponse where
3158− toJSON SearchAnnotationsResponse{..}
3159− = object
3160− (catMaybes
3161− [("annotations" .=) <$> _sarAnnotations,
3162− ("nextPageToken" .=) <$> _sarNextPageToken])
3163−
3164−--
3165−-- /See:/ 'searchAnnotationSetsRequest' smart constructor.
3166−data SearchAnnotationSetsRequest = SearchAnnotationSetsRequest
3167− { _sasrReferenceSetId :: !(Maybe Text)
3168− , _sasrTypes :: !(Maybe [SearchAnnotationSetsRequestTypesItem])
3169− , _sasrDatasetIds :: !(Maybe [Text])
3170− , _sasrName :: !(Maybe Text)
3171− , _sasrPageToken :: !(Maybe Text)
3172− , _sasrPageSize :: !(Maybe Int32)
3173− } deriving (Eq,Show,Data,Typeable,Generic)
3174−
3175−-- | Creates a value of 'SearchAnnotationSetsRequest' with the minimum fields required to make a request.
3176−--
3177−-- Use one of the following lenses to modify other fields as desired:
3178−--
3179−-- * 'sasrReferenceSetId'
3180−--
3181−-- * 'sasrTypes'
3182−--
3183−-- * 'sasrDatasetIds'
3184−--
3185−-- * 'sasrName'
3186−--
3187−-- * 'sasrPageToken'
3188−--
3189−-- * 'sasrPageSize'
3190−searchAnnotationSetsRequest
3191− :: SearchAnnotationSetsRequest
3192−searchAnnotationSetsRequest =
3193− SearchAnnotationSetsRequest
3194− { _sasrReferenceSetId = Nothing
3195− , _sasrTypes = Nothing
3196− , _sasrDatasetIds = Nothing
3197− , _sasrName = Nothing
3198− , _sasrPageToken = Nothing
3199− , _sasrPageSize = Nothing
3200− }
3201−
3202−-- | If specified, only annotation sets associated with the given reference
3203−-- set are returned.
3204−sasrReferenceSetId :: Lens' SearchAnnotationSetsRequest (Maybe Text)
3205−sasrReferenceSetId
3206− = lens _sasrReferenceSetId
3207− (\ s a -> s{_sasrReferenceSetId = a})
3208−
3209−-- | If specified, only annotation sets that have any of these types are
3210−-- returned.
3211−sasrTypes :: Lens' SearchAnnotationSetsRequest [SearchAnnotationSetsRequestTypesItem]
3212−sasrTypes
3213− = lens _sasrTypes (\ s a -> s{_sasrTypes = a}) .
3214− _Default
3215− . _Coerce
3216−
3217−-- | The dataset IDs to search within. Caller must have READ access to these
3218−-- datasets.
3219−sasrDatasetIds :: Lens' SearchAnnotationSetsRequest [Text]
3220−sasrDatasetIds
3221− = lens _sasrDatasetIds
3222− (\ s a -> s{_sasrDatasetIds = a})
3223− . _Default
3224− . _Coerce
3225−
3226−-- | Only return annotations sets for which a substring of the name matches
3227−-- this string (case insensitive).
3228−sasrName :: Lens' SearchAnnotationSetsRequest (Maybe Text)
3229−sasrName = lens _sasrName (\ s a -> s{_sasrName = a})
3230−
3231−-- | The continuation token, which is used to page through large result sets.
3232−-- To get the next page of results, set this parameter to the value of
3233−-- nextPageToken from the previous response.
3234−sasrPageToken :: Lens' SearchAnnotationSetsRequest (Maybe Text)
3235−sasrPageToken
3236− = lens _sasrPageToken
3237− (\ s a -> s{_sasrPageToken = a})
3238−
3239−-- | Specifies number of results to return in a single page. If unspecified,
3240−-- it will default to 128. The maximum value is 1024.
3241−sasrPageSize :: Lens' SearchAnnotationSetsRequest (Maybe Int32)
3242−sasrPageSize
3243− = lens _sasrPageSize (\ s a -> s{_sasrPageSize = a})
3244−
3245−instance FromJSON SearchAnnotationSetsRequest where
3246− parseJSON
3247− = withObject "SearchAnnotationSetsRequest"
3248− (\ o ->
3249− SearchAnnotationSetsRequest <$>
3250− (o .:? "referenceSetId") <*>
3251− (o .:? "types" .!= mempty)
3252− <*> (o .:? "datasetIds" .!= mempty)
3253− <*> (o .:? "name")
3254− <*> (o .:? "pageToken")
3255− <*> (o .:? "pageSize"))
3256−
3257−instance ToJSON SearchAnnotationSetsRequest where
3258− toJSON SearchAnnotationSetsRequest{..}
3259− = object
3260− (catMaybes
3261− [("referenceSetId" .=) <$> _sasrReferenceSetId,
3262− ("types" .=) <$> _sasrTypes,
3263− ("datasetIds" .=) <$> _sasrDatasetIds,
3264− ("name" .=) <$> _sasrName,
3265− ("pageToken" .=) <$> _sasrPageToken,
3266− ("pageSize" .=) <$> _sasrPageSize])
3267−
3268−-- | The variant search response.
3269−--
3270−-- /See:/ 'searchVariantsResponse' smart constructor.
3271−data SearchVariantsResponse = SearchVariantsResponse
3272− { _svrVariants :: !(Maybe [Variant])
3273− , _svrNextPageToken :: !(Maybe Text)
3274− } deriving (Eq,Show,Data,Typeable,Generic)
3275−
3276−-- | Creates a value of 'SearchVariantsResponse' with the minimum fields required to make a request.
3277−--
3278−-- Use one of the following lenses to modify other fields as desired:
3279−--
3280−-- * 'svrVariants'
3281−--
3282−-- * 'svrNextPageToken'
3283−searchVariantsResponse
3284− :: SearchVariantsResponse
3285−searchVariantsResponse =
3286− SearchVariantsResponse
3287− { _svrVariants = Nothing
3288− , _svrNextPageToken = Nothing
3289− }
3290−
3291−-- | The list of matching Variants.
3292−svrVariants :: Lens' SearchVariantsResponse [Variant]
3293−svrVariants
3294− = lens _svrVariants (\ s a -> s{_svrVariants = a}) .
3295− _Default
3296− . _Coerce
2300+-- | The list of matching Variants.
2301+svrVariants :: Lens' SearchVariantsResponse [Variant]
2302+svrVariants
2303+ = lens _svrVariants (\ s a -> s{_svrVariants = a}) .
2304+ _Default
2305+ . _Coerce
32972306
32982307-- | The continuation token, which is used to page through large result sets.
32992308-- Provide this value in a subsequent request to return the next page of
@@ -3319,40 +2328,6 @@ instance ToJSON SearchVariantsResponse where
33192328 [("variants" .=) <$> _svrVariants,
33202329 ("nextPageToken" .=) <$> _svrNextPageToken])
33212330
3322−-- | The job creation response.
3323−--
3324−-- /See:/ 'experimentalCreateJobResponse' smart constructor.
3325−newtype ExperimentalCreateJobResponse = ExperimentalCreateJobResponse
3326− { _ecjrJobId :: Maybe Text
3327− } deriving (Eq,Show,Data,Typeable,Generic)
3328−
3329−-- | Creates a value of 'ExperimentalCreateJobResponse' with the minimum fields required to make a request.
3330−--
3331−-- Use one of the following lenses to modify other fields as desired:
3332−--
3333−-- * 'ecjrJobId'
3334−experimentalCreateJobResponse
3335− :: ExperimentalCreateJobResponse
3336−experimentalCreateJobResponse =
3337− ExperimentalCreateJobResponse
3338− { _ecjrJobId = Nothing
3339− }
3340−
3341−-- | A job ID that can be used to get status information.
3342−ecjrJobId :: Lens' ExperimentalCreateJobResponse (Maybe Text)
3343−ecjrJobId
3344− = lens _ecjrJobId (\ s a -> s{_ecjrJobId = a})
3345−
3346−instance FromJSON ExperimentalCreateJobResponse where
3347− parseJSON
3348− = withObject "ExperimentalCreateJobResponse"
3349− (\ o ->
3350− ExperimentalCreateJobResponse <$> (o .:? "jobId"))
3351−
3352−instance ToJSON ExperimentalCreateJobResponse where
3353− toJSON ExperimentalCreateJobResponse{..}
3354− = object (catMaybes [("jobId" .=) <$> _ecjrJobId])
3355−
33562331-- | The call set search request.
33572332--
33582333-- /See:/ 'searchCallSetsRequest' smart constructor.
@@ -3391,7 +2366,7 @@ scsrName = lens _scsrName (\ s a -> s{_scsrName = a})
33912366
33922367-- | The continuation token, which is used to page through large result sets.
33932368-- To get the next page of results, set this parameter to the value of
3394−-- nextPageToken from the previous response.
2369+-- \`nextPageToken\` from the previous response.
33952370scsrPageToken :: Lens' SearchCallSetsRequest (Maybe Text)
33962371scsrPageToken
33972372 = lens _scsrPageToken
@@ -3487,83 +2462,83 @@ instance ToJSON SearchReadsResponse where
34872462 [("nextPageToken" .=) <$> _sNextPageToken,
34882463 ("alignments" .=) <$> _sAlignments])
34892464
3490−-- | Describes a paired-end FASTQ file source for alignment.
34912465--
3492−-- /See:/ 'pairedFastqSource' smart constructor.
3493−data PairedFastqSource = PairedFastqSource
3494− { _pfsFirstSourceURIs :: !(Maybe [Text])
3495− , _pfsMetadata :: !(Maybe FastqMetadata)
3496− , _pfsSecondSourceURIs :: !(Maybe [Text])
2466+-- /See:/ 'program' smart constructor.
2467+data Program = Program
2468+ { _pPrevProgramId :: !(Maybe Text)
2469+ , _pName :: !(Maybe Text)
2470+ , _pVersion :: !(Maybe Text)
2471+ , _pId :: !(Maybe Text)
2472+ , _pCommandLine :: !(Maybe Text)
34972473 } deriving (Eq,Show,Data,Typeable,Generic)
34982474
3499−-- | Creates a value of 'PairedFastqSource' with the minimum fields required to make a request.
2475+-- | Creates a value of 'Program' with the minimum fields required to make a request.
35002476--
35012477-- Use one of the following lenses to modify other fields as desired:
35022478--
3503−-- * 'pfsFirstSourceURIs'
2479+-- * 'pPrevProgramId'
35042480--
3505−-- * 'pfsMetadata'
2481+-- * 'pName'
35062482--
3507−-- * 'pfsSecondSourceURIs'
3508−pairedFastqSource
3509− :: PairedFastqSource
3510−pairedFastqSource =
3511− PairedFastqSource
3512− { _pfsFirstSourceURIs = Nothing
3513− , _pfsMetadata = Nothing
3514− , _pfsSecondSourceURIs = Nothing
2483+-- * 'pVersion'
2484+--
2485+-- * 'pId'
2486+--
2487+-- * 'pCommandLine'
2488+program
2489+ :: Program
2490+program =
2491+ Program
2492+ { _pPrevProgramId = Nothing
2493+ , _pName = Nothing
2494+ , _pVersion = Nothing
2495+ , _pId = Nothing
2496+ , _pCommandLine = Nothing
35152497 }
35162498
3517−-- | A list of URIs pointing at paired end FASTQ files in Google Cloud
3518−-- Storage which will be aligned. The first of each paired file should be
3519−-- specified here, in an order that matches the second of each paired file
3520−-- specified in secondSourceUris. For example: firstSourceUris:
3521−-- [file1_1.fq, file2_1.fq], secondSourceUris: [file1_2.fq, file2_2.fq].
3522−-- The caller must have READ permissions for these files.
3523−pfsFirstSourceURIs :: Lens' PairedFastqSource [Text]
3524−pfsFirstSourceURIs
3525− = lens _pfsFirstSourceURIs
3526− (\ s a -> s{_pfsFirstSourceURIs = a})
3527− . _Default
3528− . _Coerce
2499+-- | The ID of the program run before this one.
2500+pPrevProgramId :: Lens' Program (Maybe Text)
2501+pPrevProgramId
2502+ = lens _pPrevProgramId
2503+ (\ s a -> s{_pPrevProgramId = a})
35292504
3530−-- | Optionally specifies the metadata to be associated with the final
3531−-- aligned read group set.
3532−pfsMetadata :: Lens' PairedFastqSource (Maybe FastqMetadata)
3533−pfsMetadata
3534− = lens _pfsMetadata (\ s a -> s{_pfsMetadata = a})
3535−
3536−-- | A list of URIs pointing at paired end FASTQ files in Google Cloud
3537−-- Storage which will be aligned. The second of each paired file should be
3538−-- specified here, in an order that matches the first of each paired file
3539−-- specified in firstSourceUris. For example: firstSourceUris: [file1_1.fq,
3540−-- file2_1.fq], secondSourceUris: [file1_2.fq, file2_2.fq]. The caller must
3541−-- have READ permissions for these files.
3542−pfsSecondSourceURIs :: Lens' PairedFastqSource [Text]
3543−pfsSecondSourceURIs
3544− = lens _pfsSecondSourceURIs
3545− (\ s a -> s{_pfsSecondSourceURIs = a})
3546− . _Default
3547− . _Coerce
2505+-- | The name of the program.
2506+pName :: Lens' Program (Maybe Text)
2507+pName = lens _pName (\ s a -> s{_pName = a})
2508+
2509+-- | The version of the program run.
2510+pVersion :: Lens' Program (Maybe Text)
2511+pVersion = lens _pVersion (\ s a -> s{_pVersion = a})
2512+
2513+-- | The user specified locally unique ID of the program. Used along with
2514+-- \`prevProgramId\` to define an ordering between programs.
2515+pId :: Lens' Program (Maybe Text)
2516+pId = lens _pId (\ s a -> s{_pId = a})
35482517
3549−instance FromJSON PairedFastqSource where
2518+-- | The command line used to run this program.
2519+pCommandLine :: Lens' Program (Maybe Text)
2520+pCommandLine
2521+ = lens _pCommandLine (\ s a -> s{_pCommandLine = a})
2522+
2523+instance FromJSON Program where
35502524 parseJSON
3551− = withObject "PairedFastqSource"
2525+ = withObject "Program"
35522526 (\ o ->
3553− PairedFastqSource <$>
3554− (o .:? "firstSourceUris" .!= mempty) <*>
3555− (o .:? "metadata")
3556− <*> (o .:? "secondSourceUris" .!= mempty))
2527+ Program <$>
2528+ (o .:? "prevProgramId") <*> (o .:? "name") <*>
2529+ (o .:? "version")
2530+ <*> (o .:? "id")
2531+ <*> (o .:? "commandLine"))
35572532
3558−instance ToJSON PairedFastqSource where
3559− toJSON PairedFastqSource{..}
2533+instance ToJSON Program where
2534+ toJSON Program{..}
35602535 = object
35612536 (catMaybes
3562− [("firstSourceUris" .=) <$> _pfsFirstSourceURIs,
3563− ("metadata" .=) <$> _pfsMetadata,
3564− ("secondSourceUris" .=) <$> _pfsSecondSourceURIs])
2537+ [("prevProgramId" .=) <$> _pPrevProgramId,
2538+ ("name" .=) <$> _pName, ("version" .=) <$> _pVersion,
2539+ ("id" .=) <$> _pId,
2540+ ("commandLine" .=) <$> _pCommandLine])
35652541
3566−-- |
35672542--
35682543-- /See:/ 'searchReferencesRequest' smart constructor.
35692544data SearchReferencesRequest = SearchReferencesRequest
@@ -3604,8 +2579,8 @@ sReferenceSetId
36042579 = lens _sReferenceSetId
36052580 (\ s a -> s{_sReferenceSetId = a})
36062581
3607−-- | If present, return references for which the md5checksum matches. See
3608−-- Reference.md5checksum for construction details.
2582+-- | If present, return references for which the \`md5checksum\` matches. See
2583+-- \`Reference.md5checksum\` for construction details.
36092584sMD5checksums :: Lens' SearchReferencesRequest [Text]
36102585sMD5checksums
36112586 = lens _sMD5checksums
@@ -3614,9 +2589,9 @@ sMD5checksums
36142589 . _Coerce
36152590
36162591-- | If present, return references for which the accession matches this
3617−-- string. Best to give a version number, for example GCF_000001405.26. If
3618−-- only the main accession number is given then all records with that main
3619−-- accession will be returned, whichever version. Note that different
2592+-- string. Best to give a version number, for example \`GCF_000001405.26\`.
2593+-- If only the main accession number is given then all records with that
2594+-- main accession will be returned, whichever version. Note that different
36202595-- versions will have different sequences.
36212596sAccessions :: Lens' SearchReferencesRequest [Text]
36222597sAccessions
@@ -3626,7 +2601,7 @@ sAccessions
36262601
36272602-- | The continuation token, which is used to page through large result sets.
36282603-- To get the next page of results, set this parameter to the value of
3629−-- nextPageToken from the previous response.
2604+-- \`nextPageToken\` from the previous response.
36302605sPageToken :: Lens' SearchReferencesRequest (Maybe Text)
36312606sPageToken
36322607 = lens _sPageToken (\ s a -> s{_sPageToken = a})
@@ -3711,7 +2686,7 @@ instance ToJSON SearchReferenceSetsResponse where
37112686 [("nextPageToken" .=) <$> _srsrNextPageToken,
37122687 ("referenceSets" .=) <$> _srsrReferenceSets])
37132688
3714−-- | A 0-based half-open genomic coordinate range over a reference sequence.
2689+-- | A 0-based half-open genomic coordinate range for search requests.
37152690--
37162691-- /See:/ 'range' smart constructor.
37172692data Range = Range
@@ -3738,19 +2713,17 @@ range =
37382713 , _rEnd = Nothing
37392714 }
37402715
3741−-- | The start position of the range on the reference, 0-based inclusive. If
3742−-- specified, referenceName must also be specified.
2716+-- | The start position of the range on the reference, 0-based inclusive.
37432717rStart :: Lens' Range (Maybe Int64)
37442718rStart = lens _rStart (\ s a -> s{_rStart = a})
37452719
3746−-- | The reference sequence name, for example chr1, 1, or chrX.
2720+-- | The reference sequence name, for example \`chr1\`, \`1\`, or \`chrX\`.
37472721rReferenceName :: Lens' Range (Maybe Text)
37482722rReferenceName
37492723 = lens _rReferenceName
37502724 (\ s a -> s{_rReferenceName = a})
37512725
3752−-- | The end position of the range on the reference, 0-based exclusive. If
3753−-- specified, referenceName must also be specified.
2726+-- | The end position of the range on the reference, 0-based exclusive.
37542727rEnd :: Lens' Range (Maybe Int64)
37552728rEnd = lens _rEnd (\ s a -> s{_rEnd = a})
37562729
@@ -3773,8 +2746,8 @@ instance ToJSON Range where
37732746-- | A read group set is a logical collection of read groups, which are
37742747-- collections of reads produced by a sequencer. A read group set typically
37752748-- models reads corresponding to one sample, sequenced one way, and aligned
3776−-- one way. - A read group set belongs to one dataset. - A read group
3777−-- belongs to one read group set. - A read belongs to one read group.
2749+-- one way. * A read group set belongs to one dataset. * A read group
2750+-- belongs to one read group set. * A read belongs to one read group.
37782751--
37792752-- /See:/ 'readGroupSet' smart constructor.
37802753data ReadGroupSet = ReadGroupSet
@@ -3833,11 +2806,11 @@ rgsDatasetId :: Lens' ReadGroupSet (Maybe Text)
38332806rgsDatasetId
38342807 = lens _rgsDatasetId (\ s a -> s{_rgsDatasetId = a})
38352808
3836−-- | The read group set ID.
2809+-- | The server-generated read group set ID, unique for all read group sets.
38372810rgsId :: Lens' ReadGroupSet (Maybe Text)
38382811rgsId = lens _rgsId (\ s a -> s{_rgsId = a})
38392812
3840−-- | A string which maps to an array of values.
2813+-- | A map of additional read group set information.
38412814rgsInfo :: Lens' ReadGroupSet (Maybe ReadGroupSetInfo)
38422815rgsInfo = lens _rgsInfo (\ s a -> s{_rgsInfo = a})
38432816
@@ -3879,232 +2852,113 @@ instance ToJSON ReadGroupSet where
38792852 ("readGroups" .=) <$> _rgsReadGroups,
38802853 ("filename" .=) <$> _rgsFilename])
38812854
3882−-- | A Job represents an ongoing process that can be monitored for status
3883−-- information.
3884−--
3885−-- /See:/ 'job' smart constructor.
3886−data Job = Job
3887− { _jDetailedStatus :: !(Maybe Text)
3888− , _jStatus :: !(Maybe JobStatus)
3889− , _jCreated :: !(Maybe Int64)
3890− , _jProjectNumber :: !(Maybe Int64)
3891− , _jWarnings :: !(Maybe [Text])
3892− , _jImportedIds :: !(Maybe [Text])
3893− , _jId :: !(Maybe Text)
3894− , _jErrors :: !(Maybe [Text])
3895− , _jRequest :: !(Maybe JobRequest)
2855+-- | The read group set export request.
2856+--
2857+-- /See:/ 'exportReadGroupSetRequest' smart constructor.
2858+data ExportReadGroupSetRequest = ExportReadGroupSetRequest
2859+ { _ergsrReferenceNames :: !(Maybe [Text])
2860+ , _ergsrExportURI :: !(Maybe Text)
2861+ , _ergsrProjectId :: !(Maybe Text)
38962862 } deriving (Eq,Show,Data,Typeable,Generic)
38972863
3898−-- | Creates a value of 'Job' with the minimum fields required to make a request.
2864+-- | Creates a value of 'ExportReadGroupSetRequest' with the minimum fields required to make a request.
38992865--
39002866-- Use one of the following lenses to modify other fields as desired:
39012867--
3902−-- * 'jDetailedStatus'
3903−--
3904−-- * 'jStatus'
3905−--
3906−-- * 'jCreated'
3907−--
3908−-- * 'jProjectNumber'
3909−--
3910−-- * 'jWarnings'
3911−--
3912−-- * 'jImportedIds'
3913−--
3914−-- * 'jId'
2868+-- * 'ergsrReferenceNames'
39152869--
3916−-- * 'jErrors'
2870+-- * 'ergsrExportURI'
39172871--
3918−-- * 'jRequest'
3919−job
3920− :: Job
3921−job =
3922− Job
3923− { _jDetailedStatus = Nothing
3924− , _jStatus = Nothing
3925− , _jCreated = Nothing
3926− , _jProjectNumber = Nothing
3927− , _jWarnings = Nothing
3928− , _jImportedIds = Nothing
3929− , _jId = Nothing
3930− , _jErrors = Nothing
3931− , _jRequest = Nothing
2872+-- * 'ergsrProjectId'
2873+exportReadGroupSetRequest
2874+ :: ExportReadGroupSetRequest
2875+exportReadGroupSetRequest =
2876+ ExportReadGroupSetRequest
2877+ { _ergsrReferenceNames = Nothing
2878+ , _ergsrExportURI = Nothing
2879+ , _ergsrProjectId = Nothing
39322880 }
39332881
3934−-- | A more detailed description of this job\'s current status.
3935−jDetailedStatus :: Lens' Job (Maybe Text)
3936−jDetailedStatus
3937− = lens _jDetailedStatus
3938− (\ s a -> s{_jDetailedStatus = a})
3939−
3940−-- | The status of this job.
3941−jStatus :: Lens' Job (Maybe JobStatus)
3942−jStatus = lens _jStatus (\ s a -> s{_jStatus = a})
3943−
3944−-- | The date this job was created, in milliseconds from the epoch.
3945−jCreated :: Lens' Job (Maybe Int64)
3946−jCreated = lens _jCreated (\ s a -> s{_jCreated = a})
3947−
3948−-- | The Google Developers Console project number to which this job belongs.
3949−jProjectNumber :: Lens' Job (Maybe Int64)
3950−jProjectNumber
3951− = lens _jProjectNumber
3952− (\ s a -> s{_jProjectNumber = a})
3953−
3954−-- | Any warnings that occurred during processing.
3955−jWarnings :: Lens' Job [Text]
3956−jWarnings
3957− = lens _jWarnings (\ s a -> s{_jWarnings = a}) .
3958− _Default
3959− . _Coerce
3960−
3961−-- | If this Job represents an import, this field will contain the IDs of the
3962−-- objects that were successfully imported.
3963−jImportedIds :: Lens' Job [Text]
3964−jImportedIds
3965− = lens _jImportedIds (\ s a -> s{_jImportedIds = a})
2882+-- | The reference names to export. If this is not specified, all reference
2883+-- sequences, including unmapped reads, are exported. Use \`*\` to export
2884+-- only unmapped reads.
2885+ergsrReferenceNames :: Lens' ExportReadGroupSetRequest [Text]
2886+ergsrReferenceNames
2887+ = lens _ergsrReferenceNames
2888+ (\ s a -> s{_ergsrReferenceNames = a})
39662889 . _Default
39672890 . _Coerce
39682891
3969−-- | The job ID.
3970−jId :: Lens' Job (Maybe Text)
3971−jId = lens _jId (\ s a -> s{_jId = a})
3972−
3973−-- | Any errors that occurred during processing.
3974−jErrors :: Lens' Job [Text]
3975−jErrors
3976− = lens _jErrors (\ s a -> s{_jErrors = a}) . _Default
3977− . _Coerce
2892+-- | Required. A Google Cloud Storage URI for the exported BAM file. The
2893+-- currently authenticated user must have write access to the new file. An
2894+-- error will be returned if the URI already contains data.
2895+ergsrExportURI :: Lens' ExportReadGroupSetRequest (Maybe Text)
2896+ergsrExportURI
2897+ = lens _ergsrExportURI
2898+ (\ s a -> s{_ergsrExportURI = a})
39782899
3979−-- | A summarized representation of the original service request.
3980−jRequest :: Lens' Job (Maybe JobRequest)
3981−jRequest = lens _jRequest (\ s a -> s{_jRequest = a})
2900+-- | Required. The Google Developers Console project ID that owns this
2901+-- export.
2902+ergsrProjectId :: Lens' ExportReadGroupSetRequest (Maybe Text)
2903+ergsrProjectId
2904+ = lens _ergsrProjectId
2905+ (\ s a -> s{_ergsrProjectId = a})
39822906
3983−instance FromJSON Job where
2907+instance FromJSON ExportReadGroupSetRequest where
39842908 parseJSON
3985− = withObject "Job"
2909+ = withObject "ExportReadGroupSetRequest"
39862910 (\ o ->
3987− Job <$>
3988− (o .:? "detailedStatus") <*> (o .:? "status") <*>
3989− (o .:? "created")
3990− <*> (o .:? "projectNumber")
3991− <*> (o .:? "warnings" .!= mempty)
3992− <*> (o .:? "importedIds" .!= mempty)
3993− <*> (o .:? "id")
3994− <*> (o .:? "errors" .!= mempty)
3995− <*> (o .:? "request"))
2911+ ExportReadGroupSetRequest <$>
2912+ (o .:? "referenceNames" .!= mempty) <*>
2913+ (o .:? "exportUri")
2914+ <*> (o .:? "projectId"))
39962915
3997−instance ToJSON Job where
3998− toJSON Job{..}
2916+instance ToJSON ExportReadGroupSetRequest where
2917+ toJSON ExportReadGroupSetRequest{..}
39992918 = object
40002919 (catMaybes
4001− [("detailedStatus" .=) <$> _jDetailedStatus,
4002− ("status" .=) <$> _jStatus,
4003− ("created" .=) <$> _jCreated,
4004− ("projectNumber" .=) <$> _jProjectNumber,
4005− ("warnings" .=) <$> _jWarnings,
4006− ("importedIds" .=) <$> _jImportedIds,
4007− ("id" .=) <$> _jId, ("errors" .=) <$> _jErrors,
4008− ("request" .=) <$> _jRequest])
4009−
4010−-- | The variant data export response.
4011−--
4012−-- /See:/ 'exportVariantSetResponse' smart constructor.
4013−newtype ExportVariantSetResponse = ExportVariantSetResponse
4014− { _evsrJobId :: Maybe Text
4015− } deriving (Eq,Show,Data,Typeable,Generic)
4016−
4017−-- | Creates a value of 'ExportVariantSetResponse' with the minimum fields required to make a request.
4018−--
4019−-- Use one of the following lenses to modify other fields as desired:
4020−--
4021−-- * 'evsrJobId'
4022−exportVariantSetResponse
4023− :: ExportVariantSetResponse
4024−exportVariantSetResponse =
4025− ExportVariantSetResponse
4026− { _evsrJobId = Nothing
4027− }
4028−
4029−-- | A job ID that can be used to get status information.
4030−evsrJobId :: Lens' ExportVariantSetResponse (Maybe Text)
4031−evsrJobId
4032− = lens _evsrJobId (\ s a -> s{_evsrJobId = a})
4033−
4034−instance FromJSON ExportVariantSetResponse where
4035− parseJSON
4036− = withObject "ExportVariantSetResponse"
4037− (\ o -> ExportVariantSetResponse <$> (o .:? "jobId"))
4038−
4039−instance ToJSON ExportVariantSetResponse where
4040− toJSON ExportVariantSetResponse{..}
4041− = object (catMaybes [("jobId" .=) <$> _evsrJobId])
4042−
4043−-- | The read group set align response.
4044−--
4045−-- /See:/ 'alignReadGroupSetsResponse' smart constructor.
4046−newtype AlignReadGroupSetsResponse = AlignReadGroupSetsResponse
4047− { _argsrJobId :: Maybe Text
4048− } deriving (Eq,Show,Data,Typeable,Generic)
4049−
4050−-- | Creates a value of 'AlignReadGroupSetsResponse' with the minimum fields required to make a request.
4051−--
4052−-- Use one of the following lenses to modify other fields as desired:
4053−--
4054−-- * 'argsrJobId'
4055−alignReadGroupSetsResponse
4056− :: AlignReadGroupSetsResponse
4057−alignReadGroupSetsResponse =
4058− AlignReadGroupSetsResponse
4059− { _argsrJobId = Nothing
4060− }
4061−
4062−-- | A job ID that can be used to get status information.
4063−argsrJobId :: Lens' AlignReadGroupSetsResponse (Maybe Text)
4064−argsrJobId
4065− = lens _argsrJobId (\ s a -> s{_argsrJobId = a})
4066−
4067−instance FromJSON AlignReadGroupSetsResponse where
4068− parseJSON
4069− = withObject "AlignReadGroupSetsResponse"
4070− (\ o ->
4071− AlignReadGroupSetsResponse <$> (o .:? "jobId"))
4072−
4073−instance ToJSON AlignReadGroupSetsResponse where
4074− toJSON AlignReadGroupSetsResponse{..}
4075− = object (catMaybes [("jobId" .=) <$> _argsrJobId])
2920+ [("referenceNames" .=) <$> _ergsrReferenceNames,
2921+ ("exportUri" .=) <$> _ergsrExportURI,
2922+ ("projectId" .=) <$> _ergsrProjectId])
40762923
40772924-- | The variant data import response.
40782925--
40792926-- /See:/ 'importVariantsResponse' smart constructor.
40802927newtype ImportVariantsResponse = ImportVariantsResponse
4081− { _ivrJobId :: Maybe Text
2928+ { _ivrCallSetIds :: Maybe [Text]
40822929 } deriving (Eq,Show,Data,Typeable,Generic)
40832930
40842931-- | Creates a value of 'ImportVariantsResponse' with the minimum fields required to make a request.
40852932--
40862933-- Use one of the following lenses to modify other fields as desired:
40872934--
4088−-- * 'ivrJobId'
2935+-- * 'ivrCallSetIds'
40892936importVariantsResponse
40902937 :: ImportVariantsResponse
40912938importVariantsResponse =
40922939 ImportVariantsResponse
4093− { _ivrJobId = Nothing
2940+ { _ivrCallSetIds = Nothing
40942941 }
40952942
4096−-- | A job ID that can be used to get status information.
4097−ivrJobId :: Lens' ImportVariantsResponse (Maybe Text)
4098−ivrJobId = lens _ivrJobId (\ s a -> s{_ivrJobId = a})
2943+-- | IDs of the call sets that were created.
2944+ivrCallSetIds :: Lens' ImportVariantsResponse [Text]
2945+ivrCallSetIds
2946+ = lens _ivrCallSetIds
2947+ (\ s a -> s{_ivrCallSetIds = a})
2948+ . _Default
2949+ . _Coerce
40992950
41002951instance FromJSON ImportVariantsResponse where
41012952 parseJSON
41022953 = withObject "ImportVariantsResponse"
4103− (\ o -> ImportVariantsResponse <$> (o .:? "jobId"))
2954+ (\ o ->
2955+ ImportVariantsResponse <$>
2956+ (o .:? "callSetIds" .!= mempty))
41042957
41052958instance ToJSON ImportVariantsResponse where
41062959 toJSON ImportVariantsResponse{..}
4107− = object (catMaybes [("jobId" .=) <$> _ivrJobId])
2960+ = object
2961+ (catMaybes [("callSetIds" .=) <$> _ivrCallSetIds])
41082962
41092963--
41102964-- /See:/ 'listCoverageBucketsResponse' smart constructor.
@@ -4144,7 +2998,7 @@ lcbrNextPageToken
41442998-- | The length of each coverage bucket in base pairs. Note that buckets at
41452999-- the end of a reference sequence may be shorter. This value is omitted if
41463000-- the bucket width is infinity (the default behaviour, with no range or
4147−-- targetBucketWidth).
3001+-- \`targetBucketWidth\`).
41483002lcbrBucketWidth :: Lens' ListCoverageBucketsResponse (Maybe Int64)
41493003lcbrBucketWidth
41503004 = lens _lcbrBucketWidth
@@ -4152,8 +3006,8 @@ lcbrBucketWidth
41523006
41533007-- | The coverage buckets. The list of buckets is sparse; a bucket with 0
41543008-- overlapping reads is not returned. A bucket never crosses more than one
4155−-- reference sequence. Each bucket has width bucketWidth, unless its end is
4156−-- the end of the reference sequence.
3009+-- reference sequence. Each bucket has width \`bucketWidth\`, unless its
3010+-- end is the end of the reference sequence.
41573011lcbrCoverageBuckets :: Lens' ListCoverageBucketsResponse [CoverageBucket]
41583012lcbrCoverageBuckets
41593013 = lens _lcbrCoverageBuckets
@@ -4177,39 +3031,89 @@ instance ToJSON ListCoverageBucketsResponse where
41773031 ("bucketWidth" .=) <$> _lcbrBucketWidth,
41783032 ("coverageBuckets" .=) <$> _lcbrCoverageBuckets])
41793033
3034+-- | Request message for \`TestIamPermissions\` method.
3035+--
3036+-- /See:/ 'testIAMPermissionsRequest' smart constructor.
3037+newtype TestIAMPermissionsRequest = TestIAMPermissionsRequest
3038+ { _tiprPermissions :: Maybe [Text]
3039+ } deriving (Eq,Show,Data,Typeable,Generic)
3040+
3041+-- | Creates a value of 'TestIAMPermissionsRequest' with the minimum fields required to make a request.
3042+--
3043+-- Use one of the following lenses to modify other fields as desired:
3044+--
3045+-- * 'tiprPermissions'
3046+testIAMPermissionsRequest
3047+ :: TestIAMPermissionsRequest
3048+testIAMPermissionsRequest =
3049+ TestIAMPermissionsRequest
3050+ { _tiprPermissions = Nothing
3051+ }
3052+
3053+-- | REQUIRED: The set of permissions to check for the \'resource\'.
3054+-- Permissions with wildcards (such as \'*\' or \'storage.*\') are not
3055+-- allowed. Allowed permissions are: * \`genomics.datasets.create\` *
3056+-- \`genomics.datasets.delete\` * \`genomics.datasets.get\` *
3057+-- \`genomics.datasets.list\` * \`genomics.datasets.update\` *
3058+-- \`genomics.datasets.getIamPolicy\` * \`genomics.datasets.setIamPolicy\`
3059+tiprPermissions :: Lens' TestIAMPermissionsRequest [Text]
3060+tiprPermissions
3061+ = lens _tiprPermissions
3062+ (\ s a -> s{_tiprPermissions = a})
3063+ . _Default
3064+ . _Coerce
3065+
3066+instance FromJSON TestIAMPermissionsRequest where
3067+ parseJSON
3068+ = withObject "TestIAMPermissionsRequest"
3069+ (\ o ->
3070+ TestIAMPermissionsRequest <$>
3071+ (o .:? "permissions" .!= mempty))
3072+
3073+instance ToJSON TestIAMPermissionsRequest where
3074+ toJSON TestIAMPermissionsRequest{..}
3075+ = object
3076+ (catMaybes [("permissions" .=) <$> _tiprPermissions])
3077+
41803078-- | The read group set import response.
41813079--
41823080-- /See:/ 'importReadGroupSetsResponse' smart constructor.
41833081newtype ImportReadGroupSetsResponse = ImportReadGroupSetsResponse
4184− { _irgsrJobId :: Maybe Text
3082+ { _irgsrReadGroupSetIds :: Maybe [Text]
41853083 } deriving (Eq,Show,Data,Typeable,Generic)
41863084
41873085-- | Creates a value of 'ImportReadGroupSetsResponse' with the minimum fields required to make a request.
41883086--
41893087-- Use one of the following lenses to modify other fields as desired:
41903088--
4191−-- * 'irgsrJobId'
3089+-- * 'irgsrReadGroupSetIds'
41923090importReadGroupSetsResponse
41933091 :: ImportReadGroupSetsResponse
41943092importReadGroupSetsResponse =
41953093 ImportReadGroupSetsResponse
4196− { _irgsrJobId = Nothing
3094+ { _irgsrReadGroupSetIds = Nothing
41973095 }
41983096
4199−-- | A job ID that can be used to get status information.
4200−irgsrJobId :: Lens' ImportReadGroupSetsResponse (Maybe Text)
4201−irgsrJobId
4202− = lens _irgsrJobId (\ s a -> s{_irgsrJobId = a})
3097+-- | IDs of the read group sets that were created.
3098+irgsrReadGroupSetIds :: Lens' ImportReadGroupSetsResponse [Text]
3099+irgsrReadGroupSetIds
3100+ = lens _irgsrReadGroupSetIds
3101+ (\ s a -> s{_irgsrReadGroupSetIds = a})
3102+ . _Default
3103+ . _Coerce
42033104
42043105instance FromJSON ImportReadGroupSetsResponse where
42053106 parseJSON
42063107 = withObject "ImportReadGroupSetsResponse"
42073108 (\ o ->
4208− ImportReadGroupSetsResponse <$> (o .:? "jobId"))
3109+ ImportReadGroupSetsResponse <$>
3110+ (o .:? "readGroupSetIds" .!= mempty))
42093111
42103112instance ToJSON ImportReadGroupSetsResponse where
42113113 toJSON ImportReadGroupSetsResponse{..}
4212− = object (catMaybes [("jobId" .=) <$> _irgsrJobId])
3114+ = object
3115+ (catMaybes
3116+ [("readGroupSetIds" .=) <$> _irgsrReadGroupSetIds])
42133117
42143118-- | A linear alignment can be represented by one CIGAR string. Describes the
42153119-- mapped position and local alignment of the read to the reference.
@@ -4236,280 +3140,44 @@ linearAlignment =
42363140 LinearAlignment
42373141 { _laCigar = Nothing
42383142 , _laMAppingQuality = Nothing
4239− , _laPosition = Nothing
4240− }
4241−
4242−-- | Represents the local alignment of this sequence (alignment matches,
4243−-- indels, etc) against the reference.
4244−laCigar :: Lens' LinearAlignment [CigarUnit]
4245−laCigar
4246− = lens _laCigar (\ s a -> s{_laCigar = a}) . _Default
4247− . _Coerce
4248−
4249−-- | The mapping quality of this alignment. Represents how likely the read
4250−-- maps to this position as opposed to other locations.
4251−laMAppingQuality :: Lens' LinearAlignment (Maybe Int32)
4252−laMAppingQuality
4253− = lens _laMAppingQuality
4254− (\ s a -> s{_laMAppingQuality = a})
4255−
4256−-- | The position of this alignment.
4257−laPosition :: Lens' LinearAlignment (Maybe Position)
4258−laPosition
4259− = lens _laPosition (\ s a -> s{_laPosition = a})
4260−
4261−instance FromJSON LinearAlignment where
4262− parseJSON
4263− = withObject "LinearAlignment"
4264− (\ o ->
4265− LinearAlignment <$>
4266− (o .:? "cigar" .!= mempty) <*>
4267− (o .:? "mappingQuality")
4268− <*> (o .:? "position"))
4269−
4270−instance ToJSON LinearAlignment where
4271− toJSON LinearAlignment{..}
4272− = object
4273− (catMaybes
4274− [("cigar" .=) <$> _laCigar,
4275− ("mappingQuality" .=) <$> _laMAppingQuality,
4276− ("position" .=) <$> _laPosition])
4277−
4278−-- | Metadata describes a single piece of variant call metadata. These data
4279−-- include a top level key and either a single value string (value) or a
4280−-- list of key-value pairs (info.) Value and info are mutually exclusive.
4281−--
4282−-- /See:/ 'metadata' smart constructor.
4283−data Metadata = Metadata
4284− { _mValue :: !(Maybe Text)
4285− , _mKey :: !(Maybe Text)
4286− , _mId :: !(Maybe Text)
4287− , _mType :: !(Maybe MetadataType)
4288− , _mNumber :: !(Maybe Text)
4289− , _mDescription :: !(Maybe Text)
4290− , _mInfo :: !(Maybe MetadataInfo)
4291− } deriving (Eq,Show,Data,Typeable,Generic)
4292−
4293−-- | Creates a value of 'Metadata' with the minimum fields required to make a request.
4294−--
4295−-- Use one of the following lenses to modify other fields as desired:
4296−--
4297−-- * 'mValue'
4298−--
4299−-- * 'mKey'
4300−--
4301−-- * 'mId'
4302−--
4303−-- * 'mType'
4304−--
4305−-- * 'mNumber'
4306−--
4307−-- * 'mDescription'
4308−--
4309−-- * 'mInfo'
4310−metadata
4311− :: Metadata
4312−metadata =
4313− Metadata
4314− { _mValue = Nothing
4315− , _mKey = Nothing
4316− , _mId = Nothing
4317− , _mType = Nothing
4318− , _mNumber = Nothing
4319− , _mDescription = Nothing
4320− , _mInfo = Nothing
4321− }
4322−
4323−-- | The value field for simple metadata
4324−mValue :: Lens' Metadata (Maybe Text)
4325−mValue = lens _mValue (\ s a -> s{_mValue = a})
4326−
4327−-- | The top-level key.
4328−mKey :: Lens' Metadata (Maybe Text)
4329−mKey = lens _mKey (\ s a -> s{_mKey = a})
4330−
4331−-- | User-provided ID field, not enforced by this API. Two or more pieces of
4332−-- structured metadata with identical id and key fields are considered
4333−-- equivalent.
4334−mId :: Lens' Metadata (Maybe Text)
4335−mId = lens _mId (\ s a -> s{_mId = a})
4336−
4337−-- | The type of data. Possible types include: Integer, Float, Flag,
4338−-- Character, and String.
4339−mType :: Lens' Metadata (Maybe MetadataType)
4340−mType = lens _mType (\ s a -> s{_mType = a})
4341−
4342−-- | The number of values that can be included in a field described by this
4343−-- metadata.
4344−mNumber :: Lens' Metadata (Maybe Text)
4345−mNumber = lens _mNumber (\ s a -> s{_mNumber = a})
4346−
4347−-- | A textual description of this metadata.
4348−mDescription :: Lens' Metadata (Maybe Text)
4349−mDescription
4350− = lens _mDescription (\ s a -> s{_mDescription = a})
4351−
4352−-- | A string which maps to an array of values.
4353−mInfo :: Lens' Metadata (Maybe MetadataInfo)
4354−mInfo = lens _mInfo (\ s a -> s{_mInfo = a})
4355−
4356−instance FromJSON Metadata where
4357− parseJSON
4358− = withObject "Metadata"
4359− (\ o ->
4360− Metadata <$>
4361− (o .:? "value") <*> (o .:? "key") <*> (o .:? "id")
4362− <*> (o .:? "type")
4363− <*> (o .:? "number")
4364− <*> (o .:? "description")
4365− <*> (o .:? "info"))
4366−
4367−instance ToJSON Metadata where
4368− toJSON Metadata{..}
4369− = object
4370− (catMaybes
4371− [("value" .=) <$> _mValue, ("key" .=) <$> _mKey,
4372− ("id" .=) <$> _mId, ("type" .=) <$> _mType,
4373− ("number" .=) <$> _mNumber,
4374− ("description" .=) <$> _mDescription,
4375− ("info" .=) <$> _mInfo])
4376−
4377−-- | The read group set call response.
4378−--
4379−-- /See:/ 'callReadGroupSetsResponse' smart constructor.
4380−newtype CallReadGroupSetsResponse = CallReadGroupSetsResponse
4381− { _crgsrJobId :: Maybe Text
4382− } deriving (Eq,Show,Data,Typeable,Generic)
4383−
4384−-- | Creates a value of 'CallReadGroupSetsResponse' with the minimum fields required to make a request.
4385−--
4386−-- Use one of the following lenses to modify other fields as desired:
4387−--
4388−-- * 'crgsrJobId'
4389−callReadGroupSetsResponse
4390− :: CallReadGroupSetsResponse
4391−callReadGroupSetsResponse =
4392− CallReadGroupSetsResponse
4393− { _crgsrJobId = Nothing
4394− }
4395−
4396−-- | A job ID that can be used to get status information.
4397−crgsrJobId :: Lens' CallReadGroupSetsResponse (Maybe Text)
4398−crgsrJobId
4399− = lens _crgsrJobId (\ s a -> s{_crgsrJobId = a})
4400−
4401−instance FromJSON CallReadGroupSetsResponse where
4402− parseJSON
4403− = withObject "CallReadGroupSetsResponse"
4404− (\ o ->
4405− CallReadGroupSetsResponse <$> (o .:? "jobId"))
4406−
4407−instance ToJSON CallReadGroupSetsResponse where
4408− toJSON CallReadGroupSetsResponse{..}
4409− = object (catMaybes [("jobId" .=) <$> _crgsrJobId])
4410−
4411−-- | An annotation set is a logical grouping of annotations that share
4412−-- consistent type information and provenance. Examples of annotation sets
4413−-- include \'all genes from refseq\', and \'all variant annotations from
4414−-- ClinVar\'.
4415−--
4416−-- /See:/ 'annotationSet' smart constructor.
4417−data AnnotationSet = AnnotationSet
4418− { _asReferenceSetId :: !(Maybe Text)
4419− , _asName :: !(Maybe Text)
4420− , _asDatasetId :: !(Maybe Text)
4421− , _asId :: !(Maybe Text)
4422− , _asType :: !(Maybe AnnotationSetType)
4423− , _asSourceURI :: !(Maybe Text)
4424− , _asInfo :: !(Maybe AnnotationSetInfo)
4425− } deriving (Eq,Show,Data,Typeable,Generic)
4426−
4427−-- | Creates a value of 'AnnotationSet' with the minimum fields required to make a request.
4428−--
4429−-- Use one of the following lenses to modify other fields as desired:
4430−--
4431−-- * 'asReferenceSetId'
4432−--
4433−-- * 'asName'
4434−--
4435−-- * 'asDatasetId'
4436−--
4437−-- * 'asId'
4438−--
4439−-- * 'asType'
4440−--
4441−-- * 'asSourceURI'
4442−--
4443−-- * 'asInfo'
4444−annotationSet
4445− :: AnnotationSet
4446−annotationSet =
4447− AnnotationSet
4448− { _asReferenceSetId = Nothing
4449− , _asName = Nothing
4450− , _asDatasetId = Nothing
4451− , _asId = Nothing
4452− , _asType = Nothing
4453− , _asSourceURI = Nothing
4454− , _asInfo = Nothing
3143+ , _laPosition = Nothing
44553144 }
44563145
4457−-- | The ID of the reference set that defines the coordinate space for this
4458−-- set\'s annotations.
4459−asReferenceSetId :: Lens' AnnotationSet (Maybe Text)
4460−asReferenceSetId
4461− = lens _asReferenceSetId
4462− (\ s a -> s{_asReferenceSetId = a})
4463−
4464−-- | The display name for this annotation set.
4465−asName :: Lens' AnnotationSet (Maybe Text)
4466−asName = lens _asName (\ s a -> s{_asName = a})
4467−
4468−-- | The ID of the containing dataset.
4469−asDatasetId :: Lens' AnnotationSet (Maybe Text)
4470−asDatasetId
4471− = lens _asDatasetId (\ s a -> s{_asDatasetId = a})
4472−
4473−-- | The generated unique ID for this annotation set.
4474−asId :: Lens' AnnotationSet (Maybe Text)
4475−asId = lens _asId (\ s a -> s{_asId = a})
4476−
4477−-- | The type of annotations contained within this set.
4478−asType :: Lens' AnnotationSet (Maybe AnnotationSetType)
4479−asType = lens _asType (\ s a -> s{_asType = a})
4480−
4481−-- | The source URI describing the file from which this annotation set was
4482−-- generated, if any.
4483−asSourceURI :: Lens' AnnotationSet (Maybe Text)
4484−asSourceURI
4485− = lens _asSourceURI (\ s a -> s{_asSourceURI = a})
4486−
4487−-- | A string which maps to an array of values.
4488−asInfo :: Lens' AnnotationSet (Maybe AnnotationSetInfo)
4489−asInfo = lens _asInfo (\ s a -> s{_asInfo = a})
4490−
4491−instance FromJSON AnnotationSet where
3146+-- | Represents the local alignment of this sequence (alignment matches,
3147+-- indels, etc) against the reference.
3148+laCigar :: Lens' LinearAlignment [CigarUnit]
3149+laCigar
3150+ = lens _laCigar (\ s a -> s{_laCigar = a}) . _Default
3151+ . _Coerce
3152+
3153+-- | The mapping quality of this alignment. Represents how likely the read
3154+-- maps to this position as opposed to other locations.
3155+laMAppingQuality :: Lens' LinearAlignment (Maybe Int32)
3156+laMAppingQuality
3157+ = lens _laMAppingQuality
3158+ (\ s a -> s{_laMAppingQuality = a})
3159+
3160+-- | The position of this alignment.
3161+laPosition :: Lens' LinearAlignment (Maybe Position)
3162+laPosition
3163+ = lens _laPosition (\ s a -> s{_laPosition = a})
3164+
3165+instance FromJSON LinearAlignment where
44923166 parseJSON
4493− = withObject "AnnotationSet"
3167+ = withObject "LinearAlignment"
44943168 (\ o ->
4495− AnnotationSet <$>
4496− (o .:? "referenceSetId") <*> (o .:? "name") <*>
4497− (o .:? "datasetId")
4498− <*> (o .:? "id")
4499− <*> (o .:? "type")
4500− <*> (o .:? "sourceUri")
4501− <*> (o .:? "info"))
3169+ LinearAlignment <$>
3170+ (o .:? "cigar" .!= mempty) <*>
3171+ (o .:? "mappingQuality")
3172+ <*> (o .:? "position"))
45023173
4503−instance ToJSON AnnotationSet where
4504− toJSON AnnotationSet{..}
3174+instance ToJSON LinearAlignment where
3175+ toJSON LinearAlignment{..}
45053176 = object
45063177 (catMaybes
4507− [("referenceSetId" .=) <$> _asReferenceSetId,
4508− ("name" .=) <$> _asName,
4509− ("datasetId" .=) <$> _asDatasetId,
4510− ("id" .=) <$> _asId, ("type" .=) <$> _asType,
4511− ("sourceUri" .=) <$> _asSourceURI,
4512− ("info" .=) <$> _asInfo])
3178+ [("cigar" .=) <$> _laCigar,
3179+ ("mappingQuality" .=) <$> _laMAppingQuality,
3180+ ("position" .=) <$> _laPosition])
45133181
45143182-- | A variant set is a collection of call sets and variants. It contains
45153183-- summary statistics of those contents. A variant set belongs to a
@@ -4519,7 +3187,7 @@ instance ToJSON AnnotationSet where
45193187data VariantSet = VariantSet
45203188 { _vsDatasetId :: !(Maybe Text)
45213189 , _vsReferenceBounds :: !(Maybe [ReferenceBound])
4522− , _vsMetadata :: !(Maybe [Metadata])
3190+ , _vsMetadata :: !(Maybe [VariantSetMetadata])
45233191 , _vsId :: !(Maybe Text)
45243192 } deriving (Eq,Show,Data,Typeable,Generic)
45253193
@@ -4544,7 +3212,7 @@ variantSet =
45443212 , _vsId = Nothing
45453213 }
45463214
4547−-- | The dataset to which this variant set belongs. Immutable.
3215+-- | The dataset to which this variant set belongs.
45483216vsDatasetId :: Lens' VariantSet (Maybe Text)
45493217vsDatasetId
45503218 = lens _vsDatasetId (\ s a -> s{_vsDatasetId = a})
@@ -4559,13 +3227,13 @@ vsReferenceBounds
45593227 . _Coerce
45603228
45613229-- | The metadata associated with this variant set.
4562−vsMetadata :: Lens' VariantSet [Metadata]
3230+vsMetadata :: Lens' VariantSet [VariantSetMetadata]
45633231vsMetadata
45643232 = lens _vsMetadata (\ s a -> s{_vsMetadata = a}) .
45653233 _Default
45663234 . _Coerce
45673235
4568−-- | The Google-generated ID of the variant set. Immutable.
3236+-- | The server-generated variant set ID, unique across all variant sets.
45693237vsId :: Lens' VariantSet (Maybe Text)
45703238vsId = lens _vsId (\ s a -> s{_vsId = a})
45713239
@@ -4588,6 +3256,47 @@ instance ToJSON VariantSet where
45883256 ("metadata" .=) <$> _vsMetadata,
45893257 ("id" .=) <$> _vsId])
45903258
3259+-- | Response message for \`TestIamPermissions\` method.
3260+--
3261+-- /See:/ 'testIAMPermissionsResponse' smart constructor.
3262+newtype TestIAMPermissionsResponse = TestIAMPermissionsResponse
3263+ { _tiamprPermissions :: Maybe [Text]
3264+ } deriving (Eq,Show,Data,Typeable,Generic)
3265+
3266+-- | Creates a value of 'TestIAMPermissionsResponse' with the minimum fields required to make a request.
3267+--
3268+-- Use one of the following lenses to modify other fields as desired:
3269+--
3270+-- * 'tiamprPermissions'
3271+testIAMPermissionsResponse
3272+ :: TestIAMPermissionsResponse
3273+testIAMPermissionsResponse =
3274+ TestIAMPermissionsResponse
3275+ { _tiamprPermissions = Nothing
3276+ }
3277+
3278+-- | A subset of \`TestPermissionsRequest.permissions\` that the caller is
3279+-- allowed.
3280+tiamprPermissions :: Lens' TestIAMPermissionsResponse [Text]
3281+tiamprPermissions
3282+ = lens _tiamprPermissions
3283+ (\ s a -> s{_tiamprPermissions = a})
3284+ . _Default
3285+ . _Coerce
3286+
3287+instance FromJSON TestIAMPermissionsResponse where
3288+ parseJSON
3289+ = withObject "TestIAMPermissionsResponse"
3290+ (\ o ->
3291+ TestIAMPermissionsResponse <$>
3292+ (o .:? "permissions" .!= mempty))
3293+
3294+instance ToJSON TestIAMPermissionsResponse where
3295+ toJSON TestIAMPermissionsResponse{..}
3296+ = object
3297+ (catMaybes
3298+ [("permissions" .=) <$> _tiamprPermissions])
3299+
45913300-- | The dataset list response.
45923301--
45933302-- /See:/ 'listDatasetsResponse' smart constructor.
@@ -4649,7 +3358,7 @@ data ImportReadGroupSetsRequest = ImportReadGroupSetsRequest
46493358 { _irgsrReferenceSetId :: !(Maybe Text)
46503359 , _irgsrDatasetId :: !(Maybe Text)
46513360 , _irgsrSourceURIs :: !(Maybe [Text])
4652− , _irgsrPartitionStrategy :: !(Maybe ImportReadGroupSetsRequestPartitionStrategy)
3361+ , _irgsrPartitionStrategy :: !(Maybe Text)
46533362 } deriving (Eq,Show,Data,Typeable,Generic)
46543363
46553364-- | Creates a value of 'ImportReadGroupSetsRequest' with the minimum fields required to make a request.
@@ -4690,7 +3399,9 @@ irgsrDatasetId
46903399 = lens _irgsrDatasetId
46913400 (\ s a -> s{_irgsrDatasetId = a})
46923401
4693−-- | A list of URIs pointing at BAM files in Google Cloud Storage.
3402+-- | A list of URIs pointing at [BAM
3403+-- files](https:\/\/samtools.github.io\/hts-specs\/SAMv1.pdf) in Google
3404+-- Cloud Storage.
46943405irgsrSourceURIs :: Lens' ImportReadGroupSetsRequest [Text]
46953406irgsrSourceURIs
46963407 = lens _irgsrSourceURIs
@@ -4700,7 +3411,7 @@ irgsrSourceURIs
47003411
47013412-- | The partition strategy describes how read groups are partitioned into
47023413-- read group sets.
4703−irgsrPartitionStrategy :: Lens' ImportReadGroupSetsRequest (Maybe ImportReadGroupSetsRequestPartitionStrategy)
3414+irgsrPartitionStrategy :: Lens' ImportReadGroupSetsRequest (Maybe Text)
47043415irgsrPartitionStrategy
47053416 = lens _irgsrPartitionStrategy
47063417 (\ s a -> s{_irgsrPartitionStrategy = a})
@@ -4728,7 +3439,8 @@ instance ToJSON ImportReadGroupSetsRequest where
47283439--
47293440-- /See:/ 'importVariantsRequest' smart constructor.
47303441data ImportVariantsRequest = ImportVariantsRequest
4731− { _ivrFormat :: !(Maybe ImportVariantsRequestFormat)
3442+ { _ivrVariantSetId :: !(Maybe Text)
3443+ , _ivrFormat :: !(Maybe Text)
47323444 , _ivrNormalizeReferenceNames :: !(Maybe Bool)
47333445 , _ivrSourceURIs :: !(Maybe [Text])
47343446 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -4737,6 +3449,8 @@ data ImportVariantsRequest = ImportVariantsRequest
47373449--
47383450-- Use one of the following lenses to modify other fields as desired:
47393451--
3452+-- * 'ivrVariantSetId'
3453+--
47403454-- * 'ivrFormat'
47413455--
47423456-- * 'ivrNormalizeReferenceNames'
@@ -4746,14 +3460,21 @@ importVariantsRequest
47463460 :: ImportVariantsRequest
47473461importVariantsRequest =
47483462 ImportVariantsRequest
4749− { _ivrFormat = Nothing
3463+ { _ivrVariantSetId = Nothing
3464+ , _ivrFormat = Nothing
47503465 , _ivrNormalizeReferenceNames = Nothing
47513466 , _ivrSourceURIs = Nothing
47523467 }
47533468
3469+-- | Required. The variant set to which variant data should be imported.
3470+ivrVariantSetId :: Lens' ImportVariantsRequest (Maybe Text)
3471+ivrVariantSetId
3472+ = lens _ivrVariantSetId
3473+ (\ s a -> s{_ivrVariantSetId = a})
3474+
47543475-- | The format of the variant data being imported. If unspecified, defaults
4755−-- to to \"VCF\".
4756−ivrFormat :: Lens' ImportVariantsRequest (Maybe ImportVariantsRequestFormat)
3476+-- to to \`VCF\`.
3477+ivrFormat :: Lens' ImportVariantsRequest (Maybe Text)
47573478ivrFormat
47583479 = lens _ivrFormat (\ s a -> s{_ivrFormat = a})
47593480
@@ -4770,8 +3491,9 @@ ivrNormalizeReferenceNames
47703491 (\ s a -> s{_ivrNormalizeReferenceNames = a})
47713492
47723493-- | A list of URIs referencing variant files in Google Cloud Storage. URIs
4773−-- can include wildcards as described here. Note that recursive wildcards
4774−-- (\'**\') are not supported.
3494+-- can include wildcards [as described
3495+-- here](https:\/\/cloud.google.com\/storage\/docs\/gsutil\/addlhelp\/WildcardNames).
3496+-- Note that recursive wildcards (\'**\') are not supported.
47753497ivrSourceURIs :: Lens' ImportVariantsRequest [Text]
47763498ivrSourceURIs
47773499 = lens _ivrSourceURIs
@@ -4784,7 +3506,7 @@ instance FromJSON ImportVariantsRequest where
47843506 = withObject "ImportVariantsRequest"
47853507 (\ o ->
47863508 ImportVariantsRequest <$>
4787− (o .:? "format") <*>
3509+ (o .:? "variantSetId") <*> (o .:? "format") <*>
47883510 (o .:? "normalizeReferenceNames")
47893511 <*> (o .:? "sourceUris" .!= mempty))
47903512
@@ -4792,61 +3514,17 @@ instance ToJSON ImportVariantsRequest where
47923514 toJSON ImportVariantsRequest{..}
47933515 = object
47943516 (catMaybes
4795− [("format" .=) <$> _ivrFormat,
3517+ [("variantSetId" .=) <$> _ivrVariantSetId,
3518+ ("format" .=) <$> _ivrFormat,
47963519 ("normalizeReferenceNames" .=) <$>
47973520 _ivrNormalizeReferenceNames,
47983521 ("sourceUris" .=) <$> _ivrSourceURIs])
47993522
4800−-- |
4801−--
4802−-- /See:/ 'externalId' smart constructor.
4803−data ExternalId = ExternalId
4804− { _eiSourceName :: !(Maybe Text)
4805− , _eiId :: !(Maybe Text)
4806− } deriving (Eq,Show,Data,Typeable,Generic)
4807−
4808−-- | Creates a value of 'ExternalId' with the minimum fields required to make a request.
4809−--
4810−-- Use one of the following lenses to modify other fields as desired:
4811−--
4812−-- * 'eiSourceName'
4813−--
4814−-- * 'eiId'
4815−externalId
4816− :: ExternalId
4817−externalId =
4818− ExternalId
4819− { _eiSourceName = Nothing
4820− , _eiId = Nothing
4821− }
4822−
4823−-- | The name of the source of this data.
4824−eiSourceName :: Lens' ExternalId (Maybe Text)
4825−eiSourceName
4826− = lens _eiSourceName (\ s a -> s{_eiSourceName = a})
4827−
4828−-- | The id used by the source of this data.
4829−eiId :: Lens' ExternalId (Maybe Text)
4830−eiId = lens _eiId (\ s a -> s{_eiId = a})
4831−
4832−instance FromJSON ExternalId where
4833− parseJSON
4834− = withObject "ExternalId"
4835− (\ o ->
4836− ExternalId <$> (o .:? "sourceName") <*> (o .:? "id"))
4837−
4838−instance ToJSON ExternalId where
4839− toJSON ExternalId{..}
4840− = object
4841− (catMaybes
4842− [("sourceName" .=) <$> _eiSourceName,
4843− ("id" .=) <$> _eiId])
4844−
48453523-- | A single CIGAR operation.
48463524--
48473525-- /See:/ 'cigarUnit' smart constructor.
48483526data CigarUnit = CigarUnit
4849− { _cuOperation :: !(Maybe CigarUnitOperation)
3527+ { _cuOperation :: !(Maybe Text)
48503528 , _cuOperationLength :: !(Maybe Int64)
48513529 , _cuReferenceSequence :: !(Maybe Text)
48523530 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -4869,19 +3547,19 @@ cigarUnit =
48693547 , _cuReferenceSequence = Nothing
48703548 }
48713549
4872−cuOperation :: Lens' CigarUnit (Maybe CigarUnitOperation)
3550+cuOperation :: Lens' CigarUnit (Maybe Text)
48733551cuOperation
48743552 = lens _cuOperation (\ s a -> s{_cuOperation = a})
48753553
4876−-- | The number of bases that the operation runs for. Required.
3554+-- | The number of genomic bases that the operation runs for. Required.
48773555cuOperationLength :: Lens' CigarUnit (Maybe Int64)
48783556cuOperationLength
48793557 = lens _cuOperationLength
48803558 (\ s a -> s{_cuOperationLength = a})
48813559
4882−-- | referenceSequence is only used at mismatches (SEQUENCE_MISMATCH) and
4883−-- deletions (DELETE). Filling this field replaces SAM\'s MD tag. If the
4884−-- relevant information is not available, this field is unset.
3560+-- | \`referenceSequence\` is only used at mismatches (\`SEQUENCE_MISMATCH\`)
3561+-- and deletions (\`DELETE\`). Filling this field replaces SAM\'s MD tag.
3562+-- If the relevant information is not available, this field is unset.
48853563cuReferenceSequence :: Lens' CigarUnit (Maybe Text)
48863564cuReferenceSequence
48873565 = lens _cuReferenceSequence
@@ -4903,107 +3581,78 @@ instance ToJSON CigarUnit where
49033581 ("operationLength" .=) <$> _cuOperationLength,
49043582 ("referenceSequence" .=) <$> _cuReferenceSequence])
49053583
4906−-- | The read group set align request.
4907−--
4908−-- /See:/ 'alignReadGroupSetsRequest' smart constructor.
4909−data AlignReadGroupSetsRequest = AlignReadGroupSetsRequest
4910− { _argsrInterleavedFastqSource :: !(Maybe InterleavedFastqSource)
4911− , _argsrReadGroupSetId :: !(Maybe Text)
4912− , _argsrBamSourceURIs :: !(Maybe [Text])
4913− , _argsrPairedFastqSource :: !(Maybe PairedFastqSource)
4914− , _argsrDatasetId :: !(Maybe Text)
3584+-- | Defines an Identity and Access Management (IAM) policy. It is used to
3585+-- specify access control policies for Cloud Platform resources. A
3586+-- \`Policy\` consists of a list of \`bindings\`. A \`Binding\` binds a
3587+-- list of \`members\` to a \`role\`, where the members can be user
3588+-- accounts, Google groups, Google domains, and service accounts. A
3589+-- \`role\` is a named list of permissions defined by IAM. **Example** {
3590+-- \"bindings\": [ { \"role\": \"roles\/owner\", \"members\": [
3591+-- \"user:mike\'example.com\", \"group:admins\'example.com\",
3592+-- \"domain:google.com\",
3593+-- \"serviceAccount:my-other-app\'appspot.gserviceaccount.com\"] }, {
3594+-- \"role\": \"roles\/viewer\", \"members\": [\"user:sean\'example.com\"] }
3595+-- ] } For a description of IAM and its features, see the [IAM developer\'s
3596+-- guide](https:\/\/cloud.google.com\/iam).
3597+--
3598+-- /See:/ 'policy' smart constructor.
3599+data Policy = Policy
3600+ { _polEtag :: !(Maybe Word8)
3601+ , _polVersion :: !(Maybe Int32)
3602+ , _polBindings :: !(Maybe [Binding])
49153603 } deriving (Eq,Show,Data,Typeable,Generic)
49163604
4917−-- | Creates a value of 'AlignReadGroupSetsRequest' with the minimum fields required to make a request.
3605+-- | Creates a value of 'Policy' with the minimum fields required to make a request.
49183606--
49193607-- Use one of the following lenses to modify other fields as desired:
49203608--
4921−-- * 'argsrInterleavedFastqSource'
4922−--
4923−-- * 'argsrReadGroupSetId'
3609+-- * 'polEtag'
49243610--
4925−-- * 'argsrBamSourceURIs'
3611+-- * 'polVersion'
49263612--
4927−-- * 'argsrPairedFastqSource'
4928−--
4929−-- * 'argsrDatasetId'
4930−alignReadGroupSetsRequest
4931− :: AlignReadGroupSetsRequest
4932−alignReadGroupSetsRequest =
4933− AlignReadGroupSetsRequest
4934− { _argsrInterleavedFastqSource = Nothing
4935− , _argsrReadGroupSetId = Nothing
4936− , _argsrBamSourceURIs = Nothing
4937− , _argsrPairedFastqSource = Nothing
4938− , _argsrDatasetId = Nothing
3613+-- * 'polBindings'
3614+policy
3615+ :: Policy
3616+policy =
3617+ Policy
3618+ { _polEtag = Nothing
3619+ , _polVersion = Nothing
3620+ , _polBindings = Nothing
49393621 }
49403622
4941−-- | The interleaved FASTQ source files for alignment, where both members of
4942−-- each pair of reads are found on consecutive records within the same
4943−-- FASTQ file. Exactly one of readGroupSetId, bamSourceUris,
4944−-- interleavedFastqSource or pairedFastqSource must be provided.
4945−argsrInterleavedFastqSource :: Lens' AlignReadGroupSetsRequest (Maybe InterleavedFastqSource)
4946−argsrInterleavedFastqSource
4947− = lens _argsrInterleavedFastqSource
4948− (\ s a -> s{_argsrInterleavedFastqSource = a})
4949−
4950−-- | The ID of the read group set which will be aligned. A new read group set
4951−-- will be generated to hold the aligned data, the originals will not be
4952−-- modified. The caller must have READ permissions for this read group set.
4953−-- Exactly one of readGroupSetId, bamSourceUris, interleavedFastqSource or
4954−-- pairedFastqSource must be provided.
4955−argsrReadGroupSetId :: Lens' AlignReadGroupSetsRequest (Maybe Text)
4956−argsrReadGroupSetId
4957− = lens _argsrReadGroupSetId
4958− (\ s a -> s{_argsrReadGroupSetId = a})
4959−
4960−-- | The BAM source files for alignment. Exactly one of readGroupSetId,
4961−-- bamSourceUris, interleavedFastqSource or pairedFastqSource must be
4962−-- provided. The caller must have READ permissions for these files.
4963−argsrBamSourceURIs :: Lens' AlignReadGroupSetsRequest [Text]
4964−argsrBamSourceURIs
4965− = lens _argsrBamSourceURIs
4966− (\ s a -> s{_argsrBamSourceURIs = a})
4967− . _Default
3623+-- | Can be used to perform a read-modify-write.
3624+polEtag :: Lens' Policy (Maybe Word8)
3625+polEtag = lens _polEtag (\ s a -> s{_polEtag = a})
3626+
3627+-- | Version of the \`Policy\`. The default version is 0.
3628+polVersion :: Lens' Policy (Maybe Int32)
3629+polVersion
3630+ = lens _polVersion (\ s a -> s{_polVersion = a})
3631+
3632+-- | Associates a list of \`members\` to a \`role\`. Multiple \`bindings\`
3633+-- must not be specified for the same \`role\`. \`bindings\` with no
3634+-- members will result in an error.
3635+polBindings :: Lens' Policy [Binding]
3636+polBindings
3637+ = lens _polBindings (\ s a -> s{_polBindings = a}) .
3638+ _Default
49683639 . _Coerce
49693640
4970−-- | The paired end FASTQ source files for alignment, where each member of a
4971−-- pair of reads are found in separate files. Exactly one of
4972−-- readGroupSetId, bamSourceUris, interleavedFastqSource or
4973−-- pairedFastqSource must be provided.
4974−argsrPairedFastqSource :: Lens' AlignReadGroupSetsRequest (Maybe PairedFastqSource)
4975−argsrPairedFastqSource
4976− = lens _argsrPairedFastqSource
4977− (\ s a -> s{_argsrPairedFastqSource = a})
4978−
4979−-- | Required. The ID of the dataset the newly aligned read group sets will
4980−-- belong to. The caller must have WRITE permissions to this dataset.
4981−argsrDatasetId :: Lens' AlignReadGroupSetsRequest (Maybe Text)
4982−argsrDatasetId
4983− = lens _argsrDatasetId
4984− (\ s a -> s{_argsrDatasetId = a})
4985−
4986−instance FromJSON AlignReadGroupSetsRequest where
3641+instance FromJSON Policy where
49873642 parseJSON
4988− = withObject "AlignReadGroupSetsRequest"
3643+ = withObject "Policy"
49893644 (\ o ->
4990− AlignReadGroupSetsRequest <$>
4991− (o .:? "interleavedFastqSource") <*>
4992− (o .:? "readGroupSetId")
4993− <*> (o .:? "bamSourceUris" .!= mempty)
4994− <*> (o .:? "pairedFastqSource")
4995− <*> (o .:? "datasetId"))
4996−
4997−instance ToJSON AlignReadGroupSetsRequest where
4998− toJSON AlignReadGroupSetsRequest{..}
3645+ Policy <$>
3646+ (o .:? "etag") <*> (o .:? "version") <*>
3647+ (o .:? "bindings" .!= mempty))
3648+
3649+instance ToJSON Policy where
3650+ toJSON Policy{..}
49993651 = object
50003652 (catMaybes
5001− [("interleavedFastqSource" .=) <$>
5002− _argsrInterleavedFastqSource,
5003− ("readGroupSetId" .=) <$> _argsrReadGroupSetId,
5004− ("bamSourceUris" .=) <$> _argsrBamSourceURIs,
5005− ("pairedFastqSource" .=) <$> _argsrPairedFastqSource,
5006− ("datasetId" .=) <$> _argsrDatasetId])
3653+ [("etag" .=) <$> _polEtag,
3654+ ("version" .=) <$> _polVersion,
3655+ ("bindings" .=) <$> _polBindings])
50073656
50083657-- | The variant data export request.
50093658--
@@ -5011,9 +3660,9 @@ instance ToJSON AlignReadGroupSetsRequest where
50113660data ExportVariantSetRequest = ExportVariantSetRequest
50123661 { _evsrBigQueryDataset :: !(Maybe Text)
50133662 , _evsrBigQueryTable :: !(Maybe Text)
5014− , _evsrFormat :: !(Maybe ExportVariantSetRequestFormat)
5015− , _evsrProjectNumber :: !(Maybe Int64)
3663+ , _evsrFormat :: !(Maybe Text)
50163664 , _evsrCallSetIds :: !(Maybe [Text])
3665+ , _evsrProjectId :: !(Maybe Text)
50173666 } deriving (Eq,Show,Data,Typeable,Generic)
50183667
50193668-- | Creates a value of 'ExportVariantSetRequest' with the minimum fields required to make a request.
@@ -5026,9 +3675,9 @@ data ExportVariantSetRequest = ExportVariantSetRequest
50263675--
50273676-- * 'evsrFormat'
50283677--
5029−-- * 'evsrProjectNumber'
5030−--
50313678-- * 'evsrCallSetIds'
3679+--
3680+-- * 'evsrProjectId'
50323681exportVariantSetRequest
50333682 :: ExportVariantSetRequest
50343683exportVariantSetRequest =
@@ -5036,8 +3685,8 @@ exportVariantSetRequest =
50363685 { _evsrBigQueryDataset = Nothing
50373686 , _evsrBigQueryTable = Nothing
50383687 , _evsrFormat = Nothing
5039− , _evsrProjectNumber = Nothing
50403688 , _evsrCallSetIds = Nothing
3689+ , _evsrProjectId = Nothing
50413690 }
50423691
50433692-- | Required. The BigQuery dataset to export data to. This dataset must
@@ -5056,18 +3705,10 @@ evsrBigQueryTable
50563705 (\ s a -> s{_evsrBigQueryTable = a})
50573706
50583707-- | The format for the exported data.
5059−evsrFormat :: Lens' ExportVariantSetRequest (Maybe ExportVariantSetRequestFormat)
3708+evsrFormat :: Lens' ExportVariantSetRequest (Maybe Text)
50603709evsrFormat
50613710 = lens _evsrFormat (\ s a -> s{_evsrFormat = a})
50623711
5063−-- | Required. The Google Cloud project number that owns the destination
5064−-- BigQuery dataset. The caller must have WRITE access to this project.
5065−-- This project will also own the resulting export job.
5066−evsrProjectNumber :: Lens' ExportVariantSetRequest (Maybe Int64)
5067−evsrProjectNumber
5068− = lens _evsrProjectNumber
5069− (\ s a -> s{_evsrProjectNumber = a})
5070−
50713712-- | If provided, only variant call information from the specified call sets
50723713-- will be exported. By default all variant calls are exported.
50733714evsrCallSetIds :: Lens' ExportVariantSetRequest [Text]
@@ -5077,6 +3718,14 @@ evsrCallSetIds
50773718 . _Default
50783719 . _Coerce
50793720
3721+-- | Required. The Google Cloud project ID that owns the destination BigQuery
3722+-- dataset. The caller must have WRITE access to this project. This project
3723+-- will also own the resulting export job.
3724+evsrProjectId :: Lens' ExportVariantSetRequest (Maybe Text)
3725+evsrProjectId
3726+ = lens _evsrProjectId
3727+ (\ s a -> s{_evsrProjectId = a})
3728+
50803729instance FromJSON ExportVariantSetRequest where
50813730 parseJSON
50823731 = withObject "ExportVariantSetRequest"
@@ -5084,8 +3733,8 @@ instance FromJSON ExportVariantSetRequest where
50843733 ExportVariantSetRequest <$>
50853734 (o .:? "bigqueryDataset") <*> (o .:? "bigqueryTable")
50863735 <*> (o .:? "format")
5087− <*> (o .:? "projectNumber")
5088− <*> (o .:? "callSetIds" .!= mempty))
3736+ <*> (o .:? "callSetIds" .!= mempty)
3737+ <*> (o .:? "projectId"))
50893738
50903739instance ToJSON ExportVariantSetRequest where
50913740 toJSON ExportVariantSetRequest{..}
@@ -5094,139 +3743,84 @@ instance ToJSON ExportVariantSetRequest where
50943743 [("bigqueryDataset" .=) <$> _evsrBigQueryDataset,
50953744 ("bigqueryTable" .=) <$> _evsrBigQueryTable,
50963745 ("format" .=) <$> _evsrFormat,
5097− ("projectNumber" .=) <$> _evsrProjectNumber,
5098− ("callSetIds" .=) <$> _evsrCallSetIds])
5099−
5100−-- | The read group set export response.
5101−--
5102−-- /See:/ 'exportReadGroupSetsResponse' smart constructor.
5103−newtype ExportReadGroupSetsResponse = ExportReadGroupSetsResponse
5104− { _ergsrJobId :: Maybe Text
5105− } deriving (Eq,Show,Data,Typeable,Generic)
5106−
5107−-- | Creates a value of 'ExportReadGroupSetsResponse' with the minimum fields required to make a request.
5108−--
5109−-- Use one of the following lenses to modify other fields as desired:
5110−--
5111−-- * 'ergsrJobId'
5112−exportReadGroupSetsResponse
5113− :: ExportReadGroupSetsResponse
5114−exportReadGroupSetsResponse =
5115− ExportReadGroupSetsResponse
5116− { _ergsrJobId = Nothing
5117− }
5118−
5119−-- | A job ID that can be used to get status information.
5120−ergsrJobId :: Lens' ExportReadGroupSetsResponse (Maybe Text)
5121−ergsrJobId
5122− = lens _ergsrJobId (\ s a -> s{_ergsrJobId = a})
5123−
5124−instance FromJSON ExportReadGroupSetsResponse where
5125− parseJSON
5126− = withObject "ExportReadGroupSetsResponse"
5127− (\ o ->
5128− ExportReadGroupSetsResponse <$> (o .:? "jobId"))
5129−
5130−instance ToJSON ExportReadGroupSetsResponse where
5131− toJSON ExportReadGroupSetsResponse{..}
5132− = object (catMaybes [("jobId" .=) <$> _ergsrJobId])
3746+ ("callSetIds" .=) <$> _evsrCallSetIds,
3747+ ("projectId" .=) <$> _evsrProjectId])
51333748
3749+-- | Metadata describing an Operation.
51343750--
5135−-- /See:/ 'searchAnnotationsRequest' smart constructor.
5136−data SearchAnnotationsRequest = SearchAnnotationsRequest
5137− { _sarRange :: !(Maybe QueryRange)
5138− , _sarPageToken :: !(Maybe Text)
5139− , _sarAnnotationSetIds :: !(Maybe [Text])
5140− , _sarPageSize :: !(Maybe Int32)
3751+-- /See:/ 'operationMetadata' smart constructor.
3752+data OperationMetadata = OperationMetadata
3753+ { _omEvents :: !(Maybe [OperationEvent])
3754+ , _omProjectId :: !(Maybe Text)
3755+ , _omCreateTime :: !(Maybe Text)
3756+ , _omRequest :: !(Maybe OperationMetadataRequest)
51413757 } deriving (Eq,Show,Data,Typeable,Generic)
51423758
5143−-- | Creates a value of 'SearchAnnotationsRequest' with the minimum fields required to make a request.
3759+-- | Creates a value of 'OperationMetadata' with the minimum fields required to make a request.
51443760--
51453761-- Use one of the following lenses to modify other fields as desired:
51463762--
5147−-- * 'sarRange'
3763+-- * 'omEvents'
51483764--
5149−-- * 'sarPageToken'
3765+-- * 'omProjectId'
51503766--
5151−-- * 'sarAnnotationSetIds'
3767+-- * 'omCreateTime'
51523768--
5153−-- * 'sarPageSize'
5154−searchAnnotationsRequest
5155− :: SearchAnnotationsRequest
5156−searchAnnotationsRequest =
5157− SearchAnnotationsRequest
5158− { _sarRange = Nothing
5159− , _sarPageToken = Nothing
5160− , _sarAnnotationSetIds = Nothing
5161− , _sarPageSize = Nothing
3769+-- * 'omRequest'
3770+operationMetadata
3771+ :: OperationMetadata
3772+operationMetadata =
3773+ OperationMetadata
3774+ { _omEvents = Nothing
3775+ , _omProjectId = Nothing
3776+ , _omCreateTime = Nothing
3777+ , _omRequest = Nothing
51623778 }
51633779
5164−-- | If specified, this query matches only annotations that overlap this
5165−-- range.
5166−sarRange :: Lens' SearchAnnotationsRequest (Maybe QueryRange)
5167−sarRange = lens _sarRange (\ s a -> s{_sarRange = a})
5168−
5169−-- | The continuation token, which is used to page through large result sets.
5170−-- To get the next page of results, set this parameter to the value of
5171−-- nextPageToken from the previous response.
5172−sarPageToken :: Lens' SearchAnnotationsRequest (Maybe Text)
5173−sarPageToken
5174− = lens _sarPageToken (\ s a -> s{_sarPageToken = a})
5175−
5176−-- | The annotation sets to search within. The caller must have READ access
5177−-- to these annotation sets. Required. All queried annotation sets must
5178−-- have the same type.
5179−sarAnnotationSetIds :: Lens' SearchAnnotationsRequest [Text]
5180−sarAnnotationSetIds
5181− = lens _sarAnnotationSetIds
5182− (\ s a -> s{_sarAnnotationSetIds = a})
5183− . _Default
3780+-- | Optional event messages that were generated during the job\'s execution.
3781+-- This also contains any warnings that were generated during import or
3782+-- export.
3783+omEvents :: Lens' OperationMetadata [OperationEvent]
3784+omEvents
3785+ = lens _omEvents (\ s a -> s{_omEvents = a}) .
3786+ _Default
51843787 . _Coerce
51853788
5186−-- | Specifies number of results to return in a single page. If unspecified,
5187−-- it will default to 256. The maximum value is 2048.
5188−sarPageSize :: Lens' SearchAnnotationsRequest (Maybe Int32)
5189−sarPageSize
5190− = lens _sarPageSize (\ s a -> s{_sarPageSize = a})
3789+-- | The Google Cloud Project in which the job is scoped.
3790+omProjectId :: Lens' OperationMetadata (Maybe Text)
3791+omProjectId
3792+ = lens _omProjectId (\ s a -> s{_omProjectId = a})
3793+
3794+-- | The time at which the job was submitted to the Genomics service.
3795+omCreateTime :: Lens' OperationMetadata (Maybe Text)
3796+omCreateTime
3797+ = lens _omCreateTime (\ s a -> s{_omCreateTime = a})
3798+
3799+-- | The original request that started the operation. Note that this will be
3800+-- in current version of the API. If the operation was started with v1beta2
3801+-- API and a GetOperation is performed on v1 API, a v1 request will be
3802+-- returned.
3803+omRequest :: Lens' OperationMetadata (Maybe OperationMetadataRequest)
3804+omRequest
3805+ = lens _omRequest (\ s a -> s{_omRequest = a})
51913806
5192−instance FromJSON SearchAnnotationsRequest where
3807+instance FromJSON OperationMetadata where
51933808 parseJSON
5194− = withObject "SearchAnnotationsRequest"
3809+ = withObject "OperationMetadata"
51953810 (\ o ->
5196− SearchAnnotationsRequest <$>
5197− (o .:? "range") <*> (o .:? "pageToken") <*>
5198− (o .:? "annotationSetIds" .!= mempty)
5199− <*> (o .:? "pageSize"))
3811+ OperationMetadata <$>
3812+ (o .:? "events" .!= mempty) <*> (o .:? "projectId")
3813+ <*> (o .:? "createTime")
3814+ <*> (o .:? "request"))
52003815
5201−instance ToJSON SearchAnnotationsRequest where
5202− toJSON SearchAnnotationsRequest{..}
3816+instance ToJSON OperationMetadata where
3817+ toJSON OperationMetadata{..}
52033818 = object
52043819 (catMaybes
5205− [("range" .=) <$> _sarRange,
5206− ("pageToken" .=) <$> _sarPageToken,
5207− ("annotationSetIds" .=) <$> _sarAnnotationSetIds,
5208− ("pageSize" .=) <$> _sarPageSize])
5209−
5210−-- | A string which maps to an array of values.
5211−--
5212−-- /See:/ 'metadataInfo' smart constructor.
5213−data MetadataInfo =
5214− MetadataInfo
5215− deriving (Eq,Show,Data,Typeable,Generic)
5216−
5217−-- | Creates a value of 'MetadataInfo' with the minimum fields required to make a request.
5218−--
5219−metadataInfo
5220− :: MetadataInfo
5221−metadataInfo = MetadataInfo
5222−
5223−instance FromJSON MetadataInfo where
5224− parseJSON
5225− = withObject "MetadataInfo"
5226− (\ o -> pure MetadataInfo)
5227−
5228−instance ToJSON MetadataInfo where
5229− toJSON = const emptyObject
3820+ [("events" .=) <$> _omEvents,
3821+ ("projectId" .=) <$> _omProjectId,
3822+ ("createTime" .=) <$> _omCreateTime,
3823+ ("request" .=) <$> _omRequest])
52303824
52313825-- | The search variant sets response.
52323826--
@@ -5371,7 +3965,7 @@ svrMaxCalls
53713965
53723966-- | The continuation token, which is used to page through large result sets.
53733967-- To get the next page of results, set this parameter to the value of
5374−-- nextPageToken from the previous response.
3968+-- \`nextPageToken\` from the previous response.
53753969svrPageToken :: Lens' SearchVariantsRequest (Maybe Text)
53763970svrPageToken
53773971 = lens _svrPageToken (\ s a -> s{_svrPageToken = a})
@@ -5426,159 +4020,8 @@ instance ToJSON SearchVariantsRequest where
54264020 ("variantSetIds" .=) <$> _svrVariantSetIds,
54274021 ("pageSize" .=) <$> _svrPageSize])
54284022
5429−-- | A string which maps to an array of values.
5430−--
5431−-- /See:/ 'annotationSetInfo' smart constructor.
5432−data AnnotationSetInfo =
5433− AnnotationSetInfo
5434− deriving (Eq,Show,Data,Typeable,Generic)
5435−
5436−-- | Creates a value of 'AnnotationSetInfo' with the minimum fields required to make a request.
5437−--
5438−annotationSetInfo
5439− :: AnnotationSetInfo
5440−annotationSetInfo = AnnotationSetInfo
5441−
5442−instance FromJSON AnnotationSetInfo where
5443− parseJSON
5444− = withObject "AnnotationSetInfo"
5445− (\ o -> pure AnnotationSetInfo)
5446−
5447−instance ToJSON AnnotationSetInfo where
5448− toJSON = const emptyObject
5449−
5450−-- |
5451−--
5452−-- /See:/ 'variantAnnotationCondition' smart constructor.
5453−data VariantAnnotationCondition = VariantAnnotationCondition
5454− { _vacExternalIds :: !(Maybe [ExternalId])
5455− , _vacNames :: !(Maybe [Text])
5456− , _vacConceptId :: !(Maybe Text)
5457− , _vacOmimId :: !(Maybe Text)
5458− } deriving (Eq,Show,Data,Typeable,Generic)
5459−
5460−-- | Creates a value of 'VariantAnnotationCondition' with the minimum fields required to make a request.
5461−--
5462−-- Use one of the following lenses to modify other fields as desired:
5463−--
5464−-- * 'vacExternalIds'
5465−--
5466−-- * 'vacNames'
5467−--
5468−-- * 'vacConceptId'
5469−--
5470−-- * 'vacOmimId'
5471−variantAnnotationCondition
5472− :: VariantAnnotationCondition
5473−variantAnnotationCondition =
5474− VariantAnnotationCondition
5475− { _vacExternalIds = Nothing
5476− , _vacNames = Nothing
5477− , _vacConceptId = Nothing
5478− , _vacOmimId = Nothing
5479− }
5480−
5481−-- | The set of external IDs for this condition.
5482−vacExternalIds :: Lens' VariantAnnotationCondition [ExternalId]
5483−vacExternalIds
5484− = lens _vacExternalIds
5485− (\ s a -> s{_vacExternalIds = a})
5486− . _Default
5487− . _Coerce
5488−
5489−-- | A set of names for the condition.
5490−vacNames :: Lens' VariantAnnotationCondition [Text]
5491−vacNames
5492− = lens _vacNames (\ s a -> s{_vacNames = a}) .
5493− _Default
5494− . _Coerce
5495−
5496−-- | The MedGen concept id associated with this gene. Search for these IDs at
5497−-- http:\/\/www.ncbi.nlm.nih.gov\/medgen\/
5498−vacConceptId :: Lens' VariantAnnotationCondition (Maybe Text)
5499−vacConceptId
5500− = lens _vacConceptId (\ s a -> s{_vacConceptId = a})
5501−
5502−-- | The OMIM id for this condition. Search for these IDs at
5503−-- http:\/\/omim.org\/
5504−vacOmimId :: Lens' VariantAnnotationCondition (Maybe Text)
5505−vacOmimId
5506− = lens _vacOmimId (\ s a -> s{_vacOmimId = a})
5507−
5508−instance FromJSON VariantAnnotationCondition where
5509− parseJSON
5510− = withObject "VariantAnnotationCondition"
5511− (\ o ->
5512− VariantAnnotationCondition <$>
5513− (o .:? "externalIds" .!= mempty) <*>
5514− (o .:? "names" .!= mempty)
5515− <*> (o .:? "conceptId")
5516− <*> (o .:? "omimId"))
5517−
5518−instance ToJSON VariantAnnotationCondition where
5519− toJSON VariantAnnotationCondition{..}
5520− = object
5521− (catMaybes
5522− [("externalIds" .=) <$> _vacExternalIds,
5523− ("names" .=) <$> _vacNames,
5524− ("conceptId" .=) <$> _vacConceptId,
5525− ("omimId" .=) <$> _vacOmimId])
5526−
5527−--
5528−-- /See:/ 'searchAnnotationSetsResponse' smart constructor.
5529−data SearchAnnotationSetsResponse = SearchAnnotationSetsResponse
5530− { _sasrNextPageToken :: !(Maybe Text)
5531− , _sasrAnnotationSets :: !(Maybe [AnnotationSet])
5532− } deriving (Eq,Show,Data,Typeable,Generic)
5533−
5534−-- | Creates a value of 'SearchAnnotationSetsResponse' with the minimum fields required to make a request.
5535−--
5536−-- Use one of the following lenses to modify other fields as desired:
5537−--
5538−-- * 'sasrNextPageToken'
5539−--
5540−-- * 'sasrAnnotationSets'
5541−searchAnnotationSetsResponse
5542− :: SearchAnnotationSetsResponse
5543−searchAnnotationSetsResponse =
5544− SearchAnnotationSetsResponse
5545− { _sasrNextPageToken = Nothing
5546− , _sasrAnnotationSets = Nothing
5547− }
5548−
5549−-- | The continuation token, which is used to page through large result sets.
5550−-- Provide this value in a subsequent request to return the next page of
5551−-- results. This field will be empty if there aren\'t any additional
5552−-- results.
5553−sasrNextPageToken :: Lens' SearchAnnotationSetsResponse (Maybe Text)
5554−sasrNextPageToken
5555− = lens _sasrNextPageToken
5556− (\ s a -> s{_sasrNextPageToken = a})
5557−
5558−-- | The matching annotation sets.
5559−sasrAnnotationSets :: Lens' SearchAnnotationSetsResponse [AnnotationSet]
5560−sasrAnnotationSets
5561− = lens _sasrAnnotationSets
5562− (\ s a -> s{_sasrAnnotationSets = a})
5563− . _Default
5564− . _Coerce
5565−
5566−instance FromJSON SearchAnnotationSetsResponse where
5567− parseJSON
5568− = withObject "SearchAnnotationSetsResponse"
5569− (\ o ->
5570− SearchAnnotationSetsResponse <$>
5571− (o .:? "nextPageToken") <*>
5572− (o .:? "annotationSets" .!= mempty))
5573−
5574−instance ToJSON SearchAnnotationSetsResponse where
5575− toJSON SearchAnnotationSetsResponse{..}
5576− = object
5577− (catMaybes
5578− [("nextPageToken" .=) <$> _sasrNextPageToken,
5579− ("annotationSets" .=) <$> _sasrAnnotationSets])
5580−
5581−-- | A string which maps to an array of values.
4023+-- | A map of additional call set information. This must be of the form map
4024+-- (string key mapping to a list of string values).
55824025--
55834026-- /See:/ 'callSetInfo' smart constructor.
55844027data CallSetInfo =
@@ -5598,265 +4041,85 @@ instance FromJSON CallSetInfo where
55984041instance ToJSON CallSetInfo where
55994042 toJSON = const emptyObject
56004043
5601−-- | A 0-based half-open genomic coordinate range over a reference sequence,
5602−-- for representing the position of a genomic resource.
4044+-- | Remaining structured metadata key-value pairs. This must be of the form
4045+-- map (string key mapping to a list of string values).
56034046--
5604−-- /See:/ 'rangePosition' smart constructor.
5605−data RangePosition = RangePosition
5606− { _rpStart :: !(Maybe Int64)
5607− , _rpReverseStrand :: !(Maybe Bool)
5608− , _rpReferenceId :: !(Maybe Text)
5609− , _rpReferenceName :: !(Maybe Text)
5610− , _rpEnd :: !(Maybe Int64)
5611− } deriving (Eq,Show,Data,Typeable,Generic)
5612−
5613−-- | Creates a value of 'RangePosition' with the minimum fields required to make a request.
5614−--
5615−-- Use one of the following lenses to modify other fields as desired:
5616−--
5617−-- * 'rpStart'
5618−--
5619−-- * 'rpReverseStrand'
5620−--
5621−-- * 'rpReferenceId'
5622−--
5623−-- * 'rpReferenceName'
5624−--
5625−-- * 'rpEnd'
5626−rangePosition
5627− :: RangePosition
5628−rangePosition =
5629− RangePosition
5630− { _rpStart = Nothing
5631− , _rpReverseStrand = Nothing
5632− , _rpReferenceId = Nothing
5633− , _rpReferenceName = Nothing
5634− , _rpEnd = Nothing
5635− }
5636−
5637−-- | The start position of the range on the reference, 0-based inclusive.
5638−rpStart :: Lens' RangePosition (Maybe Int64)
5639−rpStart = lens _rpStart (\ s a -> s{_rpStart = a})
5640−
5641−-- | Whether this range refers to the reverse strand, as opposed to the
5642−-- forward strand. Note that regardless of this field, the start\/end
5643−-- position of the range always refer to the forward strand.
5644−rpReverseStrand :: Lens' RangePosition (Maybe Bool)
5645−rpReverseStrand
5646− = lens _rpReverseStrand
5647− (\ s a -> s{_rpReverseStrand = a})
5648−
5649−-- | The ID of the Google Genomics reference associated with this range.
5650−rpReferenceId :: Lens' RangePosition (Maybe Text)
5651−rpReferenceId
5652− = lens _rpReferenceId
5653− (\ s a -> s{_rpReferenceId = a})
5654−
5655−-- | The display name corresponding to the reference specified by
5656−-- referenceId, for example chr1, 1, or chrX.
5657−rpReferenceName :: Lens' RangePosition (Maybe Text)
5658−rpReferenceName
5659− = lens _rpReferenceName
5660− (\ s a -> s{_rpReferenceName = a})
5661−
5662−-- | The end position of the range on the reference, 0-based exclusive.
5663−rpEnd :: Lens' RangePosition (Maybe Int64)
5664−rpEnd = lens _rpEnd (\ s a -> s{_rpEnd = a})
5665−
5666−instance FromJSON RangePosition where
5667− parseJSON
5668− = withObject "RangePosition"
5669− (\ o ->
5670− RangePosition <$>
5671− (o .:? "start") <*> (o .:? "reverseStrand") <*>
5672− (o .:? "referenceId")
5673− <*> (o .:? "referenceName")
5674− <*> (o .:? "end"))
5675−
5676−instance ToJSON RangePosition where
5677− toJSON RangePosition{..}
5678− = object
5679− (catMaybes
5680− [("start" .=) <$> _rpStart,
5681− ("reverseStrand" .=) <$> _rpReverseStrand,
5682− ("referenceId" .=) <$> _rpReferenceId,
5683− ("referenceName" .=) <$> _rpReferenceName,
5684− ("end" .=) <$> _rpEnd])
5685−
5686−-- | A transcript represents the assertion that a particular region of the
5687−-- reference genome may be transcribed as RNA.
5688−--
5689−-- /See:/ 'transcript' smart constructor.
5690−data Transcript = Transcript
5691− { _tGeneId :: !(Maybe Text)
5692− , _tCodingSequence :: !(Maybe TranscriptCodingSequence)
5693− , _tExons :: !(Maybe [TranscriptExon])
5694− } deriving (Eq,Show,Data,Typeable,Generic)
4047+-- /See:/ 'variantSetMetadataInfo' smart constructor.
4048+data VariantSetMetadataInfo =
4049+ VariantSetMetadataInfo
4050+ deriving (Eq,Show,Data,Typeable,Generic)
56954051
5696−-- | Creates a value of 'Transcript' with the minimum fields required to make a request.
5697−--
5698−-- Use one of the following lenses to modify other fields as desired:
5699−--
5700−-- * 'tGeneId'
4052+-- | Creates a value of 'VariantSetMetadataInfo' with the minimum fields required to make a request.
57014053--
5702−-- * 'tCodingSequence'
5703−--
5704−-- * 'tExons'
5705−transcript
5706− :: Transcript
5707−transcript =
5708− Transcript
5709− { _tGeneId = Nothing
5710− , _tCodingSequence = Nothing
5711− , _tExons = Nothing
5712− }
4054+variantSetMetadataInfo
4055+ :: VariantSetMetadataInfo
4056+variantSetMetadataInfo = VariantSetMetadataInfo
57134057
5714−-- | The annotation ID of the gene from which this transcript is transcribed.
5715−tGeneId :: Lens' Transcript (Maybe Text)
5716−tGeneId = lens _tGeneId (\ s a -> s{_tGeneId = a})
5717−
5718−-- | The range of the coding sequence for this transcript, if any. To
5719−-- determine the exact ranges of coding sequence, intersect this range with
5720−-- those of the exons, if any. If there are any exons, the codingSequence
5721−-- must start and end within them. Note that in some cases, the reference
5722−-- genome will not exactly match the observed mRNA transcript e.g. due to
5723−-- variance in the source genome from reference. In these cases, exon.frame
5724−-- will not necessarily match the expected reference reading frame and
5725−-- coding exon reference bases cannot necessarily be concatenated to
5726−-- produce the original transcript mRNA.
5727−tCodingSequence :: Lens' Transcript (Maybe TranscriptCodingSequence)
5728−tCodingSequence
5729− = lens _tCodingSequence
5730− (\ s a -> s{_tCodingSequence = a})
5731−
5732−-- | The exons that compose this transcript. This field should be unset for
5733−-- genomes where transcript splicing does not occur, for example
5734−-- prokaryotes. Introns are regions of the transcript that are not included
5735−-- in the spliced RNA product. Though not explicitly modeled here, intron
5736−-- ranges can be deduced; all regions of this transcript that are not exons
5737−-- are introns. Exonic sequences do not necessarily code for a
5738−-- translational product (amino acids). Only the regions of exons bounded
5739−-- by the codingSequence correspond to coding DNA sequence. Exons are
5740−-- ordered by start position and may not overlap.
5741−tExons :: Lens' Transcript [TranscriptExon]
5742−tExons
5743− = lens _tExons (\ s a -> s{_tExons = a}) . _Default .
5744− _Coerce
5745−
5746−instance FromJSON Transcript where
4058+instance FromJSON VariantSetMetadataInfo where
57474059 parseJSON
5748− = withObject "Transcript"
5749− (\ o ->
5750− Transcript <$>
5751− (o .:? "geneId") <*> (o .:? "codingSequence") <*>
5752− (o .:? "exons" .!= mempty))
4060+ = withObject "VariantSetMetadataInfo"
4061+ (\ o -> pure VariantSetMetadataInfo)
57534062
5754−instance ToJSON Transcript where
5755− toJSON Transcript{..}
5756− = object
5757− (catMaybes
5758− [("geneId" .=) <$> _tGeneId,
5759− ("codingSequence" .=) <$> _tCodingSequence,
5760− ("exons" .=) <$> _tExons])
4063+instance ToJSON VariantSetMetadataInfo where
4064+ toJSON = const emptyObject
57614065
4066+-- | If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned.
4067+-- If importing Variants, an ImportVariantsResponse is returned. For
4068+-- exports, an empty response is returned.
57624069--
5763−-- /See:/ 'transcriptCodingSequence' smart constructor.
5764−data TranscriptCodingSequence = TranscriptCodingSequence
5765− { _tcsStart :: !(Maybe Int64)
5766− , _tcsEnd :: !(Maybe Int64)
5767− } deriving (Eq,Show,Data,Typeable,Generic)
4070+-- /See:/ 'operationResponse' smart constructor.
4071+data OperationResponse =
4072+ OperationResponse
4073+ deriving (Eq,Show,Data,Typeable,Generic)
57684074
5769−-- | Creates a value of 'TranscriptCodingSequence' with the minimum fields required to make a request.
4075+-- | Creates a value of 'OperationResponse' with the minimum fields required to make a request.
57704076--
5771−-- Use one of the following lenses to modify other fields as desired:
5772−--
5773−-- * 'tcsStart'
5774−--
5775−-- * 'tcsEnd'
5776−transcriptCodingSequence
5777− :: TranscriptCodingSequence
5778−transcriptCodingSequence =
5779− TranscriptCodingSequence
5780− { _tcsStart = Nothing
5781− , _tcsEnd = Nothing
5782− }
4077+operationResponse
4078+ :: OperationResponse
4079+operationResponse = OperationResponse
57834080
5784−-- | The start of the coding sequence on this annotation\'s reference
5785−-- sequence, 0-based inclusive. Note that this position is relative to the
5786−-- reference start, and not the containing annotation start.
5787−tcsStart :: Lens' TranscriptCodingSequence (Maybe Int64)
5788−tcsStart = lens _tcsStart (\ s a -> s{_tcsStart = a})
5789−
5790−-- | The end of the coding sequence on this annotation\'s reference sequence,
5791−-- 0-based exclusive. Note that this position is relative to the reference
5792−-- start, and not the containing annotation start.
5793−tcsEnd :: Lens' TranscriptCodingSequence (Maybe Int64)
5794−tcsEnd = lens _tcsEnd (\ s a -> s{_tcsEnd = a})
5795−
5796−instance FromJSON TranscriptCodingSequence where
4081+instance FromJSON OperationResponse where
57974082 parseJSON
5798− = withObject "TranscriptCodingSequence"
5799− (\ o ->
5800− TranscriptCodingSequence <$>
5801− (o .:? "start") <*> (o .:? "end"))
4083+ = withObject "OperationResponse"
4084+ (\ o -> pure OperationResponse)
58024085
5803−instance ToJSON TranscriptCodingSequence where
5804− toJSON TranscriptCodingSequence{..}
5805− = object
5806− (catMaybes
5807− [("start" .=) <$> _tcsStart, ("end" .=) <$> _tcsEnd])
4086+instance ToJSON OperationResponse where
4087+ toJSON = const emptyObject
58084088
5809−-- | The job search response.
4089+-- | An event that occurred during an Operation.
58104090--
5811−-- /See:/ 'searchJobsResponse' smart constructor.
5812−data SearchJobsResponse = SearchJobsResponse
5813− { _sjrNextPageToken :: !(Maybe Text)
5814− , _sjrJobs :: !(Maybe [Job])
4091+-- /See:/ 'operationEvent' smart constructor.
4092+newtype OperationEvent = OperationEvent
4093+ { _oeDescription :: Maybe Text
58154094 } deriving (Eq,Show,Data,Typeable,Generic)
58164095
5817−-- | Creates a value of 'SearchJobsResponse' with the minimum fields required to make a request.
4096+-- | Creates a value of 'OperationEvent' with the minimum fields required to make a request.
58184097--
58194098-- Use one of the following lenses to modify other fields as desired:
58204099--
5821−-- * 'sjrNextPageToken'
5822−--
5823−-- * 'sjrJobs'
5824−searchJobsResponse
5825− :: SearchJobsResponse
5826−searchJobsResponse =
5827− SearchJobsResponse
5828− { _sjrNextPageToken = Nothing
5829− , _sjrJobs = Nothing
4100+-- * 'oeDescription'
4101+operationEvent
4102+ :: OperationEvent
4103+operationEvent =
4104+ OperationEvent
4105+ { _oeDescription = Nothing
58304106 }
58314107
5832−-- | The continuation token which is used to page through large result sets.
5833−-- Provide this value is a subsequent request to return the next page of
5834−-- results. This field will be empty if there are no more results.
5835−sjrNextPageToken :: Lens' SearchJobsResponse (Maybe Text)
5836−sjrNextPageToken
5837− = lens _sjrNextPageToken
5838− (\ s a -> s{_sjrNextPageToken = a})
5839−
5840−-- | The list of jobs results, ordered newest to oldest.
5841−sjrJobs :: Lens' SearchJobsResponse [Job]
5842−sjrJobs
5843− = lens _sjrJobs (\ s a -> s{_sjrJobs = a}) . _Default
5844− . _Coerce
4108+-- | Required description of event.
4109+oeDescription :: Lens' OperationEvent (Maybe Text)
4110+oeDescription
4111+ = lens _oeDescription
4112+ (\ s a -> s{_oeDescription = a})
58454113
5846−instance FromJSON SearchJobsResponse where
4114+instance FromJSON OperationEvent where
58474115 parseJSON
5848− = withObject "SearchJobsResponse"
5849− (\ o ->
5850− SearchJobsResponse <$>
5851− (o .:? "nextPageToken") <*>
5852− (o .:? "jobs" .!= mempty))
4116+ = withObject "OperationEvent"
4117+ (\ o -> OperationEvent <$> (o .:? "description"))
58534118
5854−instance ToJSON SearchJobsResponse where
5855− toJSON SearchJobsResponse{..}
4119+instance ToJSON OperationEvent where
4120+ toJSON OperationEvent{..}
58564121 = object
5857− (catMaybes
5858− [("nextPageToken" .=) <$> _sjrNextPageToken,
5859− ("jobs" .=) <$> _sjrJobs])
4122+ (catMaybes [("description" .=) <$> _oeDescription])
58604123
58614124-- | ReferenceBound records an upper bound for the starting coordinate of
58624125-- variants in a particular reference.
@@ -5908,6 +4171,88 @@ instance ToJSON ReferenceBound where
59084171 [("upperBound" .=) <$> _rbUpperBound,
59094172 ("referenceName" .=) <$> _rbReferenceName])
59104173
4174+--
4175+-- /See:/ 'undeleteDatasetRequest' smart constructor.
4176+data UndeleteDatasetRequest =
4177+ UndeleteDatasetRequest
4178+ deriving (Eq,Show,Data,Typeable,Generic)
4179+
4180+-- | Creates a value of 'UndeleteDatasetRequest' with the minimum fields required to make a request.
4181+--
4182+undeleteDatasetRequest
4183+ :: UndeleteDatasetRequest
4184+undeleteDatasetRequest = UndeleteDatasetRequest
4185+
4186+instance FromJSON UndeleteDatasetRequest where
4187+ parseJSON
4188+ = withObject "UndeleteDatasetRequest"
4189+ (\ o -> pure UndeleteDatasetRequest)
4190+
4191+instance ToJSON UndeleteDatasetRequest where
4192+ toJSON = const emptyObject
4193+
4194+-- | Associates \`members\` with a \`role\`.
4195+--
4196+-- /See:/ 'binding' smart constructor.
4197+data Binding = Binding
4198+ { _bMembers :: !(Maybe [Text])
4199+ , _bRole :: !(Maybe Text)
4200+ } deriving (Eq,Show,Data,Typeable,Generic)
4201+
4202+-- | Creates a value of 'Binding' with the minimum fields required to make a request.
4203+--
4204+-- Use one of the following lenses to modify other fields as desired:
4205+--
4206+-- * 'bMembers'
4207+--
4208+-- * 'bRole'
4209+binding
4210+ :: Binding
4211+binding =
4212+ Binding
4213+ { _bMembers = Nothing
4214+ , _bRole = Nothing
4215+ }
4216+
4217+-- | Specifies the identities requesting access for a Cloud Platform
4218+-- resource. \`members\` can have the following formats: * \`allUsers\`: A
4219+-- special identifier that represents anyone who is on the internet; with
4220+-- or without a Google account. * \`allAuthenticatedUsers\`: A special
4221+-- identifier that represents anyone who is authenticated with a Google
4222+-- account or a service account. * \`user:{emailid}\`: An email address
4223+-- that represents a specific Google account. For example,
4224+-- \`alice\'gmail.com\` or \`joe\'example.com\`. *
4225+-- \`serviceAccount:{emailid}\`: An email address that represents a service
4226+-- account. For example, \`my-other-app\'appspot.gserviceaccount.com\`. *
4227+-- \`group:{emailid}\`: An email address that represents a Google group.
4228+-- For example, \`admins\'example.com\`. * \`domain:{domain}\`: A Google
4229+-- Apps domain name that represents all the users of that domain. For
4230+-- example, \`google.com\` or \`example.com\`.
4231+bMembers :: Lens' Binding [Text]
4232+bMembers
4233+ = lens _bMembers (\ s a -> s{_bMembers = a}) .
4234+ _Default
4235+ . _Coerce
4236+
4237+-- | Role that is assigned to \`members\`. For example, \`roles\/viewer\`,
4238+-- \`roles\/editor\`, or \`roles\/owner\`. Required
4239+bRole :: Lens' Binding (Maybe Text)
4240+bRole = lens _bRole (\ s a -> s{_bRole = a})
4241+
4242+instance FromJSON Binding where
4243+ parseJSON
4244+ = withObject "Binding"
4245+ (\ o ->
4246+ Binding <$>
4247+ (o .:? "members" .!= mempty) <*> (o .:? "role"))
4248+
4249+instance ToJSON Binding where
4250+ toJSON Binding{..}
4251+ = object
4252+ (catMaybes
4253+ [("members" .=) <$> _bMembers,
4254+ ("role" .=) <$> _bRole])
4255+
59114256-- | An abstraction for referring to a genomic position, in relation to some
59124257-- already known reference. For now, represents a genomic position as a
59134258-- reference name, a base number on that reference (0-based), and a
@@ -6028,7 +4373,7 @@ instance ToJSON SearchReadGroupSetsResponse where
60284373 [("nextPageToken" .=) <$> _srgsrNextPageToken,
60294374 ("readGroupSets" .=) <$> _srgsrReadGroupSets])
60304375
6031−-- | A string which maps to an array of values.
4376+-- | A map of additional read group set information.
60324377--
60334378-- /See:/ 'readGroupSetInfo' smart constructor.
60344379data ReadGroupSetInfo =
@@ -6050,10 +4395,10 @@ instance ToJSON ReadGroupSetInfo where
60504395 toJSON = const emptyObject
60514396
60524397-- | A reference set is a set of references which typically comprise a
6053−-- reference assembly for a species, such as GRCh38 which is representative
6054−-- of the human genome. A reference set defines a common coordinate space
6055−-- for comparing reference-aligned experimental data. A reference set
6056−-- contains 1 or more references.
4398+-- reference assembly for a species, such as \`GRCh38\` which is
4399+-- representative of the human genome. A reference set defines a common
4400+-- coordinate space for comparing reference-aligned experimental data. A
4401+-- reference set contains 1 or more references.
60574402--
60584403-- /See:/ 'referenceSet' smart constructor.
60594404data ReferenceSet = ReferenceSet
@@ -6101,7 +4446,7 @@ referenceSet =
61014446 }
61024447
61034448-- | All known corresponding accession IDs in INSDC (GenBank\/ENA\/DDBJ)
6104−-- ideally with a version number, for example NC_000001.11.
4449+-- ideally with a version number, for example \`NC_000001.11\`.
61054450rsSourceAccessions :: Lens' ReferenceSet [Text]
61064451rsSourceAccessions
61074452 = lens _rsSourceAccessions
@@ -6110,7 +4455,7 @@ rsSourceAccessions
61104455 . _Coerce
61114456
61124457-- | The IDs of the reference objects that are part of this set.
6113−-- Reference.md5checksum must be unique within this set.
4458+-- \`Reference.md5checksum\` must be unique within this set.
61144459rsReferenceIds :: Lens' ReferenceSet [Text]
61154460rsReferenceIds
61164461 = lens _rsReferenceIds
@@ -6120,7 +4465,7 @@ rsReferenceIds
61204465
61214466-- | Order-independent MD5 checksum which identifies this reference set. The
61224467-- checksum is computed by sorting all lower case hexidecimal string
6123−-- reference.md5checksum (for all reference in this set) in ascending
4468+-- \`reference.md5checksum\` (for all reference in this set) in ascending
61244469-- lexicographic order, concatenating, and taking the MD5 of that value.
61254470-- The resulting value is represented in lower case hexadecimal format.
61264471rsMD5checksum :: Lens' ReferenceSet (Maybe Text)
@@ -6130,7 +4475,7 @@ rsMD5checksum
61304475
61314476-- | ID from http:\/\/www.ncbi.nlm.nih.gov\/taxonomy (e.g. 9606->human)
61324477-- indicating the species which this assembly is intended to model. Note
6133−-- that contained references may specify a different ncbiTaxonId, as
4478+-- that contained references may specify a different \`ncbiTaxonId\`, as
61344479-- assemblies may contain reference sequences which do not belong to the
61354480-- modeled species, e.g. EBV in a human reference genome.
61364481rsNcbiTaxonId :: Lens' ReferenceSet (Maybe Int32)
@@ -6138,11 +4483,11 @@ rsNcbiTaxonId
61384483 = lens _rsNcbiTaxonId
61394484 (\ s a -> s{_rsNcbiTaxonId = a})
61404485
6141−-- | The Google generated immutable ID of the reference set.
4486+-- | The server-generated reference set ID, unique across all reference sets.
61424487rsId :: Lens' ReferenceSet (Maybe Text)
61434488rsId = lens _rsId (\ s a -> s{_rsId = a})
61444489
6145−-- | Public id of this reference set, such as GRCh37.
4490+-- | Public id of this reference set, such as \`GRCh37\`.
61464491rsAssemblyId :: Lens' ReferenceSet (Maybe Text)
61474492rsAssemblyId
61484493 = lens _rsAssemblyId (\ s a -> s{_rsAssemblyId = a})
@@ -6169,7 +4514,7 @@ instance FromJSON ReferenceSet where
61694514 <*> (o .:? "ncbiTaxonId")
61704515 <*> (o .:? "id")
61714516 <*> (o .:? "assemblyId")
6172− <*> (o .:? "sourceURI")
4517+ <*> (o .:? "sourceUri")
61734518 <*> (o .:? "description"))
61744519
61754520instance ToJSON ReferenceSet where
@@ -6182,5 +4527,5 @@ instance ToJSON ReferenceSet where
61824527 ("ncbiTaxonId" .=) <$> _rsNcbiTaxonId,
61834528 ("id" .=) <$> _rsId,
61844529 ("assemblyId" .=) <$> _rsAssemblyId,
6185− ("sourceURI" .=) <$> _rsSourceURI,
4530+ ("sourceUri" .=) <$> _rsSourceURI,
61864531 ("description" .=) <$> _rsDescription])
gogol-genomics/gen/Network/Google/Genomics/Types/Sum.hs−613
@@ -17,616 +17,3 @@
1717module Network.Google.Genomics.Types.Sum where
1818
1919import Network.Google.Prelude
20−
21−data SearchAnnotationSetsRequestTypesItem
22− = SASRTIGene
23− -- ^ @GENE@
24− | SASRTIGeneric
25− -- ^ @GENERIC@
26− | SASRTITranscript
27− -- ^ @TRANSCRIPT@
28− | SASRTIVariant
29− -- ^ @VARIANT@
30− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
31−
32−instance Hashable SearchAnnotationSetsRequestTypesItem
33−
34−instance FromText SearchAnnotationSetsRequestTypesItem where
35− fromText = \case
36− "GENE" -> Just SASRTIGene
37− "GENERIC" -> Just SASRTIGeneric
38− "TRANSCRIPT" -> Just SASRTITranscript
39− "VARIANT" -> Just SASRTIVariant
40− _ -> Nothing
41−
42−instance ToText SearchAnnotationSetsRequestTypesItem where
43− toText = \case
44− SASRTIGene -> "GENE"
45− SASRTIGeneric -> "GENERIC"
46− SASRTITranscript -> "TRANSCRIPT"
47− SASRTIVariant -> "VARIANT"
48−
49−instance FromJSON SearchAnnotationSetsRequestTypesItem where
50− parseJSON = parseJSONText "SearchAnnotationSetsRequestTypesItem"
51−
52−instance ToJSON SearchAnnotationSetsRequestTypesItem where
53− toJSON = toJSONText
54−
55−-- | Effect of the variant on the coding sequence.
56−data VariantAnnotationEffect
57− = EffectUnspecified
58− -- ^ @EFFECT_UNSPECIFIED@
59− | Frameshift
60− -- ^ @FRAMESHIFT@
61− | FramePreservingIndel
62− -- ^ @FRAME_PRESERVING_INDEL@
63− | NonsynonymousSnp
64− -- ^ @NONSYNONYMOUS_SNP@
65− | Other
66− -- ^ @OTHER@
67− | SpliceSiteDisruption
68− -- ^ @SPLICE_SITE_DISRUPTION@
69− | StopGain
70− -- ^ @STOP_GAIN@
71− | StopLoss
72− -- ^ @STOP_LOSS@
73− | SynonymousSnp
74− -- ^ @SYNONYMOUS_SNP@
75− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
76−
77−instance Hashable VariantAnnotationEffect
78−
79−instance FromText VariantAnnotationEffect where
80− fromText = \case
81− "EFFECT_UNSPECIFIED" -> Just EffectUnspecified
82− "FRAMESHIFT" -> Just Frameshift
83− "FRAME_PRESERVING_INDEL" -> Just FramePreservingIndel
84− "NONSYNONYMOUS_SNP" -> Just NonsynonymousSnp
85− "OTHER" -> Just Other
86− "SPLICE_SITE_DISRUPTION" -> Just SpliceSiteDisruption
87− "STOP_GAIN" -> Just StopGain
88− "STOP_LOSS" -> Just StopLoss
89− "SYNONYMOUS_SNP" -> Just SynonymousSnp
90− _ -> Nothing
91−
92−instance ToText VariantAnnotationEffect where
93− toText = \case
94− EffectUnspecified -> "EFFECT_UNSPECIFIED"
95− Frameshift -> "FRAMESHIFT"
96− FramePreservingIndel -> "FRAME_PRESERVING_INDEL"
97− NonsynonymousSnp -> "NONSYNONYMOUS_SNP"
98− Other -> "OTHER"
99− SpliceSiteDisruption -> "SPLICE_SITE_DISRUPTION"
100− StopGain -> "STOP_GAIN"
101− StopLoss -> "STOP_LOSS"
102− SynonymousSnp -> "SYNONYMOUS_SNP"
103−
104−instance FromJSON VariantAnnotationEffect where
105− parseJSON = parseJSONText "VariantAnnotationEffect"
106−
107−instance ToJSON VariantAnnotationEffect where
108− toJSON = toJSONText
109−
110−-- | The type of data. Possible types include: Integer, Float, Flag,
111−-- Character, and String.
112−data MetadataType
113− = Character
114− -- ^ @CHARACTER@
115− | Flag
116− -- ^ @FLAG@
117− | Float
118− -- ^ @FLOAT@
119− | Integer
120− -- ^ @INTEGER@
121− | String
122− -- ^ @STRING@
123− | UnknownType
124− -- ^ @UNKNOWN_TYPE@
125− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
126−
127−instance Hashable MetadataType
128−
129−instance FromText MetadataType where
130− fromText = \case
131− "CHARACTER" -> Just Character
132− "FLAG" -> Just Flag
133− "FLOAT" -> Just Float
134− "INTEGER" -> Just Integer
135− "STRING" -> Just String
136− "UNKNOWN_TYPE" -> Just UnknownType
137− _ -> Nothing
138−
139−instance ToText MetadataType where
140− toText = \case
141− Character -> "CHARACTER"
142− Flag -> "FLAG"
143− Float -> "FLOAT"
144− Integer -> "INTEGER"
145− String -> "STRING"
146− UnknownType -> "UNKNOWN_TYPE"
147−
148−instance FromJSON MetadataType where
149− parseJSON = parseJSONText "MetadataType"
150−
151−instance ToJSON MetadataType where
152− toJSON = toJSONText
153−
154−-- | The type of annotations contained within this set.
155−data AnnotationSetType
156− = ASTGene
157− -- ^ @GENE@
158− | ASTGeneric
159− -- ^ @GENERIC@
160− | ASTTranscript
161− -- ^ @TRANSCRIPT@
162− | ASTVariant
163− -- ^ @VARIANT@
164− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
165−
166−instance Hashable AnnotationSetType
167−
168−instance FromText AnnotationSetType where
169− fromText = \case
170− "GENE" -> Just ASTGene
171− "GENERIC" -> Just ASTGeneric
172− "TRANSCRIPT" -> Just ASTTranscript
173− "VARIANT" -> Just ASTVariant
174− _ -> Nothing
175−
176−instance ToText AnnotationSetType where
177− toText = \case
178− ASTGene -> "GENE"
179− ASTGeneric -> "GENERIC"
180− ASTTranscript -> "TRANSCRIPT"
181− ASTVariant -> "VARIANT"
182−
183−instance FromJSON AnnotationSetType where
184− parseJSON = parseJSONText "AnnotationSetType"
185−
186−instance ToJSON AnnotationSetType where
187− toJSON = toJSONText
188−
189−-- | Describes the clinical significance of a variant. It is adapted from the
190−-- ClinVar controlled vocabulary for clinical significance described at:
191−-- http:\/\/www.ncbi.nlm.nih.gov\/clinvar\/docs\/clinsig\/
192−data VariantAnnotationClinicalSignificance
193− = VACSAssociation
194− -- ^ @ASSOCIATION@
195− | VACSBenign
196− -- ^ @BENIGN@
197− | VACSClinicalSignificanceUnspecified
198− -- ^ @CLINICAL_SIGNIFICANCE_UNSPECIFIED@
199− | VACSConfersSensitivity
200− -- ^ @CONFERS_SENSITIVITY@
201− | VACSDrugResponse
202− -- ^ @DRUG_RESPONSE@
203− | VACSHistocompatibility
204− -- ^ @HISTOCOMPATIBILITY@
205− | VACSLikelyBenign
206− -- ^ @LIKELY_BENIGN@
207− | VACSLikelyPathogenic
208− -- ^ @LIKELY_PATHOGENIC@
209− | VACSMultipleReported
210− -- ^ @MULTIPLE_REPORTED@
211− | VACSOther
212− -- ^ @OTHER@
213− | VACSPathogenic
214− -- ^ @PATHOGENIC@
215− | VACSProtective
216− -- ^ @PROTECTIVE@
217− | VACSRiskFactor
218− -- ^ @RISK_FACTOR@
219− | VACSUncertain
220− -- ^ @UNCERTAIN@
221− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
222−
223−instance Hashable VariantAnnotationClinicalSignificance
224−
225−instance FromText VariantAnnotationClinicalSignificance where
226− fromText = \case
227− "ASSOCIATION" -> Just VACSAssociation
228− "BENIGN" -> Just VACSBenign
229− "CLINICAL_SIGNIFICANCE_UNSPECIFIED" -> Just VACSClinicalSignificanceUnspecified
230− "CONFERS_SENSITIVITY" -> Just VACSConfersSensitivity
231− "DRUG_RESPONSE" -> Just VACSDrugResponse
232− "HISTOCOMPATIBILITY" -> Just VACSHistocompatibility
233− "LIKELY_BENIGN" -> Just VACSLikelyBenign
234− "LIKELY_PATHOGENIC" -> Just VACSLikelyPathogenic
235− "MULTIPLE_REPORTED" -> Just VACSMultipleReported
236− "OTHER" -> Just VACSOther
237− "PATHOGENIC" -> Just VACSPathogenic
238− "PROTECTIVE" -> Just VACSProtective
239− "RISK_FACTOR" -> Just VACSRiskFactor
240− "UNCERTAIN" -> Just VACSUncertain
241− _ -> Nothing
242−
243−instance ToText VariantAnnotationClinicalSignificance where
244− toText = \case
245− VACSAssociation -> "ASSOCIATION"
246− VACSBenign -> "BENIGN"
247− VACSClinicalSignificanceUnspecified -> "CLINICAL_SIGNIFICANCE_UNSPECIFIED"
248− VACSConfersSensitivity -> "CONFERS_SENSITIVITY"
249− VACSDrugResponse -> "DRUG_RESPONSE"
250− VACSHistocompatibility -> "HISTOCOMPATIBILITY"
251− VACSLikelyBenign -> "LIKELY_BENIGN"
252− VACSLikelyPathogenic -> "LIKELY_PATHOGENIC"
253− VACSMultipleReported -> "MULTIPLE_REPORTED"
254− VACSOther -> "OTHER"
255− VACSPathogenic -> "PATHOGENIC"
256− VACSProtective -> "PROTECTIVE"
257− VACSRiskFactor -> "RISK_FACTOR"
258− VACSUncertain -> "UNCERTAIN"
259−
260−instance FromJSON VariantAnnotationClinicalSignificance where
261− parseJSON = parseJSONText "VariantAnnotationClinicalSignificance"
262−
263−instance ToJSON VariantAnnotationClinicalSignificance where
264− toJSON = toJSONText
265−
266−-- | The partition strategy describes how read groups are partitioned into
267−-- read group sets.
268−data ImportReadGroupSetsRequestPartitionStrategy
269− = MergeAll
270− -- ^ @MERGE_ALL@
271− | PerFilePerSample
272− -- ^ @PER_FILE_PER_SAMPLE@
273− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
274−
275−instance Hashable ImportReadGroupSetsRequestPartitionStrategy
276−
277−instance FromText ImportReadGroupSetsRequestPartitionStrategy where
278− fromText = \case
279− "MERGE_ALL" -> Just MergeAll
280− "PER_FILE_PER_SAMPLE" -> Just PerFilePerSample
281− _ -> Nothing
282−
283−instance ToText ImportReadGroupSetsRequestPartitionStrategy where
284− toText = \case
285− MergeAll -> "MERGE_ALL"
286− PerFilePerSample -> "PER_FILE_PER_SAMPLE"
287−
288−instance FromJSON ImportReadGroupSetsRequestPartitionStrategy where
289− parseJSON = parseJSONText "ImportReadGroupSetsRequestPartitionStrategy"
290−
291−instance ToJSON ImportReadGroupSetsRequestPartitionStrategy where
292− toJSON = toJSONText
293−
294−-- | The data type for this annotation. Must match the containing annotation
295−-- set\'s type.
296−data AnnotationType
297− = ATGene
298− -- ^ @GENE@
299− | ATGeneric
300− -- ^ @GENERIC@
301− | ATTranscript
302− -- ^ @TRANSCRIPT@
303− | ATVariant
304− -- ^ @VARIANT@
305− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
306−
307−instance Hashable AnnotationType
308−
309−instance FromText AnnotationType where
310− fromText = \case
311− "GENE" -> Just ATGene
312− "GENERIC" -> Just ATGeneric
313− "TRANSCRIPT" -> Just ATTranscript
314− "VARIANT" -> Just ATVariant
315− _ -> Nothing
316−
317−instance ToText AnnotationType where
318− toText = \case
319− ATGene -> "GENE"
320− ATGeneric -> "GENERIC"
321− ATTranscript -> "TRANSCRIPT"
322− ATVariant -> "VARIANT"
323−
324−instance FromJSON AnnotationType where
325− parseJSON = parseJSONText "AnnotationType"
326−
327−instance ToJSON AnnotationType where
328− toJSON = toJSONText
329−
330−data SearchJobsRequestStatusItem
331− = Canceled
332− -- ^ @CANCELED@
333− | Failure
334− -- ^ @FAILURE@
335− | New
336− -- ^ @NEW@
337− | Pending
338− -- ^ @PENDING@
339− | Running
340− -- ^ @RUNNING@
341− | Success
342− -- ^ @SUCCESS@
343− | UnknownStatus
344− -- ^ @UNKNOWN_STATUS@
345− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
346−
347−instance Hashable SearchJobsRequestStatusItem
348−
349−instance FromText SearchJobsRequestStatusItem where
350− fromText = \case
351− "CANCELED" -> Just Canceled
352− "FAILURE" -> Just Failure
353− "NEW" -> Just New
354− "PENDING" -> Just Pending
355− "RUNNING" -> Just Running
356− "SUCCESS" -> Just Success
357− "UNKNOWN_STATUS" -> Just UnknownStatus
358− _ -> Nothing
359−
360−instance ToText SearchJobsRequestStatusItem where
361− toText = \case
362− Canceled -> "CANCELED"
363− Failure -> "FAILURE"
364− New -> "NEW"
365− Pending -> "PENDING"
366− Running -> "RUNNING"
367− Success -> "SUCCESS"
368− UnknownStatus -> "UNKNOWN_STATUS"
369−
370−instance FromJSON SearchJobsRequestStatusItem where
371− parseJSON = parseJSONText "SearchJobsRequestStatusItem"
372−
373−instance ToJSON SearchJobsRequestStatusItem where
374− toJSON = toJSONText
375−
376−data CigarUnitOperation
377− = AlignmentMatch
378− -- ^ @ALIGNMENT_MATCH@
379− | ClipHard
380− -- ^ @CLIP_HARD@
381− | ClipSoft
382− -- ^ @CLIP_SOFT@
383− | Delete'
384− -- ^ @DELETE@
385− | Insert
386− -- ^ @INSERT@
387− | OperationUnspecified
388− -- ^ @OPERATION_UNSPECIFIED@
389− | Pad
390− -- ^ @PAD@
391− | SequenceMatch
392− -- ^ @SEQUENCE_MATCH@
393− | SequenceMismatch
394− -- ^ @SEQUENCE_MISMATCH@
395− | Skip
396− -- ^ @SKIP@
397− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
398−
399−instance Hashable CigarUnitOperation
400−
401−instance FromText CigarUnitOperation where
402− fromText = \case
403− "ALIGNMENT_MATCH" -> Just AlignmentMatch
404− "CLIP_HARD" -> Just ClipHard
405− "CLIP_SOFT" -> Just ClipSoft
406− "DELETE" -> Just Delete'
407− "INSERT" -> Just Insert
408− "OPERATION_UNSPECIFIED" -> Just OperationUnspecified
409− "PAD" -> Just Pad
410− "SEQUENCE_MATCH" -> Just SequenceMatch
411− "SEQUENCE_MISMATCH" -> Just SequenceMismatch
412− "SKIP" -> Just Skip
413− _ -> Nothing
414−
415−instance ToText CigarUnitOperation where
416− toText = \case
417− AlignmentMatch -> "ALIGNMENT_MATCH"
418− ClipHard -> "CLIP_HARD"
419− ClipSoft -> "CLIP_SOFT"
420− Delete' -> "DELETE"
421− Insert -> "INSERT"
422− OperationUnspecified -> "OPERATION_UNSPECIFIED"
423− Pad -> "PAD"
424− SequenceMatch -> "SEQUENCE_MATCH"
425− SequenceMismatch -> "SEQUENCE_MISMATCH"
426− Skip -> "SKIP"
427−
428−instance FromJSON CigarUnitOperation where
429− parseJSON = parseJSONText "CigarUnitOperation"
430−
431−instance ToJSON CigarUnitOperation where
432− toJSON = toJSONText
433−
434−-- | Type has been adapted from ClinVar\'s list of variant types.
435−data VariantAnnotationType
436− = VATCnv
437− -- ^ @CNV@
438− | VATDeletion
439− -- ^ @DELETION@
440− | VATInsertion
441− -- ^ @INSERTION@
442− | VATOther
443− -- ^ @OTHER@
444− | VATSnp
445− -- ^ @SNP@
446− | VATStructural
447− -- ^ @STRUCTURAL@
448− | VATSubstitution
449− -- ^ @SUBSTITUTION@
450− | VATTypeUnspecified
451− -- ^ @TYPE_UNSPECIFIED@
452− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
453−
454−instance Hashable VariantAnnotationType
455−
456−instance FromText VariantAnnotationType where
457− fromText = \case
458− "CNV" -> Just VATCnv
459− "DELETION" -> Just VATDeletion
460− "INSERTION" -> Just VATInsertion
461− "OTHER" -> Just VATOther
462− "SNP" -> Just VATSnp
463− "STRUCTURAL" -> Just VATStructural
464− "SUBSTITUTION" -> Just VATSubstitution
465− "TYPE_UNSPECIFIED" -> Just VATTypeUnspecified
466− _ -> Nothing
467−
468−instance ToText VariantAnnotationType where
469− toText = \case
470− VATCnv -> "CNV"
471− VATDeletion -> "DELETION"
472− VATInsertion -> "INSERTION"
473− VATOther -> "OTHER"
474− VATSnp -> "SNP"
475− VATStructural -> "STRUCTURAL"
476− VATSubstitution -> "SUBSTITUTION"
477− VATTypeUnspecified -> "TYPE_UNSPECIFIED"
478−
479−instance FromJSON VariantAnnotationType where
480− parseJSON = parseJSONText "VariantAnnotationType"
481−
482−instance ToJSON VariantAnnotationType where
483− toJSON = toJSONText
484−
485−-- | The status of this job.
486−data JobStatus
487− = JSCanceled
488− -- ^ @CANCELED@
489− | JSFailure
490− -- ^ @FAILURE@
491− | JSNew
492− -- ^ @NEW@
493− | JSPending
494− -- ^ @PENDING@
495− | JSRunning
496− -- ^ @RUNNING@
497− | JSSuccess
498− -- ^ @SUCCESS@
499− | JSUnknownStatus
500− -- ^ @UNKNOWN_STATUS@
501− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
502−
503−instance Hashable JobStatus
504−
505−instance FromText JobStatus where
506− fromText = \case
507− "CANCELED" -> Just JSCanceled
508− "FAILURE" -> Just JSFailure
509− "NEW" -> Just JSNew
510− "PENDING" -> Just JSPending
511− "RUNNING" -> Just JSRunning
512− "SUCCESS" -> Just JSSuccess
513− "UNKNOWN_STATUS" -> Just JSUnknownStatus
514− _ -> Nothing
515−
516−instance ToText JobStatus where
517− toText = \case
518− JSCanceled -> "CANCELED"
519− JSFailure -> "FAILURE"
520− JSNew -> "NEW"
521− JSPending -> "PENDING"
522− JSRunning -> "RUNNING"
523− JSSuccess -> "SUCCESS"
524− JSUnknownStatus -> "UNKNOWN_STATUS"
525−
526−instance FromJSON JobStatus where
527− parseJSON = parseJSONText "JobStatus"
528−
529−instance ToJSON JobStatus where
530− toJSON = toJSONText
531−
532−-- | The format of the variant data being imported. If unspecified, defaults
533−-- to to \"VCF\".
534−data ImportVariantsRequestFormat
535− = CompleteGenomics
536− -- ^ @COMPLETE_GENOMICS@
537− | Vcf
538− -- ^ @VCF@
539− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
540−
541−instance Hashable ImportVariantsRequestFormat
542−
543−instance FromText ImportVariantsRequestFormat where
544− fromText = \case
545− "COMPLETE_GENOMICS" -> Just CompleteGenomics
546− "VCF" -> Just Vcf
547− _ -> Nothing
548−
549−instance ToText ImportVariantsRequestFormat where
550− toText = \case
551− CompleteGenomics -> "COMPLETE_GENOMICS"
552− Vcf -> "VCF"
553−
554−instance FromJSON ImportVariantsRequestFormat where
555− parseJSON = parseJSONText "ImportVariantsRequestFormat"
556−
557−instance ToJSON ImportVariantsRequestFormat where
558− toJSON = toJSONText
559−
560−-- | The format for the exported data.
561−data ExportVariantSetRequestFormat
562− = BigQuery
563− -- ^ @BIGQUERY@
564− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
565−
566−instance Hashable ExportVariantSetRequestFormat
567−
568−instance FromText ExportVariantSetRequestFormat where
569− fromText = \case
570− "BIGQUERY" -> Just BigQuery
571− _ -> Nothing
572−
573−instance ToText ExportVariantSetRequestFormat where
574− toText = \case
575− BigQuery -> "BIGQUERY"
576−
577−instance FromJSON ExportVariantSetRequestFormat where
578− parseJSON = parseJSONText "ExportVariantSetRequestFormat"
579−
580−instance ToJSON ExportVariantSetRequestFormat where
581− toJSON = toJSONText
582−
583−-- | The original request type.
584−data JobRequestType
585− = JRTAlignReadsets
586− -- ^ @ALIGN_READSETS@
587− | JRTCallReadsets
588− -- ^ @CALL_READSETS@
589− | JRTExperimentalCreateJob
590− -- ^ @EXPERIMENTAL_CREATE_JOB@
591− | JRTExportReadsets
592− -- ^ @EXPORT_READSETS@
593− | JRTExportVariants
594− -- ^ @EXPORT_VARIANTS@
595− | JRTImportReadsets
596− -- ^ @IMPORT_READSETS@
597− | JRTImportVariants
598− -- ^ @IMPORT_VARIANTS@
599− | JRTUnknownType
600− -- ^ @UNKNOWN_TYPE@
601− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
602−
603−instance Hashable JobRequestType
604−
605−instance FromText JobRequestType where
606− fromText = \case
607− "ALIGN_READSETS" -> Just JRTAlignReadsets
608− "CALL_READSETS" -> Just JRTCallReadsets
609− "EXPERIMENTAL_CREATE_JOB" -> Just JRTExperimentalCreateJob
610− "EXPORT_READSETS" -> Just JRTExportReadsets
611− "EXPORT_VARIANTS" -> Just JRTExportVariants
612− "IMPORT_READSETS" -> Just JRTImportReadsets
613− "IMPORT_VARIANTS" -> Just JRTImportVariants
614− "UNKNOWN_TYPE" -> Just JRTUnknownType
615− _ -> Nothing
616−
617−instance ToText JobRequestType where
618− toText = \case
619− JRTAlignReadsets -> "ALIGN_READSETS"
620− JRTCallReadsets -> "CALL_READSETS"
621− JRTExperimentalCreateJob -> "EXPERIMENTAL_CREATE_JOB"
622− JRTExportReadsets -> "EXPORT_READSETS"
623− JRTExportVariants -> "EXPORT_VARIANTS"
624− JRTImportReadsets -> "IMPORT_READSETS"
625− JRTImportVariants -> "IMPORT_VARIANTS"
626− JRTUnknownType -> "UNKNOWN_TYPE"
627−
628−instance FromJSON JobRequestType where
629− parseJSON = parseJSONText "JobRequestType"
630−
631−instance ToJSON JobRequestType where
632− toJSON = toJSONText
gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Create.hsdeleted−166
@@ -1,166 +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.Genomics.AnnotationSets.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 new annotation set. Caller must have WRITE permission for the
24−-- associated dataset.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationSetsCreate@.
27−module Network.Google.Resource.Genomics.AnnotationSets.Create
28− (
29− -- * REST Resource
30− AnnotationSetsCreateResource
31−
32− -- * Creating a Request
33− , annotationSetsCreate'
34− , AnnotationSetsCreate'
35−
36− -- * Request Lenses
37− , ascQuotaUser
38− , ascPrettyPrint
39− , ascUserIP
40− , ascPayload
41− , ascKey
42− , ascOAuthToken
43− , ascFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsAnnotationSetsCreate@ method which the
50−-- 'AnnotationSetsCreate'' request conforms to.
51−type AnnotationSetsCreateResource =
52− "annotationSets" :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :>
60− ReqBody '[JSON] AnnotationSet :>
61− Post '[JSON] AnnotationSet
62−
63−-- | Creates a new annotation set. Caller must have WRITE permission for the
64−-- associated dataset.
65−--
66−-- /See:/ 'annotationSetsCreate'' smart constructor.
67−data AnnotationSetsCreate' = AnnotationSetsCreate'
68− { _ascQuotaUser :: !(Maybe Text)
69− , _ascPrettyPrint :: !Bool
70− , _ascUserIP :: !(Maybe Text)
71− , _ascPayload :: !AnnotationSet
72− , _ascKey :: !(Maybe AuthKey)
73− , _ascOAuthToken :: !(Maybe OAuthToken)
74− , _ascFields :: !(Maybe Text)
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'AnnotationSetsCreate'' with the minimum fields required to make a request.
78−--
79−-- Use one of the following lenses to modify other fields as desired:
80−--
81−-- * 'ascQuotaUser'
82−--
83−-- * 'ascPrettyPrint'
84−--
85−-- * 'ascUserIP'
86−--
87−-- * 'ascPayload'
88−--
89−-- * 'ascKey'
90−--
91−-- * 'ascOAuthToken'
92−--
93−-- * 'ascFields'
94−annotationSetsCreate'
95− :: AnnotationSet -- ^ 'payload'
96− -> AnnotationSetsCreate'
97−annotationSetsCreate' pAscPayload_ =
98− AnnotationSetsCreate'
99− { _ascQuotaUser = Nothing
100− , _ascPrettyPrint = True
101− , _ascUserIP = Nothing
102− , _ascPayload = pAscPayload_
103− , _ascKey = Nothing
104− , _ascOAuthToken = Nothing
105− , _ascFields = Nothing
106− }
107−
108−-- | Available to use for quota purposes for server-side applications. Can be
109−-- any arbitrary string assigned to a user, but should not exceed 40
110−-- characters. Overrides userIp if both are provided.
111−ascQuotaUser :: Lens' AnnotationSetsCreate' (Maybe Text)
112−ascQuotaUser
113− = lens _ascQuotaUser (\ s a -> s{_ascQuotaUser = a})
114−
115−-- | Returns response with indentations and line breaks.
116−ascPrettyPrint :: Lens' AnnotationSetsCreate' Bool
117−ascPrettyPrint
118− = lens _ascPrettyPrint
119− (\ s a -> s{_ascPrettyPrint = a})
120−
121−-- | IP address of the site where the request originates. Use this if you
122−-- want to enforce per-user limits.
123−ascUserIP :: Lens' AnnotationSetsCreate' (Maybe Text)
124−ascUserIP
125− = lens _ascUserIP (\ s a -> s{_ascUserIP = a})
126−
127−-- | Multipart request metadata.
128−ascPayload :: Lens' AnnotationSetsCreate' AnnotationSet
129−ascPayload
130− = lens _ascPayload (\ s a -> s{_ascPayload = a})
131−
132−-- | API key. Your API key identifies your project and provides you with API
133−-- access, quota, and reports. Required unless you provide an OAuth 2.0
134−-- token.
135−ascKey :: Lens' AnnotationSetsCreate' (Maybe AuthKey)
136−ascKey = lens _ascKey (\ s a -> s{_ascKey = a})
137−
138−-- | OAuth 2.0 token for the current user.
139−ascOAuthToken :: Lens' AnnotationSetsCreate' (Maybe OAuthToken)
140−ascOAuthToken
141− = lens _ascOAuthToken
142− (\ s a -> s{_ascOAuthToken = a})
143−
144−-- | Selector specifying which fields to include in a partial response.
145−ascFields :: Lens' AnnotationSetsCreate' (Maybe Text)
146−ascFields
147− = lens _ascFields (\ s a -> s{_ascFields = a})
148−
149−instance GoogleAuth AnnotationSetsCreate' where
150− _AuthKey = ascKey . _Just
151− _AuthToken = ascOAuthToken . _Just
152−
153−instance GoogleRequest AnnotationSetsCreate' where
154− type Rs AnnotationSetsCreate' = AnnotationSet
155− request = requestWith genomicsRequest
156− requestWith rq AnnotationSetsCreate'{..}
157− = go _ascQuotaUser (Just _ascPrettyPrint) _ascUserIP
158− _ascFields
159− _ascKey
160− _ascOAuthToken
161− (Just AltJSON)
162− _ascPayload
163− where go
164− = clientBuild
165− (Proxy :: Proxy AnnotationSetsCreateResource)
166− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Delete.hsdeleted−167
@@ -1,167 +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.Genomics.AnnotationSets.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 an annotation set. Caller must have WRITE permission for the
24−-- associated annotation set.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationSetsDelete@.
27−module Network.Google.Resource.Genomics.AnnotationSets.Delete
28− (
29− -- * REST Resource
30− AnnotationSetsDeleteResource
31−
32− -- * Creating a Request
33− , annotationSetsDelete'
34− , AnnotationSetsDelete'
35−
36− -- * Request Lenses
37− , asdQuotaUser
38− , asdPrettyPrint
39− , asdAnnotationSetId
40− , asdUserIP
41− , asdKey
42− , asdOAuthToken
43− , asdFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsAnnotationSetsDelete@ method which the
50−-- 'AnnotationSetsDelete'' request conforms to.
51−type AnnotationSetsDeleteResource =
52− "annotationSets" :>
53− Capture "annotationSetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :> Delete '[JSON] ()
61−
62−-- | Deletes an annotation set. Caller must have WRITE permission for the
63−-- associated annotation set.
64−--
65−-- /See:/ 'annotationSetsDelete'' smart constructor.
66−data AnnotationSetsDelete' = AnnotationSetsDelete'
67− { _asdQuotaUser :: !(Maybe Text)
68− , _asdPrettyPrint :: !Bool
69− , _asdAnnotationSetId :: !Text
70− , _asdUserIP :: !(Maybe Text)
71− , _asdKey :: !(Maybe AuthKey)
72− , _asdOAuthToken :: !(Maybe OAuthToken)
73− , _asdFields :: !(Maybe Text)
74− } deriving (Eq,Show,Data,Typeable,Generic)
75−
76−-- | Creates a value of 'AnnotationSetsDelete'' with the minimum fields required to make a request.
77−--
78−-- Use one of the following lenses to modify other fields as desired:
79−--
80−-- * 'asdQuotaUser'
81−--
82−-- * 'asdPrettyPrint'
83−--
84−-- * 'asdAnnotationSetId'
85−--
86−-- * 'asdUserIP'
87−--
88−-- * 'asdKey'
89−--
90−-- * 'asdOAuthToken'
91−--
92−-- * 'asdFields'
93−annotationSetsDelete'
94− :: Text -- ^ 'annotationSetId'
95− -> AnnotationSetsDelete'
96−annotationSetsDelete' pAsdAnnotationSetId_ =
97− AnnotationSetsDelete'
98− { _asdQuotaUser = Nothing
99− , _asdPrettyPrint = True
100− , _asdAnnotationSetId = pAsdAnnotationSetId_
101− , _asdUserIP = Nothing
102− , _asdKey = Nothing
103− , _asdOAuthToken = Nothing
104− , _asdFields = Nothing
105− }
106−
107−-- | Available to use for quota purposes for server-side applications. Can be
108−-- any arbitrary string assigned to a user, but should not exceed 40
109−-- characters. Overrides userIp if both are provided.
110−asdQuotaUser :: Lens' AnnotationSetsDelete' (Maybe Text)
111−asdQuotaUser
112− = lens _asdQuotaUser (\ s a -> s{_asdQuotaUser = a})
113−
114−-- | Returns response with indentations and line breaks.
115−asdPrettyPrint :: Lens' AnnotationSetsDelete' Bool
116−asdPrettyPrint
117− = lens _asdPrettyPrint
118− (\ s a -> s{_asdPrettyPrint = a})
119−
120−-- | The ID of the annotation set to be deleted.
121−asdAnnotationSetId :: Lens' AnnotationSetsDelete' Text
122−asdAnnotationSetId
123− = lens _asdAnnotationSetId
124− (\ s a -> s{_asdAnnotationSetId = a})
125−
126−-- | IP address of the site where the request originates. Use this if you
127−-- want to enforce per-user limits.
128−asdUserIP :: Lens' AnnotationSetsDelete' (Maybe Text)
129−asdUserIP
130− = lens _asdUserIP (\ s a -> s{_asdUserIP = a})
131−
132−-- | API key. Your API key identifies your project and provides you with API
133−-- access, quota, and reports. Required unless you provide an OAuth 2.0
134−-- token.
135−asdKey :: Lens' AnnotationSetsDelete' (Maybe AuthKey)
136−asdKey = lens _asdKey (\ s a -> s{_asdKey = a})
137−
138−-- | OAuth 2.0 token for the current user.
139−asdOAuthToken :: Lens' AnnotationSetsDelete' (Maybe OAuthToken)
140−asdOAuthToken
141− = lens _asdOAuthToken
142− (\ s a -> s{_asdOAuthToken = a})
143−
144−-- | Selector specifying which fields to include in a partial response.
145−asdFields :: Lens' AnnotationSetsDelete' (Maybe Text)
146−asdFields
147− = lens _asdFields (\ s a -> s{_asdFields = a})
148−
149−instance GoogleAuth AnnotationSetsDelete' where
150− _AuthKey = asdKey . _Just
151− _AuthToken = asdOAuthToken . _Just
152−
153−instance GoogleRequest AnnotationSetsDelete' where
154− type Rs AnnotationSetsDelete' = ()
155− request = requestWith genomicsRequest
156− requestWith rq AnnotationSetsDelete'{..}
157− = go _asdAnnotationSetId _asdQuotaUser
158− (Just _asdPrettyPrint)
159− _asdUserIP
160− _asdFields
161− _asdKey
162− _asdOAuthToken
163− (Just AltJSON)
164− where go
165− = clientBuild
166− (Proxy :: Proxy AnnotationSetsDeleteResource)
167− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Get.hsdeleted−167
@@ -1,167 +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.Genomics.AnnotationSets.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 an annotation set. Caller must have READ permission for the
24−-- associated dataset.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationSetsGet@.
27−module Network.Google.Resource.Genomics.AnnotationSets.Get
28− (
29− -- * REST Resource
30− AnnotationSetsGetResource
31−
32− -- * Creating a Request
33− , annotationSetsGet'
34− , AnnotationSetsGet'
35−
36− -- * Request Lenses
37− , asgQuotaUser
38− , asgPrettyPrint
39− , asgAnnotationSetId
40− , asgUserIP
41− , asgKey
42− , asgOAuthToken
43− , asgFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsAnnotationSetsGet@ method which the
50−-- 'AnnotationSetsGet'' request conforms to.
51−type AnnotationSetsGetResource =
52− "annotationSets" :>
53− Capture "annotationSetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :> Get '[JSON] AnnotationSet
61−
62−-- | Gets an annotation set. Caller must have READ permission for the
63−-- associated dataset.
64−--
65−-- /See:/ 'annotationSetsGet'' smart constructor.
66−data AnnotationSetsGet' = AnnotationSetsGet'
67− { _asgQuotaUser :: !(Maybe Text)
68− , _asgPrettyPrint :: !Bool
69− , _asgAnnotationSetId :: !Text
70− , _asgUserIP :: !(Maybe Text)
71− , _asgKey :: !(Maybe AuthKey)
72− , _asgOAuthToken :: !(Maybe OAuthToken)
73− , _asgFields :: !(Maybe Text)
74− } deriving (Eq,Show,Data,Typeable,Generic)
75−
76−-- | Creates a value of 'AnnotationSetsGet'' with the minimum fields required to make a request.
77−--
78−-- Use one of the following lenses to modify other fields as desired:
79−--
80−-- * 'asgQuotaUser'
81−--
82−-- * 'asgPrettyPrint'
83−--
84−-- * 'asgAnnotationSetId'
85−--
86−-- * 'asgUserIP'
87−--
88−-- * 'asgKey'
89−--
90−-- * 'asgOAuthToken'
91−--
92−-- * 'asgFields'
93−annotationSetsGet'
94− :: Text -- ^ 'annotationSetId'
95− -> AnnotationSetsGet'
96−annotationSetsGet' pAsgAnnotationSetId_ =
97− AnnotationSetsGet'
98− { _asgQuotaUser = Nothing
99− , _asgPrettyPrint = True
100− , _asgAnnotationSetId = pAsgAnnotationSetId_
101− , _asgUserIP = Nothing
102− , _asgKey = Nothing
103− , _asgOAuthToken = Nothing
104− , _asgFields = Nothing
105− }
106−
107−-- | Available to use for quota purposes for server-side applications. Can be
108−-- any arbitrary string assigned to a user, but should not exceed 40
109−-- characters. Overrides userIp if both are provided.
110−asgQuotaUser :: Lens' AnnotationSetsGet' (Maybe Text)
111−asgQuotaUser
112− = lens _asgQuotaUser (\ s a -> s{_asgQuotaUser = a})
113−
114−-- | Returns response with indentations and line breaks.
115−asgPrettyPrint :: Lens' AnnotationSetsGet' Bool
116−asgPrettyPrint
117− = lens _asgPrettyPrint
118− (\ s a -> s{_asgPrettyPrint = a})
119−
120−-- | The ID of the annotation set to be retrieved.
121−asgAnnotationSetId :: Lens' AnnotationSetsGet' Text
122−asgAnnotationSetId
123− = lens _asgAnnotationSetId
124− (\ s a -> s{_asgAnnotationSetId = a})
125−
126−-- | IP address of the site where the request originates. Use this if you
127−-- want to enforce per-user limits.
128−asgUserIP :: Lens' AnnotationSetsGet' (Maybe Text)
129−asgUserIP
130− = lens _asgUserIP (\ s a -> s{_asgUserIP = a})
131−
132−-- | API key. Your API key identifies your project and provides you with API
133−-- access, quota, and reports. Required unless you provide an OAuth 2.0
134−-- token.
135−asgKey :: Lens' AnnotationSetsGet' (Maybe AuthKey)
136−asgKey = lens _asgKey (\ s a -> s{_asgKey = a})
137−
138−-- | OAuth 2.0 token for the current user.
139−asgOAuthToken :: Lens' AnnotationSetsGet' (Maybe OAuthToken)
140−asgOAuthToken
141− = lens _asgOAuthToken
142− (\ s a -> s{_asgOAuthToken = a})
143−
144−-- | Selector specifying which fields to include in a partial response.
145−asgFields :: Lens' AnnotationSetsGet' (Maybe Text)
146−asgFields
147− = lens _asgFields (\ s a -> s{_asgFields = a})
148−
149−instance GoogleAuth AnnotationSetsGet' where
150− _AuthKey = asgKey . _Just
151− _AuthToken = asgOAuthToken . _Just
152−
153−instance GoogleRequest AnnotationSetsGet' where
154− type Rs AnnotationSetsGet' = AnnotationSet
155− request = requestWith genomicsRequest
156− requestWith rq AnnotationSetsGet'{..}
157− = go _asgAnnotationSetId _asgQuotaUser
158− (Just _asgPrettyPrint)
159− _asgUserIP
160− _asgFields
161− _asgKey
162− _asgOAuthToken
163− (Just AltJSON)
164− where go
165− = clientBuild
166− (Proxy :: Proxy AnnotationSetsGetResource)
167− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Patch.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.Genomics.AnnotationSets.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 an annotation set. The update must respect all mutability
24−-- restrictions and other invariants described on the annotation set
25−-- resource. Caller must have WRITE permission for the associated dataset.
26−-- This method supports patch semantics.
27−--
28−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationSetsPatch@.
29−module Network.Google.Resource.Genomics.AnnotationSets.Patch
30− (
31− -- * REST Resource
32− AnnotationSetsPatchResource
33−
34− -- * Creating a Request
35− , annotationSetsPatch'
36− , AnnotationSetsPatch'
37−
38− -- * Request Lenses
39− , aspQuotaUser
40− , aspPrettyPrint
41− , aspAnnotationSetId
42− , aspUserIP
43− , aspPayload
44− , aspKey
45− , aspOAuthToken
46− , aspFields
47− ) where
48−
49−import Network.Google.Genomics.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @GenomicsAnnotationSetsPatch@ method which the
53−-- 'AnnotationSetsPatch'' request conforms to.
54−type AnnotationSetsPatchResource =
55− "annotationSets" :>
56− Capture "annotationSetId" Text :>
57− QueryParam "quotaUser" Text :>
58− QueryParam "prettyPrint" Bool :>
59− QueryParam "userIp" Text :>
60− QueryParam "fields" Text :>
61− QueryParam "key" AuthKey :>
62− QueryParam "oauth_token" OAuthToken :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] AnnotationSet :>
65− Patch '[JSON] AnnotationSet
66−
67−-- | Updates an annotation set. The update must respect all mutability
68−-- restrictions and other invariants described on the annotation set
69−-- resource. Caller must have WRITE permission for the associated dataset.
70−-- This method supports patch semantics.
71−--
72−-- /See:/ 'annotationSetsPatch'' smart constructor.
73−data AnnotationSetsPatch' = AnnotationSetsPatch'
74− { _aspQuotaUser :: !(Maybe Text)
75− , _aspPrettyPrint :: !Bool
76− , _aspAnnotationSetId :: !Text
77− , _aspUserIP :: !(Maybe Text)
78− , _aspPayload :: !AnnotationSet
79− , _aspKey :: !(Maybe AuthKey)
80− , _aspOAuthToken :: !(Maybe OAuthToken)
81− , _aspFields :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'AnnotationSetsPatch'' 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−-- * 'aspQuotaUser'
89−--
90−-- * 'aspPrettyPrint'
91−--
92−-- * 'aspAnnotationSetId'
93−--
94−-- * 'aspUserIP'
95−--
96−-- * 'aspPayload'
97−--
98−-- * 'aspKey'
99−--
100−-- * 'aspOAuthToken'
101−--
102−-- * 'aspFields'
103−annotationSetsPatch'
104− :: Text -- ^ 'annotationSetId'
105− -> AnnotationSet -- ^ 'payload'
106− -> AnnotationSetsPatch'
107−annotationSetsPatch' pAspAnnotationSetId_ pAspPayload_ =
108− AnnotationSetsPatch'
109− { _aspQuotaUser = Nothing
110− , _aspPrettyPrint = True
111− , _aspAnnotationSetId = pAspAnnotationSetId_
112− , _aspUserIP = Nothing
113− , _aspPayload = pAspPayload_
114− , _aspKey = Nothing
115− , _aspOAuthToken = Nothing
116− , _aspFields = Nothing
117− }
118−
119−-- | Available to use for quota purposes for server-side applications. Can be
120−-- any arbitrary string assigned to a user, but should not exceed 40
121−-- characters. Overrides userIp if both are provided.
122−aspQuotaUser :: Lens' AnnotationSetsPatch' (Maybe Text)
123−aspQuotaUser
124− = lens _aspQuotaUser (\ s a -> s{_aspQuotaUser = a})
125−
126−-- | Returns response with indentations and line breaks.
127−aspPrettyPrint :: Lens' AnnotationSetsPatch' Bool
128−aspPrettyPrint
129− = lens _aspPrettyPrint
130− (\ s a -> s{_aspPrettyPrint = a})
131−
132−-- | The ID of the annotation set to be updated.
133−aspAnnotationSetId :: Lens' AnnotationSetsPatch' Text
134−aspAnnotationSetId
135− = lens _aspAnnotationSetId
136− (\ s a -> s{_aspAnnotationSetId = a})
137−
138−-- | IP address of the site where the request originates. Use this if you
139−-- want to enforce per-user limits.
140−aspUserIP :: Lens' AnnotationSetsPatch' (Maybe Text)
141−aspUserIP
142− = lens _aspUserIP (\ s a -> s{_aspUserIP = a})
143−
144−-- | Multipart request metadata.
145−aspPayload :: Lens' AnnotationSetsPatch' AnnotationSet
146−aspPayload
147− = lens _aspPayload (\ s a -> s{_aspPayload = a})
148−
149−-- | API key. Your API key identifies your project and provides you with API
150−-- access, quota, and reports. Required unless you provide an OAuth 2.0
151−-- token.
152−aspKey :: Lens' AnnotationSetsPatch' (Maybe AuthKey)
153−aspKey = lens _aspKey (\ s a -> s{_aspKey = a})
154−
155−-- | OAuth 2.0 token for the current user.
156−aspOAuthToken :: Lens' AnnotationSetsPatch' (Maybe OAuthToken)
157−aspOAuthToken
158− = lens _aspOAuthToken
159− (\ s a -> s{_aspOAuthToken = a})
160−
161−-- | Selector specifying which fields to include in a partial response.
162−aspFields :: Lens' AnnotationSetsPatch' (Maybe Text)
163−aspFields
164− = lens _aspFields (\ s a -> s{_aspFields = a})
165−
166−instance GoogleAuth AnnotationSetsPatch' where
167− _AuthKey = aspKey . _Just
168− _AuthToken = aspOAuthToken . _Just
169−
170−instance GoogleRequest AnnotationSetsPatch' where
171− type Rs AnnotationSetsPatch' = AnnotationSet
172− request = requestWith genomicsRequest
173− requestWith rq AnnotationSetsPatch'{..}
174− = go _aspAnnotationSetId _aspQuotaUser
175− (Just _aspPrettyPrint)
176− _aspUserIP
177− _aspFields
178− _aspKey
179− _aspOAuthToken
180− (Just AltJSON)
181− _aspPayload
182− where go
183− = clientBuild
184− (Proxy :: Proxy AnnotationSetsPatchResource)
185− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Search.hsdeleted−170
@@ -1,170 +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.Genomics.AnnotationSets.Search
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−-- | Searches for annotation sets that match the given criteria. Results are
24−-- returned in a deterministic order. Caller must have READ permission for
25−-- the queried datasets.
26−--
27−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationSetsSearch@.
28−module Network.Google.Resource.Genomics.AnnotationSets.Search
29− (
30− -- * REST Resource
31− AnnotationSetsSearchResource
32−
33− -- * Creating a Request
34− , annotationSetsSearch'
35− , AnnotationSetsSearch'
36−
37− -- * Request Lenses
38− , assQuotaUser
39− , assPrettyPrint
40− , assUserIP
41− , assPayload
42− , assKey
43− , assOAuthToken
44− , assFields
45− ) where
46−
47−import Network.Google.Genomics.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @GenomicsAnnotationSetsSearch@ method which the
51−-- 'AnnotationSetsSearch'' request conforms to.
52−type AnnotationSetsSearchResource =
53− "annotationSets" :>
54− "search" :>
55− QueryParam "quotaUser" Text :>
56− QueryParam "prettyPrint" Bool :>
57− QueryParam "userIp" Text :>
58− QueryParam "fields" Text :>
59− QueryParam "key" AuthKey :>
60− QueryParam "oauth_token" OAuthToken :>
61− QueryParam "alt" AltJSON :>
62− ReqBody '[JSON] SearchAnnotationSetsRequest :>
63− Post '[JSON] SearchAnnotationSetsResponse
64−
65−-- | Searches for annotation sets that match the given criteria. Results are
66−-- returned in a deterministic order. Caller must have READ permission for
67−-- the queried datasets.
68−--
69−-- /See:/ 'annotationSetsSearch'' smart constructor.
70−data AnnotationSetsSearch' = AnnotationSetsSearch'
71− { _assQuotaUser :: !(Maybe Text)
72− , _assPrettyPrint :: !Bool
73− , _assUserIP :: !(Maybe Text)
74− , _assPayload :: !SearchAnnotationSetsRequest
75− , _assKey :: !(Maybe AuthKey)
76− , _assOAuthToken :: !(Maybe OAuthToken)
77− , _assFields :: !(Maybe Text)
78− } deriving (Eq,Show,Data,Typeable,Generic)
79−
80−-- | Creates a value of 'AnnotationSetsSearch'' 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−-- * 'assQuotaUser'
85−--
86−-- * 'assPrettyPrint'
87−--
88−-- * 'assUserIP'
89−--
90−-- * 'assPayload'
91−--
92−-- * 'assKey'
93−--
94−-- * 'assOAuthToken'
95−--
96−-- * 'assFields'
97−annotationSetsSearch'
98− :: SearchAnnotationSetsRequest -- ^ 'payload'
99− -> AnnotationSetsSearch'
100−annotationSetsSearch' pAssPayload_ =
101− AnnotationSetsSearch'
102− { _assQuotaUser = Nothing
103− , _assPrettyPrint = True
104− , _assUserIP = Nothing
105− , _assPayload = pAssPayload_
106− , _assKey = Nothing
107− , _assOAuthToken = Nothing
108− , _assFields = Nothing
109− }
110−
111−-- | Available to use for quota purposes for server-side applications. Can be
112−-- any arbitrary string assigned to a user, but should not exceed 40
113−-- characters. Overrides userIp if both are provided.
114−assQuotaUser :: Lens' AnnotationSetsSearch' (Maybe Text)
115−assQuotaUser
116− = lens _assQuotaUser (\ s a -> s{_assQuotaUser = a})
117−
118−-- | Returns response with indentations and line breaks.
119−assPrettyPrint :: Lens' AnnotationSetsSearch' Bool
120−assPrettyPrint
121− = lens _assPrettyPrint
122− (\ s a -> s{_assPrettyPrint = a})
123−
124−-- | IP address of the site where the request originates. Use this if you
125−-- want to enforce per-user limits.
126−assUserIP :: Lens' AnnotationSetsSearch' (Maybe Text)
127−assUserIP
128− = lens _assUserIP (\ s a -> s{_assUserIP = a})
129−
130−-- | Multipart request metadata.
131−assPayload :: Lens' AnnotationSetsSearch' SearchAnnotationSetsRequest
132−assPayload
133− = lens _assPayload (\ s a -> s{_assPayload = a})
134−
135−-- | API key. Your API key identifies your project and provides you with API
136−-- access, quota, and reports. Required unless you provide an OAuth 2.0
137−-- token.
138−assKey :: Lens' AnnotationSetsSearch' (Maybe AuthKey)
139−assKey = lens _assKey (\ s a -> s{_assKey = a})
140−
141−-- | OAuth 2.0 token for the current user.
142−assOAuthToken :: Lens' AnnotationSetsSearch' (Maybe OAuthToken)
143−assOAuthToken
144− = lens _assOAuthToken
145− (\ s a -> s{_assOAuthToken = a})
146−
147−-- | Selector specifying which fields to include in a partial response.
148−assFields :: Lens' AnnotationSetsSearch' (Maybe Text)
149−assFields
150− = lens _assFields (\ s a -> s{_assFields = a})
151−
152−instance GoogleAuth AnnotationSetsSearch' where
153− _AuthKey = assKey . _Just
154− _AuthToken = assOAuthToken . _Just
155−
156−instance GoogleRequest AnnotationSetsSearch' where
157− type Rs AnnotationSetsSearch' =
158− SearchAnnotationSetsResponse
159− request = requestWith genomicsRequest
160− requestWith rq AnnotationSetsSearch'{..}
161− = go _assQuotaUser (Just _assPrettyPrint) _assUserIP
162− _assFields
163− _assKey
164− _assOAuthToken
165− (Just AltJSON)
166− _assPayload
167− where go
168− = clientBuild
169− (Proxy :: Proxy AnnotationSetsSearchResource)
170− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Update.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.Genomics.AnnotationSets.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 an annotation set. The update must respect all mutability
24−-- restrictions and other invariants described on the annotation set
25−-- resource. Caller must have WRITE permission for the associated dataset.
26−--
27−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationSetsUpdate@.
28−module Network.Google.Resource.Genomics.AnnotationSets.Update
29− (
30− -- * REST Resource
31− AnnotationSetsUpdateResource
32−
33− -- * Creating a Request
34− , annotationSetsUpdate'
35− , AnnotationSetsUpdate'
36−
37− -- * Request Lenses
38− , asuQuotaUser
39− , asuPrettyPrint
40− , asuAnnotationSetId
41− , asuUserIP
42− , asuPayload
43− , asuKey
44− , asuOAuthToken
45− , asuFields
46− ) where
47−
48−import Network.Google.Genomics.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @GenomicsAnnotationSetsUpdate@ method which the
52−-- 'AnnotationSetsUpdate'' request conforms to.
53−type AnnotationSetsUpdateResource =
54− "annotationSets" :>
55− Capture "annotationSetId" Text :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] AnnotationSet :>
64− Put '[JSON] AnnotationSet
65−
66−-- | Updates an annotation set. The update must respect all mutability
67−-- restrictions and other invariants described on the annotation set
68−-- resource. Caller must have WRITE permission for the associated dataset.
69−--
70−-- /See:/ 'annotationSetsUpdate'' smart constructor.
71−data AnnotationSetsUpdate' = AnnotationSetsUpdate'
72− { _asuQuotaUser :: !(Maybe Text)
73− , _asuPrettyPrint :: !Bool
74− , _asuAnnotationSetId :: !Text
75− , _asuUserIP :: !(Maybe Text)
76− , _asuPayload :: !AnnotationSet
77− , _asuKey :: !(Maybe AuthKey)
78− , _asuOAuthToken :: !(Maybe OAuthToken)
79− , _asuFields :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'AnnotationSetsUpdate'' 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−-- * 'asuQuotaUser'
87−--
88−-- * 'asuPrettyPrint'
89−--
90−-- * 'asuAnnotationSetId'
91−--
92−-- * 'asuUserIP'
93−--
94−-- * 'asuPayload'
95−--
96−-- * 'asuKey'
97−--
98−-- * 'asuOAuthToken'
99−--
100−-- * 'asuFields'
101−annotationSetsUpdate'
102− :: Text -- ^ 'annotationSetId'
103− -> AnnotationSet -- ^ 'payload'
104− -> AnnotationSetsUpdate'
105−annotationSetsUpdate' pAsuAnnotationSetId_ pAsuPayload_ =
106− AnnotationSetsUpdate'
107− { _asuQuotaUser = Nothing
108− , _asuPrettyPrint = True
109− , _asuAnnotationSetId = pAsuAnnotationSetId_
110− , _asuUserIP = Nothing
111− , _asuPayload = pAsuPayload_
112− , _asuKey = Nothing
113− , _asuOAuthToken = Nothing
114− , _asuFields = Nothing
115− }
116−
117−-- | Available to use for quota purposes for server-side applications. Can be
118−-- any arbitrary string assigned to a user, but should not exceed 40
119−-- characters. Overrides userIp if both are provided.
120−asuQuotaUser :: Lens' AnnotationSetsUpdate' (Maybe Text)
121−asuQuotaUser
122− = lens _asuQuotaUser (\ s a -> s{_asuQuotaUser = a})
123−
124−-- | Returns response with indentations and line breaks.
125−asuPrettyPrint :: Lens' AnnotationSetsUpdate' Bool
126−asuPrettyPrint
127− = lens _asuPrettyPrint
128− (\ s a -> s{_asuPrettyPrint = a})
129−
130−-- | The ID of the annotation set to be updated.
131−asuAnnotationSetId :: Lens' AnnotationSetsUpdate' Text
132−asuAnnotationSetId
133− = lens _asuAnnotationSetId
134− (\ s a -> s{_asuAnnotationSetId = a})
135−
136−-- | IP address of the site where the request originates. Use this if you
137−-- want to enforce per-user limits.
138−asuUserIP :: Lens' AnnotationSetsUpdate' (Maybe Text)
139−asuUserIP
140− = lens _asuUserIP (\ s a -> s{_asuUserIP = a})
141−
142−-- | Multipart request metadata.
143−asuPayload :: Lens' AnnotationSetsUpdate' AnnotationSet
144−asuPayload
145− = lens _asuPayload (\ s a -> s{_asuPayload = a})
146−
147−-- | API key. Your API key identifies your project and provides you with API
148−-- access, quota, and reports. Required unless you provide an OAuth 2.0
149−-- token.
150−asuKey :: Lens' AnnotationSetsUpdate' (Maybe AuthKey)
151−asuKey = lens _asuKey (\ s a -> s{_asuKey = a})
152−
153−-- | OAuth 2.0 token for the current user.
154−asuOAuthToken :: Lens' AnnotationSetsUpdate' (Maybe OAuthToken)
155−asuOAuthToken
156− = lens _asuOAuthToken
157− (\ s a -> s{_asuOAuthToken = a})
158−
159−-- | Selector specifying which fields to include in a partial response.
160−asuFields :: Lens' AnnotationSetsUpdate' (Maybe Text)
161−asuFields
162− = lens _asuFields (\ s a -> s{_asuFields = a})
163−
164−instance GoogleAuth AnnotationSetsUpdate' where
165− _AuthKey = asuKey . _Just
166− _AuthToken = asuOAuthToken . _Just
167−
168−instance GoogleRequest AnnotationSetsUpdate' where
169− type Rs AnnotationSetsUpdate' = AnnotationSet
170− request = requestWith genomicsRequest
171− requestWith rq AnnotationSetsUpdate'{..}
172− = go _asuAnnotationSetId _asuQuotaUser
173− (Just _asuPrettyPrint)
174− _asuUserIP
175− _asuFields
176− _asuKey
177− _asuOAuthToken
178− (Just AltJSON)
179− _asuPayload
180− where go
181− = clientBuild
182− (Proxy :: Proxy AnnotationSetsUpdateResource)
183− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/BatchCreate.hsdeleted−179
@@ -1,179 +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.Genomics.Annotations.BatchCreate
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 one or more new annotations atomically. All annotations must
24−-- belong to the same annotation set. Caller must have WRITE permission for
25−-- this annotation set. For optimal performance, batch positionally
26−-- adjacent annotations together. If the request has a systemic issue, such
27−-- as an attempt to write to an inaccessible annotation set, the entire RPC
28−-- will fail accordingly. For lesser data issues, when possible an error
29−-- will be isolated to the corresponding batch entry in the response; the
30−-- remaining well formed annotations will be created normally.
31−--
32−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationsBatchCreate@.
33−module Network.Google.Resource.Genomics.Annotations.BatchCreate
34− (
35− -- * REST Resource
36− AnnotationsBatchCreateResource
37−
38− -- * Creating a Request
39− , annotationsBatchCreate'
40− , AnnotationsBatchCreate'
41−
42− -- * Request Lenses
43− , abcQuotaUser
44− , abcPrettyPrint
45− , abcUserIP
46− , abcPayload
47− , abcKey
48− , abcOAuthToken
49− , abcFields
50− ) where
51−
52−import Network.Google.Genomics.Types
53−import Network.Google.Prelude
54−
55−-- | A resource alias for @GenomicsAnnotationsBatchCreate@ method which the
56−-- 'AnnotationsBatchCreate'' request conforms to.
57−type AnnotationsBatchCreateResource =
58− "annotations:batchCreate" :>
59− QueryParam "quotaUser" Text :>
60− QueryParam "prettyPrint" Bool :>
61− QueryParam "userIp" Text :>
62− QueryParam "fields" Text :>
63− QueryParam "key" AuthKey :>
64− QueryParam "oauth_token" OAuthToken :>
65− QueryParam "alt" AltJSON :>
66− ReqBody '[JSON] BatchCreateAnnotationsRequest :>
67− Post '[JSON] BatchAnnotationsResponse
68−
69−-- | Creates one or more new annotations atomically. All annotations must
70−-- belong to the same annotation set. Caller must have WRITE permission for
71−-- this annotation set. For optimal performance, batch positionally
72−-- adjacent annotations together. If the request has a systemic issue, such
73−-- as an attempt to write to an inaccessible annotation set, the entire RPC
74−-- will fail accordingly. For lesser data issues, when possible an error
75−-- will be isolated to the corresponding batch entry in the response; the
76−-- remaining well formed annotations will be created normally.
77−--
78−-- /See:/ 'annotationsBatchCreate'' smart constructor.
79−data AnnotationsBatchCreate' = AnnotationsBatchCreate'
80− { _abcQuotaUser :: !(Maybe Text)
81− , _abcPrettyPrint :: !Bool
82− , _abcUserIP :: !(Maybe Text)
83− , _abcPayload :: !BatchCreateAnnotationsRequest
84− , _abcKey :: !(Maybe AuthKey)
85− , _abcOAuthToken :: !(Maybe OAuthToken)
86− , _abcFields :: !(Maybe Text)
87− } deriving (Eq,Show,Data,Typeable,Generic)
88−
89−-- | Creates a value of 'AnnotationsBatchCreate'' 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−-- * 'abcQuotaUser'
94−--
95−-- * 'abcPrettyPrint'
96−--
97−-- * 'abcUserIP'
98−--
99−-- * 'abcPayload'
100−--
101−-- * 'abcKey'
102−--
103−-- * 'abcOAuthToken'
104−--
105−-- * 'abcFields'
106−annotationsBatchCreate'
107− :: BatchCreateAnnotationsRequest -- ^ 'payload'
108− -> AnnotationsBatchCreate'
109−annotationsBatchCreate' pAbcPayload_ =
110− AnnotationsBatchCreate'
111− { _abcQuotaUser = Nothing
112− , _abcPrettyPrint = True
113− , _abcUserIP = Nothing
114− , _abcPayload = pAbcPayload_
115− , _abcKey = Nothing
116− , _abcOAuthToken = Nothing
117− , _abcFields = Nothing
118− }
119−
120−-- | Available to use for quota purposes for server-side applications. Can be
121−-- any arbitrary string assigned to a user, but should not exceed 40
122−-- characters. Overrides userIp if both are provided.
123−abcQuotaUser :: Lens' AnnotationsBatchCreate' (Maybe Text)
124−abcQuotaUser
125− = lens _abcQuotaUser (\ s a -> s{_abcQuotaUser = a})
126−
127−-- | Returns response with indentations and line breaks.
128−abcPrettyPrint :: Lens' AnnotationsBatchCreate' Bool
129−abcPrettyPrint
130− = lens _abcPrettyPrint
131− (\ s a -> s{_abcPrettyPrint = a})
132−
133−-- | IP address of the site where the request originates. Use this if you
134−-- want to enforce per-user limits.
135−abcUserIP :: Lens' AnnotationsBatchCreate' (Maybe Text)
136−abcUserIP
137− = lens _abcUserIP (\ s a -> s{_abcUserIP = a})
138−
139−-- | Multipart request metadata.
140−abcPayload :: Lens' AnnotationsBatchCreate' BatchCreateAnnotationsRequest
141−abcPayload
142− = lens _abcPayload (\ s a -> s{_abcPayload = a})
143−
144−-- | API key. Your API key identifies your project and provides you with API
145−-- access, quota, and reports. Required unless you provide an OAuth 2.0
146−-- token.
147−abcKey :: Lens' AnnotationsBatchCreate' (Maybe AuthKey)
148−abcKey = lens _abcKey (\ s a -> s{_abcKey = a})
149−
150−-- | OAuth 2.0 token for the current user.
151−abcOAuthToken :: Lens' AnnotationsBatchCreate' (Maybe OAuthToken)
152−abcOAuthToken
153− = lens _abcOAuthToken
154− (\ s a -> s{_abcOAuthToken = a})
155−
156−-- | Selector specifying which fields to include in a partial response.
157−abcFields :: Lens' AnnotationsBatchCreate' (Maybe Text)
158−abcFields
159− = lens _abcFields (\ s a -> s{_abcFields = a})
160−
161−instance GoogleAuth AnnotationsBatchCreate' where
162− _AuthKey = abcKey . _Just
163− _AuthToken = abcOAuthToken . _Just
164−
165−instance GoogleRequest AnnotationsBatchCreate' where
166− type Rs AnnotationsBatchCreate' =
167− BatchAnnotationsResponse
168− request = requestWith genomicsRequest
169− requestWith rq AnnotationsBatchCreate'{..}
170− = go _abcQuotaUser (Just _abcPrettyPrint) _abcUserIP
171− _abcFields
172− _abcKey
173− _abcOAuthToken
174− (Just AltJSON)
175− _abcPayload
176− where go
177− = clientBuild
178− (Proxy :: Proxy AnnotationsBatchCreateResource)
179− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Delete.hsdeleted−164
@@ -1,164 +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.Genomics.Annotations.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 an annotation. Caller must have WRITE permission for the
24−-- associated annotation set.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationsDelete@.
27−module Network.Google.Resource.Genomics.Annotations.Delete
28− (
29− -- * REST Resource
30− AnnotationsDeleteResource
31−
32− -- * Creating a Request
33− , annotationsDelete'
34− , AnnotationsDelete'
35−
36− -- * Request Lenses
37− , adQuotaUser
38− , adPrettyPrint
39− , adUserIP
40− , adKey
41− , adAnnotationId
42− , adOAuthToken
43− , adFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsAnnotationsDelete@ method which the
50−-- 'AnnotationsDelete'' request conforms to.
51−type AnnotationsDeleteResource =
52− "annotations" :>
53− Capture "annotationId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :> Delete '[JSON] ()
61−
62−-- | Deletes an annotation. Caller must have WRITE permission for the
63−-- associated annotation set.
64−--
65−-- /See:/ 'annotationsDelete'' smart constructor.
66−data AnnotationsDelete' = AnnotationsDelete'
67− { _adQuotaUser :: !(Maybe Text)
68− , _adPrettyPrint :: !Bool
69− , _adUserIP :: !(Maybe Text)
70− , _adKey :: !(Maybe AuthKey)
71− , _adAnnotationId :: !Text
72− , _adOAuthToken :: !(Maybe OAuthToken)
73− , _adFields :: !(Maybe Text)
74− } deriving (Eq,Show,Data,Typeable,Generic)
75−
76−-- | Creates a value of 'AnnotationsDelete'' with the minimum fields required to make a request.
77−--
78−-- Use one of the following lenses to modify other fields as desired:
79−--
80−-- * 'adQuotaUser'
81−--
82−-- * 'adPrettyPrint'
83−--
84−-- * 'adUserIP'
85−--
86−-- * 'adKey'
87−--
88−-- * 'adAnnotationId'
89−--
90−-- * 'adOAuthToken'
91−--
92−-- * 'adFields'
93−annotationsDelete'
94− :: Text -- ^ 'annotationId'
95− -> AnnotationsDelete'
96−annotationsDelete' pAdAnnotationId_ =
97− AnnotationsDelete'
98− { _adQuotaUser = Nothing
99− , _adPrettyPrint = True
100− , _adUserIP = Nothing
101− , _adKey = Nothing
102− , _adAnnotationId = pAdAnnotationId_
103− , _adOAuthToken = Nothing
104− , _adFields = Nothing
105− }
106−
107−-- | Available to use for quota purposes for server-side applications. Can be
108−-- any arbitrary string assigned to a user, but should not exceed 40
109−-- characters. Overrides userIp if both are provided.
110−adQuotaUser :: Lens' AnnotationsDelete' (Maybe Text)
111−adQuotaUser
112− = lens _adQuotaUser (\ s a -> s{_adQuotaUser = a})
113−
114−-- | Returns response with indentations and line breaks.
115−adPrettyPrint :: Lens' AnnotationsDelete' Bool
116−adPrettyPrint
117− = lens _adPrettyPrint
118− (\ s a -> s{_adPrettyPrint = a})
119−
120−-- | IP address of the site where the request originates. Use this if you
121−-- want to enforce per-user limits.
122−adUserIP :: Lens' AnnotationsDelete' (Maybe Text)
123−adUserIP = lens _adUserIP (\ s a -> s{_adUserIP = a})
124−
125−-- | API key. Your API key identifies your project and provides you with API
126−-- access, quota, and reports. Required unless you provide an OAuth 2.0
127−-- token.
128−adKey :: Lens' AnnotationsDelete' (Maybe AuthKey)
129−adKey = lens _adKey (\ s a -> s{_adKey = a})
130−
131−-- | The ID of the annotation set to be deleted.
132−adAnnotationId :: Lens' AnnotationsDelete' Text
133−adAnnotationId
134− = lens _adAnnotationId
135− (\ s a -> s{_adAnnotationId = a})
136−
137−-- | OAuth 2.0 token for the current user.
138−adOAuthToken :: Lens' AnnotationsDelete' (Maybe OAuthToken)
139−adOAuthToken
140− = lens _adOAuthToken (\ s a -> s{_adOAuthToken = a})
141−
142−-- | Selector specifying which fields to include in a partial response.
143−adFields :: Lens' AnnotationsDelete' (Maybe Text)
144−adFields = lens _adFields (\ s a -> s{_adFields = a})
145−
146−instance GoogleAuth AnnotationsDelete' where
147− _AuthKey = adKey . _Just
148− _AuthToken = adOAuthToken . _Just
149−
150−instance GoogleRequest AnnotationsDelete' where
151− type Rs AnnotationsDelete' = ()
152− request = requestWith genomicsRequest
153− requestWith rq AnnotationsDelete'{..}
154− = go _adAnnotationId _adQuotaUser
155− (Just _adPrettyPrint)
156− _adUserIP
157− _adFields
158− _adKey
159− _adOAuthToken
160− (Just AltJSON)
161− where go
162− = clientBuild
163− (Proxy :: Proxy AnnotationsDeleteResource)
164− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Get.hsdeleted−163
@@ -1,163 +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.Genomics.Annotations.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 an annotation. Caller must have READ permission for the associated
24−-- annotation set.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationsGet@.
27−module Network.Google.Resource.Genomics.Annotations.Get
28− (
29− -- * REST Resource
30− AnnotationsGetResource
31−
32− -- * Creating a Request
33− , annotationsGet'
34− , AnnotationsGet'
35−
36− -- * Request Lenses
37− , agQuotaUser
38− , agPrettyPrint
39− , agUserIP
40− , agKey
41− , agAnnotationId
42− , agOAuthToken
43− , agFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsAnnotationsGet@ method which the
50−-- 'AnnotationsGet'' request conforms to.
51−type AnnotationsGetResource =
52− "annotations" :>
53− Capture "annotationId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :> Get '[JSON] Annotation
61−
62−-- | Gets an annotation. Caller must have READ permission for the associated
63−-- annotation set.
64−--
65−-- /See:/ 'annotationsGet'' smart constructor.
66−data AnnotationsGet' = AnnotationsGet'
67− { _agQuotaUser :: !(Maybe Text)
68− , _agPrettyPrint :: !Bool
69− , _agUserIP :: !(Maybe Text)
70− , _agKey :: !(Maybe AuthKey)
71− , _agAnnotationId :: !Text
72− , _agOAuthToken :: !(Maybe OAuthToken)
73− , _agFields :: !(Maybe Text)
74− } deriving (Eq,Show,Data,Typeable,Generic)
75−
76−-- | Creates a value of 'AnnotationsGet'' with the minimum fields required to make a request.
77−--
78−-- Use one of the following lenses to modify other fields as desired:
79−--
80−-- * 'agQuotaUser'
81−--
82−-- * 'agPrettyPrint'
83−--
84−-- * 'agUserIP'
85−--
86−-- * 'agKey'
87−--
88−-- * 'agAnnotationId'
89−--
90−-- * 'agOAuthToken'
91−--
92−-- * 'agFields'
93−annotationsGet'
94− :: Text -- ^ 'annotationId'
95− -> AnnotationsGet'
96−annotationsGet' pAgAnnotationId_ =
97− AnnotationsGet'
98− { _agQuotaUser = Nothing
99− , _agPrettyPrint = True
100− , _agUserIP = Nothing
101− , _agKey = Nothing
102− , _agAnnotationId = pAgAnnotationId_
103− , _agOAuthToken = Nothing
104− , _agFields = Nothing
105− }
106−
107−-- | Available to use for quota purposes for server-side applications. Can be
108−-- any arbitrary string assigned to a user, but should not exceed 40
109−-- characters. Overrides userIp if both are provided.
110−agQuotaUser :: Lens' AnnotationsGet' (Maybe Text)
111−agQuotaUser
112− = lens _agQuotaUser (\ s a -> s{_agQuotaUser = a})
113−
114−-- | Returns response with indentations and line breaks.
115−agPrettyPrint :: Lens' AnnotationsGet' Bool
116−agPrettyPrint
117− = lens _agPrettyPrint
118− (\ s a -> s{_agPrettyPrint = a})
119−
120−-- | IP address of the site where the request originates. Use this if you
121−-- want to enforce per-user limits.
122−agUserIP :: Lens' AnnotationsGet' (Maybe Text)
123−agUserIP = lens _agUserIP (\ s a -> s{_agUserIP = a})
124−
125−-- | API key. Your API key identifies your project and provides you with API
126−-- access, quota, and reports. Required unless you provide an OAuth 2.0
127−-- token.
128−agKey :: Lens' AnnotationsGet' (Maybe AuthKey)
129−agKey = lens _agKey (\ s a -> s{_agKey = a})
130−
131−-- | The ID of the annotation set to be retrieved.
132−agAnnotationId :: Lens' AnnotationsGet' Text
133−agAnnotationId
134− = lens _agAnnotationId
135− (\ s a -> s{_agAnnotationId = a})
136−
137−-- | OAuth 2.0 token for the current user.
138−agOAuthToken :: Lens' AnnotationsGet' (Maybe OAuthToken)
139−agOAuthToken
140− = lens _agOAuthToken (\ s a -> s{_agOAuthToken = a})
141−
142−-- | Selector specifying which fields to include in a partial response.
143−agFields :: Lens' AnnotationsGet' (Maybe Text)
144−agFields = lens _agFields (\ s a -> s{_agFields = a})
145−
146−instance GoogleAuth AnnotationsGet' where
147− _AuthKey = agKey . _Just
148− _AuthToken = agOAuthToken . _Just
149−
150−instance GoogleRequest AnnotationsGet' where
151− type Rs AnnotationsGet' = Annotation
152− request = requestWith genomicsRequest
153− requestWith rq AnnotationsGet'{..}
154− = go _agAnnotationId _agQuotaUser
155− (Just _agPrettyPrint)
156− _agUserIP
157− _agFields
158− _agKey
159− _agOAuthToken
160− (Just AltJSON)
161− where go
162− = clientBuild (Proxy :: Proxy AnnotationsGetResource)
163− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Patch.hsdeleted−182
@@ -1,182 +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.Genomics.Annotations.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 an annotation. The update must respect all mutability
24−-- restrictions and other invariants described on the annotation resource.
25−-- Caller must have WRITE permission for the associated dataset. This
26−-- method supports patch semantics.
27−--
28−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationsPatch@.
29−module Network.Google.Resource.Genomics.Annotations.Patch
30− (
31− -- * REST Resource
32− AnnotationsPatchResource
33−
34− -- * Creating a Request
35− , annotationsPatch'
36− , AnnotationsPatch'
37−
38− -- * Request Lenses
39− , apQuotaUser
40− , apPrettyPrint
41− , apUserIP
42− , apPayload
43− , apKey
44− , apAnnotationId
45− , apOAuthToken
46− , apFields
47− ) where
48−
49−import Network.Google.Genomics.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @GenomicsAnnotationsPatch@ method which the
53−-- 'AnnotationsPatch'' request conforms to.
54−type AnnotationsPatchResource =
55− "annotations" :>
56− Capture "annotationId" Text :>
57− QueryParam "quotaUser" Text :>
58− QueryParam "prettyPrint" Bool :>
59− QueryParam "userIp" Text :>
60− QueryParam "fields" Text :>
61− QueryParam "key" AuthKey :>
62− QueryParam "oauth_token" OAuthToken :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] Annotation :>
65− Patch '[JSON] Annotation
66−
67−-- | Updates an annotation. The update must respect all mutability
68−-- restrictions and other invariants described on the annotation resource.
69−-- Caller must have WRITE permission for the associated dataset. This
70−-- method supports patch semantics.
71−--
72−-- /See:/ 'annotationsPatch'' smart constructor.
73−data AnnotationsPatch' = AnnotationsPatch'
74− { _apQuotaUser :: !(Maybe Text)
75− , _apPrettyPrint :: !Bool
76− , _apUserIP :: !(Maybe Text)
77− , _apPayload :: !Annotation
78− , _apKey :: !(Maybe AuthKey)
79− , _apAnnotationId :: !Text
80− , _apOAuthToken :: !(Maybe OAuthToken)
81− , _apFields :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'AnnotationsPatch'' 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−-- * 'apQuotaUser'
89−--
90−-- * 'apPrettyPrint'
91−--
92−-- * 'apUserIP'
93−--
94−-- * 'apPayload'
95−--
96−-- * 'apKey'
97−--
98−-- * 'apAnnotationId'
99−--
100−-- * 'apOAuthToken'
101−--
102−-- * 'apFields'
103−annotationsPatch'
104− :: Annotation -- ^ 'payload'
105− -> Text -- ^ 'annotationId'
106− -> AnnotationsPatch'
107−annotationsPatch' pApPayload_ pApAnnotationId_ =
108− AnnotationsPatch'
109− { _apQuotaUser = Nothing
110− , _apPrettyPrint = True
111− , _apUserIP = Nothing
112− , _apPayload = pApPayload_
113− , _apKey = Nothing
114− , _apAnnotationId = pApAnnotationId_
115− , _apOAuthToken = Nothing
116− , _apFields = Nothing
117− }
118−
119−-- | Available to use for quota purposes for server-side applications. Can be
120−-- any arbitrary string assigned to a user, but should not exceed 40
121−-- characters. Overrides userIp if both are provided.
122−apQuotaUser :: Lens' AnnotationsPatch' (Maybe Text)
123−apQuotaUser
124− = lens _apQuotaUser (\ s a -> s{_apQuotaUser = a})
125−
126−-- | Returns response with indentations and line breaks.
127−apPrettyPrint :: Lens' AnnotationsPatch' Bool
128−apPrettyPrint
129− = lens _apPrettyPrint
130− (\ s a -> s{_apPrettyPrint = a})
131−
132−-- | IP address of the site where the request originates. Use this if you
133−-- want to enforce per-user limits.
134−apUserIP :: Lens' AnnotationsPatch' (Maybe Text)
135−apUserIP = lens _apUserIP (\ s a -> s{_apUserIP = a})
136−
137−-- | Multipart request metadata.
138−apPayload :: Lens' AnnotationsPatch' Annotation
139−apPayload
140− = lens _apPayload (\ s a -> s{_apPayload = a})
141−
142−-- | API key. Your API key identifies your project and provides you with API
143−-- access, quota, and reports. Required unless you provide an OAuth 2.0
144−-- token.
145−apKey :: Lens' AnnotationsPatch' (Maybe AuthKey)
146−apKey = lens _apKey (\ s a -> s{_apKey = a})
147−
148−-- | The ID of the annotation set to be updated.
149−apAnnotationId :: Lens' AnnotationsPatch' Text
150−apAnnotationId
151− = lens _apAnnotationId
152− (\ s a -> s{_apAnnotationId = a})
153−
154−-- | OAuth 2.0 token for the current user.
155−apOAuthToken :: Lens' AnnotationsPatch' (Maybe OAuthToken)
156−apOAuthToken
157− = lens _apOAuthToken (\ s a -> s{_apOAuthToken = a})
158−
159−-- | Selector specifying which fields to include in a partial response.
160−apFields :: Lens' AnnotationsPatch' (Maybe Text)
161−apFields = lens _apFields (\ s a -> s{_apFields = a})
162−
163−instance GoogleAuth AnnotationsPatch' where
164− _AuthKey = apKey . _Just
165− _AuthToken = apOAuthToken . _Just
166−
167−instance GoogleRequest AnnotationsPatch' where
168− type Rs AnnotationsPatch' = Annotation
169− request = requestWith genomicsRequest
170− requestWith rq AnnotationsPatch'{..}
171− = go _apAnnotationId _apQuotaUser
172− (Just _apPrettyPrint)
173− _apUserIP
174− _apFields
175− _apKey
176− _apOAuthToken
177− (Just AltJSON)
178− _apPayload
179− where go
180− = clientBuild
181− (Proxy :: Proxy AnnotationsPatchResource)
182− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Search.hsdeleted−169
@@ -1,169 +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.Genomics.Annotations.Search
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−-- | Searches for annotations that match the given criteria. Results are
24−-- returned ordered by start position. Annotations that have matching start
25−-- positions are ordered deterministically. Caller must have READ
26−-- permission for the queried annotation sets.
27−--
28−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationsSearch@.
29−module Network.Google.Resource.Genomics.Annotations.Search
30− (
31− -- * REST Resource
32− AnnotationsSearchResource
33−
34− -- * Creating a Request
35− , annotationsSearch'
36− , AnnotationsSearch'
37−
38− -- * Request Lenses
39− , asQuotaUser
40− , asPrettyPrint
41− , asUserIP
42− , asPayload
43− , asKey
44− , asOAuthToken
45− , asFields
46− ) where
47−
48−import Network.Google.Genomics.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @GenomicsAnnotationsSearch@ method which the
52−-- 'AnnotationsSearch'' request conforms to.
53−type AnnotationsSearchResource =
54− "annotations" :>
55− "search" :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] SearchAnnotationsRequest :>
64− Post '[JSON] SearchAnnotationsResponse
65−
66−-- | Searches for annotations that match the given criteria. Results are
67−-- returned ordered by start position. Annotations that have matching start
68−-- positions are ordered deterministically. Caller must have READ
69−-- permission for the queried annotation sets.
70−--
71−-- /See:/ 'annotationsSearch'' smart constructor.
72−data AnnotationsSearch' = AnnotationsSearch'
73− { _asQuotaUser :: !(Maybe Text)
74− , _asPrettyPrint :: !Bool
75− , _asUserIP :: !(Maybe Text)
76− , _asPayload :: !SearchAnnotationsRequest
77− , _asKey :: !(Maybe AuthKey)
78− , _asOAuthToken :: !(Maybe OAuthToken)
79− , _asFields :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'AnnotationsSearch'' 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−-- * 'asQuotaUser'
87−--
88−-- * 'asPrettyPrint'
89−--
90−-- * 'asUserIP'
91−--
92−-- * 'asPayload'
93−--
94−-- * 'asKey'
95−--
96−-- * 'asOAuthToken'
97−--
98−-- * 'asFields'
99−annotationsSearch'
100− :: SearchAnnotationsRequest -- ^ 'payload'
101− -> AnnotationsSearch'
102−annotationsSearch' pAsPayload_ =
103− AnnotationsSearch'
104− { _asQuotaUser = Nothing
105− , _asPrettyPrint = True
106− , _asUserIP = Nothing
107− , _asPayload = pAsPayload_
108− , _asKey = Nothing
109− , _asOAuthToken = Nothing
110− , _asFields = Nothing
111− }
112−
113−-- | Available to use for quota purposes for server-side applications. Can be
114−-- any arbitrary string assigned to a user, but should not exceed 40
115−-- characters. Overrides userIp if both are provided.
116−asQuotaUser :: Lens' AnnotationsSearch' (Maybe Text)
117−asQuotaUser
118− = lens _asQuotaUser (\ s a -> s{_asQuotaUser = a})
119−
120−-- | Returns response with indentations and line breaks.
121−asPrettyPrint :: Lens' AnnotationsSearch' Bool
122−asPrettyPrint
123− = lens _asPrettyPrint
124− (\ s a -> s{_asPrettyPrint = a})
125−
126−-- | IP address of the site where the request originates. Use this if you
127−-- want to enforce per-user limits.
128−asUserIP :: Lens' AnnotationsSearch' (Maybe Text)
129−asUserIP = lens _asUserIP (\ s a -> s{_asUserIP = a})
130−
131−-- | Multipart request metadata.
132−asPayload :: Lens' AnnotationsSearch' SearchAnnotationsRequest
133−asPayload
134− = lens _asPayload (\ s a -> s{_asPayload = a})
135−
136−-- | API key. Your API key identifies your project and provides you with API
137−-- access, quota, and reports. Required unless you provide an OAuth 2.0
138−-- token.
139−asKey :: Lens' AnnotationsSearch' (Maybe AuthKey)
140−asKey = lens _asKey (\ s a -> s{_asKey = a})
141−
142−-- | OAuth 2.0 token for the current user.
143−asOAuthToken :: Lens' AnnotationsSearch' (Maybe OAuthToken)
144−asOAuthToken
145− = lens _asOAuthToken (\ s a -> s{_asOAuthToken = a})
146−
147−-- | Selector specifying which fields to include in a partial response.
148−asFields :: Lens' AnnotationsSearch' (Maybe Text)
149−asFields = lens _asFields (\ s a -> s{_asFields = a})
150−
151−instance GoogleAuth AnnotationsSearch' where
152− _AuthKey = asKey . _Just
153− _AuthToken = asOAuthToken . _Just
154−
155−instance GoogleRequest AnnotationsSearch' where
156− type Rs AnnotationsSearch' =
157− SearchAnnotationsResponse
158− request = requestWith genomicsRequest
159− requestWith rq AnnotationsSearch'{..}
160− = go _asQuotaUser (Just _asPrettyPrint) _asUserIP
161− _asFields
162− _asKey
163− _asOAuthToken
164− (Just AltJSON)
165− _asPayload
166− where go
167− = clientBuild
168− (Proxy :: Proxy AnnotationsSearchResource)
169− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Update.hsdeleted−179
@@ -1,179 +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.Genomics.Annotations.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 an annotation. The update must respect all mutability
24−-- restrictions and other invariants described on the annotation resource.
25−-- Caller must have WRITE permission for the associated dataset.
26−--
27−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsAnnotationsUpdate@.
28−module Network.Google.Resource.Genomics.Annotations.Update
29− (
30− -- * REST Resource
31− AnnotationsUpdateResource
32−
33− -- * Creating a Request
34− , annotationsUpdate'
35− , AnnotationsUpdate'
36−
37− -- * Request Lenses
38− , auQuotaUser
39− , auPrettyPrint
40− , auUserIP
41− , auPayload
42− , auKey
43− , auAnnotationId
44− , auOAuthToken
45− , auFields
46− ) where
47−
48−import Network.Google.Genomics.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @GenomicsAnnotationsUpdate@ method which the
52−-- 'AnnotationsUpdate'' request conforms to.
53−type AnnotationsUpdateResource =
54− "annotations" :>
55− Capture "annotationId" Text :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] Annotation :> Put '[JSON] Annotation
64−
65−-- | Updates an annotation. The update must respect all mutability
66−-- restrictions and other invariants described on the annotation resource.
67−-- Caller must have WRITE permission for the associated dataset.
68−--
69−-- /See:/ 'annotationsUpdate'' smart constructor.
70−data AnnotationsUpdate' = AnnotationsUpdate'
71− { _auQuotaUser :: !(Maybe Text)
72− , _auPrettyPrint :: !Bool
73− , _auUserIP :: !(Maybe Text)
74− , _auPayload :: !Annotation
75− , _auKey :: !(Maybe AuthKey)
76− , _auAnnotationId :: !Text
77− , _auOAuthToken :: !(Maybe OAuthToken)
78− , _auFields :: !(Maybe Text)
79− } deriving (Eq,Show,Data,Typeable,Generic)
80−
81−-- | Creates a value of 'AnnotationsUpdate'' with the minimum fields required to make a request.
82−--
83−-- Use one of the following lenses to modify other fields as desired:
84−--
85−-- * 'auQuotaUser'
86−--
87−-- * 'auPrettyPrint'
88−--
89−-- * 'auUserIP'
90−--
91−-- * 'auPayload'
92−--
93−-- * 'auKey'
94−--
95−-- * 'auAnnotationId'
96−--
97−-- * 'auOAuthToken'
98−--
99−-- * 'auFields'
100−annotationsUpdate'
101− :: Annotation -- ^ 'payload'
102− -> Text -- ^ 'annotationId'
103− -> AnnotationsUpdate'
104−annotationsUpdate' pAuPayload_ pAuAnnotationId_ =
105− AnnotationsUpdate'
106− { _auQuotaUser = Nothing
107− , _auPrettyPrint = True
108− , _auUserIP = Nothing
109− , _auPayload = pAuPayload_
110− , _auKey = Nothing
111− , _auAnnotationId = pAuAnnotationId_
112− , _auOAuthToken = Nothing
113− , _auFields = Nothing
114− }
115−
116−-- | Available to use for quota purposes for server-side applications. Can be
117−-- any arbitrary string assigned to a user, but should not exceed 40
118−-- characters. Overrides userIp if both are provided.
119−auQuotaUser :: Lens' AnnotationsUpdate' (Maybe Text)
120−auQuotaUser
121− = lens _auQuotaUser (\ s a -> s{_auQuotaUser = a})
122−
123−-- | Returns response with indentations and line breaks.
124−auPrettyPrint :: Lens' AnnotationsUpdate' Bool
125−auPrettyPrint
126− = lens _auPrettyPrint
127− (\ s a -> s{_auPrettyPrint = a})
128−
129−-- | IP address of the site where the request originates. Use this if you
130−-- want to enforce per-user limits.
131−auUserIP :: Lens' AnnotationsUpdate' (Maybe Text)
132−auUserIP = lens _auUserIP (\ s a -> s{_auUserIP = a})
133−
134−-- | Multipart request metadata.
135−auPayload :: Lens' AnnotationsUpdate' Annotation
136−auPayload
137− = lens _auPayload (\ s a -> s{_auPayload = a})
138−
139−-- | API key. Your API key identifies your project and provides you with API
140−-- access, quota, and reports. Required unless you provide an OAuth 2.0
141−-- token.
142−auKey :: Lens' AnnotationsUpdate' (Maybe AuthKey)
143−auKey = lens _auKey (\ s a -> s{_auKey = a})
144−
145−-- | The ID of the annotation set to be updated.
146−auAnnotationId :: Lens' AnnotationsUpdate' Text
147−auAnnotationId
148− = lens _auAnnotationId
149− (\ s a -> s{_auAnnotationId = a})
150−
151−-- | OAuth 2.0 token for the current user.
152−auOAuthToken :: Lens' AnnotationsUpdate' (Maybe OAuthToken)
153−auOAuthToken
154− = lens _auOAuthToken (\ s a -> s{_auOAuthToken = a})
155−
156−-- | Selector specifying which fields to include in a partial response.
157−auFields :: Lens' AnnotationsUpdate' (Maybe Text)
158−auFields = lens _auFields (\ s a -> s{_auFields = a})
159−
160−instance GoogleAuth AnnotationsUpdate' where
161− _AuthKey = auKey . _Just
162− _AuthToken = auOAuthToken . _Just
163−
164−instance GoogleRequest AnnotationsUpdate' where
165− type Rs AnnotationsUpdate' = Annotation
166− request = requestWith genomicsRequest
167− requestWith rq AnnotationsUpdate'{..}
168− = go _auAnnotationId _auQuotaUser
169− (Just _auPrettyPrint)
170− _auUserIP
171− _auFields
172− _auKey
173− _auOAuthToken
174− (Just AltJSON)
175− _auPayload
176− where go
177− = clientBuild
178− (Proxy :: Proxy AnnotationsUpdateResource)
179− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Create.hs+102−27
@@ -22,7 +22,7 @@
2222--
2323-- | Creates a new call set.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsCreate@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsCreate@.
2626module Network.Google.Resource.Genomics.Callsets.Create
2727 (
2828 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Callsets.Create
3333 , CallsetsCreate'
3434
3535 -- * Request Lenses
36+ , ccXgafv
3637 , ccQuotaUser
3738 , ccPrettyPrint
38− , ccUserIP
39+ , ccUploadProtocol
40+ , ccPp
41+ , ccAccessToken
42+ , ccUploadType
3943 , ccPayload
44+ , ccBearerToken
4045 , ccKey
4146 , ccOAuthToken
4247 , ccFields
48+ , ccCallback
4349 ) where
4450
4551import Network.Google.Genomics.Types
@@ -48,63 +54,99 @@ import Network.Google.Prelude
4854-- | A resource alias for @GenomicsCallsetsCreate@ method which the
4955-- 'CallsetsCreate'' request conforms to.
5056type CallsetsCreateResource =
51− "callsets" :>
52− QueryParam "quotaUser" Text :>
53− QueryParam "prettyPrint" Bool :>
54− QueryParam "userIp" Text :>
55− QueryParam "fields" Text :>
56− QueryParam "key" AuthKey :>
57− QueryParam "oauth_token" OAuthToken :>
58− QueryParam "alt" AltJSON :>
59− ReqBody '[JSON] CallSet :> Post '[JSON] CallSet
57+ "v1" :>
58+ "callsets" :>
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 "quotaUser" Text :>
67+ QueryParam "prettyPrint" Bool :>
68+ QueryParam "fields" Text :>
69+ QueryParam "key" AuthKey :>
70+ QueryParam "oauth_token" OAuthToken :>
71+ QueryParam "alt" AltJSON :>
72+ ReqBody '[JSON] CallSet :>
73+ Post '[JSON] CallSet
6074
6175-- | Creates a new call set.
6276--
6377-- /See:/ 'callsetsCreate'' smart constructor.
6478data CallsetsCreate' = CallsetsCreate'
65− { _ccQuotaUser :: !(Maybe Text)
66− , _ccPrettyPrint :: !Bool
67− , _ccUserIP :: !(Maybe Text)
68− , _ccPayload :: !CallSet
69− , _ccKey :: !(Maybe AuthKey)
70− , _ccOAuthToken :: !(Maybe OAuthToken)
71− , _ccFields :: !(Maybe Text)
79+ { _ccXgafv :: !(Maybe Text)
80+ , _ccQuotaUser :: !(Maybe Text)
81+ , _ccPrettyPrint :: !Bool
82+ , _ccUploadProtocol :: !(Maybe Text)
83+ , _ccPp :: !Bool
84+ , _ccAccessToken :: !(Maybe Text)
85+ , _ccUploadType :: !(Maybe Text)
86+ , _ccPayload :: !CallSet
87+ , _ccBearerToken :: !(Maybe Text)
88+ , _ccKey :: !(Maybe AuthKey)
89+ , _ccOAuthToken :: !(Maybe OAuthToken)
90+ , _ccFields :: !(Maybe Text)
91+ , _ccCallback :: !(Maybe Text)
7292 } deriving (Eq,Show,Data,Typeable,Generic)
7393
7494-- | Creates a value of 'CallsetsCreate'' with the minimum fields required to make a request.
7595--
7696-- Use one of the following lenses to modify other fields as desired:
7797--
98+-- * 'ccXgafv'
99+--
78100-- * 'ccQuotaUser'
79101--
80102-- * 'ccPrettyPrint'
81103--
82−-- * 'ccUserIP'
104+-- * 'ccUploadProtocol'
105+--
106+-- * 'ccPp'
107+--
108+-- * 'ccAccessToken'
109+--
110+-- * 'ccUploadType'
83111--
84112-- * 'ccPayload'
85113--
114+-- * 'ccBearerToken'
115+--
86116-- * 'ccKey'
87117--
88118-- * 'ccOAuthToken'
89119--
90120-- * 'ccFields'
121+--
122+-- * 'ccCallback'
91123callsetsCreate'
92124 :: CallSet -- ^ 'payload'
93125 -> CallsetsCreate'
94126callsetsCreate' pCcPayload_ =
95127 CallsetsCreate'
96− { _ccQuotaUser = Nothing
128+ { _ccXgafv = Nothing
129+ , _ccQuotaUser = Nothing
97130 , _ccPrettyPrint = True
98− , _ccUserIP = Nothing
131+ , _ccUploadProtocol = Nothing
132+ , _ccPp = True
133+ , _ccAccessToken = Nothing
134+ , _ccUploadType = Nothing
99135 , _ccPayload = pCcPayload_
136+ , _ccBearerToken = Nothing
100137 , _ccKey = Nothing
101138 , _ccOAuthToken = Nothing
102139 , _ccFields = Nothing
140+ , _ccCallback = Nothing
103141 }
104142
143+-- | V1 error format.
144+ccXgafv :: Lens' CallsetsCreate' (Maybe Text)
145+ccXgafv = lens _ccXgafv (\ s a -> s{_ccXgafv = a})
146+
105147-- | Available to use for quota purposes for server-side applications. Can be
106148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108150ccQuotaUser :: Lens' CallsetsCreate' (Maybe Text)
109151ccQuotaUser
110152 = lens _ccQuotaUser (\ s a -> s{_ccQuotaUser = a})
@@ -115,16 +157,38 @@ ccPrettyPrint
115157 = lens _ccPrettyPrint
116158 (\ s a -> s{_ccPrettyPrint = a})
117159
118−-- | IP address of the site where the request originates. Use this if you
119−-- want to enforce per-user limits.
120−ccUserIP :: Lens' CallsetsCreate' (Maybe Text)
121−ccUserIP = lens _ccUserIP (\ s a -> s{_ccUserIP = a})
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+ccUploadProtocol :: Lens' CallsetsCreate' (Maybe Text)
162+ccUploadProtocol
163+ = lens _ccUploadProtocol
164+ (\ s a -> s{_ccUploadProtocol = a})
165+
166+-- | Pretty-print response.
167+ccPp :: Lens' CallsetsCreate' Bool
168+ccPp = lens _ccPp (\ s a -> s{_ccPp = a})
169+
170+-- | OAuth access token.
171+ccAccessToken :: Lens' CallsetsCreate' (Maybe Text)
172+ccAccessToken
173+ = lens _ccAccessToken
174+ (\ s a -> s{_ccAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+ccUploadType :: Lens' CallsetsCreate' (Maybe Text)
178+ccUploadType
179+ = lens _ccUploadType (\ s a -> s{_ccUploadType = a})
122180
123181-- | Multipart request metadata.
124182ccPayload :: Lens' CallsetsCreate' CallSet
125183ccPayload
126184 = lens _ccPayload (\ s a -> s{_ccPayload = a})
127185
186+-- | OAuth bearer token.
187+ccBearerToken :: Lens' CallsetsCreate' (Maybe Text)
188+ccBearerToken
189+ = lens _ccBearerToken
190+ (\ s a -> s{_ccBearerToken = a})
191+
128192-- | API key. Your API key identifies your project and provides you with API
129193-- access, quota, and reports. Required unless you provide an OAuth 2.0
130194-- token.
@@ -140,6 +204,11 @@ ccOAuthToken
140204ccFields :: Lens' CallsetsCreate' (Maybe Text)
141205ccFields = lens _ccFields (\ s a -> s{_ccFields = a})
142206
207+-- | JSONP
208+ccCallback :: Lens' CallsetsCreate' (Maybe Text)
209+ccCallback
210+ = lens _ccCallback (\ s a -> s{_ccCallback = a})
211+
143212instance GoogleAuth CallsetsCreate' where
144213 _AuthKey = ccKey . _Just
145214 _AuthToken = ccOAuthToken . _Just
@@ -148,7 +217,13 @@ instance GoogleRequest CallsetsCreate' where
148217 type Rs CallsetsCreate' = CallSet
149218 request = requestWith genomicsRequest
150219 requestWith rq CallsetsCreate'{..}
151− = go _ccQuotaUser (Just _ccPrettyPrint) _ccUserIP
220+ = go _ccXgafv _ccUploadProtocol (Just _ccPp)
221+ _ccAccessToken
222+ _ccUploadType
223+ _ccBearerToken
224+ _ccCallback
225+ _ccQuotaUser
226+ (Just _ccPrettyPrint)
152227 _ccFields
153228 _ccKey
154229 _ccOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Delete.hs+104−29
@@ -22,7 +22,7 @@
2222--
2323-- | Deletes a call set.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsDelete@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsDelete@.
2626module Network.Google.Resource.Genomics.Callsets.Delete
2727 (
2828 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Callsets.Delete
3333 , CallsetsDelete'
3434
3535 -- * Request Lenses
36+ , cdXgafv
3637 , cdQuotaUser
3738 , cdPrettyPrint
38− , cdUserIP
39+ , cdUploadProtocol
40+ , cdPp
41+ , cdAccessToken
42+ , cdUploadType
43+ , cdBearerToken
3944 , cdKey
4045 , cdCallSetId
4146 , cdOAuthToken
4247 , cdFields
48+ , cdCallback
4349 ) where
4450
4551import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
4854-- | A resource alias for @GenomicsCallsetsDelete@ method which the
4955-- 'CallsetsDelete'' request conforms to.
5056type CallsetsDeleteResource =
51− "callsets" :>
52− Capture "callSetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Delete '[JSON] ()
57+ "v1" :>
58+ "callsets" :>
59+ Capture "callSetId" 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 "quotaUser" Text :>
68+ QueryParam "prettyPrint" Bool :>
69+ QueryParam "fields" Text :>
70+ QueryParam "key" AuthKey :>
71+ QueryParam "oauth_token" OAuthToken :>
72+ QueryParam "alt" AltJSON :>
73+ Delete '[JSON] Empty
6074
6175-- | Deletes a call set.
6276--
6377-- /See:/ 'callsetsDelete'' smart constructor.
6478data CallsetsDelete' = CallsetsDelete'
65− { _cdQuotaUser :: !(Maybe Text)
66− , _cdPrettyPrint :: !Bool
67− , _cdUserIP :: !(Maybe Text)
68− , _cdKey :: !(Maybe AuthKey)
69− , _cdCallSetId :: !Text
70− , _cdOAuthToken :: !(Maybe OAuthToken)
71− , _cdFields :: !(Maybe Text)
79+ { _cdXgafv :: !(Maybe Text)
80+ , _cdQuotaUser :: !(Maybe Text)
81+ , _cdPrettyPrint :: !Bool
82+ , _cdUploadProtocol :: !(Maybe Text)
83+ , _cdPp :: !Bool
84+ , _cdAccessToken :: !(Maybe Text)
85+ , _cdUploadType :: !(Maybe Text)
86+ , _cdBearerToken :: !(Maybe Text)
87+ , _cdKey :: !(Maybe AuthKey)
88+ , _cdCallSetId :: !Text
89+ , _cdOAuthToken :: !(Maybe OAuthToken)
90+ , _cdFields :: !(Maybe Text)
91+ , _cdCallback :: !(Maybe Text)
7292 } deriving (Eq,Show,Data,Typeable,Generic)
7393
7494-- | Creates a value of 'CallsetsDelete'' with the minimum fields required to make a request.
7595--
7696-- Use one of the following lenses to modify other fields as desired:
7797--
98+-- * 'cdXgafv'
99+--
78100-- * 'cdQuotaUser'
79101--
80102-- * 'cdPrettyPrint'
81103--
82−-- * 'cdUserIP'
104+-- * 'cdUploadProtocol'
105+--
106+-- * 'cdPp'
107+--
108+-- * 'cdAccessToken'
109+--
110+-- * 'cdUploadType'
111+--
112+-- * 'cdBearerToken'
83113--
84114-- * 'cdKey'
85115--
@@ -88,23 +118,35 @@ data CallsetsDelete' = CallsetsDelete'
88118-- * 'cdOAuthToken'
89119--
90120-- * 'cdFields'
121+--
122+-- * 'cdCallback'
91123callsetsDelete'
92124 :: Text -- ^ 'callSetId'
93125 -> CallsetsDelete'
94126callsetsDelete' pCdCallSetId_ =
95127 CallsetsDelete'
96− { _cdQuotaUser = Nothing
128+ { _cdXgafv = Nothing
129+ , _cdQuotaUser = Nothing
97130 , _cdPrettyPrint = True
98− , _cdUserIP = Nothing
131+ , _cdUploadProtocol = Nothing
132+ , _cdPp = True
133+ , _cdAccessToken = Nothing
134+ , _cdUploadType = Nothing
135+ , _cdBearerToken = Nothing
99136 , _cdKey = Nothing
100137 , _cdCallSetId = pCdCallSetId_
101138 , _cdOAuthToken = Nothing
102139 , _cdFields = Nothing
140+ , _cdCallback = Nothing
103141 }
104142
143+-- | V1 error format.
144+cdXgafv :: Lens' CallsetsDelete' (Maybe Text)
145+cdXgafv = lens _cdXgafv (\ s a -> s{_cdXgafv = a})
146+
105147-- | Available to use for quota purposes for server-side applications. Can be
106148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108150cdQuotaUser :: Lens' CallsetsDelete' (Maybe Text)
109151cdQuotaUser
110152 = lens _cdQuotaUser (\ s a -> s{_cdQuotaUser = a})
@@ -115,10 +157,32 @@ cdPrettyPrint
115157 = lens _cdPrettyPrint
116158 (\ s a -> s{_cdPrettyPrint = a})
117159
118−-- | IP address of the site where the request originates. Use this if you
119−-- want to enforce per-user limits.
120−cdUserIP :: Lens' CallsetsDelete' (Maybe Text)
121−cdUserIP = lens _cdUserIP (\ s a -> s{_cdUserIP = a})
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+cdUploadProtocol :: Lens' CallsetsDelete' (Maybe Text)
162+cdUploadProtocol
163+ = lens _cdUploadProtocol
164+ (\ s a -> s{_cdUploadProtocol = a})
165+
166+-- | Pretty-print response.
167+cdPp :: Lens' CallsetsDelete' Bool
168+cdPp = lens _cdPp (\ s a -> s{_cdPp = a})
169+
170+-- | OAuth access token.
171+cdAccessToken :: Lens' CallsetsDelete' (Maybe Text)
172+cdAccessToken
173+ = lens _cdAccessToken
174+ (\ s a -> s{_cdAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+cdUploadType :: Lens' CallsetsDelete' (Maybe Text)
178+cdUploadType
179+ = lens _cdUploadType (\ s a -> s{_cdUploadType = a})
180+
181+-- | OAuth bearer token.
182+cdBearerToken :: Lens' CallsetsDelete' (Maybe Text)
183+cdBearerToken
184+ = lens _cdBearerToken
185+ (\ s a -> s{_cdBearerToken = a})
122186
123187-- | API key. Your API key identifies your project and provides you with API
124188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,16 +204,27 @@ cdOAuthToken
140204cdFields :: Lens' CallsetsDelete' (Maybe Text)
141205cdFields = lens _cdFields (\ s a -> s{_cdFields = a})
142206
207+-- | JSONP
208+cdCallback :: Lens' CallsetsDelete' (Maybe Text)
209+cdCallback
210+ = lens _cdCallback (\ s a -> s{_cdCallback = a})
211+
143212instance GoogleAuth CallsetsDelete' where
144213 _AuthKey = cdKey . _Just
145214 _AuthToken = cdOAuthToken . _Just
146215
147216instance GoogleRequest CallsetsDelete' where
148− type Rs CallsetsDelete' = ()
217+ type Rs CallsetsDelete' = Empty
149218 request = requestWith genomicsRequest
150219 requestWith rq CallsetsDelete'{..}
151− = go _cdCallSetId _cdQuotaUser (Just _cdPrettyPrint)
152− _cdUserIP
220+ = go _cdCallSetId _cdXgafv _cdUploadProtocol
221+ (Just _cdPp)
222+ _cdAccessToken
223+ _cdUploadType
224+ _cdBearerToken
225+ _cdCallback
226+ _cdQuotaUser
227+ (Just _cdPrettyPrint)
153228 _cdFields
154229 _cdKey
155230 _cdOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Get.hs+103−28
@@ -22,7 +22,7 @@
2222--
2323-- | Gets a call set by ID.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsGet@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsGet@.
2626module Network.Google.Resource.Genomics.Callsets.Get
2727 (
2828 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Callsets.Get
3333 , CallsetsGet'
3434
3535 -- * Request Lenses
36+ , cgXgafv
3637 , cgQuotaUser
3738 , cgPrettyPrint
38− , cgUserIP
39+ , cgUploadProtocol
40+ , cgPp
41+ , cgAccessToken
42+ , cgUploadType
43+ , cgBearerToken
3944 , cgKey
4045 , cgCallSetId
4146 , cgOAuthToken
4247 , cgFields
48+ , cgCallback
4349 ) where
4450
4551import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
4854-- | A resource alias for @GenomicsCallsetsGet@ method which the
4955-- 'CallsetsGet'' request conforms to.
5056type CallsetsGetResource =
51− "callsets" :>
52− Capture "callSetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Get '[JSON] CallSet
57+ "v1" :>
58+ "callsets" :>
59+ Capture "callSetId" 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 "quotaUser" Text :>
68+ QueryParam "prettyPrint" Bool :>
69+ QueryParam "fields" Text :>
70+ QueryParam "key" AuthKey :>
71+ QueryParam "oauth_token" OAuthToken :>
72+ QueryParam "alt" AltJSON :>
73+ Get '[JSON] CallSet
6074
6175-- | Gets a call set by ID.
6276--
6377-- /See:/ 'callsetsGet'' smart constructor.
6478data CallsetsGet' = CallsetsGet'
65− { _cgQuotaUser :: !(Maybe Text)
66− , _cgPrettyPrint :: !Bool
67− , _cgUserIP :: !(Maybe Text)
68− , _cgKey :: !(Maybe AuthKey)
69− , _cgCallSetId :: !Text
70− , _cgOAuthToken :: !(Maybe OAuthToken)
71− , _cgFields :: !(Maybe Text)
79+ { _cgXgafv :: !(Maybe Text)
80+ , _cgQuotaUser :: !(Maybe Text)
81+ , _cgPrettyPrint :: !Bool
82+ , _cgUploadProtocol :: !(Maybe Text)
83+ , _cgPp :: !Bool
84+ , _cgAccessToken :: !(Maybe Text)
85+ , _cgUploadType :: !(Maybe Text)
86+ , _cgBearerToken :: !(Maybe Text)
87+ , _cgKey :: !(Maybe AuthKey)
88+ , _cgCallSetId :: !Text
89+ , _cgOAuthToken :: !(Maybe OAuthToken)
90+ , _cgFields :: !(Maybe Text)
91+ , _cgCallback :: !(Maybe Text)
7292 } deriving (Eq,Show,Data,Typeable,Generic)
7393
7494-- | Creates a value of 'CallsetsGet'' with the minimum fields required to make a request.
7595--
7696-- Use one of the following lenses to modify other fields as desired:
7797--
98+-- * 'cgXgafv'
99+--
78100-- * 'cgQuotaUser'
79101--
80102-- * 'cgPrettyPrint'
81103--
82−-- * 'cgUserIP'
104+-- * 'cgUploadProtocol'
105+--
106+-- * 'cgPp'
107+--
108+-- * 'cgAccessToken'
109+--
110+-- * 'cgUploadType'
111+--
112+-- * 'cgBearerToken'
83113--
84114-- * 'cgKey'
85115--
@@ -88,23 +118,35 @@ data CallsetsGet' = CallsetsGet'
88118-- * 'cgOAuthToken'
89119--
90120-- * 'cgFields'
121+--
122+-- * 'cgCallback'
91123callsetsGet'
92124 :: Text -- ^ 'callSetId'
93125 -> CallsetsGet'
94126callsetsGet' pCgCallSetId_ =
95127 CallsetsGet'
96− { _cgQuotaUser = Nothing
128+ { _cgXgafv = Nothing
129+ , _cgQuotaUser = Nothing
97130 , _cgPrettyPrint = True
98− , _cgUserIP = Nothing
131+ , _cgUploadProtocol = Nothing
132+ , _cgPp = True
133+ , _cgAccessToken = Nothing
134+ , _cgUploadType = Nothing
135+ , _cgBearerToken = Nothing
99136 , _cgKey = Nothing
100137 , _cgCallSetId = pCgCallSetId_
101138 , _cgOAuthToken = Nothing
102139 , _cgFields = Nothing
140+ , _cgCallback = Nothing
103141 }
104142
143+-- | V1 error format.
144+cgXgafv :: Lens' CallsetsGet' (Maybe Text)
145+cgXgafv = lens _cgXgafv (\ s a -> s{_cgXgafv = a})
146+
105147-- | Available to use for quota purposes for server-side applications. Can be
106148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108150cgQuotaUser :: Lens' CallsetsGet' (Maybe Text)
109151cgQuotaUser
110152 = lens _cgQuotaUser (\ s a -> s{_cgQuotaUser = a})
@@ -115,10 +157,32 @@ cgPrettyPrint
115157 = lens _cgPrettyPrint
116158 (\ s a -> s{_cgPrettyPrint = a})
117159
118−-- | IP address of the site where the request originates. Use this if you
119−-- want to enforce per-user limits.
120−cgUserIP :: Lens' CallsetsGet' (Maybe Text)
121−cgUserIP = lens _cgUserIP (\ s a -> s{_cgUserIP = a})
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+cgUploadProtocol :: Lens' CallsetsGet' (Maybe Text)
162+cgUploadProtocol
163+ = lens _cgUploadProtocol
164+ (\ s a -> s{_cgUploadProtocol = a})
165+
166+-- | Pretty-print response.
167+cgPp :: Lens' CallsetsGet' Bool
168+cgPp = lens _cgPp (\ s a -> s{_cgPp = a})
169+
170+-- | OAuth access token.
171+cgAccessToken :: Lens' CallsetsGet' (Maybe Text)
172+cgAccessToken
173+ = lens _cgAccessToken
174+ (\ s a -> s{_cgAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+cgUploadType :: Lens' CallsetsGet' (Maybe Text)
178+cgUploadType
179+ = lens _cgUploadType (\ s a -> s{_cgUploadType = a})
180+
181+-- | OAuth bearer token.
182+cgBearerToken :: Lens' CallsetsGet' (Maybe Text)
183+cgBearerToken
184+ = lens _cgBearerToken
185+ (\ s a -> s{_cgBearerToken = a})
122186
123187-- | API key. Your API key identifies your project and provides you with API
124188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,6 +204,11 @@ cgOAuthToken
140204cgFields :: Lens' CallsetsGet' (Maybe Text)
141205cgFields = lens _cgFields (\ s a -> s{_cgFields = a})
142206
207+-- | JSONP
208+cgCallback :: Lens' CallsetsGet' (Maybe Text)
209+cgCallback
210+ = lens _cgCallback (\ s a -> s{_cgCallback = a})
211+
143212instance GoogleAuth CallsetsGet' where
144213 _AuthKey = cgKey . _Just
145214 _AuthToken = cgOAuthToken . _Just
@@ -148,8 +217,14 @@ instance GoogleRequest CallsetsGet' where
148217 type Rs CallsetsGet' = CallSet
149218 request = requestWith genomicsRequest
150219 requestWith rq CallsetsGet'{..}
151− = go _cgCallSetId _cgQuotaUser (Just _cgPrettyPrint)
152− _cgUserIP
220+ = go _cgCallSetId _cgXgafv _cgUploadProtocol
221+ (Just _cgPp)
222+ _cgAccessToken
223+ _cgUploadType
224+ _cgBearerToken
225+ _cgCallback
226+ _cgQuotaUser
227+ (Just _cgPrettyPrint)
153228 _cgFields
154229 _cgKey
155230 _cgOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Patch.hs+119−30
@@ -22,7 +22,7 @@
2222--
2323-- | Updates a call set. This method supports patch semantics.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsPatch@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsPatch@.
2626module Network.Google.Resource.Genomics.Callsets.Patch
2727 (
2828 -- * REST Resource
@@ -33,14 +33,21 @@ module Network.Google.Resource.Genomics.Callsets.Patch
3333 , CallsetsPatch'
3434
3535 -- * Request Lenses
36+ , cpXgafv
3637 , cpQuotaUser
3738 , cpPrettyPrint
38− , cpUserIP
39+ , cpUploadProtocol
40+ , cpUpdateMask
41+ , cpPp
42+ , cpAccessToken
43+ , cpUploadType
3944 , cpPayload
45+ , cpBearerToken
4046 , cpKey
4147 , cpCallSetId
4248 , cpOAuthToken
4349 , cpFields
50+ , cpCallback
4451 ) where
4552
4653import Network.Google.Genomics.Types
@@ -49,43 +56,71 @@ import Network.Google.Prelude
4956-- | A resource alias for @GenomicsCallsetsPatch@ method which the
5057-- 'CallsetsPatch'' request conforms to.
5158type CallsetsPatchResource =
52− "callsets" :>
53− Capture "callSetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] CallSet :> Patch '[JSON] CallSet
59+ "v1" :>
60+ "callsets" :>
61+ Capture "callSetId" Text :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "updateMask" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "quotaUser" Text :>
71+ QueryParam "prettyPrint" Bool :>
72+ QueryParam "fields" Text :>
73+ QueryParam "key" AuthKey :>
74+ QueryParam "oauth_token" OAuthToken :>
75+ QueryParam "alt" AltJSON :>
76+ ReqBody '[JSON] CallSet :>
77+ Patch '[JSON] CallSet
6278
6379-- | Updates a call set. This method supports patch semantics.
6480--
6581-- /See:/ 'callsetsPatch'' smart constructor.
6682data CallsetsPatch' = CallsetsPatch'
67− { _cpQuotaUser :: !(Maybe Text)
68− , _cpPrettyPrint :: !Bool
69− , _cpUserIP :: !(Maybe Text)
70− , _cpPayload :: !CallSet
71− , _cpKey :: !(Maybe AuthKey)
72− , _cpCallSetId :: !Text
73− , _cpOAuthToken :: !(Maybe OAuthToken)
74− , _cpFields :: !(Maybe Text)
83+ { _cpXgafv :: !(Maybe Text)
84+ , _cpQuotaUser :: !(Maybe Text)
85+ , _cpPrettyPrint :: !Bool
86+ , _cpUploadProtocol :: !(Maybe Text)
87+ , _cpUpdateMask :: !(Maybe Text)
88+ , _cpPp :: !Bool
89+ , _cpAccessToken :: !(Maybe Text)
90+ , _cpUploadType :: !(Maybe Text)
91+ , _cpPayload :: !CallSet
92+ , _cpBearerToken :: !(Maybe Text)
93+ , _cpKey :: !(Maybe AuthKey)
94+ , _cpCallSetId :: !Text
95+ , _cpOAuthToken :: !(Maybe OAuthToken)
96+ , _cpFields :: !(Maybe Text)
97+ , _cpCallback :: !(Maybe Text)
7598 } deriving (Eq,Show,Data,Typeable,Generic)
7699
77100-- | Creates a value of 'CallsetsPatch'' with the minimum fields required to make a request.
78101--
79102-- Use one of the following lenses to modify other fields as desired:
80103--
104+-- * 'cpXgafv'
105+--
81106-- * 'cpQuotaUser'
82107--
83108-- * 'cpPrettyPrint'
84109--
85−-- * 'cpUserIP'
110+-- * 'cpUploadProtocol'
111+--
112+-- * 'cpUpdateMask'
113+--
114+-- * 'cpPp'
115+--
116+-- * 'cpAccessToken'
117+--
118+-- * 'cpUploadType'
86119--
87120-- * 'cpPayload'
88121--
122+-- * 'cpBearerToken'
123+--
89124-- * 'cpKey'
90125--
91126-- * 'cpCallSetId'
@@ -93,25 +128,38 @@ data CallsetsPatch' = CallsetsPatch'
93128-- * 'cpOAuthToken'
94129--
95130-- * 'cpFields'
131+--
132+-- * 'cpCallback'
96133callsetsPatch'
97134 :: CallSet -- ^ 'payload'
98135 -> Text -- ^ 'callSetId'
99136 -> CallsetsPatch'
100137callsetsPatch' pCpPayload_ pCpCallSetId_ =
101138 CallsetsPatch'
102− { _cpQuotaUser = Nothing
139+ { _cpXgafv = Nothing
140+ , _cpQuotaUser = Nothing
103141 , _cpPrettyPrint = True
104− , _cpUserIP = Nothing
142+ , _cpUploadProtocol = Nothing
143+ , _cpUpdateMask = Nothing
144+ , _cpPp = True
145+ , _cpAccessToken = Nothing
146+ , _cpUploadType = Nothing
105147 , _cpPayload = pCpPayload_
148+ , _cpBearerToken = Nothing
106149 , _cpKey = Nothing
107150 , _cpCallSetId = pCpCallSetId_
108151 , _cpOAuthToken = Nothing
109152 , _cpFields = Nothing
153+ , _cpCallback = Nothing
110154 }
111155
156+-- | V1 error format.
157+cpXgafv :: Lens' CallsetsPatch' (Maybe Text)
158+cpXgafv = lens _cpXgafv (\ s a -> s{_cpXgafv = a})
159+
112160-- | Available to use for quota purposes for server-side applications. Can be
113161-- any arbitrary string assigned to a user, but should not exceed 40
114−-- characters. Overrides userIp if both are provided.
162+-- characters.
115163cpQuotaUser :: Lens' CallsetsPatch' (Maybe Text)
116164cpQuotaUser
117165 = lens _cpQuotaUser (\ s a -> s{_cpQuotaUser = a})
@@ -122,16 +170,45 @@ cpPrettyPrint
122170 = lens _cpPrettyPrint
123171 (\ s a -> s{_cpPrettyPrint = a})
124172
125−-- | IP address of the site where the request originates. Use this if you
126−-- want to enforce per-user limits.
127−cpUserIP :: Lens' CallsetsPatch' (Maybe Text)
128−cpUserIP = lens _cpUserIP (\ s a -> s{_cpUserIP = a})
173+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
174+cpUploadProtocol :: Lens' CallsetsPatch' (Maybe Text)
175+cpUploadProtocol
176+ = lens _cpUploadProtocol
177+ (\ s a -> s{_cpUploadProtocol = a})
178+
179+-- | An optional mask specifying which fields to update. At this time, the
180+-- only mutable field is name. The only acceptable value is \"name\". If
181+-- unspecified, all mutable fields will be updated.
182+cpUpdateMask :: Lens' CallsetsPatch' (Maybe Text)
183+cpUpdateMask
184+ = lens _cpUpdateMask (\ s a -> s{_cpUpdateMask = a})
185+
186+-- | Pretty-print response.
187+cpPp :: Lens' CallsetsPatch' Bool
188+cpPp = lens _cpPp (\ s a -> s{_cpPp = a})
189+
190+-- | OAuth access token.
191+cpAccessToken :: Lens' CallsetsPatch' (Maybe Text)
192+cpAccessToken
193+ = lens _cpAccessToken
194+ (\ s a -> s{_cpAccessToken = a})
195+
196+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
197+cpUploadType :: Lens' CallsetsPatch' (Maybe Text)
198+cpUploadType
199+ = lens _cpUploadType (\ s a -> s{_cpUploadType = a})
129200
130201-- | Multipart request metadata.
131202cpPayload :: Lens' CallsetsPatch' CallSet
132203cpPayload
133204 = lens _cpPayload (\ s a -> s{_cpPayload = a})
134205
206+-- | OAuth bearer token.
207+cpBearerToken :: Lens' CallsetsPatch' (Maybe Text)
208+cpBearerToken
209+ = lens _cpBearerToken
210+ (\ s a -> s{_cpBearerToken = a})
211+
135212-- | API key. Your API key identifies your project and provides you with API
136213-- access, quota, and reports. Required unless you provide an OAuth 2.0
137214-- token.
@@ -152,6 +229,11 @@ cpOAuthToken
152229cpFields :: Lens' CallsetsPatch' (Maybe Text)
153230cpFields = lens _cpFields (\ s a -> s{_cpFields = a})
154231
232+-- | JSONP
233+cpCallback :: Lens' CallsetsPatch' (Maybe Text)
234+cpCallback
235+ = lens _cpCallback (\ s a -> s{_cpCallback = a})
236+
155237instance GoogleAuth CallsetsPatch' where
156238 _AuthKey = cpKey . _Just
157239 _AuthToken = cpOAuthToken . _Just
@@ -160,8 +242,15 @@ instance GoogleRequest CallsetsPatch' where
160242 type Rs CallsetsPatch' = CallSet
161243 request = requestWith genomicsRequest
162244 requestWith rq CallsetsPatch'{..}
163− = go _cpCallSetId _cpQuotaUser (Just _cpPrettyPrint)
164− _cpUserIP
245+ = go _cpCallSetId _cpXgafv _cpUploadProtocol
246+ _cpUpdateMask
247+ (Just _cpPp)
248+ _cpAccessToken
249+ _cpUploadType
250+ _cpBearerToken
251+ _cpCallback
252+ _cpQuotaUser
253+ (Just _cpPrettyPrint)
165254 _cpFields
166255 _cpKey
167256 _cpOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Search.hs+105−31
@@ -21,9 +21,9 @@
2121-- Portability : non-portable (GHC extensions)
2222--
2323-- | Gets a list of call sets matching the criteria. Implements
24−-- GlobalAllianceApi.searchCallSets.
24+-- [GlobalAllianceApi.searchCallSets](https:\/\/github.com\/ga4gh\/schemas\/blob\/v0.5.1\/src\/main\/resources\/avro\/variantmethods.avdl#L178).
2525--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsSearch@.
26+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsSearch@.
2727module Network.Google.Resource.Genomics.Callsets.Search
2828 (
2929 -- * REST Resource
@@ -34,13 +34,19 @@ module Network.Google.Resource.Genomics.Callsets.Search
3434 , CallsetsSearch'
3535
3636 -- * Request Lenses
37+ , csXgafv
3738 , csQuotaUser
3839 , csPrettyPrint
39− , csUserIP
40+ , csUploadProtocol
41+ , csPp
42+ , csAccessToken
43+ , csUploadType
4044 , csPayload
45+ , csBearerToken
4146 , csKey
4247 , csOAuthToken
4348 , csFields
49+ , csCallback
4450 ) where
4551
4652import Network.Google.Genomics.Types
@@ -49,66 +55,101 @@ import Network.Google.Prelude
4955-- | A resource alias for @GenomicsCallsetsSearch@ method which the
5056-- 'CallsetsSearch'' request conforms to.
5157type CallsetsSearchResource =
52− "callsets" :>
53− "search" :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] SearchCallSetsRequest :>
62− Post '[JSON] SearchCallSetsResponse
58+ "v1" :>
59+ "callsets" :>
60+ "search" :>
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 "quotaUser" Text :>
69+ QueryParam "prettyPrint" Bool :>
70+ QueryParam "fields" Text :>
71+ QueryParam "key" AuthKey :>
72+ QueryParam "oauth_token" OAuthToken :>
73+ QueryParam "alt" AltJSON :>
74+ ReqBody '[JSON] SearchCallSetsRequest :>
75+ Post '[JSON] SearchCallSetsResponse
6376
6477-- | Gets a list of call sets matching the criteria. Implements
65−-- GlobalAllianceApi.searchCallSets.
78+-- [GlobalAllianceApi.searchCallSets](https:\/\/github.com\/ga4gh\/schemas\/blob\/v0.5.1\/src\/main\/resources\/avro\/variantmethods.avdl#L178).
6679--
6780-- /See:/ 'callsetsSearch'' smart constructor.
6881data CallsetsSearch' = CallsetsSearch'
69− { _csQuotaUser :: !(Maybe Text)
70− , _csPrettyPrint :: !Bool
71− , _csUserIP :: !(Maybe Text)
72− , _csPayload :: !SearchCallSetsRequest
73− , _csKey :: !(Maybe AuthKey)
74− , _csOAuthToken :: !(Maybe OAuthToken)
75− , _csFields :: !(Maybe Text)
82+ { _csXgafv :: !(Maybe Text)
83+ , _csQuotaUser :: !(Maybe Text)
84+ , _csPrettyPrint :: !Bool
85+ , _csUploadProtocol :: !(Maybe Text)
86+ , _csPp :: !Bool
87+ , _csAccessToken :: !(Maybe Text)
88+ , _csUploadType :: !(Maybe Text)
89+ , _csPayload :: !SearchCallSetsRequest
90+ , _csBearerToken :: !(Maybe Text)
91+ , _csKey :: !(Maybe AuthKey)
92+ , _csOAuthToken :: !(Maybe OAuthToken)
93+ , _csFields :: !(Maybe Text)
94+ , _csCallback :: !(Maybe Text)
7695 } deriving (Eq,Show,Data,Typeable,Generic)
7796
7897-- | Creates a value of 'CallsetsSearch'' with the minimum fields required to make a request.
7998--
8099-- Use one of the following lenses to modify other fields as desired:
81100--
101+-- * 'csXgafv'
102+--
82103-- * 'csQuotaUser'
83104--
84105-- * 'csPrettyPrint'
85106--
86−-- * 'csUserIP'
107+-- * 'csUploadProtocol'
108+--
109+-- * 'csPp'
110+--
111+-- * 'csAccessToken'
112+--
113+-- * 'csUploadType'
87114--
88115-- * 'csPayload'
89116--
117+-- * 'csBearerToken'
118+--
90119-- * 'csKey'
91120--
92121-- * 'csOAuthToken'
93122--
94123-- * 'csFields'
124+--
125+-- * 'csCallback'
95126callsetsSearch'
96127 :: SearchCallSetsRequest -- ^ 'payload'
97128 -> CallsetsSearch'
98129callsetsSearch' pCsPayload_ =
99130 CallsetsSearch'
100− { _csQuotaUser = Nothing
131+ { _csXgafv = Nothing
132+ , _csQuotaUser = Nothing
101133 , _csPrettyPrint = True
102− , _csUserIP = Nothing
134+ , _csUploadProtocol = Nothing
135+ , _csPp = True
136+ , _csAccessToken = Nothing
137+ , _csUploadType = Nothing
103138 , _csPayload = pCsPayload_
139+ , _csBearerToken = Nothing
104140 , _csKey = Nothing
105141 , _csOAuthToken = Nothing
106142 , _csFields = Nothing
143+ , _csCallback = Nothing
107144 }
108145
146+-- | V1 error format.
147+csXgafv :: Lens' CallsetsSearch' (Maybe Text)
148+csXgafv = lens _csXgafv (\ s a -> s{_csXgafv = a})
149+
109150-- | Available to use for quota purposes for server-side applications. Can be
110151-- any arbitrary string assigned to a user, but should not exceed 40
111−-- characters. Overrides userIp if both are provided.
152+-- characters.
112153csQuotaUser :: Lens' CallsetsSearch' (Maybe Text)
113154csQuotaUser
114155 = lens _csQuotaUser (\ s a -> s{_csQuotaUser = a})
@@ -119,16 +160,38 @@ csPrettyPrint
119160 = lens _csPrettyPrint
120161 (\ s a -> s{_csPrettyPrint = a})
121162
122−-- | IP address of the site where the request originates. Use this if you
123−-- want to enforce per-user limits.
124−csUserIP :: Lens' CallsetsSearch' (Maybe Text)
125−csUserIP = lens _csUserIP (\ s a -> s{_csUserIP = a})
163+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
164+csUploadProtocol :: Lens' CallsetsSearch' (Maybe Text)
165+csUploadProtocol
166+ = lens _csUploadProtocol
167+ (\ s a -> s{_csUploadProtocol = a})
168+
169+-- | Pretty-print response.
170+csPp :: Lens' CallsetsSearch' Bool
171+csPp = lens _csPp (\ s a -> s{_csPp = a})
172+
173+-- | OAuth access token.
174+csAccessToken :: Lens' CallsetsSearch' (Maybe Text)
175+csAccessToken
176+ = lens _csAccessToken
177+ (\ s a -> s{_csAccessToken = a})
178+
179+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
180+csUploadType :: Lens' CallsetsSearch' (Maybe Text)
181+csUploadType
182+ = lens _csUploadType (\ s a -> s{_csUploadType = a})
126183
127184-- | Multipart request metadata.
128185csPayload :: Lens' CallsetsSearch' SearchCallSetsRequest
129186csPayload
130187 = lens _csPayload (\ s a -> s{_csPayload = a})
131188
189+-- | OAuth bearer token.
190+csBearerToken :: Lens' CallsetsSearch' (Maybe Text)
191+csBearerToken
192+ = lens _csBearerToken
193+ (\ s a -> s{_csBearerToken = a})
194+
132195-- | API key. Your API key identifies your project and provides you with API
133196-- access, quota, and reports. Required unless you provide an OAuth 2.0
134197-- token.
@@ -144,6 +207,11 @@ csOAuthToken
144207csFields :: Lens' CallsetsSearch' (Maybe Text)
145208csFields = lens _csFields (\ s a -> s{_csFields = a})
146209
210+-- | JSONP
211+csCallback :: Lens' CallsetsSearch' (Maybe Text)
212+csCallback
213+ = lens _csCallback (\ s a -> s{_csCallback = a})
214+
147215instance GoogleAuth CallsetsSearch' where
148216 _AuthKey = csKey . _Just
149217 _AuthToken = csOAuthToken . _Just
@@ -152,7 +220,13 @@ instance GoogleRequest CallsetsSearch' where
152220 type Rs CallsetsSearch' = SearchCallSetsResponse
153221 request = requestWith genomicsRequest
154222 requestWith rq CallsetsSearch'{..}
155− = go _csQuotaUser (Just _csPrettyPrint) _csUserIP
223+ = go _csXgafv _csUploadProtocol (Just _csPp)
224+ _csAccessToken
225+ _csUploadType
226+ _csBearerToken
227+ _csCallback
228+ _csQuotaUser
229+ (Just _csPrettyPrint)
156230 _csFields
157231 _csKey
158232 _csOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Update.hsdeleted−172
@@ -1,172 +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.Genomics.Callsets.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 call set.
24−--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsUpdate@.
26−module Network.Google.Resource.Genomics.Callsets.Update
27− (
28− -- * REST Resource
29− CallsetsUpdateResource
30−
31− -- * Creating a Request
32− , callsetsUpdate'
33− , CallsetsUpdate'
34−
35− -- * Request Lenses
36− , cuQuotaUser
37− , cuPrettyPrint
38− , cuUserIP
39− , cuPayload
40− , cuKey
41− , cuCallSetId
42− , cuOAuthToken
43− , cuFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsCallsetsUpdate@ method which the
50−-- 'CallsetsUpdate'' request conforms to.
51−type CallsetsUpdateResource =
52− "callsets" :>
53− Capture "callSetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] CallSet :> Put '[JSON] CallSet
62−
63−-- | Updates a call set.
64−--
65−-- /See:/ 'callsetsUpdate'' smart constructor.
66−data CallsetsUpdate' = CallsetsUpdate'
67− { _cuQuotaUser :: !(Maybe Text)
68− , _cuPrettyPrint :: !Bool
69− , _cuUserIP :: !(Maybe Text)
70− , _cuPayload :: !CallSet
71− , _cuKey :: !(Maybe AuthKey)
72− , _cuCallSetId :: !Text
73− , _cuOAuthToken :: !(Maybe OAuthToken)
74− , _cuFields :: !(Maybe Text)
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'CallsetsUpdate'' with the minimum fields required to make a request.
78−--
79−-- Use one of the following lenses to modify other fields as desired:
80−--
81−-- * 'cuQuotaUser'
82−--
83−-- * 'cuPrettyPrint'
84−--
85−-- * 'cuUserIP'
86−--
87−-- * 'cuPayload'
88−--
89−-- * 'cuKey'
90−--
91−-- * 'cuCallSetId'
92−--
93−-- * 'cuOAuthToken'
94−--
95−-- * 'cuFields'
96−callsetsUpdate'
97− :: CallSet -- ^ 'payload'
98− -> Text -- ^ 'callSetId'
99− -> CallsetsUpdate'
100−callsetsUpdate' pCuPayload_ pCuCallSetId_ =
101− CallsetsUpdate'
102− { _cuQuotaUser = Nothing
103− , _cuPrettyPrint = True
104− , _cuUserIP = Nothing
105− , _cuPayload = pCuPayload_
106− , _cuKey = Nothing
107− , _cuCallSetId = pCuCallSetId_
108− , _cuOAuthToken = Nothing
109− , _cuFields = Nothing
110− }
111−
112−-- | Available to use for quota purposes for server-side applications. Can be
113−-- any arbitrary string assigned to a user, but should not exceed 40
114−-- characters. Overrides userIp if both are provided.
115−cuQuotaUser :: Lens' CallsetsUpdate' (Maybe Text)
116−cuQuotaUser
117− = lens _cuQuotaUser (\ s a -> s{_cuQuotaUser = a})
118−
119−-- | Returns response with indentations and line breaks.
120−cuPrettyPrint :: Lens' CallsetsUpdate' Bool
121−cuPrettyPrint
122− = lens _cuPrettyPrint
123− (\ s a -> s{_cuPrettyPrint = a})
124−
125−-- | IP address of the site where the request originates. Use this if you
126−-- want to enforce per-user limits.
127−cuUserIP :: Lens' CallsetsUpdate' (Maybe Text)
128−cuUserIP = lens _cuUserIP (\ s a -> s{_cuUserIP = a})
129−
130−-- | Multipart request metadata.
131−cuPayload :: Lens' CallsetsUpdate' CallSet
132−cuPayload
133− = lens _cuPayload (\ s a -> s{_cuPayload = a})
134−
135−-- | API key. Your API key identifies your project and provides you with API
136−-- access, quota, and reports. Required unless you provide an OAuth 2.0
137−-- token.
138−cuKey :: Lens' CallsetsUpdate' (Maybe AuthKey)
139−cuKey = lens _cuKey (\ s a -> s{_cuKey = a})
140−
141−-- | The ID of the call set to be updated.
142−cuCallSetId :: Lens' CallsetsUpdate' Text
143−cuCallSetId
144− = lens _cuCallSetId (\ s a -> s{_cuCallSetId = a})
145−
146−-- | OAuth 2.0 token for the current user.
147−cuOAuthToken :: Lens' CallsetsUpdate' (Maybe OAuthToken)
148−cuOAuthToken
149− = lens _cuOAuthToken (\ s a -> s{_cuOAuthToken = a})
150−
151−-- | Selector specifying which fields to include in a partial response.
152−cuFields :: Lens' CallsetsUpdate' (Maybe Text)
153−cuFields = lens _cuFields (\ s a -> s{_cuFields = a})
154−
155−instance GoogleAuth CallsetsUpdate' where
156− _AuthKey = cuKey . _Just
157− _AuthToken = cuOAuthToken . _Just
158−
159−instance GoogleRequest CallsetsUpdate' where
160− type Rs CallsetsUpdate' = CallSet
161− request = requestWith genomicsRequest
162− requestWith rq CallsetsUpdate'{..}
163− = go _cuCallSetId _cuQuotaUser (Just _cuPrettyPrint)
164− _cuUserIP
165− _cuFields
166− _cuKey
167− _cuOAuthToken
168− (Just AltJSON)
169− _cuPayload
170− where go
171− = clientBuild (Proxy :: Proxy CallsetsUpdateResource)
172− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Create.hs+102−27
@@ -22,7 +22,7 @@
2222--
2323-- | Creates a new dataset.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsCreate@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsCreate@.
2626module Network.Google.Resource.Genomics.Datasets.Create
2727 (
2828 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Datasets.Create
3333 , DatasetsCreate'
3434
3535 -- * Request Lenses
36+ , dcXgafv
3637 , dcQuotaUser
3738 , dcPrettyPrint
38− , dcUserIP
39+ , dcUploadProtocol
40+ , dcPp
41+ , dcAccessToken
42+ , dcUploadType
3943 , dcPayload
44+ , dcBearerToken
4045 , dcKey
4146 , dcOAuthToken
4247 , dcFields
48+ , dcCallback
4349 ) where
4450
4551import Network.Google.Genomics.Types
@@ -48,63 +54,99 @@ import Network.Google.Prelude
4854-- | A resource alias for @GenomicsDatasetsCreate@ method which the
4955-- 'DatasetsCreate'' request conforms to.
5056type DatasetsCreateResource =
51− "datasets" :>
52− QueryParam "quotaUser" Text :>
53− QueryParam "prettyPrint" Bool :>
54− QueryParam "userIp" Text :>
55− QueryParam "fields" Text :>
56− QueryParam "key" AuthKey :>
57− QueryParam "oauth_token" OAuthToken :>
58− QueryParam "alt" AltJSON :>
59− ReqBody '[JSON] Dataset :> Post '[JSON] Dataset
57+ "v1" :>
58+ "datasets" :>
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 "quotaUser" Text :>
67+ QueryParam "prettyPrint" Bool :>
68+ QueryParam "fields" Text :>
69+ QueryParam "key" AuthKey :>
70+ QueryParam "oauth_token" OAuthToken :>
71+ QueryParam "alt" AltJSON :>
72+ ReqBody '[JSON] Dataset :>
73+ Post '[JSON] Dataset
6074
6175-- | Creates a new dataset.
6276--
6377-- /See:/ 'datasetsCreate'' smart constructor.
6478data DatasetsCreate' = DatasetsCreate'
65− { _dcQuotaUser :: !(Maybe Text)
66− , _dcPrettyPrint :: !Bool
67− , _dcUserIP :: !(Maybe Text)
68− , _dcPayload :: !Dataset
69− , _dcKey :: !(Maybe AuthKey)
70− , _dcOAuthToken :: !(Maybe OAuthToken)
71− , _dcFields :: !(Maybe Text)
79+ { _dcXgafv :: !(Maybe Text)
80+ , _dcQuotaUser :: !(Maybe Text)
81+ , _dcPrettyPrint :: !Bool
82+ , _dcUploadProtocol :: !(Maybe Text)
83+ , _dcPp :: !Bool
84+ , _dcAccessToken :: !(Maybe Text)
85+ , _dcUploadType :: !(Maybe Text)
86+ , _dcPayload :: !Dataset
87+ , _dcBearerToken :: !(Maybe Text)
88+ , _dcKey :: !(Maybe AuthKey)
89+ , _dcOAuthToken :: !(Maybe OAuthToken)
90+ , _dcFields :: !(Maybe Text)
91+ , _dcCallback :: !(Maybe Text)
7292 } deriving (Eq,Show,Data,Typeable,Generic)
7393
7494-- | Creates a value of 'DatasetsCreate'' with the minimum fields required to make a request.
7595--
7696-- Use one of the following lenses to modify other fields as desired:
7797--
98+-- * 'dcXgafv'
99+--
78100-- * 'dcQuotaUser'
79101--
80102-- * 'dcPrettyPrint'
81103--
82−-- * 'dcUserIP'
104+-- * 'dcUploadProtocol'
105+--
106+-- * 'dcPp'
107+--
108+-- * 'dcAccessToken'
109+--
110+-- * 'dcUploadType'
83111--
84112-- * 'dcPayload'
85113--
114+-- * 'dcBearerToken'
115+--
86116-- * 'dcKey'
87117--
88118-- * 'dcOAuthToken'
89119--
90120-- * 'dcFields'
121+--
122+-- * 'dcCallback'
91123datasetsCreate'
92124 :: Dataset -- ^ 'payload'
93125 -> DatasetsCreate'
94126datasetsCreate' pDcPayload_ =
95127 DatasetsCreate'
96− { _dcQuotaUser = Nothing
128+ { _dcXgafv = Nothing
129+ , _dcQuotaUser = Nothing
97130 , _dcPrettyPrint = True
98− , _dcUserIP = Nothing
131+ , _dcUploadProtocol = Nothing
132+ , _dcPp = True
133+ , _dcAccessToken = Nothing
134+ , _dcUploadType = Nothing
99135 , _dcPayload = pDcPayload_
136+ , _dcBearerToken = Nothing
100137 , _dcKey = Nothing
101138 , _dcOAuthToken = Nothing
102139 , _dcFields = Nothing
140+ , _dcCallback = Nothing
103141 }
104142
143+-- | V1 error format.
144+dcXgafv :: Lens' DatasetsCreate' (Maybe Text)
145+dcXgafv = lens _dcXgafv (\ s a -> s{_dcXgafv = a})
146+
105147-- | Available to use for quota purposes for server-side applications. Can be
106148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108150dcQuotaUser :: Lens' DatasetsCreate' (Maybe Text)
109151dcQuotaUser
110152 = lens _dcQuotaUser (\ s a -> s{_dcQuotaUser = a})
@@ -115,16 +157,38 @@ dcPrettyPrint
115157 = lens _dcPrettyPrint
116158 (\ s a -> s{_dcPrettyPrint = a})
117159
118−-- | IP address of the site where the request originates. Use this if you
119−-- want to enforce per-user limits.
120−dcUserIP :: Lens' DatasetsCreate' (Maybe Text)
121−dcUserIP = lens _dcUserIP (\ s a -> s{_dcUserIP = a})
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+dcUploadProtocol :: Lens' DatasetsCreate' (Maybe Text)
162+dcUploadProtocol
163+ = lens _dcUploadProtocol
164+ (\ s a -> s{_dcUploadProtocol = a})
165+
166+-- | Pretty-print response.
167+dcPp :: Lens' DatasetsCreate' Bool
168+dcPp = lens _dcPp (\ s a -> s{_dcPp = a})
169+
170+-- | OAuth access token.
171+dcAccessToken :: Lens' DatasetsCreate' (Maybe Text)
172+dcAccessToken
173+ = lens _dcAccessToken
174+ (\ s a -> s{_dcAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+dcUploadType :: Lens' DatasetsCreate' (Maybe Text)
178+dcUploadType
179+ = lens _dcUploadType (\ s a -> s{_dcUploadType = a})
122180
123181-- | Multipart request metadata.
124182dcPayload :: Lens' DatasetsCreate' Dataset
125183dcPayload
126184 = lens _dcPayload (\ s a -> s{_dcPayload = a})
127185
186+-- | OAuth bearer token.
187+dcBearerToken :: Lens' DatasetsCreate' (Maybe Text)
188+dcBearerToken
189+ = lens _dcBearerToken
190+ (\ s a -> s{_dcBearerToken = a})
191+
128192-- | API key. Your API key identifies your project and provides you with API
129193-- access, quota, and reports. Required unless you provide an OAuth 2.0
130194-- token.
@@ -140,6 +204,11 @@ dcOAuthToken
140204dcFields :: Lens' DatasetsCreate' (Maybe Text)
141205dcFields = lens _dcFields (\ s a -> s{_dcFields = a})
142206
207+-- | JSONP
208+dcCallback :: Lens' DatasetsCreate' (Maybe Text)
209+dcCallback
210+ = lens _dcCallback (\ s a -> s{_dcCallback = a})
211+
143212instance GoogleAuth DatasetsCreate' where
144213 _AuthKey = dcKey . _Just
145214 _AuthToken = dcOAuthToken . _Just
@@ -148,7 +217,13 @@ instance GoogleRequest DatasetsCreate' where
148217 type Rs DatasetsCreate' = Dataset
149218 request = requestWith genomicsRequest
150219 requestWith rq DatasetsCreate'{..}
151− = go _dcQuotaUser (Just _dcPrettyPrint) _dcUserIP
220+ = go _dcXgafv _dcUploadProtocol (Just _dcPp)
221+ _dcAccessToken
222+ _dcUploadType
223+ _dcBearerToken
224+ _dcCallback
225+ _dcQuotaUser
226+ (Just _dcPrettyPrint)
152227 _dcFields
153228 _dcKey
154229 _dcOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Delete.hs+104−29
@@ -22,7 +22,7 @@
2222--
2323-- | Deletes a dataset.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsDelete@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsDelete@.
2626module Network.Google.Resource.Genomics.Datasets.Delete
2727 (
2828 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Datasets.Delete
3333 , DatasetsDelete'
3434
3535 -- * Request Lenses
36+ , ddXgafv
3637 , ddQuotaUser
3738 , ddPrettyPrint
38− , ddUserIP
39+ , ddUploadProtocol
40+ , ddPp
41+ , ddAccessToken
42+ , ddUploadType
43+ , ddBearerToken
3944 , ddKey
4045 , ddDatasetId
4146 , ddOAuthToken
4247 , ddFields
48+ , ddCallback
4349 ) where
4450
4551import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
4854-- | A resource alias for @GenomicsDatasetsDelete@ method which the
4955-- 'DatasetsDelete'' request conforms to.
5056type DatasetsDeleteResource =
51− "datasets" :>
52− Capture "datasetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Delete '[JSON] ()
57+ "v1" :>
58+ "datasets" :>
59+ Capture "datasetId" 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 "quotaUser" Text :>
68+ QueryParam "prettyPrint" Bool :>
69+ QueryParam "fields" Text :>
70+ QueryParam "key" AuthKey :>
71+ QueryParam "oauth_token" OAuthToken :>
72+ QueryParam "alt" AltJSON :>
73+ Delete '[JSON] Empty
6074
6175-- | Deletes a dataset.
6276--
6377-- /See:/ 'datasetsDelete'' smart constructor.
6478data DatasetsDelete' = DatasetsDelete'
65− { _ddQuotaUser :: !(Maybe Text)
66− , _ddPrettyPrint :: !Bool
67− , _ddUserIP :: !(Maybe Text)
68− , _ddKey :: !(Maybe AuthKey)
69− , _ddDatasetId :: !Text
70− , _ddOAuthToken :: !(Maybe OAuthToken)
71− , _ddFields :: !(Maybe Text)
79+ { _ddXgafv :: !(Maybe Text)
80+ , _ddQuotaUser :: !(Maybe Text)
81+ , _ddPrettyPrint :: !Bool
82+ , _ddUploadProtocol :: !(Maybe Text)
83+ , _ddPp :: !Bool
84+ , _ddAccessToken :: !(Maybe Text)
85+ , _ddUploadType :: !(Maybe Text)
86+ , _ddBearerToken :: !(Maybe Text)
87+ , _ddKey :: !(Maybe AuthKey)
88+ , _ddDatasetId :: !Text
89+ , _ddOAuthToken :: !(Maybe OAuthToken)
90+ , _ddFields :: !(Maybe Text)
91+ , _ddCallback :: !(Maybe Text)
7292 } deriving (Eq,Show,Data,Typeable,Generic)
7393
7494-- | Creates a value of 'DatasetsDelete'' with the minimum fields required to make a request.
7595--
7696-- Use one of the following lenses to modify other fields as desired:
7797--
98+-- * 'ddXgafv'
99+--
78100-- * 'ddQuotaUser'
79101--
80102-- * 'ddPrettyPrint'
81103--
82−-- * 'ddUserIP'
104+-- * 'ddUploadProtocol'
105+--
106+-- * 'ddPp'
107+--
108+-- * 'ddAccessToken'
109+--
110+-- * 'ddUploadType'
111+--
112+-- * 'ddBearerToken'
83113--
84114-- * 'ddKey'
85115--
@@ -88,23 +118,35 @@ data DatasetsDelete' = DatasetsDelete'
88118-- * 'ddOAuthToken'
89119--
90120-- * 'ddFields'
121+--
122+-- * 'ddCallback'
91123datasetsDelete'
92124 :: Text -- ^ 'datasetId'
93125 -> DatasetsDelete'
94126datasetsDelete' pDdDatasetId_ =
95127 DatasetsDelete'
96− { _ddQuotaUser = Nothing
128+ { _ddXgafv = Nothing
129+ , _ddQuotaUser = Nothing
97130 , _ddPrettyPrint = True
98− , _ddUserIP = Nothing
131+ , _ddUploadProtocol = Nothing
132+ , _ddPp = True
133+ , _ddAccessToken = Nothing
134+ , _ddUploadType = Nothing
135+ , _ddBearerToken = Nothing
99136 , _ddKey = Nothing
100137 , _ddDatasetId = pDdDatasetId_
101138 , _ddOAuthToken = Nothing
102139 , _ddFields = Nothing
140+ , _ddCallback = Nothing
103141 }
104142
143+-- | V1 error format.
144+ddXgafv :: Lens' DatasetsDelete' (Maybe Text)
145+ddXgafv = lens _ddXgafv (\ s a -> s{_ddXgafv = a})
146+
105147-- | Available to use for quota purposes for server-side applications. Can be
106148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108150ddQuotaUser :: Lens' DatasetsDelete' (Maybe Text)
109151ddQuotaUser
110152 = lens _ddQuotaUser (\ s a -> s{_ddQuotaUser = a})
@@ -115,10 +157,32 @@ ddPrettyPrint
115157 = lens _ddPrettyPrint
116158 (\ s a -> s{_ddPrettyPrint = a})
117159
118−-- | IP address of the site where the request originates. Use this if you
119−-- want to enforce per-user limits.
120−ddUserIP :: Lens' DatasetsDelete' (Maybe Text)
121−ddUserIP = lens _ddUserIP (\ s a -> s{_ddUserIP = a})
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+ddUploadProtocol :: Lens' DatasetsDelete' (Maybe Text)
162+ddUploadProtocol
163+ = lens _ddUploadProtocol
164+ (\ s a -> s{_ddUploadProtocol = a})
165+
166+-- | Pretty-print response.
167+ddPp :: Lens' DatasetsDelete' Bool
168+ddPp = lens _ddPp (\ s a -> s{_ddPp = a})
169+
170+-- | OAuth access token.
171+ddAccessToken :: Lens' DatasetsDelete' (Maybe Text)
172+ddAccessToken
173+ = lens _ddAccessToken
174+ (\ s a -> s{_ddAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+ddUploadType :: Lens' DatasetsDelete' (Maybe Text)
178+ddUploadType
179+ = lens _ddUploadType (\ s a -> s{_ddUploadType = a})
180+
181+-- | OAuth bearer token.
182+ddBearerToken :: Lens' DatasetsDelete' (Maybe Text)
183+ddBearerToken
184+ = lens _ddBearerToken
185+ (\ s a -> s{_ddBearerToken = a})
122186
123187-- | API key. Your API key identifies your project and provides you with API
124188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,16 +204,27 @@ ddOAuthToken
140204ddFields :: Lens' DatasetsDelete' (Maybe Text)
141205ddFields = lens _ddFields (\ s a -> s{_ddFields = a})
142206
207+-- | JSONP
208+ddCallback :: Lens' DatasetsDelete' (Maybe Text)
209+ddCallback
210+ = lens _ddCallback (\ s a -> s{_ddCallback = a})
211+
143212instance GoogleAuth DatasetsDelete' where
144213 _AuthKey = ddKey . _Just
145214 _AuthToken = ddOAuthToken . _Just
146215
147216instance GoogleRequest DatasetsDelete' where
148− type Rs DatasetsDelete' = ()
217+ type Rs DatasetsDelete' = Empty
149218 request = requestWith genomicsRequest
150219 requestWith rq DatasetsDelete'{..}
151− = go _ddDatasetId _ddQuotaUser (Just _ddPrettyPrint)
152− _ddUserIP
220+ = go _ddDatasetId _ddXgafv _ddUploadProtocol
221+ (Just _ddPp)
222+ _ddAccessToken
223+ _ddUploadType
224+ _ddBearerToken
225+ _ddCallback
226+ _ddQuotaUser
227+ (Just _ddPrettyPrint)
153228 _ddFields
154229 _ddKey
155230 _ddOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Get.hs+103−28
@@ -22,7 +22,7 @@
2222--
2323-- | Gets a dataset by ID.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsGet@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsGet@.
2626module Network.Google.Resource.Genomics.Datasets.Get
2727 (
2828 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Datasets.Get
3333 , DatasetsGet'
3434
3535 -- * Request Lenses
36+ , dgXgafv
3637 , dgQuotaUser
3738 , dgPrettyPrint
38− , dgUserIP
39+ , dgUploadProtocol
40+ , dgPp
41+ , dgAccessToken
42+ , dgUploadType
43+ , dgBearerToken
3944 , dgKey
4045 , dgDatasetId
4146 , dgOAuthToken
4247 , dgFields
48+ , dgCallback
4349 ) where
4450
4551import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
4854-- | A resource alias for @GenomicsDatasetsGet@ method which the
4955-- 'DatasetsGet'' request conforms to.
5056type DatasetsGetResource =
51− "datasets" :>
52− Capture "datasetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Get '[JSON] Dataset
57+ "v1" :>
58+ "datasets" :>
59+ Capture "datasetId" 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 "quotaUser" Text :>
68+ QueryParam "prettyPrint" Bool :>
69+ QueryParam "fields" Text :>
70+ QueryParam "key" AuthKey :>
71+ QueryParam "oauth_token" OAuthToken :>
72+ QueryParam "alt" AltJSON :>
73+ Get '[JSON] Dataset
6074
6175-- | Gets a dataset by ID.
6276--
6377-- /See:/ 'datasetsGet'' smart constructor.
6478data DatasetsGet' = DatasetsGet'
65− { _dgQuotaUser :: !(Maybe Text)
66− , _dgPrettyPrint :: !Bool
67− , _dgUserIP :: !(Maybe Text)
68− , _dgKey :: !(Maybe AuthKey)
69− , _dgDatasetId :: !Text
70− , _dgOAuthToken :: !(Maybe OAuthToken)
71− , _dgFields :: !(Maybe Text)
79+ { _dgXgafv :: !(Maybe Text)
80+ , _dgQuotaUser :: !(Maybe Text)
81+ , _dgPrettyPrint :: !Bool
82+ , _dgUploadProtocol :: !(Maybe Text)
83+ , _dgPp :: !Bool
84+ , _dgAccessToken :: !(Maybe Text)
85+ , _dgUploadType :: !(Maybe Text)
86+ , _dgBearerToken :: !(Maybe Text)
87+ , _dgKey :: !(Maybe AuthKey)
88+ , _dgDatasetId :: !Text
89+ , _dgOAuthToken :: !(Maybe OAuthToken)
90+ , _dgFields :: !(Maybe Text)
91+ , _dgCallback :: !(Maybe Text)
7292 } deriving (Eq,Show,Data,Typeable,Generic)
7393
7494-- | Creates a value of 'DatasetsGet'' with the minimum fields required to make a request.
7595--
7696-- Use one of the following lenses to modify other fields as desired:
7797--
98+-- * 'dgXgafv'
99+--
78100-- * 'dgQuotaUser'
79101--
80102-- * 'dgPrettyPrint'
81103--
82−-- * 'dgUserIP'
104+-- * 'dgUploadProtocol'
105+--
106+-- * 'dgPp'
107+--
108+-- * 'dgAccessToken'
109+--
110+-- * 'dgUploadType'
111+--
112+-- * 'dgBearerToken'
83113--
84114-- * 'dgKey'
85115--
@@ -88,23 +118,35 @@ data DatasetsGet' = DatasetsGet'
88118-- * 'dgOAuthToken'
89119--
90120-- * 'dgFields'
121+--
122+-- * 'dgCallback'
91123datasetsGet'
92124 :: Text -- ^ 'datasetId'
93125 -> DatasetsGet'
94126datasetsGet' pDgDatasetId_ =
95127 DatasetsGet'
96− { _dgQuotaUser = Nothing
128+ { _dgXgafv = Nothing
129+ , _dgQuotaUser = Nothing
97130 , _dgPrettyPrint = True
98− , _dgUserIP = Nothing
131+ , _dgUploadProtocol = Nothing
132+ , _dgPp = True
133+ , _dgAccessToken = Nothing
134+ , _dgUploadType = Nothing
135+ , _dgBearerToken = Nothing
99136 , _dgKey = Nothing
100137 , _dgDatasetId = pDgDatasetId_
101138 , _dgOAuthToken = Nothing
102139 , _dgFields = Nothing
140+ , _dgCallback = Nothing
103141 }
104142
143+-- | V1 error format.
144+dgXgafv :: Lens' DatasetsGet' (Maybe Text)
145+dgXgafv = lens _dgXgafv (\ s a -> s{_dgXgafv = a})
146+
105147-- | Available to use for quota purposes for server-side applications. Can be
106148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108150dgQuotaUser :: Lens' DatasetsGet' (Maybe Text)
109151dgQuotaUser
110152 = lens _dgQuotaUser (\ s a -> s{_dgQuotaUser = a})
@@ -115,10 +157,32 @@ dgPrettyPrint
115157 = lens _dgPrettyPrint
116158 (\ s a -> s{_dgPrettyPrint = a})
117159
118−-- | IP address of the site where the request originates. Use this if you
119−-- want to enforce per-user limits.
120−dgUserIP :: Lens' DatasetsGet' (Maybe Text)
121−dgUserIP = lens _dgUserIP (\ s a -> s{_dgUserIP = a})
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
161+dgUploadProtocol :: Lens' DatasetsGet' (Maybe Text)
162+dgUploadProtocol
163+ = lens _dgUploadProtocol
164+ (\ s a -> s{_dgUploadProtocol = a})
165+
166+-- | Pretty-print response.
167+dgPp :: Lens' DatasetsGet' Bool
168+dgPp = lens _dgPp (\ s a -> s{_dgPp = a})
169+
170+-- | OAuth access token.
171+dgAccessToken :: Lens' DatasetsGet' (Maybe Text)
172+dgAccessToken
173+ = lens _dgAccessToken
174+ (\ s a -> s{_dgAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+dgUploadType :: Lens' DatasetsGet' (Maybe Text)
178+dgUploadType
179+ = lens _dgUploadType (\ s a -> s{_dgUploadType = a})
180+
181+-- | OAuth bearer token.
182+dgBearerToken :: Lens' DatasetsGet' (Maybe Text)
183+dgBearerToken
184+ = lens _dgBearerToken
185+ (\ s a -> s{_dgBearerToken = a})
122186
123187-- | API key. Your API key identifies your project and provides you with API
124188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,6 +204,11 @@ dgOAuthToken
140204dgFields :: Lens' DatasetsGet' (Maybe Text)
141205dgFields = lens _dgFields (\ s a -> s{_dgFields = a})
142206
207+-- | JSONP
208+dgCallback :: Lens' DatasetsGet' (Maybe Text)
209+dgCallback
210+ = lens _dgCallback (\ s a -> s{_dgCallback = a})
211+
143212instance GoogleAuth DatasetsGet' where
144213 _AuthKey = dgKey . _Just
145214 _AuthToken = dgOAuthToken . _Just
@@ -148,8 +217,14 @@ instance GoogleRequest DatasetsGet' where
148217 type Rs DatasetsGet' = Dataset
149218 request = requestWith genomicsRequest
150219 requestWith rq DatasetsGet'{..}
151− = go _dgDatasetId _dgQuotaUser (Just _dgPrettyPrint)
152− _dgUserIP
220+ = go _dgDatasetId _dgXgafv _dgUploadProtocol
221+ (Just _dgPp)
222+ _dgAccessToken
223+ _dgUploadType
224+ _dgBearerToken
225+ _dgCallback
226+ _dgQuotaUser
227+ (Just _dgPrettyPrint)
153228 _dgFields
154229 _dgKey
155230 _dgOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/GetIAMPolicy.hsnew file+257
@@ -0,0 +1,257 @@
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.Genomics.Datasets.GetIAMPolicy
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 the access control policy for the dataset. Is empty if the policy
24+-- or the resource does not exist. See Getting a Policy for more
25+-- information.
26+--
27+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsGetIAMPolicy@.
28+module Network.Google.Resource.Genomics.Datasets.GetIAMPolicy
29+ (
30+ -- * REST Resource
31+ DatasetsGetIAMPolicyResource
32+
33+ -- * Creating a Request
34+ , datasetsGetIAMPolicy'
35+ , DatasetsGetIAMPolicy'
36+
37+ -- * Request Lenses
38+ , dgipXgafv
39+ , dgipQuotaUser
40+ , dgipPrettyPrint
41+ , dgipUploadProtocol
42+ , dgipPp
43+ , dgipAccessToken
44+ , dgipUploadType
45+ , dgipPayload
46+ , dgipBearerToken
47+ , dgipKey
48+ , dgipResource
49+ , dgipOAuthToken
50+ , dgipFields
51+ , dgipCallback
52+ ) where
53+
54+import Network.Google.Genomics.Types
55+import Network.Google.Prelude
56+
57+-- | A resource alias for @GenomicsDatasetsGetIAMPolicy@ method which the
58+-- 'DatasetsGetIAMPolicy'' request conforms to.
59+type DatasetsGetIAMPolicyResource =
60+ "v1" :>
61+ CaptureMode "resource" "getIamPolicy" 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 "quotaUser" Text :>
70+ QueryParam "prettyPrint" Bool :>
71+ QueryParam "fields" Text :>
72+ QueryParam "key" AuthKey :>
73+ QueryParam "oauth_token" OAuthToken :>
74+ QueryParam "alt" AltJSON :>
75+ ReqBody '[JSON] GetIAMPolicyRequest :>
76+ Post '[JSON] Policy
77+
78+-- | Gets the access control policy for the dataset. Is empty if the policy
79+-- or the resource does not exist. See Getting a Policy for more
80+-- information.
81+--
82+-- /See:/ 'datasetsGetIAMPolicy'' smart constructor.
83+data DatasetsGetIAMPolicy' = DatasetsGetIAMPolicy'
84+ { _dgipXgafv :: !(Maybe Text)
85+ , _dgipQuotaUser :: !(Maybe Text)
86+ , _dgipPrettyPrint :: !Bool
87+ , _dgipUploadProtocol :: !(Maybe Text)
88+ , _dgipPp :: !Bool
89+ , _dgipAccessToken :: !(Maybe Text)
90+ , _dgipUploadType :: !(Maybe Text)
91+ , _dgipPayload :: !GetIAMPolicyRequest
92+ , _dgipBearerToken :: !(Maybe Text)
93+ , _dgipKey :: !(Maybe AuthKey)
94+ , _dgipResource :: !Text
95+ , _dgipOAuthToken :: !(Maybe OAuthToken)
96+ , _dgipFields :: !(Maybe Text)
97+ , _dgipCallback :: !(Maybe Text)
98+ } deriving (Eq,Show,Data,Typeable,Generic)
99+
100+-- | Creates a value of 'DatasetsGetIAMPolicy'' 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+-- * 'dgipXgafv'
105+--
106+-- * 'dgipQuotaUser'
107+--
108+-- * 'dgipPrettyPrint'
109+--
110+-- * 'dgipUploadProtocol'
111+--
112+-- * 'dgipPp'
113+--
114+-- * 'dgipAccessToken'
115+--
116+-- * 'dgipUploadType'
117+--
118+-- * 'dgipPayload'
119+--
120+-- * 'dgipBearerToken'
121+--
122+-- * 'dgipKey'
123+--
124+-- * 'dgipResource'
125+--
126+-- * 'dgipOAuthToken'
127+--
128+-- * 'dgipFields'
129+--
130+-- * 'dgipCallback'
131+datasetsGetIAMPolicy'
132+ :: GetIAMPolicyRequest -- ^ 'payload'
133+ -> Text -- ^ 'resource'
134+ -> DatasetsGetIAMPolicy'
135+datasetsGetIAMPolicy' pDgipPayload_ pDgipResource_ =
136+ DatasetsGetIAMPolicy'
137+ { _dgipXgafv = Nothing
138+ , _dgipQuotaUser = Nothing
139+ , _dgipPrettyPrint = True
140+ , _dgipUploadProtocol = Nothing
141+ , _dgipPp = True
142+ , _dgipAccessToken = Nothing
143+ , _dgipUploadType = Nothing
144+ , _dgipPayload = pDgipPayload_
145+ , _dgipBearerToken = Nothing
146+ , _dgipKey = Nothing
147+ , _dgipResource = pDgipResource_
148+ , _dgipOAuthToken = Nothing
149+ , _dgipFields = Nothing
150+ , _dgipCallback = Nothing
151+ }
152+
153+-- | V1 error format.
154+dgipXgafv :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
155+dgipXgafv
156+ = lens _dgipXgafv (\ s a -> s{_dgipXgafv = a})
157+
158+-- | Available to use for quota purposes for server-side applications. Can be
159+-- any arbitrary string assigned to a user, but should not exceed 40
160+-- characters.
161+dgipQuotaUser :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
162+dgipQuotaUser
163+ = lens _dgipQuotaUser
164+ (\ s a -> s{_dgipQuotaUser = a})
165+
166+-- | Returns response with indentations and line breaks.
167+dgipPrettyPrint :: Lens' DatasetsGetIAMPolicy' Bool
168+dgipPrettyPrint
169+ = lens _dgipPrettyPrint
170+ (\ s a -> s{_dgipPrettyPrint = a})
171+
172+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
173+dgipUploadProtocol :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
174+dgipUploadProtocol
175+ = lens _dgipUploadProtocol
176+ (\ s a -> s{_dgipUploadProtocol = a})
177+
178+-- | Pretty-print response.
179+dgipPp :: Lens' DatasetsGetIAMPolicy' Bool
180+dgipPp = lens _dgipPp (\ s a -> s{_dgipPp = a})
181+
182+-- | OAuth access token.
183+dgipAccessToken :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
184+dgipAccessToken
185+ = lens _dgipAccessToken
186+ (\ s a -> s{_dgipAccessToken = a})
187+
188+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
189+dgipUploadType :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
190+dgipUploadType
191+ = lens _dgipUploadType
192+ (\ s a -> s{_dgipUploadType = a})
193+
194+-- | Multipart request metadata.
195+dgipPayload :: Lens' DatasetsGetIAMPolicy' GetIAMPolicyRequest
196+dgipPayload
197+ = lens _dgipPayload (\ s a -> s{_dgipPayload = a})
198+
199+-- | OAuth bearer token.
200+dgipBearerToken :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
201+dgipBearerToken
202+ = lens _dgipBearerToken
203+ (\ s a -> s{_dgipBearerToken = a})
204+
205+-- | API key. Your API key identifies your project and provides you with API
206+-- access, quota, and reports. Required unless you provide an OAuth 2.0
207+-- token.
208+dgipKey :: Lens' DatasetsGetIAMPolicy' (Maybe AuthKey)
209+dgipKey = lens _dgipKey (\ s a -> s{_dgipKey = a})
210+
211+-- | REQUIRED: The resource for which policy is being specified. Format is
212+-- \`datasets\/\`.
213+dgipResource :: Lens' DatasetsGetIAMPolicy' Text
214+dgipResource
215+ = lens _dgipResource (\ s a -> s{_dgipResource = a})
216+
217+-- | OAuth 2.0 token for the current user.
218+dgipOAuthToken :: Lens' DatasetsGetIAMPolicy' (Maybe OAuthToken)
219+dgipOAuthToken
220+ = lens _dgipOAuthToken
221+ (\ s a -> s{_dgipOAuthToken = a})
222+
223+-- | Selector specifying which fields to include in a partial response.
224+dgipFields :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
225+dgipFields
226+ = lens _dgipFields (\ s a -> s{_dgipFields = a})
227+
228+-- | JSONP
229+dgipCallback :: Lens' DatasetsGetIAMPolicy' (Maybe Text)
230+dgipCallback
231+ = lens _dgipCallback (\ s a -> s{_dgipCallback = a})
232+
233+instance GoogleAuth DatasetsGetIAMPolicy' where
234+ _AuthKey = dgipKey . _Just
235+ _AuthToken = dgipOAuthToken . _Just
236+
237+instance GoogleRequest DatasetsGetIAMPolicy' where
238+ type Rs DatasetsGetIAMPolicy' = Policy
239+ request = requestWith genomicsRequest
240+ requestWith rq DatasetsGetIAMPolicy'{..}
241+ = go _dgipResource _dgipXgafv _dgipUploadProtocol
242+ (Just _dgipPp)
243+ _dgipAccessToken
244+ _dgipUploadType
245+ _dgipBearerToken
246+ _dgipCallback
247+ _dgipQuotaUser
248+ (Just _dgipPrettyPrint)
249+ _dgipFields
250+ _dgipKey
251+ _dgipOAuthToken
252+ (Just AltJSON)
253+ _dgipPayload
254+ where go
255+ = clientBuild
256+ (Proxy :: Proxy DatasetsGetIAMPolicyResource)
257+ rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/List.hs+116−43
@@ -22,7 +22,7 @@
2222--
2323-- | Lists datasets within a project.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsList@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsList@.
2626module Network.Google.Resource.Genomics.Datasets.List
2727 (
2828 -- * REST Resource
@@ -33,15 +33,21 @@ module Network.Google.Resource.Genomics.Datasets.List
3333 , DatasetsList'
3434
3535 -- * Request Lenses
36+ , dlXgafv
3637 , dlQuotaUser
3738 , dlPrettyPrint
38− , dlUserIP
39− , dlProjectNumber
39+ , dlUploadProtocol
40+ , dlPp
41+ , dlAccessToken
42+ , dlUploadType
43+ , dlBearerToken
4044 , dlKey
4145 , dlPageToken
46+ , dlProjectId
4247 , dlOAuthToken
4348 , dlPageSize
4449 , dlFields
50+ , dlCallback
4551 ) where
4652
4753import Network.Google.Genomics.Types
@@ -50,73 +56,108 @@ import Network.Google.Prelude
5056-- | A resource alias for @GenomicsDatasetsList@ method which the
5157-- 'DatasetsList'' request conforms to.
5258type DatasetsListResource =
53− "datasets" :>
54− QueryParam "projectNumber" Int64 :>
55− QueryParam "pageToken" Text :>
56− QueryParam "pageSize" Int32 :>
57− QueryParam "quotaUser" Text :>
58− QueryParam "prettyPrint" Bool :>
59− QueryParam "userIp" Text :>
60− QueryParam "fields" Text :>
61− QueryParam "key" AuthKey :>
62− QueryParam "oauth_token" OAuthToken :>
63− QueryParam "alt" AltJSON :>
64− Get '[JSON] ListDatasetsResponse
59+ "v1" :>
60+ "datasets" :>
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 "pageToken" Text :>
68+ QueryParam "projectId" Text :>
69+ QueryParam "pageSize" Int32 :>
70+ QueryParam "callback" Text :>
71+ QueryParam "quotaUser" Text :>
72+ QueryParam "prettyPrint" Bool :>
73+ QueryParam "fields" Text :>
74+ QueryParam "key" AuthKey :>
75+ QueryParam "oauth_token" OAuthToken :>
76+ QueryParam "alt" AltJSON :>
77+ Get '[JSON] ListDatasetsResponse
6578
6679-- | Lists datasets within a project.
6780--
6881-- /See:/ 'datasetsList'' smart constructor.
6982data DatasetsList' = DatasetsList'
70− { _dlQuotaUser :: !(Maybe Text)
71− , _dlPrettyPrint :: !Bool
72− , _dlUserIP :: !(Maybe Text)
73− , _dlProjectNumber :: !(Maybe Int64)
74− , _dlKey :: !(Maybe AuthKey)
75− , _dlPageToken :: !(Maybe Text)
76− , _dlOAuthToken :: !(Maybe OAuthToken)
77− , _dlPageSize :: !(Maybe Int32)
78− , _dlFields :: !(Maybe Text)
83+ { _dlXgafv :: !(Maybe Text)
84+ , _dlQuotaUser :: !(Maybe Text)
85+ , _dlPrettyPrint :: !Bool
86+ , _dlUploadProtocol :: !(Maybe Text)
87+ , _dlPp :: !Bool
88+ , _dlAccessToken :: !(Maybe Text)
89+ , _dlUploadType :: !(Maybe Text)
90+ , _dlBearerToken :: !(Maybe Text)
91+ , _dlKey :: !(Maybe AuthKey)
92+ , _dlPageToken :: !(Maybe Text)
93+ , _dlProjectId :: !(Maybe Text)
94+ , _dlOAuthToken :: !(Maybe OAuthToken)
95+ , _dlPageSize :: !(Maybe Int32)
96+ , _dlFields :: !(Maybe Text)
97+ , _dlCallback :: !(Maybe Text)
7998 } deriving (Eq,Show,Data,Typeable,Generic)
8099
81100-- | Creates a value of 'DatasetsList'' with the minimum fields required to make a request.
82101--
83102-- Use one of the following lenses to modify other fields as desired:
84103--
104+-- * 'dlXgafv'
105+--
85106-- * 'dlQuotaUser'
86107--
87108-- * 'dlPrettyPrint'
88109--
89−-- * 'dlUserIP'
110+-- * 'dlUploadProtocol'
111+--
112+-- * 'dlPp'
113+--
114+-- * 'dlAccessToken'
115+--
116+-- * 'dlUploadType'
90117--
91−-- * 'dlProjectNumber'
118+-- * 'dlBearerToken'
92119--
93120-- * 'dlKey'
94121--
95122-- * 'dlPageToken'
96123--
124+-- * 'dlProjectId'
125+--
97126-- * 'dlOAuthToken'
98127--
99128-- * 'dlPageSize'
100129--
101130-- * 'dlFields'
131+--
132+-- * 'dlCallback'
102133datasetsList'
103134 :: DatasetsList'
104135datasetsList' =
105136 DatasetsList'
106− { _dlQuotaUser = Nothing
137+ { _dlXgafv = Nothing
138+ , _dlQuotaUser = Nothing
107139 , _dlPrettyPrint = True
108− , _dlUserIP = Nothing
109− , _dlProjectNumber = Nothing
140+ , _dlUploadProtocol = Nothing
141+ , _dlPp = True
142+ , _dlAccessToken = Nothing
143+ , _dlUploadType = Nothing
144+ , _dlBearerToken = Nothing
110145 , _dlKey = Nothing
111146 , _dlPageToken = Nothing
147+ , _dlProjectId = Nothing
112148 , _dlOAuthToken = Nothing
113149 , _dlPageSize = Nothing
114150 , _dlFields = Nothing
151+ , _dlCallback = Nothing
115152 }
116153
154+-- | V1 error format.
155+dlXgafv :: Lens' DatasetsList' (Maybe Text)
156+dlXgafv = lens _dlXgafv (\ s a -> s{_dlXgafv = a})
157+
117158-- | Available to use for quota purposes for server-side applications. Can be
118159-- any arbitrary string assigned to a user, but should not exceed 40
119−-- characters. Overrides userIp if both are provided.
160+-- characters.
120161dlQuotaUser :: Lens' DatasetsList' (Maybe Text)
121162dlQuotaUser
122163 = lens _dlQuotaUser (\ s a -> s{_dlQuotaUser = a})
@@ -127,16 +168,32 @@ dlPrettyPrint
127168 = lens _dlPrettyPrint
128169 (\ s a -> s{_dlPrettyPrint = a})
129170
130−-- | IP address of the site where the request originates. Use this if you
131−-- want to enforce per-user limits.
132−dlUserIP :: Lens' DatasetsList' (Maybe Text)
133−dlUserIP = lens _dlUserIP (\ s a -> s{_dlUserIP = a})
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
172+dlUploadProtocol :: Lens' DatasetsList' (Maybe Text)
173+dlUploadProtocol
174+ = lens _dlUploadProtocol
175+ (\ s a -> s{_dlUploadProtocol = a})
134176
135−-- | Required. The project to list datasets for.
136−dlProjectNumber :: Lens' DatasetsList' (Maybe Int64)
137−dlProjectNumber
138− = lens _dlProjectNumber
139− (\ s a -> s{_dlProjectNumber = a})
177+-- | Pretty-print response.
178+dlPp :: Lens' DatasetsList' Bool
179+dlPp = lens _dlPp (\ s a -> s{_dlPp = a})
180+
181+-- | OAuth access token.
182+dlAccessToken :: Lens' DatasetsList' (Maybe Text)
183+dlAccessToken
184+ = lens _dlAccessToken
185+ (\ s a -> s{_dlAccessToken = a})
186+
187+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
188+dlUploadType :: Lens' DatasetsList' (Maybe Text)
189+dlUploadType
190+ = lens _dlUploadType (\ s a -> s{_dlUploadType = a})
191+
192+-- | OAuth bearer token.
193+dlBearerToken :: Lens' DatasetsList' (Maybe Text)
194+dlBearerToken
195+ = lens _dlBearerToken
196+ (\ s a -> s{_dlBearerToken = a})
140197
141198-- | API key. Your API key identifies your project and provides you with API
142199-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -146,18 +203,23 @@ dlKey = lens _dlKey (\ s a -> s{_dlKey = a})
146203
147204-- | The continuation token, which is used to page through large result sets.
148205-- To get the next page of results, set this parameter to the value of
149−-- nextPageToken from the previous response.
206+-- \`nextPageToken\` from the previous response.
150207dlPageToken :: Lens' DatasetsList' (Maybe Text)
151208dlPageToken
152209 = lens _dlPageToken (\ s a -> s{_dlPageToken = a})
153210
211+-- | Required. The project to list datasets for.
212+dlProjectId :: Lens' DatasetsList' (Maybe Text)
213+dlProjectId
214+ = lens _dlProjectId (\ s a -> s{_dlProjectId = a})
215+
154216-- | OAuth 2.0 token for the current user.
155217dlOAuthToken :: Lens' DatasetsList' (Maybe OAuthToken)
156218dlOAuthToken
157219 = lens _dlOAuthToken (\ s a -> s{_dlOAuthToken = a})
158220
159221-- | The maximum number of results returned by this request. If unspecified,
160−-- defaults to 50.
222+-- defaults to 50. The maximum value is 1024.
161223dlPageSize :: Lens' DatasetsList' (Maybe Int32)
162224dlPageSize
163225 = lens _dlPageSize (\ s a -> s{_dlPageSize = a})
@@ -166,6 +228,11 @@ dlPageSize
166228dlFields :: Lens' DatasetsList' (Maybe Text)
167229dlFields = lens _dlFields (\ s a -> s{_dlFields = a})
168230
231+-- | JSONP
232+dlCallback :: Lens' DatasetsList' (Maybe Text)
233+dlCallback
234+ = lens _dlCallback (\ s a -> s{_dlCallback = a})
235+
169236instance GoogleAuth DatasetsList' where
170237 _AuthKey = dlKey . _Just
171238 _AuthToken = dlOAuthToken . _Just
@@ -174,10 +241,16 @@ instance GoogleRequest DatasetsList' where
174241 type Rs DatasetsList' = ListDatasetsResponse
175242 request = requestWith genomicsRequest
176243 requestWith rq DatasetsList'{..}
177− = go _dlProjectNumber _dlPageToken _dlPageSize
244+ = go _dlXgafv _dlUploadProtocol (Just _dlPp)
245+ _dlAccessToken
246+ _dlUploadType
247+ _dlBearerToken
248+ _dlPageToken
249+ _dlProjectId
250+ _dlPageSize
251+ _dlCallback
178252 _dlQuotaUser
179253 (Just _dlPrettyPrint)
180− _dlUserIP
181254 _dlFields
182255 _dlKey
183256 _dlOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Patch.hs+119−30
@@ -22,7 +22,7 @@
2222--
2323-- | Updates a dataset. This method supports patch semantics.
2424--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsPatch@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsPatch@.
2626module Network.Google.Resource.Genomics.Datasets.Patch
2727 (
2828 -- * REST Resource
@@ -33,14 +33,21 @@ module Network.Google.Resource.Genomics.Datasets.Patch
3333 , DatasetsPatch'
3434
3535 -- * Request Lenses
36+ , dpXgafv
3637 , dpQuotaUser
3738 , dpPrettyPrint
38− , dpUserIP
39+ , dpUploadProtocol
40+ , dpUpdateMask
41+ , dpPp
42+ , dpAccessToken
43+ , dpUploadType
3944 , dpPayload
45+ , dpBearerToken
4046 , dpKey
4147 , dpDatasetId
4248 , dpOAuthToken
4349 , dpFields
50+ , dpCallback
4451 ) where
4552
4653import Network.Google.Genomics.Types
@@ -49,43 +56,71 @@ import Network.Google.Prelude
4956-- | A resource alias for @GenomicsDatasetsPatch@ method which the
5057-- 'DatasetsPatch'' request conforms to.
5158type DatasetsPatchResource =
52− "datasets" :>
53− Capture "datasetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
56− QueryParam "userIp" Text :>
57− QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] Dataset :> Patch '[JSON] Dataset
59+ "v1" :>
60+ "datasets" :>
61+ Capture "datasetId" Text :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "updateMask" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "quotaUser" Text :>
71+ QueryParam "prettyPrint" Bool :>
72+ QueryParam "fields" Text :>
73+ QueryParam "key" AuthKey :>
74+ QueryParam "oauth_token" OAuthToken :>
75+ QueryParam "alt" AltJSON :>
76+ ReqBody '[JSON] Dataset :>
77+ Patch '[JSON] Dataset
6278
6379-- | Updates a dataset. This method supports patch semantics.
6480--
6581-- /See:/ 'datasetsPatch'' smart constructor.
6682data DatasetsPatch' = DatasetsPatch'
67− { _dpQuotaUser :: !(Maybe Text)
68− , _dpPrettyPrint :: !Bool
69− , _dpUserIP :: !(Maybe Text)
70− , _dpPayload :: !Dataset
71− , _dpKey :: !(Maybe AuthKey)
72− , _dpDatasetId :: !Text
73− , _dpOAuthToken :: !(Maybe OAuthToken)
74− , _dpFields :: !(Maybe Text)
83+ { _dpXgafv :: !(Maybe Text)
84+ , _dpQuotaUser :: !(Maybe Text)
85+ , _dpPrettyPrint :: !Bool
86+ , _dpUploadProtocol :: !(Maybe Text)
87+ , _dpUpdateMask :: !(Maybe Text)
88+ , _dpPp :: !Bool
89+ , _dpAccessToken :: !(Maybe Text)
90+ , _dpUploadType :: !(Maybe Text)
91+ , _dpPayload :: !Dataset
92+ , _dpBearerToken :: !(Maybe Text)
93+ , _dpKey :: !(Maybe AuthKey)
94+ , _dpDatasetId :: !Text
95+ , _dpOAuthToken :: !(Maybe OAuthToken)
96+ , _dpFields :: !(Maybe Text)
97+ , _dpCallback :: !(Maybe Text)
7598 } deriving (Eq,Show,Data,Typeable,Generic)
7699
77100-- | Creates a value of 'DatasetsPatch'' with the minimum fields required to make a request.
78101--
79102-- Use one of the following lenses to modify other fields as desired:
80103--
104+-- * 'dpXgafv'
105+--
81106-- * 'dpQuotaUser'
82107--
83108-- * 'dpPrettyPrint'
84109--
85−-- * 'dpUserIP'
110+-- * 'dpUploadProtocol'
111+--
112+-- * 'dpUpdateMask'
113+--
114+-- * 'dpPp'
115+--
116+-- * 'dpAccessToken'
117+--
118+-- * 'dpUploadType'
86119--
87120-- * 'dpPayload'
88121--
122+-- * 'dpBearerToken'
123+--
89124-- * 'dpKey'
90125--
91126-- * 'dpDatasetId'
@@ -93,25 +128,38 @@ data DatasetsPatch' = DatasetsPatch'
93128-- * 'dpOAuthToken'
94129--
95130-- * 'dpFields'
131+--
132+-- * 'dpCallback'
96133datasetsPatch'
97134 :: Dataset -- ^ 'payload'
98135 -> Text -- ^ 'datasetId'
99136 -> DatasetsPatch'
100137datasetsPatch' pDpPayload_ pDpDatasetId_ =
101138 DatasetsPatch'
102− { _dpQuotaUser = Nothing
139+ { _dpXgafv = Nothing
140+ , _dpQuotaUser = Nothing
103141 , _dpPrettyPrint = True
104− , _dpUserIP = Nothing
142+ , _dpUploadProtocol = Nothing
143+ , _dpUpdateMask = Nothing
144+ , _dpPp = True
145+ , _dpAccessToken = Nothing
146+ , _dpUploadType = Nothing
105147 , _dpPayload = pDpPayload_
148+ , _dpBearerToken = Nothing
106149 , _dpKey = Nothing
107150 , _dpDatasetId = pDpDatasetId_
108151 , _dpOAuthToken = Nothing
109152 , _dpFields = Nothing
153+ , _dpCallback = Nothing
110154 }
111155
156+-- | V1 error format.
157+dpXgafv :: Lens' DatasetsPatch' (Maybe Text)
158+dpXgafv = lens _dpXgafv (\ s a -> s{_dpXgafv = a})
159+
112160-- | Available to use for quota purposes for server-side applications. Can be
113161-- any arbitrary string assigned to a user, but should not exceed 40
114−-- characters. Overrides userIp if both are provided.
162+-- characters.
115163dpQuotaUser :: Lens' DatasetsPatch' (Maybe Text)
116164dpQuotaUser
117165 = lens _dpQuotaUser (\ s a -> s{_dpQuotaUser = a})
@@ -122,16 +170,45 @@ dpPrettyPrint
122170 = lens _dpPrettyPrint
123171 (\ s a -> s{_dpPrettyPrint = a})
124172
125−-- | IP address of the site where the request originates. Use this if you
126−-- want to enforce per-user limits.
127−dpUserIP :: Lens' DatasetsPatch' (Maybe Text)
128−dpUserIP = lens _dpUserIP (\ s a -> s{_dpUserIP = a})
173+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
174+dpUploadProtocol :: Lens' DatasetsPatch' (Maybe Text)
175+dpUploadProtocol
176+ = lens _dpUploadProtocol
177+ (\ s a -> s{_dpUploadProtocol = a})
178+
179+-- | An optional mask specifying which fields to update. At this time, the
180+-- only mutable field is name. The only acceptable value is \"name\". If
181+-- unspecified, all mutable fields will be updated.
182+dpUpdateMask :: Lens' DatasetsPatch' (Maybe Text)
183+dpUpdateMask
184+ = lens _dpUpdateMask (\ s a -> s{_dpUpdateMask = a})
185+
186+-- | Pretty-print response.
187+dpPp :: Lens' DatasetsPatch' Bool
188+dpPp = lens _dpPp (\ s a -> s{_dpPp = a})
189+
190+-- | OAuth access token.
191+dpAccessToken :: Lens' DatasetsPatch' (Maybe Text)
192+dpAccessToken
193+ = lens _dpAccessToken
194+ (\ s a -> s{_dpAccessToken = a})
195+
196+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
197+dpUploadType :: Lens' DatasetsPatch' (Maybe Text)
198+dpUploadType
199+ = lens _dpUploadType (\ s a -> s{_dpUploadType = a})
129200
130201-- | Multipart request metadata.
131202dpPayload :: Lens' DatasetsPatch' Dataset
132203dpPayload
133204 = lens _dpPayload (\ s a -> s{_dpPayload = a})
134205
206+-- | OAuth bearer token.
207+dpBearerToken :: Lens' DatasetsPatch' (Maybe Text)
208+dpBearerToken
209+ = lens _dpBearerToken
210+ (\ s a -> s{_dpBearerToken = a})
211+
135212-- | API key. Your API key identifies your project and provides you with API
136213-- access, quota, and reports. Required unless you provide an OAuth 2.0
137214-- token.
@@ -152,6 +229,11 @@ dpOAuthToken
152229dpFields :: Lens' DatasetsPatch' (Maybe Text)
153230dpFields = lens _dpFields (\ s a -> s{_dpFields = a})
154231
232+-- | JSONP
233+dpCallback :: Lens' DatasetsPatch' (Maybe Text)
234+dpCallback
235+ = lens _dpCallback (\ s a -> s{_dpCallback = a})
236+
155237instance GoogleAuth DatasetsPatch' where
156238 _AuthKey = dpKey . _Just
157239 _AuthToken = dpOAuthToken . _Just
@@ -160,8 +242,15 @@ instance GoogleRequest DatasetsPatch' where
160242 type Rs DatasetsPatch' = Dataset
161243 request = requestWith genomicsRequest
162244 requestWith rq DatasetsPatch'{..}
163− = go _dpDatasetId _dpQuotaUser (Just _dpPrettyPrint)
164− _dpUserIP
245+ = go _dpDatasetId _dpXgafv _dpUploadProtocol
246+ _dpUpdateMask
247+ (Just _dpPp)
248+ _dpAccessToken
249+ _dpUploadType
250+ _dpBearerToken
251+ _dpCallback
252+ _dpQuotaUser
253+ (Just _dpPrettyPrint)
165254 _dpFields
166255 _dpKey
167256 _dpOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/SetIAMPolicy.hsnew file+255
@@ -0,0 +1,255 @@
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.Genomics.Datasets.SetIAMPolicy
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+-- | Sets the access control policy on the specified dataset. Replaces any
24+-- existing policy. See Setting a Policy for more information.
25+--
26+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsSetIAMPolicy@.
27+module Network.Google.Resource.Genomics.Datasets.SetIAMPolicy
28+ (
29+ -- * REST Resource
30+ DatasetsSetIAMPolicyResource
31+
32+ -- * Creating a Request
33+ , datasetsSetIAMPolicy'
34+ , DatasetsSetIAMPolicy'
35+
36+ -- * Request Lenses
37+ , dsipXgafv
38+ , dsipQuotaUser
39+ , dsipPrettyPrint
40+ , dsipUploadProtocol
41+ , dsipPp
42+ , dsipAccessToken
43+ , dsipUploadType
44+ , dsipPayload
45+ , dsipBearerToken
46+ , dsipKey
47+ , dsipResource
48+ , dsipOAuthToken
49+ , dsipFields
50+ , dsipCallback
51+ ) where
52+
53+import Network.Google.Genomics.Types
54+import Network.Google.Prelude
55+
56+-- | A resource alias for @GenomicsDatasetsSetIAMPolicy@ method which the
57+-- 'DatasetsSetIAMPolicy'' request conforms to.
58+type DatasetsSetIAMPolicyResource =
59+ "v1" :>
60+ CaptureMode "resource" "setIamPolicy" 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 "quotaUser" Text :>
69+ QueryParam "prettyPrint" Bool :>
70+ QueryParam "fields" Text :>
71+ QueryParam "key" AuthKey :>
72+ QueryParam "oauth_token" OAuthToken :>
73+ QueryParam "alt" AltJSON :>
74+ ReqBody '[JSON] SetIAMPolicyRequest :>
75+ Post '[JSON] Policy
76+
77+-- | Sets the access control policy on the specified dataset. Replaces any
78+-- existing policy. See Setting a Policy for more information.
79+--
80+-- /See:/ 'datasetsSetIAMPolicy'' smart constructor.
81+data DatasetsSetIAMPolicy' = DatasetsSetIAMPolicy'
82+ { _dsipXgafv :: !(Maybe Text)
83+ , _dsipQuotaUser :: !(Maybe Text)
84+ , _dsipPrettyPrint :: !Bool
85+ , _dsipUploadProtocol :: !(Maybe Text)
86+ , _dsipPp :: !Bool
87+ , _dsipAccessToken :: !(Maybe Text)
88+ , _dsipUploadType :: !(Maybe Text)
89+ , _dsipPayload :: !SetIAMPolicyRequest
90+ , _dsipBearerToken :: !(Maybe Text)
91+ , _dsipKey :: !(Maybe AuthKey)
92+ , _dsipResource :: !Text
93+ , _dsipOAuthToken :: !(Maybe OAuthToken)
94+ , _dsipFields :: !(Maybe Text)
95+ , _dsipCallback :: !(Maybe Text)
96+ } deriving (Eq,Show,Data,Typeable,Generic)
97+
98+-- | Creates a value of 'DatasetsSetIAMPolicy'' with the minimum fields required to make a request.
99+--
100+-- Use one of the following lenses to modify other fields as desired:
101+--
102+-- * 'dsipXgafv'
103+--
104+-- * 'dsipQuotaUser'
105+--
106+-- * 'dsipPrettyPrint'
107+--
108+-- * 'dsipUploadProtocol'
109+--
110+-- * 'dsipPp'
111+--
112+-- * 'dsipAccessToken'
113+--
114+-- * 'dsipUploadType'
115+--
116+-- * 'dsipPayload'
117+--
118+-- * 'dsipBearerToken'
119+--
120+-- * 'dsipKey'
121+--
122+-- * 'dsipResource'
123+--
124+-- * 'dsipOAuthToken'
125+--
126+-- * 'dsipFields'
127+--
128+-- * 'dsipCallback'
129+datasetsSetIAMPolicy'
130+ :: SetIAMPolicyRequest -- ^ 'payload'
131+ -> Text -- ^ 'resource'
132+ -> DatasetsSetIAMPolicy'
133+datasetsSetIAMPolicy' pDsipPayload_ pDsipResource_ =
134+ DatasetsSetIAMPolicy'
135+ { _dsipXgafv = Nothing
136+ , _dsipQuotaUser = Nothing
137+ , _dsipPrettyPrint = True
138+ , _dsipUploadProtocol = Nothing
139+ , _dsipPp = True
140+ , _dsipAccessToken = Nothing
141+ , _dsipUploadType = Nothing
142+ , _dsipPayload = pDsipPayload_
143+ , _dsipBearerToken = Nothing
144+ , _dsipKey = Nothing
145+ , _dsipResource = pDsipResource_
146+ , _dsipOAuthToken = Nothing
147+ , _dsipFields = Nothing
148+ , _dsipCallback = Nothing
149+ }
150+
151+-- | V1 error format.
152+dsipXgafv :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
153+dsipXgafv
154+ = lens _dsipXgafv (\ s a -> s{_dsipXgafv = a})
155+
156+-- | Available to use for quota purposes for server-side applications. Can be
157+-- any arbitrary string assigned to a user, but should not exceed 40
158+-- characters.
159+dsipQuotaUser :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
160+dsipQuotaUser
161+ = lens _dsipQuotaUser
162+ (\ s a -> s{_dsipQuotaUser = a})
163+
164+-- | Returns response with indentations and line breaks.
165+dsipPrettyPrint :: Lens' DatasetsSetIAMPolicy' Bool
166+dsipPrettyPrint
167+ = lens _dsipPrettyPrint
168+ (\ s a -> s{_dsipPrettyPrint = a})
169+
170+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
171+dsipUploadProtocol :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
172+dsipUploadProtocol
173+ = lens _dsipUploadProtocol
174+ (\ s a -> s{_dsipUploadProtocol = a})
175+
176+-- | Pretty-print response.
177+dsipPp :: Lens' DatasetsSetIAMPolicy' Bool
178+dsipPp = lens _dsipPp (\ s a -> s{_dsipPp = a})
179+
180+-- | OAuth access token.
181+dsipAccessToken :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
182+dsipAccessToken
183+ = lens _dsipAccessToken
184+ (\ s a -> s{_dsipAccessToken = a})
185+
186+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
187+dsipUploadType :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
188+dsipUploadType
189+ = lens _dsipUploadType
190+ (\ s a -> s{_dsipUploadType = a})
191+
192+-- | Multipart request metadata.
193+dsipPayload :: Lens' DatasetsSetIAMPolicy' SetIAMPolicyRequest
194+dsipPayload
195+ = lens _dsipPayload (\ s a -> s{_dsipPayload = a})
196+
197+-- | OAuth bearer token.
198+dsipBearerToken :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
199+dsipBearerToken
200+ = lens _dsipBearerToken
201+ (\ s a -> s{_dsipBearerToken = a})
202+
203+-- | API key. Your API key identifies your project and provides you with API
204+-- access, quota, and reports. Required unless you provide an OAuth 2.0
205+-- token.
206+dsipKey :: Lens' DatasetsSetIAMPolicy' (Maybe AuthKey)
207+dsipKey = lens _dsipKey (\ s a -> s{_dsipKey = a})
208+
209+-- | REQUIRED: The resource for which policy is being specified. Format is
210+-- \`datasets\/\`.
211+dsipResource :: Lens' DatasetsSetIAMPolicy' Text
212+dsipResource
213+ = lens _dsipResource (\ s a -> s{_dsipResource = a})
214+
215+-- | OAuth 2.0 token for the current user.
216+dsipOAuthToken :: Lens' DatasetsSetIAMPolicy' (Maybe OAuthToken)
217+dsipOAuthToken
218+ = lens _dsipOAuthToken
219+ (\ s a -> s{_dsipOAuthToken = a})
220+
221+-- | Selector specifying which fields to include in a partial response.
222+dsipFields :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
223+dsipFields
224+ = lens _dsipFields (\ s a -> s{_dsipFields = a})
225+
226+-- | JSONP
227+dsipCallback :: Lens' DatasetsSetIAMPolicy' (Maybe Text)
228+dsipCallback
229+ = lens _dsipCallback (\ s a -> s{_dsipCallback = a})
230+
231+instance GoogleAuth DatasetsSetIAMPolicy' where
232+ _AuthKey = dsipKey . _Just
233+ _AuthToken = dsipOAuthToken . _Just
234+
235+instance GoogleRequest DatasetsSetIAMPolicy' where
236+ type Rs DatasetsSetIAMPolicy' = Policy
237+ request = requestWith genomicsRequest
238+ requestWith rq DatasetsSetIAMPolicy'{..}
239+ = go _dsipResource _dsipXgafv _dsipUploadProtocol
240+ (Just _dsipPp)
241+ _dsipAccessToken
242+ _dsipUploadType
243+ _dsipBearerToken
244+ _dsipCallback
245+ _dsipQuotaUser
246+ (Just _dsipPrettyPrint)
247+ _dsipFields
248+ _dsipKey
249+ _dsipOAuthToken
250+ (Just AltJSON)
251+ _dsipPayload
252+ where go
253+ = clientBuild
254+ (Proxy :: Proxy DatasetsSetIAMPolicyResource)
255+ rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/TestIAMPermissions.hsnew file+257
@@ -0,0 +1,257 @@
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.Genomics.Datasets.TestIAMPermissions
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 permissions that a caller has on the specified resource. See
24+-- Testing Permissions for more information.
25+--
26+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsTestIAMPermissions@.
27+module Network.Google.Resource.Genomics.Datasets.TestIAMPermissions
28+ (
29+ -- * REST Resource
30+ DatasetsTestIAMPermissionsResource
31+
32+ -- * Creating a Request
33+ , datasetsTestIAMPermissions'
34+ , DatasetsTestIAMPermissions'
35+
36+ -- * Request Lenses
37+ , dtipXgafv
38+ , dtipQuotaUser
39+ , dtipPrettyPrint
40+ , dtipUploadProtocol
41+ , dtipPp
42+ , dtipAccessToken
43+ , dtipUploadType
44+ , dtipPayload
45+ , dtipBearerToken
46+ , dtipKey
47+ , dtipResource
48+ , dtipOAuthToken
49+ , dtipFields
50+ , dtipCallback
51+ ) where
52+
53+import Network.Google.Genomics.Types
54+import Network.Google.Prelude
55+
56+-- | A resource alias for @GenomicsDatasetsTestIAMPermissions@ method which the
57+-- 'DatasetsTestIAMPermissions'' request conforms to.
58+type DatasetsTestIAMPermissionsResource =
59+ "v1" :>
60+ CaptureMode "resource" "testIamPermissions" 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 "quotaUser" Text :>
69+ QueryParam "prettyPrint" Bool :>
70+ QueryParam "fields" Text :>
71+ QueryParam "key" AuthKey :>
72+ QueryParam "oauth_token" OAuthToken :>
73+ QueryParam "alt" AltJSON :>
74+ ReqBody '[JSON] TestIAMPermissionsRequest :>
75+ Post '[JSON] TestIAMPermissionsResponse
76+
77+-- | Returns permissions that a caller has on the specified resource. See
78+-- Testing Permissions for more information.
79+--
80+-- /See:/ 'datasetsTestIAMPermissions'' smart constructor.
81+data DatasetsTestIAMPermissions' = DatasetsTestIAMPermissions'
82+ { _dtipXgafv :: !(Maybe Text)
83+ , _dtipQuotaUser :: !(Maybe Text)
84+ , _dtipPrettyPrint :: !Bool
85+ , _dtipUploadProtocol :: !(Maybe Text)
86+ , _dtipPp :: !Bool
87+ , _dtipAccessToken :: !(Maybe Text)
88+ , _dtipUploadType :: !(Maybe Text)
89+ , _dtipPayload :: !TestIAMPermissionsRequest
90+ , _dtipBearerToken :: !(Maybe Text)
91+ , _dtipKey :: !(Maybe AuthKey)
92+ , _dtipResource :: !Text
93+ , _dtipOAuthToken :: !(Maybe OAuthToken)
94+ , _dtipFields :: !(Maybe Text)
95+ , _dtipCallback :: !(Maybe Text)
96+ } deriving (Eq,Show,Data,Typeable,Generic)
97+
98+-- | Creates a value of 'DatasetsTestIAMPermissions'' with the minimum fields required to make a request.
99+--
100+-- Use one of the following lenses to modify other fields as desired:
101+--
102+-- * 'dtipXgafv'
103+--
104+-- * 'dtipQuotaUser'
105+--
106+-- * 'dtipPrettyPrint'
107+--
108+-- * 'dtipUploadProtocol'
109+--
110+-- * 'dtipPp'
111+--
112+-- * 'dtipAccessToken'
113+--
114+-- * 'dtipUploadType'
115+--
116+-- * 'dtipPayload'
117+--
118+-- * 'dtipBearerToken'
119+--
120+-- * 'dtipKey'
121+--
122+-- * 'dtipResource'
123+--
124+-- * 'dtipOAuthToken'
125+--
126+-- * 'dtipFields'
127+--
128+-- * 'dtipCallback'
129+datasetsTestIAMPermissions'
130+ :: TestIAMPermissionsRequest -- ^ 'payload'
131+ -> Text -- ^ 'resource'
132+ -> DatasetsTestIAMPermissions'
133+datasetsTestIAMPermissions' pDtipPayload_ pDtipResource_ =
134+ DatasetsTestIAMPermissions'
135+ { _dtipXgafv = Nothing
136+ , _dtipQuotaUser = Nothing
137+ , _dtipPrettyPrint = True
138+ , _dtipUploadProtocol = Nothing
139+ , _dtipPp = True
140+ , _dtipAccessToken = Nothing
141+ , _dtipUploadType = Nothing
142+ , _dtipPayload = pDtipPayload_
143+ , _dtipBearerToken = Nothing
144+ , _dtipKey = Nothing
145+ , _dtipResource = pDtipResource_
146+ , _dtipOAuthToken = Nothing
147+ , _dtipFields = Nothing
148+ , _dtipCallback = Nothing
149+ }
150+
151+-- | V1 error format.
152+dtipXgafv :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
153+dtipXgafv
154+ = lens _dtipXgafv (\ s a -> s{_dtipXgafv = a})
155+
156+-- | Available to use for quota purposes for server-side applications. Can be
157+-- any arbitrary string assigned to a user, but should not exceed 40
158+-- characters.
159+dtipQuotaUser :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
160+dtipQuotaUser
161+ = lens _dtipQuotaUser
162+ (\ s a -> s{_dtipQuotaUser = a})
163+
164+-- | Returns response with indentations and line breaks.
165+dtipPrettyPrint :: Lens' DatasetsTestIAMPermissions' Bool
166+dtipPrettyPrint
167+ = lens _dtipPrettyPrint
168+ (\ s a -> s{_dtipPrettyPrint = a})
169+
170+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
171+dtipUploadProtocol :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
172+dtipUploadProtocol
173+ = lens _dtipUploadProtocol
174+ (\ s a -> s{_dtipUploadProtocol = a})
175+
176+-- | Pretty-print response.
177+dtipPp :: Lens' DatasetsTestIAMPermissions' Bool
178+dtipPp = lens _dtipPp (\ s a -> s{_dtipPp = a})
179+
180+-- | OAuth access token.
181+dtipAccessToken :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
182+dtipAccessToken
183+ = lens _dtipAccessToken
184+ (\ s a -> s{_dtipAccessToken = a})
185+
186+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
187+dtipUploadType :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
188+dtipUploadType
189+ = lens _dtipUploadType
190+ (\ s a -> s{_dtipUploadType = a})
191+
192+-- | Multipart request metadata.
193+dtipPayload :: Lens' DatasetsTestIAMPermissions' TestIAMPermissionsRequest
194+dtipPayload
195+ = lens _dtipPayload (\ s a -> s{_dtipPayload = a})
196+
197+-- | OAuth bearer token.
198+dtipBearerToken :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
199+dtipBearerToken
200+ = lens _dtipBearerToken
201+ (\ s a -> s{_dtipBearerToken = a})
202+
203+-- | API key. Your API key identifies your project and provides you with API
204+-- access, quota, and reports. Required unless you provide an OAuth 2.0
205+-- token.
206+dtipKey :: Lens' DatasetsTestIAMPermissions' (Maybe AuthKey)
207+dtipKey = lens _dtipKey (\ s a -> s{_dtipKey = a})
208+
209+-- | REQUIRED: The resource for which policy is being specified. Format is
210+-- \`datasets\/\`.
211+dtipResource :: Lens' DatasetsTestIAMPermissions' Text
212+dtipResource
213+ = lens _dtipResource (\ s a -> s{_dtipResource = a})
214+
215+-- | OAuth 2.0 token for the current user.
216+dtipOAuthToken :: Lens' DatasetsTestIAMPermissions' (Maybe OAuthToken)
217+dtipOAuthToken
218+ = lens _dtipOAuthToken
219+ (\ s a -> s{_dtipOAuthToken = a})
220+
221+-- | Selector specifying which fields to include in a partial response.
222+dtipFields :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
223+dtipFields
224+ = lens _dtipFields (\ s a -> s{_dtipFields = a})
225+
226+-- | JSONP
227+dtipCallback :: Lens' DatasetsTestIAMPermissions' (Maybe Text)
228+dtipCallback
229+ = lens _dtipCallback (\ s a -> s{_dtipCallback = a})
230+
231+instance GoogleAuth DatasetsTestIAMPermissions' where
232+ _AuthKey = dtipKey . _Just
233+ _AuthToken = dtipOAuthToken . _Just
234+
235+instance GoogleRequest DatasetsTestIAMPermissions'
236+ where
237+ type Rs DatasetsTestIAMPermissions' =
238+ TestIAMPermissionsResponse
239+ request = requestWith genomicsRequest
240+ requestWith rq DatasetsTestIAMPermissions'{..}
241+ = go _dtipResource _dtipXgafv _dtipUploadProtocol
242+ (Just _dtipPp)
243+ _dtipAccessToken
244+ _dtipUploadType
245+ _dtipBearerToken
246+ _dtipCallback
247+ _dtipQuotaUser
248+ (Just _dtipPrettyPrint)
249+ _dtipFields
250+ _dtipKey
251+ _dtipOAuthToken
252+ (Just AltJSON)
253+ _dtipPayload
254+ where go
255+ = clientBuild
256+ (Proxy :: Proxy DatasetsTestIAMPermissionsResource)
257+ rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Undelete.hs+118−31
@@ -24,7 +24,7 @@
2424-- API. This operation is only possible for a week after the deletion
2525-- occurred.
2626--
27−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsUndelete@.
27+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsUndelete@.
2828module Network.Google.Resource.Genomics.Datasets.Undelete
2929 (
3030 -- * REST Resource
@@ -35,13 +35,20 @@ module Network.Google.Resource.Genomics.Datasets.Undelete
3535 , DatasetsUndelete'
3636
3737 -- * Request Lenses
38+ , duXgafv
3839 , duQuotaUser
3940 , duPrettyPrint
40− , duUserIP
41+ , duUploadProtocol
42+ , duPp
43+ , duAccessToken
44+ , duUploadType
45+ , duPayload
46+ , duBearerToken
4147 , duKey
4248 , duDatasetId
4349 , duOAuthToken
4450 , duFields
51+ , duCallback
4552 ) where
4653
4754import Network.Google.Genomics.Types
@@ -50,16 +57,24 @@ import Network.Google.Prelude
5057-- | A resource alias for @GenomicsDatasetsUndelete@ method which the
5158-- 'DatasetsUndelete'' request conforms to.
5259type DatasetsUndeleteResource =
53− "datasets" :>
54− Capture "datasetId" Text :>
55− "undelete" :>
56− QueryParam "quotaUser" Text :>
57− QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :> Post '[JSON] Dataset
60+ "v1" :>
61+ "datasets" :>
62+ CaptureMode "datasetId" "undelete" Text :>
63+ QueryParam "$.xgafv" Text :>
64+ QueryParam "upload_protocol" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "quotaUser" Text :>
71+ QueryParam "prettyPrint" Bool :>
72+ QueryParam "fields" Text :>
73+ QueryParam "key" AuthKey :>
74+ QueryParam "oauth_token" OAuthToken :>
75+ QueryParam "alt" AltJSON :>
76+ ReqBody '[JSON] UndeleteDatasetRequest :>
77+ Post '[JSON] Dataset
6378
6479-- | Undeletes a dataset by restoring a dataset which was deleted via this
6580-- API. This operation is only possible for a week after the deletion
@@ -67,24 +82,43 @@ type DatasetsUndeleteResource =
6782--
6883-- /See:/ 'datasetsUndelete'' smart constructor.
6984data DatasetsUndelete' = DatasetsUndelete'
70− { _duQuotaUser :: !(Maybe Text)
71− , _duPrettyPrint :: !Bool
72− , _duUserIP :: !(Maybe Text)
73− , _duKey :: !(Maybe AuthKey)
74− , _duDatasetId :: !Text
75− , _duOAuthToken :: !(Maybe OAuthToken)
76− , _duFields :: !(Maybe Text)
85+ { _duXgafv :: !(Maybe Text)
86+ , _duQuotaUser :: !(Maybe Text)
87+ , _duPrettyPrint :: !Bool
88+ , _duUploadProtocol :: !(Maybe Text)
89+ , _duPp :: !Bool
90+ , _duAccessToken :: !(Maybe Text)
91+ , _duUploadType :: !(Maybe Text)
92+ , _duPayload :: !UndeleteDatasetRequest
93+ , _duBearerToken :: !(Maybe Text)
94+ , _duKey :: !(Maybe AuthKey)
95+ , _duDatasetId :: !Text
96+ , _duOAuthToken :: !(Maybe OAuthToken)
97+ , _duFields :: !(Maybe Text)
98+ , _duCallback :: !(Maybe Text)
7799 } deriving (Eq,Show,Data,Typeable,Generic)
78100
79101-- | Creates a value of 'DatasetsUndelete'' with the minimum fields required to make a request.
80102--
81103-- Use one of the following lenses to modify other fields as desired:
82104--
105+-- * 'duXgafv'
106+--
83107-- * 'duQuotaUser'
84108--
85109-- * 'duPrettyPrint'
86110--
87−-- * 'duUserIP'
111+-- * 'duUploadProtocol'
112+--
113+-- * 'duPp'
114+--
115+-- * 'duAccessToken'
116+--
117+-- * 'duUploadType'
118+--
119+-- * 'duPayload'
120+--
121+-- * 'duBearerToken'
88122--
89123-- * 'duKey'
90124--
@@ -93,23 +127,37 @@ data DatasetsUndelete' = DatasetsUndelete'
93127-- * 'duOAuthToken'
94128--
95129-- * 'duFields'
130+--
131+-- * 'duCallback'
96132datasetsUndelete'
97− :: Text -- ^ 'datasetId'
133+ :: UndeleteDatasetRequest -- ^ 'payload'
134+ -> Text -- ^ 'datasetId'
98135 -> DatasetsUndelete'
99−datasetsUndelete' pDuDatasetId_ =
136+datasetsUndelete' pDuPayload_ pDuDatasetId_ =
100137 DatasetsUndelete'
101− { _duQuotaUser = Nothing
138+ { _duXgafv = Nothing
139+ , _duQuotaUser = Nothing
102140 , _duPrettyPrint = True
103− , _duUserIP = Nothing
141+ , _duUploadProtocol = Nothing
142+ , _duPp = True
143+ , _duAccessToken = Nothing
144+ , _duUploadType = Nothing
145+ , _duPayload = pDuPayload_
146+ , _duBearerToken = Nothing
104147 , _duKey = Nothing
105148 , _duDatasetId = pDuDatasetId_
106149 , _duOAuthToken = Nothing
107150 , _duFields = Nothing
151+ , _duCallback = Nothing
108152 }
109153
154+-- | V1 error format.
155+duXgafv :: Lens' DatasetsUndelete' (Maybe Text)
156+duXgafv = lens _duXgafv (\ s a -> s{_duXgafv = a})
157+
110158-- | Available to use for quota purposes for server-side applications. Can be
111159-- any arbitrary string assigned to a user, but should not exceed 40
112−-- characters. Overrides userIp if both are provided.
160+-- characters.
113161duQuotaUser :: Lens' DatasetsUndelete' (Maybe Text)
114162duQuotaUser
115163 = lens _duQuotaUser (\ s a -> s{_duQuotaUser = a})
@@ -120,10 +168,37 @@ duPrettyPrint
120168 = lens _duPrettyPrint
121169 (\ s a -> s{_duPrettyPrint = a})
122170
123−-- | IP address of the site where the request originates. Use this if you
124−-- want to enforce per-user limits.
125−duUserIP :: Lens' DatasetsUndelete' (Maybe Text)
126−duUserIP = lens _duUserIP (\ s a -> s{_duUserIP = a})
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
172+duUploadProtocol :: Lens' DatasetsUndelete' (Maybe Text)
173+duUploadProtocol
174+ = lens _duUploadProtocol
175+ (\ s a -> s{_duUploadProtocol = a})
176+
177+-- | Pretty-print response.
178+duPp :: Lens' DatasetsUndelete' Bool
179+duPp = lens _duPp (\ s a -> s{_duPp = a})
180+
181+-- | OAuth access token.
182+duAccessToken :: Lens' DatasetsUndelete' (Maybe Text)
183+duAccessToken
184+ = lens _duAccessToken
185+ (\ s a -> s{_duAccessToken = a})
186+
187+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
188+duUploadType :: Lens' DatasetsUndelete' (Maybe Text)
189+duUploadType
190+ = lens _duUploadType (\ s a -> s{_duUploadType = a})
191+
192+-- | Multipart request metadata.
193+duPayload :: Lens' DatasetsUndelete' UndeleteDatasetRequest
194+duPayload
195+ = lens _duPayload (\ s a -> s{_duPayload = a})
196+
197+-- | OAuth bearer token.
198+duBearerToken :: Lens' DatasetsUndelete' (Maybe Text)
199+duBearerToken
200+ = lens _duBearerToken
201+ (\ s a -> s{_duBearerToken = a})
127202
128203-- | API key. Your API key identifies your project and provides you with API
129204-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -145,6 +220,11 @@ duOAuthToken
145220duFields :: Lens' DatasetsUndelete' (Maybe Text)
146221duFields = lens _duFields (\ s a -> s{_duFields = a})
147222
223+-- | JSONP
224+duCallback :: Lens' DatasetsUndelete' (Maybe Text)
225+duCallback
226+ = lens _duCallback (\ s a -> s{_duCallback = a})
227+
148228instance GoogleAuth DatasetsUndelete' where
149229 _AuthKey = duKey . _Just
150230 _AuthToken = duOAuthToken . _Just
@@ -153,12 +233,19 @@ instance GoogleRequest DatasetsUndelete' where
153233 type Rs DatasetsUndelete' = Dataset
154234 request = requestWith genomicsRequest
155235 requestWith rq DatasetsUndelete'{..}
156− = go _duDatasetId _duQuotaUser (Just _duPrettyPrint)
157− _duUserIP
236+ = go _duDatasetId _duXgafv _duUploadProtocol
237+ (Just _duPp)
238+ _duAccessToken
239+ _duUploadType
240+ _duBearerToken
241+ _duCallback
242+ _duQuotaUser
243+ (Just _duPrettyPrint)
158244 _duFields
159245 _duKey
160246 _duOAuthToken
161247 (Just AltJSON)
248+ _duPayload
162249 where go
163250 = clientBuild
164251 (Proxy :: Proxy DatasetsUndeleteResource)
gogol-genomics/gen/Network/Google/Resource/Genomics/Experimental/Jobs/Create.hsdeleted−169
@@ -1,169 +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.Genomics.Experimental.Jobs.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 and asynchronously runs an ad-hoc job. This is an experimental
24−-- call and may be removed or changed at any time.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsExperimentalJobsCreate@.
27−module Network.Google.Resource.Genomics.Experimental.Jobs.Create
28− (
29− -- * REST Resource
30− ExperimentalJobsCreateResource
31−
32− -- * Creating a Request
33− , experimentalJobsCreate'
34− , ExperimentalJobsCreate'
35−
36− -- * Request Lenses
37− , ejcQuotaUser
38− , ejcPrettyPrint
39− , ejcUserIP
40− , ejcPayload
41− , ejcKey
42− , ejcOAuthToken
43− , ejcFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsExperimentalJobsCreate@ method which the
50−-- 'ExperimentalJobsCreate'' request conforms to.
51−type ExperimentalJobsCreateResource =
52− "experimental" :>
53− "jobs" :>
54− "create" :>
55− QueryParam "quotaUser" Text :>
56− QueryParam "prettyPrint" Bool :>
57− QueryParam "userIp" Text :>
58− QueryParam "fields" Text :>
59− QueryParam "key" AuthKey :>
60− QueryParam "oauth_token" OAuthToken :>
61− QueryParam "alt" AltJSON :>
62− ReqBody '[JSON] ExperimentalCreateJobRequest :>
63− Post '[JSON] ExperimentalCreateJobResponse
64−
65−-- | Creates and asynchronously runs an ad-hoc job. This is an experimental
66−-- call and may be removed or changed at any time.
67−--
68−-- /See:/ 'experimentalJobsCreate'' smart constructor.
69−data ExperimentalJobsCreate' = ExperimentalJobsCreate'
70− { _ejcQuotaUser :: !(Maybe Text)
71− , _ejcPrettyPrint :: !Bool
72− , _ejcUserIP :: !(Maybe Text)
73− , _ejcPayload :: !ExperimentalCreateJobRequest
74− , _ejcKey :: !(Maybe AuthKey)
75− , _ejcOAuthToken :: !(Maybe OAuthToken)
76− , _ejcFields :: !(Maybe Text)
77− } deriving (Eq,Show,Data,Typeable,Generic)
78−
79−-- | Creates a value of 'ExperimentalJobsCreate'' with the minimum fields required to make a request.
80−--
81−-- Use one of the following lenses to modify other fields as desired:
82−--
83−-- * 'ejcQuotaUser'
84−--
85−-- * 'ejcPrettyPrint'
86−--
87−-- * 'ejcUserIP'
88−--
89−-- * 'ejcPayload'
90−--
91−-- * 'ejcKey'
92−--
93−-- * 'ejcOAuthToken'
94−--
95−-- * 'ejcFields'
96−experimentalJobsCreate'
97− :: ExperimentalCreateJobRequest -- ^ 'payload'
98− -> ExperimentalJobsCreate'
99−experimentalJobsCreate' pEjcPayload_ =
100− ExperimentalJobsCreate'
101− { _ejcQuotaUser = Nothing
102− , _ejcPrettyPrint = True
103− , _ejcUserIP = Nothing
104− , _ejcPayload = pEjcPayload_
105− , _ejcKey = Nothing
106− , _ejcOAuthToken = Nothing
107− , _ejcFields = Nothing
108− }
109−
110−-- | Available to use for quota purposes for server-side applications. Can be
111−-- any arbitrary string assigned to a user, but should not exceed 40
112−-- characters. Overrides userIp if both are provided.
113−ejcQuotaUser :: Lens' ExperimentalJobsCreate' (Maybe Text)
114−ejcQuotaUser
115− = lens _ejcQuotaUser (\ s a -> s{_ejcQuotaUser = a})
116−
117−-- | Returns response with indentations and line breaks.
118−ejcPrettyPrint :: Lens' ExperimentalJobsCreate' Bool
119−ejcPrettyPrint
120− = lens _ejcPrettyPrint
121− (\ s a -> s{_ejcPrettyPrint = a})
122−
123−-- | IP address of the site where the request originates. Use this if you
124−-- want to enforce per-user limits.
125−ejcUserIP :: Lens' ExperimentalJobsCreate' (Maybe Text)
126−ejcUserIP
127− = lens _ejcUserIP (\ s a -> s{_ejcUserIP = a})
128−
129−-- | Multipart request metadata.
130−ejcPayload :: Lens' ExperimentalJobsCreate' ExperimentalCreateJobRequest
131−ejcPayload
132− = lens _ejcPayload (\ s a -> s{_ejcPayload = a})
133−
134−-- | API key. Your API key identifies your project and provides you with API
135−-- access, quota, and reports. Required unless you provide an OAuth 2.0
136−-- token.
137−ejcKey :: Lens' ExperimentalJobsCreate' (Maybe AuthKey)
138−ejcKey = lens _ejcKey (\ s a -> s{_ejcKey = a})
139−
140−-- | OAuth 2.0 token for the current user.
141−ejcOAuthToken :: Lens' ExperimentalJobsCreate' (Maybe OAuthToken)
142−ejcOAuthToken
143− = lens _ejcOAuthToken
144− (\ s a -> s{_ejcOAuthToken = a})
145−
146−-- | Selector specifying which fields to include in a partial response.
147−ejcFields :: Lens' ExperimentalJobsCreate' (Maybe Text)
148−ejcFields
149− = lens _ejcFields (\ s a -> s{_ejcFields = a})
150−
151−instance GoogleAuth ExperimentalJobsCreate' where
152− _AuthKey = ejcKey . _Just
153− _AuthToken = ejcOAuthToken . _Just
154−
155−instance GoogleRequest ExperimentalJobsCreate' where
156− type Rs ExperimentalJobsCreate' =
157− ExperimentalCreateJobResponse
158− request = requestWith genomicsRequest
159− requestWith rq ExperimentalJobsCreate'{..}
160− = go _ejcQuotaUser (Just _ejcPrettyPrint) _ejcUserIP
161− _ejcFields
162− _ejcKey
163− _ejcOAuthToken
164− (Just AltJSON)
165− _ejcPayload
166− where go
167− = clientBuild
168− (Proxy :: Proxy ExperimentalJobsCreateResource)
169− rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Jobs/Cancel.hsdeleted−160
@@ -1,160 +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.Genomics.Jobs.Cancel
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−-- | Cancels a job by ID. Note that it is possible for partial results to be
24−-- generated and stored for cancelled jobs.
25−--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsJobsCancel@.
27−module Network.Google.Resource.Genomics.Jobs.Cancel
28− (
29− -- * REST Resource
30− JobsCancelResource
31−
32− -- * Creating a Request
33− , jobsCancel'
34− , JobsCancel'
35−
36− -- * Request Lenses
37− , jcQuotaUser
38− , jcPrettyPrint
39− , jcJobId
40− , jcUserIP
41− , jcKey
42− , jcOAuthToken
43− , jcFields
44− ) where
45−
46−import Network.Google.Genomics.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @GenomicsJobsCancel@ method which the
50−-- 'JobsCancel'' request conforms to.
51−type JobsCancelResource =
52− "jobs" :>
53− Capture "jobId" Text :>
54− "cancel" :>
55− QueryParam "quotaUser" Text :>
56− QueryParam "prettyPrint" Bool :>
57− QueryParam "userIp" Text :>
58− QueryParam "fields" Text :>
59− QueryParam "key" AuthKey :>
60− QueryParam "oauth_token" OAuthToken :>
61− QueryParam "alt" AltJSON :> Post '[JSON] ()
62−
63−-- | Cancels a job by ID. Note that it is possible for partial results to be
64−-- generated and stored for cancelled jobs.
65−--
66−-- /See:/ 'jobsCancel'' smart constructor.
67−data JobsCancel' = JobsCancel'
68− { _jcQuotaUser :: !(Maybe Text)
69− , _jcPrettyPrint :: !Bool
70− , _jcJobId :: !Text
71− , _jcUserIP :: !(Maybe Text)
72− , _jcKey :: !(Maybe AuthKey)
73− , _jcOAuthToken :: !(Maybe OAuthToken)
74− , _jcFields :: !(Maybe Text)
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'JobsCancel'' with the minimum fields required to make a request.
78−--
79−-- Use one of the following lenses to modify other fields as desired:
80−--
81−-- * 'jcQuotaUser'
82−--
83−-- * 'jcPrettyPrint'
84−--
85−-- * 'jcJobId'
86−--
87−-- * 'jcUserIP'
88−--
89−-- * 'jcKey'
90−--
91−-- * 'jcOAuthToken'
92−--
93−-- * 'jcFields'
94−jobsCancel'
95− :: Text -- ^ 'jobId'
96− -> JobsCancel'
97−jobsCancel' pJcJobId_ =
98− JobsCancel'
99− { _jcQuotaUser = Nothing
100− , _jcPrettyPrint = True
101− , _jcJobId = pJcJobId_
102− , _jcUserIP = Nothing
103− , _jcKey = Nothing
104− , _jcOAuthToken = Nothing
105− , _jcFields = Nothing
106− }
107−
108−-- | Available to use for quota purposes for server-side applications. Can be
109−-- any arbitrary string assigned to a user, but should not exceed 40
110−-- characters. Overrides userIp if both are provided.
111−jcQuotaUser :: Lens' JobsCancel' (Maybe Text)
112−jcQuotaUser
113− = lens _jcQuotaUser (\ s a -> s{_jcQuotaUser = a})
114−
115−-- | Returns response with indentations and line breaks.
116−jcPrettyPrint :: Lens' JobsCancel' Bool
117−jcPrettyPrint
118− = lens _jcPrettyPrint
119− (\ s a -> s{_jcPrettyPrint = a})
120−
121−-- | Required. The ID of the job.
122−jcJobId :: Lens' JobsCancel' Text
123−jcJobId = lens _jcJobId (\ s a -> s{_jcJobId = a})
124−
125−-- | IP address of the site where the request originates. Use this if you
126−-- want to enforce per-user limits.
127−jcUserIP :: Lens' JobsCancel' (Maybe Text)
128−jcUserIP = lens _jcUserIP (\ s a -> s{_jcUserIP = a})
129−
130−-- | API key. Your API key identifies your project and provides you with API
131−-- access, quota, and reports. Required unless you provide an OAuth 2.0
132−-- token.
133−jcKey :: Lens' JobsCancel' (Maybe AuthKey)
134−jcKey = lens _jcKey (\ s a -> s{_jcKey = a})
135−
136−-- | OAuth 2.0 token for the current user.
137−jcOAuthToken :: Lens' JobsCancel' (Maybe OAuthToken)
138−jcOAuthToken
139− = lens _jcOAuthToken (\ s a -> s{_jcOAuthToken = a})
140−
141−-- | Selector specifying which fields to include in a partial response.
142−jcFields :: Lens' JobsCancel' (Maybe Text)
143−jcFields = lens _jcFields (\ s a -> s{_jcFields = a})
144−
145−instance GoogleAuth JobsCancel' where
146− _AuthKey = jcKey . _Just
147− _AuthToken = jcOAuthToken . _Just
148−
149−instance GoogleRequest JobsCancel' where
150− type Rs JobsCancel' = ()
151− request = requestWith genomicsRequest
152− requestWith rq JobsCancel'{..}
153− = go _jcJobId _jcQuotaUser (Just _jcPrettyPrint)
154− _jcUserIP
155− _jcFields
156− _jcKey
157− _jcOAuthToken
158− (Just AltJSON)
159− where go
160− = clientBuild (Proxy :: Proxy JobsCancelResource) rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Jobs/Get.hsdeleted−157
@@ -1,157 +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.Genomics.Jobs.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 job by ID.
24−--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsJobsGet@.
26−module Network.Google.Resource.Genomics.Jobs.Get
27− (
28− -- * REST Resource
29− JobsGetResource
30−
31− -- * Creating a Request
32− , jobsGet'
33− , JobsGet'
34−
35− -- * Request Lenses
36− , jgQuotaUser
37− , jgPrettyPrint
38− , jgJobId
39− , jgUserIP
40− , jgKey
41− , jgOAuthToken
42− , jgFields
43− ) where
44−
45−import Network.Google.Genomics.Types
46−import Network.Google.Prelude
47−
48−-- | A resource alias for @GenomicsJobsGet@ method which the
49−-- 'JobsGet'' request conforms to.
50−type JobsGetResource =
51− "jobs" :>
52− Capture "jobId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Get '[JSON] Job
60−
61−-- | Gets a job by ID.
62−--
63−-- /See:/ 'jobsGet'' smart constructor.
64−data JobsGet' = JobsGet'
65− { _jgQuotaUser :: !(Maybe Text)
66− , _jgPrettyPrint :: !Bool
67− , _jgJobId :: !Text
68− , _jgUserIP :: !(Maybe Text)
69− , _jgKey :: !(Maybe AuthKey)
70− , _jgOAuthToken :: !(Maybe OAuthToken)
71− , _jgFields :: !(Maybe Text)
72− } deriving (Eq,Show,Data,Typeable,Generic)
73−
74−-- | Creates a value of 'JobsGet'' with the minimum fields required to make a request.
75−--
76−-- Use one of the following lenses to modify other fields as desired:
77−--
78−-- * 'jgQuotaUser'
79−--
80−-- * 'jgPrettyPrint'
81−--
82−-- * 'jgJobId'
83−--
84−-- * 'jgUserIP'
85−--
86−-- * 'jgKey'
87−--
88−-- * 'jgOAuthToken'
89−--
90−-- * 'jgFields'
91−jobsGet'
92− :: Text -- ^ 'jobId'
93− -> JobsGet'
94−jobsGet' pJgJobId_ =
95− JobsGet'
96− { _jgQuotaUser = Nothing
97− , _jgPrettyPrint = True
98− , _jgJobId = pJgJobId_
99− , _jgUserIP = Nothing
100− , _jgKey = Nothing
101− , _jgOAuthToken = Nothing
102− , _jgFields = Nothing
103− }
104−
105−-- | Available to use for quota purposes for server-side applications. Can be
106−-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
108−jgQuotaUser :: Lens' JobsGet' (Maybe Text)
109−jgQuotaUser
110− = lens _jgQuotaUser (\ s a -> s{_jgQuotaUser = a})
111−
112−-- | Returns response with indentations and line breaks.
113−jgPrettyPrint :: Lens' JobsGet' Bool
114−jgPrettyPrint
115− = lens _jgPrettyPrint
116− (\ s a -> s{_jgPrettyPrint = a})
117−
118−-- | Required. The ID of the job.
119−jgJobId :: Lens' JobsGet' Text
120−jgJobId = lens _jgJobId (\ s a -> s{_jgJobId = a})
121−
122−-- | IP address of the site where the request originates. Use this if you
123−-- want to enforce per-user limits.
124−jgUserIP :: Lens' JobsGet' (Maybe Text)
125−jgUserIP = lens _jgUserIP (\ s a -> s{_jgUserIP = a})
126−
127−-- | API key. Your API key identifies your project and provides you with API
128−-- access, quota, and reports. Required unless you provide an OAuth 2.0
129−-- token.
130−jgKey :: Lens' JobsGet' (Maybe AuthKey)
131−jgKey = lens _jgKey (\ s a -> s{_jgKey = a})
132−
133−-- | OAuth 2.0 token for the current user.
134−jgOAuthToken :: Lens' JobsGet' (Maybe OAuthToken)
135−jgOAuthToken
136− = lens _jgOAuthToken (\ s a -> s{_jgOAuthToken = a})
137−
138−-- | Selector specifying which fields to include in a partial response.
139−jgFields :: Lens' JobsGet' (Maybe Text)
140−jgFields = lens _jgFields (\ s a -> s{_jgFields = a})
141−
142−instance GoogleAuth JobsGet' where
143− _AuthKey = jgKey . _Just
144− _AuthToken = jgOAuthToken . _Just
145−
146−instance GoogleRequest JobsGet' where
147− type Rs JobsGet' = Job
148− request = requestWith genomicsRequest
149− requestWith rq JobsGet'{..}
150− = go _jgJobId _jgQuotaUser (Just _jgPrettyPrint)
151− _jgUserIP
152− _jgFields
153− _jgKey
154− _jgOAuthToken
155− (Just AltJSON)
156− where go
157− = clientBuild (Proxy :: Proxy JobsGetResource) rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Jobs/Search.hsdeleted−160
@@ -1,160 +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.Genomics.Jobs.Search
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 list of jobs matching the criteria.
24−--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsJobsSearch@.
26−module Network.Google.Resource.Genomics.Jobs.Search
27− (
28− -- * REST Resource
29− JobsSearchResource
30−
31− -- * Creating a Request
32− , jobsSearch'
33− , JobsSearch'
34−
35− -- * Request Lenses
36− , jsQuotaUser
37− , jsPrettyPrint
38− , jsUserIP
39− , jsPayload
40− , jsKey
41− , jsOAuthToken
42− , jsFields
43− ) where
44−
45−import Network.Google.Genomics.Types
46−import Network.Google.Prelude
47−
48−-- | A resource alias for @GenomicsJobsSearch@ method which the
49−-- 'JobsSearch'' request conforms to.
50−type JobsSearchResource =
51− "jobs" :>
52− "search" :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
55− QueryParam "userIp" Text :>
56− QueryParam "fields" Text :>
57− QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :>
60− ReqBody '[JSON] SearchJobsRequest :>
61− Post '[JSON] SearchJobsResponse
62−
63−-- | Gets a list of jobs matching the criteria.
64−--
65−-- /See:/ 'jobsSearch'' smart constructor.
66−data JobsSearch' = JobsSearch'
67− { _jsQuotaUser :: !(Maybe Text)
68− , _jsPrettyPrint :: !Bool
69− , _jsUserIP :: !(Maybe Text)
70− , _jsPayload :: !SearchJobsRequest
71− , _jsKey :: !(Maybe AuthKey)
72− , _jsOAuthToken :: !(Maybe OAuthToken)
73− , _jsFields :: !(Maybe Text)
74− } deriving (Eq,Show,Data,Typeable,Generic)
75−
76−-- | Creates a value of 'JobsSearch'' with the minimum fields required to make a request.
77−--
78−-- Use one of the following lenses to modify other fields as desired:
79−--
80−-- * 'jsQuotaUser'
81−--
82−-- * 'jsPrettyPrint'
83−--
84−-- * 'jsUserIP'
85−--
86−-- * 'jsPayload'
87−--
88−-- * 'jsKey'
89−--
90−-- * 'jsOAuthToken'
91−--
92−-- * 'jsFields'
93−jobsSearch'
94− :: SearchJobsRequest -- ^ 'payload'
95− -> JobsSearch'
96−jobsSearch' pJsPayload_ =
97− JobsSearch'
98− { _jsQuotaUser = Nothing
99− , _jsPrettyPrint = True
100− , _jsUserIP = Nothing
101− , _jsPayload = pJsPayload_
102− , _jsKey = Nothing
103− , _jsOAuthToken = Nothing
104− , _jsFields = Nothing
105− }
106−
107−-- | Available to use for quota purposes for server-side applications. Can be
108−-- any arbitrary string assigned to a user, but should not exceed 40
109−-- characters. Overrides userIp if both are provided.
110−jsQuotaUser :: Lens' JobsSearch' (Maybe Text)
111−jsQuotaUser
112− = lens _jsQuotaUser (\ s a -> s{_jsQuotaUser = a})
113−
114−-- | Returns response with indentations and line breaks.
115−jsPrettyPrint :: Lens' JobsSearch' Bool
116−jsPrettyPrint
117− = lens _jsPrettyPrint
118− (\ s a -> s{_jsPrettyPrint = a})
119−
120−-- | IP address of the site where the request originates. Use this if you
121−-- want to enforce per-user limits.
122−jsUserIP :: Lens' JobsSearch' (Maybe Text)
123−jsUserIP = lens _jsUserIP (\ s a -> s{_jsUserIP = a})
124−
125−-- | Multipart request metadata.
126−jsPayload :: Lens' JobsSearch' SearchJobsRequest
127−jsPayload
128− = lens _jsPayload (\ s a -> s{_jsPayload = a})
129−
130−-- | API key. Your API key identifies your project and provides you with API
131−-- access, quota, and reports. Required unless you provide an OAuth 2.0
132−-- token.
133−jsKey :: Lens' JobsSearch' (Maybe AuthKey)
134−jsKey = lens _jsKey (\ s a -> s{_jsKey = a})
135−
136−-- | OAuth 2.0 token for the current user.
137−jsOAuthToken :: Lens' JobsSearch' (Maybe OAuthToken)
138−jsOAuthToken
139− = lens _jsOAuthToken (\ s a -> s{_jsOAuthToken = a})
140−
141−-- | Selector specifying which fields to include in a partial response.
142−jsFields :: Lens' JobsSearch' (Maybe Text)
143−jsFields = lens _jsFields (\ s a -> s{_jsFields = a})
144−
145−instance GoogleAuth JobsSearch' where
146− _AuthKey = jsKey . _Just
147− _AuthToken = jsOAuthToken . _Just
148−
149−instance GoogleRequest JobsSearch' where
150− type Rs JobsSearch' = SearchJobsResponse
151− request = requestWith genomicsRequest
152− requestWith rq JobsSearch'{..}
153− = go _jsQuotaUser (Just _jsPrettyPrint) _jsUserIP
154− _jsFields
155− _jsKey
156− _jsOAuthToken
157− (Just AltJSON)
158− _jsPayload
159− where go
160− = clientBuild (Proxy :: Proxy JobsSearchResource) rq
gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Cancel.hsnew file+253

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Delete.hsnew file+234

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Get.hsnew file+235

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/List.hsnew file+273

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Align.hsdeleted−167

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Call.hsdeleted−167

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Coveragebuckets/List.hs+148−72

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Delete.hs+98−24

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Export.hs+131−43

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Get.hs+97−23

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Import.hs+122−46

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Patch.hs+113−25

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Search.hs+107−32

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Readgroupsets/Update.hsdeleted−177

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Reads/Search.hs+105−31

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/References/Bases/List.hs+120−42

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/References/Get.hs+108−32

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/References/Search.hs+106−32

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Referencesets/Get.hs+98−24

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Referencesets/Search.hs+107−32

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Create.hs+103−28

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Delete.hs+104−29

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Get.hs+103−29

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Import.hsnew file+256

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Patch.hsnew file+267

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Search.hs+105−31

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Update.hsdeleted−174

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Create.hs+109−36

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Delete.hs+104−30

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Export.hs+105−33

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Get.hs+102−28

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/ImportVariants.hsdeleted−198

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/MergeVariants.hsdeleted−191

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Patch.hs+121−36

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Search.hs+103−31

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variantsets/Update.hsdeleted−180

This diff is too big to show here.

gogol-genomics/gogol-genomics.cabal+12−28

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/PubSub.hs−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/PubSub/Types.hs+1−2

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+1−12

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

gogol-pubsub/gogol-pubsub.cabal+1−1

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/AuthInfo.hsnew file+152

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Custombatch.hsnew file+180

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Delete.hsnew file+183

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Get.hsnew file+175

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Insert.hsnew file+188

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/List.hsnew file+185

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Patch.hsnew file+201

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Update.hsnew file+196

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Custombatch.hsnew file+181

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Get.hsnew file+175

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/List.hsnew file+194

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Patch.hsnew file+201

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountshipping/Update.hsnew file+204

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountstatuses/Custombatch.hsnew file+163

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountstatuses/Get.hsnew file+177

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accountstatuses/List.hsnew file+194

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Create.hs → gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Custombatch.hsrenamed+62−48

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Get.hsnew file+178

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/List.hsnew file+192

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Patch.hsnew file+205

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Accounttax/Update.hsnew file+194

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Custombatch.hsnew file+177

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Delete.hsnew file+182

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Get.hsnew file+170

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Insert.hsnew file+183

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/List.hsnew file+185

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Patch.hsnew file+196

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeeds/Update.hsnew file+195

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeedstatuses/Custombatch.hsnew file+164

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Update.hs → gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeedstatuses/Get.hsrenamed+65−64

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Datafeedstatuses/List.hsnew file+192

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Inventory/Custombatch.hsnew file+178

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Inventory/Set.hsnew file+216

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Custombatch.hsnew file+172

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Delete.hsnew file+183

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Get.hsnew file+171

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Products/Insert.hsnew file+183

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Products/List.hsnew file+190

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/Custombatch.hsnew file+164

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/Get.hsnew file+177

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/List.hsnew file+187

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent.hs+956−2

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent/Types.hs+752−2

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Product.hs+7190−244

This diff is too big to show here.

gogol-shopping-content/gogol-shopping-content.cabal+43−2

This diff is too big to show here.

gogol-storage/README.md+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Delete.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Get.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Insert.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/List.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Patch.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Update.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Delete.hs+11−11

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Get.hs+7−7

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Insert.hs+50−20

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Buckets/List.hs+23−12

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Patch.hs+54−25

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Update.hs+54−25

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Channels/Stop.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Delete.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Get.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Insert.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/List.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Patch.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/DefaultObjectAccessControls/Update.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Delete.hs+6−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Get.hs+6−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Insert.hs+6−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/List.hs+6−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Patch.hs+6−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/ObjectAccessControls/Update.hs+6−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Compose.hs+57−37

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Copy.hs+112−82

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Delete.hs+20−19

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Get.hs+25−24

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Insert.hs+81−42

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/List.hs+5−3

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Patch.hs+44−31

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Rewrite.hsnew file+440

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Update.hs+59−41

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/WatchAll.hs+5−3

This diff is too big to show here.

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

This diff is too big to show here.

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

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage/Types/Product.hs+299−62

This diff is too big to show here.

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

This diff is too big to show here.

gogol-storage/gogol-storage.cabal+3−2

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/UserAccounts/Types.hs+2−2

This diff is too big to show here.

gogol-useraccounts/gogol-useraccounts.cabal+1−1

This diff is too big to show here.

gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types.hs+2−2

This diff is too big to show here.

gogol-youtube-analytics/gogol-youtube-analytics.cabal+1−5

This diff is too big to show here.